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

termo.equilibrium.MixtureEquilibriaPhaseSolution Maven / Gradle / Ivy

Go to download

Thermodynamics properties and equilibria calculations for chemical engineering.

There is a newer version: 3.5
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package termo.equilibrium;

import java.util.HashMap;
import termo.component.Compound;
import termo.matter.Substance;

/**
 *
 * @author
 * Hugo
 */
public class MixtureEquilibriaPhaseSolution extends EquilibriaSolution{
    private HashMap vaporFractions;
    private HashMap liquidFractions;
    public MixtureEquilibriaPhaseSolution(
	 double temperature, 
                double pressure,
                HashMap liquidFractions, 
                HashMap solutionFractions,
                int iterations){
            super(temperature, pressure, iterations);
            
            this.liquidFractions = liquidFractions;
            this.vaporFractions = solutionFractions;
            
    }
    
        public HashMap getLiquidFractions() {
            return liquidFractions;
        }

     
        public void setLiquidFractions(HashMap mixtureFractions) {
            this.liquidFractions = mixtureFractions;
        }
	
    public HashMap getVaporFractions() {
        return vaporFractions;
    }

  
    public void setVaporFractions(HashMap vaporFractions) {
        this.vaporFractions = vaporFractions;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy