# ee_calculateFluxPartialDerivatives

Calculate flux partial derivatives for FEM-Parameterized PMSM block

## Syntax

## Description

`[`

calculates the partial derivatives from flux linkage. For improved numerical
performance, the FEM-Parameterized PMSM block works with flux linkage
partial derivatives, rather than directly with flux linkage. If your finite-element
motor design tool does not have an option to output partial derivatives, then you
can use this function to calculate the partial derivatives from the flux linkage.
The flux linkage `dFdA`

,`dFdB`

,`dFdC`

,`dFdX`

]
= ee_calculateFluxPartialDerivatives(`A`

,`B`

,`C`

,`X`

,`F`

)`F`

must be a four-dimensional matrix with the
first three dimensions corresponding to the `A`

,
`B`

, and `C`

phase currents, and the
fourth dimension corresponding to the rotor angle `X`

. The
function returns four-dimensional matrices for the four partial derivatives. Use
this syntax in conjunction with the 4-D Data variant of the block.

`[`

returns two additional output arguments corresponding to
`dFdA`

,`dFdB`

,`dFdC`

,`dFdX`

,`D`

,`Q`

]
= ee_calculateFluxPartialDerivatives(`A`

,`B`

,`C`

,`X`

,`F`

)* d*-axis and

*-axis currents, respectively. In this case, the four partial derivatives are three-dimensional, the first two dimensions corresponding to the*

`q`

*-axis and*

`d`

*-axis currents, and the third dimension corresponding to the rotor angle. Use this syntax in conjunction with the 3-D Data variant of the block.*

`q`

## Examples

## Input Arguments

## Output Arguments

## Algorithms

The function calculates partial derivatives using Akima splines, the same method that is used
for `smooth`

interpolation in the Simscape™ language `tablelookup`

function. For more information,
see `makima`

. Akima splines are
suitable for estimating partial derivatives due to their smooth nature and tendency not
to introduce local gradient reversals.

## See Also

**Introduced in R2017a**