utopia.objects_generation
Contains all the functions to generate the model objects: model box, model compartments and the model particles (MP ans SPM)
Classes
Class box generates one object box representing the unit world in the case of the UTOPIA parameterization that can contain 17 compartments and that can have conexions to other boxes (for example if conecting several UTOPIA boxes to give spatial resolution) |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model. |
|
Class Particulates generates particulate objects, especifically microplastic particle objects. The class defines a particle object by its composition, shape and dimensions |
|
This is a class to create ParticulatesBIOFILM objects |
|
This is a class to create ParticulatesSPM objects |
Functions
Function for generating the UTOPIA model objects: model box, model compartments and the model particles |
Module Contents
- class utopia.objects_generation.Box(Bname, Bdepth_m=None, Blength_m=None, Bwidth_m=None, Bvolume_m3=None, Bconexions=None)[source]
Class box generates one object box representing the unit world in the case of the UTOPIA parameterization that can contain 17 compartments and that can have conexions to other boxes (for example if conecting several UTOPIA boxes to give spatial resolution)
- description = 'Generic Box class'
- Bname
- Bdepth_m = None
- Blength_m = None
- Bwidth_m = None
- Bvolume_m3 = None
- compartments = []
- Bconexions = None
- class utopia.objects_generation.Compartment(Cname, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None)[source]
Class Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- Cname
- Cdepth_m = None
- Clength_m = None
- Cwidth_m = None
- Cvolume_m3 = None
- CsurfaceArea_m2 = None
- particles
- processess = ['degradation', 'fragmentation', 'heteroaggregation', 'heteroaggregate_breackup', 'biofouling',...
- connexions = []
- class utopia.objects_generation.compartment_water(Cname, SPM_mgL, waterFlow_m3_s, T_K, G, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None, flowVelocity_m_s=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- SPM_mgL
- flowVelocity_m_s = None
- waterFlow_m3_s
- T_K
- G
- processess = ['discorporation', 'fragmentation', 'heteroaggregation', 'heteroaggregate_breackup',...
- class utopia.objects_generation.compartment_surfaceSea_water(Cname, SPM_mgL, waterFlow_m3_s, T_K, G, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None, flowVelocity_m_s=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- SPM_mgL
- flowVelocity_m_s = None
- waterFlow_m3_s
- T_K
- G
- processess = ['discorporation', 'fragmentation', 'heteroaggregation', 'heteroaggregate_breackup',...
- class utopia.objects_generation.compartment_sediment(Cname, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- processess = ['discorporation', 'fragmentation', 'sediment_resuspension', 'burial']
- class utopia.objects_generation.compartment_soil_surface(Cname, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- processess = ['discorporation', 'fragmentation', 'runoff_transport', 'percolation', 'soil_air_resuspension',...
- class utopia.objects_generation.compartment_deep_soil(Cname, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- processess = ['discorporation', 'fragmentation', 'sequestration_deep_soils', 'soil_convection']
- class utopia.objects_generation.compartment_air(Cname, T_K=None, wind_speed_m_s=None, I_rainfall_mm=None, Cdepth_m=None, Clength_m=None, Cwidth_m=None, Cvolume_m3=None, CsurfaceArea_m2=None, flowVelocity_m_s=None)[source]
Bases:
CompartmentClass Compartment (parent class) generates compartment objects that belong by default to an assigned model box (Cbox). Each compartment contains four different particle objects corresponding to the 4 described aggregation states of UTOPIA (freeMP, heterMP, biofMP, heterBiofMP) and the processes that can occur in the compartment are listed under the processess attribute. Each compartment has a set of connexions withing the UTOPIA box listed in the conexions attribute wich will be asigned by reading on the conexions input file of the model.
- T_K = None
- wind_speed_m_s = None
- I_rainfall_mm = None
- flowVelocity_m_s = None
- processess = ['discorporation', 'fragmentation', 'wind_trasport', 'dry_deposition', 'wet_deposition']
- class utopia.objects_generation.Particulates(Pname, Pform, Pcomposition, Pdensity_kg_m3, Pshape, PdimensionX_um, PdimensionY_um, PdimensionZ_um, t_half_d=5000, Pnumber_t0=None)[source]
Class Particulates generates particulate objects, especifically microplastic particle objects. The class defines a particle object by its composition, shape and dimensions
- Pname
- Pform
- Pcomposition
- Pdensity_kg_m3
- Pshape
- PdimensionX_um
- PdimensionY_um
- PdimensionZ_um
- PdimensionX_m
- PdimensionY_m
- PdimensionZ_m
- Pnumber_t0 = None
- radius_m
- diameter_m
- diameter_um
- Pemiss_t_y = 0
- t_half_d = 5000
- class utopia.objects_generation.ParticulatesBF(parentMP, spm)[source]
Bases:
ParticulatesThis is a class to create ParticulatesBIOFILM objects
- species = 'particulate'
- Pname
- Pcomposition
- Pform = 'biofMP'
- parentMP
- BF_density_kg_m3
- BF_thickness_um
- radius_m
- diameter_m
- diameter_um
- t_half_d = 25000
- Pshape
- Pdensity_kg_m3
- PdimensionX_m = 0.0
- PdimensionY_m = 0.0
- PdimensionZ_m = 0.0