38 namespace decompositionConstraints
44 decompositionConstraint,
64 <<
" : setting constraints to refinement history" <<
endl;
76 <<
" : setting constraints to refinement history" <<
endl;
93 typedef ::Foam::refinementHistory HistoryType;
98 const HistoryType* historyPtr =
99 mesh.findObject<HistoryType>(
"refinementHistory");
112 Info<<
type() <<
" : reading refinementHistory from time " 123 mesh.facesInstance(),
133 historyPtr = readFromFile.
get();
136 const auto& history = *historyPtr;
138 if (history.active())
144 specifiedProcessorFaces,
163 typedef ::Foam::refinementHistory HistoryType;
168 const HistoryType* historyPtr =
169 mesh.findObject<HistoryType>(
"refinementHistory");
180 mesh.facesInstance(),
190 historyPtr = readFromFile.
get();
193 const auto& history = *historyPtr;
195 if (history.active())
201 specifiedProcessorFaces,
Abstract class for handling decomposition constraints.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
Macros for easy insertion into run-time selection tables.
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
int debug
Static debugging option.
refinementHistory()
Construct from components.
virtual void apply(const polyMesh &mesh, const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &decomposition) const
Apply this constraint post-decomposition.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
addToRunTimeSelectionTable(decompositionConstraint, geometric, dictionary)
messageStream Info
Information stream (stdout output on master, null elsewhere)
T * get() noexcept
Return pointer to managed object without nullptr checking.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
Defines the attributes of an object for which implicit objectRegistry management is supported...
defineTypeName(geometric)
virtual void add(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections) const
Add this constraint to list of constraints.