CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   DPMFoam error with sphere drag (https://www.cfd-online.com/Forums/openfoam-solving/248065-dpmfoam-error-sphere-drag.html)

Turhan February 22, 2023 09:09

DPMFoam error with sphere drag
 
Dear all,
I am trying to simulate a water/sand slurry inside a pipe. For this I first used the icoUncoupledKinematicParcelFoam solver. This worked fine and gave no errors. However, since the interaction of particle to fluid is important, I wanted to transition to using DPMFoam. When doing this I get an error, and in this error I see certain terms such as KinematicCloud, SphereDragForce, ParticleForceList. This gives me an idea about where the error is located, but I am unable to figure out how to solve it since I don't see why exactly an error occurs there.
Could someone help me out with figuring out what could cause the error?



Solving2-D cloud kinematicCloud
#0 Foam::error:: printStack(Foam::Ostream&) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#1 Foam::sigFpe::sigHandler(int) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#2 ? in /lib/x86_64-linux-gnu/libpthread.so.0
#3 Foam::SphereDragForce<Foam::KinematicCloud<Foam::C loud<Foam::CollidingParcel<Foam::KinematicParcel<F oam:: particle> > > > >::calcCoupled(Foam::CollidingParcel<Foam::Kinemat icParcel<Foam:: particle> > const&, Foam::KinematicParcel<Foam:: particle>::trackingData const&, double, double, double, double) const in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/liblagrangianIntermediate.so
#4 Foam::ParticleForceList<Foam::KinematicCloud<Foam: :Cloud<Foam::CollidingParcel<Foam::KinematicParcel <Foam:: particle> > > > >::calcCoupled(Foam::CollidingParcel<Foam::Kinemat icParcel<Foam:: particle> > const&, Foam::KinematicParcel<Foam:: particle>::trackingData const&, double, double, double, double) const in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#5 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#6 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#7 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#8 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#9 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#10 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#11 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#12 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
#13 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#14 ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/DPMFoam
Floating point exception (core dumped)

Turhan March 13, 2023 05:58

I have worked it out and like to explain to those who may get this error.

I solved this by using the goldsmith tutorial (Which also uses DPMFoam) as a base and then adjust this into the simulation I want to do.
I changed the geometry, boundary conditions, etc and looked if an error occured when doing this. (At first I did this to see where I was wrong)
However, when I completely changed the tutorial into the simulation I wanted to do, the error did not even occur and the simulation worked.

So my suggestion to myself and anyone having this error is to first take a tutorial which uses the same solver. And then change the parameters step by step until it fully changes in whatever you wish to simulate.


All times are GMT -4. The time now is 06:09.