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

Calculated values from earlier time steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2011, 09:44
Default Calculated values from earlier time steps
  #1
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17
Roland R is on a distinguished road
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
Roland R is offline   Reply With Quote

Old   May 9, 2011, 10:40
Default
  #2
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
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).
stumpy is offline   Reply With Quote

Old   May 9, 2011, 16:51
Default @ stumpy
  #3
Senior Member
 
Ugly Kid Joe
Join Date: Aug 2010
Posts: 193
Rep Power: 16
vmlxb6 is on a distinguished road
Hey can you give some more details about the MMS ???? How can I use it to store values ???? Any tutorial has this MMS use ????
vmlxb6 is offline   Reply With Quote

Old   May 10, 2011, 10:07
Default
  #4
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
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).
stumpy 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
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


All times are GMT -4. The time now is 18:50.