Source term in the compressible momentum equation
Hello everyone.
I'm studying this piece of code for the source term in the momentum equation. It's a laminar, compressible simulation in which mu is NOT constant. Code:
tmp<fvVectorMatrix> laminar::divDevRhoReff(volVectorField& U) const Laplacian( mu U) + div ( mu ( gradU^t - (2/3) divU I ) ) If mu was constant I would be happy, even if the second term is mathematically equal to (1/3) grad divU. There is surely some reason to write it this way. But I am concerned with the first term, which should be: div ( mu gradU) Perhaps that's what fvm::laplacian(muEff(), U) is ?? (It could also be mu Laplacian U, which wouldn't be good.) Btw, it seems the fluid is supposed to be Stokesian, so that lamba+(2/3) mu =0, am I right? Thanks! Daniel |
Great! Everything is fine, then. Yes, dev is the deviatoric part, and dev2 is a funny
dev2(s)=s - (2/3) trace(s) I The deviatoric is dev(s)=s - (1/3) trace(s) I , but it's precisely dev2 which is needed in this case. |
All times are GMT -4. The time now is 02:01. |