CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Calculated values from earlier time steps (https://www.cfd-online.com/Forums/cfx/88119-calculated-values-earlier-time-steps.html)

Roland R May 9, 2011 08:44

Calculated values from earlier time steps
 
Dear CFX Users,

I have a simulation where the valve dynamic (valve chattering) is investigated. During the run of solver the valve velocity and the valve displacement are monitored in the full time range but in the CFX Pre I can use only the next expressions: valve displacement new/old and valve velocity new/old. I would like to define a contact model in end positiosn of valve, therefore I should use these values in the earlier time steps too (in t-1, t-2.....t-n timesteps).
How can I refer to these values with expression in earler time steps?

Thanks in advance;
Roland

stumpy May 9, 2011 09:40

You cannot access earlier values via expressions. You would need to use User Fortran routines and store the values you want in the MMS (Memory Management System).

vmlxb6 May 9, 2011 15:51

@ stumpy
 
Hey can you give some more details about the MMS ???? How can I use it to store values ???? Any tutorial has this MMS use ????

stumpy May 10, 2011 09:07

The routines needed to read and write from the MMS are all documented in the CFX documentation (MAKDAT, POKER, PEEKR, etc). I don't know of any tutorials though. It would be nice if CFX could add one that shows how to write data at one timestep then read it at a different timestep. Basically you need a Junction Box routine called at the start of the run to create and initialize a data area. Then you need another Junction Box called at the end of each timestep or coefficient loop to write data. Finally you need a User CEL Routine to read the data and do whatever is necessary (this could also be a Junction Box Routine, but usually a User CEL Routine is easier).


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