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

Fields calculation on a surface section

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2016, 09:16
Default Fields calculation on a surface section
  #1
Member
 
Federica Biano
Join Date: Feb 2016
Location: Genova, Italy
Posts: 39
Rep Power: 10
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, 15:43
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Hi,

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,

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

Reply

Tags
interdymfoam, patch, surface


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


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