Beispiel #1
0
 def densityScale(self):
   """
   Get density scale.
   """
   from pyre.units.length import meter
   from pyre.units.mass import kilogram
   return ModuleNondimensional.densityScale(self) * kilogram / meter**3
Beispiel #2
0
 def timeScale(self):
   """
   Get time scale.
   """
   from pyre.units.time import second
   return ModuleNondimensional.timeScale(self) * second
Beispiel #3
0
 def setTimeScale(self, value):
   """
   Get time scale.
   """
   return ModuleNondimensional.timeScale(self, value.value)
Beispiel #4
0
 def pressureScale(self):
   """
   Get pressure scale.
   """
   from pyre.units.pressure import pascal
   return ModuleNondimensional.pressureScale(self) * pascal
Beispiel #5
0
 def setPressureScale(self, value):
   """
   Get length scale.
   """
   return ModuleNondimensional.pressureScale(self, value.value)
Beispiel #6
0
 def lengthScale(self):
   """
   Get length scale.
   """
   from pyre.units.length import meter
   return ModuleNondimensional.lengthScale(self) * meter
Beispiel #7
0
 def setLengthScale(self, value):
   """
   Get length scale.
   """
   return ModuleNondimensional.lengthScale(self, value.value)
Beispiel #8
0
 def _createModuleObj(self):
   """
   Create Python module object.
   """
   ModuleNondimensional.__init__(self)
   return
Beispiel #9
0
 def temperatureScale(self):
   """
   Get density scale.
   """
   from pyre.units.temperature import kelvin
   return ModuleNondimensional.temperatureScale(self) * kelvin
Beispiel #10
0
 def setTemperatureScale(self, value):
   """
   Get temperature scale.
   """
   return ModuleNondimensional.temperatureScale(self, value.value)
Beispiel #11
0
 def setDensityScale(self, value):
   """
   Get density scale.
   """
   return ModuleNondimensional.densityScale(self, value.value)