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

Continuity error cannot be removed by adjusting the outflow

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

Like Tree2Likes
  • 1 Post By Tobi
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2018, 02:36
Default Continuity error cannot be removed by adjusting the outflow
  #1
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Hi Foamers,

I am a new OpenFOAM user. Now I am trying to simulate a case relating heat transfer in a cavity shape geometry just for learning. I choose buoyantsimplefoam for my case. I am trying to push the air (inside the cavity) from the patch called "Jet" created from top wall by using toposetdict and createpatchdict. All other walls are defined in the blockMeshdict file. For better understanding, I shared my case directory with this message. Please see the files and try to fix the problem. It will help me a lot. Thanks in advance.

Anyways, The command lines are as follows,
blockMesh
topoSet
createPatch -overwrite
buoyantSimpleFoam
paraFoam

When I simulate my case I face the continuity error like that
[code]
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 : 4.18896e-05
Specified mass inflow : 0.00269453
Specified mass outflow : 0
Adjustable mass outflow : 0
Attached Files
File Type: gz Buoyancy.tar.gz (54.1 KB, 11 views)

Last edited by Mondal131211; September 24, 2018 at 21:33. Reason: Update
Mondal131211 is offline   Reply With Quote

Old   September 24, 2018, 04:34
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

please use code tags around your terminal outputs to improve the readability of your stuff. Additionally, I think that your statement
Quote:
I think all is ok except defining the pressure boundary conditions.
is in contradiction to your problem, isnīt it. In order to give any feedback resolving the problem, you have to provide more information. However, checking just your boundary conditions give the answer. You do not specifiy any patch for your pressure. You can use a fixed point as pressure (referencePressure) but this should only work for closed domains.
Mondal131211 likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 24, 2018, 21:08
Default Continuity error cannot be removed by adjusting the outflow.
  #3
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

please use code tags around your terminal outputs to improve the readability of your stuff. Additionally, I think that your statement

is in contradiction to your problem, isnīt it. In order to give any feedback resolving the problem, you have to provide more information. However, checking just your boundary conditions give the answer. You do not specifiy any patch for your pressure. You can use a fixed point as pressure (referencePressure) but this should only work for closed domains.
Hi Tobi,

Thank you for your response. Actually, I am new in this forum. This is my first post. That is why I could not make my post attractive to the forum stuff. Anyways, I am now trying to simulate a case like a cavity shape by buoyantsimplefoam. I want to push the air inside the cavity by a patch called "Jet" (created from top wall by using toposetdict and createpatchdict) in my simulations while the left wall is considered hot and right wall is cold wall. For the clear understanding about my simulation, I attached my case directory with the problem image in this message. Please see the attached file here and try to solve my problem. it will help me a lot.

How to set reference pressure in BC? I am quite new with OpenFOAM. Sorry for bothering.
Attached Files
File Type: gz Buoyancy.tar.gz (54.1 KB, 12 views)
Mondal131211 is offline   Reply With Quote

Old   September 26, 2018, 05:21
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Mondal,

I will have a look at your case today in the evening - if there is time. However, I will not solve your problem and give you the answer straightaways. I might give you hints but the best way to learn FOAM is to solve the problems yourself. Keep in mind, that the basics of numerics are a fundamental part of applying appropriate boundary conditions.

To you question - set reference pressure:

- you cannot set a reference pressure in the boundaries (that does not make sense)
- you can set a reference pressure at a specific numerical cell within the fvSolutions file; however, this is only needed for closed domains (no inlet/outlet).
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 26, 2018, 07:18
Default
  #5
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Hi Tobi,

I have been trying this problem for almost one month. But it shows same problem each time. However, please have a look my case directories and give me hints if there any other problem. Thank you very much for your help.
Mondal131211 is offline   Reply With Quote

Old   September 26, 2018, 16:24
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
1 minute after checking your stuff. See attachment.
Check you p_rgh boundary conditions


Good luck
Attached Images
File Type: jpeg test.jpeg (86.8 KB, 197 views)
Mondal131211 likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 26, 2018, 21:14
Default
  #7
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by Tobi View Post
1 minute after checking your stuff. See attachment.
Check you p_rgh boundary conditions


Good luck
Hi Tobi,
I am very happy to see this kind of picture. Thank you very much. I checked the boundary conditions and this time iteration is running but is not converging on my solution. After 118 iterations simulations stopped and show the error like this. Below error message, I also add my defined p_rgh file that runs 118 iterations and stooped. I think I am really disturbing you. I am just starting to learn OpenFOAM that's why I ask very silly things about my simulations. I have to solve this problem in any way as early as possible. Any suggestions for that error?

Code:
...........bounding k, min: -42.1468 max: 482.077 average: 0.350154
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  log in "/lib/x86_64-linux-gnu/libm.so.6"
#4  Foam::nutUWallFunctionFvPatchScalarField::calcYPlus(Foam::Field<double> const&) const at ??:?
#5  Foam::nutUWallFunctionFvPatchScalarField::calcNut() const at ??:?
#6  Foam::nutWallFunctionFvPatchScalarField::updateCoeffs() at ??:?
#7  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate() at ??:?
#8  Foam::RASModels::kEpsilon<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >::correctNut() at ??:?
#9  Foam::RASModels::kEpsilon<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >::correct() at ??:?
#10  ? at ??:?
#11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12  ? at ??:?
Floating point exception (core dumped)
...............
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
p_rgh...........
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 1e5;

boundaryField
{
    cold
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }

    hot
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }

    top
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }

    bottom
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }
    front
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }
    back
    {
        //type            fixedFluxPressure;
        type            fixedValue;
        value           uniform 1e5;
    }
    Jet
    {
        //type            zeroGradient;
        type            fixedValue;
        value           uniform 1e5;
    }
}
Attached Images
File Type: png error.png (98.2 KB, 30 views)

Last edited by Tobi; September 27, 2018 at 01:53.
Mondal131211 is offline   Reply With Quote

Old   September 27, 2018, 01:49
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I am not investigating into that problem because:
  • I guess it is just a simple test case without any real application
  • as far as the solver is running and afterward failing, it is probably a problem of the physics that you cannot resolve, wrong set-up of the solver such as a wrong chosen algorithm and therefore non-sense settings for e.q. relaxation, PIMPLE, SIMPLE, residual control, linear solver settings and so on
  • It is a different topic; so I recommend you to open a new question
  • No time

For your interest, the quantity k makes trouble.
Code:
bounding k, min: -42.1468 max: 482.077 average: 0.350154
Besides, I stopped the calculation after 60 iterations. I guess I would run into the same problems without adopting your case concerning the numerics.
Good luck.

PS: Please use C O D E T A G S
__________________
Keep foaming,
Tobias Holzmann
Tobi 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Continuity error cannot be removed by adjusting the outflow - rotating domain case Swift OpenFOAM Running, Solving & CFD 4 July 10, 2017 08:36
Continuity error cannot be removed by adjusting the outflow. Please check the velocit range_rover OpenFOAM Running, Solving & CFD 7 August 17, 2016 01:12
potentialFoam doesnt start?! Sway OpenFOAM Running, Solving & CFD 0 July 2, 2015 07:48
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


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