All Downloads are FREE. Search and download functionalities are using the official Maven repository.

termo.eos.IdealGas Maven / Gradle / Ivy

Go to download

Thermodynamics properties and equilibria calculations for chemical engineering.

There is a newer version: 3.5
Show newest version
package termo.eos;

import termo.Constants;

/**
 *
 * @author Hugo Redon Rivera
 */
public class IdealGas extends EOS{

    public IdealGas(){
        setName( "Gas ideal");
    }
    

    public  double getPressure(double temperature, double volume){       
        return Constants.R * temperature / volume;
    }  
  
    public double getVolume(double pressure, double temperature){        
       return Constants.R * temperature / pressure;     
    }  
   
    public double getTemperature(double pressure, double volume){
        return pressure * volume / Constants.R;
    }


    @Override
    public String getEquation() {
        return "PV = nRT";
    }
//    @Override
//    public boolean isReadyToCalculate() {
//        return true;
//    }

   

    public double getCompresibilityFactor() {
       
        return 1;
    }
    public double getFugacity(){
        return 1;
    }
    


    
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy