51 word generation =
"Intermediate";
58 generation =
"Shallow";
80 wavePhase_(1.5*mathematical::pi)
96 if (irregularWaveModel::readDict(overrideDict))
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;
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,...
InfoProxy< ensightCells > info() const
Return info proxy.
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 word waveType() const
Return word description of wave type.
scalar waveLength_
Wavelength.
virtual bool readDict(const dictionary &overrideDict)
Read from 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 wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
constexpr scalar radToDeg() noexcept
Multiplication factor for radians to degrees conversion.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
Unit conversion functions.
propsDict readIfPresent("fields", acceptFields)