Main Content

Variant Physical Network Components

Implement variations in physical network

With the Variant Connector (Simscape) block, you can represent all design alternatives of a physical network in a single model. Each design choice is incorporated into the model as a variant choice. Such models have a fixed common structure and a finite set of variable components that are activated or deactivated depending on the Types of Variant Control Modes in Variant Blocks you select.

Consider an in-flight fuel imbalance scenario, where the quantity of fuel between the fuel tanks in the left and right wings of an aircraft is unequal. To maintain airplane lateral balance, you must pump the fuel so that the load between the left- and right-wing tanks is symmetrical. In this scenario, the only component required is the pump. All other power distributor components such as, Transformer & Rectifier Unit (TRU), AC lamps, and actuators can be excluded from simulation as they are not required to balance the fuel in the wings. You could set the variant control appropriately to activate the pump. You can then activate other components based on the Types of Variant Control Modes in Variant Blocks you select.

The code that you generate for the Variant Connector block contains only the active components of a system. Inactive components do not participate in code generation.


Variant ConnectorRemove or disconnect physical components from network


expandir todo

Simulink.VariantControlCreate a variant control variable object
Simulink.VariantSpecify conditions that control variant selection