mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use #eval instead of #calc where possible
This commit is contained in:
committed by
Andrew Heather
parent
02914539f7
commit
e7f380dcd5
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user