Skip to content

Commit

Permalink
class docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodoula Ktori committed Oct 24, 2024
1 parent fdcf79d commit 2f069c7
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Desalsim/economic_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,29 @@
#%%constants
class econom:
"""
Calculate the capital investment and operating costs for each process unit.
A class used to ψalculate the capital investment and operating costs for each process unit.
Attributes
----------
eq_c: float
Cost of equipment in euros.
el_conc: float
Electricity consumption in kWh/year.
s_conc: float
Steam consumption in kWh/year.
chem1_conc: float
Concentration of chemical 1 in solution (e.g., 1M).
chem1_pr: float
Price of chemical 1 per unit (e.g., euro/L).
chem2_conc: float
Concentration of chemical 2 in solution (e.g., 1M).
chem2_pr: float
Price of chemical 2 per unit (e.g., euro/L).
cw_conc: float
Cooling water consumption in kg/year.
wat_conc: float
Water consumption in kg/year.
Methods
-------
Expand Down
32 changes: 32 additions & 0 deletions example/economic_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,38 @@

#%%constants
class econom:
"""
A class used to ψalculate the capital investment and operating costs for each process unit.
Attributes
----------
eq_c: float
Cost of equipment in euros.
el_conc: float
Electricity consumption in kWh/year.
s_conc: float
Steam consumption in kWh/year.
chem1_conc: float
Concentration of chemical 1 in solution (e.g., 1M).
chem1_pr: float
Price of chemical 1 per unit (e.g., euro/L).
chem2_conc: float
Concentration of chemical 2 in solution (e.g., 1M).
chem2_pr: float
Price of chemical 2 per unit (e.g., euro/L).
cw_conc: float
Cooling water consumption in kg/year.
wat_conc: float
Water consumption in kg/year.
Methods
-------
capex_calc:
Calculate the capital expenditure (CAPEX) of the unit.
opex_calc:
Calculate the capital expenditure (OPEX) of the unit.
"""
def __init__(self, eq_c, el_conc, s_conc, chem1_conc, chem1_pr,chem2_conc, chem2_pr, cw_conc, wat_conc):
"""
Initialize an instance of the economic costs.
Expand Down

0 comments on commit 2f069c7

Please sign in to comment.