-
-
October 31, 2023 at 10:47 pm
pegah.mehrabian
SubscriberHello 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 pm
rfblumen
Ansys EmployeeHere'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 = .\$filenameLocation List = $bcnameVariable List = Velocity u, Velocity v, Velocity wEND> export!}-
November 7, 2023 at 10:29 pm
pegah.mehrabian
SubscriberThank you for your help.
-
-
- The topic ‘CCL programming in ANSYS CFX’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Issue to compile a UDF in ANSYS Fluent
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
4167
-
1487
-
1363
-
1194
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.