177 #ifndef Foam_turbulentDigitalFilterInletFvPatchField_H 178 #define Foam_turbulentDigitalFilterInletFvPatchField_H 195 class turbulentDigitalFilterInletFvPatchField
197 public fixedValueFvPatchField<Type>
202 using TypeR = std::conditional_t
204 std::is_same_v<scalar, Type>,
213 mutable autoPtr<AMIPatchToPatchInterpolation> AMIPtr_;
216 autoPtr<PatchFunction1<Type>> meanPtr_;
219 autoPtr<PatchFunction1<TypeR>> Rptr_;
228 turbulence::IntegralScaleBox<Type> L_;
234 vector calcPatchNormal()
const;
237 void initialisePatch();
240 void mapL(Field<Type>&
fld);
330 virtual void autoMap(
const fvPatchFieldMapper& m);
335 const fvPatchField<Type>& ptf,
349 virtual void write(Ostream&)
const;
virtual void write(Ostream &) const
Write boundary condition settings.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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))
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
TypeName("turbulentDigitalFilterInlet")
Runtime type information.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void rmap(const fvPatchField< Type > &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
Digital-filter based boundary condition for vector- and scalar-based quantities (e.g. U or T) to generate synthetic turbulence-alike time-series from input turbulence statistics for LES and DES turbulent flow computations.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< fvPatchField< Type > > clone() const
Return a clone.
turbulentDigitalFilterInletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.