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

combine sampled surfaces

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 1, 2013, 10:50
Default combine sampled surfaces
  #1
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
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, 10:44
Default
  #2
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
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
How to get rid of internal walls (surfaces)? bmikuz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 17 December 5, 2013 16: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


All times are GMT -4. The time now is 23:12.