Go to the documentation of this file.
48 bool notEqual(
const scalar s1,
const scalar s2,
const scalar tol)
50 return mag(s1-s2) > tol;
56 int main(
int argc,
char *argv[])
68 Info<<
"Deleting cells using inflation/deflation" <<
nl <<
endl;
72 Info<<
"Deleting cells, introducing points at new position" <<
nl
99 zeroGradientFvPatchScalarField::typeName
101 Info<<
"Writing one field "
102 <<
one.name() <<
" in " << runTime.timeName() <<
endl;
119 Info<<
"Writing x component of cell centres to "
121 <<
" in " << runTime.timeName() <<
endl;
138 calculatedFvsPatchScalarField::typeName
140 Info<<
"Writing surface one field "
141 << surfaceOne.name() <<
" in " << runTime.timeName() <<
endl;
155 while (runTime.loop())
157 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
198 Info<<
"Actually changing mesh" <<
nl <<
endl;
205 if (morphMap().hasMotionPoints())
229 <<
"Volume not mapped. V:" <<
mesh.
V().size()
235 Info<<
"Initial volume = " << totalVol
236 <<
" New volume = " << newVol
239 if (
mag(newVol-totalVol)/totalVol > 1
e-10)
242 <<
"Volume loss: old volume:" << totalVol
243 <<
" new volume:" << newVol
258 Info<<
"Uniform one field min = " <<
min
264 <<
"Uniform volVectorField not preserved."
265 <<
" Min and max should both be 1.0. min:" <<
min
271 Info<<
"Uniform field mapping check OK" <<
nl <<
endl;
282 Info<<
"Linear profile field min = " <<
min
288 <<
"Linear profile not preserved."
289 <<
" Min and max should both be 0.0. min:" <<
min
295 Info<<
"Linear profile mapping check OK" <<
nl <<
endl;
300 if (surfaceOne.size())
305 Info<<
"Uniform surface field min = " <<
min
311 <<
"Uniform surfaceScalarField not preserved."
312 <<
" Min and max should both be 1.0. min:" <<
min
318 Info<<
"Uniform surfaceScalarField mapping check OK" <<
nl
324 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
325 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Simple random number generator.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const stringList & args() const
Return arguments.
autoPtr< mapPolyMesh > changeMesh(polyMesh &mesh, const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
Inplace changes mesh without change of patches.
bool moving() const
Is mesh moving.
Direct mesh changes based on v1.3 polyTopoChange syntax.
Calculate the divergence of the given field.
A class representing the concept of 1 (scalar(1.0)) used to avoid unnecessary manipulations for objec...
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
void setRefinement(const labelList &piercedFaces, const labelList &cellRegion, const labelList &cellRegionMaster, polyTopoChange &) const
Play commands into polyTopoChange to remove faces.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
int main(int argc, char *argv[])
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Given list of faces to remove insert all the topology changes. Contains helper function to get consis...
Pre-declare SubField and related Field type.
virtual Ostream & write(const token &)=0
Write next token to stream.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh corresponding to the given map.
InternalField & internalField()
Return internal field.
label nInternalFaces() const
Generic dimensioned Type class.
const double e
Elementary charge.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const volVectorField & C() const
Return cell centres as volVectorField.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const vectorField & faceCentres() const
Type gMin(const FieldField< Field, Type > &f)
label compatibleRemoves(const labelList &inPiercedFaces, labelList &cellRegion, labelList &cellRegionMaster, labelList &outPiercedFaces) const
Find faces including those with cells which have the same mastercell.
Generic GeometricField class.
Foam::argList args(argc, argv)
bool notEqual(const Scalar s1, const Scalar s2)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
cachedRandom rndGen(label(0), -1)
Type gMax(const FieldField< Field, Type > &f)