44 obr.checkOut(
"faBoundaryMesh");
45 obr.checkOut(
"faSchemes");
46 obr.checkOut(
"faSolution");
56 (void)
mesh.areaCentres();
57 (void)
mesh.edgeCentres();
59 (void)
mesh.faceAreaNormals();
60 (void)
mesh.edgeAreaNormals();
61 (void)
mesh.pointAreaNormals();
62 (void)
mesh.faceCurvatures();
63 (void)
mesh.edgeTransformTensors();
71 const bool masterOnlyReading,
139 IOobject cmptIO(meshIO,
"faceLabels", meshSubDir);
148 bool haveMesh =
isDir(meshDir);
173 cmptIO.
rename(
"faceLabels");
180 std::move(faceLabels),
197 const bool isEmptyMesh = (
mesh.faceLabels().
empty());
199 forAll(patchEntries, patchi)
201 const entry&
e = patchEntries[patchi];
253 const bool decompose,
334 forAll(patchEntries, patchi)
336 const entry&
e = patchEntries[patchi];
400 forAll(patchEntries, patchi)
402 const entry&
e = patchEntries[patchi];
417 <<
"Non-processor patches not synchronised."
421 <<
" patches, master has "
433 <<
"Non-processor patches not synchronised."
435 <<
"Master patch " << patchi
439 <<
" patch " << patchi
441 <<
" type:" <<
patches[patchi].type()
bool empty() const noexcept
True if the hash table is empty.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const Time & time() const
Return Time associated with the objectRegistry.
readOption readOpt() const noexcept
The read option.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
bool registerObject() const noexcept
Should object created with this IOobject be registered?
const fileName & instance() const noexcept
Read access to instance path component.
static fileCheckTypes fileModificationChecking
Type of file modification checking.
virtual void rename(const word &newName)
Rename the object.
fileName path() const
The complete path.
writeOption writeOpt() const noexcept
The write option.
static void broadcast(Type &value, const label comm=UPstream::worldComm)
static void broadcasts(const label comm, Type &arg1, Args &&... args)
Broadcast multiple items to all processes in communicator.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const T * set(const label i) const
void resize(const label newLen)
Adjust size of PtrList.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
fileName path() const
Return path.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type get(const label i) const
static label worldComm
Default communicator (all processors)
static bool & parRun() noexcept
Test if this a parallel run.
bool empty() const noexcept
True if the list is empty (ie, size() is zero)
label size() const noexcept
The number of elements in the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
A keyword and a list of tokens is an 'entry'.
Read and store dictionary entries for finite-area boundary patches.
Finite area boundary mesh.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
const faBoundaryMesh & boundary() const noexcept
Return constant reference to boundary mesh.
virtual bool write(const bool valid=true) const
Write mesh.
void addFaPatches(faPatchList &plist, const bool validBoundary=true)
Add boundary patches. Constructor helper.
static word meshSubDir
The mesh sub-directory name (usually "faMesh")
A class for handling file names.
virtual bool isFile(const fileName &, const bool checkGzip=true, const bool followLink=true) const =0
Does the name exist as a FILE in the file system?
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Registry of regIOobjects.
bool checkOut(regIOobject *io) const
Mesh consisting of general polyhedral cells.
static const word & regionName(const word ®ion)
The mesh region name or word::null if polyMesh::defaultRegion.
const globalMeshData & globalData() const
Return parallel info.
int myProcNo() const noexcept
Return processor number.
splitCell * master() const
A class for handling words, derived from Foam::string.
const polyBoundaryMesh & patches
Foam::autoPtr< Foam::dynamicFvMesh > meshPtr
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
const fileOperation & fileHandler()
Get current file handler.
List< label > labelList
A List of labels.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.