Filter löschen
Filter löschen

How to connect MATLAB and Aspen HYSYS?

66 Ansichten (letzte 30 Tage)
민지 박
민지 박 am 25 Apr. 2023
Beantwortet: Gokul Nath S J am 24 Mai 2023
First of all, I would like to import data made with Aspen HYSYS into the MATLAB workspace.
However, I wrote the code, and the following problems occurred.
The values of the variables generated in the workspace consist of unknown values.
I want to know why this problem occurred, and I want to get a value composed of numbers.
Please tell me how I can import Aspen HYSYS's data into MATLAB.
[Code]
Hysys=actxserver('Hysys.Application.V14.0');
[stat, mess]=fileattrib;
simcase=Hysys.SimulationCases.Open([mess.Name '\ccsfile.hsc']);
simcase.invoke('Activate');
fs=simcase.get('flowsheet'); %accessing to flowsheet
op=fs.get('Operations'); %accessing to simulated operations (e.g Distillation column)
ms=fs.get('MaterialStreams'); %accessing to simulated material streams
ns=fs.get('EnergyStreams'); % Energy streams
sheet = op.Item('SPRDSHT-1'); %Spreadsheets (e.g "Sheet_1")
HySolver = simcase.Solver; %Hysys can solve? De/Activating the solver

Antworten (1)

Gokul Nath S J
Gokul Nath S J am 24 Mai 2023
Hi,
It seems that you would like to have an interconnect between MATLAB and Aspen HYSYS.
Please find the following link to find the MATLAB Exchange file.
with regards,
Gokul Nath S J

Kategorien

Mehr zu Distillation Design finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by