Download MUESLI User's Guide
Transcript
MUESLI User’s Guide Numerical Library − conversion factors begin with the f prefix: f kelvin conversion : temperature of triple point of water [Θ] When printing a physical quantity, you may change its displayed unit. Note that to avoid confusion, the name of the required unit is added in parenthesis. If you don’t known the S.I. name of a quantity, you can let MUESLI try to find it, by using ‘unit=SI unit’ as additional argument to msDisplay I Example #4-67: L = u_m ! length call msDisplay( L, "length", unit=u_cm ) ! should be 100 centimeters F = u_Newton ! force call msDisplay( F, "force", unit=SI_unit ) A = L*L ! area call msDisplay( A, "area", unit=SI_unit ) P = F/A ! pressure call msDisplay( P, "pressure", unit=SI_unit ) . Output of ex. #4-67: length = [ L ] (cm) 100 force = [ M L T^-2 ] (N) 1 area = [ L^2 ] (S.I.) 1 pressure = [ M L^-1 T^-2 ] (Pa) 1 Finally, you can check whether a quantity is dimensionless, or whether two quantities share the same physical dimensions: I Example #4-68: x = 2.0d0 * u_m y = 3.5d0 * u_cm print *, "Do ’x’ and ’y’ share the same phys. dim. ? ", mfHaveSamePhysDim(z) z = x/y print *, "Is ’z’ dimensionless ? ", mfHasNoPhysDim(z) . Output of ex. #4-68: Do ’x’ and ’y’ share the same phys. dim. ? T Is ’z’ dimensionless ? T 51