bio_rtd.inlet¶
ConstantInlet¶
-
class
bio_rtd.inlet.
ConstantInlet
(t, f, c, species_list, inlet_id, gui_title='ConstantInlet')[source]¶ Bases:
bio_rtd.core.Inlet
Constant flow rate and constant process fluid composition
- Parameters
t (
array
) – Simulation time vectorf (
float
) – Constant flow rate.c (
ndarray
) – Constant concentration for each specie. For single specie use np.array([c_value]).
-
get_n_species
()¶ Get number of process fluid species.
- Return type
int
-
get_result
()¶ Get flow rate and concentration profiles.
- Return type
Tuple
[ndarray
,ndarray
]- Returns
f_out – Flow rate profile.
c_out – Concentration profile.
-
get_t
()¶ Get simulation time vector.
- Return type
ndarray
-
property
log
¶ Logger.
If logger is not set, then a DefaultLogger is instantiated. Setter also plants a data tree into passed logger.
- Return type
IntervalInlet¶
-
class
bio_rtd.inlet.
IntervalInlet
(t, f, c_inner, c_outer, species_list, inlet_id, gui_title)[source]¶ Bases:
bio_rtd.core.Inlet
Constant flow rate profile and box shaped concentration profile
- Variables
t_start – Start position of box, inclusive ( >= ). Initial == t[0] == 0
t_end – End position of box, excluding ( < ). Initial == t[-1] + t[1]
c_inner (np.ndarray) – Concentrations inside the box.
c_outer (np.ndarray) – Concentrations outside the box.
-
get_n_species
()¶ Get number of process fluid species.
- Return type
int
-
get_result
()¶ Get flow rate and concentration profiles.
- Return type
Tuple
[ndarray
,ndarray
]- Returns
f_out – Flow rate profile.
c_out – Concentration profile.
-
get_t
()¶ Get simulation time vector.
- Return type
ndarray
-
property
log
¶ Logger.
If logger is not set, then a DefaultLogger is instantiated. Setter also plants a data tree into passed logger.
- Return type
CustomInlet¶
-
class
bio_rtd.inlet.
CustomInlet
(t, f, c, species_list, inlet_id, gui_title)[source]¶ Bases:
bio_rtd.core.Inlet
Custom flow rate profile and concentration profiles
- Variables
t – Simulation time vector.
f – Custom flow rate profile. Should have the same size az t.
c – Custom concentration profiles. c.shape == (len(species_list), t.size)
-
get_n_species
()¶ Get number of process fluid species.
- Return type
int
-
get_result
()¶ Get flow rate and concentration profiles.
- Return type
Tuple
[ndarray
,ndarray
]- Returns
f_out – Flow rate profile.
c_out – Concentration profile.
-
get_t
()¶ Get simulation time vector.
- Return type
ndarray
-
property
log
¶ Logger.
If logger is not set, then a DefaultLogger is instantiated. Setter also plants a data tree into passed logger.
- Return type