lib.solids module

Module with solid definition

lib.solids.translate(context: str, sourceText: str, disambiguation: str = None, n: int = -1) str
class lib.solids.Solid(**kwargs)[source]

Bases: Entity

Class to define a solid entity Parameters:

tipo: definition of solid

0 - Undefined 1 - Mean diameter 2 - Particle solid distribution

kwargs:

caudalSolido diametroMedio fraccionMasica diametros T

solidos: To override the config value

Attributes:
isCalculable

Procedure to check complete definition of instance

Methods

RhoS(T)

Calculate solid density as a posible function of temperature

Separar(etas)

Split solid with efficiency array input return two array with solids filtered and no filtered

__call__(**kwargs)

All equipment are callables, so we can instance or add/change input value with flexibility

ajustar_distribucion([eq])

Fit current distribution with any of standard. eq: index with distribuciont to fit 0 - Rosin, Rammler, Sperling (Weibull distribution) 1 - Gates, Gaudin, Shumann 2 - Gaudin, Meloy 3 - Broadbent, Callcott 4 - Distribución lognormal 5 - Harris Ref: Ahmed, Drzymala; Two-dimensional fractal linearization of distribution curves, pag 2.

calculo()

Procedure to calculate instance properties

readStatefromJSON(data)

Read entity state from JSON file

writeStatetoJSON(data)

Write entity state to JSON file

kwargs = {'caudalSolido': [], 'diametroMedio': 0.0, 'distribucion_diametro': [], 'distribucion_fraccion': [], 'solids': None}
status = 0
msg = 'undefined'
property isCalculable

Procedure to check complete definition of instance

calculo()[source]

Procedure to calculate instance properties

RhoS(T)[source]

Calculate solid density as a posible function of temperature

ajustar_distribucion(eq=0)[source]

Fit current distribution with any of standard. eq: index with distribuciont to fit

0 - Rosin, Rammler, Sperling (Weibull distribution) 1 - Gates, Gaudin, Shumann 2 - Gaudin, Meloy 3 - Broadbent, Callcott 4 - Distribución lognormal 5 - Harris

Ref: Ahmed, Drzymala; Two-dimensional fractal linearization of distribution curves, pag 2

Separar(etas)[source]

Split solid with efficiency array input return two array with solids filtered and no filtered

writeStatetoJSON(data)[source]

Write entity state to JSON file

readStatefromJSON(data)[source]

Read entity state from JSON file