# using Spalart-Allmaras model in interFoam

 Register Blogs Members List Search Today's Posts Mark Forums Read

 August 29, 2013, 11:24 using Spalart-Allmaras model in interFoam #1 Member   vishal Join Date: Mar 2013 Posts: 56 Rep Power: 6 Sponsored Links I an new to Openfoam , I am trying to use Spalart-Allmaras model for my nozzle flow in interFoam. I incoporated nuTilda and nutildaFinal in the fvsolutions of the system file, but I a getting this error. can any one tell me, how to solve this error. Reading g Calculating field g.h time step continuity errors : sum local = 9.77995e-05, global = -9.77995e-05, cumulative = -9.77995e-05 DICPCG: Solving for pcorr, Initial residual = 1, Final residual = 6.94573e-11, No Iterations 194 time step continuity errors : sum local = 6.7998e-15, global = -4.64687e-17, cumulative = -9.77995e-05 Courant Number mean: 0.00278549 max: 0.285502 Starting time loop Courant Number mean: 0.00193436 max: 0.198265 Interface Courant Number mean: 0 max: 0 deltaT = 0.000694444 Time = 0.000694444 MULES: Solving for alpha1 Phase-1 volume fraction = 0.0220219 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.0220388 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.0220558 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.0220728 Min(alpha1) = 0 Max(alpha1) = 1 DICPCG: Solving for p_rgh, Initial residual = 1, Final residual = 0.0419123, No Iterations 85 time step continuity errors : sum local = 4.60931e-06, global = 9.84271e-09, cumulative = -9.77897e-05 DICPCG: Solving for p_rgh, Initial residual = 0.000734712, Final residual = 3.64035e-05, No Iterations 65 time step continuity errors : sum local = 1.06533e-05, global = 2.14005e-06, cumulative = -9.56496e-05 DICPCG: Solving for p_rgh, Initial residual = 0.00326193, Final residual = 8.82474e-08, No Iterations 123 time step continuity errors : sum local = 4.04865e-09, global = 5.87426e-11, cumulative = -9.56496e-05 smoothSolver: Solving for nuTilda, Initial residual = 0, Final residual = 0, No Iterations 0 --> FOAM Warning : From function tmp SpalartAllmaras::k() const in file SpalartAllmaras/SpalartAllmaras.C at line 243 Turbulence kinetic energy not defined for Spalart-Allmaras model. Returning zero field --> FOAM Warning : From function tmp SpalartAllmaras::k() const in file SpalartAllmaras/SpalartAllmaras.C at line 243 Turbulence kinetic energy not defined for Spalart-Allmaras model. Returning zero field ExecutionTime = 0.18 s ClockTime = 1 s %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This is the what I incorporated in the SYSTEM/FVSOLUTIONS /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { pcorr { solver PCG; preconditioner DIC; tolerance 1e-10; relTol 0; } p_rgh { solver PCG; preconditioner DIC; tolerance 1e-07; relTol 0.05; } p_rghFinal { solver PCG; preconditioner DIC; tolerance 1e-07; relTol 0; } nuTildacorr { solver PCG; preconditioner DIC; tolerance 1e-10; relTol 0; } nuTilda { solver PCG; preconditioner DIC; tolerance 1e-07; relTol 0.05; } nuTildaFinal { solver smoothSolver; preconditioner DIC; tolerance 1e-07; relTol 0; } } PIMPLE { momentumPredictor no; nCorrectors 3; nNonOrthogonalCorrectors 0; nAlphaCorr 1; nAlphaSubCycles 4; cAlpha 2; } // ************************************************** *********************** //

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post albertofast OpenFOAM Running, Solving & CFD 6 August 5, 2015 10:33 taxalian SU2 3 October 4, 2013 04:45 eelcovv OpenFOAM Running, Solving & CFD 5 January 16, 2013 03:37 vandraren OpenFOAM Running, Solving & CFD 3 February 8, 2008 09:42 jj Siemens 0 October 3, 2005 15:31