www.mooseframework.org
AddNavierStokesBCsAction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef ADDNAVIERSTOKESBCSACTION_H
8 #define ADDNAVIERSTOKESBCSACTION_H
9 
10 #include "MooseObjectAction.h"
11 
13 
14 template <>
16 
48 class AddNavierStokesBCsAction : public MooseObjectAction
49 {
50 public:
51  AddNavierStokesBCsAction(InputParameters parameters);
52  virtual ~AddNavierStokesBCsAction();
53 
54  virtual void act();
55 
56 protected:
57  unsigned int _dim;
58 
59  // Helper functions that add the various weak stagnation BCs.
62  void addNSMomentumWeakStagnationBC(unsigned int component);
63 
64  // Helper function that adds the no-penetration BCs
65  void addNoPenetrationBC(unsigned int component);
66 
67  // Helper function that adds the static pressure outlet BCs
71 
72  // Helper function that sets the parameters which are common to all NSKernels.
73  void setCommonParams(InputParameters & params);
74 
75  // Couple the appropriate number (depending on the _dim) of velocity/momentum
76  // components into a Kernel.
77  void coupleVelocities(InputParameters & params);
78  void coupleMomentums(InputParameters & params);
79 
80  // Type that we use in Actions for declaring coupling
81  typedef std::vector<VariableName> CoupledName;
82 };
83 
84 #endif
void coupleMomentums(InputParameters &params)
void addNSMomentumWeakStagnationBC(unsigned int component)
void setCommonParams(InputParameters &params)
Real component(const SymmTensor &symm_tensor, unsigned int index)
void addNoPenetrationBC(unsigned int component)
AddNavierStokesBCsAction(InputParameters parameters)
void addNSMomentumInviscidSpecifiedPressureBC(unsigned int component)
This class allows us to have a section of the input file like the following which adds BC objects for...
std::vector< VariableName > CoupledName
InputParameters validParams< AddNavierStokesBCsAction >()
void coupleVelocities(InputParameters &params)