CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Meaning of fvm and fvc

Register Blogs Community New Posts Updated Threads Search

Like Tree81Likes
  • 3 Post By JLight
  • 63 Post By tonyuprm
  • 2 Post By Bernhard
  • 6 Post By vkrastev
  • 1 Post By JLight
  • 6 Post By vkrastev

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 3, 2011, 04:01
Default Meaning of fvm and fvc
  #1
New Member
 
Nishit Joseph
Join Date: Nov 2010
Posts: 29
Rep Power: 15
JLight is on a distinguished road
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));
        }
What does
Code:
fvm::ddt(rho, e) - fvc::ddt(rho, e)
really mean?

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!
vivek05, ayoys and Teresa.Z like this.
JLight is offline   Reply With Quote

 


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fvm vs. fvc Pascal_doran OpenFOAM Programming & Development 1 July 8, 2010 15:35


All times are GMT -4. The time now is 04:51.