|
[Sponsors] |
May 3, 2011, 04:01 |
Meaning of fvm and fvc
|
#1 |
New Member
Nishit Joseph
Join Date: Nov 2010
Posts: 29
Rep Power: 15 |
Hi
I am a UG student working on a solver for high Ma numbers using OpenFOAM for my final year project. I am relatively new to OpenFOAM. While looking at the code of rhoCentralFoam i came across this line(s) which I am not able to figure out the menaing Code:
if (!inviscid) { volScalarField k("k", thermo.Cp()*mu/Pr); solve ( fvm::ddt(rho, e) - fvc::ddt(rho, e) - fvm::laplacian(thermo.alpha(), e) + fvc::laplacian(thermo.alpha(), e) - fvc::laplacian(k, T) ); thermo.correct(); rhoE = rho*(e + 0.5*magSqr(U)); } Code:
fvm::ddt(rho, e) - fvc::ddt(rho, e) I am trying to rewrite sonicFoam energy equation using total energy and since this solver uses total energy (for inviscid - not shown above) i thought I could copy it but was not sure what is happening in the above shown code to include viscous effect. Any help or advise will be highly appreciated! Cheers! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvm vs. fvc | Pascal_doran | OpenFOAM Programming & Development | 1 | July 8, 2010 15:35 |