コード例 #1
0
  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 );
  }
コード例 #2
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;
	}