49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||
|
========= |
|
||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||
|
\\ / O peration | Website: https://openfoam.org
|
||
|
\\ / A nd | Version: 10
|
||
|
\\/ M anipulation |
|
||
|
\*---------------------------------------------------------------------------*/
|
||
|
FoamFile
|
||
|
{
|
||
|
format ascii;
|
||
|
class volScalarField;
|
||
|
object p_rgh;
|
||
|
}
|
||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||
|
|
||
|
UTranslationDirectionNbTimes 1;
|
||
|
unitCellPressureJump #calc "22765.0";
|
||
|
pressureJump #calc "-$UTranslationDirectionNbTimes * $unitCellPressureJump";
|
||
|
rho0 1000.0;
|
||
|
unitCellSize 2.828427e-05;
|
||
|
|
||
|
unitCellPassageTime #calc "$unitCellSize / sqrt(2.0 * abs($unitCellPressureJump) / $rho0)";
|
||
|
|
||
|
dimensions [1 -1 -2 0 0 0 0];
|
||
|
|
||
|
internalField uniform 0;
|
||
|
|
||
|
boundaryField
|
||
|
{
|
||
|
inlet {
|
||
|
type uniformJumpAMI;
|
||
|
patchType cyclicAMI;
|
||
|
jumpTable table
|
||
|
(
|
||
|
(0 0.0)
|
||
|
($unitCellPassageTime $pressureJump) //0.6500712769900825)
|
||
|
);
|
||
|
value $internalField;
|
||
|
}
|
||
|
outlet { type uniformJumpAMI; patchType cyclicAMI; value $internalField; }
|
||
|
walls { type fixedFluxPressure; }
|
||
|
cperiodic-west { type cyclicAMI; }
|
||
|
cperiodic-east { type cyclicAMI; }
|
||
|
cperiodic-down { type cyclicAMI; }
|
||
|
cperiodic-up { type cyclicAMI; }
|
||
|
}
|
||
|
|
||
|
// ************************************************************************* //
|