March 23, 2022 at 2:20 pmfatih_gSubscriber
I try to run a transient particle simulation and sample at the outlet several times with a journal file as given below in Fluent. My final aim is to have several sample files (.dpm) at the end. To this end, I used the do-loop but I couldn't make it work. However, without using the do function, the code works fine for one simulation run.
I have two questions:
1) How can I make this code work? When I run this code, first I get the warning "Warning: An error or interrupt occurred while reading the journal file. Some commands may not have been completed." on Fluent GUI and then "Error: eof inside list, Error Object: ()" in the console.
2) I want to change the dpm sample file which is generated automatically by Fluent, when I run the "/report/dpm-sample" command in the last row. How can I change the file name for each trial in the loop below? For example: outlet_1.dpm, outlet_2.dpm etc.,.. I looked through the TUI command list, but the commands to write a file are related with data case files.
Thank you in advance,
(define numbOfIterations 2); Define number of max. iterations per time step
(define delta_t 0.06); Define time step size [s]
(define no_t_s 2); Number of time steps
(do ((x1 1 (+ x1 1))) ((> x1 3)) ; define count - variable , start value and increment, define stop condition
/solve/initialize/initialize-flow y y ; do the Initialization, y y to discard the old data and clear history
/report/dpm-sample injection-0 injection-1 () outlet () () n n ; start sampling
/solve/set/time-step delta_t ; set the time step
/solve/dual-time-iterate no_t_s numbOfIterations; Perform unsteady iterations for a specified number of time steps
/report/dpm-sample );March 24, 2022 at 4:07 pmRobAnsys EmployeeYou can't, the DPM.out files are labelled in the code to suit the boundary. The usual approach is to start the .out files and then manipulate the data outside of Fluent if the histograms etc aren't what you're after.
Viewing 1 reply thread
Ansys Innovation Space
- 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.
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.Trending discussions
- 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
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.