Class Component
- All Implemented Interfaces:
Serializable, Cloneable, ComponentInterface, ThermodynamicConstantsInterface
- Direct Known Subclasses:
ComponentEos, ComponentGE, ComponentHydrate, ComponentHydrateKluda, ComponentIdealGas
Abstract Component class.
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected double(package private) doubleprotected double(package private) doubleprotected double(package private) doubleprotected double(package private) double(package private) doubleprotected Stringprotected doubleprivate doubleprotected Stringprotected doubleprivate doubleprotected intprotected doubleprotected intprivate Stringprotected StringName of component.protected intIndex number of Component in Phase object component array.private StringType of component.private doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double[]private double[]private doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected double[]protected doubleprotected doubledouble[]protected double[]protected doubleprotected doubleprotected Elementprotected doubleprivate Stringprotected doubleprotected doubleprivate double(package private) double[]protected double[](package private) double(package private) doubleprivate double(package private) doubleprotected intIndex number of Component in database.protected intprivate booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected doubleprotected doubleprotected doubleprotected double[](package private) double[]protected intprotected double[](package private) static org.apache.logging.log4j.LoggerLogger object for class.protected double[]protected double[]protected double[]protected double[]protected double(package private) doubleprivate static final doubleConversion factor from mmHg to bar.protected doubleprotected doubleprotected doubleprotected doubleprotected intprotected doubleNumber of moles of Component in System.protected doubleNumber of moles of Component in Phase.private intprotected doubleprotected doubleprotected doubleprotected doubleprivate doubleprivate doubleprotected doubleprotected Stringprotected double[]private static final longSerialization version UID.protected doubleprotected booleanCheck for solid phase and do solid phase calculations.(package private) double[]protected doubleprotected doubleprotected doubleprotected double(package private) double[](package private) double(package private) doubleprivate doubleprotected double[]protected doubleprotected doubleprotected doubleprivate Doubleprivate doubleprivate doubleprivate doubleprivate booleanprotected doubleMole fraction of Component in Phase.protected doubleMole fraction of Component in System.Fields inherited from interface ThermodynamicConstantsInterface
atm, avagadroNumber, boltzmannConstant, electronCharge, faradayConstant, gravity, molarMassAir, normalStateTemperature, pi, planckConstant, R, referencePressure, referenceTemperature, standardStateTemperature, vacumPermittivity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMolesChemReac(double dn, double totdn) Change the number of moles of component of phase, i.e.,numberOfMolesInPhase, and total number of moles of component in system, i.e.,numberOfMoleswith separate amounts.booleancalcActivity.clone()clone.voidcreateComponent(String name, double moles, double molesInPhase, int compIndex) Helper function to create component.final booleanGetter for fieldsolidCheck.booleanvoidFinit(PhaseInterface phase, double temp, double pres, double totMoles, double beta, int numberOfComponents, int initType) Finit.doublefugcoef(PhaseInterface phase) Calculate, set and return fugacity coefficient.doublefugcoefDiffPresNumeric(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) fugcoefDiffPresNumeric.doublefugcoefDiffTempNumeric(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) fugcoefDiffTempNumeric.doublegetAcentricFactor.doublegetAntoineASolid.doublegetAntoineBSolid.doublegetAntoineCSolid.doublegetAntoineVaporPressure(double temp) getAntoineVaporPressure.doublegetAntoineVaporPressuredT(double temp) getAntoineVaporPressuredT.doublegetAntoineVaporTemperature(double pres) getAntoineVaporTemperature.final doublegetAssociationEnergy.doublegetAssociationEnergySAFT.getAssociationScheme.final doublegetAssociationVolume.doublegetAssociationVolumeSAFT.getAttractiveTerm.final intgetAttractiveTermNumber.getCASnumber.doublegetCCsolidVaporPressure(double temperature) getCCsolidVaporPressure.doublegetCCsolidVaporPressuredT(double temperature) getCCsolidVaporPressuredT.final doublegetChemicalPotential(double temperature, double pressure) getChemicalPotential.doublegetChemicalPotential.final doublegetChemicalPotentialdN(int i, PhaseInterface phase) getChemicalPotentialdN.final doublegetChemicalPotentialdNTV(int i, PhaseInterface phase) getChemicalPotentialdNTV.final doublegetChemicalPotentialdP.final doublegetChemicalPotentialdP(int i, PhaseInterface phase) getChemicalPotentialdP.final doublegetChemicalPotentialdT.final doublegetChemicalPotentialdV.final doublegetChemicalPotentialIdealReference.final StringGetter for propertycomponentName.intGetter for propertycomponentNumber.getComponentType.final doublegetCp0(double temperature) Return the ideal-gas molar heat capacity of a chemical using polynomial regressed coefficients as described by Poling, Bruce E.doublegetCpA()getCpA.doublegetCpB()getCpB.doublegetCpC()getCpC.doublegetCpD()getCpD.doublegetCpE()getCpE.doublegetCriticalCompressibilityFactor.doublegetCriticalViscosity.doublegetCriticalVolume.final doublegetCv0(double temperature) getCv0.doubleThis function handles the retrieval of a chemical’s dipole moment.doublegetdfugdn(int i) getdfugdn.doublegetdfugdp.doublegetdfugdt.doublegetdfugdx(int i) getdfugdx.doublegetDiElectricConstant(double temperature) getDiElectricConstant.doublegetDiElectricConstantdT(double temperature) getDiElectricConstantdT.doublegetDiElectricConstantdTdT(double temperature) getDiElectricConstantdTdT.doublegetdrhodN.getElements.final doublegetEnthalpy(double temperature) getEnthalpy.doublegetEntropy(double temperature, double pressure) getEntropy.doublegetEpsikSAFT.doublegetFlowRate(String flowunit) method to return flow rate of a component.getFormulae.final doublegetFugacityCoefficient.final doublegetFugacitydN(int i, PhaseInterface phase) getFugacitydN.final doublegetGibbsEnergy(double temperature, double pressure) getGibbsEnergy.doublegetGibbsEnergyOfFormation.final doublegetGresTP(double temperature) getGresTP.final doublegetHeatOfFusion.doublegetHeatOfVapourization(double temp) getHeatOfVapourization.doublegetHenryCoef(double temperature) getHenryCoef.doublegetHenryCoefdT(double temperature) getHenryCoefdT.double[]getHenryCoefParameter.final doublegetHID(double T) getHID.final doublegetHresTP(double temperature) getHresTP.doublegetHsub()getHsub.final doublegetIdealGasAbsoluteEntropy.final doublegetIdealGasEnthalpyOfFormation.final doublegetIdealGasGibbsEnergyOfFormation.doublegetIdEntropy(double temperature) getIdEntropy.intgetIndex()getIndex.final doublegetIonicCharge.final doublegetIonicDiameter.final doublegetK()The distribution coefficient y/x between gas and liquid for a component.doublegetLennardJonesEnergyParameter.doublegetLennardJonesMolecularDiameter.doublegetLiquidConductivityParameter.final intgetLiquidViscosityModel.final doublegetLiquidViscosityParameter(int i) getLiquidViscosityParameter.final double[]getMatiascopemanParams.final doublegetMatiascopemanParams(int index) Indexed getter for property matiascopemanParams.final double[]Getter for the fieldmatiascopemanParamsPR.final double[]Indexed getter for property matiascopemanParamsUMRPRU.double[]getMatiascopemanSolidParams.final doublegetMeltingPointTemperature.doublegetMolality(PhaseInterface phase) getMolality.doublegetMolarity(PhaseInterface phase) getMolarity.final doubleGet molar mass of component.doublegetMolarMass(String unit) Get molar mass of component.doublegetmSAFTi.final StringgetName()Getter for propertycomponentName, i.e., normalized component name.doubleGetter for property NormalBoilingPoint.doublegetNormalBoilingPoint(String unit) Getter for property NormalBoilingPoint.doublegetNormalLiquidDensity.doublegetNormalLiquidDensity(String unit) getNormalLiquidDensity.final intgetNumberOfAssociationSites.final doublegetNumberOfmoles.final doublegetNumberOfMolesInPhase.intgetOrginalNumberOfAssociationSites.final doublegetParachorParameter.final doublegetPaulingAnionicDiameter.final doublegetPC()Returns the critical pressure of the component.final doubleReturns the critical pressure of the component.doublegetPureComponentCpLiquid(double temperature) getPureComponentCpLiquid.doublegetPureComponentCpSolid(double temperature) getPureComponentCpSolid.doublegetPureComponentHeatOfVaporization(double temperature) Calculates the pure component heat of vaporization in J/mol.doublegetPureComponentLiquidDensity(double temperature) getPureComponentLiquidDensity.doublegetPureComponentSolidDensity(double temperature) getPureComponentSolidDensity.final doublegetRacketZ.doublegetRacketZCPA.doublegetRate.doubleGetter for the fieldreferenceEnthalpy.final doublegetReferencePotential.final StringgetReferenceStateType.final double[]getSchwartzentruberParams.doublegetSigmaSAFTi.final doublegetSolidVaporPressure(double temperature) getSolidVaporPressure.final doublegetSolidVaporPressuredT(double temperature) getSolidVaporPressuredT.final doublegetSphericalCoreRadius.final doublegetSresTP(double temperature) getSresTP.doubleGetter for property standardDensity.doublegetStokesCationicDiameter.doublegetSurfaceTenisionInfluenceParameter(double temperature) getSurfaceTenisionInfluenceParameter.doublegetSurfTensInfluenceParam(int factNum) getSurfTensInfluenceParam.final doublegetTC()Returns the critical temperature of the component.final doubleReturns the critical temperature of the component.doublegetTotalFlowRate(String flowunit) method to return total flow rate of a component.final doublegetTriplePointDensity.final doublegetTriplePointPressure.final doublegetTriplePointTemperature.final double[]getTwuCoonParams.doublegetViscosityCorrectionFactor.doubleGet component specific friction factor used in friction-theory viscosity model.doublegetVoli()getVoli.doublegetVolumeCorrection.doublegetVolumeCorrectionConst.doublegetVolumeCorrectionT.doublegetVolumeCorrectionT_CPA.final doublegetx()Getter for property x, i.e., the mole fraction of a component in a specific phase.final doublegetz()Getter for property z, i.e., the mole fraction of a component in the fluid.protected booleanCheck if a volume correction has been explicitly specified.voidinit(double temperature, double pressure, double totalNumberOfMoles, double beta, int initType) Initialize component.voidinsertComponentIntoDatabase(String databaseName) Insert this component into NeqSim component database.booleanisHydrateFormer.booleanisHydrocarbon.booleanisInert()isInert.booleanisIsHydrateFormer.booleanisIsIon()isIsIon.booleanisIsNormalComponent.booleanisIsPlusFraction.booleanisIsTBPfraction.booleanisWaxFormer.double[]logfugcoefdN(PhaseInterface phase) logfugcoefdN.doublelogfugcoefdNi(PhaseInterface phase, int k) logfugcoefdNi.doublelogfugcoefdP(PhaseInterface phase) logfugcoefdP.doublelogfugcoefdT(PhaseInterface phase) logfugcoefdT.doublereducedPressure(double pressure) Returns the reduced pressure (P/Pc) for a given pressure.doublereducedTemperature(double temperature) Returns the reduced temperature (T/Tc) for a given temperature.voidseta(double a) seta.voidsetAcentricFactor(double val) setAcentricFactor.voidsetAntoineASolid(double AntoineASolid) setAntoineASolid.voidsetAntoineBSolid(double AntoineBSolid) setAntoineBSolid.voidsetAntoineCSolid(double AntoineCSolid) setAntoineCSolid.voidsetAssociationEnergy(double associationEnergy) setAssociationEnergy.voidsetAssociationEnergySAFT(double associationEnergySAFT) setAssociationEnergySAFT.voidsetAssociationScheme(String associationScheme) setAssociationScheme.voidsetAssociationVolume(double associationVolume) setAssociationVolume.voidsetAssociationVolumeSAFT(double associationVolumeSAFT) setAssociationVolumeSAFT.voidsetAttractiveTerm(int i) setAttractiveTerm.voidsetb(double b) setb.voidsetCASnumber(String CASnumber) setCASnumber.voidsetComponentName(String componentName) Setter for propertycomponentName.voidsetComponentNumber(int numb) Setter for propertycomponentNumber.voidsetComponentType(String componentType) setComponentType.voidsetCpA(double CpA) setCpA.voidsetCpB(double CpB) setCpB.voidsetCpC(double CpC) setCpC.voidsetCpD(double CpD) setCpD.voidsetCpE(double CpE) setCpE.voidsetCriticalCompressibilityFactor(double criticalCompressibilityFactor) setCriticalCompressibilityFactor.voidsetCriticalViscosity(double criticalViscosity) setCriticalViscosity.voidsetCriticalVolume(double criticalVolume) setCriticalVolume.voidsetdfugdn(int i, double val) setdfugdn.voidsetdfugdp(double val) setdfugdp.voidsetdfugdt(double val) setdfugdt.voidsetdfugdx(int i, double val) setdfugdx.voidsetEpsikSAFT(double epsikSAFT) setEpsikSAFT.voidsetFormulae(String formulae) setFormulae.voidsetFugacityCoefficient(double val) setFugacityCoefficient.voidsetHeatOfFusion(double heatOfFusion) setHeatOfFusion.voidsetHenryCoefParameter(double[] henryCoefParameter) setHenryCoefParameter.voidsetIdealGasEnthalpyOfFormation(double idealGasEnthalpyOfFormation) setIdealGasEnthalpyOfFormation.protected voidsetIsAllTypesFalse.voidsetIsHydrateFormer(boolean isHydrateFormer) setIsHydrateFormer.voidsetIsIon(boolean isIon) setIsIon.voidsetIsNormalComponent(boolean isNormalComponent) setIsNormalComponent.voidsetIsPlusFraction(boolean isPlusFraction) setIsPlusFraction.voidsetIsTBPfraction(boolean isTBPfraction) setIsTBPfraction.final voidsetK(double newK) setK.voidsetLennardJonesEnergyParameter(double lennardJonesEnergyParameter) setLennardJonesEnergyParameter.voidsetLennardJonesMolecularDiameter(double lennardJonesMolecularDiameter) setLennardJonesMolecularDiameter.voidsetLiquidConductivityParameter(double number, int i) setLiquidConductivityParameter.final voidsetLiquidViscosityModel(int modelNumber) setLiquidViscosityModel.final voidsetLiquidViscosityParameter(double number, int i) setLiquidViscosityParameter.voidsetMatiascopemanParams(double[] matiascopemanParams) setMatiascopemanParams.voidsetMatiascopemanParams(int index, double matiascopemanParams) setMatiascopemanParams.voidsetMatiascopemanParamsPR(int index, double matiascopemanParams) Setter for the fieldmatiascopemanParamsPR.voidsetMatiascopemanSolidParams(double[] matiascopemanSolidParams) Setter for property matiascopemanSolidParams.voidsetMolarMass(double molarMass) setMolarMass.voidsetMolarMass(double value, String unit) setMolarMass.voidsetmSAFTi(double mSAFTi) setmSAFTi.voidsetNormalBoilingPoint(double normalBoilingPoint) setNormalBoilingPoint.voidsetNormalLiquidDensity(double normalLiquidDensity) setNormalLiquidDensity.voidsetNumberOfAssociationSites(int numberOfAssociationSites) setNumberOfAssociationSites.final voidsetNumberOfmoles(double newmoles) setNumberOfmoles.final voidsetNumberOfMolesInPhase(double totmoles) setNumberOfMolesInPhase.final voidsetParachorParameter(double parachorParameter) setParachorParameter.voidsetPaulingAnionicDiameter(double paulingAnionicDiameter) Setter for property paulingAnionicDiameter.final voidsetPC(double val) Setter for critical pressure.final voidSetter for critical pressure in specified unit.voidsetProperties(ComponentInterface component) setProperties.voidsetRacketZ(double val) setRacketZ.voidsetRacketZCPA(double racketZCPA) setRacketZCPA.voidsetReferenceEnthalpy(double referenceEnthalpy) Setter for the fieldreferenceEnthalpy.final voidsetReferencePotential(double ref) setReferencePotential.final voidsetSchwartzentruberParams(int i, double param) setSchwartzentruberParams.voidsetSigmaSAFTi(double sigmaSAFTi) setSigmaSAFTi.voidsetSolidCheck(boolean checkForSolids) Setter for fieldsolidCheck.voidsetSphericalCoreRadius(double sphericalCoreRadius) setSphericalCoreRadius.voidsetStandardDensity(double standardDensity) Setter for property standardDensity.voidsetStokesCationicDiameter(double stokesCationicDiameter) setStokesCationicDiameter.voidsetSurfTensInfluenceParam(int factNum, double val) setSurfTensInfluenceParam.final voidsetTC(double val) setTC.final voidsetTC.voidsetTriplePointTemperature(double triplePointTemperature) setTriplePointTemperature.final voidsetTwuCoonParams(int i, double param) setTwuCoonParams.final voidsetViscosityAssociationFactor(double val) setViscosityAssociationFactor.voidsetViscosityFrictionK(double viscosityFrictionK) Set component specific friction factor used in friction-theory viscosity model.voidsetVoli(double molarVol) Setter for the fieldvoli.voidsetVolumeCorrection(double volumeCorrection) setVolumeCorrection.voidsetVolumeCorrectionConst(double getVolumeCorrectionConst) setVolumeCorrectionConst.voidsetVolumeCorrectionT(double volumeCorrectionT) setVolumeCorrectionT.voidsetVolumeCorrectionT_CPA(double volumeCorrectionT_CPA) setVolumeCorrectionT_CPA.voidsetWaxFormer(boolean waxFormer) setWaxFormer.final voidsetx(double newx) setx.final voidsetz(double z) setz.Methods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentInterface
addMoles, addMolesChemReac, getLogFugacityCoefficient
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
MMHG_TO_BAR
private static final double MMHG_TO_BARConversion factor from mmHg to bar.- See Also:
-
surfTensInfluenceParam
double[] surfTensInfluenceParam -
index
protected int indexIndex number of Component in database. -
componentNumber
protected int componentNumberIndex number of Component in Phase object component array. -
componentName
Name of component. -
componentType
Type of component. Can be "normal", "TBP", "plus", "ion", but what does "HC", "inert" and "Component?" do? -
z
protected double zMole fraction of Component in System. -
x
protected double xMole fraction of Component in Phase. -
numberOfMoles
protected double numberOfMolesNumber of moles of Component in System. IdeallynumberOfMoles = totalNumberOfMoles * z. -
numberOfMolesInPhase
protected double numberOfMolesInPhaseNumber of moles of Component in Phase. IdeallytotalNumberOfMoles * x * beta. -
K
protected double K -
attractiveTermNumber
protected int attractiveTermNumber -
numberOfAssociationSites
protected int numberOfAssociationSites -
associationVolume
protected double associationVolume -
associationEnergy
protected double associationEnergy -
aCPA
protected double aCPA -
bCPA
protected double bCPA -
mCPA
protected double mCPA -
srkacentricFactor
protected double srkacentricFactor -
referenceStateType
-
associationScheme
-
antoineLiqVapPresType
-
formulae
-
CASnumber
-
elements
-
isTBPfraction
protected boolean isTBPfraction -
isPlusFraction
protected boolean isPlusFraction -
isNormalComponent
protected boolean isNormalComponent -
isIon
protected boolean isIon -
isHydrateFormer
private boolean isHydrateFormer -
waxFormer
private boolean waxFormer -
qPure
protected double qPure -
voli
protected double voli -
calcActivity
protected int calcActivity -
solidCheck
protected boolean solidCheckCheck for solid phase and do solid phase calculations. -
dqPuredT
protected double dqPuredT -
dqPuredTdT
protected double dqPuredTdT -
racketZCPA
private double racketZCPA -
criticalCompressibilityFactor
private double criticalCompressibilityFactor -
volumeCorrectionConst
private double volumeCorrectionConst -
volumeCorrection
-
volumeCorrectionT
private double volumeCorrectionT -
volumeCorrectionT_CPA
private double volumeCorrectionT_CPA -
criticalPressure
protected double criticalPressure -
criticalTemperature
protected double criticalTemperature -
molarMass
protected double molarMass -
acentricFactor
protected double acentricFactor -
normalLiquidDensity
protected double normalLiquidDensity -
fugacityCoefficient
protected double fugacityCoefficient -
debyeDipoleMoment
protected double debyeDipoleMoment -
viscosityCorrectionFactor
protected double viscosityCorrectionFactor -
criticalVolume
protected double criticalVolume -
racketZ
protected double racketZ -
gibbsEnergyOfFormation
protected double gibbsEnergyOfFormation -
criticalViscosity
protected double criticalViscosity -
referencePotential
protected double referencePotential -
viscosityFrictionK
protected double viscosityFrictionK -
liquidViscosityModel
protected int liquidViscosityModel -
ionicCharge
protected int ionicCharge -
referenceEnthalpy
private double referenceEnthalpy -
parachorParameter
protected double parachorParameter -
normalBoilingPoint
protected double normalBoilingPoint -
sphericalCoreRadius
protected double sphericalCoreRadius -
standardDensity
protected double standardDensity -
AntoineASolid
protected double AntoineASolid -
AntoineBSolid
protected double AntoineBSolid -
AntoineCSolid
protected double AntoineCSolid -
liquidViscosityParameter
protected double[] liquidViscosityParameter -
liquidConductivityParameter
protected double[] liquidConductivityParameter -
henryCoefParameter
protected double[] henryCoefParameter -
dielectricParameter
protected double[] dielectricParameter -
schwartzentruberParams
protected double[] schwartzentruberParams -
matiascopemanParams
protected double[] matiascopemanParams -
matiascopemanParamsPR
protected double[] matiascopemanParamsPR -
TwuCoonParams
protected double[] TwuCoonParams -
matiascopemanSolidParams
protected double[] matiascopemanSolidParams -
matiascopemanParamsUMRPRU
protected double[] matiascopemanParamsUMRPRU -
lennardJonesMolecularDiameter
protected double lennardJonesMolecularDiameter -
lennardJonesEnergyParameter
protected double lennardJonesEnergyParameter -
stokesCationicDiameter
protected double stokesCationicDiameter -
paulingAnionicDiameter
protected double paulingAnionicDiameter -
orginalNumberOfAssociationSites
private int orginalNumberOfAssociationSites -
dfugdt
protected double dfugdt -
dfugdp
protected double dfugdp -
dfugdn
protected double[] dfugdn -
dfugdx
public double[] dfugdx -
AntoineA
double AntoineA -
AntoineB
double AntoineB -
AntoineC
double AntoineC -
AntoineD
double AntoineD -
AntoineE
double AntoineE -
CpA
private double CpA -
CpB
private double CpB -
CpC
private double CpC -
CpD
private double CpD -
CpE
private double CpE -
CpSolid
private double[] CpSolid -
CpLiquid
private double[] CpLiquid -
heatOfFusion
private double heatOfFusion -
triplePointDensity
double triplePointDensity -
triplePointPressure
double triplePointPressure -
triplePointTemperature
private double triplePointTemperature -
meltingPointTemperature
double meltingPointTemperature -
idealGasEnthalpyOfFormation
private double idealGasEnthalpyOfFormation -
idealGasGibbsEnergyOfFormation
double idealGasGibbsEnergyOfFormation -
idealGasAbsoluteEntropy
double idealGasAbsoluteEntropy -
Hsub
double Hsub -
solidDensityCoefs
double[] solidDensityCoefs -
liquidDensityCoefs
double[] liquidDensityCoefs -
heatOfVaporizationCoefs
double[] heatOfVaporizationCoefs -
mSAFTi
protected double mSAFTi -
sigmaSAFTi
protected double sigmaSAFTi -
epsikSAFT
protected double epsikSAFT -
associationVolumeSAFT
private double associationVolumeSAFT -
associationEnergySAFT
private double associationEnergySAFT
-
-
Constructor Details
-
Component
public Component(int number, double TC, double PC, double M, double a, double moles) Constructor for Component.
- Parameters:
number- a int. Not used.TC- Critical temperature [K]PC- Critical pressure [bara]M- Molar massa- Acentric factormoles- Total number of moles of component.
-
Component
Constructor for Component.
- Parameters:
name- Name of component.moles- Total number of moles of component.molesInPhase- Number of moles in phase.compIndex- Index number of component in phase object component array.
-
-
Method Details
-
createComponent
Helper function to create component. Typically called from constructors.
- Specified by:
createComponentin interfaceComponentInterface- Parameters:
name- Name of component.moles- Total number of moles of component in system.molesInPhase- Number of moles in phase.compIndex- Index number of component in phase object component array.
-
insertComponentIntoDatabase
Insert this component into NeqSim component database.
- Specified by:
insertComponentIntoDatabasein interfaceComponentInterface- Parameters:
databaseName- Name of database. Not in use, overwritten as comptemp.
-
clone
clone.
- Specified by:
clonein interfaceComponentInterface- Overrides:
clonein classObject- Returns:
- a
ComponentInterfaceobject
-
addMolesChemReac
public void addMolesChemReac(double dn, double totdn) Change the number of moles of component of phase, i.e.,
numberOfMolesInPhase, and total number of moles of component in system, i.e.,numberOfMoleswith separate amounts.- Specified by:
addMolesChemReacin interfaceComponentInterface- Parameters:
dn- Number of moles of component to add to phasetotdn- Number of moles of component to add to system
-
setProperties
setProperties.
- Specified by:
setPropertiesin interfaceComponentInterface- Parameters:
component- aComponentInterfaceobject
-
init
public void init(double temperature, double pressure, double totalNumberOfMoles, double beta, int initType) Initialize component.
- Specified by:
initin interfaceComponentInterface- Parameters:
temperature- Temperature in unit ?. Used to calculateK.pressure- Pressure in unit ?. Used to calculateK.totalNumberOfMoles- Total number of moles of component.beta- Beta value, i.e.,initType- Init type. CalculateK,z,xif type == 0.
-
getElements
getElements.
- Specified by:
getElementsin interfaceComponentInterface- Returns:
- a
Elementobject
-
Finit
public void Finit(PhaseInterface phase, double temp, double pres, double totMoles, double beta, int numberOfComponents, int initType) Finit.
- Specified by:
Finitin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobjecttemp- a doublepres- a doubletotMoles- a doublebeta- a doublenumberOfComponents- a intinitType- a int
-
getx
public final double getx()Getter for property x, i.e., the mole fraction of a component in a specific phase. For the mole fraction for a specific phase see
ComponentInterface.getz()NB! init(0) must be called first from system.- Specified by:
getxin interfaceComponentInterface- Returns:
- a double
-
getz
public final double getz()Getter for property z, i.e., the mole fraction of a component in the fluid. For the mole fraction for a specific phase see
ComponentInterface.getx()NB! init(0) must be called first from system.- Specified by:
getzin interfaceComponentInterface- Returns:
- a double
-
setz
public final void setz(double z) setz.
- Specified by:
setzin interfaceComponentInterface- Parameters:
z- a double
-
getReferencePotential
public final double getReferencePotential()getReferencePotential.
- Specified by:
getReferencePotentialin interfaceComponentInterface- Returns:
- a double
-
setReferencePotential
public final void setReferencePotential(double ref) setReferencePotential.
- Specified by:
setReferencePotentialin interfaceComponentInterface- Parameters:
ref- a double
-
getK
public final double getK()The distribution coefficient y/x between gas and liquid for a component. NB! init must be called first.
- Specified by:
getKin interfaceComponentInterface- Returns:
- a double
-
getHeatOfFusion
public final double getHeatOfFusion()getHeatOfFusion.
- Specified by:
getHeatOfFusionin interfaceComponentInterface- Returns:
- a double
-
getHeatOfVapourization
public double getHeatOfVapourization(double temp) getHeatOfVapourization.
- Specified by:
getHeatOfVapourizationin interfaceComponentInterface- Parameters:
temp- a double- Returns:
- a double
-
getTriplePointDensity
public final double getTriplePointDensity()getTriplePointDensity.
- Specified by:
getTriplePointDensityin interfaceComponentInterface- Returns:
- a double
-
getTriplePointPressure
public final double getTriplePointPressure()getTriplePointPressure.
- Specified by:
getTriplePointPressurein interfaceComponentInterface- Returns:
- a double
-
getTriplePointTemperature
public final double getTriplePointTemperature()getTriplePointTemperature.
- Specified by:
getTriplePointTemperaturein interfaceComponentInterface- Returns:
- a double
-
getMeltingPointTemperature
public final double getMeltingPointTemperature()getMeltingPointTemperature.
- Specified by:
getMeltingPointTemperaturein interfaceComponentInterface- Returns:
- a double
-
getIdealGasEnthalpyOfFormation
public final double getIdealGasEnthalpyOfFormation()getIdealGasEnthalpyOfFormation.
- Specified by:
getIdealGasEnthalpyOfFormationin interfaceComponentInterface- Returns:
- a double
-
getIdealGasGibbsEnergyOfFormation
public final double getIdealGasGibbsEnergyOfFormation()getIdealGasGibbsEnergyOfFormation.
- Specified by:
getIdealGasGibbsEnergyOfFormationin interfaceComponentInterface- Returns:
- a double
-
getIdealGasAbsoluteEntropy
public final double getIdealGasAbsoluteEntropy()getIdealGasAbsoluteEntropy.
- Specified by:
getIdealGasAbsoluteEntropyin interfaceComponentInterface- Returns:
- a double
-
getTC
public final double getTC()Returns the critical temperature of the component.
- Specified by:
getTCin interfaceComponentInterface- Returns:
- The critical temperature of the component in Kelvin.
-
getTC
Returns the critical temperature of the component.
- Specified by:
getTCin interfaceComponentInterface- Parameters:
unit- Unit of return temperature- Returns:
- The critical temperature of the component in specified unit.
-
setTC
public final void setTC(double val) setTC.
- Specified by:
setTCin interfaceComponentInterface- Parameters:
val- a double
-
setTC
setTC.
- Specified by:
setTCin interfaceComponentInterface- Parameters:
val- a doubleunit- a String
-
setPC
public final void setPC(double val) Setter for critical pressure.
- Specified by:
setPCin interfaceComponentInterface- Parameters:
val- Critical pressure in unit bara.
-
setPC
Setter for critical pressure in specified unit.
- Specified by:
setPCin interfaceComponentInterface- Parameters:
val- Critical pressure in unit specified byunit.unit- Engineering unit.
-
getComponentName
Getter for property
componentName.- Specified by:
getComponentNamein interfaceComponentInterface- Returns:
- a
Stringobject
-
getReferenceStateType
getReferenceStateType.
- Specified by:
getReferenceStateTypein interfaceComponentInterface- Returns:
- a
Stringobject
-
getPC
public final double getPC()Returns the critical pressure of the component.
- Specified by:
getPCin interfaceComponentInterface- Returns:
- The critical pressure of the component in unit bara.
-
getPC
Returns the critical pressure of the component.
- Specified by:
getPCin interfaceComponentInterface- Parameters:
unit- Unit of return pressure- Returns:
- The critical pressure of the component in specified unit.
-
getGibbsEnergyOfFormation
public double getGibbsEnergyOfFormation()getGibbsEnergyOfFormation.
- Specified by:
getGibbsEnergyOfFormationin interfaceComponentInterface- Returns:
- a double
-
getDiElectricConstant
public double getDiElectricConstant(double temperature) getDiElectricConstant.
- Specified by:
getDiElectricConstantin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getDiElectricConstantdT
public double getDiElectricConstantdT(double temperature) getDiElectricConstantdT.
- Specified by:
getDiElectricConstantdTin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getDiElectricConstantdTdT
public double getDiElectricConstantdTdT(double temperature) getDiElectricConstantdTdT.
- Specified by:
getDiElectricConstantdTdTin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getDebyeDipoleMoment
public double getDebyeDipoleMoment()This function handles the retrieval of a chemical’s dipole moment. Dipole moment, [debye] as a double
- Specified by:
getDebyeDipoleMomentin interfaceComponentInterface- Returns:
- a double
-
getIonicCharge
public final double getIonicCharge()getIonicCharge.
- Specified by:
getIonicChargein interfaceComponentInterface- Returns:
- a double
-
setViscosityAssociationFactor
public final void setViscosityAssociationFactor(double val) setViscosityAssociationFactor.
- Specified by:
setViscosityAssociationFactorin interfaceComponentInterface- Parameters:
val- a double
-
getRacketZ
public final double getRacketZ()getRacketZ.
- Specified by:
getRacketZin interfaceComponentInterface- Returns:
- a double
-
getVolumeCorrectionConst
public double getVolumeCorrectionConst()getVolumeCorrectionConst.
- Specified by:
getVolumeCorrectionConstin interfaceComponentInterface- Returns:
- a double
-
getNormalLiquidDensity
public double getNormalLiquidDensity()getNormalLiquidDensity.
- Specified by:
getNormalLiquidDensityin interfaceComponentInterface- Returns:
- a double
-
getNormalLiquidDensity
getNormalLiquidDensity.
- Specified by:
getNormalLiquidDensityin interfaceComponentInterface- Parameters:
unit- i String with unit of return return a double- Returns:
- a double
-
getViscosityCorrectionFactor
public double getViscosityCorrectionFactor()getViscosityCorrectionFactor.
- Specified by:
getViscosityCorrectionFactorin interfaceComponentInterface- Returns:
- a double
-
getViscosityFrictionK
public double getViscosityFrictionK()Get component specific friction factor used in friction-theory viscosity model.- Specified by:
getViscosityFrictionKin interfaceComponentInterface- Returns:
- friction factor
-
setViscosityFrictionK
public void setViscosityFrictionK(double viscosityFrictionK) Set component specific friction factor used in friction-theory viscosity model.- Specified by:
setViscosityFrictionKin interfaceComponentInterface- Parameters:
viscosityFrictionK- friction factor
-
getCriticalVolume
public double getCriticalVolume()getCriticalVolume.
- Specified by:
getCriticalVolumein interfaceComponentInterface- Returns:
- a double
-
getLiquidViscosityModel
public final int getLiquidViscosityModel()getLiquidViscosityModel.
- Specified by:
getLiquidViscosityModelin interfaceComponentInterface- Returns:
- a int
-
getParachorParameter
public final double getParachorParameter()getParachorParameter.
- Specified by:
getParachorParameterin interfaceComponentInterface- Returns:
- a double
-
setParachorParameter
public final void setParachorParameter(double parachorParameter) setParachorParameter.
- Specified by:
setParachorParameterin interfaceComponentInterface- Parameters:
parachorParameter- a double
-
setLiquidViscosityModel
public final void setLiquidViscosityModel(int modelNumber) setLiquidViscosityModel.
- Specified by:
setLiquidViscosityModelin interfaceComponentInterface- Parameters:
modelNumber- a int
-
setLiquidViscosityParameter
public final void setLiquidViscosityParameter(double number, int i) setLiquidViscosityParameter.
- Specified by:
setLiquidViscosityParameterin interfaceComponentInterface- Parameters:
number- a doublei- a int
-
getLiquidViscosityParameter
public final double getLiquidViscosityParameter(int i) getLiquidViscosityParameter.
- Specified by:
getLiquidViscosityParameterin interfaceComponentInterface- Parameters:
i- a int- Returns:
- a double
-
setLiquidConductivityParameter
public void setLiquidConductivityParameter(double number, int i) setLiquidConductivityParameter.
- Specified by:
setLiquidConductivityParameterin interfaceComponentInterface- Parameters:
number- a doublei- a int
-
getLiquidConductivityParameter
public double getLiquidConductivityParameter(int i) getLiquidConductivityParameter.
- Specified by:
getLiquidConductivityParameterin interfaceComponentInterface- Parameters:
i- a int- Returns:
- a double
-
getLennardJonesMolecularDiameter
public double getLennardJonesMolecularDiameter()getLennardJonesMolecularDiameter.
- Specified by:
getLennardJonesMolecularDiameterin interfaceComponentInterface- Returns:
- Units in m*e10
-
getLennardJonesEnergyParameter
public double getLennardJonesEnergyParameter()getLennardJonesEnergyParameter.
- Specified by:
getLennardJonesEnergyParameterin interfaceComponentInterface- Returns:
- a double
-
getHsub
public double getHsub()getHsub.
- Specified by:
getHsubin interfaceComponentInterface- Returns:
- a double
-
getCCsolidVaporPressure
public double getCCsolidVaporPressure(double temperature) getCCsolidVaporPressure. Calculates the pure comonent solid vapor pressure (bar) with the C-C equation, based on Hsub Should only be used in the valid temperature range below the triple point (specified in component database).
- Specified by:
getCCsolidVaporPressurein interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- Calculated solid vapor pressure in bar.
-
getCCsolidVaporPressuredT
public double getCCsolidVaporPressuredT(double temperature) getCCsolidVaporPressuredT. Calculates the DT of pure comonent solid vapor pressure (bar) with the C-C equation, based on Hsub Should only be used in the valid temperature range below the triple point (specified in component database).
- Specified by:
getCCsolidVaporPressuredTin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- Calculated solid vapor pressure in bar.
-
getPureComponentSolidDensity
public double getPureComponentSolidDensity(double temperature) getPureComponentSolidDensity. Calculates the pure component solid density in kg/liter Should only be used in the valid temperature range (specified in component database).
- Specified by:
getPureComponentSolidDensityin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- pure component solid density in kg/liter
-
getPureComponentLiquidDensity
public double getPureComponentLiquidDensity(double temperature) getPureComponentLiquidDensity. Calculates the pure component liquid density in kg/liter Should only be used in the valid temperature range (specified in component database). This method seems to give bad results at the moment
- Specified by:
getPureComponentLiquidDensityin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- pure component liquid density in kg/liter
-
getPureComponentHeatOfVaporization
public double getPureComponentHeatOfVaporization(double temperature) Calculates the pure component heat of vaporization in J/mol.- Specified by:
getPureComponentHeatOfVaporizationin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
setx
public final void setx(double newx) setx.
- Specified by:
setxin interfaceComponentInterface- Parameters:
newx- a double
-
setNumberOfmoles
public final void setNumberOfmoles(double newmoles) setNumberOfmoles.
- Specified by:
setNumberOfmolesin interfaceComponentInterface- Parameters:
newmoles- a double
-
setNumberOfMolesInPhase
public final void setNumberOfMolesInPhase(double totmoles) setNumberOfMolesInPhase.
- Specified by:
setNumberOfMolesInPhasein interfaceComponentInterface- Parameters:
totmoles- a double
-
getNumberOfmoles
public final double getNumberOfmoles()getNumberOfmoles.
- Specified by:
getNumberOfmolesin interfaceComponentInterface- Returns:
- a double
-
getMolarMass
public final double getMolarMass()Get molar mass of component.- Specified by:
getMolarMassin interfaceComponentInterface- Returns:
- molar mass in unit kg/mol
-
getMolarMass
Get molar mass of component.- Specified by:
getMolarMassin interfaceComponentInterface- Parameters:
unit- a String- Returns:
- molar mass in unit kg/mol
-
getNumberOfMolesInPhase
public final double getNumberOfMolesInPhase()getNumberOfMolesInPhase.
- Specified by:
getNumberOfMolesInPhasein interfaceComponentInterface- Returns:
- a double
-
getRate
getRate.
- Specified by:
getRatein interfaceComponentInterface- Parameters:
unitName- aStringobject- Returns:
- a double
-
setK
public final void setK(double newK) setK.
- Specified by:
setKin interfaceComponentInterface- Parameters:
newK- a double
-
getFugacityCoefficient
public final double getFugacityCoefficient()getFugacityCoefficient.
- Specified by:
getFugacityCoefficientin interfaceComponentInterface- Returns:
- a double
-
fugcoef
Calculate, set and return fugacity coefficient.
- Specified by:
fugcoefin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject to get fugacity coefficient of.- Returns:
- Fugacity coefficient
-
logfugcoefdT
logfugcoefdT.
- Specified by:
logfugcoefdTin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
logfugcoefdP
logfugcoefdP.
- Specified by:
logfugcoefdPin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
logfugcoefdN
logfugcoefdN.
- Specified by:
logfugcoefdNin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- an array of type double
-
logfugcoefdNi
logfugcoefdNi.
- Specified by:
logfugcoefdNiin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobjectk- a int- Returns:
- a double
-
getdfugdt
public double getdfugdt()getdfugdt.
- Specified by:
getdfugdtin interfaceComponentInterface- Returns:
- a double
-
getdfugdp
public double getdfugdp()getdfugdp.
- Specified by:
getdfugdpin interfaceComponentInterface- Returns:
- a double
-
setdfugdt
public void setdfugdt(double val) setdfugdt.
- Specified by:
setdfugdtin interfaceComponentInterface- Parameters:
val- a double
-
setdfugdp
public void setdfugdp(double val) setdfugdp.
- Specified by:
setdfugdpin interfaceComponentInterface- Parameters:
val- a double
-
setdfugdn
public void setdfugdn(int i, double val) setdfugdn.
- Specified by:
setdfugdnin interfaceComponentInterface- Parameters:
i- a intval- a double
-
setdfugdx
public void setdfugdx(int i, double val) setdfugdx.
- Specified by:
setdfugdxin interfaceComponentInterface- Parameters:
i- a intval- a double
-
getAcentricFactor
public double getAcentricFactor()getAcentricFactor.
- Specified by:
getAcentricFactorin interfaceComponentInterface- Returns:
- a double
-
reducedTemperature
public double reducedTemperature(double temperature) Returns the reduced temperature (T/Tc) for a given temperature.- Specified by:
reducedTemperaturein interfaceComponentInterface- Parameters:
temperature- Temperature in Kelvin- Returns:
- reduced temperature []
-
reducedPressure
public double reducedPressure(double pressure) Returns the reduced pressure (P/Pc) for a given pressure.- Specified by:
reducedPressurein interfaceComponentInterface- Parameters:
pressure- Pressure in bara- Returns:
- reduced pressure []
-
getdfugdx
public double getdfugdx(int i) getdfugdx.
- Specified by:
getdfugdxin interfaceComponentInterface- Parameters:
i- a int- Returns:
- a double
-
getdfugdn
public double getdfugdn(int i) getdfugdn.
- Specified by:
getdfugdnin interfaceComponentInterface- Parameters:
i- a int- Returns:
- a double
-
getIndex
public int getIndex()getIndex.
- Specified by:
getIndexin interfaceComponentInterface- Returns:
- a int
-
getComponentNumber
public int getComponentNumber()Getter for property
componentNumber.- Specified by:
getComponentNumberin interfaceComponentInterface- Returns:
- Index number of component in phase object component array.
-
getGibbsEnergy
public final double getGibbsEnergy(double temperature, double pressure) getGibbsEnergy.
- Specified by:
getGibbsEnergyin interfaceComponentInterface- Parameters:
temperature- a doublepressure- a double- Returns:
- a double
-
getChemicalPotentialIdealReference
getChemicalPotentialIdealReference.
- Specified by:
getChemicalPotentialIdealReferencein interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotential
public final double getChemicalPotential(double temperature, double pressure) getChemicalPotential.
- Specified by:
getChemicalPotentialin interfaceComponentInterface- Parameters:
temperature- a doublepressure- a double- Returns:
- a double
-
getChemicalPotential
getChemicalPotential.
- Specified by:
getChemicalPotentialin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getFugacitydN
getFugacitydN.
- Parameters:
i- a intphase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotentialdNTV
getChemicalPotentialdNTV.
- Specified by:
getChemicalPotentialdNTVin interfaceComponentInterface- Parameters:
i- a intphase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotentialdN
getChemicalPotentialdN.
- Specified by:
getChemicalPotentialdNin interfaceComponentInterface- Parameters:
i- a intphase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotentialdP
public final double getChemicalPotentialdP()getChemicalPotentialdP.
- Specified by:
getChemicalPotentialdPin interfaceComponentInterface- Returns:
- a double
-
getChemicalPotentialdP
getChemicalPotentialdP.
- Parameters:
i- a intphase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotentialdT
getChemicalPotentialdT.
- Specified by:
getChemicalPotentialdTin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getChemicalPotentialdV
getChemicalPotentialdV.
- Specified by:
getChemicalPotentialdVin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
setComponentNumber
public void setComponentNumber(int numb) Setter for property
componentNumber.- Specified by:
setComponentNumberin interfaceComponentInterface- Parameters:
numb- Index number of component in phase object component array.
-
getAntoineVaporPressure
public double getAntoineVaporPressure(double temp) getAntoineVaporPressure.
- Specified by:
getAntoineVaporPressurein interfaceComponentInterface- Parameters:
temp- a double- Returns:
- a double
-
getAntoineVaporPressuredT
public double getAntoineVaporPressuredT(double temp) getAntoineVaporPressuredT.
- Specified by:
getAntoineVaporPressuredTin interfaceComponentInterface- Parameters:
temp- a double- Returns:
- a double
-
getAntoineVaporTemperature
public double getAntoineVaporTemperature(double pres) getAntoineVaporTemperature.
- Specified by:
getAntoineVaporTemperaturein interfaceComponentInterface- Parameters:
pres- a double- Returns:
- a double
-
getHresTP
public final double getHresTP(double temperature) getHresTP.
- Specified by:
getHresTPin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getGresTP
public final double getGresTP(double temperature) getGresTP.
- Specified by:
getGresTPin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getSresTP
public final double getSresTP(double temperature) getSresTP.
- Specified by:
getSresTPin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getCp0
public final double getCp0(double temperature) Return the ideal-gas molar heat capacity of a chemical using polynomial regressed coefficients as described by Poling, Bruce E. The Properties of Gases and Liquids. 5th edition. New York: McGraw-Hill Professional, 2000.
- Specified by:
getCp0in interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- ideal gas Cp for the component in the specific phase [J/molK]
-
getCv0
public final double getCv0(double temperature) getCv0.
- Specified by:
getCv0in interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- ideal gas Cv for the component in the specific phase [J/molK]
-
getHID
public final double getHID(double T) getHID.
- Specified by:
getHIDin interfaceComponentInterface- Parameters:
T- a double- Returns:
- a double
-
getEnthalpy
public final double getEnthalpy(double temperature) getEnthalpy.
- Specified by:
getEnthalpyin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getIdEntropy
public double getIdEntropy(double temperature) getIdEntropy.
- Specified by:
getIdEntropyin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getEntropy
public double getEntropy(double temperature, double pressure) getEntropy.
- Specified by:
getEntropyin interfaceComponentInterface- Parameters:
temperature- a doublepressure- a double- Returns:
- a double
-
getName
Getter for property
componentName, i.e., normalized component name.- Specified by:
getNamein interfaceComponentInterface- Returns:
- a
Stringobject
-
setAcentricFactor
public void setAcentricFactor(double val) setAcentricFactor.
- Specified by:
setAcentricFactorin interfaceComponentInterface- Parameters:
val- a double
-
setRacketZ
public void setRacketZ(double val) setRacketZ.
- Specified by:
setRacketZin interfaceComponentInterface- Parameters:
val- a double
-
setAttractiveTerm
public void setAttractiveTerm(int i) setAttractiveTerm.
- Specified by:
setAttractiveTermin interfaceComponentInterface- Parameters:
i- a int
-
getAttractiveTerm
getAttractiveTerm.
- Specified by:
getAttractiveTermin interfaceComponentInterface- Returns:
- a
AttractiveTermInterfaceobject
-
getSchwartzentruberParams
public final double[] getSchwartzentruberParams()getSchwartzentruberParams.
- Specified by:
getSchwartzentruberParamsin interfaceComponentInterface- Returns:
- an array of type double
-
setSchwartzentruberParams
public final void setSchwartzentruberParams(int i, double param) setSchwartzentruberParams.
- Specified by:
setSchwartzentruberParamsin interfaceComponentInterface- Parameters:
i- a intparam- a double
-
getTwuCoonParams
public final double[] getTwuCoonParams()getTwuCoonParams.
- Specified by:
getTwuCoonParamsin interfaceComponentInterface- Returns:
- an array of type double
-
setTwuCoonParams
public final void setTwuCoonParams(int i, double param) setTwuCoonParams.
- Specified by:
setTwuCoonParamsin interfaceComponentInterface- Parameters:
i- a intparam- a double
-
fugcoefDiffPresNumeric
public double fugcoefDiffPresNumeric(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) fugcoefDiffPresNumeric.
- Specified by:
fugcoefDiffPresNumericin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
fugcoefDiffTempNumeric
public double fugcoefDiffTempNumeric(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) fugcoefDiffTempNumeric.
- Specified by:
fugcoefDiffTempNumericin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
getIonicDiameter
public final double getIonicDiameter()getIonicDiameter.
- Returns:
- a double
-
getStokesCationicDiameter
public double getStokesCationicDiameter()getStokesCationicDiameter.
- Specified by:
getStokesCationicDiameterin interfaceComponentInterface- Returns:
- a double
-
setStokesCationicDiameter
public void setStokesCationicDiameter(double stokesCationicDiameter) setStokesCationicDiameter.
- Specified by:
setStokesCationicDiameterin interfaceComponentInterface- Parameters:
stokesCationicDiameter- a double
-
getPaulingAnionicDiameter
public final double getPaulingAnionicDiameter()getPaulingAnionicDiameter.
- Specified by:
getPaulingAnionicDiameterin interfaceComponentInterface- Returns:
- a double
-
setPaulingAnionicDiameter
public void setPaulingAnionicDiameter(double paulingAnionicDiameter) Setter for property paulingAnionicDiameter.- Parameters:
paulingAnionicDiameter- New value of property paulingAnionicDiameter.
-
getAttractiveTermNumber
public final int getAttractiveTermNumber()getAttractiveTermNumber.
- Specified by:
getAttractiveTermNumberin interfaceComponentInterface- Returns:
- a int
-
getVoli
public double getVoli()getVoli.
- Specified by:
getVoliin interfaceComponentInterface- Returns:
- a double
-
setVoli
public void setVoli(double molarVol) Setter for the field
voli.- Parameters:
molarVol- a double
-
getMatiascopemanParams
public final double getMatiascopemanParams(int index) Indexed getter for property matiascopemanParams.- Parameters:
index- Index of the property.- Returns:
- Value of the property at
index.
-
getMatiascopemanParams
public final double[] getMatiascopemanParams()getMatiascopemanParams.
- Specified by:
getMatiascopemanParamsin interfaceComponentInterface- Returns:
- an array of type double
-
getMatiascopemanParamsPR
public final double[] getMatiascopemanParamsPR()Getter for the field
matiascopemanParamsPR.- Returns:
- an array of type double
-
setMatiascopemanParamsPR
public void setMatiascopemanParamsPR(int index, double matiascopemanParams) Setter for the field
matiascopemanParamsPR.- Parameters:
index- a intmatiascopemanParams- a double
-
setMatiascopemanParams
public void setMatiascopemanParams(int index, double matiascopemanParams) setMatiascopemanParams.
- Specified by:
setMatiascopemanParamsin interfaceComponentInterface- Parameters:
index- a intmatiascopemanParams- a double
-
setMatiascopemanParams
public void setMatiascopemanParams(double[] matiascopemanParams) setMatiascopemanParams.
- Specified by:
setMatiascopemanParamsin interfaceComponentInterface- Parameters:
matiascopemanParams- an array of type double
-
setFugacityCoefficient
public void setFugacityCoefficient(double val) setFugacityCoefficient.
- Specified by:
setFugacityCoefficientin interfaceComponentInterface- Parameters:
val- a double
-
getNumberOfAssociationSites
public final int getNumberOfAssociationSites()getNumberOfAssociationSites.
- Specified by:
getNumberOfAssociationSitesin interfaceComponentInterface- Returns:
- a int
-
setNumberOfAssociationSites
public void setNumberOfAssociationSites(int numberOfAssociationSites) setNumberOfAssociationSites.
- Specified by:
setNumberOfAssociationSitesin interfaceComponentInterface- Parameters:
numberOfAssociationSites- a int
-
seta
public void seta(double a) seta.
- Specified by:
setain interfaceComponentInterface- Parameters:
a- a double
-
setb
public void setb(double b) setb.
- Specified by:
setbin interfaceComponentInterface- Parameters:
b- a double
-
getAssociationVolume
public final double getAssociationVolume()getAssociationVolume.
- Specified by:
getAssociationVolumein interfaceComponentInterface- Returns:
- a double
-
setAssociationVolume
public void setAssociationVolume(double associationVolume) setAssociationVolume.
- Specified by:
setAssociationVolumein interfaceComponentInterface- Parameters:
associationVolume- a double
-
getAssociationEnergy
public final double getAssociationEnergy()getAssociationEnergy.
- Specified by:
getAssociationEnergyin interfaceComponentInterface- Returns:
- a double
-
setAssociationEnergy
public void setAssociationEnergy(double associationEnergy) setAssociationEnergy.
- Specified by:
setAssociationEnergyin interfaceComponentInterface- Parameters:
associationEnergy- a double
-
getNormalBoilingPoint
public double getNormalBoilingPoint()Getter for property NormalBoilingPoint.
- Specified by:
getNormalBoilingPointin interfaceComponentInterface- Returns:
- The normal boiling point of the component with unit Kelvin
-
getNormalBoilingPoint
Getter for property NormalBoilingPoint.
- Specified by:
getNormalBoilingPointin interfaceComponentInterface- Parameters:
unit- Unit of return pressure- Returns:
- The normal boiling point of the component in specified unit.
-
setNormalBoilingPoint
public void setNormalBoilingPoint(double normalBoilingPoint) setNormalBoilingPoint.
- Specified by:
setNormalBoilingPointin interfaceComponentInterface- Parameters:
normalBoilingPoint- a double with unit Kelvin
-
getStandardDensity
public double getStandardDensity()Getter for property standardDensity.- Returns:
- Value of property standardDensity.
-
setStandardDensity
public void setStandardDensity(double standardDensity) Setter for property standardDensity.- Parameters:
standardDensity- New value of property standardDensity.
-
getAntoineASolid
public double getAntoineASolid()getAntoineASolid.
- Specified by:
getAntoineASolidin interfaceComponentInterface- Returns:
- a double
-
setAntoineASolid
public void setAntoineASolid(double AntoineASolid) setAntoineASolid.
- Specified by:
setAntoineASolidin interfaceComponentInterface- Parameters:
AntoineASolid- a double
-
getAntoineBSolid
public double getAntoineBSolid()getAntoineBSolid.
- Specified by:
getAntoineBSolidin interfaceComponentInterface- Returns:
- a double
-
setAntoineBSolid
public void setAntoineBSolid(double AntoineBSolid) setAntoineBSolid.
- Specified by:
setAntoineBSolidin interfaceComponentInterface- Parameters:
AntoineBSolid- a double
-
getAntoineCSolid
public double getAntoineCSolid()getAntoineCSolid.
- Specified by:
getAntoineCSolidin interfaceComponentInterface- Returns:
- a double
-
setAntoineCSolid
public void setAntoineCSolid(double AntoineCSolid) setAntoineCSolid.
- Specified by:
setAntoineCSolidin interfaceComponentInterface- Parameters:
AntoineCSolid- a double
-
getSolidVaporPressure
public final double getSolidVaporPressure(double temperature) getSolidVaporPressure.
- Specified by:
getSolidVaporPressurein interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getSolidVaporPressuredT
public final double getSolidVaporPressuredT(double temperature) getSolidVaporPressuredT.
- Specified by:
getSolidVaporPressuredTin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getSphericalCoreRadius
public final double getSphericalCoreRadius()getSphericalCoreRadius.
- Specified by:
getSphericalCoreRadiusin interfaceComponentInterface- Returns:
- a double
-
setComponentName
Setter for property
componentName.- Specified by:
setComponentNamein interfaceComponentInterface- Parameters:
componentName- aStringobject
-
setLennardJonesEnergyParameter
public void setLennardJonesEnergyParameter(double lennardJonesEnergyParameter) setLennardJonesEnergyParameter.
- Specified by:
setLennardJonesEnergyParameterin interfaceComponentInterface- Parameters:
lennardJonesEnergyParameter- a double
-
setLennardJonesMolecularDiameter
public void setLennardJonesMolecularDiameter(double lennardJonesMolecularDiameter) setLennardJonesMolecularDiameter.
- Specified by:
setLennardJonesMolecularDiameterin interfaceComponentInterface- Parameters:
lennardJonesMolecularDiameter- a double
-
setSphericalCoreRadius
public void setSphericalCoreRadius(double sphericalCoreRadius) setSphericalCoreRadius.
- Specified by:
setSphericalCoreRadiusin interfaceComponentInterface- Parameters:
sphericalCoreRadius- a double
-
calcActivity
public boolean calcActivity()calcActivity.
- Specified by:
calcActivityin interfaceComponentInterface- Returns:
- a boolean
-
isIsTBPfraction
public boolean isIsTBPfraction()isIsTBPfraction.
- Specified by:
isIsTBPfractionin interfaceComponentInterface- Returns:
- a boolean
-
isHydrocarbon
public boolean isHydrocarbon()isHydrocarbon.
- Specified by:
isHydrocarbonin interfaceComponentInterface- Returns:
- a boolean
-
setIsTBPfraction
public void setIsTBPfraction(boolean isTBPfraction) setIsTBPfraction.
- Specified by:
setIsTBPfractionin interfaceComponentInterface- Parameters:
isTBPfraction- a boolean
-
setIsAllTypesFalse
protected void setIsAllTypesFalse()setIsAllTypesFalse.
-
isIsPlusFraction
public boolean isIsPlusFraction()isIsPlusFraction.
- Specified by:
isIsPlusFractionin interfaceComponentInterface- Returns:
- a boolean
-
setIsPlusFraction
public void setIsPlusFraction(boolean isPlusFraction) setIsPlusFraction.
- Specified by:
setIsPlusFractionin interfaceComponentInterface- Parameters:
isPlusFraction- a boolean
-
isIsNormalComponent
public boolean isIsNormalComponent()isIsNormalComponent.
- Specified by:
isIsNormalComponentin interfaceComponentInterface- Returns:
- a boolean
-
isInert
public boolean isInert()isInert.
- Specified by:
isInertin interfaceComponentInterface- Returns:
- a boolean
-
setIsNormalComponent
public void setIsNormalComponent(boolean isNormalComponent) setIsNormalComponent.
- Specified by:
setIsNormalComponentin interfaceComponentInterface- Parameters:
isNormalComponent- a boolean
-
isIsIon
public boolean isIsIon()isIsIon.
- Specified by:
isIsIonin interfaceComponentInterface- Returns:
- a boolean
-
setIsIon
public void setIsIon(boolean isIon) setIsIon.
- Specified by:
setIsIonin interfaceComponentInterface- Parameters:
isIon- a boolean
-
setNormalLiquidDensity
public void setNormalLiquidDensity(double normalLiquidDensity) setNormalLiquidDensity.
- Specified by:
setNormalLiquidDensityin interfaceComponentInterface- Parameters:
normalLiquidDensity- a double
-
setMolarMass
public void setMolarMass(double molarMass) setMolarMass.
- Specified by:
setMolarMassin interfaceComponentInterface- Parameters:
molarMass- a double
-
setMolarMass
setMolarMass.
- Specified by:
setMolarMassin interfaceComponentInterface- Parameters:
value- a doubleunit- a String
-
doSolidCheck
public final boolean doSolidCheck()Getter for field
solidCheck.- Specified by:
doSolidCheckin interfaceComponentInterface- Returns:
- a boolean
-
setSolidCheck
public void setSolidCheck(boolean checkForSolids) Setter for field
solidCheck.- Specified by:
setSolidCheckin interfaceComponentInterface- Parameters:
checkForSolids- Set true to do solid phase check and calculations
-
getAssociationScheme
getAssociationScheme.
- Specified by:
getAssociationSchemein interfaceComponentInterface- Returns:
- a
Stringobject
-
setAssociationScheme
setAssociationScheme.
- Specified by:
setAssociationSchemein interfaceComponentInterface- Parameters:
associationScheme- aStringobject
-
getComponentType
getComponentType.
- Specified by:
getComponentTypein interfaceComponentInterface- Returns:
- a
Stringobject
-
getHenryCoef
public double getHenryCoef(double temperature) getHenryCoef. Getter for property Henrys Coefficient. Unit is bar. ln H = C1 + C2/T + C3lnT + C4*T
- Specified by:
getHenryCoefin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- Henrys Coefficient in bar
-
getHenryCoefdT
public double getHenryCoefdT(double temperature) getHenryCoefdT.
- Specified by:
getHenryCoefdTin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getHenryCoefParameter
public double[] getHenryCoefParameter()getHenryCoefParameter.
- Specified by:
getHenryCoefParameterin interfaceComponentInterface- Returns:
- an array of type double
-
setHenryCoefParameter
public void setHenryCoefParameter(double[] henryCoefParameter) setHenryCoefParameter.
- Specified by:
setHenryCoefParameterin interfaceComponentInterface- Parameters:
henryCoefParameter- an array of type double
-
getMatiascopemanSolidParams
public double[] getMatiascopemanSolidParams()getMatiascopemanSolidParams.
- Specified by:
getMatiascopemanSolidParamsin interfaceComponentInterface- Returns:
- an array of type double
-
setMatiascopemanSolidParams
public void setMatiascopemanSolidParams(double[] matiascopemanSolidParams) Setter for property matiascopemanSolidParams.- Parameters:
matiascopemanSolidParams- New value of property matiascopemanSolidParams.
-
getPureComponentCpSolid
public double getPureComponentCpSolid(double temperature) getPureComponentCpSolid.
- Specified by:
getPureComponentCpSolidin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
getPureComponentCpLiquid
public double getPureComponentCpLiquid(double temperature) getPureComponentCpLiquid.
- Specified by:
getPureComponentCpLiquidin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
setCriticalVolume
public void setCriticalVolume(double criticalVolume) setCriticalVolume.
- Specified by:
setCriticalVolumein interfaceComponentInterface- Parameters:
criticalVolume- a double
-
getCriticalViscosity
public double getCriticalViscosity()getCriticalViscosity.
- Specified by:
getCriticalViscosityin interfaceComponentInterface- Returns:
- a double
-
setCriticalViscosity
public void setCriticalViscosity(double criticalViscosity) setCriticalViscosity.
- Specified by:
setCriticalViscosityin interfaceComponentInterface- Parameters:
criticalViscosity- a double
-
getMolarity
getMolarity.
- Specified by:
getMolarityin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getMolality
getMolality.
- Specified by:
getMolalityin interfaceComponentInterface- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
isHydrateFormer
public boolean isHydrateFormer()isHydrateFormer.
- Specified by:
isHydrateFormerin interfaceComponentInterface- Returns:
- a boolean
-
setIsHydrateFormer
public void setIsHydrateFormer(boolean isHydrateFormer) setIsHydrateFormer.
- Specified by:
setIsHydrateFormerin interfaceComponentInterface- Parameters:
isHydrateFormer- a boolean
-
getmSAFTi
public double getmSAFTi()getmSAFTi.
- Specified by:
getmSAFTiin interfaceComponentInterface- Returns:
- a double
-
setmSAFTi
public void setmSAFTi(double mSAFTi) setmSAFTi.
- Specified by:
setmSAFTiin interfaceComponentInterface- Parameters:
mSAFTi- a double
-
getSigmaSAFTi
public double getSigmaSAFTi()getSigmaSAFTi.
- Specified by:
getSigmaSAFTiin interfaceComponentInterface- Returns:
- a double
-
setSigmaSAFTi
public void setSigmaSAFTi(double sigmaSAFTi) setSigmaSAFTi.
- Specified by:
setSigmaSAFTiin interfaceComponentInterface- Parameters:
sigmaSAFTi- a double
-
getEpsikSAFT
public double getEpsikSAFT()getEpsikSAFT.
- Specified by:
getEpsikSAFTin interfaceComponentInterface- Returns:
- a double
-
setEpsikSAFT
public void setEpsikSAFT(double epsikSAFT) setEpsikSAFT.
- Specified by:
setEpsikSAFTin interfaceComponentInterface- Parameters:
epsikSAFT- a double
-
getAssociationVolumeSAFT
public double getAssociationVolumeSAFT()getAssociationVolumeSAFT.
- Specified by:
getAssociationVolumeSAFTin interfaceComponentInterface- Returns:
- a double
-
setAssociationVolumeSAFT
public void setAssociationVolumeSAFT(double associationVolumeSAFT) setAssociationVolumeSAFT.
- Specified by:
setAssociationVolumeSAFTin interfaceComponentInterface- Parameters:
associationVolumeSAFT- a double
-
getAssociationEnergySAFT
public double getAssociationEnergySAFT()getAssociationEnergySAFT.
- Specified by:
getAssociationEnergySAFTin interfaceComponentInterface- Returns:
- a double
-
setAssociationEnergySAFT
public void setAssociationEnergySAFT(double associationEnergySAFT) setAssociationEnergySAFT.
- Specified by:
setAssociationEnergySAFTin interfaceComponentInterface- Parameters:
associationEnergySAFT- a double
-
getCriticalCompressibilityFactor
public double getCriticalCompressibilityFactor()getCriticalCompressibilityFactor.
- Specified by:
getCriticalCompressibilityFactorin interfaceComponentInterface- Returns:
- a double
-
setCriticalCompressibilityFactor
public void setCriticalCompressibilityFactor(double criticalCompressibilityFactor) setCriticalCompressibilityFactor.
- Specified by:
setCriticalCompressibilityFactorin interfaceComponentInterface- Parameters:
criticalCompressibilityFactor- a double
-
getSurfaceTenisionInfluenceParameter
public double getSurfaceTenisionInfluenceParameter(double temperature) getSurfaceTenisionInfluenceParameter.
- Specified by:
getSurfaceTenisionInfluenceParameterin interfaceComponentInterface- Parameters:
temperature- a double- Returns:
- a double
-
setSurfTensInfluenceParam
public void setSurfTensInfluenceParam(int factNum, double val) setSurfTensInfluenceParam.
- Specified by:
setSurfTensInfluenceParamin interfaceComponentInterface- Parameters:
factNum- a intval- a double
-
getSurfTensInfluenceParam
public double getSurfTensInfluenceParam(int factNum) getSurfTensInfluenceParam.
- Specified by:
getSurfTensInfluenceParamin interfaceComponentInterface- Parameters:
factNum- a int- Returns:
- a double
-
isWaxFormer
public boolean isWaxFormer()isWaxFormer.
- Specified by:
isWaxFormerin interfaceComponentInterface- Returns:
- a boolean
-
setWaxFormer
public void setWaxFormer(boolean waxFormer) setWaxFormer.
- Specified by:
setWaxFormerin interfaceComponentInterface- Parameters:
waxFormer- a boolean
-
setHeatOfFusion
public void setHeatOfFusion(double heatOfFusion) setHeatOfFusion.
- Specified by:
setHeatOfFusionin interfaceComponentInterface- Parameters:
heatOfFusion- a double
-
setTriplePointTemperature
public void setTriplePointTemperature(double triplePointTemperature) setTriplePointTemperature.
- Specified by:
setTriplePointTemperaturein interfaceComponentInterface- Parameters:
triplePointTemperature- a double
-
setComponentType
setComponentType.
- Specified by:
setComponentTypein interfaceComponentInterface- Parameters:
componentType- aStringobject
-
isIsHydrateFormer
public boolean isIsHydrateFormer()isIsHydrateFormer.
- Returns:
- the isHydrateFormer
-
getReferenceEnthalpy
public double getReferenceEnthalpy()Getter for the field
referenceEnthalpy.- Returns:
- the referenceEnthalpy
-
setReferenceEnthalpy
public void setReferenceEnthalpy(double referenceEnthalpy) Setter for the field
referenceEnthalpy.- Parameters:
referenceEnthalpy- the referenceEnthalpy to set
-
getCpA
public double getCpA()getCpA.
- Specified by:
getCpAin interfaceComponentInterface- Returns:
- a double
-
setCpA
public void setCpA(double CpA) setCpA.
- Specified by:
setCpAin interfaceComponentInterface- Parameters:
CpA- a double
-
getCpB
public double getCpB()getCpB.
- Specified by:
getCpBin interfaceComponentInterface- Returns:
- a double
-
setCpB
public void setCpB(double CpB) setCpB.
- Specified by:
setCpBin interfaceComponentInterface- Parameters:
CpB- a double
-
getCpC
public double getCpC()getCpC.
- Specified by:
getCpCin interfaceComponentInterface- Returns:
- a double
-
setCpC
public void setCpC(double CpC) setCpC.
- Specified by:
setCpCin interfaceComponentInterface- Parameters:
CpC- a double
-
getCpD
public double getCpD()getCpD.
- Specified by:
getCpDin interfaceComponentInterface- Returns:
- a double
-
setCpD
public void setCpD(double CpD) setCpD.
- Specified by:
setCpDin interfaceComponentInterface- Parameters:
CpD- a double
-
getFormulae
getFormulae.
- Specified by:
getFormulaein interfaceComponentInterface- Returns:
- a
Stringobject
-
setFormulae
setFormulae.
- Specified by:
setFormulaein interfaceComponentInterface- Parameters:
formulae- aStringobject
-
getCASnumber
getCASnumber.
- Specified by:
getCASnumberin interfaceComponentInterface- Returns:
- a
Stringobject
-
setCASnumber
setCASnumber.
- Specified by:
setCASnumberin interfaceComponentInterface- Parameters:
CASnumber- aStringobject
-
getOrginalNumberOfAssociationSites
public int getOrginalNumberOfAssociationSites()getOrginalNumberOfAssociationSites.
- Specified by:
getOrginalNumberOfAssociationSitesin interfaceComponentInterface- Returns:
- a int
-
getdrhodN
public double getdrhodN()getdrhodN.
- Specified by:
getdrhodNin interfaceComponentInterface- Returns:
- a double
-
getCpE
public double getCpE()getCpE.
- Specified by:
getCpEin interfaceComponentInterface- Returns:
- a double
-
setCpE
public void setCpE(double CpE) setCpE.
- Specified by:
setCpEin interfaceComponentInterface- Parameters:
CpE- a double
-
getRacketZCPA
public double getRacketZCPA()getRacketZCPA.
- Specified by:
getRacketZCPAin interfaceComponentInterface- Returns:
- a double
-
setRacketZCPA
public void setRacketZCPA(double racketZCPA) setRacketZCPA.
- Specified by:
setRacketZCPAin interfaceComponentInterface- Parameters:
racketZCPA- a double
-
getVolumeCorrectionT
public double getVolumeCorrectionT()getVolumeCorrectionT.
- Specified by:
getVolumeCorrectionTin interfaceComponentInterface- Returns:
- a double
-
getVolumeCorrection
public double getVolumeCorrection()getVolumeCorrection.
- Specified by:
getVolumeCorrectionin interfaceComponentInterface- Returns:
- a double
-
hasVolumeCorrection
protected boolean hasVolumeCorrection()Check if a volume correction has been explicitly specified.- Returns:
trueif an explicit correction value has been provided.
-
setVolumeCorrectionConst
public void setVolumeCorrectionConst(double getVolumeCorrectionConst) setVolumeCorrectionConst.
- Specified by:
setVolumeCorrectionConstin interfaceComponentInterface- Parameters:
getVolumeCorrectionConst- a double
-
setVolumeCorrection
public void setVolumeCorrection(double volumeCorrection) setVolumeCorrection.
- Specified by:
setVolumeCorrectionin interfaceComponentInterface- Parameters:
volumeCorrection- a double
-
setVolumeCorrectionT
public void setVolumeCorrectionT(double volumeCorrectionT) setVolumeCorrectionT.
- Specified by:
setVolumeCorrectionTin interfaceComponentInterface- Parameters:
volumeCorrectionT- a double
-
getVolumeCorrectionT_CPA
public double getVolumeCorrectionT_CPA()getVolumeCorrectionT_CPA.
- Specified by:
getVolumeCorrectionT_CPAin interfaceComponentInterface- Returns:
- a double
-
setVolumeCorrectionT_CPA
public void setVolumeCorrectionT_CPA(double volumeCorrectionT_CPA) setVolumeCorrectionT_CPA.
- Specified by:
setVolumeCorrectionT_CPAin interfaceComponentInterface- Parameters:
volumeCorrectionT_CPA- a double
-
setIdealGasEnthalpyOfFormation
public void setIdealGasEnthalpyOfFormation(double idealGasEnthalpyOfFormation) setIdealGasEnthalpyOfFormation.
- Specified by:
setIdealGasEnthalpyOfFormationin interfaceComponentInterface- Parameters:
idealGasEnthalpyOfFormation- a double
-
getFlowRate
method to return flow rate of a component.- Specified by:
getFlowRatein interfaceComponentInterface- Parameters:
flowunit- Supported units are kg/sec, kg/min, kg/hr, tonnes/year, m3/sec, m3/min, m3/hr, mole/sec, mole/min, mole/hr- Returns:
- flow rate in specified unit
-
getTotalFlowRate
method to return total flow rate of a component.- Specified by:
getTotalFlowRatein interfaceComponentInterface- Parameters:
flowunit- Supported units are kg/sec, kg/min, kg/hr, mole/sec, mole/min, mole/hr- Returns:
- total flow rate in specified unit
-
getMatiascopemanParamsUMRPRU
public final double[] getMatiascopemanParamsUMRPRU()Indexed getter for property matiascopemanParamsUMRPRU.- Returns:
- array of doubles
-
equals
-