This offering is not approved or endorsed by Silicon Graphics International Corp.,
the producer of the OpenFOAM® software and owner of the OpenFOAM® trade mark.
top
logo


Welcome, Guest
Please Login or Register.  Lost Password?
Special Interest Group on Ship Hydrodynamics Group Forum: Ship Hydro SIG covers all aspects of CFD simulation of ships and ship systems. As a group, it intersects with the Turbomachinery SIG, the Turbulence Modeling SIG, and the Multiphase and Free-Surface SIG.
Go to bottomPage: 123456
TOPIC: waves2Foam
#336
waves2Foam 5 Months, 4 Weeks ago Karma: 0
Dear all,

I completely forgot to inform you guys in this SIG, so here it is slightly delayed.

I have released my wave generation and absorption toolbox, where all of the details can be found on the following wiki:

openfoamwiki.net/index.php/Contrib/waves2Foam

Today I also added a new tutorial called "squarePile", where a cylindrical relaxation zone is used to absorb internally generated surface disturbances. It is not rigidly tested, however, it could prove valuable for everyone working with ships/floating structures. If the cylindrical shape is not suitable for the problem, please note, that it is quite straight forward to extend it to other shapes, e.g. elliptical.

Furthermore, the framework is made ready for numerical beaches, but it has not been implemented in the solver and the only numerical beach currently implemented is a dummy one of the kind.

I hope that you will find it useful.

Kind regards,

Niels
Niels Gjøl Jacobsen
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#338
Re:waves2Foam 5 Months, 1 Week ago Karma: 0
Hi Niels,

Have you tried running waves2Foam against the 2.0 version yet? If so, were there many problems?

I am working on master's thesis and am wanting to use OpenFOAM® for a simulation of a heaving-to (waves being disrupted by a ships sideways motion slick). I have been looking at some other wave tank tutorials in the extends project, however they were created for the 1.6 version and are incomplete, missing alpha1 and p_rgh files. I am hoping that I can extend your version.

Thanks,

Dave
David Hickerson
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#339
Re:waves2Foam 5 Months, 1 Week ago Karma: 0
I ran Allwmake and found errors in changes with the version 2.0. These were with the mathematicalConstant::pi, which changed to Foam::constant::mathematical::pi in this version.

I handled the change with preprocessor tests like the following:

#if OFVERSION>=200
omega_ = 2.0 * Foam::constant::mathematical::pi / period_ ;
#else
omega_ = 2.0 * mathematicalConstant::pi / period_ ;
#endif

Once those changes were added it compiled and linked. I haven't run the tutorials yet, but if those work would you like this checked in?

Dave
David Hickerson
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#340
Re:waves2Foam 5 Months, 1 Week ago Karma: 0
David Hickerson
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/12/12 08:15 By dahicke.
The administrator has disabled public write access.
 
#341
Re:waves2Foam 5 Months, 1 Week ago Karma: 0
Hi Dave

To answer both of your questions (and great that you got it working). Thanks for the offer of contributing, but honestly I am a bit reluctant at the moment to have a sixth version (1.5, 1.5-dev, 1.6, 1.6-ext, 1.7, 2.0) with the corresponding pre-processor statements/changes in the tutorials, and arguments in the option files hanging around in the same svn-repo.

If you get the tutorials to work, however, please tell me if you have changed some important details, so it would ease a later distribution of a 2.0-version. Secondly, we have been doing a tiny bit of 2.0-work in my department, but it was merely to check compilation-problems etc, but I do not think it was ever applied to real problems/tutorials.

From the top of my head, I believe that you ought to modify the standard interFoam in 2.0 with the correct additions in stead of relying on the applications in the current svn-release. The things you should do is (and perhaps not limited to):

1. #include "relaxationZone.H"
2. relaxationZone relaxing(mesh, U, alpha1 );
3. relaxing.correct();
4. #include "readWaveProperties.H"

Furthermore, in 1.7 I noted that #include "readGravitationalAcceleration.H" was moved to after the reading of U/pd, which will not work, since the boundary conditions on U will need g.

I hope that you get it working and that you will find the toolbox useful.

/ Niels
Niels Gjøl Jacobsen
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#343
Re:waves2Foam 5 Months ago Karma: 0
Hi Niels,

Thank you for the excellent toolkit! I did a test run (on a laptop installation of OF-1.6-ext) for a 2D case where waves are set on 3 adjacent boxes and the results seems comparable with [1].

Right now I am trying to compile waveFoam on a Centos5 cluster where I do not have admin rights (can't do a yum install gsl...). On the cluster, I have manually compiled a version of gsl-1.15 under the $WM_THIRD_PARTY_DIR and exported the path in etc/bashrc and added the relevant links in the options files as you have hinted in the wiki page. However, when I try to compile waveFoam on the cluster, there will be errors complaining that lgsl can't be found.

Can you point me to how I can possibly resolve this for compilation on the cluster, for example modifications to the Make files of waveFoam for a manually installed gsl?


[1] Numerical investigation of fluid resonance in two narrow gaps of three identical rectangular structures - Lin, L. et al, Applied Ocean Research 32 (2010).
Kie Hian
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123456
Joomla SEO powered by JoomSEF


bottom
top

OpenFOAM®-Extend World

You need to upgrade your Flash Player

bottom
Legal | Imprint
©Copyright 2012 The OpenFOAM® Extend Project 

Powered by Joomla! Designed by Joomla Templates, ecommerce web hosting, Thanks to J! Developer Goran Gligorin for support! Joomla SEF URLs by Artio. Powered by Staff Master v0.9.8 Valid: XHTML and CSS

Friends Online