🚰 Interactive hydrodynamic solver for pipe and channel networks
View the Project on GitHub mdbartos/pipedream
This section enumerates all the methods of the QualityBuilder
class.
QualityBuilder
modelA water quality model is instantiated using the pipedream_solver.transport.QualityBuilder
class.
The QualityBuilder
class is initialized with the following parameters:
Attribute | Type | Description |
---|---|---|
hydraulics |
SuperLink |
A SuperLink instance describing the system hydraulics. |
superjunction_params |
pd.DataFrame |
Table containing superjunction water quality parameters. See model inputs: superjunction parameters for specification. |
superlink_params |
pd.DataFrame |
Table containing superlink water quality parameters. See model inputs: superlink parameters for specification. |
junction_params |
pd.DataFrame |
Table containing junction water quality parameters (optional). See model inputs: junction parameters for specification. |
link_params |
pd.DataFrame |
Table containing link water quality parameters (optional). See model inputs: link parameters for specification. |
c_min |
float | Minimum allowed contaminant concentration (default 0). |
c_max |
float | Maximum allowed contaminant concentration (default inf ). |
QualityBuilder
model with step
The water quality model is advanced forward in time using the QualityBuilder.step
method:
step
(self, dt=None, c_bc=None, c_0j=None, Q_0j=None, c_0Ik=None, Q_0Ik=None, u_j_frac=0.0)
Advance model forward to next time step, computing hydraulic states.
Parameters
Argument | Type | Description |
---|---|---|
dt |
float | Time step to advance (s) |
c_bc |
np.ndarray (M) | Boundary concentration at each superjunction (*/m^3) |
c_0j |
np.ndarray (M) | Contaminant concentration in direct superjunction inflow Q_in (*/m^3). Defaults to 0. |
Q_0j |
np.ndarray (M) | Direct inflow at each superjunction (m^3/s). Defaults to _Q_in of underlying SuperLink model. |
c_0Ik |
np.ndarray (NIk) | Contaminant concentration in direct junction inflow Q_0Ik (*/m^3). Defaults to 0. |
Q_0Ik |
np.ndarray (NIk) | Direct inflow at each junction (m^3/s). Defaults to _Q_0Ik of underlying SuperLink model. |
u_j_frac |
float | (Deprecated). |
Returns
None
QualityBuilder
modelAttribute | Type | Description |
---|---|---|
c_j |
np.ndarray (M) | Contaminant concentration in superjunctions (*/m^3) |
c_Ik |
np.ndarray (NIk) | Contaminant concentration in junctions (*/m^3) |
c_ik |
np.ndarray (Nik) | Contaminant concentration in links (*/m^3) |
c_uk |
np.ndarray (NK) | Contaminant concentration entering upstream end of superlinks (*/m^3) |
c_dk |
np.ndarray (NK) | Contaminant concentration exiting downstream end of superlinks (*/m^3) |