35 void Foam::processorFaMeshes::read()
40 boundaryProcAddressing_.free();
41 faceProcAddressing_.free();
42 edgeProcAddressing_.free();
43 pointProcAddressing_.free();
50 meshes_.emplace_set(proci, fvMeshes_[proci]);
59 meshes_[proci].thisDb(),
64 const auto&
runTime = meshes_[proci].thisDb().time();
65 const auto& meshDir = meshes_[proci].meshDir();
68 ioAddr.rename(
"pointProcAddressing");
69 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
70 pointProcAddressing_.emplace_set(proci, ioAddr);
73 ioAddr.rename(
"edgeProcAddressing");
74 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
75 edgeProcAddressing_.emplace_set(proci, ioAddr);
78 ioAddr.rename(
"faceProcAddressing");
79 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
80 faceProcAddressing_.emplace_set(proci, ioAddr);
83 ioAddr.rename(
"boundaryProcAddressing");
84 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
85 boundaryProcAddressing_.emplace_set(proci, ioAddr);
92 Foam::processorFaMeshes::processorFaMeshes
94 const UPtrList<fvMesh>& procFvMeshes
97 fvMeshes_(procFvMeshes),
98 meshes_(procFvMeshes.size()),
99 pointProcAddressing_(meshes_.size()),
100 edgeProcAddressing_(meshes_.size()),
101 faceProcAddressing_(meshes_.size()),
102 boundaryProcAddressing_(meshes_.size())
136 io.
rename(
"boundaryProcAddressing");
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
const fileName & facesInstance() const
Return the current instance directory for faces.
virtual void rename(const word &newName)
Rename the object.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
Ignore writing from objectRegistry::writeObject()
fileName objectPath() const
The complete path + object name.
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
#define forAll(list, i)
Loop across all elements in list.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
static void removeFiles(const faMesh &mesh)
Helper: remove all procAddressing files from mesh instance.
static word meshSubDir
The mesh sub-directory name (usually "faMesh")
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...