CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

potentialFreeSurfaceFoam extract zeta

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2013, 05:26
Default potentialFreeSurfaceFoam extract zeta
  #1
New Member
 
Deutschland
Join Date: Jun 2013
Posts: 2
Rep Power: 0
Blub is on a distinguished road
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);
            }
        );
    }
}
The probes create an output for p, U and zeta but the entries for zeta are always 0. But when I check the same Line in paraFoam with plotoverLine they are not 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.
Attached Files
File Type: gz controlDict.tar.gz (1,023 Bytes, 5 views)
Blub is offline   Reply With Quote

Old   April 22, 2014, 10:31
Default
  #2
New Member
 
Join Date: Apr 2014
Posts: 20
Rep Power: 4
Benji is on a distinguished road
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
Benji is offline   Reply With Quote

Old   February 25, 2015, 22:20
Default
  #3
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 4
davibarreira is on a distinguished road
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.
davibarreira is offline   Reply With Quote

Reply

Tags
zeta

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
how to extract a yx plane and set as BC... sawyer86 OpenFOAM Running, Solving & CFD 0 March 19, 2012 11:43
extract information from sample during simulation for use duongquaphim OpenFOAM Programming & Development 0 January 10, 2011 14: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


All times are GMT -4. The time now is 17:38.