|
[Sponsors] |
January 19, 2013, 09:11 |
|
#281 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Mohamad,
It appears that the solvers in waves2Foam has not been compiled correctly. Otherwise, the executable should be known. Try to recompile waves2Foam and identify, whether any errors are reported. The error using waves2Foam is related to the fact that the boundary condition waveAlpha is distributed along with libwaves2Foam.so, which interFoam does not know. Kind regards, Niels P.S. I have just seen that you are using 2.0.1. No solvers are distributed with waves2Foam for that version. Please follow the guidelines on the wiki for creating the waveFoam solver. Link: http://openfoamwiki.net/index.php/Contrib/waves2Foam |
|
January 28, 2013, 17:54 |
Floating point exeption
|
#282 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Dear Niels,
I am working with a modification of the square pile tutorial. The idea is replacing the pile with a boat stl, so I have added the snappy and the dynamic mesh, so I use waveDyMFoam. I have tried many diferent meshes, the last a millon + cels that checkMesh OK. No wonder what I do it always ends very soon with FPE. I wander if you could give me a clue as to where to look for the problem, as the courant nº is ok, tried different speeds, etc. I attach the log file and the terminal output. Thanks in advance, Carlos. |
|
January 29, 2013, 04:40 |
|
#283 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Carlos,
Since it crashes so soon, it is probably related to the mesh motion and VOF coupling. Have you tried running it without waves? I would guess that is still crashes. Kind regards, Niels Last edited by wyldckat; September 2, 2018 at 17:55. Reason: removed answer to another post on the main thread |
|
January 29, 2013, 07:07 |
|
#284 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Hi Niels, thanks for answering so soon.
The case has only current, no other wave type but potential current. Attached a jpg of a run that lasted longer but ended the same way. Since it runs with no mesh motion, it could be related to some issue with the mesh, it may need more room on top to deform freely, I do not know. Thanks for your attention, Carlos. |
|
January 29, 2013, 08:04 |
|
#285 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
You say it runs without mesh motion, but the ship you have depicted, isn't that being moved? Or have you meshed it in that skewed position?
- Niels |
|
January 29, 2013, 09:41 |
|
#286 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Hi Neils, The picture is the case "with mesh motion" that has run for a short while, allowing me to have a look at what happens. (Short in real time, but it took hour running)
The goal of the simulation is to predict the keel angle and position on the generated wave. I am not much interested in the forces (by now) there fore laminar should be adequate. Regards, Carlos. |
|
January 29, 2013, 18:08 |
|
#287 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
OK. Mesh motion can produce some results from time to time, which are really hard to debug.
A couple of thoughts, which might help: 1. Use a really long ramping time (Tsoft), so the ship motion is not subject to shocks. 2. Use a solution from a potential flow solver with free surface capabilities (do not know of any, though) to initialise the flow field around the ship. Again, avoiding too many shocks. 3. Try with a simple geometry first, e.g. a simplified ship being made of a box and a prism with a triangular cross section. Try to begin with a stationary geometry, i.e. no mesh motion. 4. Look up shipFoam in the forum and couple it with waves2Foam. Unfortunately, the svn/git for the OpenFoam-extend branch is still down, but maybe you can find another source. 5. Some time ago navalPack was released. I have never used it, but the name suggests that it can prove useful. Good luck, Niels |
|
January 30, 2013, 15:52 |
|
#288 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Hi Niels,
Thank you very much for your suggestions. I will try ship-foam, that I have downloaded some time ago but was reluctant to try because it works on OF 1.6 which has some differences with 2.1 I have been using. In any case I will try some of your ideas to learn and how knows, it may work. Thank you again for your time and help. Best regards, Carlos. |
|
January 30, 2013, 17:11 |
|
#289 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
I have seen a thread, where a modification of shipFoam to 2.1 was discussed. Try search for it, i.e. use Google on the cfd-online domain
Good luck, Niels |
|
February 2, 2013, 06:35 |
|
#290 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Dear all,
We are currently working on an extension to waves2Foam (hopefully coming out in the late spring/summer of 2013). The key extension is a large post-processing utility, so one does not need to transform the output data into matlab, python or whatever, but you can work with the post-processing directly in OpenFoam. I have a small question to you, namely: What type of post-processing are you doing on your data? This is for us to be inspired of which tools to put into the extension. To give you a flavour, currently the following type of post-processing is implemented and tested: 1. Read probes/surface elevation gauges into the post-processing utility (e.g. velocity, surfaceElevation, forces and moments, void fraction). This includes a concatenation of data from restarted simulations. 2. Perform interpolation to equidistant time series if needed (e.g. for spectral analysis). 3. Output the data in easily accessible ASCII format, i.e. pure numbers in a rectangular matrix format. 4. Spectral analysis (two versions with one for regular and one of irregular waves). Can be carried out on both scalar and vector quantities. 5. Reflection analysis based on the surface elevation signal. Works currently in 2D with two different methods for regular and irregular waves. 6. Ensemble averaging of regular wave quantities (scalar and vector) 7. Trapezoidal time integration and cumulative trapezoidal time integration (scalar and vector). Any suggestions beyond these methods are highly appreciated. If extensive implementation is needed, please also provide me with a test case, a mathematical formulation of the problem and a set of results from the analysis to use as validation. Furthermore, a transparent implementation in any language would be nice. Kind regards, Niels |
|
February 11, 2013, 17:55 |
|
#291 |
Member
carlos
Join Date: Apr 2011
Posts: 37
Rep Power: 15 |
Hi Niels,
Very interesting, will keep on waiting!! I have been trying to apply wave2foam to fast speed boat analysis, and finally manage to make it stable. Now, on Fr nº over 1, the shock of the initial acceleration is to hight so I have been wandering if there is a possibility of making the speed of the current wave as function of time, at least in two steps. In your previous answer to my first questions, you pointed this up and suggested a hight tsoft. I could not get results with this or did not do it properly, because I get an elevation of the water surface in the inlet and the simulation crashes. If the default is 0, what could be a number to try? Thanks you for your work and help! Carlos. |
|
February 12, 2013, 06:30 |
|
#292 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Carlos,
You can implement any inlet velocity of your liking. Look into the waveTheory folder in the source, and you will quickly be able to make a time varying current. With respect to the soft start/ramping time, maybe you will need another shape function in the relaxation zone, but I honestly do not know, since I have never tried such types of simulations. Kind regards, Niels |
|
February 13, 2013, 03:28 |
|
#293 |
Member
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14 |
Hello Niels,
I have been trying to install waves2Foam on my personal computer and whenever I try to obtain the source code via SVN I get this error message: svn: Could not open the requested SVN filesystem Kindly advise. Regards, Sagun |
|
February 13, 2013, 04:44 |
|
#294 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Sagun,
The SVN is currently down (http://openfoamwiki.net/index.php/Main_Page), so meanwhile you can find a static version of the most recent revision here: http://www.student.dtu.dk/~ngja/waves2Foam.tar.gz Kind regards, Niels |
|
February 14, 2013, 13:08 |
|
#295 | |
New Member
Luca Bonfiglio
Join Date: Oct 2011
Posts: 9
Rep Power: 15 |
Quote:
I've been using waveDyMFoam with sixDoFRigidBodyDisplacement for simulate a ship in waves with zero speed. I set up the inertia and the mass without constraints, but the angular velocities become very high (especially for roll). As waves come from the bow, I shouldn't have roll. I tried to constraint roll and yaw, but the constraint moments grow up very quickly blowing up the simulation. I also tried to increase the inertia but I only delay the blowing up of the simulation. Does anybody have any suggestion? Thank you Luca |
||
February 25, 2013, 18:15 |
|
#296 |
New Member
Luca Bonfiglio
Join Date: Oct 2011
Posts: 9
Rep Power: 15 |
Hi Niels,
I've been using waveDyMFoam with sixDoFRigidBodyDisplacement for simulate a ship in waves with zero speed. I set up the inertia and the mass without constraints, but the angular velocities become very high (especially for roll). As waves come from the bow, I shouldn't have roll. I tried to constraint roll and yaw, but the constraint moments grow up very quickly blowing up the simulation. I also tried to increase the inertia but I only delay the blowing up of the simulation. Do you have any suggestion? Thank you Luca |
|
February 28, 2013, 07:21 |
gmsh and waveFlume
|
#297 |
New Member
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 14 |
Hi Niels,
I have successfully run the waveFlume tutorial. I have openfoam 160 and ubuntu 12.10. I am trying to implement a gmsh mesh into the waveFlume tutorial. I have managed to edit all the files required to the best of my knowledge, i.e. the 0 time folder and boundary file. I'm not really sure what to do once I have used the command: gmshToFoam. I have checked the mesh using: checkMesh and that says the mesh is ok. Should I then compile as normal using setWaveField and waveFoam or are there more steps that I need to do. Here is the output I get when I try run setWaveFields: Code:
Create time Create mesh for time = 0 cannot open file file: /home/ross/OpenFOAM/waves2Foam/tutorials/waveFoam/waveFlumeFoil3/system/fvSchemes at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 62. FOAM exiting Ross. |
|
February 28, 2013, 07:58 |
|
#298 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Ross,
It seems that you are missing your fvSchemes file. This could be due to the fact that you rely on one of the tutorials, this also means that you have a lot of fvSchemes.* and fvSolution.* files available, though, you need to choose the one called "16". All of these things are in the tutorials taken care of in a small script, which you can find here: Code:
<some path>/waves2Foam/bin/prepareCase.sh Niels |
|
March 1, 2013, 03:11 |
|
#299 | |
Member
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16 |
Quote:
I've been playing around with stokesFifth and stokesFirstwCurrent for a while, and wondering what is the correlation between the stokes drift velocity (scalar Q_) in the former and the current (vector current_) in the latter. I made a comparison run by setting Q_ and current_ to values of the same magnitude (-0.5 m/s) and the results are attached below and the wave properties for respective waves are also given for your reference: stokesFifthCoeffs { waveType stokesFifth; height 0.1; period 2; depth 0.4; stokesDrift -0.5; direction ( 1 0 0 ); Tsoft 2; phi 0; waveNumber (2.54201 0 0); waveLength 2.47174; omega 3.14159; } stokesFirstwCurrentCoeffs { waveType stokesFirstwCurrent; Tsoft 2; depth 0.4; period 2; direction ( 1 0 0 ); phi 0; height 0.1; waveNumber (1.70048 0 0); waveLength 3.69495; omega 3.14159; current (-0.5 0 0); } surfaceElevation_wave_current.jpg velocity_wave-current.jpg Can anyone advise which one gives better result and what is the difference between Q_ and current_? BTW, I have created a setProperty class for the stokesFirstwCurrent and attached here for your convenience. stokesFirstwCurrentProperties.tar.gz Many thanks! |
||
March 8, 2013, 10:01 |
|
#300 | |
New Member
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13 |
Hello, everyone.
I'm new in OpenFOAM and waves2foam and I've been doing the tutorials of waves2foam successfully in the OF 2.1.1 version. Today I installed OpenFOAM 2.2.0 and tried to install waves2foam on it running the ./Allwmake command, but gives me a lot of errors: Quote:
Thank you! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Re-Project topics | protocol | STAR-CCM+ | 0 | March 22, 2016 06:25 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:18 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:14 |
Error: "Cannot find file points" related to changing parallelized code to serial? | Suyf | OpenFOAM Running, Solving & CFD | 0 | February 12, 2015 05:31 |