topOZones Class Reference
Collaboration diagram for topOZones:

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 fvMeshmesh () const
 Const reference to mesh. More...
 
const labelListfixedPorousZoneIDs () const
 Cell zone IDs with fixed porosity values. More...
 
const scalarListfixedPorousValues () const
 Values of alpha for each fixed porous zone. More...
 
const labelListfixedZeroPorousZoneIDs () const
 Cell zone IDs with fixed zero porosity values. More...
 
const labelListadjointPorousZoneIDs () const
 Cell zone IDs in which porosity is allowed to change. More...
 
const cellZoneIOCells () 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 fvMeshmesh_
 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< betaMaxbetaMaxPtr_
 The multiplier of the Brinkman penalisation term. More...
 

Detailed Description

Definition at line 49 of file topOZones.H.

Constructor & Destructor Documentation

◆ topOZones()

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.

Here is the call graph for this function:

◆ ~topOZones()

virtual ~topOZones ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getZoneIDs()

Foam::labelList getZoneIDs ( const dictionary dict,
const word zoneGroup 
)
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().

Here is the call graph for this function:

◆ addIOcellsZone()

void addIOcellsZone ( )
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().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "topOZones"  )

Runtime type information.

◆ mesh()

const fvMesh& mesh ( ) const
inline

Const reference to mesh.

Definition at line 161 of file topOZones.H.

References topOZones::mesh_.

◆ fixedPorousZoneIDs()

const labelList& fixedPorousZoneIDs ( ) const
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().

Here is the caller graph for this function:

◆ fixedPorousValues()

const scalarList& fixedPorousValues ( ) const
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().

Here is the caller graph for this function:

◆ fixedZeroPorousZoneIDs()

const labelList& fixedZeroPorousZoneIDs ( ) const
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().

Here is the caller graph for this function:

◆ adjointPorousZoneIDs()

const labelList& adjointPorousZoneIDs ( ) const
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().

Here is the caller graph for this function:

◆ IOCells()

const cellZone& IOCells ( ) const
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().

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

◆ IOzoneID()

label IOzoneID ( ) const
inline

ID of the cellZone holding the IOcells.

Definition at line 209 of file topOZones.H.

References topOZones::IOcellsID_.

◆ getBetaMax()

scalar getBetaMax ( ) const
inline

Get betaMax.

Definition at line 217 of file topOZones.H.

References topOZones::betaMaxPtr_.

Referenced by topOVariablesBase::getBetaMax().

Here is the caller graph for this function:

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

Mesh reference.

Definition at line 59 of file topOZones.H.

Referenced by topOZones::addIOcellsZone(), topOZones::IOCells(), and topOZones::mesh().

◆ dict_

const dictionary dict_
protected

TopO design variables dictionary.

Definition at line 64 of file topOZones.H.

◆ fixedPorousIDs_

labelList fixedPorousIDs_
protected

IDs of cellZones holding cells with constant alpha values.

Definition at line 69 of file topOZones.H.

Referenced by topOZones::fixedPorousZoneIDs().

◆ fixedPorousValues_

scalarList fixedPorousValues_
protected

The constant alpha values of fixedPorousIDs_.

Definition at line 74 of file topOZones.H.

Referenced by topOZones::fixedPorousValues().

◆ fixedZeroPorousIDs_

labelList fixedZeroPorousIDs_
protected

IDs of cellZones holding cells with zero alpha values.

Definition at line 79 of file topOZones.H.

Referenced by topOZones::fixedZeroPorousZoneIDs().

◆ adjointPorousIDs_

labelList adjointPorousIDs_
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().

◆ IOcellsID_

label IOcellsID_
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().

◆ betaMaxPtr_

autoPtr<betaMax> betaMaxPtr_
protected

The multiplier of the Brinkman penalisation term.

Definition at line 95 of file topOZones.H.

Referenced by topOZones::getBetaMax().


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