This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/compressible/rhoPorousSimpleFoam/porousPlug/0/U
Bernhard F.W. Gschaider afd05aef6f Two simple tutorials for rhoPorousSimpleFoam added
The porousPlug-Tutorial shows artefacts on the interface of the porous
region. This problem is common to all OF-versions

Apart from that both tutorials (pressureDrop and velocity) are similar to published versions

--HG--
branch : porousLagrangianBranch
2010-11-01 16:42:32 +01:00

57 lines
1.6 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4.1 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "/home2/mnordlun/OpenFOAM/mnordlun-1.4.1/run/pmiCases";
case "SMAR_MD2_Puffing";
instance "0";
local "";
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
// Re = 1 = rho=(rho U H)/mu; rho=1.144, mu=1.861e-5; H=0.01
internalField uniform (1.62589e-4 0 0);
boundaryField
{
inlet
{
// type groovyBC;
type fixedValue;
variables "UTarget=1.62589e-4;yMax=max(pts().y);";
valueExpression "vector(1,0,0)*6*UTarget*pos().y/yMax*(1-pos().y/yMax)";
value $internalField;
}
outlet
{
type zeroGradient;
}
upperWall
{
type fixedValue;
value uniform (0 0 0);
}
lowerWall
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //