|
[Sponsors] |
April 29, 2013, 10:24 |
|
#361 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
I have also discovered something. When I compile the "waveDyMFoam" and immediately after that if I try to run the solver in the same terminal window, then it runs pretty fine. But if I close that terminal window and open a new one, then it gives the "waveDyMFoam: command not found" error when I try to run the solver. I am really confused. Kilroy |
|
April 29, 2013, 10:28 |
|
#362 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
If you do source OpenFoam each time you open a new terminal, then I cannot come up with an explanation for your problem, since you are having a successful compilation.
Kind regards Niels |
|
April 29, 2013, 10:38 |
|
#363 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
Thank you very much. Is there anything looks unusual to you in the compilation log? Kilroy. |
|
April 29, 2013, 11:57 |
|
#364 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
I solved the problem. I was making the binary file in root bin so when I open new terminal, I am not root any more! so I can not find binary file! When I first run the command "sudo bash", then I start to be able to use "waveDyMFoam". Thank you so much for your time and help, Kilroy |
|
April 30, 2013, 01:39 |
|
#365 | |
Member
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16 |
Quote:
Many thanks for your comments. It would be a little difficult for us to find ananalytical expression of coupled waves+sheared current, as we have searched for long time and still got no clue. As to the third-party tools, could you them share with us some of them that you are aware of. I will then do some research. many thansk! Best, |
||
April 30, 2013, 02:04 |
|
#366 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning,
I am unfortunately only aware of potential solver, i.e. without viscosity, and it is also one of these, which has already been coupled to waves2Foam. Unfortunately, the third-party software is to my knowledge closed source. Kind regards, Niels |
|
April 30, 2013, 02:12 |
|
#367 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Kilroy,
You do not want to run your simulations as root. It is simply too dangerous in terms of you ending up deleting files of vital importance or similar scary things. Instead: Compile waveDyMFoam, when you are logged in as your own user. This should be done by placing all of waves2Foam in your own directory rather than /opt/<ETC>/waves2Foam Kind regards Niels |
|
April 30, 2013, 11:36 |
problem with compiling waveDyMFoam
|
#368 |
New Member
Cathelain
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
Dear all,
I have OF 2.2.0, I ran the waveFlume tutorial, no problem with waveFoam. I tried to compile the waveDyMFoam solver using the wiki page, got this error: openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-2.2.0/waves2Foam/applications/solvers/solvers220/waveFoam/waveDyMFoam$ wclean openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-2.2.0/waves2Foam/applications/solvers/solvers220/waveFoam/waveDyMFoam$ wmake linux64GccDPOpt/options:6: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/openfoam/OpenFOAM/openfoam-2.2.0/waves2Foam/applications/solvers/solvers220/waveFoam/waveDyMFoam I saw on a previous post that the code -I..\ is the path for createFields.H which is placed in the waveFoam directory. I have a createFields.H in the waveFoam directory but no src/lnInclude (this one is in the waves2Foam directory). I am a bit lost...! Thank you for your help! My options file is: EXE_INC = \ -I.. \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/dynamicMesh/lnInclude \ -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ -I$./home/OpenFOAM/openfoam-2.2.0/waves2Foam/src/lnInclude -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude EXE_LIBS = \ -linterfaceProperties \ -ltwoPhaseInterfaceProperties \ -lincompressibleTransportModels \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -ldynamicMesh \ -ldynamicFvMesh \ -ltopoChangerFvMesh \ -lmeshTools \ -lfvOptions \ -lsampling -L$(FOAM_USER_LIBBIN) \ -lwaves2Foam |
|
April 30, 2013, 11:48 |
|
#369 | |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Quote:
I am still learning how to use Linux and this case is a very good experience for me to how to work with the environment. |
||
May 1, 2013, 04:27 |
|
#370 |
New Member
Jonas Kastrup
Join Date: Apr 2013
Posts: 3
Rep Power: 13 |
Hi Niels.
I am working with wave impacts on a monopile (cylinder) with waves on the limit of breaking. Attached is a plot of the force/moment and I would like to hear if you or others have seen something similar? The two first waveimpcats at 35 and 45 sec is breaking while the three last impacts seam to decrease in energy and become more and more smooth(no breaking on the last impact). Since the force/moment is twice the size for the 3rd wave impact compared to the last I wonder which impact is realistic. Could there be unnatural interference from the first breaking waves reflecting on the relaxation zones making the 3rd wave peak higher than it should? I hope you or others can give some feedback. |
|
May 2, 2013, 04:36 |
|
#371 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Jonas,
If the waves are breaking at different locations, then it does make sense. You could for instance log the surface elevation at different locations down the flume. I would, however, recommend that you perform an validation exercise, where you compare the results with laboratory experiments. Kind regards Niels |
|
May 2, 2013, 10:50 |
|
#372 | |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
I am having problems with my "waveDyMFoam" which I modified from "interDyMFoam". I am trying to run a simple 2D case where a box is floating on the water under the effect of waves. The video of the case can be seen here: https://www.youtube.com/watch?featur...&v=YKbj_7JMRl8 Also the case can be downloaded from here: https://sites.google.com/site/jordim...edirects=0&d=1 At first the case was not running because of some missing schemes in the "fvSchemes" file. So, I added the following lines under "divSchemes" section: div((muEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear; When I try to run the case, I get the following errors: Quote:
Do you have any idea what may be the cause of that problem? Thank you very much for your time and help. Kilroy |
||
May 3, 2013, 08:38 |
|
#373 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Kilroy,
The simulation has "crashed" way before the part of the log file, which you have shown, so it is not possible to say anything. Have you tried the following: 1. Running the moving mesh simulation without waves to see, if the crash is related to waves or mesh motion? 2. Running the simulation without a moving mesh. In the case of the latter, merely state the following in your constant/dynamicMeshDict Code:
dynamicFvMesh staticFvMesh; Kind regards Niels |
|
May 3, 2013, 17:17 |
|
#374 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
Thank you so much. I will try those steps and let you know. Kilroy |
|
May 3, 2013, 18:19 |
|
#375 | |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Niels,
I think I pin-point the problem. It is not because of the waves, it is because of the moving mesh. My original "dynamicMeshDict" file looks like below: Quote:
Can you please give me some suggestions? Thank you very much for your help and time. Kilroy |
||
May 4, 2013, 08:34 |
|
#376 |
New Member
Mohammad Ghandali
Join Date: Jan 2013
Posts: 8
Rep Power: 13 |
Hi Dear Foamers
i am working on periodicsolitary tutorial and i convert a mesh file from gammbit to openfoam and i run the case in setwaveField i have no problem but when i run the waveFoam i have this error as follows: Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Calculating field g.h time step continuity errors : sum local = 9.93914e-11, global = -2.72782e-19, cumulative = -2.72782e-19 #0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::Field<double> const&, Foam::Field<double> const&, Foam::Field<double> const&) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #4 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::lduMatrix const&, Foam::Field<double>&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #5 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #6 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #8 Foam::fvMatrix<double>::solve() in "/home/openfoam/OpenFOAM/openfoam-2.1.1/platforms/linux64GccDPOpt/bin/waveFoam" #9 in "/home/openfoam/OpenFOAM/openfoam-2.1.1/platforms/linux64GccDPOpt/bin/waveFoam" #10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #11 in "/home/openfoam/OpenFOAM/openfoam-2.1.1/platforms/linux64GccDPOpt/bin/waveFoam" Floating point exception (core dumped) any foamer can help me? tnx alot kings regards for all |
|
May 6, 2013, 15:15 |
|
#377 | |
New Member
Hf
Join Date: Nov 2012
Posts: 29
Rep Power: 14 |
Quote:
Hi Niels, I'm still struggling with the spilling breaker case. I created a new mesh by snappyHexMesh, aspect ratios around unity this time. As seen in the two screenshots for mesh around inlet and outlet, I refined the mesh at the sloped beach and around the still water surface. checkMesh reports ok. https://www.dropbox.com/s/8r6gg5uihf...sh%20inlet.png https://www.dropbox.com/s/utn2v2mxud...h%20outlet.png But when I run the case, it terminated after some time. It seems to be connected with the GAMGsolve for p_rgh. If I change the mesh density it rans a little bit longer, still terminated after some time. Have you ever experienced this kind of problem? Is this the reason you altered slightly the domain setup? Or there is some problem with my mesh. Here is the log for waveFoam. MULES: Solving for alpha1 Liquid phase volume fraction = 0.448276 Min(alpha1) = -0.0150611 Max(alpha1) = 1 DILUPBiCG: Solving for Ux, Initial residual = 0.0025231, Final residual = 3.68185e-13, No Iterations 3 DILUPBiCG: Solving for Uy, Initial residual = 0.00352815, Final residual = 1.05959e-12, No Iterations 3 GAMG: Solving for p_rgh, Initial residual = 0.00669198, Final residual = 9.62446e+85, No Iterations 1000 [0] #0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #2 in "/lib/x86_64-linux-gnu/libc.so.6" [0] #3 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::Field<double> const&, Foam::Field<double> const&, Foam::Field<double> const&) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #4 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::lduMatrix const&, Foam::Field<double>&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #5 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #6 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" [0] #8 [0] in "/home/qingping/OpenFOAM/qingping-2.1.1/platforms/linux64GccDPOpt/bin/waveFoam" [0] #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" [0] #10 [0] in "/home/qingping/OpenFOAM/qingping-2.1.1/platforms/linux64GccDPOpt/bin/waveFoam" ================================================== ============= Here is for another mesh, coarser MULES: Solving for alpha1 Liquid phase volume fraction = 0.453635 Min(alpha1) = -0.00643746 Max(alpha1) = 1 DILUPBiCG: Solving for Ux, Initial residual = 0.00202468, Final residual = 2.13295e-11, No Iterations 4 DILUPBiCG: Solving for Uy, Initial residual = 0.00375042, Final residual = 6.097e-10, No Iterations 3 [0] #0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #2 in "/lib/x86_64-linux-gnu/libc.so.6" [0] #3 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::Field<double> const&, Foam::Field<double> const&, Foam::Field<double> const&) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #4 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::lduMatrix const&, Foam::Field<double>&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #5 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #6 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" [0] #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" |
||
May 6, 2013, 15:22 |
|
#378 |
New Member
Hf
Join Date: Nov 2012
Posts: 29
Rep Power: 14 |
Options in fvSolution: (i didn't change anything)
p_rgh GAMG { tolerance 1e-7; relTol 0.0; smoother DIC;//GaussSeidel; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; }; PIMPLE { pdRefCell 0; pdRefValue 0; momentumPredictor yes; nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 2; nAlphaCorr 1; nAlphaSubCycles 1; cAlpha 1; } |
|
May 7, 2013, 04:47 |
|
#379 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
@Mohamad: It crashes immediately, while initialising the pressure, so I would assume that you have problems with your boundary and/or initial conditions.
The simulation crashes with a "GAMG::scalingFactor" problem. I have never figured out what this really means, however, it seems to be linked to negative void fractions. Have you tried to see, whether something is wrong with the mesh? Here I would recommend that you test with a stagnant body of water. @Jason: Please see above with the GAMG::scalingFactor. You are probably experiencing the crash due to negative void fractions. Yes, I truncated the upper part to avoid instabilities between air/water/bed. Kind regards Niels |
|
May 8, 2013, 07:07 |
|
#380 |
New Member
Join Date: May 2013
Posts: 3
Rep Power: 13 |
@Niles and @Jasak
Hello How are you !! i had some problem with wave 2foam periodic solitary at first i meshing my model in gambit and then convert it to foam and opean foam didnot have any problem with it after change boundry conditions and setwaveField when i run wavefoam for solve problem it have this error plz help me thank a lot albert /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.1-221db2718bbb Exec : waveFoam Date : May 08 2013 Time : 14:27:52 Host : "albert-VPCF23EFX" PID : 2513 Case : /home/albert/Desktop/periodicSolitary nProcs : 1 fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 // using new solver syntax: pcorr { solver GAMG; tolerance 1e-07; relTol 0; smoother DIC; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } // using new solver syntax: p_rgh { solver GAMG; tolerance 1e-07; relTol 0; smoother DIC; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } // using new solver syntax: p_rghFinal { solver GAMG; tolerance 1e-08; relTol 0; smoother DIC; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } // using new solver syntax: U { solver PBiCG; preconditioner DILU; tolerance 1e-09; relTol 0; } // using new solver syntax: UFinal { solver PBiCG; preconditioner DILU; tolerance 1e-09; relTol 0; } // using new solver syntax: gamma { solver PBiCG; preconditioner DILU; tolerance 1e-07; relTol 0; } PIMPLE: Operating solver in PISO mode Reading g Reading waveProperties Reading field p_rgh Reading field alpha1 Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Calculating field g.h time step continuity errors : sum local = 6.53598e-16, global = 1.97658e-17, cumulative = 1.97658e-17 GAMG: Solving for pcorr, Initial residual = 0.903804, Final residual = nan, No Iterations 1000 GAMG: Solving for pcorr, Initial residual = nan, Final residual = nan, No Iterations 1000 --> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 3 the word 'nan' file: /home/mohammadreza/Desktop/periodicSolitary/system/data::solverPerformance:corr at line 3. From function operator>>(Istream&, Scalar&) in file lnInclude/Scalar.C at line 91. FOAM exiting |
|
|
|
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 |