Runtime sampling of line
Hello openFoam community,
I have a problem that I am trying to solve with sampling of field variable over a line. What I would like to do is to add a piece of script into my controlDict so that I can obtain the sampled fields during runtime at the same interval as the timestep. I can easily use sampleDict and the command sample to do this after the simulation has finished but I would like to achieve a much higher sampling frequency than just the write output. At the bottom of my controlDict I have written: Code:
functions { Does anyone know if this is even possible what I am trying to accomplish? If so, do I appear to be missing something? Steven |
Hello all,
Just for reference I would like to post the solution I have found. Actually, it was someone elses solution I adapted to my own case (found here http://www.cfd-online.com/Forums/ope...ampledset.html), but it eluded me for a good few days. To sample a field along a user-specified line with an output frequency equal to the time step I added this to the bottom of my controlDict: Code:
functions { Cheers, Steven |
All times are GMT -4. The time now is 19:06. |