Sampling Temperature and omega (rate k-dissipation)
I have a strange problem. In my sampleDict file it's all write correctly, and I have to sample U,T,R,omega,nut,k in 7 station (S1,S2,S3.....S7).
If I give command "sample" openFoam doesn't create 6 files for each station, but:
Why T-omega and k-nut are writed in the same file??
I should run sample 4 times.. one for "T, U, R" ; one for "omega" ; one for "k" ; and one for "nut" .
Is there a solution? it's very boring!
I'm using OF 2.2.x on a remote cluster.
This is my sampleDict
OK, after testing with the tutorial "heatTransfer/buoyantSimpleFoam/buoyantCavity", I've finally remembered about this. The problem is that the sampling source code will group data by type:
If you want separate files for all, then perhaps it's easiest to configure function objects that will sample while the simulation is running, where you can then re-use the settings from a previous function object... if I could only find such an example here on the forum...
OK, on this post: http://www.cfd-online.com/Forums/ope...tml#post433597 post #13 - see how "$Average_left" is used in "totalPressure_left"? Basically what it does is load the same settings from "$Average_left" and then overrides only the settings you want to be different. But keep in mind that this is for sampling while the simulation is running. Although, you could rely on this: http://openfoamwiki.net/index.php/Ex...unctionObjects - more specifically, on this: https://github.com/wyldckat/execFunctionObjects
Thanks for the perfect explanation.. I still have a lot of things to learn!
However... I already setted up a function in controlDict that write every 30min the result. The problem is that I have made a executable script that clean sample's file, of each fields ,from non-numerical terms and that directly plot with octave.. I earn a lot of time in this way. So it's more proficius to do sample 3 times than write another script from zero :)
|All times are GMT -4. The time now is 01:16.|