40 Info<<
"Rounding bounding box to multiples of " <<
s <<
endl;
52 const Pair<word> patchOpt(patchOpts_.find(option)());
57 constraintTypes_.found(patchOpt.second())
64 << option <<
" should be of the form "
65 <<
"'(<name> <type>)'" <<
nl
66 <<
"where <type> must be a generic \"patch\", \"wall\" "
67 <<
"or a constraint condition:" <<
nl <<
nl
68 << constraintTypes_.sortedToc()
83 const word bgm(
"$!backgroundMesh/");
99 const meshingSurfaceList& surfaces,
100 const HashTable<Pair<word>>& patchOpts
103 caseFileConfiguration(
name, dir,
time),
108 IFstream(
findEtcFile(
"caseDicts/setConstraintTypes", true))()
112 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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Functions to search 'etc' directories for configuration files etc.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::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.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
scalar roundUp(const scalar x, const scalar s)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Ostream & indent(Ostream &os)
Indent stream.