CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Sampling Fields on arbitrary curve - OpenFOAM

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

Like Tree1Likes
  • 1 Post By Jerzy97

LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2018, 12:57
Default Sampling Fields on arbitrary curve - OpenFOAM
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
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
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

    type            sets;
    libs            ("");

    interpolationScheme cellPoint;
    setFormat       raw;

    writeControl    runTime;
    writeInterval    0.001;

    fields  (p);
    (0.0936413556337 0.0815078690648 0.0702539756894)


        type    cloud;
        axis    xyz;
        points  $points;
pemesu likes this.
Jerzy97 is offline   Reply With Quote



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

All times are GMT -4. The time now is 02:47.