Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term, for topology optimisation. More...
Public Member Functions | |
TypeName ("betaMax") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, betaMax, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict)) | |
betaMax (const fvMesh &mesh, const dictionary &dict) | |
Construct from components. More... | |
virtual | ~betaMax ()=default |
Destructor. More... | |
virtual scalar | value () const |
Get value. More... | |
Static Public Member Functions | |
static autoPtr< betaMax > | New (const fvMesh &mesh, const dictionary &dict) |
Construct and return the selected betaMax model. More... | |
Protected Member Functions | |
scalar | computeLength (const dictionary &dict) const |
Compute the characteristic length. More... | |
boolList | markProcessorEdges (const polyPatch &patch) const |
Mark all common inlet - processor edges. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
Reference to mesh. More... | |
scalar | value_ |
betaMax value More... | |
Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term, for topology optimisation.
betaMax | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
|
virtualdefault |
Destructor.
|
protected |
Compute the characteristic length.
Definition at line 37 of file betaMax.C.
References Foam::fieldTypes::area, fvMesh::boundary(), polyMesh::boundaryMesh(), polyMesh::bounds(), Foam::ensightOutput::debug, dict, Foam::endl(), forAll, polyMesh::geometricD(), dictionary::get(), Foam::gSum(), Foam::Info, betaMax::markProcessorEdges(), betaMax::mesh_, polyMesh::nGeometricD(), Foam::nl, Foam::foamVersion::patch, polyBoundaryMesh::patchSet(), points, dictionary::readIfPresent(), Foam::reduce(), Foam::returnReduce(), boundBox::span(), Foam::sum(), Foam::type(), and Foam::Zero.
|
protected |
Mark all common inlet - processor edges.
Definition at line 122 of file betaMax.C.
References Foam::constant::electromagnetic::e, PrimitivePatch< FaceList, PointField >::edges(), HashTable< T, edge, Hash< edge > >::find(), HashTable< T, edge, Hash< edge > >::insert(), HashTable< T, edge, Hash< edge > >::lookup(), polyBoundaryMesh::mesh(), PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::constant::atomic::mp, PrimitivePatch< FaceList, PointField >::nEdges(), PrimitivePatch< FaceList, PointField >::nInternalEdges(), polyBoundaryMesh::nNonProcessor(), Foam::foamVersion::patch, pbm, UPtrList< T >::size(), and syncTools::syncEdgeMap().
Referenced by betaMax::computeLength().
TypeName | ( | "betaMax" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
betaMax | , | ||
dictionary | , | ||
(const fvMesh &mesh, const dictionary &dict) | , | ||
(mesh, 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, dictionary::getOrDefault(), Foam::Info, and mesh.
|
virtual |
|
protected |
Reference to mesh.
Definition at line 73 of file betaMax.H.
Referenced by betaMax::computeLength(), and betaMaxStepRamp::value().
|
protected |