44 #ifndef fvPatchField_H 45 #define fvPatchField_H 60 class fvPatchFieldMapper;
76 Ostream& operator<<(Ostream&, const fvPatchField<Type>&);
102 bool manipulatedMatrix_;
148 (dynamic_cast<const fvPatchFieldType&>(ptf), p, iF, m)
188 const bool valueRequired=
true 198 const bool mappingRequired=
true 246 const word& actualPatchType,
279 template<
class Type2>
335 return internalField_;
341 return internalField_;
365 return manipulatedMatrix_;
569 #define makeFvPatchField(fvPatchTypeField) \ 571 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \ 573 int fvPatchTypeField::disallowGenericFvPatchField \ 575 debug::debugSwitch("disallowGenericFvPatchField", 0) \ 577 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \ 578 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \ 579 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary); 582 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \ 583 addToRunTimeSelectionTable \ 586 typePatchTypeField, \ 589 addToRunTimeSelectionTable \ 592 typePatchTypeField, \ 595 addToRunTimeSelectionTable \ 598 typePatchTypeField, \ 604 #define addRemovableToPatchFieldRunTimeSelection\ 605 (PatchTypeField, typePatchTypeField) \ 607 addRemovableToRunTimeSelectionTable \ 610 typePatchTypeField, \ 613 addRemovableToRunTimeSelectionTable \ 616 typePatchTypeField, \ 619 addRemovableToRunTimeSelectionTable \ 622 typePatchTypeField, \ 628 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \ 629 defineTypeNameAndDebug(typePatchTypeField, 0); \ 630 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 633 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \ 634 defineTypeNameAndDebug(typePatchTypeField, 0); \ 635 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 638 #define makeTemplatePatchTypeField(fieldType, type) \ 639 defineNamedTemplateTypeNameAndDebug \ 641 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 644 addToPatchFieldRunTimeSelection \ 646 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \ 647 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \ 650 #define makePatchFields(type) \ 651 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type) 653 #define makePatchFieldTypeName(fieldType, type) \ 654 defineNamedTemplateTypeNameAndDebug \ 656 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 660 #define makePatchFieldTypeNames(type) \ 661 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type) 663 #define makePatchTypeFieldTypedef(fieldType, type) \ 664 typedef type##FvPatchField<fieldType> \ 665 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field); 667 #define makePatchTypeFieldTypedefs(type) \ 668 FOR_ALL_FIELD_TYPES(makePatchTypeFieldTypedef, type) virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
declareRunTimeSelectionTable(tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
virtual bool fixesValue() const
Return true if this patch field fixes a value.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static int disallowGenericFvPatchField
Debug switch to disallow the use of genericFvPatchField.
bool updated() const
Return true if the boundary condition has already been updated.
commsTypes
Types of communications.
virtual void operator*=(const fvPatchField< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< Field< scalar >> &) const
Return the matrix source coefficients corresponding to the.
virtual void write(Ostream &) const
Write.
bool manipulatedMatrix() const
Return true if the matrix has already been manipulated.
static const word & calculatedType()
Return the type of the calculated for of fvPatchField.
const Field< Type > & primitiveField() const
Return internal field reference.
virtual void operator==(const fvPatchField< Type > &)
virtual bool assignable() const
Return true if the value of the patch field.
Include the header files for all the primitive types that Fields are instantiated for...
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
virtual tmp< Field< Type > > patchNeighbourField() const
Return patchField on the opposite patch of a coupled patch.
virtual void operator/=(const fvPatchField< scalar > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Foam::fvPatchFieldMapper.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< Field< scalar >> &) const
Return the matrix diagonal coefficients corresponding to the.
void check(const fvPatchField< Type > &) const
Check fvPatchField<Type> against given fvPatchField<Type>
const fvPatch & patch() const
Return patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void operator-=(const fvPatchField< Type > &)
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual void operator+=(const fvPatchField< Type > &)
TypeName("fvPatchField")
Runtime type information.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
calculatedFvPatchField< Type > Calculated
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvPatchField created on.
const objectRegistry & db() const
Return local objectRegistry.
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
A class for managing temporary objects.
Registry of regIOobjects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
const word & patchType() const
Optional patch type.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.