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

Public Member Functions

 AxiConCylBCFactory ()
 
 ~AxiConCylBCFactory ()
 
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...
 

Detailed Description

Definition at line 58 of file test_axi_ns_con_cyl_flow.C.

Constructor & Destructor Documentation

AxiConCylBCFactory::AxiConCylBCFactory ( )
inline

Definition at line 62 of file test_axi_ns_con_cyl_flow.C.

64  { return; };
Object for constructing boundary condition function objects.
Definition: bc_factory.h:50
AxiConCylBCFactory::~AxiConCylBCFactory ( )
inline

Definition at line 66 of file test_axi_ns_con_cyl_flow.C.

66 {return;};

Member Function Documentation

std::multimap< GRINS::PhysicsName, GRINS::DBCContainer > AxiConCylBCFactory::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 170 of file test_axi_ns_con_cyl_flow.C.

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

171 {
172  GRINS::DBCContainer cont;
173  cont.add_var_name( "z_vel" );
174  cont.add_bc_id( 0 );
175  cont.add_bc_id( 2 );
176 
177  std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> > vel_func( new GRINS::ConcentricCylinderProfile );
178 
179  cont.set_func( vel_func );
180 
181 
182  GRINS::DBCContainer cont2;
183  cont2.add_var_name( "z_vel" );
184  cont2.add_bc_id( 0 );
185  cont2.add_bc_id( 2 );
186 
187  std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> >
188  vel_func2( new libMesh::ZeroFunction<libMesh::Number> );
189 
190  cont2.set_func( vel_func2 );
191 
192  std::multimap< GRINS::PhysicsName, GRINS::DBCContainer > mymap;
193 
194  mymap.insert( std::pair<GRINS::PhysicsName, GRINS::DBCContainer >(GRINS::incompressible_navier_stokes, cont) );
195 
196  mymap.insert( std::pair<GRINS::PhysicsName, GRINS::DBCContainer >(GRINS::incompressible_navier_stokes, cont2) );
197 
198  return mymap;
199 }
const PhysicsName incompressible_navier_stokes
Simple helper class to setup general Dirichlet boundary conditions.
Definition: dbc_container.h:49
void add_var_name(const GRINS::VariableName &var)
Add variables that are constrained by the Dirichlet bc.
Definition: dbc_container.C:46
Profile for flow between axially moving concentric cylinders.
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  }

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