47 const scalar
h(get<scalar>(
"waveHeight"));
51 <<
"Wave height must be greater than zero. Supplied" 52 <<
" value waveHeight = " <<
h 94 readEntry(
"activeAbsorption", activeAbsorption_);
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Unit conversion functions.
scalar readWaveAngle() const
Helper function to read the wave angle from the coeff dictionary.
defineTypeNameAndDebug(waveAbsorptionModel, 0)
Base class for waveModels.
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.
waveGenerationModel(const dictionary &dict, const fvMesh &mesh, const polyPatch &patch, const bool readFields=true)
Constructor.
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...
OBJstream os(runTime.globalPath()/outputName)
const dimensionedScalar h
Planck constant.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
const std::string patch
OpenFOAM patch number as a std::string.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
A patch is a list of labels that address the faces in the global face list.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
scalar readWaveHeight() const
Helper function to read the wave height from the coeff dictionary.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...