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.

circular variable dependency detected

Please login with a confirmed email address before reporting spam

I always get this error when I try to run the simulation.

Circular variable dependency detected.
- Variable: mod1.rhos
- Geometry: 1
- Domain: 1
The equations that I have I have defined are

Qom= (Ca*exp(-Ea[J/mol]/(R_const[J/(mol*K)]*T[K]))*log(p[Pa]/Peq[Pa])*(rhoss-rhos))

rhos= (1/(1-eata))*intop1(Qom*t)+8000

Can anybody tell me how to solve this?

Thanks in advance

1 Reply Last Post Dec 15, 2011, 2:28 p.m. EST
COMSOL Moderator

Hello Muhammad Assad

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.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 15, 2011, 2:28 p.m. EST
I have the same problem.

y=f(x(i-1));

x=f(y(i));

where i is time step number

when two variables are dependent on each other and have to iterate sequentially in each time step to update, it came up with the ''circular variable dependency detected' problem. Even though I used a "time discrete solver", and turn on the "Iterative" node in the solver. It is easy to realize in matlab or other language package, but how to do it in comsol.

Hope anyone can answer that.

Thank you

Yao
I have the same problem. y=f(x(i-1)); x=f(y(i)); where i is time step number when two variables are dependent on each other and have to iterate sequentially in each time step to update, it came up with the ''circular variable dependency detected' problem. Even though I used a "time discrete solver", and turn on the "Iterative" node in the solver. It is easy to realize in matlab or other language package, but how to do it in comsol. Hope anyone can answer that. Thank you Yao

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.