blueCFD / Core

Coordination repository for the blueCFD-Core: Issue tracking, Wiki, project webpage and miscellaneous scripts
http://bluecfd.github.io/Core
51 stars 10 forks source link

SigSegV handler error #164

Closed ananddoss2004 closed 2 years ago

ananddoss2004 commented 3 years ago

Hello Brunos,

For the first time, I am experiencing SigSegV handler error as follows,

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create fluid mesh for region air for time = 0

Create solid mesh for region human for time = 0

*** Reading fluid mesh thermophysical properties for region air

    Adding to thermoFluid

Selecting thermodynamics package
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleEnthalpy;
}

--> FOAM Warning :
    From function const Foam::HashTable<Foam::List<int>, Foam::word>& Foam::polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 467
    Removing patchGroup 'wall' which clashes with patch 61 of the same name.
    Adding to rhoFluid

    Adding to UFluid

    Adding to phiFluid

    Adding to gFluid

    Adding to hRefFluid

    Adding to ghFluid

    Adding to ghfFluid

    Adding to turbulence

Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
RAS
{
    RASModel        kEpsilon;
    turbulence      on;
    printCoeffs     on;
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

Selecting radiationModel none
    Adding to KFluid

    Adding to dpdtFluid

    Adding MRF

No MRF models present

    Adding fvOptions

No finite volume options present

*** Reading solid mesh thermophysical properties for region human

    Adding to thermos

Selecting thermodynamics package
{
    type            heSolidThermo;
    mixture         pureMixture;
    transport       constIso;
    thermo          hConst;
    equationOfState rhoConst;
    specie          specie;
    energy          sensibleEnthalpy;
}

    Adding to radiations

Selecting radiationModel none
    Adding fvOptions

Creating finite volume options from "system/fvOptions"

Selecting finite volume options model type scalarSemiImplicitSource
    Source: heat_Source6
    - selecting cells using cellZone human
    - selected 45218 cell(s) with volume 347.0554
Region: air Courant Number mean: 0 max: 0
Region: human Diffusion Number mean: 0.001904147 max: 0.6517289
deltaT = 0.5
Region: air Courant Number mean: 0 max: 0
Region: human Diffusion Number mean: 0.001904147 max: 0.6517289
deltaT = 0.6
Time = 0.6

Pimple iteration 0

Solving for fluid region air
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCGStab:  Solving for Ux, Initial residual = 1, Final residual = 5.890937e-008, No Iterations 7
DILUPBiCGStab:  Solving for Uy, Initial residual = 1, Final residual = 9.006754e-008, No Iterations 7
DILUPBiCGStab:  Solving for Uz, Initial residual = 1, Final residual = 6.033894e-008, No Iterations 5
Generating stack trace...

Backtrace:
        ZN10StackTraceC1Ev [0x705c1465+0x25]
                 module: C:\PROGRA~1\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
        ZN4Foam5error10printStackERNS_7OstreamE [0x1131c88+0x218]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam7sigSegv14sigSegvHandlerEi [0x1133883+0x33]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        (No symbol) [0x406907]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        _C_specific_handler [0x7ffc969d7ff8+0x98]
                 module: C:\WINDOWS\System32\msvcrt.dll
        0_chkstk [0x7ffc97f510ff+0x11f]
                 module: C:\WINDOWS\SYSTEM32\ntdll.dll
        RtlRaiseException [0x7ffc97efb474+0x434]
                 module: C:\WINDOWS\SYSTEM32\ntdll.dll
        KiUserExceptionDispatcher [0x7ffc97f4fc2e+0x2e]
                 module: C:\WINDOWS\SYSTEM32\ntdll.dll
        ZN4Foam15mappedPatchBase9facePointERKNS_8polyMeshEiNS1_17cellDecompositionE [0x632cfdee+0x28e]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libmeshTools.dll
        ZNK4Foam15mappedPatchBase10facePointsERKNS_9polyPatchE [0x632d01db+0x9b]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libmeshTools.dll
        ZNK4Foam15mappedPatchBase11calcMappingEv [0x632d488f+0x7f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libmeshTools.dll
        ZNK4Foam15mappedPatchBase10distributeIdEEvRNS_4ListIT_EE [0x6b751d15+0x1c5]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libcompressibleTurbulenc                                                                                           eModels.dll
        ZN4Foam12compressible56turbulentTemperatureCoupledBaffleMixedFvPatchScalarField12updateCoeffsEv [0x6b6486b9+0x2a                                                                                           9]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libcompressibleTurbulenc                                                                                           eModels.dll
        ZN4Foam17mixedFvPatchFieldIdE8evaluateENS_8UPstream10commsTypesE [0x6b6980c2+0x22]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libcompressibleTurbulenc                                                                                           eModels.dll
        ZN4Foam29mixedEnergyFvPatchScalarField12updateCoeffsEv [0x6a30bd43+0xd3]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libfluidThermophysicalMo                                                                                           dels.dll
        (No symbol) [0x41d84f]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        (No symbol) [0x455b56]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        (No symbol) [0x434ea6]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        (No symbol) [0x48efa7]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        (No symbol) [0x4013f7]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        (No symbol) [0x40152b]
                 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\chtMultiRegionFoam.exe
        BaseThreadInitThunk [0x7ffc96737034+0x14]
                 module: C:\WINDOWS\System32\KERNEL32.DLL
        RtlUserThreadStart [0x7ffc97efcec1+0x21]
                 module: C:\WINDOWS\SYSTEM32\ntdll.dll

I believe its signal segmentation error and something to do with temperature boundary condition. I have attached the boundary condition files. Please help me what cause this error ?

Also courant number for air is zero, how? Case.zip

wyldckat commented 3 years ago

Quick notes:

  1. Courant No = 0 probably because the initial U field is set to 0.0...

  2. This:

    ZN4Foam12compressible56turbulentTemperatureCoupledBaffleMixedFvPatchScalarField12updateCoeffsEv ...
    ZN4Foam17mixedFvPatchFieldIdE8evaluateENS_8UPstream10commsTypesE [0x6b6980c2+0x22]
    ZN4Foam29mixedEnergyFvPatchScalarField12updateCoeffsEv [0x6a30bd43+0xd3]
    • It's hard to spot, but the crash is due to something going wrong in a boundary condition mixedEnergy.
  3. More specifically, sigSegV usually means that a bad memory access was attempted, resulting in the application crashing. Said crash seems to have been due to something going wrong during mapping between patches....

        ZN4Foam15mappedPatchBase9facePointERKNS_8polyMeshEiNS1_17cellDecompositionE [0x632cfdee+0x28e]
        ZNK4Foam15mappedPatchBase10facePointsERKNS_9polyPatchE [0x632d01db+0x9b]
        ZNK4Foam15mappedPatchBase11calcMappingEv [0x632d488f+0x7f]
        ZNK4Foam15mappedPatchBase10distributeIdEEvRNS_4ListIT_EE [0x6b751d15+0x1c5]
        ZN4Foam12compressible56turbulentTemperatureCoupledBaffleMixedFvPatchScalarField12updateCoeffsEv [0x6b6486b9+0x2a                                                                                           9]

The words mapped and turbulentTemperatureCoupledBaffleMixed appear in there, which refer to such a mapped patch between regions...

I did not look into the case, since it would take considerable time to do so.

ananddoss2004 commented 3 years ago

Issue Resolved.

  1. Courant number fixed by giving velocity boundary condition instead of Volume flow rate.
  2. Turbulent temperature coupled baffle mixed boundary condition was fixed by renumber mesh to all the regions created which synched the mapped wall boundary condition.