35 void Foam::processorFaMeshes::read()
39 meshes_.set(proci,
new faMesh(fvMeshes_[proci]));
48 meshes_[proci].thisDb(),
53 const auto&
runTime = meshes_[proci].thisDb().time();
54 const auto& meshDir = meshes_[proci].meshDir();
57 ioAddr.rename(
"pointProcAddressing");
58 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
59 pointProcAddressing_.set(proci,
new labelIOList(ioAddr));
62 ioAddr.rename(
"edgeProcAddressing");
63 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
64 edgeProcAddressing_.set(proci,
new labelIOList(ioAddr));
67 ioAddr.rename(
"faceProcAddressing");
68 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
69 faceProcAddressing_.set(proci,
new labelIOList(ioAddr));
72 ioAddr.rename(
"boundaryProcAddressing");
73 ioAddr.instance() =
runTime.findInstance(meshDir, ioAddr.name());
74 boundaryProcAddressing_.set(proci,
new labelIOList(ioAddr));
81 Foam::processorFaMeshes::processorFaMeshes
83 const UPtrList<fvMesh>& procFvMeshes
86 fvMeshes_(procFvMeshes),
87 meshes_(procFvMeshes.size()),
88 pointProcAddressing_(meshes_.size()),
89 edgeProcAddressing_(meshes_.size()),
90 faceProcAddressing_(meshes_.size()),
91 boundaryProcAddressing_(meshes_.size())
125 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.
autoPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file 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...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
static void removeFiles(const faMesh &mesh)
Helper: remove all procAddressing files from mesh instance.
static word meshSubDir
The mesh sub-directory name (usually "faMesh")
Defines the attributes of an object for which implicit objectRegistry management is supported...
IOList< label > labelIOList
Label container classes.