46 const GeometricField<Type, faPatchField, areaMesh>& vf,
48 const bool allowUnmapped
52 PtrList<faPatchField<Type>> patchFields(sMesh.boundary().size());
54 forAll(patchFields, patchi)
62 sMesh.boundary()[patchi],
68 auto tresult = tmp<GeometricField<Type, faPatchField, areaMesh>>
::New 73 sMesh.time().timeName(),
84 auto& result = tresult.ref();
85 result.oriented() = vf.oriented();
91 auto& bf = result.boundaryFieldRef();
96 const faPatch& subPatch = sMesh.boundary()[patchi];
103 const bool hasUnmapped = mapper.hasUnmapped();
106 mapper.hasUnmapped() =
false;
114 vf.boundaryField()[patchi],
121 if (allowUnmapped && hasUnmapped)
128 tmp<Field<Type>> tfld(bf[patchi].patchInternalField());
129 const Field<Type>&
fld = tfld();
131 Field<Type> value(bf[patchi]);
132 forAll(directAddressing, i)
134 if (directAddressing[i] == -1)
139 bf[patchi].faPatchField<Type>::operator=(value);
154 const GeometricField<Type, faePatchField, edgeMesh>& vf,
159 PtrList<faePatchField<Type>> patchFields(sMesh.boundary().size());
161 forAll(patchFields, patchi)
169 sMesh.boundary()[patchi],
175 auto tresult = tmp<GeometricField<Type, faePatchField, edgeMesh>>
::New 180 sMesh.time().timeName(),
195 auto& result = tresult.ref();
196 result.oriented() = vf.oriented();
202 auto& bf = result.boundaryFieldRef();
207 const faPatch& subPatch = sMesh.boundary()[patchi];
217 vf.boundaryField()[patchi],
238 const GeometricField<Type, faPatchField, areaMesh>& vf,
239 const bool allowUnmapped
258 const GeometricField<Type, faePatchField, edgeMesh>& vf,
259 const bool allowUnmapped
static tmp< faPatchField< Type > > New(const word &patchFieldType, const word &actualPatchType, const faPatch &, const DimensionedField< Type, areaMesh > &)
Return a pointer to a new patchField created on freestore given patch and internal field...
static const word & calculatedType() noexcept
The type name for calculated patch fields.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
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.
Ignore writing from objectRegistry::writeObject()
#define forAll(list, i)
Loop across all elements in list.
static const DimensionedField< Type, GeoMesh > & null()
Return a NullObjectRef DimensionedField.
static tmp< GeometricField< Type, faPatchField, areaMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &, const faMesh &sMesh, const bool allowUnmapped=false)
Map area field.
DirectFieldMapper< faPatchFieldMapper > directFaPatchFieldMapper
A direct faPatchFieldMapper.
static const word & calculatedType() noexcept
The type name for calculated patch fields.
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))
static tmp< faePatchField< Type > > New(const word &patchFieldType, const faPatch &, const DimensionedField< Type, edgeMesh > &)
Return a pointer to a new patchField created on freestore given.
List< label > labelList
A List of labels.
A class for managing temporary objects.