CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Sampling field variables with time on a line

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2019, 14:00
Default Sampling field variables with time on a line
  #1
New Member
 
jawahar sivabharathy
Join Date: Jan 2011
Posts: 12
Rep Power: 15
sjsivabharathy is on a distinguished road
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.
sjsivabharathy is offline   Reply With Quote

Old   March 26, 2024, 11:14
Default
  #2
New Member
 
Reza Nouri
Join Date: Oct 2012
Location: Tennessee
Posts: 26
Rep Power: 13
reza2031 is on a distinguished road
Send a message via Skype™ to reza2031
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;
reza2031 is offline   Reply With Quote

Reply

Tags
profile, sampling


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
[Gmsh] Structured meshing in Gmsh the_phew OpenFOAM Meshing & Mesh Conversion 19 August 24, 2022 03:19
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 20:43.