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

This Dirichlet condition imposes the condition T_0 = T_0_desired, where T_0 is the stagnation temperature, defined as: T_0 = T * (1 + (gam-1)/2 * M^2) More...

#include <NSStagnationTemperatureBC.h>

Inheritance diagram for NSStagnationTemperatureBC:
[legend]

Public Member Functions

 NSStagnationTemperatureBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const VariableValue & _temperature
 
const Real _desired_stagnation_temperature
 
const VariableValue & _mach
 
const IdealGasFluidProperties_fp
 

Detailed Description

This Dirichlet condition imposes the condition T_0 = T_0_desired, where T_0 is the stagnation temperature, defined as: T_0 = T * (1 + (gam-1)/2 * M^2)

Definition at line 23 of file NSStagnationTemperatureBC.h.

Constructor & Destructor Documentation

NSStagnationTemperatureBC::NSStagnationTemperatureBC ( const InputParameters &  parameters)

Definition at line 26 of file NSStagnationTemperatureBC.C.

27  : NSStagnationBC(parameters),
28  _temperature(coupledValue(NS::temperature)),
29  _desired_stagnation_temperature(getParam<Real>("desired_stagnation_temperature"))
30 {
31 }
NSStagnationBC(const InputParameters &parameters)
const std::string temperature
Definition: NS.h:25
const VariableValue & _temperature

Member Function Documentation

Real NSStagnationTemperatureBC::computeQpResidual ( )
protectedvirtual

Definition at line 34 of file NSStagnationTemperatureBC.C.

35 {
36  // T_0 = T*(1 + 0.5*(gam-1)*M^2)
37  Real computed_stagnation_temperature =
38  _temperature[_qp] * (1. + 0.5 * (_fp.gamma() - 1.) * _mach[_qp] * _mach[_qp]);
39 
40  // Return the difference between the current solution's stagnation temperature
41  // and the desired. The Dirichlet condition asserts that these should be equal.
42  return computed_stagnation_temperature - _desired_stagnation_temperature;
43 }
const VariableValue & _mach
virtual Real gamma(Real v=0., Real u=0.) const override
Compute the ratio of specific heats.
const VariableValue & _temperature
const IdealGasFluidProperties & _fp

Member Data Documentation

const Real NSStagnationTemperatureBC::_desired_stagnation_temperature
protected

Definition at line 37 of file NSStagnationTemperatureBC.h.

Referenced by computeQpResidual().

const IdealGasFluidProperties& NSStagnationBC::_fp
protectedinherited
const VariableValue& NSStagnationBC::_mach
protectedinherited
const VariableValue& NSStagnationTemperatureBC::_temperature
protected

Definition at line 34 of file NSStagnationTemperatureBC.h.

Referenced by computeQpResidual().


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