31 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
32 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)...
57 if (IOobjectOption::REGISTER == regOpt)
64 (IOobjectOption::LEGACY_REGISTER == regOpt)
65 && ptr->db().is_cacheTemporaryObject(ptr.get())
77 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
85 const word& patchFieldType
99 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
106 const word& patchFieldType
111 IOobjectOption::LEGACY_REGISTER,
120 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
129 const word& patchFieldType
144 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
152 const word& patchFieldType
157 IOobjectOption::LEGACY_REGISTER,
167 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
176 const word& patchFieldType
191 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
199 const word& patchFieldType
204 IOobjectOption::LEGACY_REGISTER,
214 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
223 const word& patchFieldType
238 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
246 const word& patchFieldType
251 IOobjectOption::LEGACY_REGISTER,
261 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
287 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
301 IOobjectOption::LEGACY_REGISTER,
312 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
320 const word& patchFieldType
335 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
342 const word& patchFieldType
356 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
381 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
404 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
410 const word& patchFieldType
421 IOobjectOption::NO_READ,
422 IOobjectOption::NO_WRITE,
423 IOobjectOption::NO_REGISTER
431 ptr->db().is_cacheTemporaryObject(ptr.get())
441 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
457 IOobjectOption::NO_READ,
458 IOobjectOption::NO_WRITE,
459 IOobjectOption::NO_REGISTER
466 ptr->db().is_cacheTemporaryObject(ptr.get())
476 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
494 IOobjectOption::NO_READ,
495 IOobjectOption::NO_WRITE,
496 IOobjectOption::NO_REGISTER
505 ptr->db().is_cacheTemporaryObject(ptr.get())
515 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
516 template<
class AnyType>
523 const word& patchFieldType
533 IOobjectOption::NO_READ,
534 IOobjectOption::NO_WRITE,
535 IOobjectOption::NO_REGISTER
544 ptr->db().is_cacheTemporaryObject(ptr.get())
554 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
555 template<
class AnyType>
562 const word& patchFieldType
572 IOobjectOption::NO_READ,
573 IOobjectOption::NO_WRITE,
574 IOobjectOption::NO_REGISTER
584 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)
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...