Skip to content

Instantly share code, notes, and snippets.

@greenty5
Last active September 27, 2023 05:16
Show Gist options
  • Select an option

  • Save greenty5/fce9da835b9813db413ce12814ea631b to your computer and use it in GitHub Desktop.

Select an option

Save greenty5/fce9da835b9813db413ce12814ea631b to your computer and use it in GitHub Desktop.
pulsatile flow condition using "table" function
*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ 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
{
// pulsatile flow condition ( f = 20Hz, Vave = 10.0m/s, Amplitude = 2.0 )
// pitzDaily
type uniformFixedValue;
uniformValue table
(
(0.00000 (10.00000 0.0 0.0))
(0.00408 (10.98144 0.0 0.0))
(0.00816 (11.71029 0.0 0.0))
(0.01224 (11.99897 0.0 0.0))
(0.01633 (11.77320 0.0 0.0))
(0.02041 (11.09107 0.0 0.0))
(0.02449 (10.12814 0.0 0.0))
(0.02857 (9.13223 0.0 0.0))
(0.03265 (8.35966 0.0 0.0))
(0.03673 (8.00924 0.0 0.0))
(0.04082 (8.17117 0.0 0.0))
(0.04490 (8.80378 0.0 0.0))
(0.04898 (9.74425 0.0 0.0))
(0.05306 (10.75053 0.0 0.0))
(0.05714 (11.56366 0.0 0.0))
(0.06122 (11.97436 0.0 0.0))
(0.06531 (11.87694 0.0 0.0))
(0.06939 (11.29646 0.0 0.0))
(0.07347 (10.38232 0.0 0.0))
(0.07755 (9.36978 0.0 0.0))
(0.08163 (8.51944 0.0 0.0))
(0.08571 (8.05014 0.0 0.0))
(0.08980 (8.08266 0.0 0.0))
(0.09388 (8.60863 0.0 0.0))
(0.09796 (9.49269 0.0 0.0))
(0.10204 (10.50731 0.0 0.0))
(0.10612 (11.39137 0.0 0.0))
(0.11020 (11.91734 0.0 0.0))
(0.11429 (11.94986 0.0 0.0))
(0.11837 (11.48056 0.0 0.0))
(0.12245 (10.63022 0.0 0.0))
(0.12653 (9.61768 0.0 0.0))
(0.13061 (8.70354 0.0 0.0))
(0.13469 (8.12306 0.0 0.0))
(0.13878 (8.02564 0.0 0.0))
(0.14286 (8.43634 0.0 0.0))
(0.14694 (9.24947 0.0 0.0))
(0.15102 (10.25575 0.0 0.0))
(0.15510 (11.19622 0.0 0.0))
(0.15918 (11.82883 0.0 0.0))
(0.16327 (11.99076 0.0 0.0))
(0.16735 (11.64034 0.0 0.0))
(0.17143 (10.86777 0.0 0.0))
(0.17551 (9.87186 0.0 0.0))
(0.17959 (8.90893 0.0 0.0))
(0.18367 (8.22680 0.0 0.0))
(0.18776 (8.00103 0.0 0.0))
(0.19184 (8.28971 0.0 0.0))
(0.19592 (9.01856 0.0 0.0))
(0.20000 (10.00000 0.0 0.0))
);
}
outlet
{
type zeroGradient;
}
upperWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment