31 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
32 template<
class... Args>
48 mesh.thisDb().time().timeName(),
50 IOobjectOption::NO_READ,
51 IOobjectOption::NO_WRITE,
52 IOobjectOption::NO_REGISTER
55 std::forward<Args>(
args)...
60 if (IOobjectOption::REGISTER == regOpt)
67 (IOobjectOption::LEGACY_REGISTER == regOpt)
68 && ptr->db().is_cacheTemporaryObject(ptr.get())
81 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
89 const word& patchFieldType
103 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
110 const word& patchFieldType
115 IOobjectOption::LEGACY_REGISTER,
124 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
133 const word& patchFieldType
148 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
156 const word& patchFieldType
161 IOobjectOption::LEGACY_REGISTER,
171 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
180 const word& patchFieldType
195 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
203 const word& patchFieldType
208 IOobjectOption::LEGACY_REGISTER,
218 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
227 const word& patchFieldType
242 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
250 const word& patchFieldType
255 IOobjectOption::LEGACY_REGISTER,
265 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
274 const PtrList<PatchField<Type>>& pflds
289 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
297 const PtrList<PatchField<Type>>& pflds
302 IOobjectOption::LEGACY_REGISTER,
312 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
321 const PtrList<PatchField<Type>>& pflds
336 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
344 const PtrList<PatchField<Type>>& pflds
349 IOobjectOption::LEGACY_REGISTER,
359 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
368 const word& patchFieldType
383 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
391 const word& patchFieldType
396 IOobjectOption::LEGACY_REGISTER,
406 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
432 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
446 IOobjectOption::LEGACY_REGISTER,
457 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
465 const word& patchFieldType
480 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
487 const word& patchFieldType
501 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
526 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
549 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
566 IOobjectOption::NO_READ,
567 IOobjectOption::NO_WRITE,
568 IOobjectOption::NO_REGISTER
575 if (IOobjectOption::REGISTER == regOpt)
582 (IOobjectOption::LEGACY_REGISTER == regOpt)
583 && ptr->db().is_cacheTemporaryObject(ptr.get())
594 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
605 IOobjectOption::LEGACY_REGISTER,
611 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
618 const word& patchFieldType
629 IOobjectOption::NO_READ,
630 IOobjectOption::NO_WRITE,
631 IOobjectOption::NO_REGISTER
639 if (IOobjectOption::REGISTER == regOpt)
646 (IOobjectOption::LEGACY_REGISTER == regOpt)
647 && ptr->db().is_cacheTemporaryObject(ptr.get())
658 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
664 const word& patchFieldType
670 IOobjectOption::LEGACY_REGISTER,
677 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
696 IOobjectOption::NO_READ,
697 IOobjectOption::NO_WRITE,
698 IOobjectOption::NO_REGISTER
707 if (IOobjectOption::REGISTER == regOpt)
714 (IOobjectOption::LEGACY_REGISTER == regOpt)
715 && ptr->db().is_cacheTemporaryObject(ptr.get())
726 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
739 IOobjectOption::LEGACY_REGISTER,
747 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
748 template<
class AnyType>
755 const word& patchFieldType
765 IOobjectOption::NO_READ,
766 IOobjectOption::NO_WRITE,
767 IOobjectOption::NO_REGISTER
779 ptr->db().is_cacheTemporaryObject(ptr.get())
790 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
791 template<
class AnyType>
798 const word& patchFieldType
808 IOobjectOption::NO_READ,
809 IOobjectOption::NO_WRITE,
810 IOobjectOption::NO_REGISTER
823 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 GeometricField class.
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.
GeoMesh::Mesh Mesh
The mesh type for the DimensionedField.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
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)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A class for managing temporary objects.
Foam::argList args(argc, argv)
Defines the attributes of an object for which implicit objectRegistry management is supported...