44 #ifndef fvPatchField_H
45 #define fvPatchField_H
61 class fvPatchFieldMapper;
71 class calculatedFvPatchField;
106 bool manipulatedMatrix_;
147 (
dynamic_cast<const fvPatchFieldType&
>(ptf),
p, iF, m)
187 const bool valueRequired=
true
197 const bool mappingRequired=
true
260 const word& actualPatchType,
293 template<
class Type2>
336 if (
type() == patch_.type())
341 typename patchConstructorTable::iterator patchTypeCstrIter
342 = patchConstructorTablePtr_->find(patch_.type());
346 != patchConstructorTablePtr_->end();
364 return internalField_;
370 return internalField_;
382 return manipulatedMatrix_;
588 #define makeFvPatchField(fvPatchTypeField) \
589 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \
591 int fvPatchTypeField::disallowGenericFvPatchField \
593 debug::debugSwitch("disallowGenericFvPatchField", 0) \
595 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \
596 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \
597 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary);
600 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
601 addToRunTimeSelectionTable \
604 typePatchTypeField, \
607 addToRunTimeSelectionTable \
610 typePatchTypeField, \
615 #define addToNullConstructablePatchFieldRunTimeSelection( \
616 PatchTypeField, typePatchTypeField) \
618 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \
620 addToRunTimeSelectionTable \
623 typePatchTypeField, \
629 #define addRemovableToPatchFieldRunTimeSelection( \
630 PatchTypeField, typePatchTypeField) \
632 addRemovableToRunTimeSelectionTable \
635 typePatchTypeField, \
638 addRemovableToRunTimeSelectionTable \
641 typePatchTypeField, \
647 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \
648 defineTypeNameAndDebug(typePatchTypeField, 0); \
649 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
653 #define makeNullConstructablePatchTypeField(PatchTypeField, typePatchTypeField)\
654 defineTypeNameAndDebug(typePatchTypeField, 0); \
655 addToNullConstructablePatchFieldRunTimeSelection \
663 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \
664 defineTypeNameAndDebug(typePatchTypeField, 0); \
665 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField)
669 #define makeTemplatePatchTypeField(fieldType, type) \
670 defineNamedTemplateTypeNameAndDebug \
672 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
675 addToPatchFieldRunTimeSelection \
677 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
678 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
683 #define makeNullConstructableTemplatePatchTypeField(fieldType, type) \
684 defineNamedTemplateTypeNameAndDebug \
686 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
689 addToNullConstructablePatchFieldRunTimeSelection \
691 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \
692 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \
696 #define makePatchFields(type) \
697 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type)
700 #define makeNullConstructablePatchFields(type) \
701 FOR_ALL_FIELD_TYPES(makeNullConstructableTemplatePatchTypeField, type)
704 #define makePatchFieldTypeName(fieldType, type) \
705 defineNamedTemplateTypeNameAndDebug \
707 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \
712 #define makePatchFieldTypeNames(type) \
713 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type)
716 #define makePatchTypeFieldTypedef(fieldType, type) \
717 typedef type##FvPatchField<fieldType> \
718 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field);
721 #define makePatchTypeFieldTypedefs(type) \
722 FOR_ALL_FIELD_TYPES(makePatchTypeFieldTypedef, type)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
commsTypes
Types of communications.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void initPatchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Initialise return of the patchField on the opposite patch of a.
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field.
bool manipulatedMatrix() const
Return true if the matrix has already been manipulated.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual bool fixesValue() const
Return true if this patch field fixes a value.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
virtual void write(Ostream &) const
Write.
virtual void operator==(const fvPatchField< Type > &)
virtual bool coupled() const
Return true if this patch field is coupled.
declareRunTimeSelectionTable(tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< Field< scalar >> &) const
Return the matrix source coefficients corresponding to the.
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvPatchField created on.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
virtual void operator-=(const fvPatchField< Type > &)
const Field< Type > & primitiveField() const
Return internal field reference.
const objectRegistry & db() const
Return local objectRegistry.
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Return patchField on the opposite patch of a coupled patch.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
TypeName("fvPatchField")
Runtime type information.
calculatedFvPatchField< Type > Calculated
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
virtual void map(const fvPatchField< Type > &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
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 operator*=(const fvPatchField< scalar > &)
static int disallowGenericFvPatchField
Debug switch to disallow the use of genericFvPatchField.
virtual void operator+=(const fvPatchField< Type > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
bool overridesConstraint() const
Return true if this overrides the underlying constraint type.
const fvPatch & patch() const
Return patch.
virtual bool assignable() const
Return true if the value of the patch field.
virtual void operator/=(const fvPatchField< scalar > &)
bool updated() const
Return true if the boundary condition has already been updated.
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>
static const word & calculatedType()
Return the type of the calculated for of fvPatchField.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Include the header files for all the primitive types that Fields are instantiated for.
Ostream & operator<<(Ostream &, const ensightPart &)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.