Uploaded by Seungyun Nam

Aspen Process Explorer Ad hoc examples

advertisement
PROCESS EXPLORER AD-HOC CALCULATION EXAMPLES
Mathematical operators
Function
+
*
/
^
Example
= atcl101 + atcl102
=atcl101 – atcl102
=atcl101 * atcl102
=atcl101 / atcl102
=atcl101^2
Combinations of mathematical operators can be done by using “( )” for example:
=atcl101 + (atcl102 - atcl103)
=(atcl101 + atcl102) / (atcl103 – atcl102)
=(atcl101 + atcl102)^2 / (atcl103 - atcl101)^2
=((atcl101 + atcl102)^2 / (atcl103 - atcl101)^2) + atcl101
Constant values (integer or decimal) can be written also as part of calculation:
=atcl101 * 10.25
=atcl101 * (10.25 + atcl102)^3
Time-Based Functions
Function
TimeShift
RateOfChange
RateOfAvgChange
Returns the value of a tag at a time specified by
an offset
Returns the rate of change of the tag in units per
minute
Calculates the rate of change of the timeweighted average value of a tag in units per min
Example
=TimeShift(atcai, 1:00)
=RateOfChange(atcai)
= RateOfAvgChange(atcai:
00:01:00)
MovingAverage
LeadLag
Calculates the time-weighted average value of a
tag
Implementation of the Lead-Lag filter used in
control systems
Math Methods
Function
Abs
Acos
Acosh
Asin
Asinh
Atan
Atanh
Ceiling
Cos
Cosh
Degrees
Even
Exp
Fact
Float
Floor
Int
Ln
Log
Log10
Max
Min
Mod
Odd
Pi
Radians
Rand
Round
Rounddown
Roundup
Sign
Sin
Sinh
Sqrt
Tan
Examples
=Abs(atcai)
=Acos(atcai)
=Acosh(atcai)
=Asin(atcai)
=Asinh(atcai)
=Atan(atcai)
=Atanh(atcai)
=Ceiling((atcai, 2)
=Cos(atcai)
=Cosh(atcai)
=Degrees(atcai)
=Even(atcai)
=Exp(atcai)
=Fact(atcai)
=Float(atcai)
=Floor(atcai, 2)
=Int(atcai)
=Ln(atcai)
=Log(atcai)
=Log10(atcai)
=Max(atcl101, atcl102)
=Max(atcl101, atcl102)
=Mod(atck101, atcl102)
=Odd(atcai)
=atcai * PI()
=Radian(atcai)
=atcai * Rand()
=Round(atcai, 2)
=Rounddown(atcai, 2)
=Roundup(atcai, 2)
=Sign(atcai)
=Sin(atcai)
=Sinh(atcai)
=Sqrt(atcai)
=Tan(atcai)
=MovingAverage(atcai, 1.1)
=LeadLag(atcai, 1:00, 1:00)
Tanh
Trunc
=Tanh(atcai)
=Trunc(atcai)
Comparison and Conditional statements
IF…Then…Else statement can be used in conjunction with comparison operators
Function
>
<
=
<>
And
Or
Example
= IF atcl101 > atcl102 THEN atcl101
= IF atcl101 < atcl102 THEN atcl101
= IF atcl101 = atcl102 THEN atcl101
= IF atcl101 <> atcl102 THEN atcl101
=IF atcl102 < atcl101 AND atcl101>atcl103 THEN atcl101
=IF atcl102 < atcl101 OR atcl101>atcl103 THEN atcl101
Special characters and Sources
Braces can be used as part of a formula to enclose tags names with character that could
interfere with the behavior of the calculation like all mathematical operators.
Supposing a tag name like “atcl-101”:
Correct formula statement: ={atcl-101} + atcl102 + atcl103
Incorrect formula statement: = atclc-101 + atcl102 + atcl103
It is possible also to use tag from different data sources. Supposing two data sources name like
IP21DA1 and IP21DA2:
=IPDA1:atcl101 + IP21DA2:atcl101
This can be combined with previous formula constructions rules like:
=IPDA1:atcl101 + (IPDA2:atcl102 - atcl103)
In this case, data source for tag atcl103 will be defined by value in Data Source column.
Download