CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

combine sampled surfaces

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2013, 11:50
Default combine sampled surfaces
  #1
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
Eloise is on a distinguished road
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
Eloise is offline   Reply With Quote

Old   October 3, 2013, 11:44
Default
  #2
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
Eloise is on a distinguished road
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
Eloise is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 07:55
how to get forces on Iso-Clip Surfaces and How to get forces in cylindrical coordinat CFD XUE FLUENT 3 March 18, 2015 04:28
[Commercial meshers] How to get rid of internal walls (surfaces)? bmikuz OpenFOAM Meshing & Mesh Conversion 17 December 5, 2013 16:24
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 s.mishra ANSYS 0 March 31, 2012 05:12
Faceted surfaces in ICEM Chriss Main CFD Forum 1 May 6, 2008 16:18


All times are GMT -4. The time now is 04:50.