Files
openfoam/integration/genAbs/common/calculateWaterLevel/calculatedLevelSolitary.H
Andrew Heather 95e9467e84 INT: Integration of functionality produced by The Environmental Hydraulics Institute "IHCantabria" (http://www.ihcantabria.com/en/)
Capabilities include:
- Wave generation
  - Solitary wave using Boussinesq theory
  - Cnoidal wave theory
  - StokesI, StokesII, StokesV wave theory

- Active wave absorption at the inflow/outflow boundaries based on
  shallow water theory

Authors:
- Javier Lopez Lara (jav.lopez@unican.es)
- Gabriel Barajas (barajasg@unican.es)
- Inigo Losada (losadai@unican.es)
2016-11-16 14:02:14 +00:00

31 lines
941 B
C

/*---------------------------------------------------------------------------*\
IH-Cantabria 2015 (http://www.ihcantabria.com/en/)
IHFOAM 2015 (http://ihfoam.ihcantabria.com/)
Author(s): Javier Lopez Lara (jav.lopez@unican.es)
Gabriel Barajas (barajasg@unican.es)
\*---------------------------------------------------------------------------*/
if ( waveTheory_ == "Boussinesq" )
{
forAll(calculatedLevel, it2)
{
calculatedLevel[it2] = RealwaterDepth_
+ BoussinesqFun :: eta
(
waveHeight_,
RealwaterDepth_,
xGroup[it2],
yGroup[it2],
waveAngle,
currTime,
X0
);
}
}
else
{
FatalError << "Wave theory not supported, use:\n"
<< "Boussinesq" << exit(FatalError);
}