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 );
  }
Ejemplo n.º 2
0
  void SpalartAllmarasStabilizationHelper::init( libMesh::FEMSystem& system )
  {
    this->_flow_vars.init(&system);
    this->_turbulence_vars.init(&system);

    // Init the variables belonging to SA helper
    _spalart_allmaras_helper.init_variables(&system);

    this->_dim = system.get_mesh().mesh_dimension();

    return;
  }
Ejemplo n.º 3
0
  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);
      }
  }
Ejemplo n.º 4
0
	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;
	}