


{"id":344269,"date":"2024-01-11T14:11:30","date_gmt":"2024-01-11T14:11:30","guid":{"rendered":"\/forum\/forums\/topic\/define_adjust-to-use-previous-iteration-value-to-calculate-the-next-one\/"},"modified":"2024-01-11T14:11:30","modified_gmt":"2024-01-11T14:11:30","slug":"define_adjust-to-use-previous-iteration-value-to-calculate-the-next-one","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/define_adjust-to-use-previous-iteration-value-to-calculate-the-next-one\/","title":{"rendered":"DEFINE_ADJUST to use previous iteration value to calculate the next one"},"content":{"rendered":"<p>Dear all,&nbsp;<\/p>\n<p>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.<\/p>\n<p>&nbsp;<\/p>\n<p>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.&nbsp;<br \/>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.&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I hope this makes sense,<\/p>\n<p>Kind regards,<br \/>Diogo<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-344269","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["267145","15180"],"_bbp_author_ip":["96.7.218.223"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["585"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["344269"],"_bbp_forum_id":["27792"],"_bbp_engagement":["15180","267145"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["346085"],"_bbp_last_active_id":["346085"],"_bbp_last_active_time":["2024-01-23 07:55:24"]},"test":"ag14wret-aau-dk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/344269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/344269\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=344269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}