Go to the documentation of this file.
51 word generation =
"Intermediate";
58 generation =
"Shallow";
67 Foam::waveModels::regularWaveModel::regularWaveModel
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_
111 readIfPresent(
"wavePhase", wavePhase_);
124 irregularWaveModel::info(
os);
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;
A class for handling words, derived from Foam::string.
virtual bool readDict(const dictionary &overrideDict)
Read from dictionary.
Different types of constants.
Unit conversion functions.
InfoProxy< IOobject > info() const
Return info proxy.
virtual word waveType() const
Return word description of wave type.
A patch is a list of labels that address the faces in the global face list.
constexpr scalar radToDeg(const scalar rad) noexcept
Conversion from radians to degrees.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
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.
constexpr scalar pi(M_PI)
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(combustionModel, 0)