Go to the documentation of this file.
56 const string singleCellName =
"singleCell";
59 template<
class GeoField>
60 void interpolateFields
69 GeoField* scFldPtr = scFld.
ptr();
77 int main(
int argc,
char *argv[])
81 "Map fields to a mesh with all internal faces removed"
82 " (singleCellFvMesh) which gets written to region 'singleCell'"
97 <<
"Cannot convert region " << singleCellName
98 <<
" since result would overwrite it. Please rename your region."
103 Info<<
"Creating singleCell mesh" <<
nl <<
endl;
144 Info<<
"Detected changed mesh. Recreating singleCell mesh." <<
endl;
184 interpolateFields(scMesh(), vsFlds);
185 interpolateFields(scMesh(), vvFlds);
186 interpolateFields(scMesh(), vstFlds);
187 interpolateFields(scMesh(), vsymtFlds);
188 interpolateFields(scMesh(), vtFlds);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool exists(const fileName &name, const bool checkGzip=true, const bool followLink=true)
virtual bool write(const bool valid=true) const
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool syncPar=true, const bool readOldTime=false)
A class for managing temporary objects.
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
virtual readUpdateState readUpdate()
const fileName & pointsInstance() const
fvMesh as subset of other mesh. Consists of one cell and all original bounday faces....
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
List of IOobjects with searching and retrieving facilities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Field reading functions for post-processing utilities.
static void addOptions(const bool constant=true, const bool withZero=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void setTime(const Time &t)
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
bool ln(const fileName &src, const fileName &dst)
fileName objectPath() const
static instantList select0(Time &runTime, const argList &args)
Foam::argList args(argc, argv)
bool mkDir(const fileName &pathName, mode_t mode=0777)
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)