93 waveHeight_ = readWaveHeight();
94 waveAngle_ = readWaveAngle();
107 os <<
" Wave height : " << waveHeight_ <<
nl 108 <<
" Wave angle : " <<
radToDeg(waveAngle_) <<
nl 109 <<
" x0: " << x0_ <<
nl;
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Type gMin(const FieldField< Field, Type > &f)
Unit conversion functions.
constexpr char nl
The newline '\n' character (0x0a)
solitaryWaveModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
defineTypeNameAndDebug(waveAbsorptionModel, 0)
dimensionedScalar cos(const dimensionedScalar &ds)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
InfoProxy< IOobject > info() const noexcept
Return info proxy, for printing information to a stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
virtual scalar timeCoeff(const scalar t) const
Return the time scaling coefficient.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
constexpr scalar radToDeg(const scalar rad) noexcept
Conversion from radians to degrees.
Mesh data needed to do the Finite Volume discretisation.
const std::string patch
OpenFOAM patch number as a std::string.
A patch is a list of labels that address the faces in the global face list.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)