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 27 of file NSInflowThermalBC.h.

Constructor & Destructor Documentation

◆ NSInflowThermalBC()

NSInflowThermalBC::NSInflowThermalBC ( const InputParameters &  parameters)

Definition at line 35 of file NSInflowThermalBC.C.

36  : NodalBC(parameters),
37  _specified_rho(getParam<Real>("specified_rho")),
38  _specified_temperature(getParam<Real>("specified_temperature")),
39  _specified_velocity_magnitude(getParam<Real>("specified_velocity_magnitude")),
40  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
41 {
42 }
const Real _specified_rho
const IdealGasFluidProperties & _fp
const Real _specified_velocity_magnitude
const Real _specified_temperature

Member Function Documentation

◆ computeQpResidual()

Real NSInflowThermalBC::computeQpResidual ( )
protectedvirtual

Definition at line 45 of file NSInflowThermalBC.C.

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

Member Data Documentation

◆ _fp

const IdealGasFluidProperties& NSInflowThermalBC::_fp
protected

Definition at line 49 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

◆ _specified_rho

const Real NSInflowThermalBC::_specified_rho
protected

Definition at line 40 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

◆ _specified_temperature

const Real NSInflowThermalBC::_specified_temperature
protected

Definition at line 43 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().

◆ _specified_velocity_magnitude

const Real NSInflowThermalBC::_specified_velocity_magnitude
protected

Definition at line 46 of file NSInflowThermalBC.h.

Referenced by computeQpResidual().


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