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