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

Sampling Fields on arbitrary curve - OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Jerzy97

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2018, 11:57
Default Sampling Fields on arbitrary curve - OpenFOAM
  #1
New Member
 
Join Date: Jul 2018
Posts: 2
Rep Power: 0
Jerzy97 is on a distinguished road
Dear all,


my last post got lost I'll retry...
I created a plain txt file containing the coordinates along a curve. So something like
Code:
x1 y1 z1
x2 y2 z2
x3 y3 z3
....
I now want to extract the field values at those points. I found the postProcessing utility internalcloud, which looks promising. My below code works fine, However I could not figure out how to read the plain ASCII file into the dictionary, instead of specifying points manually. Does anyone has a hint how to do that?


Kind regards
Jerzy
PS: I do know how to read files with C++, but could not figure out how to combine it with the dictonary. Sorry if the answer is trivial, Im quite new to OpenFOAM


Code:
pressure_plot
{
    type            sets;
    libs            ("libsampling.so");

    interpolationScheme cellPoint;
    setFormat       raw;

    writeControl    runTime;
    writeInterval    0.001;

    fields  (p);
    points
    (
    (0.0936413556337 0.0815078690648 0.0702539756894)
    ......

    );

    sets
    (
    cloud
    {
        type    cloud;
        axis    xyz;
        points  $points;
    }
    );
}
nishant.kumar and pemesu like this.
Jerzy97 is offline   Reply With Quote

Reply

Tags
postprocessing


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
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 22:28.