CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Shock tube Problem (

21kalee August 22, 2007 05:46

I am getting error message whi
I am getting error message while running the already defined tutorial case file in sonicFoam. This happens for the case file "shockTube".

The following error message is shown:

Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&)
void Foam::divide<double,>(Foam::GeometricField<double, >&, Foam::GeometricField<double,> const&, Foam::GeometricField<double,> const&)
Foam::tmp<foam::geometricfield<double,> > Foam::operator/<double,>(Foam::tmp<foam::geometricfield<double, > > const&, Foam::tmp<foam::geometricfield<double,> > const&)
sonicFoam [0x805b611]

Can anyone sort out the problem and explain me the same. I am a beginner

hjasak August 22, 2007 05:51

Somewhere for some reason your
Somewhere for some reason your code is dividing by zero. Is your initial pressure or temperature field zero by any chance? Did you run initialisation for the case?


ash June 12, 2008 06:57

You should run setShock first
You should run setShock first to get the values of p,U and T updated....
then try for running the case file. It will definitely work

All times are GMT -4. The time now is 14:39.