Loading...
Searching...
No Matches
APIdiffCoefFunc Class Reference

API function for vapour mass diffusivity. More...

#include <APIdiffCoefFunc.H>

Inheritance diagram for APIdiffCoefFunc:
Collaboration diagram for APIdiffCoefFunc:

Public Member Functions

 TypeName ("APIdiffCoefFunc")
 Runtime type information.
 APIdiffCoefFunc (const scalar a, const scalar b, const scalar wf, const scalar wa)
 Construct from components.
 APIdiffCoefFunc (const dictionary &dict)
 Construct from dictionary.
scalar f (scalar p, scalar T) const
 API vapour mass diffusivity function using properties from.
scalar f (scalar p, scalar T, scalar Wa) const
 API vapour mass diffusivity function using properties from.
void writeData (Ostream &os) const
 Write the function coefficients.
Public Member Functions inherited from thermophysicalFunction
 TypeName ("thermophysicalFunction")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, thermophysicalFunction, Istream,(Istream &is),(is))
 declareRunTimeSelectionTable (autoPtr, thermophysicalFunction, dictionary,(const dictionary &dict),(dict))
 thermophysicalFunction ()
 Construct null.
virtual ~thermophysicalFunction ()=default
 Destructor.

Friends

Ostreamoperator<< (Ostream &os, const APIdiffCoefFunc &f)

Additional Inherited Members

Static Public Member Functions inherited from thermophysicalFunction
static autoPtr< thermophysicalFunctionNew (Istream &is)
 Return pointer to new thermophysicalFunction created from input.
static autoPtr< thermophysicalFunctionNew (const dictionary &dict)
 Return pointer to new thermophysicalFunction created from dict.

Detailed Description

API function for vapour mass diffusivity.

Source:

        API (American Petroleum Institute)
                Technical Data Book

Definition at line 47 of file APIdiffCoefFunc.H.

Constructor & Destructor Documentation

◆ APIdiffCoefFunc() [1/2]

APIdiffCoefFunc ( const scalar a,
const scalar b,
const scalar wf,
const scalar wa )

Construct from components.

Definition at line 39 of file APIdiffCoefFunc.C.

References b, Foam::cbrt(), Foam::sqr(), and Foam::sqrt().

Referenced by operator<<.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ APIdiffCoefFunc() [2/2]

APIdiffCoefFunc ( const dictionary & dict)

Construct from dictionary.

Definition at line 56 of file APIdiffCoefFunc.C.

References Foam::cbrt(), dict, Foam::sqr(), and Foam::sqrt().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "APIdiffCoefFunc" )

Runtime type information.

References b, and dict.

◆ f() [1/2]

scalar f ( scalar p,
scalar T ) const
inlinevirtual

API vapour mass diffusivity function using properties from.

construction

Implements thermophysicalFunction.

Definition at line 94 of file APIdiffCoefFunc.H.

References p, Foam::pow(), and Foam::T().

Referenced by operator<<.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f() [2/2]

scalar f ( scalar p,
scalar T,
scalar Wa ) const
inline

API vapour mass diffusivity function using properties from.

construction - with specified binary pair

Definition at line 104 of file APIdiffCoefFunc.H.

References p, Foam::pow(), Foam::sqrt(), and Foam::T().

Here is the call graph for this function:

◆ writeData()

void writeData ( Ostream & os) const
inlinevirtual

Write the function coefficients.

Implements thermophysicalFunction.

Definition at line 113 of file APIdiffCoefFunc.H.

References os(), and token::SPACE.

Here is the call graph for this function:

◆ operator<<

Ostream & operator<< ( Ostream & os,
const APIdiffCoefFunc & f )
friend

Definition at line 124 of file APIdiffCoefFunc.H.

References APIdiffCoefFunc(), f(), and os().


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/APIfunctions/APIdiffCoefFunc/APIdiffCoefFunc.H
  • src/thermophysicalModels/thermophysicalProperties/thermophysicalFunctions/APIfunctions/APIdiffCoefFunc/APIdiffCoefFunc.C