mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
TUT: use expression and/or step function in a few places
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user