|
[Sponsors] |
May 9, 2011, 09:44 |
Calculated values from earlier time steps
|
#1 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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 |
|
May 9, 2011, 10:40 |
|
#2 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 21 |
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).
|
|
May 9, 2011, 16:51 |
@ stumpy
|
#3 |
Senior Member
Ugly Kid Joe
Join Date: Aug 2010
Posts: 193
Rep Power: 16 |
Hey can you give some more details about the MMS ???? How can I use it to store values ???? Any tutorial has this MMS use ????
|
|
May 10, 2011, 10:07 |
|
#4 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 21 |
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).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A variable expressing time steps in UDF? | lcw | FLUENT | 6 | March 28, 2020 04:07 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |