39 Info<<
"Rounding bounding box to multiples of " <<
s <<
endl;
51 const Pair<word> patchOpt(patchOpts_.find(option)());
57 || patchOpt.second() == wallPolyPatch::typeName
58 || patchOpt.second() == polyPatch::typeName
63 << option <<
" should be of the form "
64 <<
"'(<name> <type>)'" <<
nl
65 <<
"where <type> must be a generic \"patch\", \"wall\" "
66 <<
"or a constraint condition:" <<
nl <<
nl
82 const word bgm(
"$!backgroundMesh/");
98 const meshingSurfaceList& surfaces,
99 const HashTable<Pair<word>>& patchOpts
102 caseFileConfiguration(
name, dir, time),
104 patchOpts_(patchOpts)
Functions for calculating the bounds and number of cells of a background mesh configured within a blo...
void writeVertex(const word &x, const word &y, const word &z)
Write a vertex entry in the vertices list.
void roundBoundingBox(boundBox &bb, const scalar s)
Round a bounding box by the rounding scale.
Pair< word > readPatchOption(const word &option) const
Parse the patch commandline options.
blockMeshConfigurationBase(const fileName &name, const fileName &dir, const Time &time, const meshingSurfaceList &surfaces, const HashTable< Pair< word >> &patchOpts)
Construct from components.
~blockMeshConfigurationBase()
Destructor.
static wordList constraintTypes()
Return a list of all the constraint patch types.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
scalar roundDown(const scalar x, const scalar s)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
scalar roundUp(const scalar x, const scalar s)
Ostream & indent(Ostream &os)
Indent stream.