Ejemplo n.º 1
0
 /**
  * @param pressure
  * @param volume
  * @param temperature
  * @return Returns mass of water in moles
  */
 public static Mass mass(Pressure pressure, Volume volume, Temperature temperature) {
   return molesOfWater(
       (pressure.inPascals() * volume.inCubicMetres()) / (gasConstant * temperature.inKelvin()));
 }
Ejemplo n.º 2
0
 /**
  * @param volume
  * @param mass
  * @param pressure
  * @return Returns the temperature in Kelvin
  */
 public static Temperature temperature(Volume volume, Mass mass, Pressure pressure) {
   return kelvin(
       (pressure.inPascals() * volume.inCubicMetres()) / (mass.inKilograms() * gasConstant));
 }