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

Temperature at specific time steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2011, 10:29
Post Temperature at specific time steps
  #1
New Member
 
England
Join Date: Jul 2010
Posts: 2
Rep Power: 0
migit is on a distinguished road
Hi all,

I am trying to get a Expression done that gives me the difference of the last 3 or 4 Temperature peaks in a transient simulation, and I want to use this expression in the Interrupt Control.

I know at what times the peaks are, so I can get the time step numbers. I can also create a script to get those values, but only after the simulation run is finished.

What I need is a expression like:
0.01 [K] > MaxT@Timestep(81) - MaxT@Timestep(61)

I know "@Timestep(81)" doesn't exist, but I am looking for something that works like that.

Basically my simulation has periodic peak points. Those peak points are settling down at a certain temperature. When this temperature at the peaks has a change of less then 0.01 [K] I want to interrupt the simulation.

Hope somebody can help me there???

Regards,
Alex
migit is offline   Reply With Quote

Old   March 10, 2011, 13:29
Default
  #2
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 20
singer1812 is on a distinguished road
CFX Expressions cant remember prior values while in solution (you can get fancy and delay updating a variable so that you can get current timestep value - previous timestep value numbers but that is about the extent you can do in CEL). You will need user fortran.
singer1812 is offline   Reply With Quote

Old   March 11, 2011, 04:12
Default
  #3
New Member
 
England
Join Date: Jul 2010
Posts: 2
Rep Power: 0
migit is on a distinguished road
Thanks for the reply.

I haven't used Fortran yet, but looks like I need to get into it. Am I assuming right, that I can play with variables and manipulate the simulation process?
migit is offline   Reply With Quote

Old   March 11, 2011, 04:38
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can do pretty much anything you like with user fortran. But be warned, it is not straight forward.

If you want to implement a simple function as you describe you could do it using a separate file (maybe a cron job) which monitors the output of your monitor point and if triggered runs the cfx5stop command. I suspect this will be much easier to implement than the fortran option.
ghorrocks 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
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07:59
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
cfx does not give time steps in cfxpost.why.urgent prakash CFX 2 November 23, 2005 23:06
LES - Time Steps, Iterations Gernot FLUENT 0 August 26, 2005 13:13
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 12:32


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