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

FLUID THROUGH A HOLE (2D) interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2018, 17:25
Default FLUID THROUGH A HOLE (2D) interFoam
  #1
New Member
 
Join Date: Jan 2018
Posts: 1
Rep Power: 0
AmélieO is on a distinguished road
Hello everybody!

first of all, I would like to thank you for the help you provide!

My case is quite simple,

it's a 2d case, a plate with a hole (geometry like case ''plate with a hole'')
https://cfd.direct/openfoam/user-guide/platehole/

but i have an inlet that is the hole with fluid and an outlet ( a face of the plate)

i dont know why but when i run my case with interFoam after several minutes my simulation fails without any iteration.

At time t=0 the water is located in the center of the hole.
i set this boundary with ''sphereToCell'' in the setfields file


the radius of region of alpha water is the same as the hole,


volScalarFieldValue alpha.water 0
);

regions
(
sphereToCell
{
centre (0.2 0.2 0);
radius 0.02;




sMy p rgh file


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

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

internalField uniform 0;

boundaryField
{
left
{
type zeroGradient;

}
right
{

type totalPressure;
rho rho;
phi rhoPhi;
p0 uniform 0.0;
gamma 0;
}
opposite hole face
{
type zeroGradient;

}
hole face
{
type zeroGradient;



}
DefaultFaces
{
type empty;
}
hole
{

type totalPressure;
rho rho;
phi rhoPhi;
p0 uniform 1.0e6;
gamma 0;
}
}
// ************************************************** *********************** //

my u file

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

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

internalField uniform (0 0 0);

boundaryField
{
left
{

type slip;


}
opposite hole face
{
type slip;
}
hole face
{
type slip;
}

hole
{
type pressureInletOutletVelocity;
value uniform (0.0 0.0 0.0);

}
right
{


type pressureInletOutletVelocity;
value uniform (0.0 0.0 0.0);

}


DefaultFaces
{
type empty;
}
}


// ************************************************** *********************** //


Thank you for your advice!

Last edited by AmélieO; January 18, 2018 at 12:34. Reason: word mistake
AmélieO 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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
Physics of an incompressible fluid Jonas Holdeman Main CFD Forum 87 April 22, 2019 10:40
Relaxation of a "Squared" Droplet using the Volume of Fluid method in interFoam pablitobass OpenFOAM Running, Solving & CFD 9 February 27, 2016 14:20
My Revised "Time Vs Energy" Article For Review Abhi Main CFD Forum 2 July 9, 2002 09:08
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 10:02.