CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   interFoam: No finite volume options present (https://www.cfd-online.com/Forums/openfoam-solving/128404-interfoam-no-finite-volume-options-present.html)

mehdinekooee January 10, 2014 14:59

interFoam: No finite volume options present
 
Hi Foamers,

When I run interFoam on a cluster I got the following output:
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar

Reading g
Calculating field g.h

No finite volume options present

time step continuity errors : sum local = 0.0592593, global = -0.0592593, cumulative = -0.0592593
DICPCG: Solving for pcorr, Initial residual = 1, Final residual = 7.78695e-11, No Iterations 221
time step continuity errors : sum local = 5.71578e-12, global = 4.65865e-14, cumulative = -0.0592593
Courant Number mean: 12.7285 max: 41.8982

Starting time loop
-----
"No finite volume options present" what does this phrase mean?
Does it have any effect on cpu time ?

Thanks

akidess January 12, 2014 07:37

I'm guessing you are running a case without an fvOptions file. Shouldn't be a problem, just ignore the warning.

vigneshTG July 14, 2014 03:57

1 Attachment(s)
Dear Friends !!

I recently modified the surface tension force implementation in the interfoam solver and successfully compiled it. But when i run a case using this solver i get error as shown in the snapshot.

The modification i made was F_{\sigma}=\sigma* \nabla^{2}\alpha* \hat{n} instead of F_{\sigma}=\sigma*\kappa* \nabla \alpha

I made the changes in PEqn.H file in interfoam directory and the modified code is shown below (modifications are written in bold)
Code:

{
   
    /* New one to calculate laplacian of alpha*/
    volScalarField lapalpha(fvc::laplacian(alpha1));
    /* New one to calculate laplacian of alpha*/

    volVectorField HbyA("HbyA", U);
    HbyA = rAU*UEqn.H();

    surfaceScalarField phiHbyA
    (
        "phiHbyA",
        (fvc::interpolate(HbyA) & mesh.Sf())
      + fvc::ddtPhiCorr(rAU, rho, U, phi)
    );

    adjustPhi(phiHbyA, U, p_rgh);
    phi = phiHbyA;

    surfaceScalarField phig
    (
        (
 
                fvc::interpolate(lapalpha)*interface.sigma()*interface.nHatf()
          - ghf*fvc::snGrad(rho)
        )*rAUf*mesh.magSf()
    );

    phiHbyA += phig;

    while (pimple.correctNonOrthogonal())
    {
        fvScalarMatrix p_rghEqn
        (
            fvm::laplacian(rAUf, p_rgh) == fvc::div(phiHbyA)
        );

        p_rghEqn.setReference(pRefCell, getRefCellValue(p_rgh, pRefCell));

        p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));

        if (pimple.finalNonOrthogonalIter())
        {
            phi = phiHbyA - p_rghEqn.flux();

            U = HbyA + rAU*fvc::reconstruct((phig - p_rghEqn.flux())/rAUf);
            U.correctBoundaryConditions();
            fvOptions.correct(U);
        }
    }

    #include "continuityErrs.H"

    p == p_rgh + rho*gh;

    if (p_rgh.needReference())
    {
        p += dimensionedScalar
        (
            "p",
            p.dimensions(),
            pRefValue - getRefCellValue(p, pRefCell)
        );
        p_rgh = p - rho*gh;
    }
}

Can someone tell me what is this error and how to solve this ?




vonboett July 15, 2014 04:57

I bet you devide by zero in some cells, yust give it a try with lapalpha(alpha1) with alpha1 > 0 in all cells to try it out.

vigneshTG July 15, 2014 11:05

Thank you Albrecht !! I found the error and corrected it


All times are GMT -4. The time now is 19:38.