T equation

TimMJN's picture
Submitted by TimMJN on Wed, 06/27/2018 - 15:17

Dear all,

I am looking into the scalar transport models in order to implement them in another solver. I've found that all of the employed transport equations are of the form below (taken from Teqn in cfdemSolverPisoScalar):


fvScalarMatrix TEqn
(
fvm::ddt(voidfraction,T) - fvm::Sp(fvc::ddt(voidfraction),T)
+ fvm::div(phi, T) - fvm::Sp(fvc::div(phi),T)
- fvm::laplacian(alphaEff*voidfraction, T)
==
Tsource
+ radiation->ST(rhoCpRef, T)
);
<\code>

I'm confused by the 2nd and 4th terms. It seems they are there to remove that special and temporal variation of the void fraction from the equation. Is this because this is a transport equation for temperature, not for thermal energy (intensive vs extensive property)?

I'm trying to implement non-constant k, rho and Cp, which are being represented by volScalarFields. I've pasted the changes I made below, but these result in unphysical heat-fluxed resulting from gradients in k/rho/Cp. If someone has experience with this, could you give me some feedback?

Many thanks!


fvScalarMatrix TEqn
(
fvm::ddt(voidfraction*rho*Cp,T) - fvm::Sp(fvc::ddt(voidfraction)*rho*Cp,T)
+ fvm::div(phi*fvc::interpolate(rho*Cp), T) - fvm::Sp(fvc::div(phi)*rho*Cp,T)
- fvc::div(k*voidfraction, fvc:grad(T))
==
Qsource
);
<\code>

paul | Thu, 06/28/2018 - 11:50

These are corrections to compensate for mass errors/discontinuities in the carrier phase and have nothing to do with being intensive/extensive.

I can recommend checking out how OpenFOAM handles changing thermodynamic properties. Changing heat capacities may require consideration of the temporal change in rhoCpvoidfraction. May I suggest taking a step back from tackling the spatial and first figuring out energy conservation under temporal changes in rho and Cp?

My first intuition would be something along the lines of
fvm::ddt(voidfraction*rho*Cp,T) - fvm::Sp(fvc::ddt(voidfraction)*rho*Cp,T) - fvm::Sp(fvc::ddt(rho)*voidfraction*Cp,T) - fvm::Sp(fvc::ddt(Cp)*voidfraction*rho,T)
or
fvm::ddt(voidfraction*rho*Cp,T) - fvm::Sp(fvc::ddt(voidfraction*rho*Cp),T)

TimMJN's picture

TimMJN | Thu, 06/28/2018 - 15:32

Hey Paul,

Thank you for your reply! Could you maybe elaborate a bit more how these terms correct for discontinuities? I'm finding it hard to find any info on this. OpenFOAM's changes in thermodynamic properties are mainly related to compressibility, which is not what I'm trying to do. Also, the problems occur even when rho and Cp are kept constant.. :/

Again, thank you very much for your help!

Kind regards,

Tim Nijssen
Eindhoven University of Technology

syedUConn | Thu, 04/18/2019 - 23:23

Hi TimMJN,
Did you get an answer to your question? I am also confused about these two terms