|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
George
Join Date: Jun 2017
Posts: 12
Rep Power: 10 ![]() |
Hello guys, i am trying to solve a case with icoFoam in a simple tube geometry, where laminar flow is driven by pressure.
More specific pressure is implemented in a sinusoidal form. I have been facing a problem with setting the BCs correctly. Especially for outlet in pressure file, when i use zeroGradient case runs but results are not good. When i change this BC to fixedValue 0, then after some iterations CFL goes crazy. Pls any help would be great. My BC files can be seen below: Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type uniformFixedValue;
uniformValue sine;
amplitude 6.85;
frequency 0.25;
scale 1;
level 0;
refValue uniform 0;
}
outlet
{
type fixedValue;
value uniform 0;
}
wall
{
type zeroGradient;
}
}
// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
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 0);
}
outlet
{
type fixedValue;
value uniform (0 0 0);
}
wall
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //
|
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 16 ![]() |
Hi!
You should use zeroGradient for velocity on the inlet and outlet if you define the pressure there. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
George
Join Date: Jun 2017
Posts: 12
Rep Power: 10 ![]() |
||
|
|
|
|
|
|
|
#4 |
|
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 16 ![]() |
You should use zeroGradient, but at least not fixedValue (0 0 0).
If it's possible to post your case or at least a simplified (if your geometry is not public) one, it's easier to help you. |
|
|
|
|
|
![]() |
| Tags |
| bcs, icofoam, openfaom, pressure driven flow |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| static vs. total pressure | auf dem feld | FLUENT | 17 | February 26, 2016 14:04 |
| Discrepancy in Pressure Driven Flow Behaviour in 211 vs 221 | cdm | OpenFOAM Running, Solving & CFD | 5 | December 17, 2013 08:48 |
| velocity and pressure driven flow in openfoam | jr33 | OpenFOAM Running, Solving & CFD | 1 | August 7, 2013 12:00 |
| pressure driven flow by pressure correction method | justentered | Main CFD Forum | 0 | December 30, 2003 00:52 |
| what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |