Go to the documentation of this file.
176 class ccmGlobalState;
201 static const char* cellTableOpti[];
204 static const char* cellTableOptstr[];
210 const unique_ptr<options> options_;
216 UNKNOWN, BAD, OKAY, READ
221 nodeStatus geometryStatus_;
224 nodeStatus solutionStatus_;
241 label nInternalFaces_;
306 void operator=(
const reader&) =
delete;
310 inline labelList patchStartList(label initial)
const;
313 void printSizes()
const;
316 int ccmGetEntityIndex(ccmNODE node);
320 std::string ccmReadNodestr(
const char* opt, ccmNODE node);
324 std::string ccmReadOptstr(
const char* opt, ccmID node);
330 bool detectGeometry();
333 void readProblemDescription(
const ccmID& probNode);
338 void readInterfaceDefinitions();
341 void readProblemDescription_boundaryRegion(
const ccmID& probNode);
344 void readProblemDescription_cellTable(
const ccmID& probNode);
347 void readMeshTopology(
const scalar scaleFactor=1.0);
352 const ccmID& verticesNode,
353 const scalar scaleFactor = 1.0
357 void readCells(
const ccmID& topoNode);
360 void readInterfaces(
const ccmID& cellsNode);
363 void readMonitoring(
const ccmID& topoId);
370 void removeUnwanted();
376 void renumberInterfaces(
const labelUList& oldToNew);
381 void cleanupInterfaces();
384 void mergeInplaceInterfaces();
393 void writeMeshLabelList
396 const word& propertyName,
408 bool detectSolution();
412 void determineFieldInfo
414 const ccmID& fieldSetNode,
526 return interfaceDefinitions_;
532 return boundaryRegion_;
544 return cellTable_.
fluids();
550 return cellTable_.
solids();
557 return solutionTable_;
571 return lagrangianTable_;
577 const word& solutionName,
578 const word& fieldName,
579 const bool wallData =
false
603 bool mergeInterfaces_;
607 bool renameInterfaces_;
614 bool useNumberedNames_;
const labelList & origCellId() const
Map to original cell Id.
Containers for holding STARCCM interface definitions.
const reader::options & option() const
Reference to the reader options.
scalar mergeTol() const
Merge tolerance for points (default 0.05e-3)
~reader()
Destructor (closes file)
A class for handling words, derived from Foam::string.
bool keptSomeRegion() const
Some region (fluid, porous, solid) is kept.
A class for handling file names.
const labelList & origFaceId() const
Map to original face Id.
Reads CCM files as written by PROSTAR/STARCCM.
Containers for holding ccm solution and field listings.
A class for managing temporary objects.
const fieldTable & lagrangian()
Return table of available lagrangian fields.
The boundaryRegion persistent data saved as a Map<dictionary>.
A HashTable to objects of type <T> with a label key.
void printInfo() const
Print general information about the mesh.
A list of the available fields.
void clearGeom()
Clear out some information after obtaining a polyMesh.
bool hasSolution()
Return true if file has solutions associated with it.
Mesh consisting of general polyhedral cells.
tmp< scalarField > readField(const word &solutionName, const word &fieldName, const bool wallData=false)
Read solution and field combination.
Registry of regIOobjects.
bool removeBaffles() const
Remove baffles by merging their respective faces (default false)
options()
Construct with the defaults.
Map< word > fluids() const
Return a Map of (id => name) for fluids.
const interfaceDefinitions & interfaceDefinitionsInfo() const
Return interface definitions map.
void writeAux(const objectRegistry ®istry) const
Write cellTable, boundaryRegion and interface information.
static void warnDuplicates(const word &context, const wordList &lst)
Warn about repeated name.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
bool remapMeshInfo(const objectRegistry ®istry, const fileName &remappingDictName=fileName::null)
Remap cellTable and boundaryRegion according to dictionary.
bool useNumberedNames() const
Use numbered names (eg, patch_0, zone_0) instead of human-readable.
The cellTable persistent data saved as a Map<dictionary>.
Map< word > solids() const
Return a Map of (id => name) for solids.
bool readGeometry(const scalar scaleFactor=1.0)
Detect and read geometry if possible.
bool keepPorous() const
Keep porous regions (default true)
Map< word > solids() const
Return a list of names corresponding to solids.
streamFormat
Data format (ascii | binary)
bool hasGeometry()
Return true if file has geometry associated with it.
bool renameInterfaces() const
Rename interface boundaries as InterfaceN_0, InterfaceN_1.
static const fileName null
An empty fileName.
const boundaryRegion & boundaryTableInfo() const
Return boundaryRegion table.
A HashTable similar to std::unordered_map.
scalar undefScalar() const
Value to assign for undefined solutions (default: NaN)
const solutionTable & solutions()
Return table of available solutions.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bool mergeInterfaces() const
Merge in-place interfaces (default true)
bool keepSolid() const
Keep solid regions (default true)
void writeMesh(const polyMesh &mesh, IOstream::streamFormat fmt=IOstream::BINARY) const
Write the polyMesh.
Map< word > fluids() const
Return a list of names corresponding to fluids.
bool keepFluid() const
Keep fluid regions (default true)
Various functions to operate on Lists.
A list of available interface definitions.
autoPtr< polyMesh > mesh(const objectRegistry ®istry, const fileName &remappingDictName=fileName::null)
Construct the polyMesh from the read geometry.
Base functionality common to reader and writer classes.
Database for solution data, solver performance and other reduced data.
const fieldTable & fields()
Return table of available fields.
const cellTable & cellTableInfo() const
Return cell table.