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.

Help : Iterative variable : n1 = n1 + 125

Please login with a confirmed email address before reporting spam

How i can use an iterative variable for example n1 = n1 +125 in comsol

thank's

5 Replies Last Post Jun 10, 2014, 2:34 a.m. EDT
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 17, 2014, 1:26 p.m. EDT

What would the iteration index be?

Cheers
Edgar

--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
What would the iteration index be? Cheers Edgar -- Edgar J. Kaiser emPhys Physical Technology http://www.emphys.com

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 7, 2014, 9:05 a.m. EDT
No body can answer me !!!!

How i can put : var = var + 125 in comsol

comsol give me : Circular variable dependency detected

Please ho can answer me and give me solution for : var = var + 125


Mr Ivar Kjelberg were are you ? give me solution !!
No body can answer me !!!! How i can put : var = var + 125 in comsol comsol give me : Circular variable dependency detected Please ho can answer me and give me solution for : var = var + 125 Mr Ivar Kjelberg were are you ? give me solution !!

Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 7, 2014, 10:43 a.m. EDT

Well, I try once more despite you didn't tell me with regard to what you want to iterate. If it is about non-linear solver steps you could try:

var = 125*niterCMP

I don't know if it works, just try it. If your iteration index is something else you can try to find it in the documentation.

var = var + 125 is not a valid equation. It reduces to 0 = 125 which is obviously wrong.

Cheers
Edgar

--
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Well, I try once more despite you didn't tell me with regard to what you want to iterate. If it is about non-linear solver steps you could try: var = 125*niterCMP I don't know if it works, just try it. If your iteration index is something else you can try to find it in the documentation. var = var + 125 is not a valid equation. It reduces to 0 = 125 which is obviously wrong. Cheers Edgar -- Edgar J. Kaiser emPhys Physical Technology http://www.emphys.com

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 8, 2014, 12:08 p.m. EDT
Thank you Edgar J. Kaiser for response

The equation : var = var + 125 : The new value in the present step of "var" = the previous value in the previous step of "var" + 125 .

Thank you Edgar J. Kaiser for response The equation : var = var + 125 : The new value in the present step of "var" = the previous value in the previous step of "var" + 125 .

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 10, 2014, 2:34 a.m. EDT
Where 'step' means time step I suppose? It would be a bit strange in my opinion to formulate your model like that, because the rate of change of n1 with time would depend on your time step. Rather I would include something like d n1/d t = 125.
Where 'step' means time step I suppose? It would be a bit strange in my opinion to formulate your model like that, because the rate of change of n1 with time would depend on your time step. Rather I would include something like d n1/d t = 125.

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.