Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing CSTR bulk solution export #150

Merged
merged 1 commit into from
Jan 30, 2024
Merged

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
3 checks passed
@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