Hi all, I had an issue when using OFv7 to simulation a ship in wave condition.
As far as I know, OpenFOAM has included its own wave generation tool since OFv5.
To start with, I copied the DTCHullWave tutorial case into my own directory then I replaced the STL file and then did my own blockMesh, refineMesh and snappyHexMesh etc. Then I did renumberMesh, the error reported:
file: /home/OpenFOAM/OpenFOAM-7/run/KCSDRIFTINWAVE/0/U.boundaryField.inlet from line 31 to line 31.
Then I had to add value in alpha.water and U files in 0 folder (value $internalField; in both inlet BCs in both files)
Then setWaves and decomposePar ran smoothly without any error.
Finally, running interFoam, error reads: Unknown patchField type waveVelocity for patch type patch; (/0/U.boundaryField.inlet)
I think the same error will reported in 0/alpha.water.inlet as well for Unknown patchField type waveAlpha for patch type patch;
Please let me know if you have any hints to resolve this issue! Btw I am using OF version 7 and the patches of waveAlpha and waveVelocity should have been included in OFv7, and I can run DTCHullWave tutorial case without any error!
Btw, I am not sure whether it is worth installing a third-party wave generation tool eg. waves2Foam in OpenFOAM v7? But I think waves2Foam is not compatible with OpenFOAMv7.
Sorry for using English instead of Chinese due to the lack of Chinese character coding input on the workstation.