www.mooseframework.org
NSImposedVelocityDirectionBC.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 NSIMPOSEDVELOCITYDIRECTIONBC_H
8 #define NSIMPOSEDVELOCITYDIRECTIONBC_H
9 
10 #include "NodalBC.h"
11 
12 // Forward Declarations
14 
15 // Specialization required of all user-level Moose objects
16 template <>
18 
39 class NSImposedVelocityDirectionBC : public NodalBC
40 {
41 public:
42  NSImposedVelocityDirectionBC(const InputParameters & parameters);
43 
44 protected:
45  // NodalBC's can (currently) only specialize the computeQpResidual function,
46  // the computeQpJacobian() function automatically assembles a "1" onto the main
47  // diagonal for this DoF.
48  virtual Real computeQpResidual();
49 
50  // Coupled variables
51  const VariableValue & _rho;
52  const VariableValue & _u_vel;
53  const VariableValue & _v_vel;
54  const VariableValue & _w_vel;
55 
56  // The desired value for the unit velocity component
58 };
59 
60 #endif // NSIMPOSEDVELOCITYDIRECTIONBC_H
NSImposedVelocityDirectionBC(const InputParameters &parameters)
InputParameters validParams< NSImposedVelocityDirectionBC >()
This class imposes a velocity direction component as a Dirichlet condition on the appropriate momentu...