pmodels
Package: PModels
- Collection of models to predict properties of polymer systems.
- The polymer systems = polymer blends and polymer composites.
- The final system properties are estimated from the properties of individual components.
Ultra-brief example
>>> # Standard import of PModels package
>>> import pmodels as pm
>>> # Predict elastic modulus (E)
>>> # of a binary isotropic blend with composition 50/50
>>> # and moduli of the individual components E1 = 1 GPa and E2 = 3 GPa
>>> E_lin = pm.lin.P(1, 3, 0.5) # linear model prediction => E_lin = 2.00
>>> E_ebm = pm.ebm.E(1, 3, 0.5) # EBM model, default params => E_ebm = 1.70
List of modules = predictive models
- pmodels.lin = LINear model
- arbitrary systems, arbitrary property (P), linear prediction
- pmodels.ebm = Equivalent Box Model
- isotropic polymer blends, modulus (E) or yield stress (Y), non-linear
- pmodels.ht = Halpin-Tsai equations
- polymer composites with 0D/1D/2D fillers, modulus (E)
- pmodels.comp = equations for polymer composites
- polymer composites with fillers with/without interfacial adhesion
1''' 2Package: PModels 3---------------- 4* Collection of models to predict properties of polymer systems. 5* The polymer systems = polymer blends and polymer composites. 6* The final system properties 7 are estimated from the properties of individual components. 8 9Ultra-brief example 10 11>>> # Standard import of PModels package 12>>> import pmodels as pm 13>>> # Predict elastic modulus (E) 14>>> # of a binary isotropic blend with composition 50/50 15>>> # and moduli of the individual components E1 = 1 GPa and E2 = 3 GPa 16>>> E_lin = pm.lin.P(1, 3, 0.5) # linear model prediction => E_lin = 2.00 17>>> E_ebm = pm.ebm.E(1, 3, 0.5) # EBM model, default params => E_ebm = 1.70 18 19List of modules = predictive models 20 21* pmodels.lin = LINear model 22 - arbitrary systems, arbitrary property (P), linear prediction 23* pmodels.ebm = Equivalent Box Model 24 - isotropic polymer blends, modulus (E) or yield stress (Y), non-linear 25* pmodels.ht = Halpin-Tsai equations 26 - polymer composites with 0D/1D/2D fillers, modulus (E) 27* pmodels.comp = equations for polymer composites 28 - polymer composites with fillers with/without interfacial adhesion 29''' 30 31__version__ = '0.4' 32 33# The following command enables to use all submodules as follows: 34# >>> from pmodels import * 35# >>> E_lin = lin.P(1,3,0.5) 36# >>> E_ebm = ebm.E(1,3,0.5) 37__all__ = ['lin', 'ht', 'ebm', 'comp'] 38 39# The following block of commands enables to use all submodules as follows: 40# >>> import pmodels as pm 41# >>> E_lin = pm.lin.P(1,3,0.5) 42# >>> E_ebm = pm.ebm.E(1,3,0.5) 43import pmodels.lin 44import pmodels.ht 45import pmodels.ebm 46import pmodels.comp