Class to store solver template specifications. More...
Public Types | |
enum | solverType { stCompressible, stIncompressible, stBuoyant, stUnknown } |
Solver type. More... | |
Public Member Functions | |
solverTemplate (const fileName &baseDir, const Time &runTime, const word ®ionName) | |
Constructor. More... | |
word | type () const |
Solver type name. More... | |
bool | multiRegion () const |
Return the multi-region flag. More... | |
label | nRegion () const |
Return the number of regions. More... | |
const word & | regionType (const label regionI) const |
Return the region type. More... | |
const word & | regionName (const label regionI) const |
Return the region name. More... | |
const wordList & | fieldNames (const label regionI) const |
Return the field names. More... | |
const wordList & | fieldTypes (const label regionI) const |
Return the field types. More... | |
const PtrList< dimensionSet > & | fieldDimensions (const label regionI) const |
Return the field dimensions. More... | |
Static Public Attributes | |
static const NamedEnum< solverType, 4 > | solverTypeNames_ |
Solver type names. More... | |
Private Member Functions | |
word | readFromDict (IOobject &dictHeader, const word &entryName) const |
Read a word from a dictionary (offers some protection...) More... | |
dictionary | readFluidFieldTemplates (const word ®ionName, const fileName &baseDir, const dictionary &solverDict, const Time &runTime) const |
Read fluid region templates. More... | |
dictionary | readSolidFieldTemplates (const word ®ionName, const dictionary &solverDict) const |
Read solid region templates. More... | |
void | setRegionProperties (const dictionary &dict, const word ®ionType, const word ®ionName, const label regionI) |
Set the properties for region with index regionI. More... | |
Private Attributes | |
solverType | solverType_ |
Solver type. More... | |
bool | multiRegion_ |
Multi-region flag. More... | |
wordList | regionTypes_ |
Region types. More... | |
wordList | regionNames_ |
Region names. More... | |
List< wordList > | fieldNames_ |
Field names. More... | |
List< wordList > | fieldTypes_ |
Field types. More... | |
List< PtrList< dimensionSet > > | fieldDimensions_ |
Field dimensions. More... | |
enum solverType |
Solver type.
Enumerator | |
---|---|
stCompressible | |
stIncompressible | |
stBuoyant | |
stUnknown |
Definition at line 58 of file solverTemplate.H.
solverTemplate | ( | const fileName & | baseDir, |
const Time & | runTime, | ||
const word & | regionName | ||
) |
Constructor.
Read a word from a dictionary (offers some protection...)
|
private |
Read fluid region templates.
|
private |
Read solid region templates.
|
private |
Set the properties for region with index regionI.
word type | ( | ) | const |
Solver type name.
bool multiRegion | ( | ) | const |
Return the multi-region flag.
label nRegion | ( | ) | const |
Return the number of regions.
const PtrList<dimensionSet>& fieldDimensions | ( | const label | regionI | ) | const |
Return the field dimensions.
|
static |
Solver type names.
Definition at line 67 of file solverTemplate.H.
|
private |
Solver type.
Definition at line 75 of file solverTemplate.H.
|
private |
Multi-region flag.
Definition at line 78 of file solverTemplate.H.
|
private |
Region types.
Definition at line 84 of file solverTemplate.H.
|
private |
Region names.
Definition at line 87 of file solverTemplate.H.
Field names.
Definition at line 90 of file solverTemplate.H.
Field types.
Definition at line 93 of file solverTemplate.H.
|
private |
Field dimensions.
Definition at line 96 of file solverTemplate.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.