FluxTubes.ConstantMagneticFlux
Source of constant magnetic flux This component is translated by DyadAI
This component extends from TwoPortElementary
Usage
TranslatedComponents.FluxTubes.ConstantMagneticFlux(Phi=1)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
Phi | Magnetic flux | Wb | 1 |
Connectors
port_p- (MagneticPort)port_n- (MagneticPort)
Variables
| Name | Description | Units |
|---|---|---|
V_m | Magnetic potential difference between both ports | A |
Behavior
Source
dyad
# Source of constant magnetic flux
# This component is translated by DyadAI
component ConstantMagneticFlux
extends TwoPortElementary
# Magnetic flux
parameter Phi::Dyad.MagneticFlux = 1
# Magnetic potential difference between both ports
variable V_m::Dyad.MagneticPotentialDifference
relations
V_m = port_p.V_m - port_n.V_m
Phi = port_p.Phi
0 = port_p.Phi + port_n.Phi
endFlattened Source
dyad
# Source of constant magnetic flux
# This component is translated by DyadAI
component ConstantMagneticFlux
port_p = MagneticPort()
port_n = MagneticPort()
# Magnetic flux
parameter Phi::Dyad.MagneticFlux = 1
# Magnetic potential difference between both ports
variable V_m::Dyad.MagneticPotentialDifference
relations
V_m = port_p.V_m - port_n.V_m
Phi = port_p.Phi
0 = port_p.Phi + port_n.Phi
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses