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

termo.eos.alpha.commonaAlphaEquationsImplementation.PengAndRobinsonAlpha 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 license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package termo.eos.alpha.commonaAlphaEquationsImplementation;

import termo.component.Compound;
import termo.eos.alpha.AlphaNames;
import termo.eos.alpha.CommonAlphaEquation;

/**
 *
 * @author Hugo
 */
public class PengAndRobinsonAlpha extends CommonAlphaEquation{
    public PengAndRobinsonAlpha(){
	setName(AlphaNames.PengAndRobinson);
        
        setR1(0.37464);
        setR2(1.54226);
        setR3(-0.2699);
        setR4(0);
        
        StringBuilder b = new StringBuilder();
       
        b.append("\\alpha(T) = \\left[  1+ m \\left(1-\\sqrt{T_r})\\right)     \\right]^2");
        b.append("\\\\");
        b.append(m());
       
        
        setEquation(b.toString());
    }
    
    @Override
    public int numberOfParameters() {
        return 0;
    }
    
      @Override
    public double getParameter(Compound component, int index) {
        return 0;
    }

    @Override
    public void setParameter(double value, Compound component, int index) {
       //no tiene parametros 
    }

	@Override
	public String getParameterName(int index) {
		// TODO Auto-generated method stub
		return null;
	}
    
}
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy