30 template<
class Type,
class GeoMesh>
31 template<
class... Args>
47 mesh.thisDb().time().timeName(),
49 IOobjectOption::NO_READ,
50 IOobjectOption::NO_WRITE,
51 IOobjectOption::NO_REGISTER
54 std::forward<Args>(
args)...
59 if (IOobjectOption::REGISTER == regOpt)
66 (IOobjectOption::LEGACY_REGISTER == regOpt)
67 && ptr->db().is_cacheTemporaryObject(ptr.get())
80 template<
class Type,
class GeoMesh>
102 template<
class Type,
class GeoMesh>
114 IOobjectOption::LEGACY_REGISTER,
123 template<
class Type,
class GeoMesh>
145 template<
class Type,
class GeoMesh>
157 IOobjectOption::LEGACY_REGISTER,
166 template<
class Type,
class GeoMesh>
187 template<
class Type,
class GeoMesh>
198 IOobjectOption::LEGACY_REGISTER,
207 template<
class Type,
class GeoMesh>
230 template<
class Type,
class GeoMesh>
242 IOobjectOption::LEGACY_REGISTER,
252 template<
class Type,
class GeoMesh>
273 template<
class Type,
class GeoMesh>
292 template<
class Type,
class GeoMesh>
309 IOobjectOption::NO_READ,
310 IOobjectOption::NO_WRITE,
311 IOobjectOption::NO_REGISTER
318 if (IOobjectOption::REGISTER == regOpt)
325 (IOobjectOption::LEGACY_REGISTER == regOpt)
326 && ptr->db().is_cacheTemporaryObject(ptr.get())
337 template<
class Type,
class GeoMesh>
348 IOobjectOption::LEGACY_REGISTER,
354 template<
class Type,
class GeoMesh>
355 template<
class AnyType>
371 IOobjectOption::NO_READ,
372 IOobjectOption::NO_WRITE,
373 IOobjectOption::NO_REGISTER
383 ptr->db().is_cacheTemporaryObject(ptr.get())
394 template<
class Type,
class GeoMesh>
395 template<
class AnyType>
411 IOobjectOption::NO_READ,
412 IOobjectOption::NO_WRITE,
413 IOobjectOption::NO_REGISTER
424 ptr->db().is_cacheTemporaryObject(ptr.get())
const Type & value() const noexcept
Return const reference to value.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Generic dimensioned Type class.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Generic templated field type.
A class for handling words, derived from Foam::string.
const dimensionSet & dimensions() const noexcept
Return const reference to dimensions.
Foam::pointMesh ::Mesh Mesh
The mesh type for the DimensionedField.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true)
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
Foam::argList args(argc, argv)
Defines the attributes of an object for which implicit objectRegistry management is supported...