Lookup Table Functions

<< Click to Display Table of Contents >>

Navigation:  Model Definition > Ventity Language > Functions >

Lookup Table Functions

Previous pageReturn to chapter overviewNext page

 

List of lookup table functions

 

All of the table functions require a linked table. To link a table, simply create an auxiliary to house the function and draw a line from the table to the auxiliary, or in the arguments for the table function, write in the name for the table, right-click the underlined name and select "Draw arrow from (table name)".

 

Note: Ventity will automatically check for units mismatch in table functions and display an error message to console if one is found on model run.

 

LookupArea (table)

 

Returns area under the line of the table function.

LookupAreaByRange (table,x,time)

 

Starting at x value, returns area under the line of the table function.

 

LookupExtrapolate (table,x)

 

Calculates slope of the line, then returns expected y value for given value of x using that slope.

 

LookupForward (table,time)

 

Next y value is used between x values instead of being interpolated.

 

LookupBackward (table,time)

 

Previous y value is held between x values instead of being interpolated.

 

LookupInvert (table, time)

 

Inverts lookup for x and y values, returning y for x.

LookupSlope (table,time)

 

Returns the change in y divided by the change in x from one point to the next point.

 

LookupMaxValue (table)

 

Returns highest value of y the table.

LookupMaxValueByRange(table,x1,x2)

 

Returns highest value of y for the table between the two given x values (x1, x2).

 

LookupMinValue (table)

 

Returns the lowest value of y for the table.

LookupMinValueByRange (table,x1,x2)

 

Returns lowest value for y of the table between the two given x values (x1, x2)