Is there a python equivalent of the PiecewiseCubicPolyProfile.fromUniformData function in the MATLAB interface?

Hello,

I have used the PiecewiseCubicPolyProfile.fromUniformData function in MATLAB to obtain sections/ polynomial coefficients for a ‘custom’ inlet protein/ salt profile.

I’m trying to port this to the python front-end. This might simply be my inexperience in python speaking, but is there a similar function to do this here?
I seem to explicitly define each section (i.e., ‘section_XXX’) and feed it its polynomial values. Is there an obvious way I’m missing to loop over this? (Except, perhaps, using an eval() )?

Thanks!

Hello soumi,

there is no such feature (yet) in CADET-Python but you can find a snippet in an older thread on the forum:

Thanks - that’s helpful.