www.mooseframework.org
navier_stokes
include
bcs
NSThermalBC.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
15
class
NSThermalBC
;
16
class
IdealGasFluidProperties
;
17
18
template
<>
19
InputParameters
validParams<NSThermalBC>
();
20
21
class
NSThermalBC
:
public
NodalBC
22
{
23
public
:
24
NSThermalBC
(
const
InputParameters & parameters);
25
26
protected
:
27
// Computes the temperature based on ideal gas equation of state,
28
// the total energy, and the velocity: T = e_i/c_v
29
virtual
Real
computeQpResidual
();
30
31
unsigned
int
_rho_var
;
32
const
VariableValue &
_rho
;
33
34
Real
_initial
;
35
Real
_final
;
36
Real
_duration
;
37
38
// Fluid properties
39
const
IdealGasFluidProperties
&
_fp
;
40
};
41
NSThermalBC
Definition:
NSThermalBC.h:21
NSThermalBC::NSThermalBC
NSThermalBC(const InputParameters ¶meters)
Definition:
NSThermalBC.C:35
IdealGasFluidProperties
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
Definition:
IdealGasFluidProperties.h:26
NSThermalBC::_initial
Real _initial
Definition:
NSThermalBC.h:34
NSThermalBC::_fp
const IdealGasFluidProperties & _fp
Definition:
NSThermalBC.h:39
validParams< NSThermalBC >
InputParameters validParams< NSThermalBC >()
Definition:
NSThermalBC.C:21
NSThermalBC::computeQpResidual
virtual Real computeQpResidual()
Definition:
NSThermalBC.C:47
NSThermalBC::_duration
Real _duration
Definition:
NSThermalBC.h:36
NSThermalBC::_rho_var
unsigned int _rho_var
Definition:
NSThermalBC.h:31
NSThermalBC::_final
Real _final
Definition:
NSThermalBC.h:35
NSThermalBC::_rho
const VariableValue & _rho
Definition:
NSThermalBC.h:32
Generated on Sat Jan 25 2020 12:04:37 for www.mooseframework.org by
1.8.16