|
[Sponsors] |
December 1, 2015, 02:02 |
How to write Expression for Transient study
|
#1 |
New Member
Join Date: Oct 2015
Posts: 17
Rep Power: 11 |
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 |
|
December 1, 2015, 04:32 |
|
#2 |
Member
Thomas
Join Date: Dec 2014
Location: Poland
Posts: 49
Rep Power: 12 |
If your simulation will be last 1 sec, the formula is:
if(t<=10e-6 [s], 0 [C], 120 [C]) |
|
December 1, 2015, 05:26 |
|
#3 |
New Member
Join Date: Oct 2015
Posts: 17
Rep Power: 11 |
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 |
|
December 1, 2015, 05:46 |
|
#4 |
Member
Thomas
Join Date: Dec 2014
Location: Poland
Posts: 49
Rep Power: 12 |
You would like drop temperature to 0 C after 1 sec?
|
|
December 1, 2015, 07:48 |
|
#5 |
New Member
Join Date: Oct 2015
Posts: 17
Rep Power: 11 |
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 |
|
December 1, 2015, 08:51 |
|
#6 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
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. |
|
December 1, 2015, 08:58 |
|
#7 |
New Member
Join Date: Oct 2015
Posts: 17
Rep Power: 11 |
Thanks for the reply
Can you recommend something i want learn this CEL, so that i can write more complex equations. thankyou so much |
|
December 1, 2015, 09:22 |
|
#8 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
The manual is a good start... There are some CEL examples in the tutorials too.
|
|
December 1, 2015, 10:21 |
|
#9 |
New Member
Join Date: Oct 2015
Posts: 17
Rep Power: 11 |
Thankyou
I'll see what i can find about the manual in the internet and get back to you.. |
|
December 2, 2015, 15:14 |
|
#10 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
You can't directly fix the temperature of a domain in CFX. What you can do instead is use a big enough energy sink/source so that the temperature in each control volume remains really close to your intended temperature. Something like:
where is the big enough constant [W/(m^3 K)] and the temperature you want. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to write an expression in CFD-POST? | siamak1438 | CFX | 2 | August 28, 2015 04:00 |
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! | zfaraday | OpenFOAM Post-Processing | 0 | February 5, 2015 17:47 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |
expression for rotatin a disk | hmasenger | CFX | 3 | April 8, 2013 19:24 |
write an expression | Cecco | CFX | 3 | June 19, 2012 17:59 |