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

boudary condition for 2 inlets 2 outlets

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2018, 17:46
Default boudary condition for 2 inlets 2 outlets
  #1
New Member
 
Join Date: Aug 2018
Posts: 12
Rep Power: 8
salomama is on a distinguished road
Hello, i am having a difficulty trying to run a simulation of an open test section, so i have two inlets and two outlets, the first one flows directly into its outlets with a velocity of 22m/s and the second located right below it that is considered the atmosphere and it has an outlet too so they are both 0m/s since they are outside the test section, did that just to see how thick is the shear layer outside the test section, but for days now it is giving me errors first because of the time setting in controlDict but just to make sure that it is a boudary condition problem because i see some weird outputs in the animation;


u file
internalField uniform (0 0 0);

boundaryField
{
farfield
{
type zeroGradient;
}

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

outlet
{
type inletOutlet;
inletValue uniform (22 0 0);
value uniform (0 0 0);
}

symmetry
{
type symmetryPlane;
}

rightside
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}

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

frontAndBack
{
type empty;
}
}


p file
internalField uniform 0;

boundaryField
{
farfield
{
type zeroGradient;
}

inlet
{
type fixedFluxPressure;
value uniform 0;
gradient uniform 0;
}

outlet
{
type totalPressure;
rho rho;
psi none;
p0 uniform 0;
value uniform 0;
}

symmetry
{
type symmetryPlane;
}

rightside
{
type totalPressure;
rho rho;
psi none;
p0 uniform 0;
value uniform 0;
}

leftside
{
type fixedFluxPressure;
value uniform 0;
gradient uniform 0;
}

frontAndBack
{
type empty;
}
}


and the time
application icoFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 0.05;

deltaT 0.00005;

writeControl timeStep;

writeInterval 100;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;


it is running in asmall short period but at least showing me something cuz i couldn t figure out how to set the time.


so this is the image of animation
it doesn t make sense because i see the red color outside the test section where there is no velocity!


your help is very much appreciated
Attached Images
File Type: jpg Screenshot from 2018-08-11 12-02-48.jpg (99.5 KB, 46 views)
salomama is offline   Reply With Quote

Old   August 17, 2018, 05:08
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
There is a pimpleFoam tutorial called channel395 the has a box similar to yours. Maybe that can guide you in setting up your case.
salomama likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   August 17, 2018, 13:48
Default
  #3
New Member
 
Join Date: Aug 2018
Posts: 12
Rep Power: 8
salomama is on a distinguished road
thank you so much
salomama is offline   Reply With Quote

Reply

Tags
#boundary;#inlet, #timestep


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
Difference solution of boudary layer: how to set the initial condition wyj216 Main CFD Forum 1 June 4, 2015 06:50
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 12:32
CFX Solver : Sudden crash Hervé CFX 2 June 16, 2008 07:40
Outlet Boudary Condition for Fully Developed Flow Saad Main CFD Forum 5 November 19, 2004 14:22


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