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 Tree7Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 14, 2012, 09:32
Default
  #161
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj will become famous soon enough
Good evening Qicheng,

I have not derived the solitary wave theory myself and I do unfortunately not have the reference in a digital format.

I suggest that you implement your favourite solitary wave theory, which should not be difficult once you have a set of algebraic equations, and you will know, where the terms originate from. I will gladly incorporate such an implementation of yours into waves2Foam.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   December 15, 2012, 07:27
Default The gratitude for Niels' suggestions
  #162
New Member
 
Qicheng
Join Date: Dec 2012
Posts: 3
Rep Power: 2
stillwaterqc is on a distinguished road
Dear Niels,

Thank you very much! I will follow your instructions, modify the code and validate the results. I believe I will have fun with it. Your code does give me a lot of help for the research. I am going to study the internal solitary wave. So it would be great if we could exchange the ideas in the future.

Yours,
Qicheng

Quote:
Originally Posted by ngj View Post
Good evening Qicheng,

I have not derived the solitary wave theory myself and I do unfortunately not have the reference in a digital format.

I suggest that you implement your favourite solitary wave theory, which should not be difficult once you have a set of algebraic equations, and you will know, where the terms originate from. I will gladly incorporate such an implementation of yours into waves2Foam.

Kind regards,

Niels
stillwaterqc is offline   Reply With Quote

Old   December 15, 2012, 07:47
Default
  #163
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj will become famous soon enough
Your are welcome.

Good luck,

Niels
ngj is offline   Reply With Quote

Old   December 19, 2012, 08:26
Default
  #164
New Member
 
Galchenko Olga
Join Date: Nov 2012
Posts: 11
Rep Power: 2
Galchenko is on a distinguished road
Good afternoon!

I'm having problems with coupling waves2Foam with dynamic mesh motion. I've followed all the instructions, but still can't compile my waveDyMFoam solver. When I type wmake, I got this error message: "command not found".
I tried to "make" it, but I was told that thereis nothing needed to be done with this files. Though when I try to run this solver, I stil got same message "command not found" .

can someone help me to solve this problem?

Regards,
Olga

Last edited by Galchenko; December 19, 2012 at 08:46.
Galchenko is offline   Reply With Quote

Old   December 20, 2012, 04:57
Default
  #165
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj will become famous soon enough
Hi Olga,

You need to source the entire OpenFoam, before you can compile anything. Please look on the descriptions on how to set-up OpenFoam on your computer here (Section: Setting Environment Variables):

http://openfoam.org/download/source.php

Just to be clear, the problems you encounter have nothing to do with waves2Foam in specific, but rather the initiation of system variables, which are related to OpenFoam.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   December 20, 2012, 11:11
Default
  #166
New Member
 
Galchenko Olga
Join Date: Nov 2012
Posts: 11
Rep Power: 2
Galchenko is on a distinguished road
Thanks a lot for your answer, Niels.

But I have no problems with using waveFoam(also a grand thanks for a great work you've done) or any other solvers, so I suppose the problem is coonected exactly with implementing waveDyMFoam. Anyway,I repeated all the actions to set the environment variables, but it didn't help.

Regards,
Olga
Galchenko is offline   Reply With Quote

Old   December 21, 2012, 02:41
Default
  #167
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj will become famous soon enough
Good morning Olga,

It sounds a bit weird, however, I do not have the faintest idea about the actual problem, since the error "command not found" would suggest that "wmake" is not in the search path.

As you have compiled waves2Foam successfully disprove that wmake cannot be found. Try to compile a fresh interDymFoam in the new waveDymFoam directory and see if it works, i.e. do not make any changes to the files (except the output location in Make/files). This must work.

Kind regards

Niels
ngj is offline   Reply With Quote

Old   January 4, 2013, 15:10
Default Problems compiling waves2Foam
  #168
New Member
 
carlos
Join Date: Apr 2011
Posts: 13
Rep Power: 4
CFD-Palma is on a distinguished road
Hi All!,

I have been straggling to compile waves2Foam for a long time with no success.
I use cae-linux and my openFoam instalation is in /opt/openfoam211.
waves2Foam was placed in /home/carlos/OpenFOAM/carlos-2.1.1/waves2Foam and a copy of all files is in
/opt/openfoam211/applications/solvers/multiphase
I attach the errors reported.
Thanks a lot for your help!
Carlos.
Attached Files
File Type: zip Errors compiling waveFoam.zip (1.8 KB, 4 views)
CFD-Palma is offline   Reply With Quote

Old   January 5, 2013, 04:35
Default
  #169
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   January 5, 2013, 05:34
Default
  #170
New Member
 
carlos
Join Date: Apr 2011
Posts: 13
Rep Power: 4
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
  #171
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj 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
  #172
New Member
 
carlos
Join Date: Apr 2011
Posts: 13
Rep Power: 4
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
  #173
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj 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
  #174
New Member
 
carlos
Join Date: Apr 2011
Posts: 13
Rep Power: 4
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
  #175
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj 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
  #176
New Member
 
carlos
Join Date: Apr 2011
Posts: 13
Rep Power: 4
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
  #177
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj 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
  #178
New Member
 
Mohammad Ghandali
Join Date: Jan 2013
Posts: 5
Rep Power: 2
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
  #179
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,138
Rep Power: 19
ngj 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
  #180
New Member
 
Mohammad Ghandali
Join Date: Jan 2013
Posts: 5
Rep Power: 2
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

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 0 March 28, 2008 05:27
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 01:58.