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_;
393 #define makeFvsPatchTypeFieldTypeName(type) \ 395 defineNamedTemplateTypeNameAndDebug(type, 0); 397 #define makeFvsPatchFieldsTypeName(type) \ 399 makeFvsPatchTypeFieldTypeName(type##FvsPatchScalarField); \ 400 makeFvsPatchTypeFieldTypeName(type##FvsPatchVectorField); \ 401 makeFvsPatchTypeFieldTypeName(type##FvsPatchSphericalTensorField); \ 402 makeFvsPatchTypeFieldTypeName(type##FvsPatchSymmTensorField); \ 403 makeFvsPatchTypeFieldTypeName(type##FvsPatchTensorField); 405 #define makeFvsPatchTypeField(PatchTypeField, typePatchTypeField) \ 407 defineNamedTemplateTypeNameAndDebug(typePatchTypeField, 0); \ 409 addToRunTimeSelectionTable \ 411 PatchTypeField, typePatchTypeField, patch \ 414 addToRunTimeSelectionTable \ 417 typePatchTypeField, \ 421 addToRunTimeSelectionTable \ 423 PatchTypeField, typePatchTypeField, dictionary \ 427 #define makeFvsPatchFields(type) \ 429 makeFvsPatchTypeField(fvsPatchScalarField, type##FvsPatchScalarField); \ 430 makeFvsPatchTypeField(fvsPatchVectorField, type##FvsPatchVectorField); \ 431 makeFvsPatchTypeField \ 433 fvsPatchSphericalTensorField, \ 434 type##FvsPatchSphericalTensorField \ 436 makeFvsPatchTypeField(fvsPatchSymmTensorField, type##FvsPatchSymmTensorField); \ 437 makeFvsPatchTypeField(fvsPatchTensorField, type##FvsPatchTensorField); 440 #define makeFvsPatchTypeFieldTypedefs(type) \ 442 typedef type##FvsPatchField<scalar> type##FvsPatchScalarField; \ 443 typedef type##FvsPatchField<vector> type##FvsPatchVectorField; \ 444 typedef type##FvsPatchField<sphericalTensor> \ 445 type##FvsPatchSphericalTensorField; \ 446 typedef type##FvsPatchField<symmTensor> type##FvsPatchSymmTensorField; \ 447 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.