phydrus.model.Model.add_material¶
-
Model.
add_material
(material)[source]¶ Method to add a material to the model.
- Parameters
material (pandas.DataFrame) – Pandas DataFrame with the parameter names as columns and the values for each material as one row. The index for each is the reference number for each material and must be unique. The number of columns depends on the water flow model that has been chosen.
Examples
>>> m = pd.DataFrame({1: [0.08, 0.3421, 0.03, 5, 1, -0.5]}, index=[1], columns=["thr", "ths", "Alfa", "n" "Ks", "l"]) >>> ml.add_material(m)
See also
phydrus.Model.get_empty_material_df