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

OpenFOAM interFoam setFields &setWaves define free surface position

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2022, 08:46
Default OpenFOAM interFoam setFields &setWaves define free surface position
  #1
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Dear All,

I am simulating ship in waves using interFoam (OpenFOAM v7). My customized case is based on DTCHull tutorial. In setFields, the free suface is set at z=0.244m. I am wondering if I need to change the hull, eg changing to KCS hull, how I can determine the free surface position? what value I should input for z?

Any help is appreciated!

Many thanks,

Tony
zyfsoton is offline   Reply With Quote

Old   February 11, 2022, 22:08
Default
  #2
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7
Ship Designer is on a distinguished road
Hello Tony, in the DTC Hull tutorial, the z coordinate corresponds to the draft of the model used in the towing tank, whereas they left the z = 0 coordinate at the baseline of the model. For the KCS hull you can find the draft of the model in literature or on a website of any of the workshops that used it. You would also need to adjust href accordingly.

I prefer to shift the geometry of the hull down the z axis, so that the free surface becomes z = 0. The results are the same but it has several advantages for post-processing. It is easier e.g. in ParaView to set up the free surface elevation and wave contours, because their z-coordinates simply become positive for crests and negative for troughs and you can read the heights directly. Otherwise you have to always remember to correct the z-coordinates or you would need to shift the entire domain first to obtain the still water surface at z = 0.

I think for seakeeping and manoeuvring simulations the z axis is defined to be positive downwards and the origin close to amidships, so there are many ways to define the coordinate system and there's no right or wrong. The choice depends on the application and what makes more sense for post-processing. The important thing is to not get confused.

Hope this helps. Cheers, Claudio
Ship Designer is offline   Reply With Quote

Reply


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
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Interfoam... free surface simulation urgent lostin4ever Main CFD Forum 4 October 12, 2010 09:29
open channel problem (free surface) Andy Chen FLUENT 4 July 10, 2009 02:20
Free Surface Position Jennifer CFX 3 November 17, 2008 02:51
CFX 4.4 New free surface option Viatcheslav Anissimov CFX 0 April 3, 2002 07:27


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