Bioconversion GUI using Widgets
The first step is to select “Cell” > “Run All” from the toolbar. This will initialize all the widgets and allow you to interact with the unit operation options via the GUI controls.
[1]:
from ipywidgets import *
from virteng.WidgetFunctions import WidgetCollection
from virteng.Utilities import get_host_computer
from Models_classes import make_models_list
hpc_run = get_host_computer() # See if we're running on HPC or on a laptop
from IPython.display import Image, HTML, clear_output
Image(os.path.join(os.path.dirname("__file__"), 'figures', 'three_unit_flow.png'), width=800)
It looks like you're running this notebook on a laptop.
Operations requiring HPC resources will be disabled.
[1]:
Set Virtual Engineering Options
0. Feedstock properties
Set the feedstock properties.
[2]:
#================================================================
# Create the collection of widgets for feedstock options
fs_options = WidgetCollection()
fs_options.xylan_solid_fraction = widgets.BoundedFloatText(
value = 0.263,
max = 1,
min = 0,
description = r'Initial $X_X$',
tooltip = 'The initial fraction of solids that is xylan (kg/kg). Must be in the range [0, 1]'
)
fs_options.glucan_solid_fraction = widgets.BoundedFloatText(
value = 0.40,
max = 1,
min = 0,
description = r'Initial $X_G$',
tooltip = 'The initial fraction of solids that is glucan (kg/kg). Must be in the range [0, 1]'
)
fs_options.initial_porosity = widgets.BoundedFloatText(
value = 0.8,
max = 1,
min = 0,
description = r'Initial Porosity',
tooltip = 'The initial porous fraction of the biomass particles. Must be in the range [0, 1]'
)
#================================================================
# Display the widgets
fs_options.display_all_widgets()
#================================================================
1. Pretreatment Operation
Set the options for the pretreatment operation below.
[5]:
#================================================================
# Create the collection of widgets for pretreatment options
pt_options = WidgetCollection()
pt_options.model_type = widgets.RadioButtons(
options = ['dilute acid', 'deacetylation'],
#value = 'Deacetylation',
#description = 'Model Type',
#disabled = False,
#tooltip = 'Specifies the solver to use for the EH step, "CFD Simulation" requires HPC resources.'
)
#### this needs to be changed to g acid / g bone-dry biomass (then converted in the run function) ####
pt_options.initial_acid_conc = widgets.BoundedFloatText(
value = 0.0001,
max = 1.0,
min = 0.0,
description = 'Acid Loading',
tooltip = 'The initial concentration of acid (mol/mL). Must be in the range [0, 1]'
)
pt_options.steam_temperature = widgets.BoundedFloatText(
value = 150.0,
max = 250.3,
min = 3.8,
description = 'Steam Temperature',
tooltip = r'The fixed temperature of the steam ($^\circ$C).',
)
pt_options.initial_solid_fraction = widgets.BoundedFloatText(
value = 0.745,
max = 1,
min = 0,
description = r'Initial FIS$_0$',
tooltip = 'The initial fraction of insoluble solids (kg/kg). Must be in the range [0, 1]'
)
pt_options.final_time = widgets.BoundedFloatText(
value = 8.3,
max = 1440,
min = 1,
description = 'Final Time',
tooltip = r'Total simulation time (min). Must be $\geq$ 1'
)
pt_options.acetylfrac = widgets.BoundedFloatText(
value = 0.025,
max = 0.1,
min = 0.0,
description = 'Acetyl group fraction',
tooltip = 'The initial fraction of acetyl groups. Must be in the range [0, 1]'
)
pt_options.DAtemp = widgets.BoundedFloatText(
value = 365,
max = 600,
min = 200.0,
description = 'Deacetylation temperature',
tooltip = 'Fluid temperature for deacetylation. Must be in the range [200, 600]'
)
pt_options.show_plots = widgets.Checkbox(
value = False,
tooltip = 'Show Plots'
)
#================================================================
# Display the widgets
pt_options.display_all_widgets()
#================================================================
2. Enzymatic Hydrolysis Operation
Set the options for the enzymatic hydrolysis operation using either a two-phase reaction rate model or high-fidelity CFD below.
[6]:
#================================================================
# Create the collection of widgets
eh_options = WidgetCollection()
eh_options.model_type = widgets.RadioButtons(
options = ['Lignocellulose Model', 'CFD Surrogate', 'CFD Simulation'],
value = 'CFD Surrogate',
description = 'Model Type',
disabled = False,
tooltip = 'Specifies the solver to use for the EH step, "CFD Simulation" requires HPC resources.'
)
eh_options.lambda_e = widgets.BoundedFloatText(
value = 30.0,
max = 1000.0,
min = 0.0,
description = 'Enzymatic Load',
tooltip = 'Ratio of the enzyme mass to the total solution mass (mg/g). Must be in the range [0, 1000]'
)
eh_options.fis_0 = widgets.BoundedFloatText(
value = 0.05,
max = 1.0,
min = 0.0,
description = r'FIS$_0$ Target',
tooltip = 'The target value for initial fraction of insoluble solids *after* dilution (kg/kg). Must be in the range [0, 1]'
)
eh_options.t_final = widgets.BoundedFloatText(
value = 24.0,
min = 1.0,
max = 24.0,
description = 'Final Time',
tooltip = r'The total time of the simulation (h). Must be $\geq$ 1'
)
eh_options.show_plots = widgets.Checkbox(
value = False,
tooltip = 'Show Plots',
disabled = True,
)
#================================================================
# Display the widgets
eh_options.display_all_widgets()
#================================================================
def model_type_action(change):
if eh_options.model_type.value == 'Lignocellulose Model':
# Lignocellulose Model
eh_options.show_plots.value = False
eh_options.show_plots.disabled = False
eh_options.show_plots.description_tooltip = 'Show Plots'
else:
# Surrogate Model, CFD Simulation
eh_options.show_plots.value = False
eh_options.show_plots.disabled = True
eh_options.show_plots.description_tooltip = 'Show Plots (Only available for lignocellulose model)'
eh_options.model_type.observe(model_type_action, names='value')
3. Bioreaction Operation
Set the options for the bubble column bioreaction operation below.
[7]:
#================================================================
# Create the collection of widgets
br_options = WidgetCollection()
br_options.model_type = widgets.RadioButtons(
options = ['CFD Surrogate', 'CFD Simulation'],
value = 'CFD Surrogate',
description = 'Model Type',
disabled = False,
tooltip = 'Specifies the solver to use for the bioreaction step, "CFD Simulation" requires HPC resources.'
)
br_options.gas_velocity = widgets.BoundedFloatText(
value = 0.08,
min = 0.01,
max = 0.1,
description = 'Gas velocity',
tooltip = r'Gas velocity in the simulation (m/s). Must be in $[0.01, 0.1]$'
)
br_options.column_height = widgets.BoundedFloatText(
value = 40.,
min = 10.,
max = 50.,
description = 'Column height',
tooltip = r'Column height (m). Must be in $[10, 50]$'
)
br_options.column_diameter = widgets.BoundedFloatText(
value = 5.0,
min = 1.,
max = 6.,
description = 'Column diameter',
tooltip = r'Column diameter (m). Must be in $[1, 6]$'
)
br_options.bubble_diameter = widgets.BoundedFloatText(
value = 0.006,
min = 0.003,
max = 0.008,
description = 'Bubble diameter',
tooltip = r'Bubble diameter (m). For surragate model must be in $[0.003, 0.008]$, for cfd must be $>=0$'
)
br_options.t_final = widgets.BoundedFloatText(
value = 100.0, # default 500
min = 1.0,
max = 1e16,
description = 'Final Time',
tooltip = r'The total time of the simulation (h). Must be $\geq 1$'
)
#================================================================
# Display the widgets
br_options.display_all_widgets()
#================================================================
Run Model
When finished setting options for all unit operations, press the button below to run the complete model.
[8]:
#================================================================
run_button = widgets.Button(
description = 'Run All.',
tooltip = 'Execute the model start-to-finish with the properties specified above.',
layout = {'width': '200px', 'margin': '25px 0px 100px 170px'},
button_style = 'success'
)
#================================================================
# run_button_output = widgets.Output()
display(run_button)
#================================================================
# Define a function to be executed each time the run button is pressed
def run_button_action(b):
clear_output()
display(run_button)
verbose = True
# Initialize models
models_list = make_models_list([fs_options, pt_options, eh_options, br_options], n_models=4, hpc_run=hpc_run)
for model in models_list:
model.run(verbose=verbose)
run_button.on_click(run_button_action)
#================================================================
Initializing Pretreatment Model
Initializing Enzymatic Hydrolysis Model
Initializing Bioreactor Model
Running Pretreatment
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.13149999999999984
Unadjusted mass of xylog (g): 0.0
Unadjusted mass of xylose (g): 0.0
Unadjusted mass of furfural (g): 0.0
Unadjusted mass of products (g): 0.0
Unadjusted mass of products / initial xylan (g): 0.0
Adjusted mass of xylog (g): nan
Adjusted mass of xylose (g): nan
Adjusted mass of furfural (g): nan
Adjusted mass of products (g): nan
Adjusted mass of products / initial xylan (g): nan
Fractional conversion of xylog nan
Fractional conversion of xylose nan
Fractional conversion of furfural nan
Time (s): 0
Xylan (g/g): 0.2629999999999995
Xylog (g/L): 0.0
Xylose (g/L): 0.0
Furfural (g/L): 0.0
FIS (g/g): 0.4444444444444445
rho_x (g/g): 0.0
X_G (g/g): 0.40000000000000013
conv: 1.2664140965305975e-15
frac_conv_xylog: nan
frac_conv_xylose: nan
frac_conv_furfural: nan
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.10591540188050036
Unadjusted mass of xylog (g): 0.006914596220493513
Unadjusted mass of xylose (g): 0.019020281681723535
Unadjusted mass of furfural (g): 1.4157500890530782e-05
Unadjusted mass of products (g): 0.025949035403107577
Unadjusted mass of products / initial xylan (g): 0.1973310677042401
Adjusted mass of xylog (g): 0.006817485224855481
Adjusted mass of xylose (g): 0.018753154226623034
Adjusted mass of furfural (g): 1.3958668021136184e-05
Adjusted mass of products (g): 0.02558459811949965
Adjusted mass of products / initial xylan (g): 0.1945596815171076
Fractional conversion of xylog 0.015207571604240364
Fractional conversion of xylose 0.12549639330363704
Fractional conversion of furfural 0.00014595565421340117
Time (s): 30.0
Xylan (g/g): 0.22785431712490348
Xylog (g/L): 9.106715375412543
Xylose (g/L): 25.0502395385376
Furfural (g/L): 0.018645822102394793
FIS (g/g): 0.37973144421443683
rho_x (g/g): 34.156954913950145
X_G (g/g): 0.42157147345392815
conv: 0.1945596815171076
frac_conv_xylog: 0.015207571604240364
frac_conv_xylose: 0.12549639330363704
frac_conv_furfural: 0.00014595565421340117
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.08785441459503089
Unadjusted mass of xylog (g): 0.01168341512858848
Unadjusted mass of xylose (g): 0.03250388936539956
Unadjusted mass of furfural (g): 4.782120525736733e-05
Unadjusted mass of products (g): 0.04423512569924541
Unadjusted mass of products / initial xylan (g): 0.33638878858741755
Adjusted mass of xylog (g): 0.011527705296544804
Adjusted mass of xylose (g): 0.03207069623666546
Adjusted mass of furfural (g): 4.7183871758831415e-05
Adjusted mass of products (g): 0.043645585404969094
Adjusted mass of products / initial xylan (g): 0.33190559243322504
Fractional conversion of xylog 0.025714526390264707
Fractional conversion of xylose 0.2146175869830084
Fractional conversion of furfural 0.0004933674803680091
Time (s): 60.0
Xylan (g/g): 0.20003911824116213
Xylog (g/L): 13.225758755178415
Xylose (g/L): 36.794772300769935
Furfural (g/L): 0.054134148034181984
FIS (g/g): 0.3320703852424122
rho_x (g/g): 50.020531055948354
X_G (g/g): 0.43825586781598264
conv: 0.3319055924332251
frac_conv_xylog: 0.025714526390264707
frac_conv_xylose: 0.2146175869830084
frac_conv_furfural: 0.0004933674803680091
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.07433432037902826
Unadjusted mass of xylog (g): 0.015171345272917278
Unadjusted mass of xylose (g): 0.04264473247027711
Unadjusted mass of furfural (g): 9.168324919519883e-05
Unadjusted mass of products (g): 0.05790776099238959
Unadjusted mass of products / initial xylan (g): 0.44036320146303876
Adjusted mass of xylog (g): 0.01497692620864263
Adjusted mass of xylose (g): 0.042098245073545426
Adjusted mass of furfural (g): 9.05083387836607e-05
Adjusted mass of products (g): 0.05716567962097172
Adjusted mass of products / initial xylan (g): 0.43471999711765574
Fractional conversion of xylog 0.03340860599139548
Fractional conversion of xylose 0.28172209630965767
Fractional conversion of furfural 0.0009463799682702167
Time (s): 90.0
Xylan (g/g): 0.17722885291230994
Xylog (g/L): 15.356746625854617
Xylose (g/L): 43.16587222113059
Furfural (g/L): 0.09280366390705863
FIS (g/g): 0.29802452984780514
rho_x (g/g): 58.52261884698521
X_G (g/g): 0.451636178128238
conv: 0.43471999711765574
frac_conv_xylog: 0.03340860599139548
frac_conv_xylose: 0.28172209630965767
frac_conv_furfural: 0.0009463799682702167
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.06377682690456683
Unadjusted mass of xylog (g): 0.017828509732206916
Unadjusted mass of xylose (g): 0.050605598714248815
Unadjusted mass of furfural (g): 0.00014149444268878674
Unadjusted mass of products (g): 0.06857560288914451
Unadjusted mass of products / initial xylan (g): 0.5214874744421635
Adjusted mass of xylog (g): 0.017606892243874028
Adjusted mass of xylose (g): 0.04997654525711247
Adjusted mass of furfural (g): 0.00013973559444668696
Adjusted mass of products (g): 0.06772317309543319
Adjusted mass of products / initial xylan (g): 0.51500511859645
Fractional conversion of xylog 0.039275196893812786
Fractional conversion of xylose 0.33444380096014426
Fractional conversion of furfural 0.0014611136301459662
Time (s): 120.0
Xylan (g/g): 0.15801962686411836
Xylog (g/L): 16.578350009723906
Xylose (g/L): 47.05706424922819
Furfural (g/L): 0.13157265697244322
FIS (g/g): 0.2728857209704647
rho_x (g/g): 63.635414258952096
X_G (g/g): 0.462666484882276
conv: 0.5150051185964499
frac_conv_xylog: 0.039275196893812786
frac_conv_xylose: 0.33444380096014426
frac_conv_furfural: 0.0014611136301459662
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.055286712236933135
Unadjusted mass of xylog (g): 0.01990887545334024
Unadjusted mass of xylose (g): 0.05704525083234631
Unadjusted mass of furfural (g): 0.00019503281089425348
Unadjusted mass of products (g): 0.0771491590965808
Unadjusted mass of products / initial xylan (g): 0.5866856205063179
Adjusted mass of xylog (g): 0.019667367366441257
Adjusted mass of xylose (g): 0.05635325346526845
Adjusted mass of furfural (g): 0.0001926669313571599
Adjusted mass of products (g): 0.07621328776306688
Adjusted mass of products / initial xylan (g): 0.5795687282362502
Fractional conversion of xylog 0.04387144051322765
Fractional conversion of xylose 0.37711682927327944
Fractional conversion of furfural 0.0020145781795900754
Time (s): 150.0
Xylan (g/g): 0.141547967070928
Xylog (g/L): 17.336543113583414
Xylose (g/L): 49.67470175791504
Furfural (g/L): 0.16983353693461886
FIS (g/g): 0.2537984864324628
rho_x (g/g): 67.01124487149845
X_G (g/g): 0.47193551431641595
conv: 0.5795687282362499
frac_conv_xylog: 0.04387144051322765
frac_conv_xylose: 0.37711682927327944
frac_conv_furfural: 0.0020145781795900754
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.04830884574050471
Unadjusted mass of xylog (g): 0.021569208971308828
Unadjusted mass of xylose (g): 0.06237194787744904
Unadjusted mass of furfural (g): 0.0002510431697139226
Unadjusted mass of products (g): 0.08419220001847179
Unadjusted mass of products / initial xylan (g): 0.6402448670606221
Adjusted mass of xylog (g): 0.021312750948351004
Adjusted mass of xylose (g): 0.0616303450462114
Adjusted mass of furfural (g): 0.00024805826493287387
Adjusted mass of products (g): 0.08319115425949528
Adjusted mass of products / initial xylan (g): 0.6326323517832342
Fractional conversion of xylog 0.04754175116488944
Fractional conversion of xylose 0.4124312063928977
Fractional conversion of furfural 0.0025937651276251076
Time (s): 180.0
Xylan (g/g): 0.12723738796542813
Xylog (g/L): 17.837554797023177
Xylose (g/L): 51.58107743037736
Furfural (g/L): 0.2076105944426184
FIS (g/g): 0.23895802865596372
rho_x (g/g): 69.41863222740054
X_G (g/g): 0.47983626557799897
conv: 0.6326323517832341
frac_conv_xylog: 0.04754175116488944
frac_conv_xylose: 0.4124312063928977
frac_conv_furfural: 0.0025937651276251076
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.04247716657880298
Unadjusted mass of xylog (g): 0.022912470618381052
Unadjusted mass of xylose (g): 0.06685481306264658
Unadjusted mass of furfural (g): 0.0003087787904468668
Unadjusted mass of products (g): 0.0900760624714745
Unadjusted mass of products / initial xylan (g): 0.6849890682241406
Adjusted mass of xylog (g): 0.022644562819052565
Adjusted mass of xylose (g): 0.0660731022580613
Adjusted mass of furfural (g): 0.0003051683440831487
Adjusted mass of products (g): 0.08902283342119702
Adjusted mass of products / initial xylan (g): 0.6769797218341979
Fractional conversion of xylog 0.05051258626303234
Fractional conversion of xylose 0.44216220522504907
Fractional conversion of furfural 0.0031909237499188553
Time (s): 210.0
Xylan (g/g): 0.11468158892566835
Xylog (g/L): 18.184685077778212
Xylose (g/L): 53.05991404098797
Furfural (g/L): 0.24506501967836639
FIS (g/g): 0.22718160046140778
rho_x (g/g): 71.24459911876619
X_G (g/g): 0.48664504080581544
conv: 0.6769797218341979
frac_conv_xylog: 0.05051258626303234
frac_conv_xylose: 0.44216220522504907
frac_conv_furfural: 0.0031909237499188553
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.03753886927614635
Unadjusted mass of xylog (g): 0.024009519909941008
Unadjusted mass of xylose (g): 0.07067966490454951
Unadjusted mass of furfural (g): 0.00036777733448924724
Unadjusted mass of products (g): 0.09505696214897975
Unadjusted mass of products / initial xylan (g): 0.7228666323116331
Adjusted mass of xylog (g): 0.02373273443495109
Adjusted mass of xylose (g): 0.06986485874865324
Adjusted mass of furfural (g): 0.00036353754024933885
Adjusted mass of products (g): 0.09396113072385368
Adjusted mass of products / initial xylan (g): 0.7145333134893815
Fractional conversion of xylog 0.05293993993094286
Fractional conversion of xylose 0.4675366973293905
Fractional conversion of furfural 0.00380124804443225
Time (s): 240.0
Xylan (g/g): 0.10358245223431574
Xylog (g/L): 18.434116863364274
Xylose (g/L): 54.26669119587129
Furfural (g/L): 0.28237342475408345
FIS (g/g): 0.2176799071412333
rho_x (g/g): 72.70080805923556
X_G (g/g): 0.4925636808036236
conv: 0.7145333134893813
frac_conv_xylog: 0.05293993993094286
frac_conv_xylose: 0.4675366973293905
frac_conv_furfural: 0.00380124804443225
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.03331283850552668
Unadjusted mass of xylog (g): 0.024910982507703235
Unadjusted mass of xylose (g): 0.07397959191434413
Unadjusted mass of furfural (g): 0.00042774044806563415
Unadjusted mass of products (g): 0.099318314870113
Unadjusted mass of products / initial xylan (g): 0.755272356426715
Adjusted mass of xylog (g): 0.024627267042021592
Adjusted mass of xylose (g): 0.07313702561394125
Adjusted mass of furfural (g): 0.0004228688385104394
Adjusted mass of products (g): 0.09818716149447328
Adjusted mass of products / initial xylan (g): 0.7466704296157665
Fractional conversion of xylog 0.05493534853480103
Fractional conversion of xylose 0.4894340877586944
Fractional conversion of furfural 0.004421632341839197
Time (s): 270.0
Xylan (g/g): 0.09371405044340829
Xylog (g/L): 18.611913645809494
Xylose (g/L): 55.27288118147163
Furfural (g/L): 0.3195806620535998
FIS (g/g): 0.20985292969212352
rho_x (g/g): 73.88479482728113
X_G (g/g): 0.4977441754819617
conv: 0.7466704296157666
frac_conv_xylog: 0.05493534853480103
frac_conv_xylose: 0.4894340877586944
frac_conv_furfural: 0.004421632341839197
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.029666959378235047
Unadjusted mass of xylog (g): 0.025653835695860876
Unadjusted mass of xylose (g): 0.07685154625654109
Unadjusted mass of furfural (g): 0.0004884390651750931
Unadjusted mass of products (g): 0.10299382101757706
Unadjusted mass of products / initial xylan (g): 0.7832229735176963
Adjusted mass of xylog (g): 0.025364706996110452
Adjusted mass of xylose (g): 0.07598539945859663
Adjusted mass of furfural (g): 0.0004829341670578819
Adjusted mass of products (g): 0.10183304062176496
Adjusted mass of products / initial xylan (g): 0.7743957461731176
Fractional conversion of xylog 0.056580334997660825
Fractional conversion of xylose 0.5084954488484033
Fractional conversion of furfural 0.005049691860871388
Time (s): 300.0
Xylan (g/g): 0.08490444058911752
Xylog (g/L): 18.7295902616478
Xylose (g/L): 56.10848956171211
Furfural (g/L): 0.3566041221659421
FIS (g/g): 0.20325377269553718
rho_x (g/g): 74.83807982335992
X_G (g/g): 0.5023018492350889
conv: 0.7743957461731176
frac_conv_xylog: 0.056580334997660825
frac_conv_xylose: 0.5084954488484033
frac_conv_furfural: 0.005049691860871388
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.026501313546173584
Unadjusted mass of xylog (g): 0.026266102278982052
Unadjusted mass of xylose (g): 0.07936874775784959
Unadjusted mass of furfural (g): 0.0005496871649772514
Unadjusted mass of products (g): 0.1061845372018089
Unadjusted mass of products / initial xylan (g): 0.8074869749186988
Adjusted mass of xylog (g): 0.025972766941701097
Adjusted mass of xylose (g): 0.07848237115937934
Adjusted mass of furfural (g): 0.0005435483527459962
Adjusted mass of products (g): 0.10499868645382643
Adjusted mass of products / initial xylan (g): 0.7984690985081857
Fractional conversion of xylog 0.057936717132311695
Fractional conversion of xylose 0.5252052214467972
Fractional conversion of furfural 0.005683490380423914
Time (s): 330.0
Xylan (g/g): 0.07701720823606935
Xylog (g/L): 18.793175947198833
Xylose (g/L): 56.78767353752638
Furfural (g/L): 0.393296557578727
FIS (g/g): 0.19755917097495876
rho_x (g/g): 75.5808494847252
X_G (g/g): 0.506327430165928
conv: 0.7984690985081857
frac_conv_xylog: 0.057936717132311695
frac_conv_xylose: 0.5252052214467972
frac_conv_furfural: 0.005683490380423914
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.02373847446231967
Unadjusted mass of xylog (g): 0.026769569636844417
Unadjusted mass of xylose (g): 0.08158784221355742
Unadjusted mass of furfural (g): 0.0006113223934123473
Unadjusted mass of products (g): 0.10896873424381417
Unadjusted mass of products / initial xylan (g): 0.8286595759985869
Adjusted mass of xylog (g): 0.02647300330752698
Adjusted mass of xylose (g): 0.08068397236393152
Adjusted mass of furfural (g): 0.0006045498662218347
Adjusted mass of products (g): 0.10776152553768034
Adjusted mass of products / initial xylan (g): 0.8194792816553638
Fractional conversion of xylog 0.059052580255066524
Fractional conversion of xylose 0.5399383701920892
Fractional conversion of furfural 0.00632133890536139
Time (s): 360.0
Xylan (g/g): 0.06994138518348918
Xylog (g/L): 18.807886554012235
Xylose (g/L): 57.32235898283659
Furfural (g/L): 0.4295056804873612
FIS (g/g): 0.1925461694332083
rho_x (g/g): 76.13024553684883
X_G (g/g): 0.5098938860451155
conv: 0.8194792816553637
frac_conv_xylog: 0.059052580255066524
frac_conv_xylose: 0.5399383701920892
frac_conv_furfural: 0.00632133890536139
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.021316683568877583
Unadjusted mass of xylog (g): 0.027181638376733916
Unadjusted mass of xylose (g): 0.08355397553098351
Unadjusted mass of furfural (g): 0.0006732078868768905
Unadjusted mass of products (g): 0.11140882179459431
Unadjusted mass of products / initial xylan (g): 0.8472153748638352
Adjusted mass of xylog (g): 0.02688263832375734
Adjusted mass of xylose (g): 0.08263487555754147
Adjusted mass of furfural (g): 0.0006658025498235976
Adjusted mass of products (g): 0.1101833164311224
Adjusted mass of products / initial xylan (g): 0.8378959424419956
Fractional conversion of xylog 0.059966341508001175
Fractional conversion of xylose 0.5529938440352586
Fractional conversion of furfural 0.006961813733896935
Time (s): 390.0
Xylan (g/g): 0.06358338745891846
Xylog (g/L): 18.781181650741765
Xylose (g/L): 57.7317073511001
Furfural (g/L): 0.4651536981291458
FIS (g/g): 0.18807784918608297
rho_x (g/g): 76.51288900184187
X_G (g/g): 0.5130616734228657
conv: 0.8378959424419956
frac_conv_xylog: 0.059966341508001175
frac_conv_xylose: 0.5529938440352586
frac_conv_furfural: 0.006961813733896935
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.019185634131302403
Unadjusted mass of xylog (g): 0.02751647101149009
Unadjusted mass of xylose (g): 0.08530391867090562
Unadjusted mass of furfural (g): 0.0007352324277991894
Unadjusted mass of products (g): 0.11355562211019489
Unadjusted mass of products / initial xylan (g): 0.8635408525490106
Adjusted mass of xylog (g): 0.027215693377126496
Adjusted mass of xylose (g): 0.08437147675823935
Adjusted mass of furfural (g): 0.0007271957333317737
Adjusted mass of products (g): 0.11231436586869761
Adjusted mass of products / initial xylan (g): 0.854101641587054
Fractional conversion of xylog 0.06070927800220866
Fractional conversion of xylose 0.5646152056825142
Fractional conversion of furfural 0.007603757667917786
Time (s): 420.0
Xylan (g/g): 0.05786236361184584
Xylog (g/L): 18.72006328549342
Xylose (g/L): 58.034140909752544
Furfural (g/L): 0.5001948677285147
FIS (g/g): 0.18405770812534872
rho_x (g/g): 76.75420419524596
X_G (g/g): 0.5158818960319367
conv: 0.854101641587054
frac_conv_xylog: 0.06070927800220866
frac_conv_xylose: 0.5646152056825142
frac_conv_furfural: 0.007603757667917786
Mass of xylan initial (g): 0.13149999999999998
Mass of xylan (g): 0.017303818768587706
Unadjusted mass of xylog (g): 0.027785728694856043
Unadjusted mass of xylose (g): 0.08686802151280779
Unadjusted mass of furfural (g): 0.000797307169358644
Unadjusted mass of products (g): 0.11545105737702248
Unadjusted mass of products / initial xylan (g): 0.8779548089507414
Adjusted mass of xylog (g): 0.02748371631905158
Adjusted mass of xylose (g): 0.08592382394121871
Adjusted mass of furfural (g): 0.0007886409711419849
Adjusted mass of products (g): 0.11419618123141227
Adjusted mass of products / initial xylan (g): 0.8684120245734775
Fractional conversion of xylog 0.06130714920346107
Fractional conversion of xylose 0.5750035366408555
Fractional conversion of furfural 0.008246245895971326
Time (s): 450.0
Xylan (g/g): 0.05270767279156585
Xylog (g/L): 18.629690381630404
Xylose (g/L): 58.24300534353154
Furfural (g/L): 0.5345760720306583
FIS (g/g): 0.18040591693815375
rho_x (g/g): 76.87269572516195
X_G (g/g): 0.5183981865144879
conv: 0.8684120245734775
frac_conv_xylog: 0.06130714920346107
frac_conv_xylose: 0.5750035366408555
frac_conv_furfural: 0.008246245895971326
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.01563671957653142
Unadjusted mass of xylog (g): 0.027999081828672372
Unadjusted mass of xylose (g): 0.0882715396166711
Unadjusted mass of furfural (g): 0.0008593613817024473
Unadjusted mass of products (g): 0.11712998282704593
Unadjusted mass of products / initial xylan (g): 0.8907223028672694
Adjusted mass of xylog (g): 0.027696285709401122
Adjusted mass of xylose (g): 0.0873169268975263
Adjusted mass of furfural (g): 0.0008500678165411564
Adjusted mass of products (g): 0.11586328042346858
Adjusted mass of products / initial xylan (g): 0.8810895849693428
Fractional conversion of xylog 0.06178132173453229
Fractional conversion of xylose 0.5843262028123434
Fractional conversion of furfural 0.008888541807939849
Time (s): 480.0
Xylan (g/g): 0.048057355336731736
Xylog (g/L): 18.516292739334048
Xylose (g/L): 58.37554524449582
Furfural (g/L): 0.568311025691788
FIS (g/g): 0.17707467608479585
rho_x (g/g): 76.89183798382987
X_G (g/g): 0.5206479615395219
conv: 0.8810895849693429
frac_conv_xylog: 0.06178132173453229
frac_conv_xylose: 0.5843262028123434
frac_conv_furfural: 0.008888541807939849
Mass of xylan initial (g): 0.1315
Mass of xylan (g): 0.01472728607909724
Unadjusted mass of xylog (g): 0.02810367768774305
Unadjusted mass of xylose (g): 0.08904553038173652
Unadjusted mass of furfural (g): 0.0008965601979441652
Unadjusted mass of products (g): 0.11804576826742373
Unadjusted mass of products / initial xylan (g): 0.897686450702842
Adjusted mass of xylog (g): 0.02780059601392519
Adjusted mass of xylose (g): 0.0880852265847048
Adjusted mass of furfural (g): 0.000886891322272783
Adjusted mass of products (g): 0.11677271392090277
Adjusted mass of products / initial xylan (g): 0.8880054290562948
Fractional conversion of xylog 0.06201400378264681
Fractional conversion of xylose 0.5894676760041082
Fractional conversion of furfural 0.00927357846482948
Time (s): 498.0
Xylan (g/g): 0.045486271199255454
Xylog (g/L): 18.438722060859284
Xylose (g/L): 58.42245288013397
Furfural (g/L): 0.5882299279261713
FIS (g/g): 0.175208185131814
rho_x (g/g): 76.86117494099325
X_G (g/g): 0.5218835069033171
conv: 0.8880054290562948
frac_conv_xylog: 0.06201400378264681
frac_conv_xylose: 0.5894676760041082
frac_conv_furfural: 0.00927357846482948
Pretreatment wallclock time: 0.35 s.
Finished Pretreatment
Running Enzymatic Hydrolysis Model
FINAL OUTPUTS (at t = 24 hours)
Conversion Rate = 0.4937
rho_g = 24.53 g/L
rho_x = 23.25 g/L
rho_sL = 3.242 g/L
rho_f = 0.1679 g/L
Finished Enzymatic Hydrolysis
Running Bioreactor
INPUTS
Gas velocity = 0.08 m/s
Column height = 40.00 m
Column diameter = 5.00 m
Bubble diameter = 0.0060 m
OUR_max = 87.69 mol/m^3/hr
t_final = 100.0 s
FINAL OUTPUTS (at t = 100.0 seconds)
OUR = 68.3978 mol/m^3/hr
Finished Bioreactor
[9]:
a = HTML('''<script>
code_show=true;
function code_toggle() {
if (code_show){
$('div.input').hide();
} else {
$('div.input').show();
}
code_show = !code_show
}
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" \
value="Toggle code visibility (hidden by default)."></form>''')
display(a)
[ ]:
[ ]:
[ ]:
[ ]: