# Space vector limitation

uz_3ph_dq_t uz_FOC_SpaceVector_Limitation(uz_3ph_dq_t v_input_Volts, float V_dc_volts, float omega_el_rad_per_sec, uz_3ph_dq_t i_actual_Ampere, bool *ext_clamping)

function to limit the voltages of a give control algorithm

Parameters
• v_input_Volts – uz_dq_t struct with the voltages, which shall be limited

• i_actual_Ampere – uz_dq_t struct for measured dq-currents in Ampere

• ext_clamping – flag which states, if the SVL is active

Returns

uz_dq_t

## Example

Listing 66 Example function call for space vector limitation
1#include "uz/uz_FOC/uz_space_vector_limitation.h"
2int main(void) {
3   float V_dc_volts = 24.0f;
5   struct uz_3ph_dq_t i_actual_Ampere = {.d = 1.0f, .q = 2.0f, .zero = 0.0f};
6   struct uz_3ph_dq_t v_input_Volts = {.d = 5.0f, .q = 8.0f, .zero = 0.0f};
7   bool ext_clamping = false;
8   struct uz_3ph_dq_t output = uz_FOC_SpaceVector_Limitation(v_input_Volts, V_dc_volts, omega_el_rad_per_sec, i_actual_Ampere, &ext_clamping);
9}


## Description

Limits the input voltages according to the following flowchart. Further information can be found in 1 . This function is already included in the Field Oriented Control (FOC).

$\begin{split}V_{SV,max} &= \dfrac{V_{DC}}{\sqrt{3}} \\ V_{SV,abs} &= \sqrt{v_d^2 + v_q^2}\end{split}$ Fig. 51 space vector limitation flow chart

## Sources

1

Vector Control of Three-Phase AC Machines, Nguyen Phung Quang, Jörg-Andreas Dittrich, Springer, ISBN 978-3-662-46914-9