Foam::timeVaryingMappedFixedValueFvPatchField. More...
#include <finiteVolume/timeVaryingMappedFixedValueFvPatchField.H>
Foam::timeVaryingMappedFixedValueFvPatchField.
Interpolates from a set of supplied points in space and time. Supplied data in constant/boundaryData/<patchname>:
At startup this bc does the triangulation and determines linear interpolation (triangle it is in and weights to the 3 vertices) for every face centre. Interpolates linearly inbetween times.
inlet { typetimeVaryingMappedFixedValue; // Maintain average to that of the supplied values setAverage false; // Optional: change perturbation (default 1E-5) to avoid any ties // in triangulating regular geometries. //perturb 0.0; // Optional: use name instead of patchname for location of data //fieldTableName samples; }
Switch on debug flag to have it dump the triangulation (in transformed space) and transform face centres.
Definition at line 83 of file timeVaryingMappedFixedValueFvPatchField.H.
Public Member Functions | |
TypeName ("timeVaryingMappedFixedValue") | |
Runtime type information.
| |
timeVaryingMappedFixedValueFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &) | |
Construct from patch and internal field.
| |
timeVaryingMappedFixedValueFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary.
| |
timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given timeVaryingMappedFixedValueFvPatchField.
| |
timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &) | |
Construct as copy.
| |
virtual tmp< fvPatchField< Type > > | clone () const |
Construct and return a clone.
| |
timeVaryingMappedFixedValueFvPatchField (const timeVaryingMappedFixedValueFvPatchField< Type > &, const DimensionedField< Type, volMesh > &) | |
Construct as copy setting internal field reference.
| |
virtual tmp< fvPatchField< Type > > | clone (const DimensionedField< Type, volMesh > &iF) const |
Construct and return a clone setting internal field reference.
| |
void | checkTable () |
Find boundary data inbetween current time and interpolate.
| |
const coordinateSystem & | referenceCS () const |
Return the coordinateSystem.
| |
const Field< Type > | startSampledValues () |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object.
| |
virtual void | rmap (const fvPatchField< Type > &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField.
| |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field.
| |
virtual void | write (Ostream &) const |
Write.
|
timeVaryingMappedFixedValueFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< Type, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 45 of file timeVaryingMappedFixedValueFvPatchField.C.
timeVaryingMappedFixedValueFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< Type, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 97 of file timeVaryingMappedFixedValueFvPatchField.C.
References dictionary::found(), dictionary::lookup(), fvPatchField< Type >::operator==(), and fvPatch::size().
timeVaryingMappedFixedValueFvPatchField | ( | const timeVaryingMappedFixedValueFvPatchField< Type > & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< Type, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given timeVaryingMappedFixedValueFvPatchField.
onto a new patch
Definition at line 70 of file timeVaryingMappedFixedValueFvPatchField.C.
timeVaryingMappedFixedValueFvPatchField | ( | const timeVaryingMappedFixedValueFvPatchField< Type > & | ptf ) |
Construct as copy.
Definition at line 137 of file timeVaryingMappedFixedValueFvPatchField.C.
timeVaryingMappedFixedValueFvPatchField | ( | const timeVaryingMappedFixedValueFvPatchField< Type > & | ptf, |
const DimensionedField< Type, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 162 of file timeVaryingMappedFixedValueFvPatchField.C.
TypeName | ( | "timeVaryingMappedFixedValue" | ) |
Runtime type information.
virtual tmp<fvPatchField<Type> > clone | ( | ) | const [inline, virtual]
|
Construct and return a clone.
Reimplemented from fixedValueFvPatchField< Type >.
Definition at line 195 of file timeVaryingMappedFixedValueFvPatchField.H.
virtual tmp<fvPatchField<Type> > clone | ( | const DimensionedField< Type, volMesh > & | iF ) | const [inline, virtual]
|
Construct and return a clone setting internal field reference.
Reimplemented from fixedValueFvPatchField< Type >.
Definition at line 212 of file timeVaryingMappedFixedValueFvPatchField.H.
void checkTable | ( | ) |
Find boundary data inbetween current time and interpolate.
Definition at line 511 of file timeVaryingMappedFixedValueFvPatchField.C.
References IOobject::AUTO_WRITE, AverageIOField< Type >::average(), Foam::endl(), Foam::interpolate(), IOobject::MUST_READ, fileName::name(), OSstream::name(), Foam::name(), and Foam::Pout.
const coordinateSystem& referenceCS | ( | ) | const [inline]
|
Return the coordinateSystem.
Definition at line 231 of file timeVaryingMappedFixedValueFvPatchField.H.
const Field<Type> startSampledValues | ( | ) | [inline]
|
Definition at line 237 of file timeVaryingMappedFixedValueFvPatchField.H.
void autoMap | ( | const fvPatchFieldMapper & | m ) | [virtual]
|
Map (and resize as needed) from self given a mapping object.
Reimplemented from fvPatchField< Type >.
Definition at line 188 of file timeVaryingMappedFixedValueFvPatchField.C.
References fvPatchField< Type >::autoMap().
void rmap | ( | const fvPatchField< Type > & | ptf, |
const labelList & | addr | ||
) | [virtual]
|
Reverse map the given fvPatchField onto this fvPatchField.
Reimplemented from fvPatchField< Type >.
Definition at line 203 of file timeVaryingMappedFixedValueFvPatchField.C.
References timeVaryingMappedFixedValueFvPatchField< Type >::rmap(), and fvPatchField< Type >::rmap().
Referenced by timeVaryingMappedFixedValueFvPatchField< Type >::rmap().
void updateCoeffs | ( | ) | [virtual]
|
Update the coefficients associated with the patch field.
Reimplemented from fvPatchField< Type >.
Definition at line 674 of file timeVaryingMappedFixedValueFvPatchField.C.
References Foam::endl(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::mag(), fileName::name(), OSstream::name(), Foam::nl, Foam::operator==(), Foam::Pout, and fvPatchField< Type >::updateCoeffs().
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Reimplemented from fixedValueFvPatchField< Type >.
Definition at line 773 of file timeVaryingMappedFixedValueFvPatchField.C.
References token::END_STATEMENT, Foam::name(), Foam::nl, fvPatchField< Type >::write(), and Ostream::writeKeyword().