CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Naming export files in Workbench scripts (https://www.cfd-online.com/Forums/cfx/147264-naming-export-files-workbench-scripts.html)

evan247 January 16, 2015 09:15

Naming export files in Workbench scripts
 
Hi all,

I've been trying to use the scripting file of Workbench 14.0 to perform multiple CFX simulations by varying some geometric parameters. What I've achieved so far is to be able to generate multiple standalone systems in WB. I then would like to further save my time by automatically export some data in CFX-post, where I got this question:

how could I name my export files, according to their geometric parameter?

Currently my .wbjn file looks like below.

results1.SendCommand(Command="""EXPORT:
ANSYS Export Data = Element Heat Flux
ANSYS File Format = ANSYS
ANSYS Reference Temperature = 0.0 [K]
ANSYS Specify Reference Temperature = Off
ANSYS Supplemental HTC = 0.0 [W m^-2 K^-1]
BC Profile Type = Inlet Velocity
Export Connectivity = Off
Export Coord Frame = Global
Export File = C:/Users/.../user_files/Output.csv
Export Geometry = On
Export Node Numbers = Off
Export Null Data = On
Export Type = Generic
Export Units System = Current
Export Variable Type = Current
Include File Information = Off
Include Header = On
Location List = /LINE:Line 1
Null Token = null
Overwrite = On
Precision = 8
Separator = \", \"
Spatial Variables = X,Y,Z
Variable List = Pressure, Temperature
Vector Brackets = ()
Vector Display = Scalar
END
>export""")

How should I rewrite the line in red to reflect that this is the file for angle=x, say?

Thanks!

Kapi January 22, 2015 20:23

I dont know but may be this?

Export File = C:/Users/.../user_files/Output_Angle_X.csv


All times are GMT -4. The time now is 10:55.