Go to the documentation of this file.
47 #ifndef fvsPatchField_H
48 #define fvsPatchField_H
62 class fvPatchFieldMapper;
134 (
dynamic_cast<const fvsPatchFieldType&
>(ptf),
p, iF, m)
230 const word& actualPatchType,
263 template<
class Type2>
290 return internalField_;
296 return internalField_;
391 #define makeFvsPatchTypeFieldTypeName(type) \
393 defineNamedTemplateTypeNameAndDebug(type, 0);
395 #define makeFvsPatchFieldsTypeName(type) \
397 makeFvsPatchTypeFieldTypeName(type##FvsPatchScalarField); \
398 makeFvsPatchTypeFieldTypeName(type##FvsPatchVectorField); \
399 makeFvsPatchTypeFieldTypeName(type##FvsPatchSphericalTensorField); \
400 makeFvsPatchTypeFieldTypeName(type##FvsPatchSymmTensorField); \
401 makeFvsPatchTypeFieldTypeName(type##FvsPatchTensorField);
403 #define makeFvsPatchTypeField(PatchTypeField, typePatchTypeField) \
405 defineNamedTemplateTypeNameAndDebug(typePatchTypeField, 0); \
407 addToRunTimeSelectionTable \
409 PatchTypeField, typePatchTypeField, patch \
412 addToRunTimeSelectionTable \
415 typePatchTypeField, \
419 addToRunTimeSelectionTable \
421 PatchTypeField, typePatchTypeField, dictionary \
425 #define makeFvsPatchFields(type) \
427 makeFvsPatchTypeField(fvsPatchScalarField, type##FvsPatchScalarField); \
428 makeFvsPatchTypeField(fvsPatchVectorField, type##FvsPatchVectorField); \
429 makeFvsPatchTypeField \
431 fvsPatchSphericalTensorField, \
432 type##FvsPatchSphericalTensorField \
434 makeFvsPatchTypeField(fvsPatchSymmTensorField, type##FvsPatchSymmTensorField); \
435 makeFvsPatchTypeField(fvsPatchTensorField, type##FvsPatchTensorField);
438 #define makeFvsPatchTypeFieldTypedefs(type) \
440 typedef type##FvsPatchField<scalar> type##FvsPatchScalarField; \
441 typedef type##FvsPatchField<vector> type##FvsPatchVectorField; \
442 typedef type##FvsPatchField<sphericalTensor> \
443 type##FvsPatchSphericalTensorField; \
444 typedef type##FvsPatchField<symmTensor> type##FvsPatchSymmTensorField; \
445 typedef type##FvsPatchField<tensor> type##FvsPatchTensorField;
virtual void operator==(const fvsPatchField< Type > &)
virtual void operator=(const UList< Type > &)
static const word & calculatedType()
Return the type of the calculated for of fvsPatchField.
virtual void operator-=(const fvsPatchField< Type > &)
A class for handling words, derived from Foam::string.
const objectRegistry & db() const
Return local objectRegistry.
A class for managing temporary objects.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Foam::calculatedFvsPatchField.
Registry of regIOobjects.
const DimensionedField< Type, surfaceMesh > & internalField() const
Return dimensioned internal field reference.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Generic templated field type.
static int disallowGenericFvsPatchField
Debug switch to disallow the use of genericFvsPatchField.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
calculatedFvsPatchField< Type > Calculated
virtual tmp< fvsPatchField< Type > > clone() const
Construct and return a clone.
static tmp< fvsPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Return a pointer to a new patchField created on freestore given.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void operator+=(const fvsPatchField< Type > &)
fvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
const Field< Type > & primitiveField() const
Return internal field reference.
declareRunTimeSelectionTable(tmp, fvsPatchField, patch,(const fvPatch &p, const DimensionedField< Type, surfaceMesh > &iF),(p, iF))
TypeName("fvsPatchField")
Runtime type information.
const fvPatch & patch() const
Return patch.
virtual void rmap(const fvsPatchField< Type > &, const labelList &)
Reverse map the given fvsPatchField onto this fvsPatchField.
static tmp< fvsPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvsPatchField created on.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual bool coupled() const
Return true if this patch field is coupled.
virtual bool fixesValue() const
Return true if this patch field fixes a value.
virtual void operator/=(const fvsPatchField< scalar > &)
void check(const fvsPatchField< Type > &) const
Check fvsPatchField<Type> against given fvsPatchField<Type>
virtual void operator*=(const fvsPatchField< scalar > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...