Tray Column and its Properties (Shortcut Method)
This code-snippet in C# shows how to read the tray column properties like liquid density, entropy etc. Output: Files:
In programming practice, “code snippets” refers to a portion of source code. A programmer can use it as a form of copy and paste programming.
Depending on the programming language or the programming environment, the code snippet will be different. This is due to the different syntax of different programming languages.
We provide code snippets to illustrate the use of the CC-API .NET class library for a variety of programming languages and environments. Subsequently, you understand how to use methods, functions and variables.
Not all programming languages and environments are ideal for all programming problems. Therefore, the problems that the code snippets solve vary. The more problems you see solved, the more you learn. Your program will easily communicate with the parameters in your CHEMCAD flowsheet.
Have a look at code snippets from other categories!
Get inspired what can be done!
Contact us if you have any questions!
Share your snippets or solutions with fellow CHEMCAD engineers!
This code-snippet in C# shows how to read the tray column properties like liquid density, entropy etc. Output: Files:
This code-snippet in IronPython shows how to read stream properties. Output: Files:
This code-snippet in C# shows how to define a user stream and read stream properties. Output: Files:
This code-snippet in Python shows how to use .NET Interface from Python. As a showcase we translated example “Tray Column and its Properties” from C# to Python. To call C# assemblies from Paython code, you’ll need to install Python.NET package. … Read More
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
This code-snippet in C# shows how to calculate the points of heat curves. Output: Files:
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
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
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
This code-snippet in C# shows how to change the flowrate of component in the stream. Output: Files: