How to write Expression for Transient study
Hi guys,
I want to know how to write expression for a body whose temperature will vary from 0 C at 0 sec to 120 C at 10e-6 sec and remains constant at 120 C till 1 sec. Best Regards:) Thankyou In Advance |
If your simulation will be last 1 sec, the formula is:
if(t<=10e-6 [s], 0 [C], 120 [C]) |
Thanks for the reply
I make this as an expression and put this expression in the body, will the temperature remain constant at 120C after 10e-6 sec up to say 1,2..10sec. Thankyou In Advance |
You would like drop temperature to 0 C after 1 sec?
|
thanks for your reply
at 0 sec it should be 0 C then at 10e-6 it should be 120 C and after that the temperature should remain constant at 120 C till 10 sec i tried to put the above equation in an expression (t<=10e-6 [s], 0 [C], 120 [C]). It is showing error. Thankyou in Advance |
CEL is pretty powerful and you should spend some time learning the syntax. Here's probably what you want:
if(t<10e-6[s],mod(t,10e-6[s])/10e-6[s]*120[C],120[C]) (It will remain at 120 [C] after 10e-5 seconds) But be aware that the mod function is a bit buggy when using decimal numbers. |
Thanks for the reply
Can you recommend something i want learn this CEL, so that i can write more complex equations. thankyou so much |
The manual is a good start... There are some CEL examples in the tutorials too.
|
Thankyou
I'll see what i can find about the manual in the internet and get back to you.. |
All times are GMT -4. The time now is 13:59. |