GRINS-0.6.0
low_mach_navier_stokes_bc_handling.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef GRINS_LOW_MACH_NAVIER_STOKES_BC_HANDLING_H
26 #define GRINS_LOW_MACH_NAVIER_STOKES_BC_HANDLING_H
27 
28 //GRINS
29 #include "grins/bc_handling_base.h"
31 
32 namespace GRINS
33 {
36  {
37  public:
38 
39  LowMachNavierStokesBCHandling( const std::string& physics_name, const GetPot& input );
40 
42 
43  virtual int string_to_int( const std::string& bc_type_in ) const;
44 
45  virtual void init_bc_data( const libMesh::FEMSystem& system );
46 
47  virtual void init_bc_types( const GRINS::BoundaryID bc_id,
48  const std::string& bc_id_string,
49  const int bc_type,
50  const std::string& bc_vars,
51  const std::string& bc_value,
52  const GetPot& input );
53 
54  virtual void user_init_dirichlet_bcs( libMesh::FEMSystem* system, libMesh::DofMap& dof_map,
55  GRINS::BoundaryID bc_id, GRINS::BCType bc_type ) const;
56 
57  void set_temp_bc_type( GRINS::BoundaryID bc_id, int bc_type );
58  void set_temp_bc_value( GRINS::BoundaryID bc_id, libMesh::Real value );
59  libMesh::Real get_temp_bc_value( GRINS::BoundaryID bc_id ) const;
60 
61  virtual void init_dirichlet_bcs( libMesh::FEMSystem* system ) const;
62 
63  protected:
64 
66 
68 
69  // We need a second container to stash dirichlet values for the energy equation
70  std::map< GRINS::BoundaryID, libMesh::Real > _T_values;
71 
72  // We also need another map container
73  std::vector<std::pair<BoundaryID,BCType> > _temp_bc_map;
74 
75  private:
76 
78 
90 
91  };
92 
93 } // end namespace GRINS
94 #endif // GRINS_LOW_MACH_NAVIER_STOKES_BC_HANDLING_H
virtual void init_dirichlet_bcs(libMesh::FEMSystem *system) const
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
Base class for reading and handling boundary conditions for physics classes.
virtual void user_init_dirichlet_bcs(libMesh::FEMSystem *system, libMesh::DofMap &dof_map, GRINS::BoundaryID bc_id, GRINS::BCType bc_type) const
libMesh::boundary_id_type BoundaryID
More descriptive name of the type used for boundary ids.
Definition: var_typedefs.h:54
libMesh::Real get_temp_bc_value(GRINS::BoundaryID bc_id) const
GRINS namespace.
virtual void init_bc_types(const GRINS::BoundaryID bc_id, const std::string &bc_id_string, const int bc_type, const std::string &bc_vars, const std::string &bc_value, const GetPot &input)
std::map< GRINS::BoundaryID, libMesh::Real > _T_values
void set_temp_bc_value(GRINS::BoundaryID bc_id, libMesh::Real value)
std::vector< std::pair< BoundaryID, BCType > > _temp_bc_map
virtual int string_to_int(const std::string &bc_type_in) const
virtual void init_bc_data(const libMesh::FEMSystem &system)
Override this method to initialize any system-dependent data.
Base class for reading and handling boundary conditions for physics classes.
void set_temp_bc_type(GRINS::BoundaryID bc_id, int bc_type)
int BCType
Definition: bc_types.h:32

Generated on Mon Jun 22 2015 21:32:19 for GRINS-0.6.0 by  doxygen 1.8.9.1