CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Open Foam for ship hydrodynamics (https://www.cfd-online.com/Forums/openfoam/60717-open-foam-ship-hydrodynamics.html)

cognit September 22, 2006 06:50

Has anybody used OpenFoam to s
 
Has anybody used OpenFoam to study ship hidrodynamics? Would it be suitable/easy to do so? I mean, calculating free surface, drag, and so on as in a towing tank.
Thank you

eugene September 22, 2006 08:03

I have tried using the interFo
 
I have tried using the interFoam series of codes. At least I started trying before a more pressing project came along, and it seems to be doable. The main problem is wave transmissive/non-reflecting boundaries. Since the speed of the surface wave is dependent on its frequency and amplitude, its very difficult to build a filter to pass/remove these waves at the boundaries.

My workaround was to apply a spatially static viscosity ramp, basically freezing the waves before they hit the outlet boundary. I thik you could probably do something equivalent with an anisotropic porous media.

In addition, you will need a special outlet for pressure due to the numerics of the two-phase formulation. One of the components that make OpenFOAM VOF so robust is its use of a numerical interface compression term. Unfortunately, this same compresion term causes the pressure in the two fluids to vary sharply across the interface. If you add a fixed value pressure boundary to the mix, the result can be unpredictable (although this is not always the case). To get around this problem I used a boundary that applied fixed value pressure for the air-phase, but zeroGradient where there was water adjacent to the boundary.

If you are not scared off by the above contact me via e-mail, I might be able to help you out.

pierre September 22, 2006 08:19

If you are after a ensemble-av
 
If you are after a ensemble-averaged approach, OpenFoam also provide reliable two-fluid codes that can be applied and modified for ship Hydrodyanmics.

Pierre

cognit September 22, 2006 09:50

Thank you for your quick respo
 
Thank you for your quick response.
I have never used OpenFoam. I have used other CFD codes and I got into them when doing part of my PhD work (parked some time ago for laboral reasons). I still collaborate with the university in testing and so on with the little spear time that I have.
I work on a naval design office and I trying to get back a little to CFD analysis. With the code that we use and helped develop (FEM based) we do get results but it dificult to have them reliable enough for consistent use in engineering.
I see that kind of analysis is somehow dificult with any kind of code. Comertial codes claim to solve it but in my experience not reliably enough.
With this I mean that I have seen some of the problems you mention.
I think I going to star looking into the documentation.
Also, how difficult is to create a mesh for this kind of problems that can have somehow complex boundaries?
Pierre, do you have any reference of an ensemble approach used for ship hydrodynamics?
Thank you again.

pierre September 22, 2006 10:39

Hi Alberto, Ref is: A polyd
 
Hi Alberto,

Ref is: A polydisperse model for bubbly two-phase flow around a surface ship, International Journal of Multiphase Flow, Volume 25, Issue 2 , March 1999, Pages 257-305. P. M. Carrica, D. Drew, F. Bonetto and R. T. Lahey Jr.

Pierre

eugene September 22, 2006 11:09

Meshing isn't too difficult. Y
 
Meshing isn't too difficult. You just have to make sure the submerged hull and any place the air-water interface goes is well resolved. Since the ship hull is generally quite smooth and the interface uses volume refinement, most commercial meshers will be able to this without a problem. The rest of the domain can be pretty coarse.

Btw, I spent a week looking at papers and theses of ocean wave/ship modelling and I can assure you there is no easy solution to the boundary problem.

egp November 6, 2006 08:01

I am currently working on the
 
I am currently working on the following ship hydro benchmarks so that I can better understand OF

1. Wigley Hull
2. DTMB Model 5415
3. Suboff
4. Headform cavitation
5. Propeller flows

Has anyone already solved these benchmark problems? Which solvers did you use, or did you write a custom solver (e.g., steady-flow RANS surface capturing).

I am particularly interested in tracking vs. capturing capability for the free-surface problems, and will be studying this in the near future.

Eric Paterson
Penn State Univ
State College, PA USA

clo January 12, 2007 11:01

Hi Eric, I'm also really inter
 
Hi Eric, I'm also really interested in types of benchmark you refer. In particular, my final objectiv is to simulate a rotating machine as a marine propeller partially immersed in water. For the moment I'm really at the early stage learning OpenFoam and I'm learnig a simple two-phase flow case as the damBreak; then I would like to learn about moving mesh and finally put the 2 things together.
I don't know about your experience but do you think it's possible?

Thank you
ciao

kumar2 January 12, 2007 16:16

Hello friends I looked at w
 
Hello friends

I looked at wave breaking over hydrofoils and compared with experimental work of Duncan ( very famous work , see jfm 1983.) excellent results from openfoam. ofcourse grid generation in openfoam using blockmesh is intended for simple geometry, propeller mesh would be hard with blockmesh. but the solver is excellent and we can read and modify all parts.

thanks

kumar

lillberg January 12, 2007 16:49

Hi, I've been working with
 
Hi,

I've been working with underwater and free surface hydrodynamics using FOAM and now OF since 1999 computing several benchmark cases including Wigley hulls, DTMB 5415, DARPA Suboffs etc using LES and VOF implementations. Most of the work is published or found in conference procedings. If you're interested please send me an email and I'll send copies of the papers.

Regards

/Eric

marhamat January 22, 2007 09:34

Hello Eric I am studing dr
 
Hello Eric

I am studing drag reduction using with microbubble injection in fluid.
So i want to model this case using LES implementation.
Do you have any experience in this field?
Or can you introduce me any references in this field?

Regards
Marhamat

lillberg January 22, 2007 09:54

Sorry, can't say I have. Very
 
Sorry, can't say I have. Very interesting topic though, what kind of modelling did you have in mind for the bubbles?

Regards
Eric

marhamat January 22, 2007 17:04

I started my studing recently.
 
I started my studing recently.
So i didn't decide which model to use .
I inform you in near future.

Best regards
Marhamat

hjasak January 22, 2007 17:29

A thought: it seems there is a
 
A thought: it seems there is a few people interested in shpi hydrodynamics applications. If you are coming to Zagreb for the Workshop, it may be a good idea to add this as one of the topics. Any takers?

Hrv

egp January 22, 2007 18:58

Hi Hrv, I'm thinking of att
 
Hi Hrv,

I'm thinking of attending the workshop, and would be very interested in a ship hydro session. If I we were further along, I would volunteer, but we are still novices. If you can get them to participate, I would nominate the group from Sweden (Alin, Fureby, Svennberg et al.) since they probably have the most experience using OpenFOAM in the ship hydro community.

Eric

miguel_q February 19, 2008 20:30

hello Eric Lillberg I am ve
 
hello Eric Lillberg

I am very interested in the benchmark cases you mentioned above. Could you direct me in the right direction on where to find these papers/publications?

Miguel Q.

pacoblasco January 8, 2009 15:34

I know this post is quiet abou
 
I know this post is quiet about 1 year.

Does anybody have anything new on Ship Hydrodynamics using OpenFOAM??

I would like to know if somebody have any experience on it. I am very interested.

F. Blasco

tomislav_maric April 9, 2009 09:23

I'm trying to simulate free surface flow around a ship using interFoam as a part of my semestral project. I've made libforces.so calculate forces and moments for water (phase1), at least I like to think so, but I keep getting floating point exception error and my gamma is turning negative during first time steps. checkMesh has gone through without warnings.

albcem June 26, 2009 02:51

If your mesh is tetrahedral? Non-hex meshes tend to trigger instabilities in interFoam class solvers. I had had issues due to this a while back and could not refrain from banging my head against the wall as things looked perfectly fine with checkMesh. Thanks to Mark C., who pointed out hex meshes which you can produce with the snappyhexmesh utility is the way to go.

Cem

tomislav_maric August 3, 2009 09:30

Quote:

Originally Posted by albcem (Post 220545)
If your mesh is tetrahedral? Non-hex meshes tend to trigger instabilities in interFoam class solvers. I had had issues due to this a while back and could not refrain from banging my head against the wall as things looked perfectly fine with checkMesh. Thanks to Mark C., who pointed out hex meshes which you can produce with the snappyhexmesh utility is the way to go.

Cem

My current mesh is created with snappy and it's unstructured tetrahedral. Now I know that non orthogonality causes the gamma to become unbounded and that makes my runs explode.

Where can I find the tips on hex mesh for ships generation with snappy? What Open Surce software is best for meshing ships? Has anyone got any experience with Salome-Meca?

Thanks for the advice,
Tomislav

hhh February 10, 2012 02:38

Hydrodynamics(under water vechile)
 
Dear foamers,
i am doing analysis under water vechile,i just design in catia,please give idea how i start with this one it has rectangular box six padles(left side 3 and right side 3) to flap in under water.please give me idea with basic how i start with preprocessing(mesh) and solver.please find my attached design.


Regards,
hhh
kumar

Sachin m August 12, 2014 07:37

Quote:

Originally Posted by lillberg (Post 189622)
Hi,

I've been working with underwater and free surface hydrodynamics using FOAM and now OF since 1999 computing several benchmark cases including Wigley hulls, DTMB 5415, DARPA Suboffs etc using LES and VOF implementations. Most of the work is published or found in conference procedings. If you're interested please send me an email and I'll send copies of the papers.

Regards

/Eric

Hi Eric ,

Iam sending this email in regard to your post on 'CFD ONLINE' relating to benchmark cases of several hulls using LES and VOF. I am a Mtech student and my project is related to the hydrodynamics of vessel. I would like to know more about ship hydrodynamics in OPEN Foam and in particular the wigley hulls using VOF method. Please help me out by sending a copy of this particular case.

fondexx August 12, 2014 09:48

convergence problems
 
4 Attachment(s)
hi partners

I'm trying to make a CFD analysis of the KCS hull using interFoam, butn I can't find the convergence and when I see the results on para Foam I can see some interference or something, can you help me?

Sachin m September 1, 2014 00:40

3 Attachment(s)
Hi all,

I have run a drag force analysis of accustom hull using LTSInterFoam.
But after 12000 runs the free surface is seen above the ship hull. What could be the possible reason. Could it be because the solution is not yet stable. Should I run this for more number of iterations?

One more thing, I need to find the drag force on the hull. The function to write the force that I have asks for only one density value. How can that function give me the drag when it is a multiphase problem. There should be two values of density changing with the value of alpha1. Can anybody help me with this?

Below I am attaching few results:

1) The meshed hull with value of alpha1 shown. Blue region is air; red region is water.
2) Free surface after 100 iterations
3) free surface after 12000 iterations.

Sachin m October 28, 2014 01:33

Has anyone tried the propeller tutorial in openFoam??
If yes let me know how to go about it.
My allrun file is not working. So iam trying to run it manually.
Can anyone help me out with the steps???

Thanks in advance.

vava10 March 14, 2021 16:43

interface capture
 
Hey,

I working on ship simulation using OpenFOAM. This is my first project using openFoam.

I tried to capture the interface as follows as per one of the papers which I read

1.Creating a background mesh with blockMesh. blockMesh

2.Using snappyHexMesh to insert geometry, refine around geometry and other regions of interest by isotropic splitting of cells in all three dimensions. snappyHexMesh with castellatedMeshControls true and others false
3.Selecting the free surface region by using topoSet utility. topoSet
4.Refining mesh, based on the cells selected in topoSet, in vertical direction only using the refineMesh utility. refineMEsh
5.Snapping the mesh to the geometry surface and adding layers with snappyHexMesh. snappyHexMesh with castellatedMeshControls false and others true

But I get the following error while running this case in HPC

cell 3773907 of level 0 uses more than 8 points of equal or lower level

from the forum I got why the error comes (https://www.cfd-online.com/Forums/op...-problems.html)

My geometry is a kayak whose width is 0.41m and dept 0.29. I used a 0.55 refinement zone(depth) for the water surface capture because if I go below the valoe of 0.2 for the refinement zone the refinement zone is not visible beyond the refinement box for the ship:confused:

Is there any other options to capture the interface?:confused:

Can you please help me:(

Thanks in advance

vava10 March 14, 2021 16:48

interface capture
 
Sorry. I accidentally posted here. This was supposed to be under another thread

But if anyone can help, I would appreciate it

vava10 March 14, 2021 16:54

interface capture
 
Hey,

I working on ship simulation using OpenFOAM. This is my first project using openFoam.

I tried to capture the interface as follows as per one of the papers which I read

1.Creating a background mesh with blockMesh. blockMesh

2.Using snappyHexMesh to insert geometry, refine around geometry and other regions of interest by isotropic splitting of cells in all three dimensions. snappyHexMesh with castellatedMeshControls true and others false
3.Selecting the free surface region by using topoSet utility. topoSet
4.Refining mesh, based on the cells selected in topoSet, in vertical direction only using the refineMesh utility. refineMEsh
5.Snapping the mesh to the geometry surface and adding layers with snappyHexMesh. snappyHexMesh with castellatedMeshControls false and others true

But I get the following error while running this case in HPC

cell 3773907 of level 0 uses more than 8 points of equal or lower level

from the forum I got why the error comes (SnappyHexMesh problems)

My geometry is a kayak whose width is 0.41m and dept 0.29. I used a 0.55 refinement zone(depth) for the water surface capture because if I go below the valoe of 0.2 for the refinement zone the refinement zone is not visible beyond the refinement box for the ship

Is there any other options to capture the interface?

Can you please help me

Thanks in advance


All times are GMT -4. The time now is 21:40.