Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

DEFINE_ADJUST to use previous iteration value to calculate the next one

    • Diogo Martinho
      Subscriber

      Dear 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

       

    • SRP
      Ansys Employee

      Hi,

      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.

Viewing 1 reply thread
  • The topic ‘DEFINE_ADJUST to use previous iteration value to calculate the next one’ is closed to new replies.
[bingo_chatbox]