-
-
October 31, 2023 at 10:47 pmpegah.mehrabianSubscriber
Hello everyone, I did URANS simulations in ANSYS CFX, and I need to extract the data of "u" and "v" velocities for every 10-time step. I have the code for extracting data for every time step. Does anyone know how to do this simple task? Thanks in advance.
# Session file started: Â 2023/03/11 07:34:35
# CFX-20.2# To avoid unnecessary file pre-processing and modifications, include
# COMMAND FILE at the top of your session file.
# If it is not included, the file is assumed to be older and will be
# modified for backward compatibility.
COMMAND FILE:
 CFX Post Version = 20.2
END! @steplist = (5000...7000);
! foreach $curstep (@steplist) {
> load timestep=$curstepEXPORT:
 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]
 Additional Variable List =
 BC Profile Type = Inlet Velocity
 CSV Type = CSV
 Case Name = Case 1
 Export Connectivity = Off
 Export Coord Frame = Global
 Export File = //..../$curstep.csv
 Export Geometry = On
 Export Location Aliases =
 Export Node Numbers = Off
 Export Null Data = On
 Export Type = Generic
 Export Units System = Current
 Export Variable Type = Current
 External Export Data = None
 Include File Information = Off
 Include Header = On
 Location = Back
 Location List = /PLANE:Plane 1
 Null Token = null
 Overwrite = On
 Precision = 8
 Separator = ", "
 Spatial Variables = X,Y,Z
 Variable List = Velocity u, Velocity v
 Vector Brackets = ()
 Vector Display = Scalar
END
>export
! }# Session file stopped: Â 2023/03/11 07:50:30
Â
Â
-
November 6, 2023 at 4:22 pmrfblumenAnsys Employee
Here's an example CFD-Post session file for exporting every 10th transient file:
!$fileout="My_Export";!$bcname="out";!$numsteps = 50;!$interval = 10;ÂCOMMAND FILE: CFX Post Version = 19.3ENDÂ#!for ($j=0; $j <= $numsteps; $j++) {!for ($j=0; $j <= $numsteps; $j += $interval) {DATA READER: Current Timestep = $jEND> loadÂ! $filename = "$fileout" .$j.".csv";EXPORT: Export File = .\$filename Location List = $bcname Variable List = Velocity u, Velocity v, Velocity wEND> export!}-
November 7, 2023 at 10:29 pmpegah.mehrabianSubscriber
Thank you for your help.Â
-
-
- The topic ‘CCL programming in ANSYS CFX’ is closed to new replies.
- Non-Intersected faces found for matching interface periodic-walls
- Script error Code: 800a000d
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1301
-
591
-
544
-
524
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.