Example PGM Files

From SysCAD Documentation
Jump to navigation Jump to search

Navigation: User Guide ➔ Getting Started ➔ Example PGM Files


Simple Examples Subroutines Examples Dynamic Examples Steady State Overall Mass Balance Array and Matrix Examples
Basic
Layout
Simple
Calculations
Initialise
PreStart
Multi-Step Trigger Checking
Project
Counter, While
and Random
Belt Filter
Wash Loss
Startup
Actions
Mass
Balance
Mass
Balance
Species
Balance
Elemental
Balance
Lookup
Value
Set
Values
Tridiagonal
System
Example User Defined Classes
Set Species Splits Agitator
Power
Reaction
Finder
Aq Feed Conc
Calculator
Evaporation
Correlation
Bayer Liquor
Class
Check
Element Bal
Optimise Controllers
for sensitive PIDs
Relaxed Cross Page Connector

Latest SysCAD Version: 25 October 2024 - SysCAD 9.3 Build 139.36522
Related Links: PGMs


The above tables contain some quick access links for examples listed below. For more information and full example lists, please see below:

Simple Example PGM Files

Subroutine Examples

Example Model Procedure files

MP Example Files:

PGM Files using Class and Functions

Using Array and Matrix

Quick Mass balance

The Predefined Class: TagSelect can be used to generate some quick mass balance for the project:

Species Check

The following PGM examples can be used to check species at the end of project solve, so that we can generate Species Lists based on "With Flow" and "No Flow".
NOTE that in Build139 or later, user can get the used/unused species list directly from Plant Model - Species tab.

User Defined Class and Functions

Class and Function/Subroutine can be written as part of the main PGM file OR separately in its own file. If the Class or function/subroutine can be used by multiple PGM or projects, it is best to store the code in a separate file, so it can be re-used easily. Please see Sharing Classes between Projects for more information.

In the following examples, the Class definition is stored in a separate pgm file, the class pgm file is inserted using the include file syntax when it is required.

In the following examples, the Class is written as part of the PGM code. User may copy the class definition into its own file if required.

Example - For Dynamic Projects