termo.eos.alpha.commonaAlphaEquationsImplementation.PengAndRobinsonAlpha Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of materia Show documentation
Show all versions of materia Show documentation
Thermodynamics properties and
equilibria calculations for
chemical engineering.
/*
* 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