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

icoFoam "Continuity error can not be removed by adjusting the outflow"

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2017, 10:17
Default icoFoam "Continuity error can not be removed by adjusting the outflow"
  #1
Member
 
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9
jeanpinto24| is on a distinguished road
When changing the geometry of the cavity (solver icoFoam) case to a box with a cylindrical inlet and outlet like the attached image, I get the following error:

https://drive.google.com/open?id=0B8...1F1U1JkUko1cDQ

-> FOAM FATAL ERROR:
Continuity error can not be removed by adjusting the outflow.
Please check the velocity boundary conditions and / or run potentialFoam to initialise the outflow.
Total flux: 0.284255
Specified mass inflow: 1246.79
Specified mass outflow: 0
Adjustable mass outflow: 0


From function adjustPhi (surfaceScalarField &, const volVectorField &, volScalarField &)
In file cfdTools / general / adjustPhi / adjustPhi.C at line 118.

The entrance is by the lower cylinder.

I attach the files 0 / U and 0 / p:

FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 1);
}

exit
{
type fixedValue;
value uniform (0 0 0);
}

walls
{
type fixedValue;
value uniform (0 0 0);
}
}





FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}

exit
{
type zeroGradient;
}

walls
{
type zeroGradient;
}
}
jeanpinto24| is offline   Reply With Quote

Old   February 23, 2017, 16:53
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
hello jeanpinto24|,
setting all inputs and outputs to a fixed value does not work with incompressible flows.
So either set the input or the output and leave the other for example zero gradient.

hope this helps
Wouter
wouter is offline   Reply With Quote

Old   February 24, 2017, 04:44
Default question mark
  #3
Member
 
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9
jeanpinto24| is on a distinguished road
If the speed at the input can not have a fixed value, how is the input speed defined for the control volume? (Which in my case has a fixed value in the input).

Jean.
jeanpinto24| is offline   Reply With Quote

Old   February 24, 2017, 05:07
Default
  #4
Member
 
Andrea Di Ronco
Join Date: Nov 2016
Location: Milano, Italy
Posts: 55
Rep Power: 9
Diro7 is on a distinguished road
Hi,

you can of course set a fixed velocity on the inlet, but you can't set another one at the outlet. icoFoam is a solver for incompressible fluid flows, so total volumetric flow rate must be conserved.

If you set a velocity on the inlet, the actual value at the outlet will be determined by the solution. Also, your inlet and outlet sections seem to be equal, so fixing different velocities at inlet and outlet is totally unphysical!

The usual choice is to set zeroGradient at the outlet, so fixing the gradient the actual value can be determined according the inlet value.

The same holds for pressure: it's common to set a fixedValue at the outlet (typically 0, since the fluid is incompressible only pressure differences matter) and zeroGradient at the inlet.

Andrea
Diro7 is offline   Reply With Quote

Old   February 24, 2017, 05:36
Default .-
  #5
Member
 
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9
jeanpinto24| is on a distinguished road
Hello Andrea,

Thank you for your thoughts on this case. According to your advice, make a change of the file 0 / U as follows (It is correct that the two cylinders have equal geometry):

FoamFile
{
Version 2.0;
Format ascii;
Class volVectorField;
Object U;
}
// * * * * * * * * * * * * * *

Dimensions [0 1 -1 0 0 0 0];

InternalField uniform (0 0 0);

BoundaryField
{
Inlet
{
Type fixedValue;
Value uniform (0 0 1);
}

Exit
{
Type zeroGradient;
}

Walls
{
Type zeroGradient;
}
}

I kept the file 0 / p:

FoamFile
{
Version 2.0;
Format ascii;
Class volScalarField;
Object p;
}
// * * * * * * * * * * * * * *

Dimensions [0 2 -2 0 0 0 0];

InternalField uniform 0;

BoundaryField
{
Inlet
{
Type zeroGradient;
}

Exit
{
Type zeroGradient;
}

Walls
{
Type zeroGradient;
}
}

I am waiting for the results of the simulation.

Jean.
jeanpinto24| is offline   Reply With Quote

Old   February 24, 2017, 08:31
Default video of the simulation
  #6
Member
 
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9
jeanpinto24| is on a distinguished road
https://drive.google.com/file/d/0B89...phdU9FbXc/view
jeanpinto24| is offline   Reply With Quote

Old   February 24, 2017, 16:45
Default
  #7
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
hello jeanpinto24|,

now you have set the wall as an outlet. fixed value for the wall of U=(0,0,0) because there is no flow through the wall.

Hope this helps
Wouter
wouter is offline   Reply With Quote

Old   February 25, 2017, 10:51
Default .-
  #8
Member
 
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9
jeanpinto24| is on a distinguished road
Hi wouter

I will now change from solver of icoFoam to buoyantBoussinesqPimpleFoam, I have the doubt to apply the Contour condition of Temperature, I would do it as follows:

FoamFile
{
Version 2.0;
Format ascii;
Class VolScalarField;
Object T;
}
// * * * * * * * * * * * * *

Dimensions [0 0 0 1 0 0 0];

InternalField uniform 300;

BoundaryField
{
Inlet
{
Type fixedValue;
Value uniform 500;
}
Exit
{
Type zeroGradient;
}
Walls
{
Type fixedValue;
Value uniform 300;
}
}

Is the procedure for the temperature contour condition correct?
jeanpinto24| is offline   Reply With Quote

Reply

Tags
cavity

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. Please check the velocit range_rover OpenFOAM Running, Solving & CFD 7 August 17, 2016 01:12
Continuity error cannot be removed by adjusting the outflow luisfeliperojas95 OpenFOAM Running, Solving & CFD 1 December 19, 2015 15:12
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
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 21:52.