|
[Sponsors] |
How to access a parameter from a previous timestep |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 13, 2010, 05:31 |
How to access a parameter from a previous timestep
|
#1 |
New Member
Join Date: Jun 2010
Posts: 6
Rep Power: 16 |
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! |
|
June 13, 2010, 11:29 |
|
#2 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
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.
|
|
June 14, 2010, 19:40 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
June 15, 2010, 04:06 |
|
#4 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
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...
|
|
June 15, 2010, 07:55 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
What is an RPM?
|
|
June 15, 2010, 07:56 |
|
#6 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Sorry, Revolutions Per Minute
|
|
|
|
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 |