www.mooseframework.org
NSImposedVelocityBC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // The base class definition (part of MOOSE)
13 #include "NodalBC.h"
14 
15 // Forward Declarations
17 
18 // Specialization required of all user-level Moose objects
19 template <>
20 InputParameters validParams<NSImposedVelocityBC>();
21 
22 class NSImposedVelocityBC : public NodalBC
23 {
24 public:
25  NSImposedVelocityBC(const InputParameters & parameters);
26 
27 protected:
28  // NodalBC's can (currently) only override the computeQpResidual function,
29  // the computeQpJacobian() function automatically assembles a "1" onto the main
30  // diagonal for this DoF.
31  virtual Real computeQpResidual();
32 
33  // We need the density, since we are actually setting essential values of
34  // *momentum* not essential values of velocity.
35  const VariableValue & _rho;
36 
37  // The desired value for the velocity component
39 };
40 
NSImposedVelocityBC::NSImposedVelocityBC
NSImposedVelocityBC(const InputParameters &parameters)
Definition: NSImposedVelocityBC.C:27
NSImposedVelocityBC
Definition: NSImposedVelocityBC.h:22
NSImposedVelocityBC::_rho
const VariableValue & _rho
Definition: NSImposedVelocityBC.h:35
validParams< NSImposedVelocityBC >
InputParameters validParams< NSImposedVelocityBC >()
Definition: NSImposedVelocityBC.C:18
NSImposedVelocityBC::computeQpResidual
virtual Real computeQpResidual()
Definition: NSImposedVelocityBC.C:35
NSImposedVelocityBC::_desired_velocity
Real _desired_velocity
Definition: NSImposedVelocityBC.h:38