Aalto-CFD / DLBFoam

DLBFoam: An open-source dynamic load balancing model for fast reacting flow simulations in OpenFOAM. https://doi.org/10.1016/j.cpc.2021.108073, https://doi.org/10.1063/5.0077437
GNU General Public License v3.0
75 stars 27 forks source link

error when using loadBalance with rhoReactingFoam #42

Open rasaka1701 opened 2 months ago

rasaka1701 commented 2 months ago

Hi, I try to slove a high Ma number field with parallel rhoReactingFoam, with mechanism of GRI3.0. The mechanism has been translated into *.foam files, and loadBalance is applied. My chemistrylProperties settings:

refmapping
{
    active          true;
    mixtureFractionProperties
    {
        oxidizerMassFractions
        {
            N2              0.8;
            O2              0.2;
        }
        fuelMassFractions
        {
            C2H4           1;
        }
        #include "$FOAM_CASE/chemkin/therm.foam";
    }
    tolerance       1e-8;
}

chemistry               on;

initialChemicalTimeStep     1.0e-10;

loadbalancing
{
    active  true;
    log true;
}

chemistryType 
{
    solver  EulerImplicit;
    method  loadBalanced;
}

EulerImplicitCoeffs
{
    cTauChem        1;
    equilibriumRateLimiter      on;
}

odeCoeffs
{
    solver          seulex;
    absTol          1e-08;
    relTol          1e-05;
}

#include "$FOAM_CASE/chemkin/rea.foam";

It works for two steps, as log has reported the loadBalance results.

[202] Sender rank: 202 sends to: "(68 69 )" counts: "(1441 3832 )" remaining problems:  4477

Then it reports error, where different cores report different errors:

DILUPBiCGStab:  Solving for Uz, Initial residual = 6.68677e-05, Final residual = 2.46475e-11, No Iterations 1

[65] --> FOAM FATAL IO ERROR: 
[65] Wrong token type - expected scalar value, found on line 0: word 'z'

[117] Bad token - could not get int32

[17] Bad token - could not get scalar value

If i change chemistryType method into standard, it can normally run, so i think this would be a DLBfoam error. Much gratitude if you have any suggestions.

moreff commented 2 months ago

Hi, which OpenFOAM version did you use?

rasaka1701 commented 2 months ago

Hi, which OpenFOAM version did you use?

i'm using of v2006, and also using DLBFoam v1.0_OFv2006.