44"""
55
66
7- def pres (gamma , dens , eint ):
7+ def pres (gamma , rho , eint ):
88 """
99 Given the density and the specific internal energy, return the
1010 pressure
@@ -13,7 +13,7 @@ def pres(gamma, dens, eint):
1313 ----------
1414 gamma : float
1515 The ratio of specific heats
16- dens : float
16+ rho : float
1717 The density
1818 eint : float
1919 The specific internal energy
@@ -24,11 +24,11 @@ def pres(gamma, dens, eint):
2424 The pressure
2525
2626 """
27- p = dens * eint * (gamma - 1.0 )
27+ p = rho * eint * (gamma - 1.0 )
2828 return p
2929
3030
31- def dens (gamma , pres , eint ):
31+ def dens (gamma , p , eint ):
3232 """
3333 Given the pressure and the specific internal energy, return
3434 the density
@@ -37,7 +37,7 @@ def dens(gamma, pres, eint):
3737 ----------
3838 gamma : float
3939 The ratio of specific heats
40- pres : float
40+ p : float
4141 The pressure
4242 eint : float
4343 The specific internal energy
@@ -48,19 +48,19 @@ def dens(gamma, pres, eint):
4848 The density
4949
5050 """
51- dens = pres / (eint * (gamma - 1.0 ))
52- return dens
51+ rho = p / (eint * (gamma - 1.0 ))
52+ return rho
5353
5454
55- def rhoe (gamma , pres ):
55+ def rhoe (gamma , p ):
5656 """
5757 Given the pressure, return (rho * e)
5858
5959 Parameters
6060 ----------
6161 gamma : float
6262 The ratio of specific heats
63- pres : float
63+ p : float
6464 The pressure
6565
6666 Returns
@@ -69,5 +69,4 @@ def rhoe(gamma, pres):
6969 The internal energy density, rho e
7070
7171 """
72- rhoe = pres / (gamma - 1.0 )
73- return rhoe
72+ return p / (gamma - 1.0 )
0 commit comments