Abstract base class for point-mesh patch fields. More...
Public Types | |
typedef pointPatch | Patch |
Public Member Functions | |
TypeName ("pointPatchField") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, pointPatchField, pointPatch,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF),(p, iF)) | |
declareRunTimeSelectionTable (autoPtr, pointPatchField, patchMapper,(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m),(dynamic_cast< const pointPatchFieldType & >(ptf), p, iF, m)) | |
declareRunTimeSelectionTable (autoPtr, pointPatchField, dictionary,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict),(p, iF, dict)) | |
pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &) | |
Construct from patch and internal field. More... | |
pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pointPatchField (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &) | |
Construct by mapping given patchField<Type> onto a new patch. More... | |
pointPatchField (const pointPatchField< Type > &) | |
Construct as copy. More... | |
virtual autoPtr< pointPatchField< Type > > | clone () const =0 |
Construct and return a clone. More... | |
pointPatchField (const pointPatchField< Type > &, const DimensionedField< Type, pointMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual autoPtr< pointPatchField< Type > > | clone (const DimensionedField< Type, pointMesh > &iF) const =0 |
Construct and return a clone setting internal field reference. More... | |
virtual | ~pointPatchField () |
Destructor. More... | |
const objectRegistry & | db () const |
Return local objectRegistry. More... | |
label | size () const |
Return size. More... | |
const pointPatch & | patch () const |
Return patch. More... | |
const DimensionedField< Type, pointMesh > & | dimensionedInternalField () const |
Return dimensioned internal field reference. More... | |
const Field< Type > & | internalField () const |
Return internal field reference. More... | |
const word & | patchType () const |
Optional patch type. More... | |
word & | patchType () |
Optional patch type. More... | |
virtual bool | fixesValue () const |
Return true if this patch field fixes a value. More... | |
virtual bool | coupled () const |
Return true if this patch field is coupled. More... | |
bool | updated () const |
Return true if the boundary condition has already been updated. More... | |
tmp< Field< Type > > | patchInternalField () const |
Return field created from appropriate internal field values. More... | |
template<class Type1 > | |
tmp< Field< Type1 > > | patchInternalField (const Field< Type1 > &iF) const |
Return field created from appropriate internal field values. More... | |
template<class Type1 > | |
tmp< Field< Type1 > > | patchInternalField (const Field< Type1 > &iF, const labelList &meshPoints) const |
Return field created from selected internal field values. More... | |
template<class Type1 > | |
void | addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
Given the internal field and a patch field,. More... | |
template<class Type1 > | |
void | addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &points) const |
Given the internal field and a patch field,. More... | |
template<class Type1 > | |
void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const |
Given the internal field and a patch field,. More... | |
template<class Type1 > | |
void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
Given the internal field and a patch field,. More... | |
virtual const word & | constraintType () const |
Return the constraint type this pointPatchField implements. More... | |
virtual void | autoMap (const pointPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const pointPatchField< Type > &, const labelList &) |
Reverse map the given pointPatchField onto this pointPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | initEvaluate (const Pstream::commsTypes commsType=Pstream::blocking) |
Initialise evaluation of the patch field (do nothing) More... | |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::blocking) |
Evaluate the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | operator= (const pointPatchField< Type > &) |
virtual void | operator+= (const pointPatchField< Type > &) |
virtual void | operator-= (const pointPatchField< Type > &) |
virtual void | operator*= (const pointPatchField< scalar > &) |
virtual void | operator/= (const pointPatchField< scalar > &) |
virtual void | operator= (const Field< Type > &) |
virtual void | operator+= (const Field< Type > &) |
virtual void | operator-= (const Field< Type > &) |
virtual void | operator*= (const Field< scalar > &) |
virtual void | operator/= (const Field< scalar > &) |
virtual void | operator= (const Type &) |
virtual void | operator+= (const Type &) |
virtual void | operator-= (const Type &) |
virtual void | operator*= (const scalar) |
virtual void | operator/= (const scalar) |
virtual void | operator== (const pointPatchField< Type > &) |
virtual void | operator== (const Field< Type > &) |
virtual void | operator== (const Type &) |
template<class Type > | |
tmp< Field< Type > > | patchInternalField () const |
Static Public Member Functions | |
static autoPtr< pointPatchField< Type > > | New (const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &) |
Return a pointer to a new patchField created on freestore given. More... | |
static autoPtr< pointPatchField< Type > > | New (const word &, const word &actualPatchType, const pointPatch &, const DimensionedField< Type, pointMesh > &) |
Return a pointer to a new patchField created on freestore given. More... | |
static autoPtr< pointPatchField< Type > > | New (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &) |
Return a pointer to a new patchField created on freestore from. More... | |
static autoPtr< pointPatchField< Type > > | New (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) |
Return a pointer to a new patchField created on freestore. More... | |
template<class Type2 > | |
static autoPtr< pointPatchField< Type > > | NewCalculatedType (const pointPatchField< Type2 > &) |
Return a pointer to a new CalculatedpointPatchField created on. More... | |
static const word & | calculatedType () |
Return the type of the calculated form of pointPatchField. More... | |
Static Public Attributes | |
static int | disallowGenericPointPatchField |
Debug switch to disallow the use of genericPointPatchField. More... | |
Private Attributes | |
const pointPatch & | patch_ |
Reference to patch. More... | |
const DimensionedField< Type, pointMesh > & | internalField_ |
Reference to internal field. More... | |
bool | updated_ |
Update index used so that updateCoeffs is called only once during. More... | |
word | patchType_ |
Optional patch type, used to allow specified boundary conditions. More... | |
Friends | |
Ostream & | operator (Ostream &, const pointPatchField< Type > &) |
Abstract base class for point-mesh patch fields.
The base-field does not store values as they are part of the "internal field". There are derived classes to store constraint values e.g. fixedValuePointPatchField derived from the generic valuePointPatchField which ensures the values in the "internal field" are reset to the fixed-values by applying the stored values.
Definition at line 58 of file pointMVCWeight.H.
typedef pointPatch Patch |
Definition at line 100 of file pointPatchField.H.
pointPatchField | ( | const pointPatch & | , |
const DimensionedField< Type, pointMesh > & | |||
) |
Construct from patch and internal field.
pointPatchField | ( | const pointPatch & | , |
const DimensionedField< Type, pointMesh > & | , | ||
const dictionary & | |||
) |
Construct from patch, internal field and dictionary.
pointPatchField | ( | const pointPatchField< Type > & | , |
const pointPatch & | , | ||
const DimensionedField< Type, pointMesh > & | , | ||
const pointPatchFieldMapper & | |||
) |
Construct by mapping given patchField<Type> onto a new patch.
pointPatchField | ( | const pointPatchField< Type > & | ) |
Construct as copy.
pointPatchField | ( | const pointPatchField< Type > & | , |
const DimensionedField< Type, pointMesh > & | |||
) |
Construct as copy setting internal field reference.
|
inlinevirtual |
Destructor.
Definition at line 253 of file pointPatchField.H.
TypeName | ( | "pointPatchField" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
pointPatchField | , | ||
pointPatch | , | ||
(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF) | , | ||
(p, iF) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
pointPatchField | , | ||
patchMapper | , | ||
(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m) | , | ||
(dynamic_cast< const pointPatchFieldType & >(ptf), p, iF, m) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
pointPatchField | , | ||
dictionary | , | ||
(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict) | , | ||
(p, iF, dict) | |||
) |
|
pure virtual |
Construct and return a clone.
Implemented in surfaceSlipDisplacementPointPatchVectorField, valuePointPatchField< vector >, and fixedValuePointPatchField< vector >.
|
pure virtual |
Construct and return a clone setting internal field reference.
Implemented in coupledPointPatchField< Type >, codedFixedValuePointPatchField< Type >, cyclicACMIPointPatchField< Type >, cyclicAMIPointPatchField< Type >, timeVaryingMappedFixedValuePointPatchField< Type >, uniformFixedValuePointPatchField< Type >, zeroFixedValuePointPatchField< Type >, genericPointPatchField< Type >, timeVaryingUniformFixedValuePointPatchField< Type >, processorCyclicPointPatchField< Type >, valuePointPatchField< Type >, cyclicPointPatchField< Type >, symmetryPlanePointPatchField< Type >, processorPointPatchField< Type >, calculatedPointPatchField< Type >, fixedValuePointPatchField< Type >, cyclicSlipPointPatchField< Type >, emptyPointPatchField< Type >, nonuniformTransformCyclicPointPatchField< Type >, symmetryPointPatchField< Type >, wedgePointPatchField< Type >, zeroGradientPointPatchField< Type >, slipPointPatchField< Type >, and basicSymmetryPointPatchField< Type >.
|
static |
Return a pointer to a new patchField created on freestore given.
patch and internal field (does not set the patch field values)
|
static |
Return a pointer to a new patchField created on freestore given.
patch and internal field (does not set the patch field values). Allows override of constraint type
|
static |
Return a pointer to a new patchField created on freestore from.
a given pointPatchField mapped onto a new patch
|
static |
Return a pointer to a new patchField created on freestore.
from dictionary
|
static |
Return a pointer to a new CalculatedpointPatchField created on.
freestore without setting patchField values
Definition at line 93 of file calculatedPointPatchField.C.
const objectRegistry & db | ( | ) | const |
Return local objectRegistry.
Definition at line 112 of file pointPatchField.C.
Referenced by surfaceSlipDisplacementPointPatchVectorField::surfaces().
|
inline |
Return size.
Definition at line 265 of file pointPatchField.H.
|
inline |
Return patch.
Definition at line 271 of file pointPatchField.H.
Referenced by pointPatchField< Type >::NewCalculatedType(), patchCorrectedInterpolation::propagateDataFromPatchGroup(), and pointPatchField< Type >::size().
|
inline |
Return dimensioned internal field reference.
Definition at line 278 of file pointPatchField.H.
|
inline |
Return internal field reference.
Definition at line 284 of file pointPatchField.H.
|
inline |
Optional patch type.
Definition at line 290 of file pointPatchField.H.
|
inline |
Optional patch type.
Definition at line 296 of file pointPatchField.H.
|
inlinevirtual |
Return true if this patch field fixes a value.
Reimplemented in fixedValuePointPatchField< vector >.
Definition at line 302 of file pointPatchField.H.
Referenced by medialAxisMeshMover::update().
|
inlinevirtual |
Return true if this patch field is coupled.
Definition at line 308 of file pointPatchField.H.
|
inline |
Return true if the boundary condition has already been updated.
Definition at line 314 of file pointPatchField.H.
Return field created from appropriate internal field values.
Referenced by valuePointPatchField< vector >::operator=(), valuePointPatchField< vector >::operator==(), patchCorrectedInterpolation::propagateDataFromPatchGroup(), pointConstraints::setPatchFields(), velocityDisplacementMotionSolver::solve(), and patchWriter::write().
Return field created from appropriate internal field values.
given internal field reference
Definition at line 163 of file pointPatchField.C.
tmp< Field< Type1 > > patchInternalField | ( | const Field< Type1 > & | iF, |
const labelList & | meshPoints | ||
) | const |
Return field created from selected internal field values.
given internal field reference
Definition at line 141 of file pointPatchField.C.
Given the internal field and a patch field,.
add the patch field to the internal field
Definition at line 174 of file pointPatchField.C.
void addToInternalField | ( | Field< Type1 > & | iF, |
const Field< Type1 > & | pF, | ||
const labelList & | points | ||
) | const |
Given the internal field and a patch field,.
add selected elements of the patch field to the internal field
Definition at line 211 of file pointPatchField.C.
void setInInternalField | ( | Field< Type1 > & | iF, |
const Field< Type1 > & | pF, | ||
const labelList & | meshPoints | ||
) | const |
Given the internal field and a patch field,.
set the patch field in the internal field
Definition at line 250 of file pointPatchField.C.
Given the internal field and a patch field,.
set the patch field in the internal field
Definition at line 285 of file pointPatchField.C.
|
static |
Return the type of the calculated form of pointPatchField.
Definition at line 34 of file calculatedPointPatchField.C.
|
inlinevirtual |
Return the constraint type this pointPatchField implements.
Definition at line 381 of file pointPatchField.H.
|
inlinevirtual |
Map (and resize as needed) from self given a mapping object.
Reimplemented in timeVaryingMappedFixedValuePointPatchField< Type >, sixDoFRigidBodyDisplacementPointPatchVectorField, valuePointPatchField< Type >, valuePointPatchField< vector >, genericPointPatchField< Type >, uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, and oscillatingVelocityPointPatchVectorField.
Definition at line 391 of file pointPatchField.H.
|
inlinevirtual |
Reverse map the given pointPatchField onto this pointPatchField.
Reimplemented in timeVaryingMappedFixedValuePointPatchField< Type >, valuePointPatchField< Type >, and genericPointPatchField< Type >.
Definition at line 398 of file pointPatchField.H.
|
inlinevirtual |
Update the coefficients associated with the patch field.
Sets Updated to true
Reimplemented in codedFixedValuePointPatchField< Type >, timeVaryingMappedFixedValuePointPatchField< Type >, sixDoFRigidBodyDisplacementPointPatchVectorField, uniformInterpolatedDisplacementPointPatchVectorField, uniformFixedValuePointPatchField< Type >, valuePointPatchField< Type >, valuePointPatchField< vector >, uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, oscillatingVelocityPointPatchVectorField, timeVaryingUniformFixedValuePointPatchField< Type >, waveDisplacementPointPatchVectorField, and oscillatingDisplacementPointPatchVectorField.
Definition at line 409 of file pointPatchField.H.
Referenced by patchCorrectedInterpolation::propagateDataFromPatchGroup().
|
inlinevirtual |
Initialise evaluation of the patch field (do nothing)
Definition at line 416 of file pointPatchField.H.
|
virtual |
Evaluate the patch field.
Reimplemented in coupledPointPatchField< Type >, codedFixedValuePointPatchField< Type >, cyclicACMIPointPatchField< Type >, cyclicAMIPointPatchField< Type >, surfaceSlipDisplacementPointPatchVectorField, processorPointPatchField< Type >, processorCyclicPointPatchField< Type >, valuePointPatchField< Type >, valuePointPatchField< vector >, cyclicPointPatchField< Type >, symmetryPlanePointPatchField< Type >, wedgePointPatchField< Type >, cyclicSlipPointPatchField< Type >, nonuniformTransformCyclicPointPatchField< Type >, and basicSymmetryPointPatchField< Type >.
Definition at line 295 of file pointPatchField.C.
Referenced by surfaceSlipDisplacementPointPatchVectorField::evaluate().
|
virtual |
Write.
Reimplemented in codedFixedValuePointPatchField< Type >, surfaceSlipDisplacementPointPatchVectorField, timeVaryingMappedFixedValuePointPatchField< Type >, sixDoFRigidBodyDisplacementPointPatchVectorField, uniformInterpolatedDisplacementPointPatchVectorField, valuePointPatchField< Type >, valuePointPatchField< vector >, uniformFixedValuePointPatchField< Type >, uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, genericPointPatchField< Type >, oscillatingVelocityPointPatchVectorField, timeVaryingUniformFixedValuePointPatchField< Type >, waveDisplacementPointPatchVectorField, and oscillatingDisplacementPointPatchVectorField.
Definition at line 119 of file pointPatchField.C.
Referenced by oscillatingDisplacementPointPatchVectorField::write(), waveDisplacementPointPatchVectorField::write(), oscillatingVelocityPointPatchVectorField::write(), angularOscillatingVelocityPointPatchVectorField::write(), angularOscillatingDisplacementPointPatchVectorField::write(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::write(), uniformInterpolatedDisplacementPointPatchVectorField::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), and surfaceSlipDisplacementPointPatchVectorField::write().
|
inlinevirtual |
Reimplemented in valuePointPatchField< Type >.
Definition at line 435 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 441 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 447 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 453 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 459 of file pointPatchField.H.
Reimplemented in valuePointPatchField< Type >, and fixedValuePointPatchField< Type >.
Definition at line 464 of file pointPatchField.H.
Definition at line 465 of file pointPatchField.H.
Definition at line 466 of file pointPatchField.H.
Definition at line 468 of file pointPatchField.H.
Definition at line 469 of file pointPatchField.H.
|
inlinevirtual |
Reimplemented in valuePointPatchField< Type >, and fixedValuePointPatchField< Type >.
Definition at line 471 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 472 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 473 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 474 of file pointPatchField.H.
|
inlinevirtual |
Definition at line 475 of file pointPatchField.H.
|
inlinevirtual |
Reimplemented in valuePointPatchField< Type >.
Definition at line 483 of file pointPatchField.H.
Reimplemented in valuePointPatchField< Type >.
Definition at line 488 of file pointPatchField.H.
|
inlinevirtual |
Reimplemented in valuePointPatchField< Type >.
Definition at line 489 of file pointPatchField.H.
Definition at line 132 of file pointPatchField.C.
|
friend |
|
private |
Reference to patch.
Definition at line 83 of file pointPatchField.H.
Referenced by pointPatchField< Type >::patch().
|
private |
Reference to internal field.
Definition at line 86 of file pointPatchField.H.
Referenced by pointPatchField< Type >::dimensionedInternalField(), and pointPatchField< Type >::internalField().
|
private |
Update index used so that updateCoeffs is called only once during.
the construction of the matrix
Definition at line 90 of file pointPatchField.H.
Referenced by pointPatchField< Type >::updated().
|
private |
Optional patch type, used to allow specified boundary conditions.
to be applied to constraint patches by providing the constraint patch type as 'patchType'
Definition at line 95 of file pointPatchField.H.
Referenced by pointPatchField< Type >::patchType().
|
static |
Debug switch to disallow the use of genericPointPatchField.
Definition at line 107 of file pointPatchField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.