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

Floating point error when trying to simulate 300 million particles MPPICFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2022, 04:20
Default Floating point error when trying to simulate 300 million particles MPPICFoam
  #1
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
Hello,


We are using cloud computing to investigate the effects of two-way and four-way coupling with high masses of small particles (between 1 and 10 micron). I have ran a case with 100 million particles (diameter, dp = 10 micron). When increasing to 300 million, the simulation cannot initialise and I get a floating point error as shown below. Has anyone encountered this before? I am using patchInjection model with MPPICFoam solver.


I assume it is linked to this post on precision issue when creating very large meshes (something we also want to do).

Code:
Constructing kinematicCloud kinematicCloud
Constructing particle forces
    Selecting particle force WenYuDrag
    Selecting particle force gravity
Constructing cloud functions
    Selecting cloud function outletExiting of type patchPostProcessing
Constructing particle injection models
Creating injector: model1
Selecting injection model patchInjection
    Constructing 3-D injection
    Choosing nParticle to be a fixed value, massTotal variable now does not determine anything.
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib64/libc.so.6"
#3  Foam::PatchInjection<Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > > >::PatchInjection(Foam::dictionary const&, Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >&, Foam::word const&) at ??:?
#4  Foam::InjectionModel<Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > > >::adddictionaryConstructorToTable<Foam::PatchInjection<Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > > > >::New(Foam::dictionary const&, Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >&, Foam::word const&) at ??:?
#5  ? at ??:?
#6  ? at ??:?
#7  ? at ??:?
#8  ? at ??:?
#9  ? at ??:?
#10  __libc_start_main in "/lib64/libc.so.6"
#11  ? at ??:?
Floating point exception (core dumped)
InjectionModel
Code:
    injectionModels
    {
        model1
        {
            type            patchInjection;
            parcelBasisType fixed;
            patchName       inlet;
            nParticle       1;
            parcelsPerSecond 30.0e8;
            SOI             0;
            massTotal       0.0;
            U0              (0 0 0);
            duration        0.1;
            flowRateProfile constant 1;
            sizeDistribution
            {
                type        fixedValue;
                fixedValueDistribution
                {
                    value  10.0e-6;
                }
            }
        }
    }
joshwilliams is offline   Reply With Quote

Old   December 5, 2022, 05:22
Default
  #2
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
FYI, we managed to fix this by setting "export WM_ARCH_OPTION=64" in etc/bashrc and etc/cshrc, and compiling from scratch.
joshwilliams is offline   Reply With Quote

Reply

Tags
mppicfoam


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
Floating point exception from twoPhaseEulerFoam openfoammaofnepo OpenFOAM Running, Solving & CFD 1 March 19, 2016 14:56
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Floating point error and divergence detected aannjj FLUENT 0 July 2, 2013 04:44
Track/pulse particles - floating point error John FLUENT 1 September 5, 2005 10:22


All times are GMT -4. The time now is 16:25.