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

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 26

  • @杜鹃-r2n
    @杜鹃-r2n 2 года назад +1

    Thank you very much! it helped me a lot🥳

  • @farangis93
    @farangis93 7 месяцев назад

    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

  • @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?

  • @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

  • @NICOLASMARTINEZRAMON-s9j
    @NICOLASMARTINEZRAMON-s9j Год назад

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

  • @aryatuhaprosper6896
    @aryatuhaprosper6896 10 месяцев назад

    Hello Pedram
    Can this apply to HYSYS also?
    Thank you

  • @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.

  • @ahmetkaanoznacar7822
    @ahmetkaanoznacar7822 2 года назад +1

    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 :)

  • @DevSharma-in5qy
    @DevSharma-in5qy 7 месяцев назад

    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

  • @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.

  • @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 2 года назад

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

  • @mageshwaria1943
    @mageshwaria1943 2 года назад

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

  • @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.

  • @sofy794
    @sofy794 2 года назад

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

  • @sofy794
    @sofy794 2 года назад

    Hello sir Can you do same work with python

  • @murciausiq
    @murciausiq 3 года назад

    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.