-
-
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.
-
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- Suppress Fluent to open with GUI while performing in journal file
- error: Received signal SIGSEGV
-
8700
-
4658
-
3151
-
1672
-
1446
© 2023 Copyright ANSYS, Inc. All rights reserved.