From b52112be292a5c92a95ef08ca064019423396dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:32:10 +0200 Subject: [PATCH] docfix --- .../simpleflowregime/SevereSlugAnalyser.java | 65 +++++++++++++++---- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/main/java/neqsim/processsimulation/measurementdevice/simpleflowregime/SevereSlugAnalyser.java b/src/main/java/neqsim/processsimulation/measurementdevice/simpleflowregime/SevereSlugAnalyser.java index 4d08a79f5d..2a68f73529 100644 --- a/src/main/java/neqsim/processsimulation/measurementdevice/simpleflowregime/SevereSlugAnalyser.java +++ b/src/main/java/neqsim/processsimulation/measurementdevice/simpleflowregime/SevereSlugAnalyser.java @@ -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); @@ -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(); @@ -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) { @@ -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(); @@ -196,8 +240,6 @@ public SevereSlugAnalyser(double outletPressure, double temperature, double simu this.setNumberOfTimeSteps(numberOfTimeSteps); } - // Encapsulation - // 1. Superficial Liquid Velocity Encapsulation /** *
* setSuperficialLiquidVelocity. @@ -220,7 +262,6 @@ public double getSuperficialLiquidVelocity() { return usl; } - // 2. Superficial Gas Velocity Encapsulation /** *
* setSuperficialGasVelocity. @@ -288,7 +329,6 @@ public double getOutletPressure() { return outletPressure; } - // 4. Temperature Encapsulation /** *
* Setter for the field temperature
.
@@ -311,7 +351,6 @@ public double getTemperature() {
return temperature;
}
- // 5. Number of Time Steps Encapsulation
/**
*
* Setter for the field numberOfTimeSteps
.
@@ -334,7 +373,6 @@ public int getNumberOfTimeSteps() {
return numberOfTimeSteps;
}
- // 6. Simulation Time Encapsulation
/**
*
* Setter for the field simulationTime
.
@@ -357,10 +395,9 @@ public double getSimulationTime() {
return simulationTime;
}
- // Method 1: Calculating the universal gas constant
/**
*
- * gasConst. + * Calculating the universal gas constant. *
* * @param fluid a @@ -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. /**