├── README.md ├── v1.71--v1606 ├── docs │ └── logo.png ├── genAbs │ ├── allMake │ ├── allMake~ │ ├── common │ │ ├── calculateWaterLevel │ │ │ ├── calculatedLevelCurrent.H~ │ │ │ ├── calculatedLevelEta.H~ │ │ │ ├── calculatedLevelIrregular.H~ │ │ │ ├── calculatedLevelRegular.H │ │ │ ├── calculatedLevelRegular.H~ │ │ │ ├── calculatedLevelRegularNormal.H │ │ │ ├── calculatedLevelRegularNormal.H~ │ │ │ ├── calculatedLevelSolitary.H │ │ │ ├── calculatedLevelSolitary.H~ │ │ │ └── calculatedLevelWavemaker.H~ │ │ ├── checks │ │ │ ├── checkInputErrorsCurrent.H~ │ │ │ ├── checkInputErrorsIrregular.H~ │ │ │ ├── checkInputErrorsRegular.H │ │ │ ├── checkInputErrorsRegular.H~ │ │ │ ├── checkInputErrorsSolitary.H │ │ │ ├── checkInputErrorsSolitary.H~ │ │ │ └── checkInputErrorsWavemaker.H~ │ │ ├── ih2vofAlpha.H~ │ │ ├── ih2vofAlphaInterp.H~ │ │ ├── ih2vofVelocity.H~ │ │ ├── memberFun.H │ │ ├── memberFun.H~ │ │ ├── waveFun.C │ │ ├── waveFun.C~ │ │ ├── waveFun.H │ │ ├── waveFun.H~ │ │ └── waveFun.dep │ ├── waveAbsorption │ │ ├── IH_3D_3DAbsorption_InletVelocity │ │ │ ├── IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C │ │ │ ├── IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C~ │ │ │ ├── IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.H │ │ │ └── IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.H~ │ │ ├── Make │ │ │ ├── files │ │ │ ├── files~ │ │ │ └── options │ │ ├── localMake │ │ └── localMake~ │ └── waveGeneration │ │ ├── IH_Waves_InletAlpha │ │ ├── IH_Waves_InletAlphaFvPatchScalarField.C │ │ ├── IH_Waves_InletAlphaFvPatchScalarField.C~ │ │ ├── IH_Waves_InletAlphaFvPatchScalarField.H │ │ └── IH_Waves_InletAlphaFvPatchScalarField.H~ │ │ ├── IH_Waves_InletVelocity │ │ ├── IH_Waves_InletVelocityFvPatchVectorField.C │ │ ├── IH_Waves_InletVelocityFvPatchVectorField.C~ │ │ ├── IH_Waves_InletVelocityFvPatchVectorField.H │ │ ├── IH_Waves_InletVelocityFvPatchVectorField.H~ │ │ └── velProfiles │ │ │ ├── Detas.H~ │ │ │ ├── profileBoussinesq.H │ │ │ ├── profileBoussinesq.H~ │ │ │ ├── profileBoussinesqCurrents.H~ │ │ │ ├── profileCnoidal.H │ │ │ ├── profileCnoidal.H~ │ │ │ ├── profileCnoidalCurrents.H~ │ │ │ ├── profileCurrent.H~ │ │ │ ├── profileEta.H~ │ │ │ ├── profileGENAB.H │ │ │ ├── profileGENAB.H~ │ │ │ ├── profileIrregular.H~ │ │ │ ├── profileIrregularCurrent.H~ │ │ │ ├── profileNoEta.H~ │ │ │ ├── profileStokesI.H │ │ │ ├── profileStokesI.H~ │ │ │ ├── profileStokesICurrents.H~ │ │ │ ├── profileStokesII.H │ │ │ ├── profileStokesII.H~ │ │ │ ├── profileStokesIICurrents.H~ │ │ │ ├── profileStokesV.H │ │ │ ├── profileStokesV.H~ │ │ │ ├── profileStokesVCurrents.H~ │ │ │ ├── profileStreamFunction.H~ │ │ │ ├── profileStreamFunctionCurrents.H~ │ │ │ ├── profileWavemaker.H~ │ │ │ ├── profileWavemakerDOS.H~ │ │ │ ├── profileWavemakerih2vof.H~ │ │ │ ├── profileWavemakerih2vofCurrents.H~ │ │ │ ├── profileWavemakertveta.H~ │ │ │ ├── profileWavemakertvweta.H~ │ │ │ ├── velocityProfile.H │ │ │ ├── velocityProfile.H~ │ │ │ └── velocityProfileCurrents.H~ │ │ ├── Make │ │ ├── common │ │ │ ├── waveFun.C.dep │ │ │ └── waveFun.o │ │ ├── files │ │ ├── files~ │ │ ├── options │ │ └── options~ │ │ ├── localMake │ │ └── localMake~ └── solvers │ ├── ihFoamFE30_31 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── createFields.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ └── porosityDict │ ├── ihFoamOF16ext │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── createFields.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ └── porosityDict │ ├── ihFoamOF171 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── porosityDict │ └── setDeltaT.H │ ├── ihFoamOF211 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── porosityDict │ └── setDeltaT.H │ ├── ihFoamOF222 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── porosityDict │ └── setDeltaT.H │ ├── ihFoamOF230 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ └── setDeltaT.H │ ├── ihFoamOF240 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── correctPhi.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ └── setDeltaT.H │ ├── ihFoamOF301 │ ├── Make │ │ ├── files │ │ ├── files~ │ │ ├── options │ │ └── options~ │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ ├── files~ │ │ │ ├── options │ │ │ └── options~ │ │ ├── correctPhi.H │ │ ├── createControls.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── setDeltaT.H │ └── setRDeltaT.H │ ├── ihFoamOF41 │ ├── Make │ │ ├── files │ │ ├── files~ │ │ ├── linux64GccDPInt32Opt │ │ │ ├── ihFoam.C.dep │ │ │ ├── ihFoam.o │ │ │ ├── options │ │ │ ├── sourceFiles │ │ │ └── variables │ │ ├── options │ │ └── options~ │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ ├── files~ │ │ │ ├── options │ │ │ └── options~ │ │ ├── correctPhi.H │ │ ├── createDyMControls.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── setDeltaT.H │ └── setRDeltaT.H │ ├── ihFoamOFv1606+ │ ├── Make │ │ ├── files │ │ ├── files~ │ │ ├── linux64GccDPInt32Opt │ │ │ ├── ihFoam.C.dep │ │ │ ├── ihFoam.o │ │ │ ├── options │ │ │ ├── sourceFiles │ │ │ └── variables │ │ ├── options │ │ └── options~ │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ │ ├── Make │ │ │ ├── files │ │ │ ├── files~ │ │ │ ├── options │ │ │ └── options~ │ │ ├── correctPhi.H │ │ ├── createControls.H │ │ ├── ihDyMFoam.C │ │ ├── pEqn.H │ │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── setDeltaT.H │ └── setRDeltaT.H │ └── ihFoamOFv30+ │ ├── Make │ ├── files │ ├── files~ │ ├── options │ └── options~ │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihDyMFoam │ ├── Make │ │ ├── files │ │ ├── files~ │ │ ├── options │ │ └── options~ │ ├── correctPhi.H │ ├── createControls.H │ ├── ihDyMFoam.C │ ├── pEqn.H │ └── readControls.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── setDeltaT.H │ └── setRDeltaT.H ├── v1612+ ├── ihFoam-v1612+ │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── correctPhi.H │ ├── createFaceNormals.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihFoam.C │ ├── ihFoam_compi.dat │ ├── pEqn.H │ ├── setDeltaT.H │ └── setRDeltaT.H ├── readme.txt └── references.txt ├── v1706 ├── ihFoam-v1706 │ ├── Make │ │ ├── files │ │ └── options │ ├── UEqn.H │ ├── allMake │ ├── alphaCourantNo.H │ ├── alphaEqn.H │ ├── alphaEqnSubCycle.H │ ├── alphaSuSp.H │ ├── correctPhi.H │ ├── createAlphaFluxes.H │ ├── createFields.H │ ├── createPorosity.H │ ├── ihFoam.C │ ├── pEqn.H │ ├── rhofs.H │ ├── setDeltaT.H │ └── setRDeltaT.H ├── readme.txt └── references.txt ├── v1712 ├── Make │ ├── files │ └── options ├── UEqn.H ├── allMake ├── alphaCourantNo.H ├── alphaEqn.H ├── alphaEqnSubCycle.H ├── alphaSuSp.H ├── correctPhi.H ├── createAlphaFluxes.H ├── createFields.H ├── createPorosity.H ├── ihFoam.C ├── pEqn.H ├── rhofs.H ├── setDeltaT.H └── setRDeltaT.H └── v1806 ├── Make ├── files └── options ├── UEqn.H ├── allMake ├── alphaCourantNo.H ├── alphaEqn.H ├── alphaEqnSubCycle.H ├── alphaSuSp.H ├── correctPhi.H ├── createAlphaFluxes.H ├── createFields.H ├── createPorosity.H ├── ihFoam.C ├── initCorrectPhi.H ├── pEqn.H ├── rhofs.H ├── setDeltaT.H └── setRDeltaT.H /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![Contribution guidelines for this project](v1.71--v1606/docs/logo.png) 3 | 4 | Set of solvers and boundary conditions to generate and absorb water waves actively at the boundaries and to simulate their interaction with porous coastal structures. 5 | It is valid from version OpenFOAM-1.7.1 to version OpenFOAM-v1806 6 | -------------------------------------------------------------------------------- /v1.71--v1606/docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IHCantabria/ihFOAM/e19d63feda2f55f3a814cc8c310310a121a029ff/v1.71--v1606/docs/logo.png -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/allMake: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ $WM_PROJECT == "foam" ]; then 4 | ofversion=`echo $WM_PROJECT_VERSION | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' | grep "[0-9]" | head -2 | tr -d '\n'` 5 | else 6 | ofversion=`echo $WM_PROJECT_VERSION"-0" | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' -e 's/+/\'$'\n/g' -e 's/v/\'$'\n/g' | grep "[0-9]" | head -3 | tr -d '\n'` 7 | fi 8 | 9 | #IHC_dbg 10 | echo $ofversion 11 | #---- 12 | 13 | export OF_VERSION=$ofversion 14 | 15 | wclean all > /dev/null 16 | 17 | wmake libso waveGeneration 18 | 19 | if (( $? )) ; then 20 | echo "\n\nWave generation boundary conditions compilation failed" 21 | exit; else 22 | echo -e "\n\nIH Wave generationV2.0 boundary conditions compiled successfully for $WM_PROJECT $WM_PROJECT_VERSION\n\n\n"; 23 | fi 24 | 25 | wmake libso waveAbsorption 26 | 27 | if (( $? )) ; then 28 | echo "\n\nWave absorption boundary conditions compilation failed" 29 | exit; else 30 | echo -e "\n\nIH Wave absorption boundary conditions compiled successfully for $WM_PROJECT $WM_PROJECT_VERSION\n\n\n"; 31 | fi 32 | 33 | wclean all > /dev/null 34 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/allMake~: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ $WM_PROJECT == "foam" ]; then 4 | ofversion=`echo $WM_PROJECT_VERSION | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' | grep "[0-9]" | head -2 | tr -d '\n'` 5 | else 6 | ofversion=`echo $WM_PROJECT_VERSION"-0" | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' -e 's/+/\'$'\n/g' -e 's/v/\'$'\n/g' | grep "[0-9]" | head -3 | tr -d '\n'` 7 | fi 8 | 9 | #IHC_dbg 10 | echo $ofversion 11 | #---- 12 | 13 | export OF_VERSION=$ofversion 14 | 15 | wclean all > /dev/null 16 | 17 | wmake libso waveGeneration 18 | 19 | if (( $? )) ; then 20 | echo "\n\nWave generation boundary conditions (V2.0-ESI) compilation failed" 21 | exit; else 22 | echo -e "\n\nIH Wave generationV2.0 boundary conditions (V2.0-ESI) compiled successfully for $WM_PROJECT $WM_PROJECT_VERSION\n\n\n"; 23 | fi 24 | 25 | wmake libso waveAbsorption 26 | 27 | if (( $? )) ; then 28 | echo "\n\nWave absorption boundary conditions (V2.0-ESI) compilation failed" 29 | exit; else 30 | echo -e "\n\nIH Wave absorption boundary conditions (V2.0-ESI) compiled successfully for $WM_PROJECT $WM_PROJECT_VERSION\n\n\n"; 31 | fi 32 | 33 | wclean all > /dev/null 34 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/calculateWaterLevel/calculatedLevelCurrent.H~: -------------------------------------------------------------------------------- 1 | forAll(calculatedLevel, it5) 2 | { 3 | calculatedLevel[it5] = RealwaterDepth_; 4 | } 5 | 6 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/calculateWaterLevel/calculatedLevelEta.H~: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | IH-Cantabria 2015 (http://www.ihcantabria.com/en/) 3 | IHFOAM 2015 (http://ihfoam.ihcantabria.com/) 4 | 5 | Author(s): Javier Lopez Lara (jav.lopez@unican.es) 6 | Gabriel Barajas (barajasg@unican.es) 7 | \*---------------------------------------------------------------------------*/ 8 | 9 | if( currTime > max(timeSeries_) ) 10 | { 11 | FatalError << "Time series is not long enough." << exit(FatalError); 12 | } 13 | else if( currTime < min(timeSeries_) ) 14 | { 15 | FatalError << "First time should be <= startTime." << exit(FatalError); 16 | } 17 | 18 | forAll( timeSeries_, contador1 ) 19 | { 20 | if ( timeSeries_[contador1] >= currTime ) 21 | { 22 | indexF = contador1; 23 | break; 24 | } 25 | } 26 | 27 | if ( indexF == 0) 28 | { 29 | etaInterp = paddleEta_[0]; 30 | } 31 | else 32 | { 33 | etaInterp = 34 | interpolation 35 | ( 36 | timeSeries_[indexF-1], 37 | timeSeries_[indexF], 38 | paddleEta_[indexF-1], 39 | paddleEta_[indexF], 40 | currTime 41 | ); 42 | } 43 | 44 | forAll(calculatedLevel, it5) 45 | { 46 | calculatedLevel[it5] = RealwaterDepth_ + timeMult * etaInterp; 47 | } 48 | 49 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/calculateWaterLevel/calculatedLevelIrregular.H~: -------------------------------------------------------------------------------- 1 | forAll(calculatedLevel, indWL) 2 | { 3 | calculatedLevel[indWL] = RealwaterDepth_; 4 | 5 | forAll(waveHeights_, lnd) 6 | { 7 | calculatedLevel[indWL] += timeMult*StokesIFun::eta 8 | ( 9 | waveHeights_[lnd], 10 | waveKxs[lnd], 11 | xGroup[indWL], 12 | waveKys[lnd], 13 | yGroup[indWL], 14 | waveOmegas[lnd], 15 | currTime, 16 | wavePhases_[lnd] 17 | ); 18 | } 19 | 20 | if ( secondOrder_ ) 21 | { 22 | for ( label so1 = 0; so1 <= nComp_-2; so1++ ) 23 | { 24 | for ( label so2 = so1+1; so2 <= nComp_-1; so2++ ) 25 | { 26 | calculatedLevel[indWL] += timeMult*secondOrderFun::etaSO 27 | ( 28 | waveHeights_[so1], 29 | waveHeights_[so2], 30 | waveOmegas[so1], 31 | waveOmegas[so2], 32 | wavePhases_[so1], 33 | wavePhases_[so2], 34 | waveKxs[so1], 35 | waveKys[so1], 36 | waveKxs[so2], 37 | waveKys[so2], 38 | xGroup[indWL], 39 | yGroup[indWL], 40 | currTime, 41 | RealwaterDepth_ 42 | ); 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/calculateWaterLevel/calculatedLevelSolitary.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | IH-Cantabria 2015 (http://www.ihcantabria.com/en/) 3 | IHFOAM 2015 (http://ihfoam.ihcantabria.com/) 4 | 5 | Author(s): Javier Lopez Lara (jav.lopez@unican.es) 6 | Gabriel Barajas (barajasg@unican.es) 7 | \*---------------------------------------------------------------------------*/ 8 | 9 | if ( waveTheory_ == "Boussinesq" ) 10 | { 11 | forAll(calculatedLevel, it2) 12 | { 13 | calculatedLevel[it2] = RealwaterDepth_ 14 | + BoussinesqFun :: eta 15 | ( 16 | waveHeight_, 17 | RealwaterDepth_, 18 | xGroup[it2], 19 | yGroup[it2], 20 | waveAngle, 21 | currTime, 22 | X0 23 | ); 24 | } 25 | } 26 | else 27 | { 28 | FatalError << "Wave theory not supported, use:\n" 29 | << "Boussinesq" << exit(FatalError); 30 | } 31 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/calculateWaterLevel/calculatedLevelSolitary.H~: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | IH-Cantabria 2015 (http://www.ihcantabria.com/en/) 3 | IHFOAM 2015 (http://ihfoam.ihcantabria.com/) 4 | 5 | Author(s): Javier Lopez Lara (jav.lopez@unican.es) 6 | Gabriel Barajas (barajasg@unican.es) 7 | \*---------------------------------------------------------------------------*/ 8 | 9 | if ( waveTheory_ == "Boussinesq" ) 10 | { 11 | forAll(calculatedLevel, it2) 12 | { 13 | calculatedLevel[it2] = RealwaterDepth_ + 14 | BoussinesqFun::eta 15 | ( 16 | waveHeight_, 17 | RealwaterDepth_, 18 | xGroup[it2], 19 | yGroup[it2], 20 | waveAngle, 21 | currTime, 22 | X0 23 | ); 24 | } 25 | } 26 | else 27 | { 28 | FatalError << "Wave theory not supported, use:\n" 29 | << "Boussinesq" << exit(FatalError); 30 | } 31 | -------------------------------------------------------------------------------- /v1.71--v1606/genAbs/common/checks/checkInputErrorsCurrent.H~: -------------------------------------------------------------------------------- 1 | if (nPaddles_ < 1) 2 | { 3 | FatalError << "Check nPaddles value." << exit(FatalError); 4 | } 5 | 6 | if ( nPaddles_ > 1 ) 7 | { 8 | nPaddles_ = decreaseNPaddles( nPaddles_, patchD, dMin, dSpan ); 9 | reduce(nPaddles_, minOp