www.mooseframework.org
navier_stokes
include
bcs
NSStagnationPressureBC.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 "
NSStagnationBC.h
"
13
14
// Forward Declarations
15
class
NSStagnationPressureBC
;
16
17
// Specialization required of all user-level Moose objects
18
template
<>
19
InputParameters
validParams<NSStagnationPressureBC>
();
20
26
class
NSStagnationPressureBC
:
public
NSStagnationBC
27
{
28
public
:
29
NSStagnationPressureBC
(
const
InputParameters & parameters);
30
31
protected
:
32
// NodalBC's can (currently) only specialize the computeQpResidual function,
33
// the computeQpJacobian() function automatically assembles a "1" onto the main
34
// diagonal for this DoF.
35
virtual
Real
computeQpResidual
();
36
37
// Coupled variables
38
const
VariableValue &
_pressure
;
39
40
// Required paramters
41
const
Real
_desired_stagnation_pressure
;
42
};
43
NSStagnationBC
This is the base class for the "imposed stagnation" value boundary conditions.
Definition:
NSStagnationBC.h:27
NSStagnationPressureBC::_pressure
const VariableValue & _pressure
Definition:
NSStagnationPressureBC.h:38
validParams< NSStagnationPressureBC >
InputParameters validParams< NSStagnationPressureBC >()
Definition:
NSStagnationPressureBC.C:22
NSStagnationPressureBC::computeQpResidual
virtual Real computeQpResidual()
Definition:
NSStagnationPressureBC.C:39
NSStagnationPressureBC::NSStagnationPressureBC
NSStagnationPressureBC(const InputParameters ¶meters)
Definition:
NSStagnationPressureBC.C:31
NSStagnationBC.h
NSStagnationPressureBC::_desired_stagnation_pressure
const Real _desired_stagnation_pressure
Definition:
NSStagnationPressureBC.h:41
NSStagnationPressureBC
This Dirichlet condition imposes the condition p_0 = p_0_desired, where p_0 is the stagnation pressur...
Definition:
NSStagnationPressureBC.h:26
Generated on Sat Jan 25 2020 12:04:37 for www.mooseframework.org by
1.8.16