mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
regionFunctionObject: Moved the field/object maintenance functions from fvMeshFunctionObject into regionFunctionObject
This commit is contained in:
@ -76,6 +76,32 @@ protected:
|
||||
Switch log_;
|
||||
|
||||
|
||||
// Protected member functions
|
||||
|
||||
//- Find field in the objectRegistry
|
||||
template<class ObjectType>
|
||||
bool foundObject(const word& fieldName) const;
|
||||
|
||||
//- Lookup field from the objectRegistry
|
||||
template<class ObjectType>
|
||||
const ObjectType& lookupObject(const word& fieldName) const;
|
||||
|
||||
//- Store the given field in the objectRegistry under the given name
|
||||
template<class ObjectType>
|
||||
bool store
|
||||
(
|
||||
word& fieldName,
|
||||
const tmp<ObjectType>& tfield,
|
||||
bool cacheable = false
|
||||
);
|
||||
|
||||
//- Write field if present in objectRegistry
|
||||
bool writeObject(const word& fieldName);
|
||||
|
||||
//- Clear field from the objectRegistry if present
|
||||
bool clearObject(const word& fieldName);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// Private Member Functions
|
||||
@ -132,6 +158,12 @@ public:
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
#include "regionFunctionObjectTemplates.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user