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

Fields calculation on a surface section

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

Reply
 
LinkBack Thread Tools 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: 38
Rep Power: 2
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: 286
Rep Power: 7
Artur is on a distinguished road
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, 1 views)
Artur is offline   Reply With Quote

Reply

Tags
interdymfoam, patch, surface

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
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 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 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 05:45.