www.mooseframework.org
navier_stokes
include
bcs
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
16
17
// Specialization required of all user-level Moose objects
18
19
class
NSImposedVelocityBC
:
public
NodalBC
20
{
21
public
:
22
static
InputParameters
validParams
();
23
24
NSImposedVelocityBC
(
const
InputParameters
&
parameters
);
25
26
protected
:
27
// NodalBC's can (currently) only override the computeQpResidual function,
28
// the computeQpJacobian() function automatically assembles a "1" onto the main
29
// diagonal for this DoF.
30
virtual
Real
computeQpResidual
();
31
32
// We need the density, since we are actually setting essential values of
33
// *momentum* not essential values of velocity.
34
const
VariableValue
&
_rho
;
35
36
// The desired value for the velocity component
37
Real
_desired_velocity
;
38
};
NSImposedVelocityBC::_rho
const VariableValue & _rho
Definition:
NSImposedVelocityBC.h:34
NodalBC
NSImposedVelocityBC::computeQpResidual
virtual Real computeQpResidual()
Definition:
NSImposedVelocityBC.C:34
InputParameters
NSImposedVelocityBC
Definition:
NSImposedVelocityBC.h:19
VariableValue
OutputTools< Real >::VariableValue VariableValue
NodalBC.h
NSImposedVelocityBC::validParams
static InputParameters validParams()
Definition:
NSImposedVelocityBC.C:17
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NSImposedVelocityBC::_desired_velocity
Real _desired_velocity
Definition:
NSImposedVelocityBC.h:37
NodalBC::parameters
const InputParameters & parameters() const
NSImposedVelocityBC::NSImposedVelocityBC
NSImposedVelocityBC(const InputParameters ¶meters)
Definition:
NSImposedVelocityBC.C:26
Generated on Wed Mar 27 2024 17:59:10 for www.mooseframework.org by
1.8.14