|
[Sponsors] |
how to make a scalar transport equation to be conserved? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2013, 08:33 |
how to make a scalar transport equation to be conserved?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
hello
I run a solver that has a scalar transport equation scalar but value is not between 0 and 1 as the snapshot. how to resolve? this is the equation I modified solver by: Code:
// --- Scalar Transport tmp<fvScalarMatrix> gasEqn ( fvm::ddt(rho,gas) + fvm::div(phi, gas) -fvm::Sp(fvc::div(phi), gas) - fvm::laplacian(turbulence->muEff(), gas) ); gasEqn().relax(); gasEqn().solve(mesh.solver("gas")); thanks. Attached Thumbnails
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
May 5, 2013, 09:01 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
A few questions:
Bruno
__________________
|
|
May 5, 2013, 09:04 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
hi Bruno
compressible.viscous.in both rhoCentralFoam and rhoPimpleFoam it occurs. I had sent you the modified solvers and a case before.I think its because scalar transport equation is not conserved.maybe a term is excess or in lack! I use janafThermo and sutherland Code:
//thermoType hePsiThermo<pureMixture<sutherland<janaf<perfectGas<specie>>,sensibleEnthalpy>>>; thermoType { type hePsiThermo; mixture pureMixture; transport sutherland; thermo janaf; equationOfState perfectGas; specie specie; energy sensibleEnthalpy; } mixture { specie { nMoles 1; molWeight 28.96; } thermodynamics { Tlow 200; Thigh 6000; Tcommon 1000; highCpCoeffs (3.129672277499967 1.211766752750042e-3 -4.04761109000018e-7 6.409571300000324e-11 -3.780447620000211e-15 -.996955811e3 5.257756413); lowCpCoeffs (3.593868050000014 -8.419292810001117e-4 2.08457592775033e-6 -5.938441825004294e-10 -2.456771699998039e-13 -1.0512181e3 3.140021718); /*Cp 1040; Hf 2.544e+06;*/ } transport { As 1.4584e-6; Ts 110.4; /*mu 1.84e-05; Pr 0.75;*/ } } // ************************************************************************* //
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
May 5, 2013, 09:11 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, then for comparison, adapt the solver pimpleFoam as well and compare the results.
Because as I wrote before in the same thread you mentioned, this way it'll make it easier to diagnose which component is making the scalar diffuse too much!
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Passive scalar transport | novyno | OpenFOAM Running, Solving & CFD | 10 | May 5, 2016 14:31 |
problems concerning mass conservativity in bubbleFoam with custom scalar transport | cutter | OpenFOAM Programming & Development | 3 | February 10, 2015 05:25 |
Source Term on Scalar Transport Equation | alessio.nz | OpenFOAM Programming & Development | 9 | January 31, 2011 08:56 |
Scalar transport equation dimension problem | litonx | OpenFOAM Running, Solving & CFD | 3 | March 2, 2007 07:49 |
Scalar Transport Equations | David harvey | FLUENT | 1 | January 31, 2004 07:15 |