|November 9, 2012, 00:14||
visualising time derivatives
Join Date: Mar 2010
Posts: 25Rep Power: 6
I hope that someone has a simple suggestions for what I'm trying to do. I basically want to plot the time derivative of for instance the x velocity in an unsteady simulation. I then want to export the x acceleration contour every N time steps.
Solution 1) Somehow create a new variable that calculates the x acceleration at every time step and then use the automatic export feature. I don't think this can be done using the Custom Field Function Calculator. Any ideas?
Solution 2) Write a UDF that calculates the x acceleration and writes it to an output file. I've found out about the C_U(c,t) and C_U_M1(c,t) functions which give me the x velocity from the current and previous time step, so it's easy to get the acceleration. But I'm having trouble with using thread_loop_c and begin_c_loop_all macros to access all cells/nodes on the surface of interested. Aside from that I wouldn't know how to save it in a format which allows the data to be easily visualised in Tecplot again.
Thanks for any thoughts/comments.
|acceleration, contour, post procesing, time derivative, udf exporting variable|
|Thread||Thread Starter||Forum||Replies||Last Post|
|InterFoam negative alpha||karasa03||OpenFOAM||7||December 12, 2013 04:41|
|pisoFoam with k-epsilon turb blows up - Some questions||Heroic||OpenFOAM Running, Solving & CFD||26||December 17, 2012 04:34|
|Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3||bookie56||OpenFOAM Installation||8||August 13, 2011 05:03|
|directMapped problem||panda60||OpenFOAM Bugs||4||July 8, 2010 11:23|
|Computational time||sunnysun||OpenFOAM Running, Solving & CFD||5||March 16, 2009 05:32|