66- 2-phase, 2-component systems (e.g., water and methane)
77- 3-phase, 3-component systems (e.g., water, oil, and methane)
88
9- The module defines 2D and 3D geometry setup, equations of state, initial and boundary conditions,
10- and solution procedures for compositional fluid flow problems with gravitational effects.
9+ The module defines 2D and 3D geometry setup, equations of state, initial and boundary
10+ conditions, and solution procedures for compositional fluid flow problems with
11+ gravitational effects.
12+
1113Fixed- and mixed-dimensional meshes are defined on cartesian grids.
1214
1315"""
@@ -287,15 +289,13 @@ def h(
287289 def rho_func (
288290 self , * thermodynamic_dependencies : np .ndarray
289291 ) -> tuple [np .ndarray , np .ndarray ]:
290-
291292 nc = len (thermodynamic_dependencies [0 ])
292293 vals = rho_w * np .ones (nc )
293294 return vals , np .zeros ((len (thermodynamic_dependencies ), nc ))
294295
295296 def mu_func (
296297 self , * thermodynamic_dependencies : np .ndarray
297298 ) -> tuple [np .ndarray , np .ndarray ]:
298-
299299 nc = len (thermodynamic_dependencies [0 ])
300300 vals = mu_w * np .ones (nc ) * to_Mega
301301 return vals , np .zeros ((len (thermodynamic_dependencies ), nc ))
@@ -314,7 +314,6 @@ def h(
314314 def rho_func (
315315 self , * thermodynamic_dependencies : np .ndarray
316316 ) -> tuple [np .ndarray , np .ndarray ]:
317-
318317 nc = len (thermodynamic_dependencies [0 ])
319318 vals = rho_o * np .ones (nc )
320319 diffs = np .zeros ((len (thermodynamic_dependencies ), nc ))
@@ -341,7 +340,6 @@ def h(
341340 def rho_func (
342341 self , * thermodynamic_dependencies : np .ndarray
343342 ) -> tuple [np .ndarray , np .ndarray ]:
344-
345343 nc = len (thermodynamic_dependencies [0 ])
346344 vals = rho_g * np .ones (nc )
347345 diffs = np .zeros ((len (thermodynamic_dependencies ), nc ))
@@ -358,7 +356,6 @@ def mu_func(
358356class BaseFlowModel (
359357 FlowTemplate ,
360358):
361-
362359 def __init__ (self , params : dict ):
363360 """Initialize flow model."""
364361 super ().__init__ (params )
@@ -404,7 +401,6 @@ def check_convergence(
404401 """Check nonlinear convergence."""
405402
406403 if self ._is_nonlinear_problem ():
407-
408404 total_volume = 0.0
409405 for sd in self .mdg .subdomains ():
410406 total_volume += np .sum (
@@ -678,7 +674,6 @@ def ic_values_overall_fraction(
678674class FlowModel2N (
679675 BaseFlowModel ,
680676):
681-
682677 def after_nonlinear_convergence (self ) -> None :
683678 """Post-convergence diagnostics."""
684679 super ().after_nonlinear_convergence ()
@@ -1174,7 +1169,6 @@ def ic_values_overall_fraction(
11741169class FlowModel3N (
11751170 BaseFlowModel ,
11761171):
1177-
11781172 def after_nonlinear_convergence (self ) -> None :
11791173 """Post-convergence diagnostics."""
11801174 super ().after_nonlinear_convergence ()
0 commit comments