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