Class constructing a number of volumetric B-Splines boxes, read from dynamicMeshDict. Useful for various sensitivities and optMeshMovement classes. More...
Public Member Functions | |
TypeName ("volBSplinesBase") | |
volBSplinesBase (const fvMesh &mesh) | |
virtual | ~volBSplinesBase ()=default |
const PtrList< NURBS3DVolume > & | boxes () const |
PtrList< NURBS3DVolume > & | boxesRef () |
const NURBS3DVolume & | box (const label boxI) const |
NURBS3DVolume & | boxRef (const label boxI) |
const vectorField & | getControlPoints (const label &iNURB) const |
vectorField | getAllControlPoints () const |
label | getTotalControlPointsNumber () const |
label | getNumberOfBoxes () const |
labelList | getStartCpID () const |
label | findBoxID (const label cpI) const |
const labelList & | getActiveDesignVariables () const |
scalar | computeMaxBoundaryDisplacement (const vectorField &controlPointsMovement, const labelList &patchesToBeMoved) |
void | boundControlPointMovement (vectorField &controlPointsMovement) |
void | moveControlPoints (const vectorField &controlPointsMovement) |
void | writeControlPoints () const |
virtual bool | movePoints () |
virtual void | updateMesh (const mapPolyMesh &) |
![]() | |
MeshObject (const fvMesh &mesh) | |
virtual | ~MeshObject ()=default |
const fvMesh & | mesh () const |
virtual bool | writeData (Ostream &os) const |
![]() | |
UpdateableMeshObject (const word &typeName, const objectRegistry &obr) | |
![]() | |
MoveableMeshObject (const word &typeName, const objectRegistry &obr) | |
![]() | |
GeometricMeshObject (const word &typeName, const objectRegistry &obr) | |
![]() | |
TopologicalMeshObject (const word &typeName, const objectRegistry &obr) | |
![]() | |
ClassName ("meshObject") | |
meshObject (const word &typeName, const objectRegistry &obr) | |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
virtual void | rename (const word &newName) |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
virtual fileName | filePath () const |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual bool | read () |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | modified () const |
virtual bool | readIfModified () |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
virtual bool | write (const bool valid=true) const |
virtual bool | global () const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
Protected Attributes | |
PtrList< NURBS3DVolume > | volume_ |
labelList | activeDesignVariables_ |
![]() | |
const fvMesh & | mesh_ |
Additional Inherited Members | |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
static const volBSplinesBase & | New (const fvMesh &mesh, Args &&... args) |
static bool | Delete (const fvMesh &mesh) |
![]() | |
template<class Mesh > | |
static void | movePoints (objectRegistry &obr) |
template<class Mesh > | |
static void | updateMesh (objectRegistry &obr, const mapPolyMesh &mpm) |
template<class Mesh , template< class > class MeshObjectType> | |
static void | clear (objectRegistry &obr) |
template<class Mesh , template< class > class FromType, template< class > class ToType> | |
static void | clearUpto (objectRegistry &obr) |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
![]() | |
static bool | masterOnlyReading = false |
Class constructing a number of volumetric B-Splines boxes, read from dynamicMeshDict. Useful for various sensitivities and optMeshMovement classes.
Derives from MeshObject so that all instances know and update the same control points and parametric coordinates are computed only once
Definition at line 55 of file volBSplinesBase.H.
volBSplinesBase | ( | const fvMesh & | mesh | ) |
Definition at line 37 of file volBSplinesBase.C.
References TimePaths::constant(), forAll, dictionary::isDict(), mesh, IOobject::MUST_READ_IF_MODIFIED, NURBS3DVolume::New(), IOobject::NO_WRITE, dictionary::subDict(), fvMesh::time(), and dictionary::toc().
|
virtualdefault |
TypeName | ( | "volBSplinesBase" | ) |
const PtrList< NURBS3DVolume > & boxes | ( | ) | const |
Definition at line 108 of file volBSplinesBase.C.
References volBSplinesBase::volume_.
PtrList< NURBS3DVolume > & boxesRef | ( | ) |
Definition at line 114 of file volBSplinesBase.C.
References volBSplinesBase::volume_.
Referenced by sensitivityVolBSplines::assembleSensitivities(), sensitivityVolBSplinesFI::assembleSensitivities(), sensitivityVolBSplines::computeBCContributions(), sensitivityVolBSplines::computeObjectiveContributions(), volumetricBSplinesMotionSolver::curPoints(), sensitivityVolBSplines::write(), and sensitivityVolBSplinesFI::write().
const NURBS3DVolume & box | ( | const label | boxI | ) | const |
Definition at line 120 of file volBSplinesBase.C.
References volBSplinesBase::volume_.
NURBS3DVolume & boxRef | ( | const label | boxI | ) |
Definition at line 126 of file volBSplinesBase.C.
References volBSplinesBase::volume_.
const vectorField & getControlPoints | ( | const label & | iNURB | ) | const |
Definition at line 132 of file volBSplinesBase.C.
References volBSplinesBase::volume_.
Referenced by volBSplinesBase::getAllControlPoints().
vectorField getAllControlPoints | ( | ) | const |
Definition at line 138 of file volBSplinesBase.C.
References forAll, volBSplinesBase::getControlPoints(), and volBSplinesBase::volume_.
Foam::label getTotalControlPointsNumber | ( | ) | const |
Definition at line 150 of file volBSplinesBase.C.
References forAll.
label getNumberOfBoxes | ( | ) | const |
Definition at line 162 of file volBSplinesBase.C.
Referenced by volBSplinesBase::getStartCpID().
labelList getStartCpID | ( | ) | const |
Definition at line 168 of file volBSplinesBase.C.
References forAll, volBSplinesBase::getNumberOfBoxes(), and volBSplinesBase::volume_.
Referenced by volBSplinesBase::findBoxID().
label findBoxID | ( | const label | cpI | ) | const |
Definition at line 183 of file volBSplinesBase.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and volBSplinesBase::getStartCpID().
const Foam::labelList & getActiveDesignVariables | ( | ) | const |
Definition at line 201 of file volBSplinesBase.C.
References volBSplinesBase::activeDesignVariables_.
Foam::scalar computeMaxBoundaryDisplacement | ( | const vectorField & | controlPointsMovement, |
const labelList & | patchesToBeMoved | ||
) |
Definition at line 208 of file volBSplinesBase.C.
References forAll, Foam::max(), and Foam::Zero.
void boundControlPointMovement | ( | vectorField & | controlPointsMovement | ) |
Definition at line 245 of file volBSplinesBase.C.
References forAll, and Foam::Zero.
Referenced by sensitivityVolBSplines::assembleSensitivities(), sensitivityVolBSplinesFI::assembleSensitivities(), sensitivityVolBSplines::computeBCContributions(), and sensitivityVolBSplines::computeObjectiveContributions().
void moveControlPoints | ( | const vectorField & | controlPointsMovement | ) |
Definition at line 277 of file volBSplinesBase.C.
References forAll, and Foam::Zero.
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
void writeControlPoints | ( | ) | const |
Definition at line 307 of file volBSplinesBase.C.
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
|
virtual |
Implements MoveableMeshObject< fvMesh >.
Definition at line 317 of file volBSplinesBase.C.
|
virtual |
Implements UpdateableMeshObject< fvMesh >.
Definition at line 324 of file volBSplinesBase.C.
|
protected |
Definition at line 65 of file volBSplinesBase.H.
Referenced by volBSplinesBase::box(), volBSplinesBase::boxes(), volBSplinesBase::boxesRef(), volBSplinesBase::boxRef(), volBSplinesBase::getAllControlPoints(), volBSplinesBase::getControlPoints(), and volBSplinesBase::getStartCpID().
|
protected |
Definition at line 68 of file volBSplinesBase.H.
Referenced by volBSplinesBase::getActiveDesignVariables().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.