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

Waves2Foam Related Topics

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

Like Tree44Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 5, 2013, 05:34
Default
  #261
New Member
 
carlos
Join Date: Apr 2011
Posts: 21
Rep Power: 5
CFD-Palma is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Carlos,

I would recommend that you do not add any solvers to begin with - this is not necessary to begin with for version 2.1.1. If you need dynamic meshes then you need to follow the instructions on the wiki, however, take this step, when the basic package is compiled correctly.

Make a new checkout from the svn, and you should be able to compile it all without any problems.

E.g. the library libwaves2Foam.so is compiled correctly and so are all of the utilities.

Kind regards,

Niels
Hi Niels,

Thanks for your quick answer. In fact I have started the wrong way, as I downloaded the 2012 workshop pack which included the other solvers.
As you suggest, I will start from clean and only with waves2Foam, to add later what I need.
I will report the result.
Regards,
Carlos.
CFD-Palma is offline   Reply With Quote

Old   January 5, 2013, 06:00
Default
  #262
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Carlos,

Good luck. What source package is the 2012 Workshop one? I do not think that I have ever heard about it.

Best regards,

Niels
ngj is offline   Reply With Quote

Old   January 5, 2013, 07:23
Default
  #263
New Member
 
carlos
Join Date: Apr 2011
Posts: 21
Rep Power: 5
CFD-Palma is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Carlos,

Good luck. What source package is the 2012 Workshop one? I do not think that I have ever heard about it.

Best regards,

Niels
Hi Niels,

There is a special group for ships hydro with OF "OpenFOAM-7th-Workshop-2012" and there is a version of caelinux only for OFoam that includes your wave2Foam, but is not compiled during the installation.
I am not working in this version of caelinux but with the complete one.

I have tried to clean as much as possible and then svn update.
It only complains about one file in one tutorial.

I noticed the addition of one number in the solvers version, so mine should be 211, but the Allwmake was pointing to 21, with "file not found", so I did modify to 211. If I understand the result on the attached file, waveFoam did compile, but failed on the utilities.
Thanks again for your help and your patience.
Carlos.
Attached Files
File Type: txt Errors.txt (10.3 KB, 3 views)
CFD-Palma is offline   Reply With Quote

Old   January 5, 2013, 07:45
Default
  #264
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi

It looks as if it cannot find the header files in waves2Foam/src/lnInclude. Maybe the relative path from the utilities should be defined differently in CAELinux? Even though it does not make sense, since waveFoam is compiled.

Well, nonetheless, I believe you should completely delete the version (or rename) you have on your computer and then do a completely fresh checkout as stated on the wiki (http://openfoamwiki.net/index.php/Contrib/waves2Foam)

Regards,

Niels
ngj is offline   Reply With Quote

Old   January 5, 2013, 13:07
Default
  #265
New Member
 
carlos
Join Date: Apr 2011
Posts: 21
Rep Power: 5
CFD-Palma is on a distinguished road
Hi,

I have compiled in a different instalation (OF 210) and managed to get waveFoam working, but faild on some pre and post processing due to missing files.
What I need is a clean and complete package for waves2Foam. Where can I download it?
I have tried sourceforge but can not find it.

Thanks once again!
Carlos.
CFD-Palma is offline   Reply With Quote

Old   January 5, 2013, 13:24
Default
  #266
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Please read the "Download and Installation" section on the Wiki, which I linked above.

- Niels
ngj is offline   Reply With Quote

Old   January 5, 2013, 13:42
Default
  #267
New Member
 
carlos
Join Date: Apr 2011
Posts: 21
Rep Power: 5
CFD-Palma is on a distinguished road
Thanks Niels, I have found it, downloaded and it went like a charm.
Very sorry for taking your time due to my ignorance.
Best,
Carlos.
CFD-Palma is offline   Reply With Quote

Old   January 5, 2013, 13:45
Default
  #268
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
You are welcome. I have to agree with you that it confuses the matter that a static (read: "old") and altered version of waves2Foam is floating around.

Well, now it has been documented and can be read by all other potential users.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   January 6, 2013, 18:34
Default
  #269
New Member
 
Mohammad Ghandali
Join Date: Jan 2013
Posts: 7
Rep Power: 3
Mohamad(AUT) is on a distinguished road
Hi Dear Niels
first i appreciate of your works and your academic personality .
im very begginer in openfoam read the openfoam wiki instruction of waves2foam installation But when i run allwmake in terminal i found these in terminal is it normal?

'/home/mohammad/OpenFOAM/mohammad-2.0.1/platforms/linux64GccDPOpt/lib/libwaves2Foam.so' is up to date.
./Allwmake: line 47: cd: applications/solvers/solvers201: No such file or directory
make[1]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc'
make[2]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab'
make[3]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab/postprocessing'
make[3]: Nothing to be done for `application'.
make[3]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab/postprocessing'
make[3]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab/preprocessing'
make[3]: Nothing to be done for `application'.
make[3]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab/preprocessing'
make[2]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc/matlab'
make[1]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/misc'
make[1]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/postProcessing'
make[2]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/postProcessing/surfaceElevation'
make[2]: `/home/mohammad/OpenFOAM/mohammad-2.0.1/platforms/linux64GccDPOpt/bin/surfaceElevation' is up to date.
make[2]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/postProcessing/surfaceElevation'
make[1]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/postProcessing'
make[1]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing'
make[2]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[2]: `/home/mohammad/OpenFOAM/mohammad-2.0.1/platforms/linux64GccDPOpt/bin/relaxationZoneLayout' is up to date.
make[2]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[2]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: `/home/mohammad/OpenFOAM/mohammad-2.0.1/platforms/linux64GccDPOpt/bin/setWaveField' is up to date.
make[2]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: Entering directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[2]: `/home/mohammad/OpenFOAM/mohammad-2.0.1/platforms/linux64GccDPOpt/bin/setWaveParameters' is up to date.
make[2]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: Leaving directory `/home/mohammad/projects/waves2Foam/applications/utilities/preProcessing'

p.s: when i run wave flume tutorial i run blockmesh and it works when i run parafoam i suddenly get out and disapeared..

beforehand thank you for your helping
Mohammad
Mohamad(AUT) is offline   Reply With Quote

Old   January 7, 2013, 04:54
Default
  #270
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Mohammed,

Yes, it looks correct - congrats with the painless compilation

With respect to the crashing of paraFoam, it sounds like a problem, which I have heard about before, however, I have no means of helping with that. I advise you to search the Forum (using Google )

Kind regards,

Niels
Mohamad(AUT) likes this.
ngj is offline   Reply With Quote

Old   January 7, 2013, 08:30
Default
  #271
New Member
 
Mohammad Ghandali
Join Date: Jan 2013
Posts: 7
Rep Power: 3
Mohamad(AUT) is on a distinguished road
Hi again Dear niels
thanks for your quick answer..and time you spent on my post
i run wave flume tutorials and i run blockMesh and then run setWaveField in terminal and i get this error and i dont know how to debug it..


mohammad@mohammad-desktop:~$ cd /home/mohammad/Desktop/waveFlume
mohammad@mohammad-desktop:~/Desktop/waveFlume$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : blockMesh
Date : Jan 07 2013
Time : 04:01:15
Host : mohammad-desktop
PID : 10052
Case : /home/mohammad/Desktop/waveFlume
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from
"/home/mohammad/Desktop/waveFlume/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty

Check topology

Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 -0.4 0) (18 0.2 0.1)
nPoints: 43676
nCells: 21420
nFaces: 86097
nInternalFaces: 42423
----------------
Patches
----------------
patch 0 (start: 42423 size: 60) name: inlet
patch 1 (start: 42483 size: 357) name: bottom
patch 2 (start: 42840 size: 60) name: outlet
patch 3 (start: 42900 size: 357) name: atmosphere
patch 4 (start: 43257 size: 42840) name: frontBack

End

mohammad@mohammad-desktop:~/Desktop/waveFlume$ setWaveField
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : setWaveField
Date : Jan 07 2013
Time : 04:02:14
Host : mohammad-desktop
PID : 10060
Case : /home/mohammad/Desktop/waveFlume
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/mohammad/Desktop/waveFlume/system/fvSchemes at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

PLease Help me
Best Regards Mohammed
Mohamad(AUT) is offline   Reply With Quote

Old   January 7, 2013, 15:55
Default
  #272
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Dear Mohammed,

Please execute the "Allrun" script as
Code:
./Allrun
This script does (as the name suggests ) all what is needed to run the tutorial. It is a simple text file, so you can see, what happens ``inside''.

Kind regards,

Niels
Mohamad(AUT) likes this.
ngj is offline   Reply With Quote

Old   January 11, 2013, 04:25
Default
  #273
New Member
 
Harrif
Join Date: Feb 2011
Location: National University of Singapore
Posts: 1
Rep Power: 0
harrif is on a distinguished road
Dear Foamers,

I am curious whether any of you guys have successfully implemented turbulence models with density for waves2foam?

I am simulating regular waves (without current yet) for laminar and eventually turbulent flows in waves2foam. I tried to include density in the standard k - epsilon (in OF 1.7.1), in the form of rho_ and rhoPhi in each term of k and epsilon transport equations, but the resultant wave height gets even more dampen (much quicker) than the normal density-normalised k - epsilon model. This is because of excessive production of k, epsilon and eventually nut which grow over the time. See the attached surface elevation profile for laminar, density-normalised turbulence and turbulence with density models. Perhaps you guys can shed some light about the proper implementation procedure? Thanks!

Niels, I got a question about the new k - omega model in your paper, equation (6) and (7). I realised there is missing rho in beta term, sigma_d term of the omega equation and betaStar term of the k equation. Is this typo or there is no rho for some reason? Thanks!

Cheers,
Harrif
Attached Images
File Type: jpg 21m Laminar vs Turbulent Updated.jpg (93.3 KB, 55 views)
harrif is offline   Reply With Quote

Old   January 11, 2013, 05:27
Default
  #274
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Dear Harrif,

Thanks for pointing out the missing rho's (there are actually more of them in eq. (6) and (7), and I am really embarrassed with that!).

With respect to the turbulence modelling, I found that it is very important to treat the production term correctly. The problem with production terms based on the strain tensor is that production will be non-zero in a potential flow field, which by definition is irrotational! Therefore Mayer and Madsen (2000) suggested to use the curl of the velocity field instead. I have also had successes with this type of formulation in k-omega models.

Kind regards

Niels

Mayer S, Madsen PA. Simulation of breaking waves in the surf zone using a Navier–Stokes solver. Proceeding to Coastal Engineering Conference 2000; I:928–941.
ngj is offline   Reply With Quote

Old   January 14, 2013, 07:25
Default dynamic mesh
  #275
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 28
Rep Power: 4
Ed R is on a distinguished road
Dear waves2Foamers,

I'm struggling to get the waveDyMFoam solver to work. I have followed the instructions on the wiki to couple interDymFoam with waves2Foam but when the solver tries to refine the mesh is crashes. Has anyone got the dynamic mesh to work? Any help would be much appreciated.

The terminal gives the following:

/opt/openfoam211/bin/tools/RunFunctions: line 37: 3280 Segmentation fault (core dumped) $APP_RUN $* > log.$APP_NAME 2>&1

The log file give this (after the usual preliminaries)

Starting time loop

Interface Courant Number mean: 6.86629e-05 max: 0.0102554
Courant Number mean: 0.00296173 max: 0.010832
deltaT = 0.00116279
Time = 0.00116279

Selected 3740 cells for refinement out of 75000.
Refined from 75000 to 101180 cells.
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3 Foam::dynamicRefineFvMesh::refine(Foam::List<int> const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libdynamicFvMesh.so"
#4 Foam::dynamicRefineFvMesh::update() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libdynamicFvMesh.so"
#5
in "/home/eransley/OpenFOAM/eransley-2.1.1/platforms/linuxGccDPOpt/bin/waveDyMFoam"
#6 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#7
in "/home/eransley/OpenFOAM/eransley-2.1.1/platforms/linuxGccDPOpt/bin/waveDyMFoam"

I'm no expert but I think it must be something to do with the refinement as if the initial number of cells are purposely over the max cell number it runs fine.

Thanks a lot, Ed.
Ed R is offline   Reply With Quote

Old   January 14, 2013, 11:05
Default
  #276
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Ed,

Have you tried running the case with interDymFoam, i.e. without the coupling to waves2Foam?

This would be a nice way to verify whether it is an error exclusively related to the mesh refinement or whether waves2Foam also cause problems.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   January 14, 2013, 12:15
Default
  #277
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 28
Rep Power: 4
Ed R is on a distinguished road
Hi Niels,

I have set up the case by changing the boundary types in 0/alpha.org and 0/U.org from waveAlpha and waveVelocity to fixedValues and used a setFieldsDict to set the fields without using setWaveFields. Then using interDymFoam it crashes at the same point (when trying to make the first refinement) so It must be something to do with my case. I have run the damBreakWithObstacle tutorial and it runs fine and the refinement works. Any hints on setting up a Dynamic mesh case that I may have over looked?
Ed R is offline   Reply With Quote

Old   January 14, 2013, 16:09
Default
  #278
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Ed,

No, I have never used the dynamic refinement. But some else might?

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   January 15, 2013, 12:04
Default
  #279
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 28
Rep Power: 4
Ed R is on a distinguished road
Niels,

I've now managed to solve the dynamic mesh issues I was having it was a combination of empty boundary types don't work and a slight alteration to the fvSolution file. The details can be found in these two posts (below). I'd like to thank Adriaan Steenkamp for the help.

Automatic Mesh Refinement - sonicFoam - Forward Step Case - OpenFOAM2.0.1

GAMG problem in interDyMFoam?

I'm now having another issue:

I'm trying to install waves2Foam on a cluster and when performing the SVN to sourceforge from the wiki site I get an error saying that it cannot find the code. Is the wiki up to date, has anyone got any tips to get waves2Foam on a cluster. I'm really out of my depth with HPC stuff, any help would be great.

Thanks,

Ed
Ed R is offline   Reply With Quote

Old   January 15, 2013, 17:25
Default
  #280
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,530
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Ed,

Congrats on the successful refinement

The SVN is currently down (see: http://openfoamwiki.net/index.php/Main_Page), so I suggest that you merely copy the files you have on your own computer to the cluster.

Kind regards,

Niels
ngj 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
Other Topics at OpenFOAM Workshop Milan 2008 hjasak OpenFOAM 2 October 26, 2013 04:33
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58
CFD Related Educational Programmes Jonas Larsson Main CFD Forum 3 February 9, 2007 10:11
project topics vivekanand CFX 0 October 27, 2004 05:17
Advanced Topics in Aerodynamics Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16


All times are GMT -4. The time now is 21:59.