January 24, 2023 at 4:29 pmc.brunoSubscriber
I would like to compute the residence time of blood in my CFD simulations (steady state).
I know I can use the DPM model but I would like to have a spatial distribution of the residence time to do something like this in post-processing:
I have read that I can use these macros: P_TIME0 and P_TIME, so I wrote a udf but when running my simulation at the first iteration I get abnormal exit which I think is due to the udf.
This is my udf:
I am not sure if I can use P_TIME0 and P_TIME in a define_execute_at_end function. I have tried to use define_dpm_source but I couldn't understand how to return the values or save them in S. Also, I do not know if the pointer p to the particle is correctly used in my udf.
Does anybody know how to solve this?
January 25, 2023 at 7:57 amSRPSubscriber
For more details on define_dpm_source please refer to fluent customization manual: 2.5. Discrete Phase Model (DPM) DEFINE Macros (ansys.com)
If you are not able to access the link, please refer to this forum discussion: https://forum.ansys.com/forums/topic/using-help-with-links/#latest
January 25, 2023 at 8:47 amDrAmineAnsys Employee
I think you need to use the approach of "Mean Age of Air" with UDS if you want a spatial distribution.
Your UDF is wrong as you are trying to use Particle related variables in Eulerian Sense.
- You must be logged in to reply to this topic.
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.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2023 Copyright ANSYS, Inc. All rights reserved.