-
-
January 11, 2024 at 2:11 pm
Diogo Martinho
SubscriberDear all,Â
I have a question and if any of you already had done something like this that could provide as an example that would be perfect.Â
I am trying to do some relaxation of my simulation but instead of relaxing the updated value, I would like to relax the calculated value from the matrix. I know this can be done if I use the previous iteration value.Â
So, I am doing this for my source terms because until now the source term was calculated directly inside the DEFINE_SOURCE macro, but what I would like to do would be something like storing the value in a UDMI and then call that value inside the DEFINE_SOURCE.ÂÂ
I hope this makes sense,
Kind regards,
DiogoÂ
-
January 23, 2024 at 7:55 am
SRP
Ansys EmployeeHi,
you can use User-Defined Memory (UDM) to store values from the previous iteration and use them in subsequent iterations.
For examples related to UDM, how it is applied you can check customization manual: 3.2. Data Access Macros (ansys.com)
Hope this helps you.
-
- The topic ‘DEFINE_ADJUST to use previous iteration value to calculate the next one’ is closed to new replies.
-
6745
-
1906
-
1484
-
1324
-
1047
© 2026 Copyright ANSYS, Inc. All rights reserved.