Go to the documentation of this file.
72 patch.faceCentres().component(0)*
cos(waveAngle_)
73 +
patch.faceCentres().component(1)*
sin(waveAngle_)
91 if (waveGenerationModel::readDict(overrideDict))
93 waveHeight_ = readWaveHeight();
94 waveAngle_ = readWaveAngle();
109 <<
" x0: " <<
x0_ <<
nl;
scalar waveHeight_
Wave height / [m].
dimensionedScalar sin(const dimensionedScalar &ds)
Unit conversion functions.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
InfoProxy< IOobject > info() const
Return info proxy.
scalar waveAngle_
Wave angle / [rad] (read in degrees)
A patch is a list of labels that address the faces in the global face list.
constexpr scalar radToDeg(const scalar rad) noexcept
Conversion from radians to degrees.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
const std::string patch
OpenFOAM patch number as a std::string.
solitaryWaveModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type gMin(const FieldField< Field, Type > &f)
defineTypeNameAndDebug(waveAbsorptionModel, 0)
virtual scalar timeCoeff(const scalar t) const
Return the time scaling coefficient.
dimensionedScalar cos(const dimensionedScalar &ds)