30template<
class Type,
class GeoMesh>
31template<
class... Args>
33Foam::DimensionedField<Type, GeoMesh>::New_impl
47 mesh.thisDb().time().timeName(),
54 std::forward<Args>(
args)...
67 && ptr->db().is_cacheTemporaryObject(ptr.get())
80template<
class Type,
class GeoMesh>
91 return DimensionedField<Type, GeoMesh>::New_impl
102template<
class Type,
class GeoMesh>
112 return DimensionedField<Type, GeoMesh>::New_impl
123template<
class Type,
class GeoMesh>
134 return DimensionedField<Type, GeoMesh>::New_impl
145template<
class Type,
class GeoMesh>
155 return DimensionedField<Type, GeoMesh>::New_impl
166template<
class Type,
class GeoMesh>
177 return DimensionedField<Type, GeoMesh>::New_impl
188template<
class Type,
class GeoMesh>
198 return DimensionedField<Type, GeoMesh>::New_impl
209template<
class Type,
class GeoMesh>
219 return DimensionedField<Type, GeoMesh>::New_impl
230template<
class Type,
class GeoMesh>
239 return DimensionedField<Type, GeoMesh>::New_impl
250template<
class Type,
class GeoMesh>
261 return DimensionedField<Type, GeoMesh>::New_impl
273template<
class Type,
class GeoMesh>
283 return DimensionedField<Type, GeoMesh>::New_impl
295template<
class Type,
class GeoMesh>
316template<
class Type,
class GeoMesh>
335template<
class Type,
class GeoMesh>
368 (IOobjectOption::LEGACY_REGISTER == regOpt)
369 && ptr->db().is_cacheTemporaryObject(ptr.get())
380template<
class Type,
class GeoMesh>
385 const tmp<DimensionedField<Type, GeoMesh>>& tfld
388 return DimensionedField<Type, GeoMesh>::New
391 IOobjectOption::LEGACY_REGISTER,
397template<
class Type,
class GeoMesh>
398template<
class AnyType>
426 ptr->db().is_cacheTemporaryObject(ptr.get())
437template<
class Type,
class GeoMesh>
438template<
class AnyType>
467 ptr->db().is_cacheTemporaryObject(ptr.get())
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
DimensionedField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &field)
Construct from components, copy initial field content.
const Mesh & mesh() const noexcept
static tmp< DimensionedField< Type, areaMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField)
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true).
@ NO_REGISTER
Do not request registration (bool: false).
@ LEGACY_REGISTER
Legacy/default registration request (bool: true).
@ REGISTER
Request registration (bool: true).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const fileName & instance() const noexcept
Read access to instance path component.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic dimensioned Type class.
const dimensionSet & dimensions() const noexcept
Return const reference to dimensions.
const Type & value() const noexcept
Return const reference to value.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Foam::argList args(argc, argv)