|
[Sponsors] |
August 2, 2013, 05:26 |
potentialFreeSurfaceFoam extract zeta
|
#1 |
New Member
Deutschland
Join Date: Jun 2013
Posts: 2
Rep Power: 0 |
Hi everyone,
I am trying to extract the free surface elevation from the oscillatingBox tutorial which uses potentialFreeSurfaceFoam. I added the following probes to my controlDict Code:
libs ( "libsampling.so" ); fieldsOfInterest ( zeta U p banana ); functions { someProbes { type probes; probeLocations ( (4.0 1.0 0.0) ); fields $fieldsOfInterest; }; aLine { type sets; outputControl outputTime; fields $fieldsOfInterest; interpolationScheme cell; setFormat raw; sets ( lineUp { type midPointAndFace; axis y; start (2 1 0); end (10 1 0); } ); } } Do I have to include another option for extracting zeta or is there a better way? I first tried to use libfieldFunctionObjects.so but I could not get non averaged values. Thanks for any suggestions. |
|
April 22, 2014, 10:31 |
|
#2 |
New Member
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12 |
Sorry for digging this up, but I'm currently stuck with a similar problem.
I'd like to extract zeta that is calculated with potentialFreeSurfaceFoam. When I plot zeta in paraView (so far I haven't used sampleDict), I can see the values (for example on the wireframe) for zeta. But as soon as I try for example Plot over Line or the view in the Spreadsheet, the values for zeta are all zero. Does anyone know why? I'd really appreciate some help. greetings, Benji |
|
February 25, 2015, 21:20 |
|
#3 |
Member
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12 |
This post is quite old, but perhaps if you still want to know... The reason your sample line shows zero is that the "zeta" values are present only in the boundary face "free surface", and the "sample line" function in Paraview will try to interpolate the values in the cells.
If you want to see the surface deformation in Paraview, use the filter "Wrap by vector", select "zeta" as your variable and set a high value for the scale factor, such as 1000. |
|
June 28, 2020, 17:31 |
How to plot zeta
|
#4 |
New Member
Mateus Alves Farah
Join Date: Sep 2019
Posts: 5
Rep Power: 6 |
I know that this post is old, but I will ask it hoping that some maybe will help me.
I want to do a similar case to oscillatingbox, but I don't know how is defined zeta in the directories, because in controlDict that is presented in the tutorial that is only a functionObject that defines the field as"zeta" but I don't know where this field is defined. Could anyone help me with that? I want to simulate the wave resistance presented in a ship mobing forward with fix grid and no degrees of freedom, modeling only the draught line part, without the free-surface, and that's way I want to use the potentialFreeSurfaceFoam. That's for my term paper and the dead line is near, if anyone could help me I would appreciate a lot. Regards! |
|
Tags |
zeta |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to extract a yx plane and set as BC... | sawyer86 | OpenFOAM Running, Solving & CFD | 0 | March 19, 2012 10:43 |
extract information from sample during simulation for use | duongquaphim | OpenFOAM Programming & Development | 0 | January 10, 2011 13:51 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 12:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 13, 2000 23:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |