combine sampled surfaces
Hello,
I've used the sample tool to extract the U and k field from my simulation in a surface vtk file. For post processing, I'd like to combine those two fields into a single surface vtk file (in order to compute the turbulence intensity). Anyone has an idea how generate a single surface vtk file which contain both the U and k fields? Regards, Eloïse |
Hi again,
The reason why U and K are not in the same file is because one is a vector while the other is a scalar. I found a way to calculate Ux and u' fields (which are both scalar) using the commands foamCalc components U uprime So now in my sampleDict, I extract the fields Ux and uprime on a vtk surface. As they are both scalar, they should print into the same file, but they keep coming as two separate files Ux_surf.vtk and uprime_surf.vtk . Any idea why they don't come in a single file Ux_uprime_surf.vtk ? Otherwise, I'm trying as well to define a turbulenceIntensity command, starting from the uprime.C utility file. However, I have error due to the division by 0 in some points of the field (as TI=uprime/Ux). Anyone knows how to not write fields in the cells where a division by zero occurs? Thanks, Eloïse |
All times are GMT -4. The time now is 14:42. |