Skip to content

Fix missing CSTR bulk solution export#150

Merged
ronald-jaepel merged 1 commit intomasterfrom
fix/cstr_bulk_solution
Jan 30, 2024
Merged

Fix missing CSTR bulk solution export#150
ronald-jaepel merged 1 commit intomasterfrom
fix/cstr_bulk_solution

Conversation

@sleweke
Copy link
Contributor

@sleweke sleweke commented Oct 25, 2023

The CSTR model now reports 1 primary coordinate element. To comply with the interface, it also returns a coordinate value.

Because of the primary coordinate, the shape of the written bulk solution will be (numTimesteps, 1, numComponents). This is a breaking change compared to previous versions. In order to selectively remove the singleton dimension, the function hasPrimaryExtent() is added to the ISolutionExporter interface. This flag determines whether the unit operation model actually extents in the primary coordinate direction, that is, whether it is a true spatial element. If a unit operation model does not have primary extent, the singleton dimension will be removed.

Fixes #149.

The CSTR model now reports 1 primary coordinate element. To comply with
the interface, it also returns a coordinate value.

Because of the primary coordinate, the shape of the written bulk
solution will be (numTimesteps, 1, numComponents). This is a breaking
change compared to previous versions. In order to selectively remove the
singleton dimension, the function hasPrimaryExtent() is added to the
ISolutionExporter interface. This flag determines whether the unit
operation model actually extents in the primary coordinate direction,
that is, whether it is a true spatial element. If a unit operation model
does not have primary extent, the singleton dimension will be removed.

Fixes #149.
@ronald-jaepel ronald-jaepel merged commit 41f2120 into master Jan 30, 2024
@ronald-jaepel ronald-jaepel deleted the fix/cstr_bulk_solution branch January 30, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No Bulk solution being written with CADET 4.4

2 participants