CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Fields calculation on a surface section

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

LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2016, 08:16
Default Fields calculation on a surface section
Federica Biano
Join Date: Feb 2016
Location: Genova, Italy
Posts: 39
Rep Power: 9
federicabi is on a distinguished road
Hello everyone!

I'm new in this forum and I'm new to openFOAM. I'm trying to simulate a ship entering the water with a 3D interDyMFoam model and I need to calculate the pressure, velocity and alpha fields on specific sections of the ship so that I can compare them with 2D calculations.

My question is how to create patches on the hull surface, like slices of it, without changing the STL file, to put into surface function in my controldict.

Thanks in advance!!
federicabi is offline   Reply With Quote

Old   March 12, 2016, 14:43
Senior Member
Artur's Avatar
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough

You could play with the topoSet utility. First create a set from the hull faces with something like patchToFace, then subset it to faces within a given box (corresponding to the extent of the slice you want), something like subset from boxToFace, and then create patches from the sets with createPatch (not sure how well the last step will work and what will happen with the original patch).

Hopefully these will give you some pointers to get started. Obviously I don't have a file which does exactly what you want but attached one of my topoSet dictionaries to show you how it looks like.

All the best,

Attached Files
File Type: txt topoSetDict.fwh.txt (2.7 KB, 5 views)
Artur is offline   Reply With Quote


interdymfoam, patch, surface

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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
calculation of the pressure over a surface mohammad Main CFD Forum 0 July 19, 2012 05:05
Surface roughness setting for a model in wind tunnel test section Sharon CFX 12 March 31, 2009 13:09
LiftDrag utility from v12 to v141 cfdphil OpenFOAM Running, Solving & CFD 2 December 5, 2007 05:49
Surface integral calculation by undefined area Bloshchitsyn Vladimir CFX 0 November 18, 2007 22:19

All times are GMT -4. The time now is 14:03.