주요 콘텐츠

Discrete-to-Phasor Interface

(To be removed) Connect Discrete network to Discrete Phasor network

Since R2023a

The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.

Libraries:
Simscape / Electrical / Specialized Power Systems / Utilities

Description

Use the Discrete-to-Phasor Interface block with a Phasor-to-Discrete block to connect a network simulated in Discrete mode to a network simulated in Discrete Phasor mode. The Discrete-to-Phasor Interface block must be used in a subsystem or Model Reference that has a Powergui block with Simulation type set to Discrete. The electrical network that this subsystem contains is called the Discrete Network.

An associated Discrete-to-Phasor Interface block must be used in another subsystem or Model Reference that has a Powergui block with Simulation type set to Discrete phasor. The electrical network that this subsystem contains is called the Discrete Phasor Network.

The Discrete-to-Phasor Interface block and the Phasor-to-Discrete Interface block form a decoupling device system. Each phase terminal of the Discrete-to-Phasor Interface block consists of a controlled Voltage Source block in series with a resistor and a Current Measurement block, as shown in the left section of this model:

The Discrete-to-Phasor Interface block converts the voltages measured at the A, B, and C terminals of the block into phasor voltages that are sent to the Phasor-to-Discrete Interface block. It also converts the phasor voltages received by the Phasor-to-Discrete block into discretized voltages. Because the Discrete-to-Phasor Interface block and the Phasor-to-Discrete Interface block act together to model a single decoupling system, the values specified for the resistance Rc, nominal frequency F, and sample time Ts parameters must be the same in the two blocks.

Ports

Conserving

expand all

Electrical conserving port associated with the phase A terminal of the block.

Electrical conserving port associated with the phase B terminal of the block.

Electrical conserving port associated with the phase C terminal of the block.

Simulink

expand all

Signal representing the three-phase voltage coming from the Phasor-to-Discrete Interface block. Connect this input to an Inport block of the subsystem or Model Reference containing the block.

Signal that measures the three-phase voltage at the terminals of the Discrete-to-Phasor Interface block. Connect this signal to an Outport block of the subsystem or Model Reference containing the block.

Parameters

expand all

Resistance of the decoupling equivalent model, in ohms. This value must be the same as the value of the Rc (Ohms) parameter of the associated Phasor-to-Discrete Interface block.

Nominal frequency of the system, in hertz. The block uses this value to convert the phasor and discrete signals coming into and going out of the block. The value must be same as the value of the Nominal frequency parameter of the associated Phasor-to-Discrete Interface block.

Sample time, in seconds, of the Discrete Phasor network. The block uses this value to convert the phasor and discrete signals coming into and going out of the block. This value must be the same as the value of the Sample time parameter of the Powergui block of the Discrete Phasor network.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2023a