Public Member Functions | Private Member Functions | Private Attributes
RaviPetersen Class Reference

Laminar flame speed obtained from Ravi and Petersen's correlation. More...

Inheritance diagram for RaviPetersen:
Inheritance graph
[legend]
Collaboration diagram for RaviPetersen:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("RaviPetersen")
 Runtime type information. More...
 
 RaviPetersen (const dictionary &, const psiuReactionThermo &)
 Construct from dictionary and psiuReactionThermo. More...
 
virtual ~RaviPetersen ()
 Destructor. More...
 
tmp< volScalarFieldoperator() () const
 Return the laminar flame speed [m/s]. More...
 
- Public Member Functions inherited from laminarFlameSpeed
 TypeName ("laminarFlameSpeed")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, laminarFlameSpeed, dictionary,(const dictionary &dict, const psiuReactionThermo &ct),(dict, ct))
 
 laminarFlameSpeed (const dictionary &, const psiuReactionThermo &)
 Construct from dictionary and psiuReactionThermo. More...
 
virtual ~laminarFlameSpeed ()
 Destructor. More...
 

Private Member Functions

void checkPointsMonotonicity (const word &name, const List< scalar > &x) const
 Check that input points are ordered. More...
 
void checkCoefficientArrayShape (const word &name, const List< List< List< scalar > > > &x) const
 Check that the coefficient arrays are of the correct shape. More...
 
bool interval (const List< scalar > &xPoints, const scalar x, label &xIndex, scalar &xXi, scalar &xLim) const
 Find and interpolate a value in the data point arrays. More...
 
scalar polynomial (const List< scalar > &coeffs, const scalar x) const
 Evaluate a polynomial. More...
 
scalar dPolynomial (const List< scalar > &coeffs, const scalar x) const
 Evaluate a polynomial differential. More...
 
scalar THatPowB (const label EqRIndex, const label pIndex, const scalar EqR, const scalar Tu) const
 Calculate normalised temperature to the power of the B polynomial. More...
 
scalar correlationInRange (const label EqRIndex, const label pIndex, const scalar EqR, const scalar Tu) const
 Return the flame speed within the correlation range. More...
 
scalar correlationOutOfRange (const label EqRIndex, const label pIndex, const scalar EqR, const scalar EqRLim, const scalar Tu) const
 Extrapolate the flame speed correlation outside its range. More...
 
scalar speed (const scalar EqR, const scalar p, const scalar Tu) const
 Return the laminar flame speed [m/s]. More...
 
 RaviPetersen (const RaviPetersen &)
 Construct as copy (not implemented) More...
 
void operator= (const RaviPetersen &)
 

Private Attributes

dictionary coeffsDict_
 
List< scalar > pPoints_
 Correlation pressure values. More...
 
List< scalar > EqRPoints_
 Correlation equivalence ratios. More...
 
List< List< List< scalar > > > alpha_
 Correlation alpha coefficients. More...
 
List< List< List< scalar > > > beta_
 Correlation beta coefficients. More...
 
scalar TRef_
 Reference temperature. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from laminarFlameSpeed
static autoPtr< laminarFlameSpeedNew (const psiuReactionThermo &)
 
- Protected Attributes inherited from laminarFlameSpeed
const psiuReactionThermopsiuReactionThermo_
 
word fuel_
 Fuel. More...
 
scalar equivalenceRatio_
 Equivalence ratio of a homogeneous mixture. More...
 

Detailed Description

Laminar flame speed obtained from Ravi and Petersen's correlation.

The correlation for the laminar flame speed $Su$ is of the following form:

\[ Su = \left( \sum \alpha_i \phi^i \right) \left( \frac{T}{T_{ref}} \right)^{\left( \sum \beta_j \phi^j \right)} \]

Where $\phi$ is the equivalence ratio, and $\alpha$ and $\beta$ are polynomial coefficients given for a number of pressure and equivalence ratio points.

Source files

Definition at line 61 of file RaviPetersen.H.

Constructor & Destructor Documentation

◆ RaviPetersen() [1/2]

RaviPetersen ( const RaviPetersen )
private

Construct as copy (not implemented)

◆ RaviPetersen() [2/2]

RaviPetersen ( const dictionary dict,
const psiuReactionThermo ct 
)

Construct from dictionary and psiuReactionThermo.

Definition at line 50 of file RaviPetersen.C.

◆ ~RaviPetersen()

~RaviPetersen ( )
virtual

Destructor.

Definition at line 72 of file RaviPetersen.C.

Member Function Documentation

◆ checkPointsMonotonicity()

void checkPointsMonotonicity ( const word name,
const List< scalar > &  x 
) const
private

Check that input points are ordered.

Definition at line 79 of file RaviPetersen.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::name(), and x.

Here is the call graph for this function:

◆ checkCoefficientArrayShape()

void checkCoefficientArrayShape ( const word name,
const List< List< List< scalar > > > &  x 
) const
private

Check that the coefficient arrays are of the correct shape.

Definition at line 100 of file RaviPetersen.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, Foam::name(), and x.

Here is the call graph for this function:

◆ interval()

bool interval ( const List< scalar > &  xPoints,
const scalar  x,
label xIndex,
scalar &  xXi,
scalar &  xLim 
) const
inlineprivate

Find and interpolate a value in the data point arrays.

Definition at line 131 of file RaviPetersen.C.

References List::size(), and x.

Here is the call graph for this function:

◆ polynomial()

Foam::scalar polynomial ( const List< scalar > &  coeffs,
const scalar  x 
) const
inlineprivate

Evaluate a polynomial.

Definition at line 168 of file RaviPetersen.C.

References forAll, x, and y.

◆ dPolynomial()

Foam::scalar dPolynomial ( const List< scalar > &  coeffs,
const scalar  x 
) const
inlineprivate

Evaluate a polynomial differential.

Definition at line 185 of file RaviPetersen.C.

References List::size(), x, and y.

Here is the call graph for this function:

◆ THatPowB()

Foam::scalar THatPowB ( const label  EqRIndex,
const label  pIndex,
const scalar  EqR,
const scalar  Tu 
) const
inlineprivate

Calculate normalised temperature to the power of the B polynomial.

Definition at line 202 of file RaviPetersen.C.

References Foam::pow().

Here is the call graph for this function:

◆ correlationInRange()

Foam::scalar correlationInRange ( const label  EqRIndex,
const label  pIndex,
const scalar  EqR,
const scalar  Tu 
) const
inlineprivate

Return the flame speed within the correlation range.

Definition at line 219 of file RaviPetersen.C.

◆ correlationOutOfRange()

Foam::scalar correlationOutOfRange ( const label  EqRIndex,
const label  pIndex,
const scalar  EqR,
const scalar  EqRLim,
const scalar  Tu 
) const
inlineprivate

Extrapolate the flame speed correlation outside its range.

Definition at line 235 of file RaviPetersen.C.

References A(), Foam::log(), and Foam::max().

Here is the call graph for this function:

◆ speed()

Foam::scalar speed ( const scalar  EqR,
const scalar  p,
const scalar  Tu 
) const
inlineprivate

Return the laminar flame speed [m/s].

Definition at line 254 of file RaviPetersen.C.

References p, s(), and Foam::fvc::Su().

Here is the call graph for this function:

◆ operator=()

void operator= ( const RaviPetersen )
private

◆ TypeName()

TypeName ( "RaviPetersen"  )

Runtime type information.

◆ operator()()

Foam::tmp< Foam::volScalarField > operator() ( ) const
virtual

Return the laminar flame speed [m/s].

Implements laminarFlameSpeed.

Definition at line 293 of file RaviPetersen.C.

References Foam::dimless, Foam::dimVelocity, forAll, Foam::max(), IOobject::NO_READ, IOobject::NO_WRITE, and p.

Here is the call graph for this function:

Field Documentation

◆ coeffsDict_

dictionary coeffsDict_
private

Definition at line 67 of file RaviPetersen.H.

◆ pPoints_

List<scalar> pPoints_
private

Correlation pressure values.

Definition at line 70 of file RaviPetersen.H.

◆ EqRPoints_

List<scalar> EqRPoints_
private

Correlation equivalence ratios.

Definition at line 73 of file RaviPetersen.H.

◆ alpha_

List<List<List<scalar> > > alpha_
private

Correlation alpha coefficients.

Definition at line 76 of file RaviPetersen.H.

◆ beta_

List<List<List<scalar> > > beta_
private

Correlation beta coefficients.

Definition at line 79 of file RaviPetersen.H.

◆ TRef_

scalar TRef_
private

Reference temperature.

Definition at line 82 of file RaviPetersen.H.


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