41angularOscillatingDisplacementPointPatchVectorField::
42angularOscillatingDisplacementPointPatchVectorField
58angularOscillatingDisplacementPointPatchVectorField::
59angularOscillatingDisplacementPointPatchVectorField
69 angle0_(
dict.get<scalar>(
"angle0")),
70 amplitude_(
dict.get<scalar>(
"amplitude")),
71 omega_(
dict.get<scalar>(
"omega"))
84 p0_ =
p.localPoints();
89angularOscillatingDisplacementPointPatchVectorField::
90angularOscillatingDisplacementPointPatchVectorField
100 origin_(ptf.origin_),
101 angle0_(ptf.angle0_),
102 amplitude_(ptf.amplitude_),
108angularOscillatingDisplacementPointPatchVectorField::
109angularOscillatingDisplacementPointPatchVectorField
117 origin_(ptf.origin_),
118 angle0_(ptf.angle0_),
119 amplitude_(ptf.amplitude_),
145 refCast<const angularOscillatingDisplacementPointPatchVectorField>(ptf);
149 p0_.
rmap(aODptf.p0_, addr);
163 scalar angle = angle0_ + amplitude_*
sin(omega_*t.
value());
169 p0Rel*(
cos(angle) - 1)
170 + (axisHat ^ p0Rel*
sin(angle))
171 + (axisHat & p0Rel)*(1 -
cos(angle))*axisHat
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.
friend Ostream & operator(Ostream &, const Field< vector > &)
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.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
Foam::angularOscillatingDisplacementPointPatchVectorField.
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.
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::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
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)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)
dimensionedScalar cos(const dimensionedScalar &ds)
#define makePointPatchTypeField(PatchTypeField, typePatchTypeField)