termo.eos.alpha.Alpha 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.
package termo.eos.alpha;
import java.util.Objects;
import termo.component.Compound;
/**
*
* @author Hugo Redon Rivera
*/
public abstract class Alpha {
private String name ;
protected String equation;
public void setName(String name){
this.name = name;
}
public String getName(){
return this.name;
}
@Override
public int hashCode() {
int hash = 7;
hash = 73 * hash + Objects.hashCode(this.name);
hash = 73 * hash + Objects.hashCode(this.equation);
return hash;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Alpha other = (Alpha) obj;
if (!Objects.equals(this.name, other.name)) {
return false;
}
if (!Objects.equals(this.equation, other.equation)) {
return false;
}
return true;
}
public abstract double alpha(double temperature,Compound component);
public abstract double TempOverAlphaTimesDerivativeAlphaRespectTemperature(double temperature,Compound component);
@Override
public String toString(){
return name;
}
public String getEquation() {
return equation;
}
public void setEquation(String equation) {
this.equation = equation;
}
public abstract double getParameter(Compound component, int index);
public abstract String getParameterName(int index);
public abstract void setParameter(double value, Compound component, int index);
public abstract int numberOfParameters() ;
//
// public abstract void setAlphaParameterA(double paramValue, Compound component) ;
// public abstract double getAlphaParameterA(Compound component);
//
// public abstract void setAlphaParameterB(double paramValue, Compound component) ;
// public abstract double getAlphaParameterB( Compound component);
//
// public abstract void setAlphaParameterC(double paramValue, Compound component) ;
// public abstract double getAlphaParameterC(Compound component);
//
// public abstract double[] getParameters(Compound component);
// public abstract void setParameters(double[] paramsValues, Compound component);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy