51 word generation =
"Intermediate";
58 generation =
"Shallow";
67Foam::waveModels::regularWaveModel::regularWaveModel
98 waveHeight_ = readWaveHeight();
99 waveAngle_ = readWaveAngle();
101 readEntry(
"wavePeriod", wavePeriod_);
106 <<
"Wave period must be greater than zero. Supplied"
107 <<
" value wavePeriod = " << wavePeriod_
126 os <<
" Wave height : " << waveHeight_ <<
nl
127 <<
" Wave angle : " <<
radToDeg(waveAngle_) <<
nl
128 <<
" Wave period : " << wavePeriod_ <<
nl
129 <<
" Wave length : " << waveLength_ <<
nl
130 <<
" Wave phase : " << wavePhase_ <<
nl;
constexpr scalar pi(M_PI)
propsDict readIfPresent("fields", acceptFields)
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
Mesh data needed to do the Finite Volume discretisation.
A patch is a list of labels that address the faces in the global face list.
scalar waterDepthRef_
Reference water depth / [m].
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
scalar wavePeriod_
Wave period.
virtual word waveType() const
Return word description of wave type.
scalar waveHeight_
Wave height / [m].
scalar waveAngle_
Wave angle / [rad] (read in degrees).
scalar wavePhase_
Wave phase.
scalar waveLength_
Wavelength.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
scalar readWaveAngle() const
Helper function to read the wave angle from the coeff dictionary.
scalar readWaveHeight() const
Helper function to read the wave height from the coeff dictionary.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
constexpr scalar pi(M_PI)
Different types of constants.
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.
constexpr scalar radToDeg() noexcept
Multiplication factor for radians to degrees conversion.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
Unit conversion functions.