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

Problems with a barrier in a river

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2014, 05:24
Default Problems with a barrier in a river
  #1
New Member
 
matthias
Join Date: Jul 2014
Posts: 2
Rep Power: 0
faerber is on a distinguished road
Hi;
I want to analyze a river streaming over a barrier as in the picture below


I've created the "river" as one block (13,0m * 0,4m * 0,5m) and putted the barrier as .stl data in the middle of my bock.

Also, I have created some inlet_patch (snappyHexMeshDict) at the beginning of my block as my water inlet:

Quote:
inlet_patch
{
type searchablePlate;
origin (4 0 -0.3);
span (0 0.04 0.3);
}
Because I want to have the same water-level (0.30m) at the beginning as at the end of my box, I pushed my whole mesh 30 cm down and use this BC at the outlet:

Quote:
outlet
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
I want to simulate that the water-level sinks over and rises after the barrier. In my results I can see the sinking but after that there are many waves and stuff like that.
I've tried to change the mesh in 2D, played with different verlocities and things like this, but the problem ist still the same.

You can find the conent of my inter/0 folder below - maybe somebody can help me.

Thanks
faerber

alpha.water:
Quote:
boundaryField
{
inlet_patch
{
type fixedValue;
value uniform 1;
}
inlet_wall
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
boden
{
type zeroGradient;
}
walls
{
type slip;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
schwelle
{
type zeroGradient;
}
}
U:
Quote:
boundaryField
{
inlet_patch
{
type flowRateInletVelocity;
volumetricFlowRate constant 0.007; // m³/s

value uniform (0 0 0);


}
inlet_wall
{


type fixedValue;
value uniform (0 0 0);


}
outlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
boden
{
type fixedValue;
value uniform (0 0 0);
}
walls
{
type slip;

}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
schwelle
{
type fixedValue;
value uniform (0 0 0);
}
}


// ************************************************** *********************** //
p_rgh:
Quote:
boundaryField
{
inlet_patch
{
type fixedFluxPressure; //früher: buoyantPressure;
value uniform 0;
}
inlet_wall
{
type fixedFluxPressure; //früher: buoyantPressure;
value uniform 0;
}
outlet
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
boden
{
type fixedFluxPressure; //früher: buoyantPressure;
}
walls
{
type slip;
}
atmosphere
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
schwelle
{
type fixedFluxPressure; //früher: buoyantPressure;
}
}
k:
Quote:
boundaryField
{
inlet_patch
{
type inletOutlet;
inletValue uniform 0.001;
value uniform 1e-11;
}
inlet_wall
{
type fixedValue;
value uniform 1e-11;
}
outlet
{
type fixedValue;
value uniform 1e-11;
}
boden
{
type fixedValue;
value uniform 1e-11;
}
walls
{
type slip;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0.001;
value uniform 1e-11;
}
schwelle
{
type fixedValue;
value uniform 1e-11;
}
}
nuSgs:
Quote:
boundaryField
{
inlet_patch
{
type zeroGradient;
}
inlet_wall
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
boden
{
type zeroGradient;
}
walls
{
type slip;
}
atmosphere
{
type zeroGradient;
}
schwelle
{
type zeroGradient;
}
}
nuTilda:
Quote:
boundaryField
{
outlet
{
type zeroGradient;
}
inlet_patch
{
type zeroGradient;
}
inlet_wall
{
type zeroGradient;
}
boden
{
type fixedValue;
value uniform 0;
}
walls
{
type slip;
}
atmosphere
{
type zeroGradient;
}
schwelle
{
type fixedValue;
value uniform 0;
}
}
Attached Images
File Type: jpg case.jpg (12.4 KB, 40 views)
faerber is offline   Reply With Quote

Old   July 6, 2014, 09:44
Default
  #2
New Member
 
matthias
Join Date: Jul 2014
Posts: 2
Rep Power: 0
faerber is on a distinguished road
Here are my used mesh and inter files:
https://www.dropbox.com/s/jfondecyyttsxn0/case.zip
faerber is offline   Reply With Quote

Old   July 6, 2014, 23:29
Default
  #3
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Hi Matthias,

Controlling the water level at the outlet of the domain is something that I have had trouble with for some time. It doesn't seem that there is a universal solution available. I think the best approach depends on the specific case.

Check out this thread for one solution:
http://www.cfd-online.com/Forums/ope...tml#post390371

Also, although I haven't tried it yet there is a phaseHydrostaticPressure boundary condition that may work well for a fixed water level outlet...maybe used with groovyBC to specify where alpha changes from 1 to 0 (i.e. the water level)....

Matt
mgdenno 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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
[mesh manipulation] Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 04:45
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 13:13
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 06:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


All times are GMT -4. The time now is 19:15.