tem_load_bc_state Subroutine

public subroutine tem_load_bc_state(bc, state_name, nComp, style, conf, bc_handle, varDict, varSys, solverData_evalElem, ErrCode)

Function to load spatial, constant or temporal boundary conditions to the boundary state type (or combinations of them). or Valid definitions: Example given for state variable velocityX in variable table

 variable = {
   { name = 'bc_pressure',
     ncomponents = 1,
     var_type = 'st_fun',
     st_fun = 0.01
   },
   { name = 'bc_velocity',
     ncomponents = 3,
     var_type = 'st_fun',
     st_fun = {0.01,0.0,0.0}
   },
   { name = 'bc_velocity_2',
     ncomponents = 3,
     var_type = 'st_fun',
     st_fun = {
                predefined = 'combined',
                temporal = {predefined="linear", min_factor = 0.0,
                             max_factor = 1.0, from_time = 0, to_time = 1000},
                spatial = {predefined='parabol', shape = {kind = 'canoND',
                           object = { origin={-2.0,0.0,0.0},vec={0.0,1.0,0.0}}},
                           amplitude = {0.0,1.0,0.0}
                          }
                 }
       }
 }
 boundary_condition = {
  {
    label = 'from_seeder',
    kind = 'bc_kind',
    style = 'dirichlet',
    pressure = 'bc_pressure',
    velocity = 'bc_velocity' --'bc_velocity_2'
  }
 }

Arguments

TypeIntentOptionalAttributesName
type(tem_bc_state_type), intent(inout) :: bc

The boundary to fill

character(len=*), intent(in) :: state_name

The state variable to set with this boundary condition

integer, intent(in), optional :: nComp

Number of Components in this boundary variable.

character(len=*), intent(in), optional :: style

Style of this boundary condition dirichlet = set value itself neumann = set derivative of value

type(flu_State), intent(in) :: conf
integer, intent(in) :: bc_handle

Handle to the table describing the boundary

type(grw_stringkeyvaluepairarray_type), intent(inout) :: varDict

The dictionary that contains the mapping between expected variables and the actual variables defined by the user.

type(tem_varSys_type), intent(inout) :: varSys
type(tem_varSys_solverData_evalElem_type), intent(in), optional :: solverData_evalElem

A routine that allows the construction of an element representation from a point values.

integer, intent(out), optional :: ErrCode

Error code


Calls

proc~~tem_load_bc_state~~CallsGraph proc~tem_load_bc_state tem_load_bc_state interface~append~24 append proc~tem_load_bc_state->interface~append~24 interface~tem_variable_loadmapping tem_variable_loadMapping proc~tem_load_bc_state->interface~tem_variable_loadmapping proc~aot_exists aot_exists proc~tem_load_bc_state->proc~aot_exists interface~aot_get_val aot_get_val proc~tem_load_bc_state->interface~aot_get_val proc~aot_table_open aot_table_open proc~tem_load_bc_state->proc~aot_table_open proc~aot_table_close aot_table_close proc~tem_load_bc_state->proc~aot_table_close proc~tem_abort tem_abort proc~tem_load_bc_state->proc~tem_abort proc~append_ga_stringkeyvaluepair append_ga_stringkeyvaluepair interface~append~24->proc~append_ga_stringkeyvaluepair proc~append_ga_stringkeyvaluepair_vec append_ga_stringkeyvaluepair_vec interface~append~24->proc~append_ga_stringkeyvaluepair_vec proc~tem_variable_loadmapping_vector tem_variable_loadMapping_vector interface~tem_variable_loadmapping->proc~tem_variable_loadmapping_vector proc~tem_variable_loadmapping_single tem_variable_loadMapping_single interface~tem_variable_loadmapping->proc~tem_variable_loadmapping_single mpi_abort mpi_abort proc~tem_abort->mpi_abort proc~tem_variable_loadmapping_vector->proc~aot_table_open proc~tem_variable_loadmapping_vector->proc~aot_table_close proc~tem_variable_loadmapping_vector->proc~tem_variable_loadmapping_single proc~tem_variable_loadmapping_single->interface~append~24 proc~tem_variable_loadmapping_single->proc~aot_exists proc~tem_variable_loadmapping_single->interface~aot_get_val proc~tem_spacetime_hash_id tem_spacetime_hash_id proc~tem_variable_loadmapping_single->proc~tem_spacetime_hash_id interface~tem_load_spacetime tem_load_spacetime proc~tem_variable_loadmapping_single->interface~tem_load_spacetime interface~tem_varsys_append_stfun tem_varSys_append_stfun proc~tem_variable_loadmapping_single->interface~tem_varsys_append_stfun interface~expand~21 expand proc~append_ga_stringkeyvaluepair->interface~expand~21 proc~append_ga_stringkeyvaluepair_vec->interface~expand~21 proc~aot_fun_id aot_fun_id proc~tem_spacetime_hash_id->proc~aot_fun_id interface~aot_fun_open aot_fun_open proc~tem_spacetime_hash_id->interface~aot_fun_open proc~aot_fun_close aot_fun_close proc~tem_spacetime_hash_id->proc~aot_fun_close proc~expand_ga_stringkeyvaluepair expand_ga_stringkeyvaluepair interface~expand~21->proc~expand_ga_stringkeyvaluepair proc~tem_load_spacetime_single tem_load_spacetime_single interface~tem_load_spacetime->proc~tem_load_spacetime_single proc~tem_load_spacetime_table tem_load_spacetime_table interface~tem_load_spacetime->proc~tem_load_spacetime_table proc~tem_varsys_append_stfunvar tem_varSys_append_stFunVar interface~tem_varsys_append_stfun->proc~tem_varsys_append_stfunvar proc~tem_varsys_append_stfun_raw tem_varSys_append_stFun_raw interface~tem_varsys_append_stfun->proc~tem_varsys_append_stfun_raw

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iError
integer, private :: state_handle
character(len=labelLen), private :: def_style
character(len=labelLen), private :: varname
logical, private :: varExist
type(tem_stringKeyValuePair_type), private :: kvp
real(kind=rk), private :: numtest