Skip to content

Commit

Permalink
refact: rename getCpamix -> getCpaMixingRule
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Jan 9, 2025
1 parent 9556c8b commit 2f38ac4
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ public double dFCPAdXidXj(int sitei, int sitej, int compj, PhaseInterface phase)
}
return -getNumberOfMolesInPhase() / Math.pow(xsite[sitei], 2.0) * fact
- getNumberOfMolesInPhase() * phase.getComponent(compj).getNumberOfMolesInPhase()
* ((PhaseCPAInterface) phase).getCpamix().calcDelta(sitei, sitej, componentNumber,
compj, phase, phase.getTemperature(), phase.getPressure(),
* ((PhaseCPAInterface) phase).getCpaMixingRule().calcDelta(sitei, sitej,
componentNumber, compj, phase, phase.getTemperature(), phase.getPressure(),
phase.getNumberOfComponents());
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/neqsim/thermo/component/ComponentSrkCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ public double dFCPAdXidXj(int sitei, int sitej, int compj, PhaseInterface phase)
}
return -getNumberOfMolesInPhase() / Math.pow(xsite[sitei], 2.0) * fact
- getNumberOfMolesInPhase() * phase.getComponent(compj).getNumberOfMolesInPhase()
* ((PhaseCPAInterface) phase).getCpamix().calcDelta(sitei, sitej, componentNumber,
compj, phase, phase.getTemperature(), phase.getPressure(),
* ((PhaseCPAInterface) phase).getCpaMixingRule().calcDelta(sitei, sitej,
componentNumber, compj, phase, phase.getTemperature(), phase.getPressure(),
phase.getNumberOfComponents());
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/neqsim/thermo/component/ComponentUMRCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ public double dFCPAdXidXj(int sitei, int sitej, int compj, PhaseInterface phase)
}
return -getNumberOfMolesInPhase() / Math.pow(xsite[sitei], 2.0) * fact
- getNumberOfMolesInPhase() * phase.getComponent(compj).getNumberOfMolesInPhase()
* ((PhaseCPAInterface) phase).getCpamix().calcDelta(sitei, sitej, componentNumber,
compj, phase, phase.getTemperature(), phase.getPressure(),
* ((PhaseCPAInterface) phase).getCpaMixingRule().calcDelta(sitei, sitej,
componentNumber, compj, phase, phase.getTemperature(), phase.getPressure(),
phase.getNumberOfComponents());
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/neqsim/thermo/phase/PhaseCPAInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public interface PhaseCPAInterface extends PhaseEosInterface {

/**
* <p>
* getCpamix.
* getCpaMixingRule.
* </p>
*
* @return a {@link neqsim.thermo.mixingrule.CPAMixingRulesInterface} object
*/
public CPAMixingRulesInterface getCpamix();
public CPAMixingRulesInterface getCpaMixingRule();
}
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhaseElectrolyteCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ public void setGcpav(double gcpav) {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public void setGcpav(double gcpav) {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhasePCSAFTa.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public double getGcpav() {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhasePrCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public double getGcpav() {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhaseSrkCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ public void setGcpav(double gcpav) {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ public void setGcpav(double gcpav) {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhaseUMRCPA.java
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ public void setGcpav(double gcpav) {

/** {@inheritDoc} */
@Override
public CPAMixingRulesInterface getCpamix() {
public CPAMixingRulesInterface getCpaMixingRule() {
return cpamix;
}

Expand Down

0 comments on commit 2f38ac4

Please sign in to comment.