waves
Basic FE playground
flow::F0ElRho Class Reference

Nonlinear density. More...

#include <wF0El.h>

Inheritance diagram for flow::F0ElRho:
Collaboration diagram for flow::F0ElRho:

Public Member Functions

 F0ElRho (double _mInf, double _mC2=5)
 
virtual double eval (tbox::Element const &e, std::vector< double > const &u, size_t k) const override
 Evaluate the nonlinear density (constant over element) More...
 
virtual double evalGrad (tbox::Element const &e, std::vector< double > const &u, size_t k) const override
 Evaluate the nonlinear density derivative (constant over element) More...
 
- Public Member Functions inherited from flow::F0El
 F0El ()
 
virtual ~F0El ()
 

Private Attributes

double gamma
 heat capacity ratio (diatomic gas only) More...
 
double mInf
 freestream Mach number More...
 
double gradUC
 critical velocity More...
 

Detailed Description

Nonlinear density.

The density is limited (Padé approximation) for large value of velocity and particularized for diatomic gas. The input _mC2 is the square of the critical Mach number used to compute the critical velocity.

Constructor & Destructor Documentation

◆ F0ElRho()

flow::F0ElRho::F0ElRho ( double  _mInf,
double  _mC2 = 5 
)
inline

Member Function Documentation

◆ eval()

double F0ElRho::eval ( tbox::Element const &  e,
std::vector< double > const &  u,
size_t  k 
) const
overridevirtual

Evaluate the nonlinear density (constant over element)

Implements flow::F0El.

◆ evalGrad()

double F0ElRho::evalGrad ( tbox::Element const &  e,
std::vector< double > const &  u,
size_t  k 
) const
overridevirtual

Evaluate the nonlinear density derivative (constant over element)

Implements flow::F0El.

Member Data Documentation

◆ gamma

double flow::F0ElRho::gamma
private

heat capacity ratio (diatomic gas only)

◆ gradUC

double flow::F0ElRho::gradUC
private

critical velocity

◆ mInf

double flow::F0ElRho::mInf
private

freestream Mach number


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