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/)
-   -   Continuity error (https://www.cfd-online.com/Forums/openfoam-solving/240744-continuity-error.html)

daylen January 21, 2022 18:34

Continuity error
 
Hi, i´m simulating flow through a box with 2 vents containing 6 spheres, when i run the simulation it gives me error
simpleFoam case:
https://www.dropbox.com/s/fm8jfw1txe...ndard.zip?dl=0


Code:

/*---------------------------------------------------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  9
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 9-b456138dc4bc
Exec  : simpleFoam
Date  : Jan 21 2022
Time  : 20:18:10
Host  : "ifrit-virtual-machine"
PID    : 44771
I/O    : uncollated
Case  : /home/ifrit/OpenFOAM/ifrit-9/run/box3circular17
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: Convergence criteria found
        p: tolerance 0.0001
        U: tolerance 0.0001
        "(k|omega|epsilon)": tolerance 0.0001

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
RAS
{
    model          kOmegaSST;
    turbulence      on;
    printCoeffs    on;
    alphaK1        0.85;
    alphaK2        1;
    alphaOmega1    0.5;
    alphaOmega2    0.856;
    gamma1          0.555556;
    gamma2          0.44;
    beta1          0.075;
    beta2          0.0828;
    betaStar        0.09;
    a1              0.31;
    b1              1;
    c1              10;
    F3              false;
}

No MRF models present

No fvModels present
No fvConstraints present

Starting time loop

Time = 1

smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 0.0409039, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0
smoothSolver:  Solving for Uz, Initial residual = 0, Final residual = 0, No Iterations 0


--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 0.000277875
Specified mass inflow  : 0.015675
Specified mass outflow  : 0
Adjustable mass outflow : 8.36708e-28


    From function bool Foam::adjustPhi(Foam::surfaceScalarField&, const volVectorField&, Foam::volScalarField&)
    in file cfdTools/general/adjustPhi/adjustPhi.C at line 107.

FOAM exiting


Yann January 23, 2022 09:59

Hi,


Have you checked your mesh? It seems you don't have any outlet patch in your mesh, I guess something went wrong while meshing.


Yann

daylen January 23, 2022 14:21

I increased refinementSurfaces level to 2 and now it works, thank you.


All times are GMT -4. The time now is 12:39.