CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   wave pattern surface of floating object (https://www.cfd-online.com/Forums/openfoam-solving/75536-wave-pattern-surface-floating-object.html)

soeren87 April 28, 2010 08:48

wave pattern surface of floating object
 
hello,

I'm currently trying to simulate the flow arround an object in an air-liquid case.
My aim is getting the wave pattern.

At first I build a box with blockMesh and insert my test-hull with snappyHexMesh.
Then I use setFields to set the liquid and the air phase.
Finally I use interFoam to do the simulation.

Using paraFoam I get some results (I think my boundary conditions are wrong) but the case is running stable and I see something flowing on the hull so I will change them later.

My question: how can I build/get a wavepattern surface ?

(I am using OF 1.6)

gtampier April 29, 2010 11:06

Don't know if I did understand what you mean. If you mean how to visualize it, your question belongs actually to the post-processing forum..
In paraview/paraFoam it's very easy. E.g.:
- contour -> select alpha=0.5
- calculator -> coordsZ (from the "scalars" button)
..and you have a nice wave elevation plot!

ovie June 19, 2010 00:46

Quote:

Originally Posted by gtampier (Post 256874)
Don't know if I did understand what you mean. If you mean how to visualize it, your question belongs actually to the post-processing forum..
In paraview/paraFoam it's very easy. E.g.:
- contour -> select alpha=0.5
- calculator -> coordsZ (from the "scalars" button)
..and you have a nice wave elevation plot!

Hi,

I tried to follow those steps, but they are not so clear to me. Could you please be more specific on the steps to follow to plot the free surface elevation?

Thanks

openfoam_user June 19, 2010 13:10

Hi,

a)Run ParaFOAM
b)From the tab "properties" I select all the regions, the "updateGUI" check-box and the variables alpha1,p and U.
c)Apply "Contours" filter and set 0.5 for the alpha1 variable. In this way you have selected your free surface.
d)Apply "Calculator" filter with "Attribute Mode" selected on "Point Data". Then create a function on the scalar coordsZ.
e)Move on the "Display" tab and color by the field you have just created using the Calculator. Reset the color legend.

Depending the OF-version you use alpha1=gamma.

Or read the following thread:
http://www.cfd-online.com/Forums/ope...e-pattern.html

Best regards,

Stephane.

ovie June 19, 2010 15:11

Great! Many thanks for the information. Would try this.

ovie.

Ralph M August 30, 2010 09:19

Thanks for the explanation; I've been busy with finding out how to visualize the FS for more than 2 days!

openfoam_user June 29, 2011 08:34

OpenFOAM-2.0.x with the run-time post-processing capabilities
 
Dear OF-users

I'm using OpenFOAM-2.0.x with the run-time post-processing capabilities.

I would like to know where to find information to write correctly the system/isoSurface file (alpha1=0.5) ?

The motorbike tutorial has a good example but with system/cuttingPlane file.

Regards,
Stephane


All times are GMT -4. The time now is 07:19.