precision-utwente / spalight

Development of a simplifying SPACAR interface
4 stars 4 forks source link

Computing transfer function affected by modeling of warping #5

Open JasperFix opened 1 year ago

JasperFix commented 1 year ago

The computation of the transfer function of a flexure mechanism by opt.transfer seems to be affected by the modeling of warping. When warping is modeled, the A matrix yields inf or NaN entries and this causes an error.

Using the example that is on the spacar wiki site (https://www.spacar.nl/wiki/doku.php?id=parallel_flexure_guide_transfer) with modeling of warping turned on in line 50 of the code (this line is commented out on the site), Matlab shoots the following error:

Error using spacarlight A problem occurred processing simulation results. See file.log for more information.

The log file states the following error: Error: The "A" matrix must be a numeric array with no Inf's or NaN's. (the complete file is attached to this issue)

When modeling of warping is turned off, the transfer function is calculated right. file.log

Marijnn commented 1 year ago

Thanks. We need to look into that.