You're reading the documentation for a development version. For the latest stable documentation, please have a look at v5.1.X.

Exchange models#

An exchange model describes the mass transfer between the channels of the multichannel transport model. Every exchange model implements cadet::model::IExchangeModel.

Interface#

class IExchangeModel#
[source]

Subclassed by cadet::model::LangumirExchangeBase, cadet::model::LinearExchangeBase

Public Functions

inline virtual ~IExchangeModel() noexcept#
[source]
virtual const char *name() const noexcept = 0#
[source]
virtual bool configureModelDiscretization(IParameterProvider &paramProvider, unsigned int nComp, unsigned int nChannel, unsigned int nCol) = 0#
[source]
virtual bool configure(IParameterProvider &paramProvider, UnitOpIdx unitOpIdx, std::unordered_map<ParameterId, active*> &parameters) = 0#
[source]
virtual int residual(active const *y, active *res, WithParamSensitivity, bool wantJac, linalg::BandedSparseRowIterator jacBegin) const = 0#
[source]
virtual int residual(active const *y, active *res, WithoutParamSensitivity, bool wantJac, linalg::BandedSparseRowIterator jacBegin) const = 0#
[source]
virtual int residual(double const *y, active *res, WithParamSensitivity, bool wantJac, linalg::BandedSparseRowIterator jacBegin) const = 0#
[source]
virtual int residual(double const *y, double *res, WithoutParamSensitivity, bool wantJac, linalg::BandedSparseRowIterator jacBegin) const = 0#
[source]