Public Member Functions | |
TypeName ("topOZones") | |
Runtime type information. More... | |
topOZones (const fvMesh &mesh, const dictionary &dict) | |
Construct from components. More... | |
virtual | ~topOZones ()=default |
Destructor. More... | |
const fvMesh & | mesh () const |
Const reference to mesh. More... | |
const labelList & | fixedPorousZoneIDs () const |
Cell zone IDs with fixed porosity values. More... | |
const scalarList & | fixedPorousValues () const |
Values of alpha for each fixed porous zone. More... | |
const labelList & | fixedZeroPorousZoneIDs () const |
Cell zone IDs with fixed zero porosity values. More... | |
const labelList & | adjointPorousZoneIDs () const |
Cell zone IDs in which porosity is allowed to change. More... | |
const cellZone & | IOCells () const |
Cells next to IO boundaries. More... | |
label | IOzoneID () const |
ID of the cellZone holding the IOcells. More... | |
scalar | getBetaMax () const |
Get betaMax. More... | |
Protected Member Functions | |
labelList | getZoneIDs (const dictionary &dict, const word &zoneGroup) |
Get zone IDs corresponding to a wordList, read from a dict. More... | |
void | addIOcellsZone () |
Add a cellZone containing the cells next to IO patches. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
Mesh reference. More... | |
const dictionary | dict_ |
TopO design variables dictionary. More... | |
labelList | fixedPorousIDs_ |
IDs of cellZones holding cells with constant alpha values. More... | |
scalarList | fixedPorousValues_ |
The constant alpha values of fixedPorousIDs_. More... | |
labelList | fixedZeroPorousIDs_ |
IDs of cellZones holding cells with zero alpha values. More... | |
labelList | adjointPorousIDs_ |
IDs of cellZones with cells that can change their alpha value throughout the optimisation. More... | |
label | IOcellsID_ |
ID of the cellZone holding the cells next to inlets & outlets. More... | |
autoPtr< betaMax > | betaMaxPtr_ |
The multiplier of the Brinkman penalisation term. More... | |
Definition at line 49 of file topOZones.H.
topOZones | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from components.
Definition at line 78 of file topOZones.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtualdefault |
Destructor.
|
protected |
Get zone IDs corresponding to a wordList, read from a dict.
Avoid going through ZoneMesh.indices() since this practically sorts the IDs from smallest to largest while we need to keep them in the same order as that prescribed in the wordList
Definition at line 36 of file topOZones.C.
References dict, forAll, and UList< T >::size().
|
protected |
Add a cellZone containing the cells next to IO patches.
Definition at line 51 of file topOZones.C.
References DynamicList< T, SizeMin >::append(), fvMesh::boundary(), topOZones::IOcellsID_, topOZones::mesh_, Foam::foamVersion::patch, UPtrList< T >::size(), and regIOobject::write().
TypeName | ( | "topOZones" | ) |
Runtime type information.
|
inline |
|
inline |
Cell zone IDs with fixed porosity values.
Definition at line 169 of file topOZones.H.
References topOZones::fixedPorousIDs_.
Referenced by levelSetDesignVariables::applyFixedPorosityValues(), topODesignVariables::applyFixedValues(), levelSetDesignVariables::setActiveDesignVariables(), and sensitivityTopO::zeroSensInFixedPorousZones().
|
inline |
Values of alpha for each fixed porous zone.
Definition at line 177 of file topOZones.H.
References topOZones::fixedPorousValues_.
Referenced by levelSetDesignVariables::applyFixedPorosityValues(), and topODesignVariables::applyFixedValues().
|
inline |
Cell zone IDs with fixed zero porosity values.
Definition at line 185 of file topOZones.H.
References topOZones::fixedZeroPorousIDs_.
Referenced by levelSetDesignVariables::applyFixedPorosityValues(), topODesignVariables::applyFixedValues(), levelSetDesignVariables::setActiveDesignVariables(), and sensitivityTopO::zeroSensInFixedPorousZones().
|
inline |
Cell zone IDs in which porosity is allowed to change.
Definition at line 193 of file topOZones.H.
References topOZones::adjointPorousIDs_.
Referenced by levelSetDesignVariables::setActiveDesignVariables(), and sensitivityTopO::zeroSensInFixedPorousZones().
|
inline |
Cells next to IO boundaries.
Definition at line 201 of file topOZones.H.
References polyMesh::cellZones(), topOZones::IOcellsID_, and topOZones::mesh_.
Referenced by levelSetDesignVariables::applyFixedPorosityValues(), topODesignVariables::applyFixedValues(), levelSetDesignVariables::setActiveDesignVariables(), and sensitivityTopO::zeroSensInFixedPorousZones().
|
inline |
ID of the cellZone holding the IOcells.
Definition at line 209 of file topOZones.H.
References topOZones::IOcellsID_.
|
inline |
Get betaMax.
Definition at line 217 of file topOZones.H.
References topOZones::betaMaxPtr_.
Referenced by topOVariablesBase::getBetaMax().
|
protected |
Mesh reference.
Definition at line 59 of file topOZones.H.
Referenced by topOZones::addIOcellsZone(), topOZones::IOCells(), and topOZones::mesh().
|
protected |
TopO design variables dictionary.
Definition at line 64 of file topOZones.H.
|
protected |
IDs of cellZones holding cells with constant alpha values.
Definition at line 69 of file topOZones.H.
Referenced by topOZones::fixedPorousZoneIDs().
|
protected |
The constant alpha values of fixedPorousIDs_.
Definition at line 74 of file topOZones.H.
Referenced by topOZones::fixedPorousValues().
|
protected |
IDs of cellZones holding cells with zero alpha values.
Definition at line 79 of file topOZones.H.
Referenced by topOZones::fixedZeroPorousZoneIDs().
|
protected |
IDs of cellZones with cells that can change their alpha value throughout the optimisation.
Definition at line 85 of file topOZones.H.
Referenced by topOZones::adjointPorousZoneIDs().
|
protected |
ID of the cellZone holding the cells next to inlets & outlets.
Definition at line 90 of file topOZones.H.
Referenced by topOZones::addIOcellsZone(), topOZones::IOCells(), and topOZones::IOzoneID().
The multiplier of the Brinkman penalisation term.
Definition at line 95 of file topOZones.H.
Referenced by topOZones::getBetaMax().