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

How to access a parameter from a previous timestep

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 13, 2010, 04:31
Default How to access a parameter from a previous timestep
  #1
New Member
 
Join Date: Jun 2010
Posts: 6
Rep Power: 7
Ridley is on a distinguished road
Hi, I have a problem with a CEL-expression, where the density from the previous timestep (transient simulation) is needed for the calculation. Is it possible to access the density from this previous timestep just by using CEL-Code?

Thanks a lot!
Ridley is offline   Reply With Quote

Old   June 13, 2010, 10:29
Default
  #2
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
hi, you have to use density(current time step -1)@somewhere. search for the syntax code of the current time step (for example, current iteration number is "citern"). i don't know surely, but it should work.
Attesz is offline   Reply With Quote

Old   June 14, 2010, 18:40
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,669
Rep Power: 84
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Sorry, but the answer is no. It is not possible. This is the biggest failing in CFX CEL. You may be able to use an additional variable and make use of the fact the CEL is updated at the start of a time step and additional variables at the end - but I have not confirmed this works.
ghorrocks is offline   Reply With Quote

Old   June 15, 2010, 03:06
Default
  #4
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
I used it by adjusting the RPM's, outlet pressures etc. But as I see, for the flow parameters it is not suitable. It's really a big fail...
Attesz is offline   Reply With Quote

Old   June 15, 2010, 06:55
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,669
Rep Power: 84
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
What is an RPM?
ghorrocks is offline   Reply With Quote

Old   June 15, 2010, 06:56
Default
  #6
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
Sorry, Revolutions Per Minute
Attesz is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving from a previous timestep juho OpenFOAM Running, Solving & CFD 3 June 2, 2010 15:50
Access parameter value from within DEFINE_PROFILE ??? TDi Fluent UDF and Scheme Programming 3 May 17, 2010 15:10
OpenFOAM - Quick way to delete previous calculation & HowTo get access to variables kriz OpenFOAM 2 April 19, 2010 13:02
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
Accessing Variables from Previous Timestep Vinayak Barve FLUENT 1 March 10, 2004 08:40


All times are GMT -4. The time now is 22:59.