www.mooseframework.org
NSImposedVelocityBC.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 NSIMPOSEDVELOCITYBC_H
8 #define NSIMPOSEDVELOCITYBC_H
9 
10 // The base class definition (part of MOOSE)
11 #include "NodalBC.h"
12 
13 // Forward Declarations
15 
16 // Specialization required of all user-level Moose objects
17 template <>
18 InputParameters validParams<NSImposedVelocityBC>();
19 
20 class NSImposedVelocityBC : public NodalBC
21 {
22 public:
23  NSImposedVelocityBC(const InputParameters & parameters);
24 
25 protected:
26  // NodalBC's can (currently) only override the computeQpResidual function,
27  // the computeQpJacobian() function automatically assembles a "1" onto the main
28  // diagonal for this DoF.
29  virtual Real computeQpResidual();
30 
31  // We need the density, since we are actually setting essential values of
32  // *momentum* not essential values of velocity.
33  const VariableValue & _rho;
34 
35  // The desired value for the velocity component
37 };
38 
39 #endif // NSIMPOSEDVELOCITYBC_H
const VariableValue & _rho
InputParameters validParams< NSImposedVelocityBC >()
virtual Real computeQpResidual()
NSImposedVelocityBC(const InputParameters &parameters)