BioSTEAMDevelopmentGroup / Bioindustrial-Park

BioSTEAM's Premier Repository for Biorefinery Models and Results
MIT License
36 stars 17 forks source link

Consultation about calling function capex_table #99

Open zasddsgg opened 4 months ago

zasddsgg commented 4 months ago

Hello. I want to import function capex_table in https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/blob/master/biorefineries/tea/cellulosic_ethanol_tea.py#L202, I try to import with code from biorefineries.tea import capex_table, after running system, then execute code capex_table(sys_TEA). But capex_table in https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/blob/master/biorefineries/tea/conventional_ethanol_tea.py#L120 was called. Could I consult you how to import and use function capex_table in cellulosic_ethanol_tea.py instead of conventional_ethanol_tea.py?

Besides, could I consult you how to view all the result information related to TEA? It seems that only Itemized costs and Cash flow information are available in the exported excel file. How to check other information such as capex_table, foc_table, voc_table and so on? Just like Humbird's 2011 NREL report, which gives all the detailed information about TEA. Could I consult you which code in BioSTEAM should I use to view all of above information on TEA?

The code is as follows: I use BioSTEAM 2.38.3, biorefineries 2.26.2

from biorefineries import cellulosic
import biosteam as bst
from biorefineries.tea import create_cellulosic_ethanol_tea
from biorefineries.tea import capex_table
cs = cellulosic.Biorefinery('corn stover ethanol')
sys_TEA=create_cellulosic_ethanol_tea(cs.cornstover_sys)
capex_table(sys_TEA)

Thanks for your help. Wish you a good day.

yoelcortes commented 4 months ago

@zasddsgg, to make it easier for us to answer your questions:

There are many complicated details in the the cash flow like how equity covers the interest during construction or how losses from previous years are forwarded to the next years to reduce the tax. But we are consistent with NREL... You can double check with the cashflow in NREL's 2011 cornstover report to verify BioSTEAM's calculation. It should be the same calculation process.

Thanks,

zasddsgg commented 4 months ago

I have also updated this problem according to your requirements, thank you for your help.

yoelcortes commented 4 months ago

@zasddsgg,

You can use the following:

from biosteam.report import voc_table
from biorefineries.tea.cellulosic_ethanol_tea import foc_table, capex_table

No documentation is provided yet for the foc_table, capex_table, and voc_table functions unfortunately. You'll need to figure this one out by looking at the code in the meanwhile that documentation and examples get added (maybe in this month; this one is a little low in my priority list). I'll leave this issue open just to remind ourselves that no documentation is available yet (until we get it done).

Thanks!

zasddsgg commented 4 months ago

I got it. Thanks for your help.