41oscillatingVelocityPointPatchVectorField::
42oscillatingVelocityPointPatchVectorField
55oscillatingVelocityPointPatchVectorField::
56oscillatingVelocityPointPatchVectorField
65 omega_(
dict.get<scalar>(
"omega"))
78 p0_ =
p.localPoints();
83oscillatingVelocityPointPatchVectorField::
84oscillatingVelocityPointPatchVectorField
93 amplitude_(ptf.amplitude_),
99oscillatingVelocityPointPatchVectorField::
100oscillatingVelocityPointPatchVectorField
107 amplitude_(ptf.amplitude_),
133 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
137 p0_.
rmap(oVptf.p0_, addr);
154 (p0_ + amplitude_*
sin(omega_*t.
value()) -
p.localPoints())
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Mesh & mesh() const
Return mesh.
Generic templated field type.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
scalar deltaTValue() const noexcept
Return time step value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const Type & value() const
Return const reference to value.
A FixedValue boundary condition for pointField.
virtual bool write()
Write the output fields.
const Time & time() const
Return the top-level database.
Foam::oscillatingVelocityPointPatchVectorField.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const pointPatchField< vector > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
const pointPatch & patch() const
Return patch.
const DimensionedField< Type, pointMesh > & internalField() const
Return dimensioned internal field reference.
bool updated() const
Return true if the boundary condition has already been updated.
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
Lookup type of boundary radiation properties.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar sin(const dimensionedScalar &ds)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)
#define makePointPatchTypeField(PatchTypeField, typePatchTypeField)