void GasRecombinationCatalyticWall<Chemistry>::init( const libMesh::FEMSystem& system ) { libmesh_do_once(libmesh_deprecated()); const std::string r_var_name = std::string("w_"+this->_chemistry.species_name( this->_reactant_species_idx ) ); const std::string p_var_name = std::string("w_"+this->_chemistry.species_name( this->_product_species_idx ) ); libmesh_assert( system.has_variable( r_var_name ) ); libmesh_assert( system.has_variable( p_var_name ) ); this->_reactant_var_idx = system.variable_number( r_var_name ); this->_product_var_idx = system.variable_number( p_var_name ); }
void ICHandlingBase::init_ic_data( const libMesh::FEMSystem& system, libMesh::CompositeFunction<libMesh::Number>& all_ics ) { if (this->get_ic_func()) { std::vector<unsigned int> index_map; libmesh_assert(_subfunction_variables.size()); for (unsigned int i=0; i != _subfunction_variables.size(); ++i) index_map.push_back (system.variable_number(_subfunction_variables[i])); all_ics.attach_subfunction(*this->get_ic_func(), index_map); } }
void PracticeBCHandling::init_bc_data( const libMesh::FEMSystem& system ){ libmesh_assert( system.has_variable("c")); _c_var = system.variable_number("c"); if(system.has_variable("zc")){ _zc_var = system.variable_number("zc"); _has_zc = true; } else _has_zc = false; if(system.has_variable("fc")){ _fc_var = system.variable_number("fc"); _has_fc = true; } else _has_fc = false; if(system.has_variable("auxc")){ _aux_c_var = system.variable_number("auxc"); _has_auxc = true; } else _has_auxc = false; if(system.has_variable("auxzc")){ _aux_zc_var = system.variable_number("auxzc"); _has_auxzc = true; } else _has_auxzc = false; if(system.has_variable("auxfc")){ _aux_fc_var = system.variable_number("auxfc"); _has_auxfc = true; } else _has_auxfc = false; return; }