Skip to content

Commit 0369ba0

Browse files
authored
style: clean source code by eclipse (#2069)
1 parent ad4eed0 commit 0369ba0

468 files changed

Lines changed: 1548 additions & 1481 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/neqsim/blackoil/io/CMGEOSExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* </ul>
3535
*
3636
* <h2>Usage Example</h2>
37-
*
37+
*
3838
* <pre>
3939
* {@code
4040
* SystemInterface fluid = new SystemSrkEos(373.15, 200.0);

src/main/java/neqsim/blackoil/io/EclipseEOSExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* </ul>
3535
*
3636
* <h2>Usage Example</h2>
37-
*
37+
*
3838
* <pre>
3939
* {@code
4040
* SystemInterface fluid = new SystemSrkEos(373.15, 200.0);

src/main/java/neqsim/chemicalreactions/chemicalequilibrium/ChemEq.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public void solve(double T, double P, double[] n_mol, double[] chem_ref) {
426426
* <p>
427427
* solve.
428428
* </p>
429-
*
429+
*
430430
* <p>
431431
* Iteratively solves the chemical equilibrium using Newton-Raphson method. Continues until
432432
* relative change in moles is below tolerance or max iterations reached.

src/main/java/neqsim/chemicalreactions/chemicalequilibrium/ChemicalEquilibrium.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public void chemSolve() {
395395
* <p>
396396
* updateMoles.
397397
* </p>
398-
*
398+
*
399399
* <p>
400400
* Updates the moles in the reactive phase based on the calculated n_mol values from the Newton
401401
* solver. Uses Phase.addMolesChemReac with totdn=0 to only affect phase moles without corrupting
@@ -623,14 +623,14 @@ public boolean solve() {
623623

624624
/**
625625
* Enforce minimum physically reasonable concentrations for ionic species.
626-
*
626+
*
627627
* <p>
628628
* When the chemical equilibrium solver fails to converge, ionic species like H3O+ and OH- can be
629629
* left at unrealistically low values. This method checks the water auto-ionization equilibrium
630630
* (Kw = [H3O+][OH-]) and corrects unrealistic values while respecting legitimate acidic or
631631
* alkaline conditions.
632632
* </p>
633-
*
633+
*
634634
* <p>
635635
* The method only intervenes when both H3O+ and OH- are unrealistically low (violating Kw), not
636636
* when the solution is legitimately acidic (high H3O+, low OH-) or alkaline (low H3O+, high OH-).
@@ -1118,7 +1118,7 @@ public double innerStep(int i, double[] n_omega, int check, double step, boolean
11181118

11191119
/**
11201120
* Solve least-squares problem using SVD pseudo-inverse.
1121-
*
1121+
*
11221122
* <p>
11231123
* For rank-deficient or ill-conditioned matrices, this provides a more robust solution than
11241124
* direct inversion. Uses SVD decomposition: A = U * S * V^T, then x = V * S^(-1) * U^T * b.

src/main/java/neqsim/fluidmechanics/flownode/fluidboundary/interphasetransportcoefficient/interphasetwophase/interphasepipeflow/InterphaseSlugFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* <p>
77
* InterphaseSlugFlow class.
88
* </p>
9-
*
9+
*
1010
* <p>
1111
* Calculates interphase transport coefficients for slug flow regime. Slug flow is characterized by
1212
* alternating liquid slugs and gas bubbles (Taylor bubbles) moving through the pipe. This regime is
1313
* common in horizontal and near-horizontal pipes at intermediate gas and liquid flow rates.
1414
* </p>
15-
*
15+
*
1616
* <p>
1717
* The correlations implemented here are based on the work of:
1818
* <ul>

src/main/java/neqsim/fluidmechanics/flowsolver/AdvectionScheme.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public boolean usesTVD() {
187187

188188
/**
189189
* Estimate the numerical dispersion reduction factor compared to first-order upwind.
190-
*
190+
*
191191
* <p>
192192
* This is approximate and depends on the solution smoothness and CFL number.
193193
* </p>

src/main/java/neqsim/fluidmechanics/flowsolver/onephaseflowsolver/onephasepipeflowsolver/OnePhaseFixedStaggeredGrid.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public void setComponentConservationMatrix(int componentNumber) {
633633

634634
/**
635635
* First-order upwind scheme for component conservation (original implementation).
636-
*
636+
*
637637
* <p>
638638
* This scheme is unconditionally stable but has high numerical dispersion: D_num = (v × Δx / 2) ×
639639
* (1 - CFL)
@@ -702,7 +702,7 @@ private void setComponentConservationMatrixFirstOrderUpwind(int componentNumber)
702702

703703
/**
704704
* TVD (Total Variation Diminishing) scheme with flux limiters.
705-
*
705+
*
706706
* <p>
707707
* Achieves second-order accuracy in smooth regions while preventing oscillations near
708708
* discontinuities. The flux limiter blends between first-order upwind and a higher-order scheme
@@ -824,7 +824,7 @@ private void setComponentConservationMatrixTVD(int componentNumber,
824824

825825
/**
826826
* Second-order upwind (Linear Upwind Differencing) scheme.
827-
*
827+
*
828828
* <p>
829829
* Uses two upstream points for higher accuracy. Much less dispersive than first-order upwind but
830830
* may oscillate near discontinuities.
@@ -917,7 +917,7 @@ private void setComponentConservationMatrixSecondOrderUpwind(int componentNumber
917917

918918
/**
919919
* QUICK scheme (Quadratic Upstream Interpolation for Convective Kinematics).
920-
*
920+
*
921921
* <p>
922922
* Third-order accurate on uniform grids. Uses quadratic interpolation with upstream bias. Very
923923
* low numerical dispersion but may produce oscillations.

src/main/java/neqsim/fluidmechanics/flowsystem/onephaseflowsystem/pipeflowsystem/PipeFlowSystem.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private void applyOutletBoundaryCondition(int timeStepIndex, int outletNodeIndex
153153
* <p>
154154
* Example:
155155
* </p>
156-
*
156+
*
157157
* <pre>
158158
* pipe.runTransient(3600.0, 60.0); // 1 hour simulation with 60s time steps
159159
* </pre>
@@ -199,7 +199,7 @@ public void runTransient(double totalTime, double timeStep, int solverType) {
199199
* <p>
200200
* Example:
201201
* </p>
202-
*
202+
*
203203
* <pre>
204204
* pipe.runTransientClosedOutlet(600.0, 30.0); // 10 min with outlet closed
205205
* </pre>
@@ -245,7 +245,7 @@ public void runTransientClosedOutlet(double totalTime, double timeStep, int solv
245245
* <p>
246246
* Example:
247247
* </p>
248-
*
248+
*
249249
* <pre>
250250
* pipe.runTransientControlledOutletVelocity(600.0, 30.0, 2.5); // Outlet at 2.5 m/s
251251
* </pre>
@@ -299,7 +299,7 @@ public void runTransientControlledOutletVelocity(double totalTime, double timeSt
299299
* <p>
300300
* Example:
301301
* </p>
302-
*
302+
*
303303
* <pre>
304304
* pipe.runTransientControlledOutletPressure(600.0, 30.0, 50.0); // Outlet at 50 bar
305305
* </pre>

src/main/java/neqsim/fluidmechanics/flowsystem/twophaseflowsystem/twophasepipeflowsystem/PipeFlowResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* </p>
1616
*
1717
* <h2>Usage Example</h2>
18-
*
18+
*
1919
* <pre>{@code
2020
* TwoPhasePipeFlowSystem pipe = TwoPhasePipeFlowSystem.horizontalPipe(fluid, 0.1, 1000, 100);
2121
* pipe.enableNonEquilibriumMassTransfer();

src/main/java/neqsim/fluidmechanics/flowsystem/twophaseflowsystem/twophasepipeflowsystem/TwoPhasePipeFlowSystem.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* </table>
7171
*
7272
* <h2>Usage Example (Traditional API)</h2>
73-
*
73+
*
7474
* <pre>{@code
7575
* // Create two-phase fluid
7676
* SystemInterface fluid = new SystemSrkEos(295.3, 5.0);
@@ -113,7 +113,7 @@
113113
* }</pre>
114114
*
115115
* <h2>Usage Example (Builder API)</h2>
116-
*
116+
*
117117
* <pre>{@code
118118
* TwoPhasePipeFlowSystem pipe =
119119
* TwoPhasePipeFlowSystem.builder().withFluid(thermoSystem).withDiameter(0.1, "m")
@@ -138,7 +138,7 @@
138138
* <p>
139139
* Set the solver type before calling solveSteadyState():
140140
* </p>
141-
*
141+
*
142142
* <pre>{@code
143143
* pipeSystem.setSolverType(TwoPhaseFixedStaggeredGridSolver.SolverType.DEFAULT);
144144
* pipeSystem.solveSteadyState(UUID.randomUUID());
@@ -239,7 +239,7 @@ public TwoPhasePipeFlowSystem() {}
239239
* <p>
240240
* Example usage:
241241
* </p>
242-
*
242+
*
243243
* <pre>
244244
* TwoPhasePipeFlowSystem pipe =
245245
* TwoPhasePipeFlowSystem.builder().withFluid(thermoSystem).withDiameter(0.1, "m")
@@ -265,7 +265,7 @@ public static TwoPhasePipeFlowSystemBuilder builder() {
265265
* <p>
266266
* Example usage:
267267
* </p>
268-
*
268+
*
269269
* <pre>
270270
* TwoPhasePipeFlowSystem pipe = TwoPhasePipeFlowSystem.horizontalPipe(fluid, 0.1, 1000, 100);
271271
* pipe.enableNonEquilibriumMassTransfer();
@@ -546,7 +546,7 @@ public void solveSteadyState(UUID id) {
546546
* <p>
547547
* Example usage:
548548
* </p>
549-
*
549+
*
550550
* <pre>
551551
* TwoPhasePipeFlowSystem pipe = TwoPhasePipeFlowSystem.horizontalPipe(fluid, 0.1, 1000, 100);
552552
* pipe.enableNonEquilibriumMassTransfer();
@@ -570,7 +570,7 @@ public PipeFlowResult solve() {
570570
* This is a convenience method that enables non-equilibrium mass transfer, solves the system, and
571571
* returns the results. Equivalent to calling:
572572
* </p>
573-
*
573+
*
574574
* <pre>
575575
* pipe.enableNonEquilibriumMassTransfer();
576576
* return pipe.solve();
@@ -607,6 +607,7 @@ public PipeFlowResult solveWithHeatAndMassTransfer() {
607607
* type using {@link #setSolverType} before calling. This method ignores the type
608608
* parameter and uses the configured solver type enum.
609609
*/
610+
@Override
610611
@Deprecated
611612
public void solveSteadyState(int type) {
612613
solveSteadyState(type, UUID.randomUUID());
@@ -2671,6 +2672,7 @@ public int[] getFlowPatternTransitionPositions() {
26712672
*
26722673
* @return the total pressure drop in bar
26732674
*/
2675+
@Override
26742676
public double getTotalPressureDrop() {
26752677
double inletPressure = flowNode[0].getBulkSystem().getPressure();
26762678
double outletPressure = flowNode[getTotalNumberOfNodes() - 1].getBulkSystem().getPressure();

0 commit comments

Comments
 (0)