当前位置: 首页 > 工具软件 > Fluent Reader > 使用案例 >

tecplot批量导出图片_Fluent 后处理软件Tecplot宏批量处理cas,dat为图片

葛安和
2023-12-01

#!MC 1410

$!VarSet |MFBD| = 'E:\Tecplot\Tecplot 360 EX 2014 R1'

$!VarSet |NumLoop| = 3

$!Loop |NumLoop|

$!Varset |num| =

(|Loop|*200)

$!READDATASET  '"STANDARDSYNTAX" "1.0"

"FILELIST_Files" "2" "F:\MTP\MTPcase1\cas.dat\MTPcase1-4.cas"

"F:\MTP\MTPcase1\cas.dat\MTPcase1-4-00|num|.dat"

"LoadOption" "MultipleCaseAndData" "UnsteadyOption"

"ReadTimeFromDataFiles" "AssignStrandIDs" "Yes"

"SaveUncompressedFiles" "No"'

DATASETREADER = 'Fluent Data Loader'

$!FIELDLAYERS SHOWSHADE = NO

$!THREEDVIEW VIEWERPOSITION{X = 261.23431557108546}

$!THREEDVIEW VIEWERPOSITION{Y =

-1.7851337043769663E-015}

$!THREEDVIEW VIEWERPOSITION{Z = 12.670000000000018}

$!THREEDVIEW PSIANGLE = 90

$!THREEDVIEW THETAANGLE = -90

$!SETCONTOURVAR

VAR = 4

CONTOURGROUP = 1

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 36

CONTOURGROUP = 1

LEVELINITMODE = RESETTONICE

$!CONTOURLEVELS NEW

CONTOURGROUP = 1

RAWDATA

13

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

0.45

0.5

0.55

0.6

$!GLOBALCONTOUR 1

COLORMAPFILTER{COLORMAPDISTRIBUTION =

CONTINUOUS}

$!GLOBALCONTOUR 1

COLORMAPFILTER{CONTINUOUSCOLOR{CMAX =

0.59999999999999976}}

$!GLOBALCONTOUR 1  LEGEND{BOX{BOXTYPE =

NONE}}

$!GLOBALCONTOUR 1  LEGEND{SHOWHEADER =

NO}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{FORMATTING = FIXEDFLOAT}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{TIMEDATEFORMAT = ''}}

$!GLOBALCONTOUR 1  LABELS{NUMFORMAT{PRECISION

= 2}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{POSITIVEPREFIX = ''}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{POSITIVESUFFIX = ''}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{ZEROPREFIX = ''}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{ZEROSUFFIX = ''}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{NEGATIVEPREFIX = ''}}

$!GLOBALCONTOUR 1

LABELS{NUMFORMAT{NEGATIVESUFFIX = ''}}

$!GLOBALCONTOUR 1

LEGEND{NUMBERTEXTSHAPE{FONTFAMILY =

'Calibri'}}

$!GLOBALCONTOUR 1

LEGEND{NUMBERTEXTSHAPE{HEIGHT = 3}}

$!THREEDAXIS ZDETAIL{SHOWAXIS = YES}

$!THREEDAXIS AXISMODE = INDEPENDENT

$!THREEDAXIS ZDETAIL{TICKS{LENGTH = 3}}

$!THREEDAXIS ZDETAIL{TICKS{MINORLENGTH = 2}}

$!THREEDAXIS ZDETAIL{TICKLABEL{TEXTSHAPE{FONTFAMILY =

'Calibri'}}}

$!THREEDAXIS ZDETAIL{TICKLABEL{TEXTSHAPE{SIZEUNITS =

FRAME}}}

$!THREEDAXIS ZDETAIL{TICKLABEL{TEXTSHAPE{HEIGHT = 3}}}

$!THREEDAXIS ZDETAIL{TITLE{SHOWONAXISLINE = NO}}

$!THREEDAXIS EDGEAUTORESET = NO

$!THREEDAXIS ZDETAIL{AXISLINE{EDGE = 2}}

$!REDRAWALL

$!REDRAWALL

$!GLOBALRGB REDCHANNELVAR = 4

$!GLOBALRGB GREENCHANNELVAR = 24

$!GLOBALRGB BLUECHANNELVAR = 16

$!SETCONTOURVAR

VAR = 36

CONTOURGROUP = 1

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 4

CONTOURGROUP = 2

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 5

CONTOURGROUP = 3

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 6

CONTOURGROUP = 4

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 7

CONTOURGROUP = 5

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 8

CONTOURGROUP = 6

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 9

CONTOURGROUP = 7

LEVELINITMODE = RESETTONICE

$!SETCONTOURVAR

VAR = 10

CONTOURGROUP = 8

LEVELINITMODE = RESETTONICE

$!SLICELAYERS SHOW = YES

$!REDRAWALL

$!EXPORTSETUP IMAGEWIDTH = 3000

$!EXPORTSETUP EXPORTFNAME =

'F:/MTP/MTPcase1/cas.dat/figure/MTPcase1-|num|.png'

$!EXPORT

EXPORTREGION = CURRENTFRAME

$!EndLoop

$!RemoveVar |MFBD|

Case 2:

建立MTPcase1-5-01000-09800.mcr

a) 将【$!VarSet |NumLoop|

= 3

$!Loop |NumLoop|

$!Varset |num| = (|Loop|*200)】

改为【$!VarSet |NumLoop| = 45

$!Loop |NumLoop|

$!Varset |num| = ((|Loop|+4)*200)

】(会有45图输出,第一个图对应1000时间步长)

b)

将【"F:\MTP\MTPcase1\cas.dat\MTPcase1-4.cas"

"F:\MTP\MTPcase1\cas.dat\MTPcase1-4-00|num|.dat"

】改为【"F:\MTP\MTPcase1\cas.dat\MTPcase1-5.cas”

"F:\MTP\MTPcase1\cas.dat\MTPcase1-5-0|num|.dat" 】(num前一个零,引号内的语句必须严格等于文件名,不要出现多余空格)。

 类似资料: