Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2016年5月20日 GMT-4 09:02
Hello Nhan,
Have you considered using the approach mentioned in the thread
www.comsol.com/community/forums/general/thread/112182/ ?
Best regards,
Jeff
Hello Nhan,
Have you considered using the approach mentioned in the thread https://www.comsol.com/community/forums/general/thread/112182/ ?
Best regards,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2016年5月21日 GMT-4 14:53
Hi Jeff,
Thanks a lot for your help !
I read your thread you mentioned before and I find it very useful.
But I have not still known how to do something like this :
For example, I use Event Interface to set up an expression : "A-100 >0"
Then I declare a new expression in ODE like this : "t-t_event" (t_event is the moment as the expression above becomes TRUE )
If A-100 >10 at t=5.5 [s], for instance, the value of "t_event" is supposed to be 5.5
Can I do that in Comsol ?
Thanks a lot for your help !
Hi Jeff,
Thanks a lot for your help !
I read your thread you mentioned before and I find it very useful.
But I have not still known how to do something like this :
For example, I use Event Interface to set up an expression : "A-100 >0"
Then I declare a new expression in ODE like this : "t-t_event" (t_event is the moment as the expression above becomes TRUE )
If A-100 >10 at t=5.5 [s], for instance, the value of "t_event" is supposed to be 5.5
Can I do that in Comsol ?
Thanks a lot for your help !
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2016年5月23日 GMT-4 09:00
The idea is to use a global ODE to integrate a state parameter set initially to 1 and which changes value to 0 when the event occurs. From that point on, the variable for the ODE will be "stuck" at the time at which the event occurred.
Please contact COMSOL Support (support@comsol.com) if you need further help with this.
Best,
Jeff
The idea is to use a global ODE to integrate a state parameter set initially to 1 and which changes value to 0 when the event occurs. From that point on, the variable for the ODE will be "stuck" at the time at which the event occurred.
Please contact COMSOL Support (support@comsol.com) if you need further help with this.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2016年5月24日 GMT-4 05:44
Hi Jeff,
Thank you very much for your help !
Hi Jeff,
Thank you very much for your help !