CADETProcess.processModel.Inlet

CADETProcess.processModel.Inlet#

class CADETProcess.processModel.Inlet(c, flow_rate, name)[source]#

Bases: UnitBaseClass, SourceMixin

Pseudo unit operation model for streams entering the system.

Attributes:
cNdPolynomial

Polynomial coefficients for component concentration.

flow_rateNdPolynomial

Polynomial coefficients for volumetric flow rate.

solution_recorderIORecorder

Solution recorder for the unit operation.

c#

Dependently sized polynomial for n entries.

This descriptor represents a polynomial whose size or dimensions may depend on other instance attributes. The polynomial can also be thought of as a 2D array, where each row represents a polynomial of a certain degree.

Important: Use [entries x n_coeff] for dependencies.

Parameters:
n_entriesint, optional

Number of polynomials or rows. Default is None.

n_coeffint, optional

Number of coefficients for each polynomial or columns. Default is None.

Attributes:
sizetuple

The shape of the polynomial array, determined from n_entries and n_coeff.

Methods

fill_values(dims, value) -> np.ndarray:

Fills values to generate the polynomial matrix of the desired size.

_prepare(instance, value, recursive=False) -> np.ndarray:

Prepare the given polynomial matrix s.t. it adheres to the expected size.

Notes

Currently, NdPolynomial is implemented as SizedNdArray. Consequently, no default values can be set since their size would depend on the dependent variables. In theory, this could be split into NdPolynomial and SizedNdPolynomial, but there is currently no use for this distinction.

flow_rate#

Represent a single polynomial using coefficients.

This class serves as a simplified version of NdPolynomial, specifically tailored for single polynomials. It is always defined by its coefficients, removing the need for an ‘n_entries’ parameter.

Use this class when only a single polynomial representation is required.

Attributes:
sizetuple

Size of the coefficients for the polynomial. Derived from NdPolynomial but omits ‘n_entries’.