Skip to content

Segmentation fault when using field average #14

@manjirigr23

Description

@manjirigr23

So I have compiled OpenFOAM-7 on cluster with gcc 4.8.5 and openmpi 4.1.0. When I give field average in controldict my simulation throws segmentation fault after 15 sec time step with write interval 0.1 ; also when I remove that part(field average) the simulation works fine on cluster. Also core dump files are created and I have compiled using Opt and not debug compiler option , my simulation is also heavy so I cant use debug. What could be the reason for this? Here's my controldict file

/--------------------------------- C++ -----------------------------------
========= |
\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\ / O peration | Website: https://openfoam.org
\ / A nd | Version: 7
\/ M anipulation |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application fireFoam;

startFrom latestTime;

startTime 0.0;

stopAt endTime;

endTime 20.0;

deltaT 0.0001;

writeControl adjustableRunTime;

writeInterval 0.1;

purgeWrite 0;

writeFormat binary;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

graphFormat raw;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.5;

maxDeltaT 0.1;

functions
{
fieldAverage1
{
type fieldAverage;
libs ("libfieldFunctionObjects.so");
enabled true;
cleanRestart true;
writeControl outputTime;
fields
(
U
{
mean on;
prime2Mean on;
base time;
}

        p
        {
            mean        on;
            prime2Mean  off;
            base        time;
        }

        T
        {
            mean        on;
            prime2Mean  on;
            base        time;
        }
		
		k
        {
            mean        on;
            prime2Mean  on;
            base        time;
        }

        N2
        {
            mean        on;
            prime2Mean  off;
            base        time;
        }

        O2
        {
            mean        on;
            prime2Mean  on;
            base        time;
        }
		
		CO2
        {
            mean        on;
            prime2Mean  on;
            base        time;
        }
		
    );
}

}
// ************************************************************************* //

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions