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

Continuity error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By daylen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2022, 18:34
Default Continuity error
  #1
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
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
daylen is offline   Reply With Quote

Old   January 23, 2022, 09:59
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,080
Rep Power: 26
Yann will become famous soon enough
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
Yann is offline   Reply With Quote

Old   January 23, 2022, 14:21
Default
  #3
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 4
daylen is on a distinguished road
I increased refinementSurfaces level to 2 and now it works, thank you.
Yann likes this.
daylen is offline   Reply With Quote

Reply


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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