Using Piecewise Linear Functions in Expressions
The following piecewise linear intrinsic functions are accepted in expressions:
pwl (dataset_expression, variable)
– interpolates along the X-axis and returns a corresponding Y value.pwlx (dataset_expression, variable)
– interpolates along the X-axis and returns a corresponding Y value.pwl_periodic (dataset_expression, variable)
– also interpolates along the X-axis, but periodically.
You can use pwl in an expression that uses datasets for such things as a frequency dependent material property
For example, you can specify BulkConductivity as:
pwlx($ds1, Freq)
You can create a design variable representing a dimension xSize as pwl(ds1, 1) where ds1 is a dataset.
Doing so looks like this:
After the dataset is configured, the Properties window shows the new variable.
To use datasets in reports, create a report using pwl(dataset_expression,variable) where variable is the primary sweep in the report.
For example:
pwl can be used with datasets for Design Variables but not for Project variables.