Loading...
Searching...
No Matches
betaMax Class Reference

Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term, for topology optimisation. More...

#include <betaMax.H>

Inheritance diagram for betaMax:
Collaboration diagram for betaMax:

Public Member Functions

 TypeName ("betaMax")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, betaMax, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 betaMax (const fvMesh &mesh, const dictionary &dict)
 Construct from components.
virtual ~betaMax ()=default
 Destructor.
virtual scalar value () const
 Get value.

Static Public Member Functions

static autoPtr< betaMax > New (const fvMesh &mesh, const dictionary &dict)
 Construct and return the selected betaMax model.

Protected Member Functions

scalar computeLength (const dictionary &dict) const
 Compute the characteristic length.
boolList markProcessorEdges (const polyPatch &patch) const
 Mark all common inlet - processor edges.

Protected Attributes

const fvMeshmesh_
 Reference to mesh.
scalar value_
 betaMax value

Detailed Description

Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term, for topology optimisation.

Source files

Definition at line 49 of file betaMax.H.

Constructor & Destructor Documentation

◆ betaMax()

betaMax ( const fvMesh & mesh,
const dictionary & dict )

Construct from components.

Definition at line 206 of file betaMax.C.

References dict, mesh, mesh_, value_, and Foam::Zero.

◆ ~betaMax()

virtual ~betaMax ( )
virtualdefault

Destructor.

Member Function Documentation

◆ computeLength()

Foam::scalar computeLength ( const dictionary & dict) const
protected

Compute the characteristic length.

Definition at line 37 of file betaMax.C.

References dict, Foam::endl(), forAll, dictionary::get(), Foam::Info, markProcessorEdges(), mesh_, Foam::nl, points, dictionary::readIfPresent(), Foam::reduce(), Foam::returnReduce(), Foam::sum(), Foam::type(), and Foam::Zero.

Referenced by betaMaxDarcy::betaMaxDarcy(), and betaMaxReynoldsDarcy::betaMaxReynoldsDarcy().

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

◆ markProcessorEdges()

Foam::boolList markProcessorEdges ( const polyPatch & patch) const
protected

◆ TypeName()

TypeName ( "betaMax" )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr ,
betaMax ,
dictionary ,
(const fvMesh &mesh, const dictionary &dict) ,
(mesh, dict)  )

References dict, and mesh.

◆ New()

Foam::autoPtr< Foam::betaMax > New ( const fvMesh & mesh,
const dictionary & dict )
static

Construct and return the selected betaMax model.

Definition at line 219 of file betaMax.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.

Here is the call graph for this function:

◆ value()

Foam::scalar value ( ) const
virtual

Get value.

Reimplemented in betaMaxStepRamp.

Definition at line 248 of file betaMax.C.

References value_.

Referenced by betaMaxDarcy::betaMaxDarcy().

Here is the caller graph for this function:

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

Reference to mesh.

Definition at line 73 of file betaMax.H.

Referenced by betaMax(), computeLength(), markProcessorEdges(), and betaMaxStepRamp::value().

◆ value_

scalar value_
protected

The documentation for this class was generated from the following files:
  • src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/betaMax/betaMax/betaMax.H
  • src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/betaMax/betaMax/betaMax.C