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.

time dependent solver related

Please login with a confirmed email address before reporting spam

I am using time-dependent solver for electrolysis process. Now I want to simulate it for 300 Secs. But in following manner ( i have written in syntax as we use in time stepping );

first : range(0, 0.0001, 0.001)
then in continuation second range(0.001, 0.001, 0.01),
then in continuation third range (0.01, 0.1, 10),
then in continuation forth range(10, 10, 300)

please advise me

2 Replies Last Post 23 apr 2014, 05:32 GMT-4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14 lug 2012, 12:08 GMT-4
Hi

what about trying something like:

{ range(0, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) }

this should work, you must ensure the set is strictly increasing or decreasing


--
Good luck
Ivar
Hi what about trying something like: { range(0, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) } this should work, you must ensure the set is strictly increasing or decreasing -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23 apr 2014, 05:32 GMT-4
Dear Ivar,

I have a very similar, related question.

I also would like to have this explicit time step range. And in addition, I would like to repeat the sequence for a given amount of times, say n=3 times.
{0}
0*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) }
1*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) }
2*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) }

something like the above. But then that also Comsol understands it.
Can you advise me on how to program this?

Many thanks in advance
Erica
Dear Ivar, I have a very similar, related question. I also would like to have this explicit time step range. And in addition, I would like to repeat the sequence for a given amount of times, say n=3 times. {0} 0*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) } 1*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) } 2*300 + { range(0.0001, 0.0001, 0.001) range(0.002, 0.001, 0.01) range(0.02, 0.1, 10) range(20, 10, 300) } something like the above. But then that also Comsol understands it. Can you advise me on how to program this? Many thanks in advance Erica

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.