#include <topOZones.H>

Public Member Functions | |
| TypeName ("topOZones") | |
| Runtime type information. | |
| topOZones (const fvMesh &mesh, const dictionary &dict) | |
| Construct from components. | |
| virtual | ~topOZones ()=default |
| Destructor. | |
| const fvMesh & | mesh () const |
| Const reference to mesh. | |
| const labelList & | fixedPorousZoneIDs () const |
| Cell zone IDs with fixed porosity values. | |
| const scalarList & | fixedPorousValues () const |
| Values of alpha for each fixed porous zone. | |
| const labelList & | fixedZeroPorousZoneIDs () const |
| Cell zone IDs with fixed zero porosity values. | |
| const labelList & | adjointPorousZoneIDs () const |
| Cell zone IDs in which porosity is allowed to change. | |
| const cellZone & | IOCells () const |
| Cells next to IO boundaries. | |
| label | IOzoneID () const |
| ID of the cellZone holding the IOcells. | |
| scalar | getBetaMax () const |
| Get betaMax. | |
Protected Member Functions | |
| labelList | getZoneIDs (const dictionary &dict, const word &zoneGroup) |
| Get zone IDs corresponding to a wordList, read from a dict. | |
| void | addIOcellsZone () |
| Add a cellZone containing the cells next to IO patches. | |
Protected Attributes | |
| const fvMesh & | mesh_ |
| Mesh reference. | |
| const dictionary | dict_ |
| TopO design variables dictionary. | |
| labelList | fixedPorousIDs_ |
| IDs of cellZones holding cells with constant alpha values. | |
| scalarList | fixedPorousValues_ |
| The constant alpha values of fixedPorousIDs_. | |
| labelList | fixedZeroPorousIDs_ |
| IDs of cellZones holding cells with zero alpha values. | |
| labelList | adjointPorousIDs_ |
| IDs of cellZones with cells that can change their alpha value throughout the optimisation. | |
| label | IOcellsID_ |
| ID of the cellZone holding the cells next to inlets & outlets. | |
| autoPtr< betaMax > | betaMaxPtr_ |
| The multiplier of the Brinkman penalisation term. | |
Definition at line 49 of file topOZones.H.
| topOZones | ( | const fvMesh & | mesh, |
| const dictionary & | dict ) |
Construct from components.
Definition at line 77 of file topOZones.C.
References addIOcellsZone(), adjointPorousIDs_, betaMaxPtr_, dict, dict_, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, fixedPorousIDs_, fixedPorousValues_, fixedZeroPorousIDs_, getZoneIDs(), IOcellsID_, mesh(), mesh_, and Foam::New().

|
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 35 of file topOZones.C.
References dict, forAll, mesh_, and UList< T >::size().
Referenced by topOZones().


|
protected |
Add a cellZone containing the cells next to IO patches.
Definition at line 51 of file topOZones.C.
References DynamicList< T, SizeMin >::append(), IOcellsID_, mesh_, UPtrList< T >::size(), and regIOobject::write().
Referenced by topOZones().


| TypeName | ( | "topOZones" | ) |
|
inline |
Const reference to mesh.
Definition at line 161 of file topOZones.H.
References mesh_.
Referenced by topOZones(), and TypeName().

|
inline |
Cell zone IDs with fixed porosity values.
Definition at line 169 of file topOZones.H.
References fixedPorousIDs_.
|
inline |
Values of alpha for each fixed porous zone.
Definition at line 177 of file topOZones.H.
References fixedPorousValues_.
|
inline |
Cell zone IDs with fixed zero porosity values.
Definition at line 185 of file topOZones.H.
References fixedZeroPorousIDs_.
|
inline |
Cell zone IDs in which porosity is allowed to change.
Definition at line 193 of file topOZones.H.
References adjointPorousIDs_.
|
inline |
Cells next to IO boundaries.
Definition at line 201 of file topOZones.H.
References IOcellsID_, and mesh_.
|
inline |
ID of the cellZone holding the IOcells.
Definition at line 209 of file topOZones.H.
References IOcellsID_.
|
inline |
|
protected |
Mesh reference.
Definition at line 59 of file topOZones.H.
Referenced by addIOcellsZone(), getZoneIDs(), IOCells(), mesh(), and topOZones().
|
protected |
TopO design variables dictionary.
Definition at line 64 of file topOZones.H.
Referenced by topOZones().
|
protected |
IDs of cellZones holding cells with constant alpha values.
Definition at line 69 of file topOZones.H.
Referenced by fixedPorousZoneIDs(), and topOZones().
|
protected |
The constant alpha values of fixedPorousIDs_.
Definition at line 74 of file topOZones.H.
Referenced by fixedPorousValues(), and topOZones().
|
protected |
IDs of cellZones holding cells with zero alpha values.
Definition at line 79 of file topOZones.H.
Referenced by fixedZeroPorousZoneIDs(), and topOZones().
|
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 adjointPorousZoneIDs(), and topOZones().
|
protected |
ID of the cellZone holding the cells next to inlets & outlets.
Definition at line 90 of file topOZones.H.
Referenced by addIOcellsZone(), IOCells(), IOzoneID(), and topOZones().
The multiplier of the Brinkman penalisation term.
Definition at line 95 of file topOZones.H.
Referenced by getBetaMax(), and topOZones().