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

barotropicCavitatingFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2016, 20:33
Default barotropicCavitatingFoam
  #1
New Member
 
Myth
Join Date: Jul 2011
Location: Unitek kingdom
Posts: 17
Rep Power: 14
mg.mithun is on a distinguished road
Send a message via Yahoo to mg.mithun Send a message via Skype™ to mg.mithun
Hi Foamers,
I am new to OpenFOAM and I have a specific question regarding barotropicCavitatingFoam in Foam extend.
I haven't seen many discussion regarding this solver in this forum.
Can somebody explain to me about the pEqn.H of the solver?
the code looks like this

Code:
{ 
    surfaceScalarField rUAf = 1.0/fvc::interpolate(UEqn.A()); 
 
    U = UEqn.H()/UEqn.A(); 
 
    phi = fvc::interpolate(U) & mesh.Sf(); 
 
    // Bug fix: must change name of phi on copy to keep objectRegistry happy 
    // HJ, 7/Nov/2010 
    surfaceScalarField phiU 
    ( 
        "phiU", 
        phi 
    ); 
 
    surfaceScalarField phip = fvc::interpolate(psiByRho)*phi; 
 
    for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++) 
    { 
        fvScalarMatrix pEqn 
        ( 
            fvm::laplacian(rUAf, p) 
        ); 
 
        solve 
        ( 
             psiByRho*fvm::ddt(p) 
           + fvm::div(phip, p) - fvm::Sp(fvc::div(phip), p) 
           + fvc::div(phi) - pEqn 
        ); 
 
        if (nonOrth == nNonOrthCorr) 
        { 
            phi -= pEqn.flux(); 
        } 
    } 
 
    U += fvc::reconstruct(phi - phiU); 
    U.correctBoundaryConditions(); 
}
Does this solver have any limitations in using PIMPLE?

How is it different from the cavitatingFoam Solver?
mg.mithun 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



All times are GMT -4. The time now is 03:06.