44 #ifndef fvsPatchField_H 45 #define fvsPatchField_H 59 class fvPatchFieldMapper;
72 Ostream& operator<<(Ostream&, const fvsPatchField<Type>&);
131 (dynamic_cast<const fvsPatchFieldType&>(ptf), p, iF, m)
230 const word& actualPatchType,
263 template<
class Type2>
292 return internalField_;
298 return internalField_;
388 #define makeFvsPatchTypeFieldTypeName(type) \ 390 defineNamedTemplateTypeNameAndDebug(type, 0); 392 #define makeFvsPatchFieldsTypeName(type) \ 394 makeFvsPatchTypeFieldTypeName(type##FvsPatchScalarField); \ 395 makeFvsPatchTypeFieldTypeName(type##FvsPatchVectorField); \ 396 makeFvsPatchTypeFieldTypeName(type##FvsPatchSphericalTensorField); \ 397 makeFvsPatchTypeFieldTypeName(type##FvsPatchSymmTensorField); \ 398 makeFvsPatchTypeFieldTypeName(type##FvsPatchTensorField); 400 #define makeFvsPatchTypeField(PatchTypeField, typePatchTypeField) \ 402 defineNamedTemplateTypeNameAndDebug(typePatchTypeField, 0); \ 404 addToRunTimeSelectionTable \ 406 PatchTypeField, typePatchTypeField, patch \ 409 addToRunTimeSelectionTable \ 412 typePatchTypeField, \ 416 addToRunTimeSelectionTable \ 418 PatchTypeField, typePatchTypeField, dictionary \ 422 #define makeFvsPatchFields(type) \ 424 makeFvsPatchTypeField(fvsPatchScalarField, type##FvsPatchScalarField); \ 425 makeFvsPatchTypeField(fvsPatchVectorField, type##FvsPatchVectorField); \ 426 makeFvsPatchTypeField \ 428 fvsPatchSphericalTensorField, \ 429 type##FvsPatchSphericalTensorField \ 431 makeFvsPatchTypeField(fvsPatchSymmTensorField, type##FvsPatchSymmTensorField); \ 432 makeFvsPatchTypeField(fvsPatchTensorField, type##FvsPatchTensorField); 435 #define makeFvsPatchTypeFieldTypedefs(type) \ 437 typedef type##FvsPatchField<scalar> type##FvsPatchScalarField; \ 438 typedef type##FvsPatchField<vector> type##FvsPatchVectorField; \ 439 typedef type##FvsPatchField<sphericalTensor> \ 440 type##FvsPatchSphericalTensorField; \ 441 typedef type##FvsPatchField<symmTensor> type##FvsPatchSymmTensorField; \ 442 typedef type##FvsPatchField<tensor> type##FvsPatchTensorField; virtual void operator*=(const fvsPatchField< scalar > &)
virtual bool fixesValue() const
Return true if this patch field fixes a value.
virtual void write(Ostream &) const
Write.
TypeName("fvsPatchField")
Runtime type information.
const Field< Type > & primitiveField() const
Return internal field reference.
const objectRegistry & db() const
Return local objectRegistry.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void operator==(const fvsPatchField< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static tmp< fvsPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvsPatchField created on.
calculatedFvsPatchField< Type > Calculated
virtual void operator/=(const fvsPatchField< scalar > &)
static tmp< fvsPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Return a pointer to a new patchField created on freestore given.
Pre-declare SubField and related Field type.
virtual bool coupled() const
Return true if this patch field is coupled.
A class for handling words, derived from string.
void check(const fvsPatchField< Type > &) const
Check fvsPatchField<Type> against given fvsPatchField<Type>
Foam::fvPatchFieldMapper.
declareRunTimeSelectionTable(tmp, fvsPatchField, patch,(const fvPatch &p, const DimensionedField< Type, surfaceMesh > &iF),(p, iF))
fvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
virtual void operator-=(const fvsPatchField< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void rmap(const fvsPatchField< Type > &, const labelList &)
Reverse map the given fvsPatchField onto this fvsPatchField.
const fvPatch & patch() const
Return patch.
virtual void operator+=(const fvsPatchField< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void operator=(const UList< Type > &)
Foam::calculatedFvsPatchField.
const DimensionedField< Type, surfaceMesh > & internalField() const
Return dimensioned internal field reference.
A class for managing temporary objects.
Registry of regIOobjects.
static const word & calculatedType()
Return the type of the calculated for of fvsPatchField.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
static int disallowGenericFvsPatchField
Debug switch to disallow the use of genericFvsPatchField.
virtual tmp< fvsPatchField< Type > > clone() const
Construct and return a clone.