Chemical Process Simulation: Linking Aspen Plus User Model and MATLAB by Excel

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • This video covers how to use Aspen Plus user model capability to insert your own developed simulation by another software, such as MATLAB, inside the Aspen Plus flowsheet. You may also use Aspen Custom Modeler or other methods. However, in this video a model developed by MATLAB is linked to Aspen Plus with the help of Excel to dynamically exchange data. Since this is a Dynamic Data Exchange between different software, the integration of model with other built-in equipment in Aspen Plus, sensitivity analysis, and optimizations can be conducted while all three software are linked.

ความคิดเห็น • 26

  • @user-im2in8ho9r
    @user-im2in8ho9r 2 ปีที่แล้ว +1

    Thank you very much! it helped me a lot🥳

  • @farangis93
    @farangis93 4 หลายเดือนก่อน

    That's great, I really appreciate the time you spent on this video. My question is that, is this linking possible through a calculator block of Aspen as well?

  • @zibaborazjani8008
    @zibaborazjani8008 2 ปีที่แล้ว

    Dear Pedram
    I really appreciate your tutorial. It was very helpful.
    one question:
    What should we do if we want to transfer data to Excel with the desired unit?
    Thank you

  • @meditations5390
    @meditations5390 ปีที่แล้ว

    Hi, I have a model coded in matlab as a function file, how can I connect it with ASPEN Plus to get all the results and manipulation. Please respnd if you have any idea on that. Thanks

  • @faharijosaphat9445
    @faharijosaphat9445 ปีที่แล้ว

    Thank you so much. I'm trying to integrate concentrate solar power systems with Aspen plus for biomass gasification. How can this be done sir?

  • @NICOLASMARTINEZRAMON-s9j
    @NICOLASMARTINEZRAMON-s9j 11 หลายเดือนก่อน

    Hi! Is it possible to do this matlab excell connection within an excell calculator in ASPEN??

  • @aryatuhaprosper6896
    @aryatuhaprosper6896 6 หลายเดือนก่อน

    Hello Pedram
    Can this apply to HYSYS also?
    Thank you

  • @DevSharma-in5qy
    @DevSharma-in5qy 3 หลายเดือนก่อน

    Hey the video was very help ful can you send the code presented in pedram.m file im not able to take back output from the matlab function

  • @escangels
    @escangels 2 ปีที่แล้ว

    Thank you so much I find your video really helpful!!
    I have one question, how can I avoid the excel and matlab from restarting every time I reset the simulation ?

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว +1

      if you mean closing and re-opening it should not happen! make sure that you are using proper formats like .bkp

  • @khalifaaliyuibrahim719
    @khalifaaliyuibrahim719 2 ปีที่แล้ว

    Thank you so much. It helps. But when ever I try to reset and rerun the Aspen after Linking the the software to dynamically exchange data(last step), it close the Excel and the Matlab. And the data from the Matlab code is not sent to Excel.
    Can you advise me what to do please.

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว

      If u have done the first two steps with no problem, u should be able to do the last step without a problem. So try do the first two steps sometime we might something. Make sure that all files (Aspen, excel, and matlab function) are in the same folder and the format of Aspen file which u are using is ".bkp". and If u R receiving any error in Aspen plz share here. After all if we still have the same problem I guess u have to Check your license with Aspen.

  • @fatemehrajaee533
    @fatemehrajaee533 2 ปีที่แล้ว

    Hello, when I run my file, the mass flow and mass fractions do not appear in the stream result? what I should do?

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว

      stream result in excel or Aspen?
      Answering your question is difficult since I am not sure which part is not able to transfer data!
      here is an idea
      1. inlet data should be sent from Aspen to Excel
      2. Then this inlet information should be sent to MATLAB
      3. Results should be sent back to Excel
      4. Results should be send from excel to Aspen
      At the end of the video there is a short explanation how to debug the code buy pausing. You need to find out which part for 1 to 4 is not able to transfer data.

  • @zibaborazjani8008
    @zibaborazjani8008 2 ปีที่แล้ว

    my MATLAB code is based on mass calculations. So I want the mass flow (instead of the molar flow) to be transferred from ASPEN to Excel. Also the results (from MATLAB to Excel) are based on mass unit(Kg/hr).

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว +1

      There are a few ways such as changing the visual basic codes in Excel file used for usermodel. A short way is: Get each component’s molecular weight (mw) in a stream as a matrix from Aspen. Then write down the values inside your code in MATLAB. Just do that by hands cuz mw is always constant for each component. Multiply the input of your MATLAB function (which is based on molar flow) with mw matrix. Then you will have mass flow or fraction. You can do the same for changing mass flow to molar flow for the output of MATLAB function before sending that to Excel.

  • @ahmetkaanoznacar7822
    @ahmetkaanoznacar7822 2 ปีที่แล้ว

    Hi!
    Thank you for detailed tutorial.
    I am trying to adapt your method to ChemCad and I managed to do it to a certain point.
    However, I am having difficulties in building that macro in VBA.
    I would appreciate if you could help me with it :)

  • @sofy794
    @sofy794 ปีที่แล้ว

    Hello sir Can you help me how to connect Aspen with comsol

  • @bilalkazmi6764
    @bilalkazmi6764 2 ปีที่แล้ว

    Will the process be the same if we don't use the custom model

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว

      the aim of using custom model is to simulate something which Aspen Plus is not capable of doing that. otherwise using the results for custom modeler would be the same as using built-in models available in Aspen Plus.

  • @sofy794
    @sofy794 ปีที่แล้ว

    How to transféré code Fortran to VB or MATLAB

  • @mageshwaria1943
    @mageshwaria1943 2 ปีที่แล้ว

    Sir I'm not able to see developer in my excel sheet what to do?

  • @sofy794
    @sofy794 ปีที่แล้ว

    Hello sir Can you do same work with python

  • @murciausiq
    @murciausiq 2 ปีที่แล้ว

    Thanks for this tutorial!!! Could you please share the files?

    • @pedrampasandide8946
      @pedrampasandide8946  2 ปีที่แล้ว

      Sorry, because of license issues I cannot upload some of files, such as the excel file for user model, provided by Aspen Plus. and I believe it will be more confusing if I upload only some of the files.