CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Wave pattern

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By norman1981

Reply
 
LinkBack Thread Tools Display Modes
Old   October 15, 2008, 08:30
Default Dear Paraview users, I have
  #1
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
Dear Paraview users,

I have the wave pattern around a boat (gamma = 0.5).

I want to color the wave pattern with Z-coordinate (wave height). Is it possible ? How to do this ?

Stephane.
openfoam_user is offline   Reply With Quote

Old   October 15, 2008, 11:58
Default Hi Stephane, I think I've f
  #2
Member
 
norman1981's Avatar
 
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 8
norman1981 is on a distinguished road
Hi Stephane,

I think I've found two different way to plot wave pattern that produce the same results:

First way:
a)Run ParaFOAM
b)From the tab "properties" I select all the regions, the "updateGUI" check-box and the variables gamma,p and U.
c)Apply "Contours" filter and set 0.5 for the gamma 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 (for ex. I type coordsZ/Lref where Lref is my ship Lbp).
e)Move on the "Display" tab and color by the field you have just created using the Calculator. Reset the color legend.

Second way:
a)Run the writeCellCentres utility in your case directory.
b)run paraFoam
c)From the tab "properties" I select all the regions, the "updateGUI" check-box and the variables gamma,p and U.
d)Apply "Contours" filter and set 0.5 for the gamma variable.
e)On the "Display" tab select color by the "ccz" field. Reset the color legend.

I prefer the first approach since it doesn't need to create other files and it also allows you to scale the wave height by a reference length... but this is only my opinion ;-)

Hope this will help!

Ciao

Norman
norman1981 is offline   Reply With Quote

Old   October 16, 2008, 02:03
Default Hi Norman, Thanks a lot for
  #3
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
Hi Norman,

Thanks a lot for your help. I have also chosen the first approach.

Two more questions :

1. how to have the symmetry (I have calculated only half boat) ?

2. how to add black isolines over the wave pattern ?

Ciao,

Stephane.
openfoam_user is offline   Reply With Quote

Old   October 16, 2008, 09:09
Default Hi Stephane, after working
  #4
Member
 
norman1981's Avatar
 
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 8
norman1981 is on a distinguished road
Hi Stephane,

after working for half an hour with paraFoam I think I have found an answer to your questions :-)

a)Run ParaFOAM
b)From the tab "properties" select all the regions, the "updateGUI" check-box and the variables gamma,p and U.
c)Apply the Filter "Reflection" and you'll have simmetry.
c)Apply "Contours" filter and set 0.5 for the gamma variable.
d)Apply "Calculator" filter with "Attribute Mode" selected on "Point Data". Then create a function on the scalar coordsZ (for ex. I type coordsZ/Lref where Lref is my ship Lbp).
e)Move on the "Display" tab and color by the field you have created using the Calculator. Reset the color legend.
f)Apply another "Contour" filter and set it contouring by the variable created at the step d)
Create a new range of levels. Move on the "Display" tab and
1- select color by "Solid Color" in the color frame
2- set point size to 1.0 in the Style frame
3- set Translate to [0;0;0.001] in the Transformation frame (in this way you add something like a layer to your top view)
g)Make visible the object "Calculator" in your pipeline browser

Ciao

Norman
tfuwa likes this.
norman1981 is offline   Reply With Quote

Old   October 16, 2008, 09:10
Default Hi Norman, thanks a lot.
  #5
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
Hi Norman,

thanks a lot.

All works fine now.

Stephane.
openfoam_user is offline   Reply With Quote

Old   August 17, 2011, 23:35
Default Contour lines label
  #6
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 6
tfuwa is on a distinguished road
Hi Norman and all,

Norman, thanks heaps for these two great posts. They are very useful.

I have only one question, though. How to add contour-line labels in paraview?

I already know a way to add "source"-"text" (or "3D text"), but it is a rather stupid way to for example, add 10 line-labels.

regards,
Albert

ps. Sorry for posting here as this thread is quite old, but it seems good to put similar things together.
tfuwa is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help me for"wave maker"&"wave absorber" bestrcsekhar Main CFD Forum 0 November 28, 2008 05:57
Pressure wave pattern over body in steadystate? Chebeba CFX 1 March 16, 2008 03:00
oil spill in water and wave pattern hadi FLUENT 0 January 14, 2004 18:34
Free surface wave pattern generation sam FLUENT 1 January 2, 2004 17:12
flow pattern chongchunleong FLUENT 2 January 16, 2002 04:50


All times are GMT -4. The time now is 15:25.