Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Iterative solving utilizing local variables to avoid circular variables
Posted 20 feb 2017, 15:57 GMT-5 Studies & Solvers Version 4.4 0 Replies
Please login with a confirmed email address before reporting spam
I have a circular variable issue for local variables, and am interested in knowing if there is an iterative solver that can solve this issue.
Ex of problem:
(int1 is an interpolation table that uses T as the argument)
C = int1(T)
T = C * y
Can an iterative solver be used to first evaluate a solution using a constant value for a local variable, in place of a function that creates a circular dependency, then reevaluate the solution using a function that uses the previous solution for a local variable?
ex:
1st run: C = 1500
T = C * y
2nd run: C_new = int1(T)
T_new1 = C * y
3rd run: C_new = int1(T_new1)
T_new2 = C * y
with this process running until T_new_n = T_new_n-1 i.e. until the new solution and previous solution converge?
Can/how could this be implemented?
Thank you in advance.
Hello Sean Moser
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.