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 PtrList<PatchField<Type>>& pflds
242 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
250 const PtrList<PatchField<Type>>& pflds
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 word& patchFieldType
336 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
344 const word& patchFieldType
349 IOobjectOption::LEGACY_REGISTER,
359 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
385 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
399 IOobjectOption::LEGACY_REGISTER,
410 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
418 const word& patchFieldType
433 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
440 const word& patchFieldType
454 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
479 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
502 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
519 IOobjectOption::NO_READ,
520 IOobjectOption::NO_WRITE,
521 IOobjectOption::NO_REGISTER
528 if (IOobjectOption::REGISTER == regOpt)
535 (IOobjectOption::LEGACY_REGISTER == regOpt)
536 && ptr->db().is_cacheTemporaryObject(ptr.get())
547 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
558 IOobjectOption::LEGACY_REGISTER,
564 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
571 const word& patchFieldType
582 IOobjectOption::NO_READ,
583 IOobjectOption::NO_WRITE,
584 IOobjectOption::NO_REGISTER
592 if (IOobjectOption::REGISTER == regOpt)
599 (IOobjectOption::LEGACY_REGISTER == regOpt)
600 && ptr->db().is_cacheTemporaryObject(ptr.get())
611 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
617 const word& patchFieldType
623 IOobjectOption::LEGACY_REGISTER,
630 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
649 IOobjectOption::NO_READ,
650 IOobjectOption::NO_WRITE,
651 IOobjectOption::NO_REGISTER
660 if (IOobjectOption::REGISTER == regOpt)
667 (IOobjectOption::LEGACY_REGISTER == regOpt)
668 && ptr->db().is_cacheTemporaryObject(ptr.get())
679 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
692 IOobjectOption::LEGACY_REGISTER,
700 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
701 template<
class AnyType>
708 const word& patchFieldType
718 IOobjectOption::NO_READ,
719 IOobjectOption::NO_WRITE,
720 IOobjectOption::NO_REGISTER
732 ptr->db().is_cacheTemporaryObject(ptr.get())
743 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
744 template<
class AnyType>
751 const word& patchFieldType
761 IOobjectOption::NO_READ,
762 IOobjectOption::NO_WRITE,
763 IOobjectOption::NO_REGISTER
776 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...