CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Error during iterations. Modifications on shallowWaterFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2018, 12:12
Default Error during iterations. Modifications on shallowWaterFoam
  #1
New Member
 
Daniel Camilo Roman Quintero
Join Date: May 2018
Posts: 1
Rep Power: 0
DanielRoman is on a distinguished road
Hello everybody. I have modified the shallowWaterFoam solver in order to add some restrictive stresses and address a land slide flow model which momentum equation is quite similar to these from the shallow water problem. I compiled the solver and run simple a case (the same squareBump), it begins calculating but then after some iterations I got this error:

Code:
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
 #2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::sqrt(Foam::Field<double>&, Foam::UList<double> const&) at ??:?
#4  ? at ??:?
#5  ? at ??:?
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7  ? at ??:?
My momentum equation reads:

Code:
if (pimple.momentumPredictor())
            {
                solve(hUEqn == (-1.0/rho)*(h*kap*rho*gTz*soli*fvc::div(Tsd)
                               +sign(graUyx)*h*rho*gTz*soli*fvc::div(Tss)
                               +sign(graUxy)*h*rho*gTz*soli*fvc::div(Tsi)
                               +h*rho*gTz*soli*tan(phib)*(GUx+GUy)
                               -nuf*mu*h*divgUT
                               -rho*gTrans*h)
                     );
            
                // Constrain the momentum to be in the geometry if 3D geometry
                if (mesh.nGeometricD() == 3)
                {
                    hU -= (gHat & hU)*gHat;
                    hU.correctBoundaryConditions();
                }
            }
I guess that something is happening with a negative square root argument, due to the sigFpe Error but if someone has a clear idea I will appreciate any suggestions. Thanks in advance!



Regards,


Daniel.


PS: I attached couple files. One is the "log" file and the other is the solver landSlideFoam.C
Attached Files
File Type: gz log (copy).tar.gz (2.0 KB, 0 views)
File Type: gz landSlideFoam (copy).C.tar.gz (1.8 KB, 2 views)
DanielRoman is offline   Reply With Quote

Reply

Tags
land slide, shallowwaterfoam, sigfpe


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
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 23:13
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


All times are GMT -4. The time now is 04:42.