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

potentialFreeSurfaceFoam extract zeta

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

Reply
 
LinkBack Thread Tools Search this Thread 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
 
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 8
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, 21:20
Default
  #3
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 8
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

Old   June 28, 2020, 17:31
Default How to plot zeta
  #4
New Member
 
Mateus Alves Farah
Join Date: Sep 2019
Posts: 4
Rep Power: 2
mateusfarah is on a distinguished road
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!
mateusfarah is offline   Reply With Quote

Reply

Tags
zeta

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 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


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