Main Content
Electrical Domain
The electrical domain declaration is shown below.
domain electrical % Electrical Domain % Copyright 2005-2013 The MathWorks, Inc. parameters Temperature = { 300.15 , 'K' }; % Circuit temperature GMIN = { 1e-12 , '1/Ohm' }; % Minimum conductance, GMIN end variables v = { 0 , 'V' }; end variables(Balancing = true) i = { 0 , 'A' }; end end
It contains the following variables and parameters:
Across variable v (voltage), in volts
Through variable i (current), in amperes
Parameter Temperature, specifying the circuit temperature
Parameter GMIN, specifying minimum conductance
To refer to this domain in your custom component declarations, use the following syntax:
foundation.electrical.electrical