Go to the documentation of this file.
47 const scalar
h(get<scalar>(
"waveHeight"));
51 <<
"Wave height must be greater than zero. Supplied"
52 <<
" value waveHeight = " <<
h
62 return degToRad(get<scalar>(
"waveAngle"));
94 readEntry(
"activeAbsorption", activeAbsorption_);
Base class for waveModels.
scalar readWaveHeight() const
Helper function to read the wave height from the coeff dictionary.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
waveGenerationModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
Unit conversion functions.
InfoProxy< IOobject > info() const
Return info proxy.
volScalarField & h
Planck constant.
A patch is a list of labels that address the faces in the global face list.
scalar readWaveAngle() const
Helper function to read the wave angle from the coeff dictionary.
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.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
const std::string patch
OpenFOAM patch number as a std::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(waveAbsorptionModel, 0)