Skip to content

Commit

Permalink
docfix
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Oct 16, 2024
1 parent 95f1daa commit b52112b
Showing 1 changed file with 51 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ public SevereSlugAnalyser() {
super("SevereSlugAnalyser", "m3/sec");
}

// This constructor is used for the user input of superficial liquid and gas velocities,
// and the rest will be the default values
/**
* Constructor for class SevereSlugAnalyser.
*
* @param usl Superficial liquid velocity
* @param usg Superficial gas velocity
*/
public SevereSlugAnalyser(double usl, double usg) {
this();
this.setSuperficialLiquidVelocity(usl);
Expand All @@ -121,17 +125,36 @@ public SevereSlugAnalyser(double usl, double usg) {
// outletPressure,
// temperature, simulationTime, numberOfTimeSteps
// and the rest will be the default values

/**
* Constructor for class SevereSlugAnalyser.
*
* @param usl Superficial liquid velocity
* @param usg Superficial gas velocity
* @param outletPressure
* @param temperature
* @param simulationTime
* @param numberOfTimeSteps
*/
SevereSlugAnalyser(double usl, double usg, double outletPressure, double temperature,
double simulationTime, int numberOfTimeSteps) {
this();
this.setSuperficialLiquidVelocity(usl);
this.setSuperficialGasVelocity(usg);
this(usl, usg);
this.setOutletPressure(outletPressure);
this.setTemperature(temperature);
this.setSimulationTime(simulationTime);
this.setNumberOfTimeSteps(numberOfTimeSteps);
}

/**
* Constructor for class SevereSlugAnalyser.
*
* @param fluid
* @param pipe
* @param outletPressure
* @param temperature
* @param simulationTime
* @param numberOfTimeSteps
*/
public SevereSlugAnalyser(SystemInterface fluid, Pipe pipe, double outletPressure,
double temperature, double simulationTime, int numberOfTimeSteps) {
this();
Expand All @@ -152,6 +175,19 @@ public SevereSlugAnalyser(SystemInterface fluid, Pipe pipe, double outletPressur
this.setNumberOfTimeSteps(numberOfTimeSteps);
}

/**
* Constructor for class SevereSlugAnalyser.
*
* @param stream
* @param internalDiameter
* @param leftLength
* @param rightLength
* @param angle
* @param outletPressure
* @param temperature
* @param simulationTime
* @param numberOfTimeSteps
*/
public SevereSlugAnalyser(Stream stream, double internalDiameter, double leftLength,
double rightLength, double angle, double outletPressure, double temperature,
double simulationTime, int numberOfTimeSteps) {
Expand Down Expand Up @@ -187,6 +223,14 @@ public SevereSlugAnalyser(Stream stream, double internalDiameter, double leftLen
stream.getTemperature("C"), 500.0, 50000);
}

/**
* Constructor for class SevereSlugAnalyser.
*
* @param outletPressure
* @param temperature
* @param simulationTime
* @param numberOfTimeSteps
*/
public SevereSlugAnalyser(double outletPressure, double temperature, double simulationTime,
int numberOfTimeSteps) {
this();
Expand All @@ -196,8 +240,6 @@ public SevereSlugAnalyser(double outletPressure, double temperature, double simu
this.setNumberOfTimeSteps(numberOfTimeSteps);
}

// Encapsulation
// 1. Superficial Liquid Velocity Encapsulation
/**
* <p>
* setSuperficialLiquidVelocity.
Expand All @@ -220,7 +262,6 @@ public double getSuperficialLiquidVelocity() {
return usl;
}

// 2. Superficial Gas Velocity Encapsulation
/**
* <p>
* setSuperficialGasVelocity.
Expand Down Expand Up @@ -288,7 +329,6 @@ public double getOutletPressure() {
return outletPressure;
}

// 4. Temperature Encapsulation
/**
* <p>
* Setter for the field <code>temperature</code>.
Expand All @@ -311,7 +351,6 @@ public double getTemperature() {
return temperature;
}

// 5. Number of Time Steps Encapsulation
/**
* <p>
* Setter for the field <code>numberOfTimeSteps</code>.
Expand All @@ -334,7 +373,6 @@ public int getNumberOfTimeSteps() {
return numberOfTimeSteps;
}

// 6. Simulation Time Encapsulation
/**
* <p>
* Setter for the field <code>simulationTime</code>.
Expand All @@ -357,10 +395,9 @@ public double getSimulationTime() {
return simulationTime;
}

// Method 1: Calculating the universal gas constant
/**
* <p>
* gasConst.
* Calculating the universal gas constant.
* </p>
*
* @param fluid a
Expand All @@ -372,7 +409,7 @@ public double gasConst(FluidSevereSlug fluid) {
return ThermodynamicConstantsInterface.R / fluid.getMolecularWeight() * (273.15 + temperature);
}

// Declare the variables for resuts after creating an object Severe slug with required number of
// Declare the variables for results after creating an object Severe slug with required number of
// steps.

/**
Expand Down

0 comments on commit b52112b

Please sign in to comment.