TUT: use expression and/or step function in a few places

This commit is contained in:
Mark Olesen
2020-05-22 19:19:46 +02:00
parent 5105154b88
commit 1a9f067df9
4 changed files with 28 additions and 27 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -23,13 +23,13 @@ boundaryField
inlet
{
type uniformFixedValue;
uniformValue table
(
(0 1)
(1 1)
(1.01 0)
(14 0)
);
uniformValue
{
type expression;
// arg() and time() are identical here
expression #{ time() <= 1 ? 1 : 0 #};
}
}
outlet