Change value of stream mass flow in HYSYS using matlab


0 Comments
Accepted Answer
More Answers (1)
3 Comments
- Dear All
- I got similar issue with aspen plus 15 in fact i want to select the best compostion of mixture of 6 components which will give the lowest temp after cooling and expansion
- in the begining i want to test matlab 2025a and aspen v15 but the matlab can run aspen but he cannot replace the mass flow by showing AE_UNDERSPEC issue
- pressure and temperature can be changed by matlab but mass flow rate cannot
Hi @Attaf, thanks for sharing your experience. It sounds like a bit of a tricky issue with MATLAB and Aspen Plus integration! After digging through online documentations, I was able to find out that The AE_UNDERSPEC error usually happens when Aspen Plus can't find all the info it needs to complete the simulation, and in your case, it seems like the mass flow rate is the one that’s being left out.
Since you're able to change pressure and temperature but not the mass flow rate, it’s likely that the mass flow is defined as an output or tied to another part of the simulation that MATLAB isn’t able to control directly. A quick fix could be to double-check how the mass flow rate is defined in your Aspen Plus flowsheet. It needs to be an input variable for MATLAB to be able to adjust it, not an output.
Also, make sure that the connections between MATLAB and Aspen Plus are set up correctly. You might want to test controlling simpler parameters first (like temperature or pressure) to ensure everything’s linked up properly before tackling the more complex ones.
I’d also suggest looking into whether there are any additional constraints or settings in Aspen that could be interfering with MATLAB’s ability to modify the mass flow. Sometimes, Aspen automatically locks certain parameters based on the system configuration, so that might be a good place to start.
Hopefully, that helps! Let me know how it goes.
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!