CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   interFoam with energy equation (http://www.cfd-online.com/Forums/openfoam-pre-processing/120046-interfoam-energy-equation.html)

sina_mech June 29, 2013 08:00

interFoam with energy equation
 
Hi friends,

I have modified interFoam solver to solve energy equation based on this report:

http://www.tfd.chalmers.se/~hani/kur...gLIU-final.pdf

Now, I'm trying to solve damBreak problem using my own solver. I have modified boundary conditions (constant temperatures for each wall), and FVsolution and FVsolver too.

I get this error while running the solver:

Code:

Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field alpha1

Reading field T

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar

Reading g
Calculating field g.h

Reading / calculating rho*cp

Reading / calculating rho*phi*cp

time step continuity errors : sum local = 0, global = 0, cumulative = 0
DICPCG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
Courant Number mean: 0 max: 0

Starting time loop

Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.00117647
Time = 0.00117647

MULES: Solving for alpha1
Phase-1 volume fraction = 0.130194  Min(alpha1) = 0  Max(alpha1) = 1
MULES: Solving for alpha1
Phase-1 volume fraction = 0.130194  Min(alpha1) = 0  Max(alpha1) = 1


--> FOAM FATAL IO ERROR:
keyword TFinal is undefined in dictionary "/home/sina/OpenFOAM/sina-2.1.1/run/damBreak/system/fvSolution::solvers"

file: /home/sina/OpenFOAM/sina-2.1.1/run/damBreak/system/fvSolution::solvers from line 22 to line 56.

    From function dictionary::subDict(const word& keyword) const
    in file db/dictionary/dictionary.C at line 461.

FOAM exiting

*** glibc detected *** myinterFoam: corrupted double-linked list: 0x098630b0 ***

I'd appreciate if anyone could help me about this crucial problem.

Thank you

sina_mech June 29, 2013 10:19

I used this code in fvSolution :

Code:

TFinal
{
$T;
}

but, to be honest, I'm not sure about it! and I don't know what exactly happens when I add this code!

nimasam June 29, 2013 16:00

;) as it works, its fine :P, but that pieces of code tell solver to use the same setup for TFinal, i guess u use pimple with outercorrector more than 1 ;) thats why it needs TFinal


All times are GMT -4. The time now is 18:25.