July 5, 2023, 07:30
|
Not achieving to generate wave+current in OpenFOAM ESI
|
#1
|
New Member
Hugo
Join Date: Jun 2023
Posts: 4
Rep Power: 3
|
Hi everyone, I am trying to do ship resistance in waves in OpenFoam2206. However I don't know how to set the current to simulate de vessel velocity. When a put a velocity in waveVelocity a ramp of water is generated and the simulation crashes. The last thing I tried is emulate the waveProperties dict of the OF.org version.
Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object waveProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
inlet
{
alpha alpha.water;
waveModel cnoidal;
nPaddle 1;
waveHeight 0.00;
waveAngle 0.0;
rampTime 2.0;
activeAbsorption yes;
wavePeriod 1.0;
// Flow Current Parameters
flowCurrent
{
type velocity;
U (-2.0 0.0 0.0); // Current velocity components in (x, y, z) directions
}
}
outlet
{
alpha alpha.water;
waveModel shallowWaterAbsorption;
nPaddle 1;
}
// ************************************************************************* //
I add an example error. When I do not add velocity the wave is well generated, as can be seen in "WavesNoSpeed".
I know that with OF.org version can be done, but I trying to do it with an overSet which is not available for the foundation version. If anyone has an idea of how could be solved or where is the error, i would be glad to listen to.
Thanks in advance!
|
|
|