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>
188 template<
class Type,
class GeoMesh>
200 IOobjectOption::LEGACY_REGISTER,
209 template<
class Type,
class GeoMesh>
230 template<
class Type,
class GeoMesh>
241 IOobjectOption::LEGACY_REGISTER,
250 template<
class Type,
class GeoMesh>
273 template<
class Type,
class GeoMesh>
285 IOobjectOption::LEGACY_REGISTER,
295 template<
class Type,
class GeoMesh>
316 template<
class Type,
class GeoMesh>
335 template<
class Type,
class GeoMesh>
352 IOobjectOption::NO_READ,
353 IOobjectOption::NO_WRITE,
354 IOobjectOption::NO_REGISTER
361 if (IOobjectOption::REGISTER == regOpt)
368 (IOobjectOption::LEGACY_REGISTER == regOpt)
369 && ptr->db().is_cacheTemporaryObject(ptr.get())
380 template<
class Type,
class GeoMesh>
391 IOobjectOption::LEGACY_REGISTER,
397 template<
class Type,
class GeoMesh>
398 template<
class AnyType>
414 IOobjectOption::NO_READ,
415 IOobjectOption::NO_WRITE,
416 IOobjectOption::NO_REGISTER
426 ptr->db().is_cacheTemporaryObject(ptr.get())
437 template<
class Type,
class GeoMesh>
438 template<
class AnyType>
454 IOobjectOption::NO_READ,
455 IOobjectOption::NO_WRITE,
456 IOobjectOption::NO_REGISTER
467 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...