Wave pattern
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. |
Hi Stephane,
I think I've f
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 |
Hi Norman,
Thanks a lot for
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. |
Hi Stephane,
after working
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 |
Hi Norman,
thanks a lot.
Hi Norman,
thanks a lot. All works fine now. Stephane. |
Contour lines label
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. |
All times are GMT -4. The time now is 07:57. |