-
-
June 23, 2020 at 2:55 pm
MHMD90
SubscriberHi,
I am using ANSYS FLUENT 20 to model my heat transfer. In my model, I have introduced the heat transfer equation as a User Defined Scalars (UDS).
I am trying to write a udf for adaptive time-stepping. I can't use fluent in-built adaptive method as it doesn't work with UDS enabled. To do that, I need to get the residual value after each time step into the DEFINE_DELTAT udf. Does anyone have any idea how to do that?
Regards,
MHMD
-
June 24, 2020 at 7:38 am
DrAmine
Ansys EmployeeAdaptive Time Stepping is available even if UDS is used. Can you show your panel?
-
June 25, 2020 at 8:57 am
MHMD90
SubscriberYes, it is available and I can define every options, but not working. It keeps using the initial time step defined and the time step does not get updated. I read Fluent documentation. In earlier versions, it is stated that adaptive time step cannot be used when using UDS. However, this statement is omitted from documentation of recent versions. But still it seems not working.
That's why I was looking for a way to define the adaptive time stepping myself via UDF. Any ideas how to do that? or templates?
Kind Regards,
MHMD
-
June 25, 2020 at 11:45 am
DrAmine
Ansys EmployeeShow your panel settings, and plot of time step size vs. time step. Also provide the version you are using.
-
June 25, 2020 at 3:36 pm
-
June 25, 2020 at 7:35 pm
DrAmine
Ansys EmployeeDouble check what happens if you disable UDS. Might the time step change is not large and that is why not changing. Check what I asked for and report. -
June 26, 2020 at 9:25 am
MHMD90
SubscriberI even checked with 9 decimals and there was no change in time step. I think I resolved the problem. Turns out when you're solving a UDS equation alone, adaptive time step won't get updated! but, as I activated another model (like energy with constant temperature having no variations), it started working well.
Thanks,
MHMD
-
June 26, 2020 at 11:33 am
DrAmine
Ansys EmployeeSo you have been solving the UDS alone all the time? Okay that is another thing but it should be mentioned in the documentation. I will nee to check that and probably update later
-
June 27, 2020 at 10:39 am
MHMD90
SubscriberYes, Initially I was just trying to solve heat transfer by defining a UDS. But, later I had to add a dummy model alongside UDS to get adaptive time-stepping to update. For now, I marked this post as solved to help if others have the same issue. Your further follow-up on this matter is highly appreciated.
Kind Regards,
MHMD
-
- 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.
- 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
-
3930
-
2649
-
1865
-
1272
-
610
© 2023 Copyright ANSYS, Inc. All rights reserved.