@@ -33,133 +33,131 @@ class MfUsgCln(Package):
3333
3434 Parameters
3535 ----------
36- model : model object
37- The model object (of type :class:`flopy.modflowusg.mf.Modflow`) to which
38- this package will be added.
39- ncln : int
40- is a flag or the number of CLN segments. If NCLN = 0, this flag
41- indicates that the CLN domain connectivity is input in a general IA-JA
42- manner as is used for the GWF Process.If NCLN > 0, linear CLN segments
43- (for instance multi-aquifer wells) or simple CLN networks are simulated
44- and NCLN is the total number of CLN segments in the domain.
45- iclnnds : int
46- is a flag or number of CLN-nodes simulated in the model. Multiple
47- CLN-nodes constitute a segment.If ICLNNDS < 0, the CLN-nodes are
48- ordered in a sequential manner from the first CLN node to the last
49- CLN node. Therefore, only linear CLN segments are simulated since a
50- CLN segment does not share any of its nodes with another CLN segment.
51- If ICLNNDS > 0, CLN networks can be simulated and ICLNNDS is
52- the total number of CLN-nodes simulated by the model (NCLNNDS). CLN
53- nodes can be shared among CLN segments and therefore, the CLN-nodal
36+ model : flopy.mfusg.MfUsg
37+ The model object to which this package will be added.
38+ ncln : int, optional
39+ A flag or number of CLN segments.
40+
41+ * If NCLN = 0, this flag indicates that the CLN domain connectivity is
42+ input in a general IA-JA manner as is used for the GWF Process.
43+ * If NCLN > 0, linear CLN segments (for instance multi-aquifer wells)
44+ or simple CLN networks are simulated and NCLN is the total number of
45+ CLN segments in the domain.
46+ iclnnds : int, optional
47+ A flag or number of CLN-nodes simulated in the model. Multiple
48+ CLN-nodes constitute a segment.
49+
50+ * If ICLNNDS < 0, the CLN-nodes are ordered in a sequential manner from
51+ the first CLN node to the last CLN node. Therefore, only linear
52+ CLN segments are simulated since a CLN segment does not share any of
53+ its nodes with another CLN segment.
54+ * If ICLNNDS > 0, CLN networks can be simulated and ICLNNDS is
55+ the total number of CLN-nodes simulated by the model (NCLNNDS).
56+ CLN nodes can be shared among CLN segments and therefore, the CLN-nodal
5457 connectivity for the network is also required as input.
55- nndcln : list of int
56- is the number of CLN-nodes that are associated with each CLN segment.
58+ nndcln : int, optional
59+ The number of CLN-nodes that are associated with each CLN segment.
5760 Only read if NCLN > 0. If ICLNNDS < 0, sum of nndcln is the total number
58- of CLN-nodes (NCLNNDS)
59- clncon : list of list
60- are the CLN-node numbers associated with each CLN segment. Only read
61+ of CLN-nodes (NCLNNDS).
62+ clncon : list of list, optional
63+ The CLN-node numbers associated with each CLN segment. Only read
6164 if NCLN > 0 and ICLNNDS > 0. It is read NCLN times, once for each CLN
6265 segment. The number of entries for each sublist is the number of CLN
6366 cells (NNDCLN) associated with each CLN segment
64- nja_cln : int
65- is the total number of connections of the CLN domain. NJA_CLN is used
67+ nja_cln : int, optional
68+ The total number of connections of the CLN domain. NJA_CLN is used
6669 to dimension the sparse matrix in a compressed row storage format.
67- iac_cln : list of int
68- is a matrix indicating the number of connections plus 1 for each CLN
70+ iac_cln : list of int, optional
71+ A matrix indicating the number of connections plus 1 for each CLN
6972 node to another CLN node. Note that the IAC_CLN array is only supplied
7073 for the CLN cells; the IAC_CLN array is internally expanded to include
7174 other domains if present in a simulation. sum(IAC)=NJAG
72- ja_cln : list of list
73- is a list of CLN cell number (n) followed by its connecting CLN cell
75+ ja_cln : list of list, optional
76+ A list of CLN cell number (n) followed by its connecting CLN cell
7477 numbers (m) for each of the m CLN cells connected to CLN cell n. This
7578 list is sequentially provided for the first to the last CLN cell.
7679 Note that the cell and its connections are only supplied for the CLN
7780 cells and their connections to the other CLN cells using the local CLN
7881 cell numbers.
79- node_prop : matrix
82+ node_prop : matrix, optional
8083 [IFNO IFTYP IFDIR FLENG FELEV FANGLE IFLIN ICCWADI X1 Y1 Z1 X2 Y2 Z2]
81- is a table of the node properties. Total rows equal the total number
84+ A table of the node properties. Total rows equal the total number
8285 of CLN-nodes (NCLNNDS). The first 6 fields is required for running
8386 model. Rest of fields have default value of 0.
84- nclngwc : int
87+ nclngwc : int, optional
8588 is the number of CLN to porous-medium grid-block connections present
8689 in the model. A CLN node need not be connected to any groundwater node.
8790 Conversely, a CLN node may be connected to multiple groundwater nodes,
8891 or multiple CLN nodes may be connected to the same porous medium mode.
89- cln_gwc : matrix
90- unstructured: [IFNOD IGWNOD IFCON FSKIN FLENGW FANISO ICGWADI]
91- structured: [IFNOD IGWLAY IGWROW IGWFCOL IFCON FSKIN FLENGW FANISO
92- ICGWADI]
93- is a table define connections between CLN nodes and groundwater cells.
92+ cln_gwc : matrix, optional
93+ * unstructured: [IFNOD IGWNOD IFCON FSKIN FLENGW FANISO ICGWADI]
94+ * structured: [IFNOD IGWLAY IGWROW IGWFCOL IFCON FSKIN FLENGW FANISO ICGWADI]
95+ A table define connections between CLN nodes and groundwater cells.
9496 Total rows of the table equals nclngwc.
95- nconduityp : int
96- is the number of circular conduit-geometry types.
97- cln_circ :
97+ nconduityp : int, default 1
98+ The number of circular conduit-geometry types.
99+ cln_circ : optional
98100 [ICONDUITYP FRAD CONDUITK TCOND TTHK TCFLUID TCONV]
99- is a table define the circular conduit properties. Total rows of the
101+ A table that defines the circular conduit properties. Total rows of the
100102 table equals nconduityp. Last 4 fields only needed for heat transport
101103 simulation.
102- ibound : 1-D array
103- is the boundary array for CLN-nodes. Length equal NCLNNDS
104- strt : 1-D array
105- is initial head at the beginning of the simulation in CLN nodes.
106- Length equal NCLNNDS
107- transient : bool
108- if there is transient IBOUND for each stress period
109- printiaja : bool
110- whether to print IA_CLN and JA_CLN to listing file
111- nrectyp : int
112- is the number of rectangular conduit-geometry types.
113- cln_rect : rectangular fracture properties
104+ ibound : int or array_like, default 1
105+ The boundary array for CLN-nodes. Length equal NCLNNDS.
106+ strt : float or array_like, default 1.0
107+ Initial head at the beginning of the simulation in CLN nodes.
108+ Length equal NCLNNDS.
109+ transient : bool, default False
110+ Specifies if there is transient IBOUND for each stress period.
111+ printiaja : bool, default False
112+ Whether to print IA_CLN and JA_CLN to listing file.
113+ nrectyp : int, default 0
114+ The number of rectangular conduit-geometry types.
115+ cln_rect : rectangular fracture properties, optional
114116 [IRECTYP FLENGTH FHEIGHT CONDUITK TCOND TTHK TCFLUID TCONV]
115- is read for each rectangular conduit. Total rows of the table equals
117+ Read for each rectangular conduit. Total rows of the table equals
116118 nrectyp. Last 4 fields only needed for heat transport simulation.
117- bhe : bool
118- is a flag indicating that bhe details are also included in a heat transport
119+ bhe : bool, default False
120+ A flag indicating that bhe details are also included in a heat transport
119121 model. Specifically, the thermal conductance and bhe tube thickness are
120122 included in transfer of heat between groundwater and CLN cells along with
121123 the heat conductivity of the bhe fluid and the convective heat transfer
122124 coefficient.
123- grav : float
125+ grav : float, optional
124126 is the gravitational acceleration constant in model simulation units.
125127 The value of the constant follows the keyword GRAVITY. Note that the
126128 constant value is 9.81 m/s2 in SI units; 32.2 ft/s2 in fps units.
127- visk : float
128- is the kinematic viscosity of water in model simulation units [L2/T].
129+ visk : float, optional
130+ The kinematic viscosity of water in model simulation units [L2/T].
129131 The value of kinematic viscosity follows the keyword VISCOSITY. Note
130132 that the constant value is 1.787 x 10-6 m2/s in SI units;
131133 1.924 x 10-5 ft2/s in fps units.
132- extension : list of strings
133- (default is ['cln','clncb','clnhd','clndd','clnib','clncn','clnmb']).
134- unitnumber : list of int
135- File unit number for the package and the output files.
136- (default is [71, 0, 0, 0, 0, 0, 0] ).
137- filenames : list of str
134+ extension : list of str, default ['cln', 'clncb', 'clnhd', 'clndd', \
135+ 'clnib', 'clncn', 'clnmb']
136+ List of seven output file extensions.
137+ unitnumber : list of int, optional
138+ File unit number for the package and the seven output files.
139+ Default None uses ``[71, 0, 0, 0, 0, 0, 0]``.
140+ filenames : list of str, optional
138141 Filenames to use for the package and the output files. If filenames
139- = None the package name will be created using the model name and package
140- extensions.
141-
142- Attributes
143- ----------
144-
145- Methods
146- -------
147-
148- See Also
149- --------
150-
151- Notes
152- -----
142+ is None, the package name will be created using the model name and
143+ package extensions.
153144
154145 Examples
155146 --------
156-
157147 >>> import flopy
158148 >>> ml = flopy.mfusg.MfUsg()
159- >>> node_prop = [[1,1,0,10.0,-110.0,1.57,0,0],[2,1,0,10.0,-130.0,1.57,0,0]]
160- >>> cln_gwc = [[1,1,50,50,0,0,10.0,1.0,0],[2,2,50,50,0,0,10.0,1.0,0]]
149+ >>> node_prop = [
150+ ... [1, 1, 0, 10.0, -110.0, 1.57, 0, 0],
151+ ... [2, 1, 0, 10.0, -130.0, 1.57, 0, 0],
152+ ... ]
153+ >>> cln_gwc = [
154+ ... [1, 1, 50, 50, 0, 0, 10.0, 1.0, 0],
155+ ... [2, 2, 50, 50, 0, 0, 10.0, 1.0, 0],
156+ ... ]
157+ >>> cln_circ = [[1, 0.5, 3.23e10]]
161158 >>> cln = flopy.mfusg.MfUsgCln(ml, ncln=1, iclnnds=-1, nndcln=2,
162- nclngwc = 2, node_prop =node_prop, cln_gwc =cln_gwc)"""
159+ ... nclngwc=2, node_prop=node_prop, cln_gwc=cln_gwc, cln_circ=cln_circ)
160+ """
163161
164162 def __init__ (
165163 self ,
@@ -185,15 +183,7 @@ def __init__(
185183 bhe = False , # OPTIONS2: borehole heat exchanger (BHE)
186184 grav = None , # OPTIONS2: gravitational acceleration constant
187185 visk = None , # OPTIONS2: kinematic viscosity of water
188- extension = (
189- "cln" ,
190- "clncb" ,
191- "clnhd" ,
192- "clndd" ,
193- "clnib" ,
194- "clncn" ,
195- "clnmb" ,
196- ),
186+ extension = ["cln" , "clncb" , "clnhd" , "clndd" , "clnib" , "clncn" , "clnmb" ],
197187 unitnumber = None ,
198188 filenames = None ,
199189 ** kwargs ,
@@ -207,7 +197,7 @@ def __init__(
207197
208198 # set default unit number of one is not specified
209199 if unitnumber is None :
210- self . unitnumber = self ._defaultunit ()
200+ unitnumber = self ._defaultunit ()
211201 elif isinstance (unitnumber , list ):
212202 if len (unitnumber ) < 7 :
213203 for idx in range (len (unitnumber ), 7 ):
0 commit comments