12.12.2012 Views

gPROMS ModelBuilder version 2.3.1

gPROMS ModelBuilder version 2.3.1

gPROMS ModelBuilder version 2.3.1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.2 Connection Types editor<br />

3.2.1 Introduction<br />

21<br />

Connection Types editor<br />

Component models are connected on a composite model’s topology via their Ports (refer to Section 4.3). Each Port<br />

is declared as an instance of a Connection Type.<br />

Connection Types include<br />

Variables: these can be referred to in component models;<br />

Parameters and Distribution domains: these can be used to provide the dimensions of any Parameters and<br />

Variables defined for the Connection Type;<br />

A graphical representation;<br />

Port categories: these can be used to disallow certain connections.<br />

It should be noted that a Model’s Port declaration, in effect, declares the Variables, Parameters and Distribution<br />

domains associated to the Connection Type used for the port declaration.<br />

In addition to the Properties tab (see Section 2.2.1), three tabs are used to define a Connection Type<br />

“Parameters & Variables”<br />

“Graphical representation”<br />

“Port categories”<br />

Each of these tabs is now considered.<br />

3.2.2 “Parameters & variables” editor tab<br />

The Parameters, Distribution domains and Variables are defined on the “Parameters & Variables” editor tab (see<br />

Figure 3.2).<br />

For each Parameter the user should specify:<br />

o a type (Real, Integer, or Foreign Object 10<br />

)<br />

o and (optionally) a default value,<br />

For each Distribution domain the user should specify<br />

o lower and upper bounds<br />

For each Variable the user should specify<br />

o a Variable Type (see Section 3.1)<br />

o Variable dimensions (or if a scalar variable). Both the size and number of dimensions are<br />

declared in the Dimensions field: any size and number of dimensions are permitted.<br />

The lower and upper bounds for Distribution domains and the size of array Variables can be given either directly as<br />

a literal constant (e.g. 2) or using any of the Parameters also defined for the Connection Type 11 .<br />

10 If a parameter of type Foreign Object is specified then a Foreign Object Class can also be specified.<br />

11 Only Parameters of type integer can be use to size Array Variables

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!