Ejemplo n.º 1
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));
 }
Ejemplo n.º 2
0
 /**
  * @param pressure
  * @param mass
  * @param temperature
  * @return Returns the calculated volume in cubic metres
  */
 public static Volume volume(Pressure pressure, Mass mass, Temperature temperature) {
   return cubicMetres(mass.inMolesOfWater() * gasConstant * temperature.inKelvin());
 }
Ejemplo n.º 3
0
 /**
  * @param volume
  * @param mass
  * @param temperature
  * @return Returns the pressure which is calculated in Pascals
  */
 public static Pressure pressure(Volume volume, Mass mass, Temperature temperature) {
   return pascals(
       (mass.inMolesOfWater() * gasConstant * temperature.inKelvin()) / volume.inCubicMetres());
 }