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

[waves2Foam] Compiled with foam-extend-4.0, but I cannot run tutorials in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2017, 01:04
Default Compiled with foam-extend-4.0, but I cannot run tutorials in parallel
  #1
New Member
 
Lee
Join Date: Mar 2016
Posts: 22
Rep Power: 10
lxwd is on a distinguished road
Dear Jacobsen,

Thank you for providing such a useful toolbox! I have successfully compiled waves2Foam on foam-extend-4.0, but I cannot run tutorials in parallel. I have tested several cases and found that the parallel can only run without the use of waveGaugesNProbes, so I think there might be something wrong in sampling. I attached the log file for your information.

I also encounter a problem that the solitary wave cannot keep its height outside the inlet relaxation zone (wave height should be 0.15m) and there even exist a small amplitude wave after the pass of the solitary wave at the middle of wave flume. I am sure my mesh is fine enough (2cm in x direction, 1cm in y direction) and there is no structure within the domain. I also attached wave elevation time series for one wave gauge right after inlet relaxation zone and one wave gauge at the middle of wave flume. Could you please give me some suggestions on this problem?

Thanks in advance and best regards,

Lee
Attached Images
File Type: jpg waveGauge1.jpg (44.3 KB, 34 views)
File Type: jpg waveGauge2.jpg (46.0 KB, 35 views)
Attached Files
File Type: txt log.txt (14.8 KB, 20 views)
File Type: txt waveProperties.txt (2.2 KB, 11 views)
lxwd is offline   Reply With Quote

Old   February 19, 2017, 05:59
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Lee,

Thank you for reporting the wave gauge issue. Could I ask you to test, whether you can execute in parallel, if all wave gauges are within one processor?

With respect to the solitary wave, then I assume that it is caused by the low accuracy (first order) of the implemented wave theory. I have seen myself that it creates extra waves and lose height.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   February 19, 2017, 09:49
Default
  #3
New Member
 
Lee
Join Date: Mar 2016
Posts: 22
Rep Power: 10
lxwd is on a distinguished road
Hi Niels,

Thank you for your reply. I will do the test this morning and report back.

Have you ever tested the applicability of using a stream function wave to represent solitary wave or Do you have any plan to implement a higher order solitary wave, e.g. 3rd order, in waves2Foam?

Thanks again for your help.

Best regards,

Lee
lxwd is offline   Reply With Quote

Old   February 19, 2017, 10:49
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
No, I have never really tried anything with solitary waves, as it has never been a topic in my research.

Stream function waves could be a possibility, but you will have a negative velocity in the trough, so I do not know, whether that would be a problem for your case?

If you make an implementation of a higher order wave, I will gladly include it in the repository.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   February 19, 2017, 11:30
Default
  #5
New Member
 
Lee
Join Date: Mar 2016
Posts: 22
Rep Power: 10
lxwd is on a distinguished road
It still doesn't work even all wave gauges are within one processor. This time it seems to get stuck at the first time step and I have to terminate the job.

I think maybe a higher oder solitary wave theory is more suitable for me. I will try to make one and let you know if it can work.

Best Regards,

Lee
Attached Files
File Type: txt log_mpirun.txt (4.8 KB, 9 views)
lxwd is offline   Reply With Quote

Old   February 21, 2017, 15:46
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Lee,

I have just tried running the waveFlume case in parallel (2 and 4 processors) and it runs smoothly, so I cannot reproduce your error. Could I please ask you to start from the waveFlume case and check, whether the problem also exists there on your compilation?

If you do not already do it, try to give this environmental property, before executing the test:

Code:
export FOAM_ABORT=1
This normally gives a bit more information on the source of the error. As it is now, I cannot help you from this end.


Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   February 21, 2017, 18:14
Default
  #7
New Member
 
Lee
Join Date: Mar 2016
Posts: 22
Rep Power: 10
lxwd is on a distinguished road
Hi Niels,

I have just run the waveFlume case without any change in parallel (6 processors). I also gave that environmental property before I running the case. Below is the link to the test case in dropbox.

https://www.dropbox.com/sh/mly1hy5i0...VsAAQg33a?dl=0

I am now working on implementation of a higher order solitary wave. I have already checked the solitaryFirst.C file, but I am confused on how you obtain the expression for pressure term. I found several references about higher order solitary wave and they only gave the expressions for wave profile and water particle velocity. Could you please let me know where you find this equation or how you derive it, if it is derived by yourself.

Many thanks and best regards,

Lee
lxwd is offline   Reply With Quote

Old   February 22, 2017, 03:13
Default
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Lee,

I do the same thing as you, but I cannot reproduce the problem. I can only suggest that you try to replace the wave gauges with the native sampling utility. The surface elevation tool is (long ago) derived from line sampling. If it still fail as well, the problem is unrelated to surfaceelevation.

Concerning pressure field, then I believe that I simply inserted the velocity field and the surface elevation in the Bernoulli equation to obtain the pressure. It is a long time ago, so I am not certain.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj 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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
potentialFoam doesnt start?! Sway OpenFOAM Running, Solving & CFD 0 July 2, 2015 08:48
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 12:30
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04


All times are GMT -4. The time now is 19:13.