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/)
-   -   something run with runTime++: core dumped (https://www.cfd-online.com/Forums/openfoam-solving/145800-something-run-runtime-core-dumped.html)

allenfieldin December 12, 2014 08:35

something run with runTime++: core dumped
 
Hi,guys,

I modified the icoFsiFoam in extend 3.0 and I came into a problem which concerns runTime++ inside the while (runTime.run()) loop, my solver code looks like this:
________________________________________________
Quote:

while (runTime.run())
{
# include "CourantNo.H"
Info<<"problem here 1 ! "<<endl;
# include "readTimeControls.H"

#include "alphaCourantNo.H"
Info<<"problem here 2 ! "<<endl;

# include "setDeltaT.H"
Info<<"problem here 3 ! "<<endl;

runTime++;

Info<<"problem here 4 ! "<<endl;
.......
.......
}
_________________________________________

and the case log gives the following error after 20 time steps elapsed:
Quote:

Courant Number mean: 0.000316668 max: 0.00608423 velocity magnitude: 0.0786566
problem here 1 !
Interface Courant Number mean: 9.70933e-06 max: 0.00164405
problem here 2 !
problem here 3 !
Segmentation fault (core dumped)
it stops without typing "problem here 3 ! ".:eek:

the interesting thing is after I change the time step to smaller values, the case still run for 20 steps!! exactly!

as I am running a FSI problem with icoFsiFoam in foam-extnd 3.0, the controlDict of the fluid part is:

Quote:

application icoFsiFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 50;

deltaT 0.0005;

writeControl timeStep;

writeInterval 20;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression compressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep no;

maxCo 0.5;

maxAlphaCo 0.25;

maxDeltaT 1;


the fluid part controlDict has the same content except dropping "application icoFsiFoam;"

Can anyone tell me what happened? is the controlDict not right?

Thanks for any help and hint

/Allen


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