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

Solving Parallel Plate Flow with icoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2023, 02:05
Default Solving Parallel Plate Flow with icoFoam
  #1
New Member
 
Johannes
Join Date: Feb 2023
Posts: 5
Rep Power: 3
roo1valk is on a distinguished road
Good day all,


I am trying to run a simple parallel plate flow case using the icoFoam solver. However, I am getting a strange result for my velocity field, shown in the image below. I have had a look at the icoFoam - Elbow tutorial, which I understand to have similar boundary conditions. I suspect I might be missing something really simple, but cannot figure out what is wrong. I have tried a few different combinations of boundary conditions. Any pointers would be greatly appreciated. My blockMeshDict, p and U files are included below.


My blockMeshDict file body:

scale 1;

vertices
(
(0.01 0.005 -0.1)
(-0.01 0.005 -0.1)
(-0.01 -0.005 -0.1)
(0.01 -0.005 -0.1)
(0.01 0.005 0.1)
(-0.01 0.005 0.1)
(-0.01 -0.005 0.1)
(0.01 -0.005 0.1)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (4 1 40) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
fixedWalls
{
type wall;
faces
(
(1 5 4 0)
(3 7 6 2)
);
}
frontback
{
type empty;
faces
(
(2 6 5 1)
(0 4 7 3)
);
}
inlet
{
type patch;
faces
(
(0 3 2 1)
);
}
outlet
{
type patch;
faces
(
(4 5 6 7)
);
}
);

My boundary conditions for p:

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

internalField uniform 0;

boundaryField
{
fixedWalls
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

frontback
{
type empty;
}
}


My boundary conditions for U:

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

internalField uniform (0 0 0);

boundaryField
{
fixedWalls
{
type noSlip;
}

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

outlet
{
type zeroGradient;
}

frontback
{
type empty;
}
}
Attached Images
File Type: png Screenshot from 2023-06-22 07-49-59.png (12.0 KB, 6 views)
roo1valk is offline   Reply With Quote

Old   June 22, 2023, 18:07
Default
  #2
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Hello!,

4 cell in x direction is too few. Increase the number to, lets say, 10.

I suppose the y direction is the empty one. In this case one cell is sufficient.

The velocity in z direction should be -1 instead of 1, if the inlet at the top. Else it is right.

The velocity at the outlet should be changed to inletOutlet instead of zeroGradient.

Regards

Peter
peterhess is offline   Reply With Quote

Old   June 23, 2023, 00:40
Default
  #3
New Member
 
Johannes
Join Date: Feb 2023
Posts: 5
Rep Power: 3
roo1valk is on a distinguished road
Hi Peter,

Thank you for your reply. My inlet is at the bottom, thus I kept it at 1 m/s (+Z). Velocity at the outlet is now an inletOutlet boundary condition. I also realized that my fixedWalls (noSlip condition) and frontback (empty condition) was swapped around, i.e. only one cell between my noSlip walls. I made the changes and now it works, screenshot of velocity field attached.

Kind regards,
Johannes
Attached Images
File Type: png Screenshot from 2023-06-23 06-33-43.png (13.6 KB, 5 views)
roo1valk 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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 12:30
HeatSource BC to the whole region in chtMultiRegionHeater xsa OpenFOAM Running, Solving & CFD 3 November 7, 2016 05:07
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37


All times are GMT -4. The time now is 03:17.