@五好青年 您的解释很全面!还想请教个问题,像您说的最后一条,是否可以在interFoam运行前用potentialFoam试运行,加快RANS的收敛速度?谢谢
tonysoton
帖子
-
Floating point exception -
OpenFOAM7 安装 waves2Foam & interFoam 生成自由页面视频大家好,请问waves2Foam是否与OpenFOAM7 版本兼容?如果没有还有其他更好的wave generation tool 除了OF7自带的造波?
在interFoam结束计算时,可以用paraview生成每个timestep 的free surface contours,如何用paraview直接作出自由页面的实时状态,作出类似这样的视频?(https://www.youtube.com/watch?v=_f4hqQ1yHTc&t=9s)
提前感谢大家!
-
Re: dynamicMeshDict CofR你好 我最近也在研究dynamicMeshDict (https://openfoamwiki.net/index.php/DynamicMeshDict). CofG指的是centre of gravity. 在dynamicMeshDict你可以修改 centre of mass, inertia and etc. CofR是centre of rotation,这个我的算例是在controlDict里修改,我用的是interFoam solver,openfoam version7.
-
mpirun detected that one or more processes exited with non-zero status看样子你用的是HPC,先减少点processor试试。我之前用太多core也出现过类似问题,或者就是某个variable diverge :)
-
OpenFOAM interFoam setFields &setWaves 定义 free surface问题已经解决了 找到KCS的draft 在setfields 或者 waveProperties 设置即可。
-
OpenFOAM interFoam setFields &setWaves 定义 free surface问题各位老师同学好,我现在在用interFoam模拟船舶在波浪中的运动。根据tutorial DTCHull, DTCHullMoving, DTCHullWave, 这三个都把自由页面设置在z=0.244m. 如果我想换成其他的船舶模型比如KCS,我该如何确定自由页面的位置(z=?)?谢谢大家!😀
-
OpenFOAMv7 wave Generation ProblemHi 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:
--> FOAM FATAL IO ERROR:
Essential entry 'value' missingfile: /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.
Any help will be appreciated!
Tony