Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Oct 26, 2024
1 parent e161200 commit 43437e6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package neqsim.fluidmechanics.flowsystem.twophaseflowsystem.twophasepipeflowsystem;

import neqsim.physicalproperties.physicalpropertysystem.PhysicalPropertySystemType;
import neqsim.physicalproperties.physicalpropertysystem.PhysicalPropertyModel;
import neqsim.thermo.system.SystemFurstElectrolyteEos;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
Expand Down Expand Up @@ -43,7 +43,7 @@ public static void main(String[] args) {
testSystem.chemicalReactionInit();
testSystem.createDatabase(true);
testSystem.setMixingRule(4);
testSystem.setPhysicalPropertyModel(PhysicalPropertySystemType.AMINE);
testSystem.setPhysicalPropertyModel(PhysicalPropertyModel.AMINE);
// testOps.TPflash();
// testSystem.display();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Even Solbraa
* @version $Id: $Id
*/
public class GasPhysicalPropertyMethod extends PhysicalPropertyMethod {
public abstract class GasPhysicalPropertyMethod extends PhysicalPropertyMethod {
private static final long serialVersionUID = 1000;

protected neqsim.physicalproperties.physicalpropertysystem.PhysicalPropertiesInterface gasPhase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
*
* @author Even Solbraa
*/
abstract class Conductivity extends GasPhysicalPropertyMethod implements ConductivityInterface {
public abstract class Conductivity extends GasPhysicalPropertyMethod
implements ConductivityInterface {
private static final long serialVersionUID = 1000;
static Logger logger = LogManager.getLogger(Conductivity.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public GasPhysicalProperties(PhaseInterface phase, int binaryDiffusionCoefficien
densityCalc =
new neqsim.physicalproperties.physicalpropertymethods.gasphysicalproperties.density.Density(
this);
// this.init(phase);
}

/** {@inheritDoc} */
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/neqsim/thermo/phase/Phase.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public abstract class Phase implements PhaseInterface {
private int initType = 0;
int mixingRuleNumber = 0;

/** Temperature of phase */
/** Temperature of phase. */
double temperature = 0;

/** Pressure of phase. */
Expand Down Expand Up @@ -471,11 +471,11 @@ public void init(double totalNumberOfMoles, int numberOfComponents, int initType

/** {@inheritDoc} */
@Override
public void setPhysicalPropertyHandlerType(PhysicalPropertyModel ppm) {
public void setPhysicalPropertyModel(PhysicalPropertyModel ppm) {
if (physicalPropertyHandler == null) {
physicalPropertyHandler = new PhysicalPropertyHandler();
}
physicalPropertyHandler.setPhysicalProperties(this, ppm);
physicalPropertyHandler.init(this, ppm);
}

/** {@inheritDoc} */
Expand Down Expand Up @@ -1912,13 +1912,13 @@ public void setRefPhase(neqsim.thermo.phase.PhaseInterface[] refPhase) {

/** {@inheritDoc} */
@Override
public final PhysicalPropertySystemType getPhysicalPropertySystemType() {
public final PhysicalPropertyModel getPhysicalPropertyModel() {
return this.ppm;
}

/** {@inheritDoc} */
@Override
public void setPhysicalPropertySystemType(PhysicalPropertyModel ppm) {
public void setPhysicalPropertyModel(PhysicalPropertyModel ppm) {
this.ppm = ppm;
}

Expand Down

0 comments on commit 43437e6

Please sign in to comment.