www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NSInflowThermalBC Class Reference

This class is used on a boundary where the incoming flow values (rho, u, v, T) are all completely specified. More...

#include <NSInflowThermalBC.h>

Inheritance diagram for NSInflowThermalBC:
[legend]

Public Member Functions

 NSInflowThermalBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const Real _specified_rho
 
const Real _specified_temperature
 
const Real _specified_velocity_magnitude
 
const IdealGasFluidProperties_fp
 

Detailed Description

This class is used on a boundary where the incoming flow values (rho, u, v, T) are all completely specified.

Definition at line 24 of file NSInflowThermalBC.h.

Constructor & Destructor Documentation

NSInflowThermalBC::NSInflowThermalBC ( const InputParameters &  parameters)

Definition at line 31 of file NSInflowThermalBC.C.

32  : NodalBC(parameters),
33  _specified_rho(getParam<Real>("specified_rho")),
34  _specified_temperature(getParam<Real>("specified_temperature")),
35  _specified_velocity_magnitude(getParam<Real>("specified_velocity_magnitude")),
36  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
37 {
38 }
const Real _specified_rho
const IdealGasFluidProperties & _fp
const Real _specified_velocity_magnitude
const Real _specified_temperature

Member Function Documentation

Real NSInflowThermalBC::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file NSInflowThermalBC.C.

42 {
43  // For the total energy, the essential BC is:
44  // rho*E = rho*(c_v*T + 0.5*|u|^2)
45  //
46  // or, in residual form, (In general, this BC is coupled to the velocity variables.)
47  // rho*E - rho*(c_v*T + 0.5*|u|^2) = 0
48  //
49  // ***at a no-slip wall*** this further reduces to (no coupling to velocity variables):
50  // rho*E - rho*cv*T = 0
51  return _u[_qp] -
54 }
const Real _specified_rho
const IdealGasFluidProperties & _fp
virtual Real cv(Real v=0., Real u=0.) const override
Isochoric specific heat.
const Real _specified_velocity_magnitude
const Real _specified_temperature

Member Data Documentation

const IdealGasFluidProperties& NSInflowThermalBC::_fp
protected

Definition at line 46 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

const Real NSInflowThermalBC::_specified_rho
protected

Definition at line 37 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

const Real NSInflowThermalBC::_specified_temperature
protected

Definition at line 40 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

const Real NSInflowThermalBC::_specified_velocity_magnitude
protected

Definition at line 43 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().


The documentation for this class was generated from the following files: