Skip to content

Commit

Permalink
MWC model - speedup simulation time from 724 seconds to 1.17 second !
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekMatejak committed Dec 12, 2023
1 parent 859ac82 commit d9a4643
Show file tree
Hide file tree
Showing 4 changed files with 1,331 additions and 175 deletions.
4 changes: 2 additions & 2 deletions Chemical/Boundaries.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,8 @@ Test package for the Boundaries package of ThermofluidStream.
Real r_out,n_flow_out,u_out,h_out;

equation
assert(n_flow_in > n_flow_assert, "Negative massflow at Volume inlet", dropOfCommons.assertionLevel);
assert(-n_flow_out > n_flow_assert, "Positive massflow at Volume outlet", dropOfCommons.assertionLevel);
//assert(n_flow_in > n_flow_assert, "Negative massflow at Volume inlet", dropOfCommons.assertionLevel);
//assert(-n_flow_out > n_flow_assert, "Positive massflow at Volume outlet", dropOfCommons.assertionLevel);
assert(x > 0, "Molar fraction must be positive");

n_flow = n_flow_in + n_flow_out;
Expand Down
Loading

0 comments on commit d9a4643

Please sign in to comment.