Write OpenFOAM meshes and/or results to CCM format. More...
Public Member Functions | |
writer (const fileName &file, const polyMesh &mesh, const bool backup=true) | |
~writer () | |
void | writeGeometry () |
void | writeSolution (const IOobjectList &objects, const fileName &remappingDictName=fileName::null) |
![]() | |
base () | |
~base () | |
bool | close () |
Static Public Attributes | |
static string | defaultMeshName = "meshExport" |
Additional Inherited Members | |
![]() | |
enum | fileHeader { HEADER_CEL, HEADER_VRT, HEADER_BND } |
enum | fileExt { CEL_FILE, VRT_FILE, BND_FILE, INP_FILE } |
enum | matlType { starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4, starcdLineType = 5, starcdPointType = 6 } |
enum | shapeType { starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11, starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255 } |
![]() | |
bool | assertNoError (const char *msg) const |
bool | assertNoError (const std::string &msg) const |
base (const base &)=delete | |
void | operator= (const base &)=delete |
![]() | |
STARCDCore ()=default | |
![]() | |
static bool | assertNoError (int err, const char *msg) |
static bool | assertNoError (int err, const std::string &msg) |
![]() | |
static bool | readHeader (IFstream &is, const enum fileHeader header) |
static void | writeHeader (Ostream &os, const enum fileHeader header) |
static fileName | starFileName (const fileName &baseName, const enum fileExt ext) |
static void | removeFiles (const fileName &baseName) |
static label | readPoints (IFstream &is, List< point > &points, List< label > &ids) |
static void | writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0) |
![]() | |
std::unique_ptr< ccmGlobalState > | globalState_ |
![]() | |
static const Map< FixedList< int, 6 > > | starToFoamFaceAddr |
static const Map< FixedList< int, 6 > > | foamToStarFaceAddr |
static const char *const | defaultBoundaryName |
static const char *const | defaultSolidBoundaryName |
Write OpenFOAM meshes and/or results to CCM format.
The constant/boundaryRegion
and constant/cellTable
files, which are described in ccmReader, are used to construct the CCM ProblemDescription
node.
The constant/remapping
file is an IOdictionary
that is READ_IF_PRESENT
and can be used to remap certain information. eg,
// map OpenFOAM scalar fields to CCM output fields fields { tracer0 { name CONC_001; Label "tracer0"; } tracer1 { name CONC_002; Label "tracer1"; } tracer2 { name CONC_003; Label "tracer2"; } divPhi { name CONC_004; Label "divPhi"; } // an example with units: p { name P; Label "Pressure"; units "Pa"; } }
Definition at line 115 of file ccmWriter.H.
Definition at line 285 of file ccmWriter.C.
References cellModel::HEX, cellModel::index(), cellModel::PRISM, cellModel::PYR, cellModel::ref(), and cellModel::TET.
~writer | ( | ) |
Definition at line 369 of file ccmWriter.C.
void writeGeometry | ( | ) |
Definition at line 710 of file ccmWriterMesh.C.
void writeSolution | ( | const IOobjectList & | objects, |
const fileName & | remappingDictName = fileName::null |
||
) |
Definition at line 119 of file ccmWriterSolution.C.
References GeometricField::component(), Foam::endl(), field(), Foam::flush(), forAll, forAllConstIters(), dictionary::found(), Foam::Info, dictionary::isDict(), Foam::name(), IOobject::NO_WRITE, patches, IOobject::READ_IF_PRESENT, dictionary::readEntry(), runTime, dictionary::subDict(), timeIndex, IOobject::typeHeaderOk(), and WarningInFunction.
|
static |
Definition at line 214 of file ccmWriter.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.