Public Member Functions | List of all members
externalFileSource Class Reference

Applies sources on a specified field within a specified region by using an external table file for compressible flows. More...

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

Public Member Functions

 TypeName ("externalFileSource")
 
 externalFileSource (const word &sourceName, const word &modelType, const dictionary &dict, const fvPatch &patch)
 
 externalFileSource (const externalFileSource &)=delete
 
void operator= (const externalFileSource &)=delete
 
virtual ~externalFileSource ()=default
 
virtual void addSup (const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi)
 
virtual bool read (const dictionary &dict)
 
- Public Member Functions inherited from faceSetOption
 TypeName ("faceSetOption")
 
 faceSetOption (const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch)
 
virtual ~faceSetOption ()=default
 
scalar timeStart () const noexcept
 
scalar duration () const noexcept
 
bool inTimeLimits (const scalar timeValue) const
 
selectionModeType selectionMode () const noexcept
 
bool useSubMesh () const noexcept
 
const wordfaceSetName () const noexcept
 
scalar A () const noexcept
 
const labelListfaces () const noexcept
 
scalar timeStart (scalar val) noexcept
 
scalar duration (scalar val) noexcept
 
virtual bool isActive ()
 
- Public Member Functions inherited from option
 TypeName ("option")
 
 declareRunTimeSelectionTable (autoPtr, option, dictionary,(const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch),(name, modelType, dict, patch))
 
 option (const word &name, const word &modelType, const dictionary &dict, const fvPatch &patch)
 
autoPtr< optionclone () const
 
virtual ~option ()=default
 
const wordname () const noexcept
 
const fvMeshmesh () const noexcept
 
const fvPatchpatch () const noexcept
 
const dictionarycoeffs () const noexcept
 
bool active () const noexcept
 
void setApplied (const label fieldi)
 
const wordregionName () const noexcept
 
const faMeshregionMesh () const
 
const volSurfaceMappingvsm () const
 
bool active (const bool on) noexcept
 
virtual label applyToField (const word &fieldName) const
 
virtual void checkApplied () const
 
virtual void addSup (const areaScalarField &h, faMatrix< vector > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, faMatrix< symmTensor > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, faMatrix< sphericalTensor > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, faMatrix< tensor > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< vector > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< symmTensor > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< sphericalTensor > &eqn, const label fieldi)
 
virtual void addSup (const areaScalarField &h, const areaScalarField &rho, faMatrix< tensor > &eqn, const label fieldi)
 
virtual void constrain (faMatrix< scalar > &eqn, const label fieldi)
 
virtual void constrain (faMatrix< vector > &eqn, const label fieldi)
 
virtual void constrain (faMatrix< sphericalTensor > &eqn, const label fieldi)
 
virtual void constrain (faMatrix< symmTensor > &eqn, const label fieldi)
 
virtual void constrain (faMatrix< tensor > &eqn, const label fieldi)
 
virtual void correct (areaScalarField &field)
 
virtual void correct (areaVectorField &field)
 
virtual void correct (areaSphericalTensorField &field)
 
virtual void correct (areaSymmTensorField &field)
 
virtual void correct (areaTensorField &field)
 
virtual void writeHeader (Ostream &) const
 
virtual void writeFooter (Ostream &) const
 
virtual void writeData (Ostream &) const
 

Additional Inherited Members

- Public Types inherited from faceSetOption
enum  selectionModeType { smAll, smVolFaceZone }
 
- Static Public Member Functions inherited from option
static autoPtr< optionNew (const word &name, const dictionary &dict, const fvPatch &patch)
 
- Public Attributes inherited from option
bool log
 
- Static Public Attributes inherited from faceSetOption
static const Enum< selectionModeTypeselectionModeTypeNames_
 
- Protected Member Functions inherited from faceSetOption
void setSelection (const dictionary &dict)
 
void setFaceSelection ()
 
void setArea ()
 
- Protected Member Functions inherited from option
void resetApplied ()
 
- Protected Attributes inherited from faceSetOption
scalar timeStart_
 
scalar duration_
 
selectionModeType selectionMode_
 
word faceSetName_
 
labelList faces_
 
scalar A_
 
- Protected Attributes inherited from option
const word name_
 
const word modelType_
 
const fvMeshmesh_
 
const fvPatchpatch_
 
dictionary dict_
 
dictionary coeffs_
 
wordList fieldNames_
 
List< boolapplied_
 
word regionName_
 

Detailed Description

Applies sources on a specified field within a specified region by using an external table file for compressible flows.

Usage
Minimal example by using constant/faOptions:
externalFileSource1
{
    // Mandatory entries (unmodifiable)
    type                externalFileSource;
    fieldName           <fieldName>;
    tableName           <tableFileName.dat>;

    // Mandatory/Optional (inherited) entries
    ...
}

where the entries mean:

Property Description Type Reqd Dflt
type Type name: externalFileSource word yes -
fieldName Name of operand field word yes -
tableName Name of operand table file word yes -

The inherited entries are elaborated in:

See also
Source files

Definition at line 109 of file externalFileSource.H.

Constructor & Destructor Documentation

◆ externalFileSource() [1/2]

externalFileSource ( const word sourceName,
const word modelType,
const dictionary dict,
const fvPatch patch 
)

Definition at line 42 of file externalFileSource.C.

References dict, and Foam::blockMeshTools::read().

Here is the call graph for this function:

◆ externalFileSource() [2/2]

externalFileSource ( const externalFileSource )
delete

◆ ~externalFileSource()

virtual ~externalFileSource ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "externalFileSource"  )

◆ operator=()

void operator= ( const externalFileSource )
delete

◆ addSup()

void addSup ( const areaScalarField rho,
faMatrix< scalar > &  eqn,
const label  fieldi 
)
virtual

Reimplemented from option.

Definition at line 90 of file externalFileSource.C.

References DebugInfo, Foam::endl(), mesh, Foam::name(), faMatrix::psi(), and timeIndex.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary dict)
virtual

Reimplemented from faceSetOption.

Definition at line 112 of file externalFileSource.C.

References dict, and option::read().

Here is the call graph for this function:

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