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

OpenFOAM Ship Hydrodynamics

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2013, 15:37
Default OpenFOAM Ship Hydrodynamics
  #1
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13
kilroy is on a distinguished road
I have found OpenFOAM model files of a wigley hull example with an experimental validation report. The model was programmed to be running in version 1.7.x. To be able to make it run in the 2.2.0 version, I had to make the following changes.


In the "fvSchemes" file, "divSchemes" section:

Old code:
divSchemes
{
div(rho*phi,U) Gauss linearUpwind cellLimited Gauss linear 1.0;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}

New code:
divSchemes
{
div(rho*phi,U) Gauss linearUpwindV grad(U);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((muEff*dev(T(grad(U))))) Gauss linear;
div((nuEff*dev(T(grad(U))))) Gauss linear;

}


In the "fvSolution" file, the following section is added:

"(U|k|omega)Final"
{
$U;
tolerance 1e-06;
relTol 0;
}


In the "nut" file, "boundary" section:

Old code
hull
{
type nutWallFunction;
value uniform 0;
}

New code:
hull
{
type nutkWallFunction;
value uniform 0;
}


Now the file is running perfectly on version 2.2.0. But the drag forces I get from it does not match with the values presented in the report. The values I read is 20% over.

Do you think the changes I made can effect the the drag output of the model?

Thanks,
kilroy is offline   Reply With Quote

Old   February 9, 2017, 04:05
Default
  #2
New Member
 
Zhiqun Guo
Join Date: Feb 2017
Posts: 1
Rep Power: 0
gaduo is on a distinguished road
Hi, kilroy, I hope to get an OpenFOAM model files of a wigley hull example. Do you know where to get it? Thanks
gaduo 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
Memory protection in OpenFOAM / combinig with FORTRAN botp OpenFOAM Programming & Development 2 February 15, 2016 12:25
Best Software for Ship Hydrodynamics Soheyl Main CFD Forum 0 July 13, 2012 19:49
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 21:07


All times are GMT -4. The time now is 05:47.