• Login
  • Register

Interfacing CHEMCAD

  • Download
    • Add-on Manager
    • .NET Interface Development Trial
    • .NET Interface Licenses
    • Enhance CHEMCAD with specific models (UnitOps)
  • Lab
  • Blog
  • Download
    • Add-on Manager
    • .NET Interface Development Trial
    • .NET Interface Licenses
    • Enhance CHEMCAD with specific models (UnitOps)
  • Lab
  • Blog

MATLAB


MathWorks developed MATLAB, a proprietary programming language. It allows matrix manipulations, plotting of functions and data, implementation of algorithms, and creation of user interfaces. In addition, it allows interfacing with programs written in other languages, including C, C++, C#, Java, Fortran and Python.

Use the CC-API .NET class library and object model in MATLAB to write to and to read from a CHEMCAD flowsheet.

Why combine MATLAB and CHEMCAD?

For example, a program can carry out these tasks:

  1. Use CHEMCAD physical properties of components in a MATLAB simulation.
  2. Use CHEMCAD thermodynamic models in the development of new unit operations.
  3. Control one unit operation or the entire CHEMCAD flowsheet with MATLAB.
  4. Optimize a flowsheet with CHEMCAD as the simulation engine.
  5. Regress experimental data and write the binary interaction parameters (BIPs) to CHEMCAD.

The code snippets on this page show how to write to and how to read from a CHEMCAD flowsheet.

Get inspired what can be done!

Contact us if you have any questions!

Share your snippets or solutions with fellow CHEMCAD engineers!

29 Jan 2018

Change Number of the Segments of the Absorber using MATLAB

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

Performance of an absorber also depends on the number of the segments. To visualize the effect of change of number of segments on concentration profiles in CHEMCAD is difficult and slow procedure. Following code snippet shows how to change the … Read More

23 Aug 2017

Chemical Components Physical Properties from CHEMCAD in MATLAB

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

Many tasks in the chemical industry require the physical properties of chemical components. Properties are molecular weight, density, critical pressure and more. The calculation mixture properties, e.g. specific heat capacity, vapor viscosity, thermal conductivity and many more require these properties. … Read More

PE, SE
23 Aug 2017

Read Unit Operations and Streams from a CHEMCAD Flowsheet using MATLAB

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

The main content of a CHEMCAD flowsheet are unit operations and streams. MATLAB can be used to optimize a process in a flowsheet. For this, MATLAB has to access any parameter in the flowsheet. This code snippet demonstrates how to … Read More

SE
23 Aug 2017

Access Thermodynamic Properties and Models from CHEMCAD using MATLAB

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

A separation unit operation in MATLAB requires thermodynamic properties and models. This unit operation and many other unit operations in the chemical industry require VLE calculations. CHEMCAD provides VLE data. CHEMCAD has several built-in thermodynamic models, e.g. NRTL, Wilson, UNIFAC, UNIQUAC, … Read More

18 Jul 2017

MATLAB optimizes a Distillation Column in a CHEMCAD flowsheet

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

Read distillation column hydraulics using MATLAB Distillation is one of the most studied unit operations in terms of optimization and control. One way to optimize a distillation column is to find the optimal feed stage. Another way is to tune the … Read More

PE
11 Jul 2017

Regress binary interaction parameters using MATLAB and write to CHEMCAD

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

Binary interaction parameters and MATLAB Vapor liquid equilibrium (VLE) thermodynamic models use binary interaction parameters (BIPs) to determine thermodynamic behavior. CHEMCAD can only use either VLE or LLE to calculate binary interaction parameters. The prediction can be improved using a … Read More

23 Jun 2017

Read Streams Data from a CHEMCAD Flowsheet using MATLAB

by Maaz Ul Mosaid | posted in: Code Snippets, MATLAB | 0

Any CHEMCAD flowsheet optimization in MATLAB requires reading data from the flowsheet.   The code snippet aims to be the shortest possible snippet to demonstrate how MATLAB accesses a CHEMCAD flowsheet. We recommend to include an exception handling routine, even … Read More

Categories

  • Add-on Manager News (3)
  • C# (19)
  • CC-API (1)
  • Code Snippets (28)
  • Events and News (8)
  • Help (17)
  • MATLAB (7)
  • PowerBI (2)
  • Python (2)
  • Research Project (6)
  • SPL Mixer (1)
  • Static Mixer (1)
  • About CC-API
  • Team and Jobs
  • Terms and Conditions
  • Privacy Policy
  • Update Policy
  • Support Policy
  • Licensing Policy
  • Imprint

© 2021 CGC Capital-Gain Consultants GmbH. All Rights Reserved.
CHEMCAD® is a registered trademark of Chemstations, Inc.