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

OpenFOAM Ship Hydrodynamics

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

Reply
 
LinkBack Thread Tools 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: 4
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

Reply

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
Memory protection in OpenFOAM / combinig with FORTRAN botp OpenFOAM Programming & Development 1 February 6, 2013 05:26
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 22:07


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