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

How to access a parameter from a previous timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2010, 05:31
Default How to access a parameter from a previous timestep
  #1
New Member
 
Join Date: Jun 2010
Posts: 6
Rep Power: 16
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, 11:29
Default
  #2
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17
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, 19:40
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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, 04:06
Default
  #4
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17
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, 07:55
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What is an RPM?
ghorrocks is offline   Reply With Quote

Old   June 15, 2010, 07:56
Default
  #6
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17
Attesz is an unknown quantity at this point
Sorry, Revolutions Per Minute
Attesz 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
OpenFOAM - Quick way to delete previous calculation & HowTo get access to variables kriz OpenFOAM 12 March 6, 2023 04:20
Resolving from a previous timestep juho OpenFOAM Running, Solving & CFD 3 June 2, 2010 16:50
Access parameter value from within DEFINE_PROFILE ??? TDi Fluent UDF and Scheme Programming 3 May 17, 2010 16:10
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 18:42.