|
[Sponsors] |
May 12, 2019, 15:00 |
Sampling field variables with time on a line
|
#1 |
New Member
jawahar sivabharathy
Join Date: Jan 2011
Posts: 12
Rep Power: 15 |
Hi all,
I have included the following in my controlDict file profiles { type sets; libs ("libsampling.so"); enabled true; verbose true; interpolationScheme cellPoint; outputControl timeStep; outputInterval 1; setFormat raw; fields ( p ); sets ( upper { type lineUniform; axis z; start (-0.5 0.5 0); end (0.5 0.5 0); nPoints 500; } lower { type lineUniform; axis z; start (-0.5 -0.5 0); end (0.5 -0.5 0); nPoints 500; } back { type lineUniform; axis z; start (0.5 -0.5 0); end (0.5 0.5 0); nPoints 500; } ); } I could write the pressure data at the specified location. But it generates a new folder for every time step and writes the data inside that folder. Can someone help me how to append the data in one file. Thanks, S Jawahar. |
|
March 26, 2024, 12:14 |
|
#2 |
New Member
|
I know this posted a few years back, but it might help someone.
To output to a single file (csv, for example) change the setFormat from raw to csv. Code:
setFormat csv; |
|
Tags |
profile, sampling |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
[Gmsh] Structured meshing in Gmsh | the_phew | OpenFOAM Meshing & Mesh Conversion | 19 | August 24, 2022 04:19 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |