CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

How to write Expression for Transient study

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By tomson199
  • 1 Post By Lance
  • 1 Post By brunoc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2015, 01:02
Post How to write Expression for Transient study
  #1
AK5
New Member
 
Join Date: Oct 2015
Posts: 17
Rep Power: 10
AK5 is on a distinguished road
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
AK5 is offline   Reply With Quote

Old   December 1, 2015, 03:32
Default
  #2
Member
 
Thomas
Join Date: Dec 2014
Location: Poland
Posts: 49
Rep Power: 11
tomson199 is on a distinguished road
If your simulation will be last 1 sec, the formula is:

if(t<=10e-6 [s], 0 [C], 120 [C])
AK5 likes this.
tomson199 is offline   Reply With Quote

Old   December 1, 2015, 04:26
Default
  #3
AK5
New Member
 
Join Date: Oct 2015
Posts: 17
Rep Power: 10
AK5 is on a distinguished road
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
AK5 is offline   Reply With Quote

Old   December 1, 2015, 04:46
Default
  #4
Member
 
Thomas
Join Date: Dec 2014
Location: Poland
Posts: 49
Rep Power: 11
tomson199 is on a distinguished road
You would like drop temperature to 0 C after 1 sec?
tomson199 is offline   Reply With Quote

Old   December 1, 2015, 06:48
Default
  #5
AK5
New Member
 
Join Date: Oct 2015
Posts: 17
Rep Power: 10
AK5 is on a distinguished road
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
AK5 is offline   Reply With Quote

Old   December 1, 2015, 07:51
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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.
AK5 likes this.
Lance is offline   Reply With Quote

Old   December 1, 2015, 07:58
Default
  #7
AK5
New Member
 
Join Date: Oct 2015
Posts: 17
Rep Power: 10
AK5 is on a distinguished road
Thanks for the reply

Can you recommend something i want learn this CEL, so that i can write more complex equations.

thankyou so much
AK5 is offline   Reply With Quote

Old   December 1, 2015, 08:22
Default
  #8
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
The manual is a good start... There are some CEL examples in the tutorials too.
Lance is offline   Reply With Quote

Old   December 1, 2015, 09:21
Default
  #9
AK5
New Member
 
Join Date: Oct 2015
Posts: 17
Rep Power: 10
AK5 is on a distinguished road
Thankyou
I'll see what i can find about the manual in the internet and get back to you..
AK5 is offline   Reply With Quote

Old   December 2, 2015, 14:14
Default
  #10
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21
brunoc is on a distinguished road
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:

C (T_{ref} - T)

where C is the big enough constant [W/(m^3 K)] and T_{ref} the temperature you want.
AK5 likes this.
brunoc is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write an expression in CFD-POST? siamak1438 CFX 2 August 28, 2015 03:00
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! zfaraday OpenFOAM Post-Processing 0 February 5, 2015 16:47
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
expression for rotatin a disk hmasenger CFX 3 April 8, 2013 18:24
write an expression Cecco CFX 3 June 19, 2012 16:59


All times are GMT -4. The time now is 23:55.