48 #ifndef Foam_fvPatchField_H 49 #define Foam_fvPatchField_H 72 Ostream& operator<<(Ostream&, const fvPatchField<Type>&);
93 bool manipulatedMatrix_;
125 manipulatedMatrix_ = state;
248 return manipulatedMatrix_;
261 bool old(useImplicit_);
349 (dynamic_cast<const fvPatchFieldType&>(ptf),
p, iF, m)
459 virtual tmp<fvPatchField<Type>>
clone 461 const DimensionedField<Type, volMesh>& iF
464 return tmp<fvPatchField<Type>>
::New(*
this, iF);
473 static tmp<fvPatchField<Type>>
New 475 const word& patchFieldType,
477 const DimensionedField<Type, volMesh>&
484 static tmp<fvPatchField<Type>>
New 486 const word& patchFieldType,
487 const word& actualPatchType,
489 const DimensionedField<Type, volMesh>&
494 static tmp<fvPatchField<Type>>
New 496 const fvPatchField<Type>&,
498 const DimensionedField<Type, volMesh>&,
499 const fvPatchFieldMapper&
504 static tmp<fvPatchField<Type>>
New 507 const DimensionedField<Type, volMesh>&,
520 template<
class Type2>
538 return internalField_;
544 return internalField_;
553 const fvPatchFieldMapper&
640 const tmp<Field<scalar>>&
651 const tmp<Field<scalar>>&
705 fvMatrix<Type>& matrix,
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
virtual bool coupled() const
True if the patch field is coupled.
const objectRegistry & db() const
The associated objectRegistry.
"blocking" : (MPI_Bsend, MPI_Recv)
const word zeroGradientType
A zeroGradient patch field 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))
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const fvPatch & patch() const noexcept
Return the patch.
static const word & emptyType() noexcept
The type name for empty patch fields.
virtual ~fvPatchField()=default
Destructor.
virtual void operator*=(const fvPatchField< scalar > &)
virtual void initEvaluateLocal(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field after a local.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void extrapolateInternal()
Assign the patch field from the internal field.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
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.
Template invariant parts for fvPatchField.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
virtual void operator==(const fvPatchField< Type > &)
bool useImplicit() const noexcept
Use implicit formulation for coupled patches only.
const word calculatedType
A calculated patch field type.
bool manipulatedMatrix() const noexcept
True if the matrix has already been manipulated.
Mesh data needed to do the Finite Volume discretisation.
Macros for creating fvPatchField types.
bool updated() const noexcept
True if the boundary condition has already been updated.
Generic templated field type.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< Field< Type > > patchNeighbourField() const
Return patchField on the opposite patch of a coupled patch.
bool operator!=(const fvPatchField< Type > &) const =delete
fvPatch Patch
The patch type for the patch field.
virtual void operator/=(const fvPatchField< scalar > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
A FieldMapper for finite-volume patch fields.
void setUpdated(bool state) noexcept
Set updated state.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual bool assignable() const
True if the value of the patch field is altered by assignment.
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.
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.
const Field< Type > & primitiveField() const noexcept
Return const-reference to the internal field values.
void check(const fvPatchField< Type > &) const
Check against given patch field.
fvPatchFieldBase(const fvPatch &p)
Construct from patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void operator-=(const fvPatchField< Type > &)
static int disallowGenericPatchField
Debug switch to disallow the use of generic fvPatchField.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
const word emptyType
An empty patch field type.
OBJstream os(runTime.globalPath()/outputName)
virtual void operator+=(const fvPatchField< Type > &)
virtual void evaluateLocal(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field after a local operation (e.g. *=)
virtual ~fvPatchFieldBase()=default
Destructor.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets updated() to false.
const word & patchType() const noexcept
The optional patch type.
calculatedFvPatchField< Type > Calculated
Type for a calculated patch.
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 bool fixesValue() const
True if the patch field fixes a value.
virtual void operator=(const UList< Type > &)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
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.
static const word & calculatedType() noexcept
The type name for calculated patch fields.
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
Reading is optional [identical to READ_IF_PRESENT].
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
A class for managing temporary objects.
void checkPatch(const fvPatchFieldBase &rhs) const
Check that patches are identical.
Registry of regIOobjects.
static const word & extrapolatedCalculatedType() noexcept
The type name for extrapolatedCalculated patch fields combines zero-gradient and calculated.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
TypeName("fvPatchField")
Runtime type information.
const word extrapolatedCalculatedType
A combined zero-gradient and calculated patch field type.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
void setManipulated(bool state) noexcept
Set matrix manipulated state.
static tmp< fvPatchField< Type > > New(const word &patchFieldType, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
DimensionedField< Type, volMesh > Internal
The internal field type associated with the patch field.
readOption
Enumeration defining read preferences.