TUT: use #eval instead of #calc where possible

This commit is contained in:
Mark Olesen
2019-10-01 10:14:55 +02:00
committed by Andrew Heather
parent 02914539f7
commit e7f380dcd5
12 changed files with 119 additions and 123 deletions

View File

@ -14,12 +14,12 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;
scale 1;
L 0.125664;// "20*M_PI";
H #calc "1";
H2 #calc "2*$H";
W #calc "M_PI";
L 0.125664;
H 1.0;
H2 #eval{ 2*$H };
W #eval{ pi() };
vertices
(

View File

@ -48,7 +48,7 @@ runTimeModifiable false;
adjustTimeStep false;
// Allow 10% run-up before calculating mean
timeStart #calc #{ 0.1 * ${/endTime} #};
timeStart #eval #{ 0.1 * ${/endTime} #};
functions
{