You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add first parameter dependencies to chromatography models
Add support to createLWE
Add axial dispersion and film diffusion parameter dependence
Axial dispersion for all models, film diffusion parameter dependence for LRMP and GRM
Add tests for radial flow convection dispersion operators
Enable radial dispersion coeff dependency in operators
Co-authored-by: jbreue16 <[email protected]>
Copy file name to clipboardExpand all lines: src/libcadet/model/LumpedRateModelWithPores.hpp
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,7 @@ class LumpedRateModelWithPores : public UnitOperationBase
264
264
265
265
ConvDispOperator _convDispOp; //!< Convection dispersion operator for interstitial volume transport
266
266
IDynamicReactionModel* _dynReactionBulk; //!< Dynamic reactions in the bulk volume
267
+
IParameterParameterDependence* _filmDiffDep; //!< Film diffusion dependency on local velocity
267
268
268
269
std::vector<linalg::BandMatrix> _jacP; //!< Particle jacobian diagonal blocks (all of them for each particle type)
269
270
std::vector<linalg::FactorizableBandMatrix> _jacPdisc; //!< Particle jacobian diagonal blocks (all of them for each particle type) with time derivatives from BDF method
Copy file name to clipboardExpand all lines: src/libcadet/model/ParameterDependence.hpp
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ namespace cadet
33
33
34
34
classIParameterProvider;
35
35
structColumnPosition;
36
+
classIModel;
36
37
37
38
namespacemodel
38
39
{
@@ -454,59 +455,55 @@ class IParameterParameterDependence
454
455
* @brief Evaluates the parameter
455
456
* @details This function is called simultaneously from multiple threads.
456
457
*
457
-
* @param [in] parTypeIdx Index of the particle type this parameter dependence belongs to
458
-
* @param [in] params Parameters of the unit operation
458
+
* @param [in] model Model that owns this parameter dependence
459
459
* @param [in] colPos Position in normalized coordinates (column inlet = 0, column outlet = 1; outer shell = 1, inner center = 0)
460
460
* @param [in] comp Index of the component the parameter belongs to (or @c -1 if independent of components)
461
461
* @param [in] parType Index of the particle type the parameter belongs to (or @c -1 if independent of particle types)
462
462
* @param [in] bnd Index of the bound state the parameter belongs to (or @c -1 if independent of bound states)
463
463
* @return Actual parameter value
464
464
*/
465
-
virtualdoublegetValue(UnitOpIdx unitOpIdx, conststd::unordered_map<ParameterId, active*>& params, const ColumnPosition& colPos, int comp, int parType, int bnd) const = 0;
465
+
virtualdoublegetValue(constIModel& model, const ColumnPosition& colPos, int comp, int parType, int bnd) const = 0;
466
466
467
467
/**
468
468
* @brief Evaluates the parameter
469
469
* @details This function is called simultaneously from multiple threads.
470
470
*
471
-
* @param [in] parTypeIdx Index of the particle type this parameter dependence belongs to
472
-
* @param [in] params Parameters of the unit operation
471
+
* @param [in] model Model that owns this parameter dependence
473
472
* @param [in] colPos Position in normalized coordinates (column inlet = 0, column outlet = 1; outer shell = 1, inner center = 0)
474
473
* @param [in] comp Index of the component the parameter belongs to (or @c -1 if independent of components)
475
474
* @param [in] parType Index of the particle type the parameter belongs to (or @c -1 if independent of particle types)
476
475
* @param [in] bnd Index of the bound state the parameter belongs to (or @c -1 if independent of bound states)
477
476
* @return Actual parameter value
478
477
*/
479
-
virtual active getValueActive(UnitOpIdx unitOpIdx, conststd::unordered_map<ParameterId, active*>& params, const ColumnPosition& colPos, int comp, int parType, int bnd) const = 0;
478
+
virtual active getValueActive(constIModel& model, const ColumnPosition& colPos, int comp, int parType, int bnd) const = 0;
480
479
481
480
/**
482
481
* @brief Evaluates the parameter
483
482
* @details This function is called simultaneously from multiple threads.
484
483
*
485
-
* @param [in] parTypeIdx Index of the particle type this parameter dependence belongs to
486
-
* @param [in] params Parameters of the unit operation
484
+
* @param [in] model Model that owns this parameter dependence
487
485
* @param [in] colPos Position in normalized coordinates (column inlet = 0, column outlet = 1; outer shell = 1, inner center = 0)
488
486
* @param [in] comp Index of the component the parameter belongs to (or @c -1 if independent of components)
489
487
* @param [in] parType Index of the particle type the parameter belongs to (or @c -1 if independent of particle types)
490
488
* @param [in] bnd Index of the bound state the parameter belongs to (or @c -1 if independent of bound states)
491
489
* @param [in] val Additional parameter-dependent value
492
490
* @return Actual parameter value
493
491
*/
494
-
virtualdoublegetValue(UnitOpIdx unitOpIdx, conststd::unordered_map<ParameterId, active*>& params, const ColumnPosition& colPos, int comp, int parType, int bnd, double val) const = 0;
492
+
virtualdoublegetValue(constIModel& model, const ColumnPosition& colPos, int comp, int parType, int bnd, double val) const = 0;
495
493
496
494
/**
497
495
* @brief Evaluates the parameter
498
496
* @details This function is called simultaneously from multiple threads.
499
497
*
500
-
* @param [in] parTypeIdx Index of the particle type this parameter dependence belongs to
501
-
* @param [in] params Parameters of the unit operation
498
+
* @param [in] model Model that owns this parameter dependence
502
499
* @param [in] colPos Position in normalized coordinates (column inlet = 0, column outlet = 1; outer shell = 1, inner center = 0)
503
500
* @param [in] comp Index of the component the parameter belongs to (or @c -1 if independent of components)
504
501
* @param [in] parType Index of the particle type the parameter belongs to (or @c -1 if independent of particle types)
505
502
* @param [in] bnd Index of the bound state the parameter belongs to (or @c -1 if independent of bound states)
506
503
* @param [in] val Additional parameter-dependent value
507
504
* @return Actual parameter value
508
505
*/
509
-
virtual active getValue(UnitOpIdx unitOpIdx, conststd::unordered_map<ParameterId, active*>& params, const ColumnPosition& colPos, int comp, int parType, int bnd, const active& val) const = 0;
506
+
virtual active getValue(constIModel& model, const ColumnPosition& colPos, int comp, int parType, int bnd, const active& val) const = 0;
0 commit comments