CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

How to create/store time-series of a flow variable on a line

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wsfowler

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2018, 13:47
Default How to create/store time-series of a flow variable on a line
  #1
New Member
 
Join Date: Aug 2017
Posts: 20
Rep Power: 8
cfdstar is on a distinguished road
Hi,

I am working on post-processing of a transient 3D problem. I need to extract the time-series of a flow variable (for instance, temperature) over a curved-line. In other words, I need to extract the distribution of a flow-variable over a curved-line every time-step. I wonder if there is a way to that in Tecplot. Any idea/help?
cfdstar is offline   Reply With Quote

Old   February 12, 2018, 20:02
Default
  #2
Senior Member
 
Scott Fowler
Join Date: May 2009
Posts: 112
Rep Power: 16
wsfowler is on a distinguished road
You can do this with a Tecplot Macro. The code below assumes that your dataset uses StrandID and Solution Time so Tecplot recognizes it as transient data.

The only alteration you should have to make to this macro is to change the RAWDATA section to reflect the number of points along the curve and the points defining your curve. This will result in one new zone per timestep.

If you're dealing with 2D data, change EXTRACTTHROUGHVOLUME to 'NO' and supply only XY coordinates instead of XYZ.

Hope this helps.
Scott

Code:
#!MC 1410
$!EXTENDEDCOMMAND COMMANDPROCESSORID='extend time mcr'
  COMMAND='QUERY.NUMTIMESTEPS NumTimeSteps'
$!LOOP |NumTimeSteps|
  $!EXTENDEDCOMMAND COMMANDPROCESSORID='extend time mcr'
    COMMAND='SET.CURTIMESTEP |LOOP|'
  $!EXTRACTFROMPOLYLINE
    EXTRACTLINEPOINTSONLY = YES
    EXTRACTTHROUGHVOLUME = YES
RAWDATA
3
.25 .75 .75
.5 .5 .5
.75 .5 .25
$!ENDLOOP
cfdstar likes this.
wsfowler is offline   Reply With Quote

Reply


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
Derivative of velocity and mean velocity hiuluom OpenFOAM Post-Processing 1 May 29, 2015 23:42
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 16:58.