CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Structure of momentum equation in mhdFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 5, 2020, 12:09
Default Structure of momentum equation in mhdFoam
  #1
New Member
 
Edmund Teller
Join Date: Feb 2020
Posts: 12
Rep Power: 6
edmund32 is on a distinguished road
Hi,
I was just looking at the momentum equation for an incompressible MHD flow online (https://www.openfoam.com/documentati...utorialse4.php) and saw that is was slightly different in mhdfoam.C:
The equation in that link is:
Code:
 fvm::ddt(U) + fvm::div(U, U)
 - fvc::div(B, 2.0*DBU*B)
 - fvm::div(nu, U)
 + fvc::grad(DBU*magSqr(B))

 == -fvc::grad(p));

While the one in mhdFoam is



Code:
 fvm::ddt(U) + fvm::div(phi, U)
 - fvc::div(phiB, 2.0*DBU*B)
 - fvm::laplacian(nu, U)
 + fvc::grad(DBU*magSqr(B))

 == -fvc::grad(p));

I know I'm just being stupid, but why is phi and phiB used instead of U and B? And why is the vicosity term a laplacian operator rather than a divergence?

Thanks!
Edmund
edmund32 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
How to Include particle implicit and EXPLICIT source terms in VOF momentum equation ali_atrian OpenFOAM Programming & Development 2 January 12, 2016 04:01
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Question on the discretization of momentum equation in icoFoam MPJ OpenFOAM 3 October 4, 2011 09:44
Discretization of momentum equation query siw CFX 0 June 20, 2011 08:38


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