Do you have an example of a 2-dimensional DSL Look-up table block?
Category:
Dynamic Simulation
Answer
PowerFactory offers intrinsic DSL 2-dimensional approximation functions: lapprox2 and sapprox2.
The attached project contains two DSL models for these two functions. The DSL Models are stored inside the grid and the outputs are defined as:
y = lapprox2(xl,xc,omatrix_a)
y = sapprox2(xl,xc,omatrix_a)
The matrix (omatrix_a) is defined within an external IntMat object, which must be stored inside the DSL Model (i.e., as a child object). Note that the matrix name has to match the string, following the “_”, "a" in this case.
There are additional functions for one dimensional look-up table: lapprox and sapprox. For more information refer to the User Manual.
Tags