GRINS-0.6.0
Public Member Functions | Private Attributes | List of all members
TurbulentBCFactory Class Reference
Inheritance diagram for TurbulentBCFactory:
Inheritance graph
[legend]
Collaboration diagram for TurbulentBCFactory:
Collaboration graph
[legend]

Public Member Functions

 TurbulentBCFactory (libMesh::MeshFunction *_turbulent_bc_values)
 
 ~TurbulentBCFactory ()
 
std::multimap< GRINS::PhysicsName, GRINS::DBCContainerbuild_dirichlet ()
 Builds all required libMesh::DirichletBoundary objects and adds them to DofMap. More...
 
virtual std::map< GRINS::PhysicsName, GRINS::NBCContainerbuild_neumann (libMesh::EquationSystems &equation_system)
 Builds all Neumann boundary condition function objects needed. More...
 

Private Attributes

libMesh::MeshFunction * turbulent_bc_values
 

Detailed Description

Definition at line 62 of file test_turbulent_channel.C.

Constructor & Destructor Documentation

TurbulentBCFactory::TurbulentBCFactory ( libMesh::MeshFunction *  _turbulent_bc_values)
inline

Definition at line 66 of file test_turbulent_channel.C.

68  turbulent_bc_values(_turbulent_bc_values)
69  { return; };
Object for constructing boundary condition function objects.
Definition: bc_factory.h:50
libMesh::MeshFunction * turbulent_bc_values
TurbulentBCFactory::~TurbulentBCFactory ( )
inline

Definition at line 71 of file test_turbulent_channel.C.

71 {return;};

Member Function Documentation

std::multimap< GRINS::PhysicsName, GRINS::DBCContainer > TurbulentBCFactory::build_dirichlet ( )
virtual

Builds all required libMesh::DirichletBoundary objects and adds them to DofMap.

This needs to be done for all the physics in the simulation, for all "special" dirichlet boundary conditions.

Reimplemented from GRINS::BoundaryConditionsFactory.

Definition at line 385 of file test_turbulent_channel.C.

References GRINS::DBCContainer::add_bc_id(), GRINS::DBCContainer::add_var_name(), GRINS::incompressible_navier_stokes, GRINS::DBCContainer::set_func(), GRINS::spalart_allmaras, and turbulent_bc_values.

386 {
387  std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> > turbulent_inlet_u( new TurbulentBdyFunctionU(this->turbulent_bc_values) );
388 
389  std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> > turbulent_inlet_nu( new TurbulentBdyFunctionNu(this->turbulent_bc_values) );
390 
391  GRINS::DBCContainer cont_u;
392  cont_u.add_var_name( "u" );
393  cont_u.add_bc_id( 3 );
394 
395  cont_u.set_func( turbulent_inlet_u );
396 
397  GRINS::DBCContainer cont_nu;
398  cont_nu.add_var_name( "nu" );
399  cont_nu.add_bc_id( 3 );
400 
401  cont_nu.set_func( turbulent_inlet_nu );
402 
403  std::multimap< GRINS::PhysicsName, GRINS::DBCContainer > mymap;
404 
405  mymap.insert( std::pair<GRINS::PhysicsName, GRINS::DBCContainer >(GRINS::incompressible_navier_stokes, cont_u) );
406 
407  mymap.insert( std::pair<GRINS::PhysicsName, GRINS::DBCContainer >(GRINS::spalart_allmaras, cont_nu) );
408 
409  return mymap;
410 }
const PhysicsName incompressible_navier_stokes
Simple helper class to setup general Dirichlet boundary conditions.
Definition: dbc_container.h:49
const PhysicsName spalart_allmaras
void add_var_name(const GRINS::VariableName &var)
Add variables that are constrained by the Dirichlet bc.
Definition: dbc_container.C:46
libMesh::MeshFunction * turbulent_bc_values
void add_bc_id(const GRINS::BoundaryID bc_id)
Add boundary id's for which this Dirichlet bc is to be applied.
Definition: dbc_container.C:52
void set_func(std::tr1::shared_ptr< libMesh::FunctionBase< libMesh::Number > > func)
Add the Dirichlet bc functor.
Definition: dbc_container.C:58
std::map< PhysicsName, NBCContainer > GRINS::BoundaryConditionsFactory::build_neumann ( libMesh::EquationSystems &  equation_system)
virtualinherited

Builds all Neumann boundary condition function objects needed.

This is done for each physics. Thus, the container returned maps between each physics and set of Neumann boundary conditions for that physics.

Reimplemented in GRINS::ThermallyDrivenFlowTestBCFactory.

Definition at line 47 of file bc_factory.C.

48  {
49  return std::map< PhysicsName, NBCContainer >();
50  }

Member Data Documentation

libMesh::MeshFunction* TurbulentBCFactory::turbulent_bc_values
private

Definition at line 77 of file test_turbulent_channel.C.

Referenced by build_dirichlet().


The documentation for this class was generated from the following file:

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