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

@ -47,7 +47,7 @@ rigidBodyMotionCoeffs
rho 500;
// Cuboid mass
mass #calc "$rho*$Lx*$Ly*$Lz";
mass #eval{ $rho*$Lx*$Ly*$Lz };
L ($Lx $Ly $Lz);
centreOfMass (0 0 0.25);
transform (1 0 0 0 1 0 0 0 1) (0.5 0.45 0.1);

View File

@ -37,7 +37,7 @@ sixDoFRigidBodyMotionCoeffs
rhoSolid 500;
// Cuboid mass
mass #calc "$rhoSolid*$Lx*$Ly*$Lz";
mass #eval{ $rhoSolid*$Lx*$Ly*$Lz };
// Cuboid moment of inertia about the centre of mass
momentOfInertia #codeStream