|
[Sponsors] |
October 1, 2013, 10:50 |
combine sampled surfaces
|
#1 |
Senior Member
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13 |
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 |
|
October 3, 2013, 10:44 |
|
#2 |
Senior Member
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 06:55 |
how to get forces on Iso-Clip Surfaces and How to get forces in cylindrical coordinat | CFD XUE | FLUENT | 3 | March 18, 2015 03:28 |
[Commercial meshers] How to get rid of internal walls (surfaces)? | bmikuz | OpenFOAM Meshing & Mesh Conversion | 17 | December 5, 2013 15:24 |
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 | s.mishra | ANSYS | 0 | March 31, 2012 04:12 |
Faceted surfaces in ICEM | Chriss | Main CFD Forum | 1 | May 6, 2008 15:18 |