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

Usage of fvm and fvc

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By dl6tud

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2012, 08:54
Default Usage of fvm and fvc
  #1
Member
 
Norbert Weber
Join Date: May 2012
Location: Dresden, Germany
Posts: 37
Rep Power: 13
dl6tud is on a distinguished road
Can anyone help me to understand how to use fvm and fvc?
Here in the forum I found one helpfull thread:
The programmers guide explaines the subject in chapter 2.4. Is says, fvc means a list of values defined at locations in the geometry. It says, fvm are coefficients. Ok.

Let's take an example, the U-equation in piso-Foam:

Quote:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
);
I already fail with dU/dt. I thought, U is defined for every mesh cell -> at every location -> it must be fvc. But it is not!!! Can someone help me to understand that example?


An other approach
I think, I understand the difference between explicit (fvc) and implicit derivative (fvm). If I have an equation like u=x*x, u can be calculated easily, it is fvc. An implicit equation is the example (2.12) [A][x] = [b]. Back to dU/dt.
I may write dU/dt = u(t)-u(t-1). Explicit. fvc. Wrong. --> How do I know when to use which namespace?

Thanks a lot for your help!
Norbert
granzer likes this.
dl6tud is offline   Reply With Quote

Old   July 27, 2012, 19:28
Default
  #2
Member
 
Norbert Weber
Join Date: May 2012
Location: Dresden, Germany
Posts: 37
Rep Power: 13
dl6tud is on a distinguished road
More infos:
Taking an other example, the UEqn from mhdFoam:

Quote:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvc::div(phiB, 2.0*DBU*B)
- fvm::laplacian(nu, U)
+ fvc::grad(DBU*magSqr(B))
);
The velocity U can not be calculated analytically, only by iteration. That means it is implicitely given = fvm.

When calculating U, the field B is kept constant. If it is constant, it may be calculated/readed easily (explicitly) = fvc.

=> So whenever there is a U in the UEqn, I have to write fvm, if it is not fvc. Can someone confirm that or say it better?
dl6tud is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Meaning of fvm and fvc JLight OpenFOAM 7 October 13, 2011 12:35
Questions about the fvc and fvm starboy1985 OpenFOAM Programming & Development 0 August 2, 2011 16:52
fvm vs. fvc Pascal_doran OpenFOAM Programming & Development 1 July 8, 2010 16:35


All times are GMT -4. The time now is 13:36.