Chapter 2: Getting Started in Thermodynamics: Introductory Concepts and Definitions

Example 2.03, page: 19

In [1]:
from __future__ import division
import math

#  Initialization  of  Variable
#for example 3
m = 1000 #kg
g = 9.80665 #m/s2

#calculations:
#force
F = m*g

#Results
print  "Force", round(F,2),"kg.m/s2 or N"
Force 9806.65 kg.m/s2 or N

Example 2.04, page: 21

In [3]:
from __future__ import division
import math

#  Initialization  of  Variable
#for example 4
m = 1000 #lb
g = 32 #ft/s2

#calculations:
#force
F = m*g/32.1740

#Results
print  "Force", round(F,2),"lbf"
Force 994.59 lbf

Example 2.05, page: 21

In [5]:
from __future__ import division
import math

#  Initialization  of  Variable
#for example 5
m = 10 #slug
g = 32 #ft/s2

#calculations:
#force
F = m*g

#Results
print  "Force", round(F,0),"lbf"
Force 320.0 lbf