Variable Capacitor
Discrete variable capacitor
Libraries:
Simscape /
Electrical /
Specialized Power Systems /
Passives
Description
The Variable Capacitor block represents a linear time-varying capacitor. It implements a discrete variable capacitor as a voltage source. The capacitance is specified by the Simulink® input signal. The capacitance value can be negative.
When you use a Variable Capacitor block in your model, set the
powergui block Simulation type to
Discrete
and select the Automatically handle
Discrete solver and Advanced tab solver settings of blocks parameter in
the Preferences tab. The robust discrete solver is used to
discretize the electrical model. Simulink signals an error if the robust discrete solver is not used.
Equations
The block uses the following equations for the relationship between the voltage, v, across the device and the current through the capacitor, i, when the capacitance at port C is C:
Ports
Input
Conserving
Parameters
Extended Capabilities
Version History
Introduced in R2019b