M_Transformer
Generic transformer with free number of inductors
Library
Electrical/Analog/Basic
Description
The model M_Transformer is a model of a transformer with the possibility to choose the number of inductors. Inside the model, an inductance matrix is built based on the inductance of the inductors and the coupling inductances between the inductors given as a parameter vector from the user of the model.
An example shows that approach:
The user chooses a model with three inductors, that means the parameter N has to be 3. Then he has to specify the inductances of the three inductors and the three coupling inductances. The coupling inductances are no real existing devices, but effects that occur between two inductors. The inductances (main diagonal of the inductance matrix) and the coupling inductances have to be specified in the parameter vector L. The length dimL of the parameter vector is calculated as follows: dimL=(N*(N+1))/2
The following example shows how the parameter vector is used to fill in the inductance matrix. To specify the inductance matrix of a three inductances transformer (N=3):
the user has to allocate the parameter vector L[6] , since Nv=(N*(N+1))/2=(3*(3+1))/2=6. The parameter vector must be filled like this: L=[1,0.1,0.2,2,0.3,3] .
Inside the model, two loops are used to fill the inductance matrix to guarantee that it is filled in a symmetric way.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_N | N | Number of inductors | Scalar | |
mo_dimL | dimL | Scalar | ||
mo_L | L | Inductances and coupling inductances | Vector | |
mo_Lm | Lm | Complete symmetric inductance matrix, calculated internally | Matrix |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_v | v | v | Structure | |
mo_v/fixed | fixed | Cell of vectors | true | |
mo_v/start | start | Cell of vectors | ||
mo_i | i | i | Structure | |
mo_i/fixed | fixed | Cell of vectors | true | |
mo_i/start | start | Cell of vectors |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
p | implicit | Positive pin | input | 1 |
n | implicit | Negative pin | output | 1 |