|
[Sponsors] |
How to create/store time-series of a flow variable on a line |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 6, 2018, 13:47 |
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 |
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? |
|
February 12, 2018, 20:02 |
|
#2 |
Senior Member
Scott Fowler
Join Date: May 2009
Posts: 112
Rep Power: 16 |
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 |
|
|
|
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 |