SimElectronics® Reference PDF
SimElectronics® Reference PDF
SimElectronics® Reference PDF
Reference
R2014a
How to Contact MathWorks
www.mathworks.com Web
comp.soft-sys.matlab Newsgroup
www.mathworks.com/contact_TS.html Technical Support
508-647-7000 (Phone)
508-647-7001 (Fax)
Trademarks
MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See
www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand
names may be trademarks or registered trademarks of their respective holders.
Patents
MathWorks products are protected by one or more U.S. patents. Please see
www.mathworks.com/patents for more information.
Revision History
April 2008 Online only New for Version 1.0 (Release 2008a+)
October 2008 Online only Revised for Version 1.1 (Release 2008b)
March 2009 Online only Revised for Version 1.2 (Release 2009a)
September 2009 Online only Revised for Version 1.3 (Release 2009b)
March 2010 Online only Revised for Version 1.4 (Release 2010a)
September 2010 Online only Revised for Version 1.5 (Release 2010b)
April 2011 Online only Revised for Version 1.6 (Release 2011a)
September 2011 Online only Revised for Version 2.0 (Release 2011b)
March 2012 Online only Revised for Version 2.1 (Release 2012a)
September 2012 Online only Revised for Version 2.2 (Release 2012b)
March 2013 Online only Revised for Version 2.3 (Release 2013a)
September 2013 Online only Revised for Version 2.4 (Release 2013b)
March 2014 Online only Revised for Version 2.5 (Release 2014a)
Contents
v
vi Contents
1
Library Sensors
1-2
Accelerometer
Dialog
Box and
Parameters
Output type
Select one of the following options to define the block output type:
• Voltage level — The amplitude of the output voltage is
proportional to the measured acceleration. This is the default
option.
• PWM duty cycle — The duty cycle (on time divided by the
pulse total time) is proportional to the measured acceleration.
Sensitivity
The change in output voltage level per unit change in acceleration
when the output is not being limited. This parameter is only
visible when you select Voltage level for the Output type
parameter. The default value is 1000 mV/gee.
Output voltage for zero acceleration
The output voltage from the sensor when the acceleration is zero.
This parameter is only visible when you select Voltage level for
the Output type parameter. The default value is 2.5 V.
1-3
Accelerometer
1-4
Accelerometer
PWM frequency
The frequency of the output pulse train. This parameter is only
visible when you select PWM duty cycle for the Output type
parameter. The default value is 1 kHz.
Output voltage amplitude
The amplitude of the output pulse train when high. This
parameter is only visible when you select PWM duty cycle for the
Output type parameter. The default value is 5 V.
Dynamics
Select one of the following options for modeling sensor dynamics:
• No dynamics Suitable for HIL — Do not model sensor
dynamics. Use this option when running your simulation
fixed step or generating code for hardware-in-the-loop testing,
because this avoids the need for a small simulation time step if
the sensor bandwidth is high. This is the default option.
• Model sensor bandwidth — Model sensor dynamics with a
first-order lag approximation, based on the Bandwidth and
the Initial angular rate parameter values.
Bandwidth
Specifies the 3dB bandwidth for the measured acceleration
assuming a first-order time constant. This parameter is only
visible when you select Model sensor bandwidth for the
Dynamics parameter. The default value is 3 kHz.
Initial acceleration
Determines the initial condition for the lag by specifying the
initial output for the sensor, expressed in units of acceleration.
This parameter is only visible when you select Model sensor
bandwidth for the Dynamics parameter. The default value is 0
gee.
R
Mechanical translational port
1-5
Accelerometer
+
Positive electrical port
-
Negative electrical port
1-6
Band-Limited Op-Amp
Vout =
(
A V p - Vm )−I * Rout
s out
+1
2πf
where:
• A is the gain.
• Rout is the output resistance.
• Iout is the output current.
• s is the Laplace operator.
• f is the 3-dB bandwidth.
V p - Vm
Rin
where Rin is the input resistance.
The block does not use the initial condition you specify using the Initial
output voltage, V0 parameter if you select the Start simulation from
steady state check box in the Simscape™ Solver Configuration block.
1-7
Band-Limited Op-Amp
Dialog
Box and
Parameters
Gain, A
The open-loop gain of the operational amplifier. The default value
is 1000.
Input resistance, Rin
The resistance at the input of the operational amplifier that the
block uses to calculate the input current. The default value is
1e+06 Ω.
1-8
Band-Limited Op-Amp
Note This parameter value does not account for the voltage drop
across the output resistor.
+
Positive electrical voltage
-
Negative electrical voltage
1-9
Band-Limited Op-Amp
OUT
Output voltage
1-10
CMOS AND
Library Logic
Description The CMOS AND block represents a CMOS AND logic gate behaviorally:
• The block output logic level is HIGH if the logic levels of both of the
gate inputs are 1.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-12 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-11
CMOS AND
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-12
CMOS AND
Dialog
Box and
Parameters
Inputs Tab
1-13
CMOS AND
Outputs Tab
1-14
CMOS AND
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-15
CMOS AND
A
Electrical input port
B
Electrical input port
J
Electrical output port
1-16
CMOS Buffer
Library Logic
Description The CMOS Buffer block represents a CMOS Buffer logic gate
behaviorally:
• The block output logic level is HIGH if the logic level of the gate input
is 1.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-18 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
1-17
CMOS Buffer
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
the resistor-capacitor time constant equals the Propagation delay
parameter value. For Quadratic output, the gate input demand is
lagged to approximate the Propagation delay parameter value.
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-18
CMOS Buffer
Dialog
Box and
Parameters
Inputs Tab
1-19
CMOS Buffer
Outputs Tab
1-20
CMOS Buffer
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-21
CMOS Buffer
A
Electrical input port
J
Electrical output port
1-22
CMOS NAND
Library Logic
Description The CMOS NAND block represents a CMOS NAND logic gate
behaviorally:
• The block output logic level is HIGH if the logic levels of both of the
gate inputs are 0.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-24 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
1-23
CMOS NAND
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
the resistor-capacitor time constant equals the Propagation delay
parameter value. For Quadratic output, the gate input demand is
lagged to approximate the Propagation delay parameter value.
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-24
CMOS NAND
Dialog
Box and
Parameters
Inputs Tab
1-25
CMOS NAND
Outputs Tab
1-26
CMOS NAND
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-27
CMOS NAND
A
Electrical input port
B
Electrical input port
J
Electrical output port
1-28
CMOS NOR
Library Logic
Description The CMOS NOR block represents a CMOS NOR logic gate behaviorally:
• The block output logic level is LOW if the logic levels of any of the
gate inputs are 1.
• The block output logic level is HIGH otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-30 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-29
CMOS NOR
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-30
CMOS NOR
Dialog
Box and
Parameters
Inputs Tab
1-31
CMOS NOR
Outputs Tab
1-32
CMOS NOR
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-33
CMOS NOR
A
Electrical input port
B
Electrical input port
J
Electrical output port
1-34
CMOS NOT
Library Logic
Description The CMOS NOT block represents a CMOS NOT logic gate behaviorally:
• The block output logic level is HIGH if the logic level of the gate input
is 0.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-36 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-35
CMOS NOT
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-36
CMOS NOT
Dialog
Box and
Parameters
Inputs Tab
1-37
CMOS NOT
Outputs Tab
1-38
CMOS NOT
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-39
CMOS NOT
A
Electrical input port
J
Electrical output port
1-40
CMOS OR
Library Logic
• The block output logic level is HIGH if the logic levels of any of the
gate inputs are 1.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-42 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-41
CMOS OR
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-42
CMOS OR
Dialog
Box and
Parameters
Inputs Tab
1-43
CMOS OR
Outputs Tab
1-44
CMOS OR
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-45
CMOS OR
A
Electrical input port
B
Electrical input port
J
Electrical output port
1-46
CMOS XOR
Library Logic
Description The CMOS XOR block represents a CMOS XOR logic gate behaviorally:
• The block output logic level is HIGH if the logic level of exactly one of
the gate inputs is 1.
• The block output logic level is LOW otherwise.
The block determines the logic levels of the gate inputs as follows:
• If the gate voltage is greater than the threshold voltage, the block
interprets the input as logic 1.
• Otherwise, the block interprets the input as logic 0.
Note To improve simulation speed, the block does not model all the
internal individual MOSFET devices that make up the gate. See “Basic
Assumptions and Limitations” on page 1-48 for details.
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-47
CMOS XOR
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The block does not accurately model the gate’s response to input
noise and inputs that are around the logic threshold voltage.
• The block does not accurately model dynamic response.
Circuits that involve a feedback path around a set of logic gates may
require a nonzero propagation delay to be set on one or more gates.
1-48
CMOS XOR
Dialog
Box and
Parameters
Inputs Tab
1-49
CMOS XOR
Outputs Tab
1-50
CMOS XOR
is available when you select the Quadratic option for the Output
current-voltage relationship parameter.
Logic HIGH output resistance at zero current and at I_OH
A row vector [ R_OH1 R_OH2 ] of two resistance values. The
first value R_OH1 is the gradient of the output voltage-current
relationship when the gate is logic HIGH and there is no output
current. The second value R_OH2 is the gradient of the output
voltage-current relationship when the gate is logic HIGH and the
output current is I_OH. The default value is [ 25 250 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic HIGH output current I_OH when shorted to ground
The resulting current when the gate is in the logic HIGH state,
but the load forces the output voltage to zero. The default value is
63 mA. This parameter is available when you select the Quadratic
option for the Output current-voltage relationship parameter.
Logic LOW output resistance at zero current and at I_OL
A row vector [ R_OL1 R_OL2 ] of two resistance values. The
first value R_OL1 is the gradient of the output voltage-current
relationship when the gate is logic LOW and there is no output
current. The second value R_OL2 is the gradient of the output
voltage-current relationship when the gate is logic LOW and the
output current is I_OL. The default value is [ 30 800 ] Ω. This
parameter is available when you select the Quadratic option for
the Output current-voltage relationship parameter.
Logic LOW output current I_OL when shorted to Vcc
The resulting current when the gate is in the logic LOW state,
but the load forces the output voltage to the supply voltage Vcc.
The default value is -45 mA. This parameter is available when
you select the Quadratic option for the Output current-voltage
relationship parameter.
Propagation delay
Time it takes for the output to swing from LOW to HIGH or HIGH to
LOW after the input logic levels change. The default value is 25 ns.
1-51
CMOS XOR
A
Electrical input port
B
Electrical input port
J
Electrical output port
1-52
Comparator
1-53
Comparator
1-54
Comparator
Dialog
Box and
Parameters
Inputs Tab
Outputs Tab
1-55
Comparator
+
Positive electrical input port
-
Negative electrical input port
OUT
Electrical output port
1-56
Controlled PWM Voltage
Library Drivers
Vref − Vmin
100 * percent
Vmax − Vmin
where:
1-57
Controlled PWM Voltage
1-58
Controlled PWM Voltage
1-59
Controlled PWM Voltage
Dialog
Box and
Parameters
PWM frequency
Frequency of the PWM output signal. The default value is 1000
Hz.
Pulse delay time
The pulse train does not start until the simulation time is equal to
the Pulse delay time. You can specify a small value for Pulse
delay time to fine-tune switching times and ensure that an
off-going device is fully off before the on-going device starts to
turn on. You can also use larger delay times, for example, if you
need the pulse train to start only after a number of cycles. The
value you provide must be greater than or equal to zero. This
1-60
Controlled PWM Voltage
parameter is only visible when you select PWM for the Simulation
mode parameter. The default value is 0 s.
Pulse width offset
The demanded pulse width as defined by the product of the
demanded duty cycle and one over the pulse frequency can be
offset by the value you provide for Pulse width offset. A positive
value acts to lengthen the pulse by a fixed amount. A negative
value acts to shorten the pulse. You can use this parameter, along
with the Pulse delay time, to fine-tune switching times so as
to minimize switching losses in some circuits. This parameter
is only visible when you select PWM for the Simulation mode
parameter. The default value is 0 s.
Input value Vmin for 0% duty cycle
Value of the input voltage at which the PWM signal has a 0% duty
cycle. The default value is 0 V.
Input value Vmax for 100% duty cycle
Value of the input voltage at which the PWM signal has a 100%
duty cycle. The default value is 5 V.
Output voltage amplitude
Amplitude of the PWM signal when the output is high. The
default value is 5 V.
Simulation mode
The type of output voltage can be PWM or Averaged. The default
mode, PWM, produces a pulse-width modulated signal. In Averaged
mode, the output is a constant whose value is equal to the average
value of the PWM signal.
Switching event type
This parameter is only visible when you select PWM for the
Simulation mode parameter. Select the switching event type
when moving between output high and output low states:
• Asynchronous Best for variable-step solvers —
This option is more efficient for desktop simulation with
1-61
Controlled PWM Voltage
+ref
Positive electrical reference voltage
-ref
Negative electrical reference voltage
PWM
Pulse-width modulated signal
REF
Floating zero volt reference
Examples See the Linear Electrical Actuator (System-Level Model) and Linear
Electrical Actuator (Implementation Model) examples.
1-62
Crystal
C0
C1 L1 R1
You specify the equivalent circuit parameters for this model when
you set the Parameterization parameter to Equivalent circuit
parameters.
1-63
Crystal
1
fs =
2 L1C1
Where fs is the Series resonance, fs parameter value.
• When you set the Parameterization parameter to Parallel
resonance data, the block uses the following relationship to
calculate L1 from the parallel resonant frequency:
1
fa =
2 L1C1 ( C0 + CL ) /(C1 + C0 + CL )
Where:
- fa is the Parallel resonance, fa parameter value.
- CL is the Load capacitance, CL parameter value.
2 fL1
Q=
R1
Where Q is the Quality factor, Q parameter value.
1-64
Crystal
Basic The Crystal block models only the fundamental crystal vibration mode.
Assumptions
and
Limitations
Dialog
Box and
Parameters
Parameterization
Select one of the following methods for block parameterization:
• Series resonance data — Provide series resonant frequency
and capacitance data for the crystal. This method is the default.
• Parallel resonance data — Provide parallel resonant
frequency and capacitance data for the crystal.
• Equivalent circuit parameters — Provide electrical
parameters for an equivalent circuit model of the crystal.
1-65
Crystal
Series resonance, fs
Crystal series resonant frequency. This parameter is only
visible when you select Series resonance data for the
Parameterization parameter. The default value is 32.764 kHz.
Parallel resonance, fa
Crystal parallel resonant frequency that corresponds to
operating with a parallel load capacitance specified by the Load
capacitance, CL parameter. This parameter is only visible when
you select Parallel resonance data for the Parameterization
parameter. The default value is 32.768 kHz.
Motional inductance, L1
Inductance that represents the mechanical mass of the crystal.
This parameter is only visible when you select Equivalent
circuit parameters for the Parameterization parameter. The
default value is 6.742e+03 H.
R1 parameterization
Select one of the following methods for series resistance
parameterization:
• Equivalent series resistance R1 — Provide the resistance
value directly. This is the default method.
• Quality factor Q — Provide the quality factor that the block
uses to calculate the resistance value.
This parameter is only visible when you select Series resonance
data or Parallel resonance data for the Parameterization
parameter.
Quality factor, Q
Crystal quality factor. This parameter is only visible when you
make one of the following selections:
• Series resonance data for the Parameterization parameter
and Quality factor Q for the R1 parameterization
parameter
1-66
Crystal
1-67
Crystal
+
Positive electrical port
-
Negative electrical port
1-68
Current-Controlled Switch
1-69
Current-Controlled Switch
Dialog
Box and
Parameters
Threshold current, IT
The current above which the block interprets the controlling
current as HIGH. The default value is 0 A.
Hysteresis current, IH
The amount by which the controlling current must exceed or fall
below the Threshold current, IT parameter value to change the
state of the switch. The default value is 0 A.
1-70
Current-Controlled Switch
On resistance, RON
The resistance of the switch when it is closed. The default value
is 1 Ω.
Off resistance, ROFF
The resistance of the switch when it is open. The default value
is 1e+12 Ω.
Initial switch state
Select one of the following options for the state of the switch at
the start of the simulation:
• On — The switch is initially closed and its resistance value is
equal to the On resistance, RON parameter value. This is
the default option.
• Off — The switch is initially open and its resistance value is
equal to the Off resistance, ROFF parameter value.
+
Positive electrical input and output ports.
-
Negative electrical input and output ports.
1-71
Current Source
Purpose Simulate current source with DC, AC, and noise components
Library Sources
Description The Current Source block implements a current source with DC, AC,
and noise components. The current flowing through the source from the
– terminal to the + terminal is given by:
where:
N 0, 1
iN Pi 2
h
where:
1-72
Current Source
Noise Options
The block generates Gaussian noise by using the Random Number
source in the Simscape Foundation library. You can control the random
number seed by setting the Repeatability parameter:
• Not repeatable — Every time you simulate your model, the block
resets the random seed using the MATLAB® random number
generator:
seed = randi(2^32-1);
Basic Simulating with noise enabled slows down simulation. Choose the
Assumptions sample time (h) so that noise is generated only at frequencies of interest,
and and not higher.
Limitations
1-73
Current Source
Dialog
Box and
Parameters
DC current
The DC component of the output current. The default value is 0
A. Enter a nonzero value to add a DC component to the current
source.
AC current peak amplitude
Amplitude of the AC component of the output current. The default
value is 0 A. Enter a nonzero value to add an AC component to
the current source.
AC current phase shift
Phase offset of the AC component of the output current. The
default value is 0 degrees.
AC current frequency
Frequency of the AC component of the output current. The default
value is 60 Hz.
1-74
Current Source
Noise Tab
Noise mode
Select the noise option:
• Disabled — No noise is produced by the current source. This
is the default.
• Enabled — The current source generates thermal noise, and
the associated parameters become visible on the Noise tab.
Power spectral density
The single-sided spectrum noise power. Strictly-speaking, this is a
density function for the square of the current, commonly thought
of as a power into a 1 ohm load, and therefore units are A^2/Hz.
To avoid this unit ambiguity, some datasheets quote noise current
as a noise density with units of A/√Hz. In this case, you should
enter the square of the noise density quoted in the datasheet as
the parameter value. The default value is 0 A^2/Hz.
Sample time
Defines the rate at which the noise source is sampled. Choose
it to reflect the frequencies of interest in your model. Making
the sample time too small will unnecessarily slow down your
simulation. The default value is 1e-3 s.
Repeatability
Select the noise control option:
• Not repeatable — The random sequence used for noise
generation is not repeatable. This is the default.
• Repeatable — The random sequence used for noise generation
is repeatable, with a system-generated seed.
• Specify seed — The random sequence used for noise
generation is repeatable, and you control the seed by using the
Seed parameter.
1-75
Current Source
Seed
Random number seed used by the noise random number
generator. This parameter is visible only if you select Specify
seed for the Repeatability parameter. The default value is 0.
+
Positive electrical port
-
Negative electrical port
1-76
DC Current Source
Dialog
Box and
Parameters
Constant value, DC
The value of the DC output current. The default value is 0 A.
1-77
DC Current Source
+
Positive electrical voltage.
-
Negative electrical voltage.
1-78
DC Motor
Description The DC Motor block represents the electrical and torque characteristics
of a DC motor using the following equivalent circuit model:
L R i
+
vb V
−
You specify the equivalent circuit parameters for this model when
you set the Model parameterization parameter to By equivalent
circuit parameters. The resistor R corresponds to the resistance
you specify in the Armature resistance parameter. The inductor L
corresponds to the inductance you specify in the Armature inductance
parameter. The permanent magnets in the motor induce the following
back emf vb in the armature:
vb = kv
where kv is the Back-emf constant and ω is the angular velocity.
The motor produces the following torque, which is proportional to the
motor current i:
TE kt i
where kt is the Torque constant. The DC Motor block assumes that
there are no electromagnetic losses. This means that mechanical power
is equal to the electrical power dissipated by the back emf in the
armature. Equating these two terms gives:
1-79
DC Motor
TE vbi
kt i kvi
k v kt
As a result, you specify either kv or kt in the block dialog box.
The torque-speed characteristic for the DC Motor block is related to
the parameters in the preceding figure. When you set the Model
parameterization parameter to By stall torque & no-load speed
or By rated power, rated speed & no-load speed, the block solves
for the equivalent circuit parameters as follows:
V − vb V − kv
i= =
R R
kt
TE V kv
R
1-80
DC Motor
The block models motor inertia J and damping λ for all values of the
Model parameterization parameter. The resulting torque across
the block is:
kt
T V kv J
R
It is not always possible to measure rotor damping, and rotor damping
is not always provided on a manufacturer datasheet. An alternative is
to use the no-load current to infer a value for rotor damping.
For no-load, the electrically-generated mechanical torque must equal
the rotor damping torque:
kt inoload noload
where inoload is the no-load current. If you select By no-load current
for the Rotor damping parameterization parameter, then this
equation is used in addition to the torque-speed equation to determine
values for λ and the other equation coefficients.
The value for rotor damping, whether specified directly or in terms of
no-load current, is taken into account when determining equivalent
circuit parameters for Model parameterization options By stall
torque and no-load speed and By rated power, rated speed and
no-load speed.
When a positive current flows from the electrical + to - ports, a positive
torque acts from the mechanical C to R ports.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
1-81
DC Motor
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
Dialog
Box and
Parameters
Model parameterization
Select one of the following methods for block parameterization:
1-82
DC Motor
1-83
DC Motor
Torque constant
The ratio of the torque generated by the motor to the current
delivered to it. This parameter is only visible when you select
Specify torque constant for the Define back-emf or torque
constant parameter. The default value is 6.876e-04 N*m/A.
Stall torque
The amount of torque generated by the motor when the speed
is approximately zero. This parameter is only visible when
you select By stall torque & no-load speed for the Model
parameterization parameter. The default value is 2.4e-04
N*m.
No-load speed
Speed of the motor when not driving a load. This parameter
is only visible when you select By stall torque & no-load
speed or By rated power, rated speed & no-load speed for
the Model parameterization parameter. The default value is
1.91e+04 rpm.
Rated speed (at rated load)
Motor speed at the rated mechanical power level. This parameter
is only visible when you select By rated power, rated speed
& no-load speed for the Model parameterization parameter.
The default value is 1.5e+04 rpm.
Rated load (mechanical power)
The mechanical power the motor is designed to deliver at the
rated speed. This parameter is only visible when you select By
rated power, rated speed & no-load speed for the Model
parameterization parameter. The default value is 0.08 W.
Rated DC supply voltage
The voltage at which the motor is rated to operate. This
parameter is only visible when you select By stall torque &
no-load speed or By rated power, rated speed & no-load
speed for the Model parameterization parameter. The default
value is 1.5 V.
1-84
DC Motor
Mechanical Tab
Rotor inertia
Resistance of the rotor to change in motor motion. The default
value is 0.01 g*cm2. The value can be zero.
Rotor damping
Energy dissipated by the rotor. This parameter is only visible
when you select By damping value for the Rotor damping
parameterization parameter on the Electrical tab. The default
value is 1e-08 N*m/(rad/s). The value can be zero.
1-85
DC Motor
+
Positive electrical input
-
Negative electrical input
C
Mechanical rotational conserving port
R
Mechanical rotational conserving port
1-86
DC Voltage Source
Description The DC Voltage Source block represents a constant voltage source whose
output voltage value is independent of the current through the source.
Dialog
Box and
Parameters
Constant value, DC
The value of the DC output voltage. The default value is 0 V.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-87
DC-DC Converter
Library Sources
1-88
DC-DC Converter
where:
• vref is the load side voltage set point, as defined by the value you
specify for the Output voltage reference demand parameter.
• D is the value you specify for the Output voltage droop with
output current parameter. Having a separate value for droop
makes control of how output voltage varies with load independent
of load-dependent losses.
1-89
DC-DC Converter
Dialog
Box and
Parameters
1-90
DC-DC Converter
Main Tab
Losses Tab
1-91
DC-DC Converter
Dynamics Tab
Dynamics
Specify whether to include voltage regulation dynamics:
• No dynamics — Do not consider the voltage regulation
dynamics. This is the default option.
• Specify voltage regulation time constant — Add a
first-order lag to the equation defining the voltage source value.
With the dynamics enabled, a step change in load results in a
transient change in output voltage.
Voltage regulation time constant
The time constant associated with voltage transients when the
load current is stepped. This parameter is only visible when you
select Specify voltage regulation time constant for the
Dynamics parameter. The default value is 0.02 s.
Initial output voltage demand
This is the value of vref at time zero. Normally, vref is defined by
the Output voltage reference demand parameter. However,
if you want to initialize the model with no transients when
delivering a steady-state load current, you can set the initial vref
value by using this parameter, and increase it accordingly to
take account of output resistance and droop. This parameter is
only visible when you select Specify voltage regulation time
constant for the Dynamics parameter. The default value is 10 V.
Ports The block has four electrical conserving ports. Polarity is indicated
by the + and - signs.
1-92
Diode
Description The Diode block represents one of the following types of diodes:
Piecewise Linear
The piecewise linear diode model is the same model found in the
Simscape Diode block, with the addition of a fixed junction capacitance.
If the diode forward voltage exceeds the value specified in the Forward
voltage parameter, the diode behaves as a linear resistor with the
resistance specified in the On resistance parameter. Otherwise, the
diode behaves as a linear resistor with the small conductance specified
in the Off conductance parameter. Zero voltage across the diode
results in zero current flowing.
1-93
Diode
Exponential
The exponential diode model provides the following relationship
between the diode current I and the diode voltage V:
qV
I IS e NkTm1 1 V BV
q(V Vz) qV
I IS e kTm1
e NkTm1 V BV
where:
qV
When (qV / NkTm1) > 80, the block replaces e NkTm1with (qV / NkTm1 –
79)e80, which matches the gradient of the diode current at (qV / NkTm1)
= 80 and extrapolates linearly. When (qV / NkTm1) < –79, the block
qV
replaces e NkTm1 with (qV / NkTm1 + 80)e–79, which also matches the
gradient and extrapolates linearly. Typical electrical circuits do not
reach these extreme values. The block provides this linear extrapolation
to help convergence when solving for the constraints during simulation.
When you select Use parameters IS and N for the Parameterization
parameter, you specify the diode in terms of the Saturation current
1-94
Diode
• Vt = kTm1 / q.
• V1 and V2 are the values in the Voltages [V1 V2] vector.
• I1 and I2 are the values in the Currents [I1 I2] vector.
When you select Use an I-V data point and IS for the
Parameterization parameter, then the block calculates N as follows:
⎛ ⎛I ⎞⎞
N = V1 / ⎜ Vt log ⎜ 1 + 1 ⎟ ⎟
⎝ ⎝ IS ⎠⎠
When you select Use an I-V data point and N for the
Parameterization parameter, then the block calculates IS as follows:
(
IS = I1 / exp ( V1 / ( NVt ) − 1) )
The exponential diode model provides the option to include a junction
capacitance:
1-95
Diode
1-96
Diode
• For V ≥ FC·VJ:
Q j CJ 0 F1 (CJ 0 / F2 ) ( F3 (V FC VJ ) 0.5( M / VJ ) (V 2 ( FC VJ ) 2
where:
• F1 (VJ / (1 M )) (1 (1 FC )1 M ))
• F2 (1 FC )1 M ))
• F3 1 FC (1 M )
These equations are the same as used in [2], except that the temperature
dependence of VJ and FC is not modeled. This model does not include
the diffusion capacitance term that affects performance for high
frequency switching applications.
Modeling Charge
For applications such as commutation diodes it can be important to
model diode charge dynamics. When a forward-biased diode has a
reverse voltage applied across it, it takes time for the charge to dissipate
and hence for the diode to turn off. The time taken for the diode to
turn off is captured primarily by the transit time parameter. Once the
diode is off, any remaining charge then dissipates, the rate at which this
happens being determined by the carrier lifetime.
The Diode block uses the model of Lauritzen and Ma [3] to capture
these effects. The three defining equations are:
qE qM
I
TT
1-97
Diode
dqM qM qE qM
0
dt TT
V
qE TT IS exp 1
N Vt
where:
1-98
Diode
The value of the series resistor and applied voltage value determine the
initial current IF. The value of the series inductance and the applied
reverse voltage value determine the current gradient, a.
The precise values of peak reverse current and reverse recovery time
depend on the test circuit used. Also, junction capacitance has some
effect on the current recovery characteristic. However, a junction
capacitor value that dominates the response is physically unrealistic.
Only the exponential diode supports modeling of the diode charge
dynamics. If you select the Exponential for the Diode model
parameter, then the Capacitance tab contains an additional parameter
called Charge dynamics. Select between the three options:
1-99
Diode
EG
ISTs ISTm1 (Ts / Tm1 ) XTI / N exp (1 Ts / Tm1 )
NkTs
where:
1-100
Diode
Appropriate values for XTI and EG depend on the type of diode and the
semiconductor material used. Default values for particular material
types and diode types capture approximate behavior with temperature.
The block provides default values for common types of diode.
In practice, the values of XTI and EG need tuning to model the exact
behavior of a particular diode. Some manufacturers quote these tuned
values in a SPICE Netlist, and you can read off the appropriate values.
Otherwise you can determine improved estimates for EG by using a
datasheet-defined current-voltage data point at a higher temperature.
The block provides a parameterization option for this. It also gives the
option of specifying the saturation current at a higher temperature
ISTm2 directly.
You can also tune the values of XTI and EG yourself, to match
lab data for your particular device. You can use Simulink® Design
Optimization™ software to help tune the values for XTI and EG.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
1-101
Diode
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-102
Diode
Dialog
Box and
Parameters
Main Tab
Diode model
Select one of the following diode models:
1-103
Diode
1-104
Diode
1-105
Diode
Zener resistance Rz
The resistance of the diode when the voltage is less than the
Reverse breakdown voltage Vz value. This parameter is only
visible when you select Piecewise Linear Zener for the Diode
model parameter. The default value is 0.3 Ω.
Reverse breakdown voltage Vz
The reverse voltage below which the diode resistance changes to
the Zener resistance Rz value. This parameter is only visible
when you select Piecewise Linear Zener for the Diode model
parameter. The default value is 50 V.
1-106
Diode
Ohmic resistance RS
The series diode connection resistance. This parameter is only
visible when you select Exponential for the Diode model
parameter. The default value is 0.01 Ω.
Capacitance Tab
Junction capacitance
• When you select Piecewise Linear (Foundation Library)
or Piecewise Linear Zener for the Diode model parameter,
the Junction capacitance parameter is the fixed junction
capacitance value. The default value is 5 pF.
• When you select Exponential for the Diode model parameter,
the Junction capacitance parameter lets you select one of
the following options for modeling the junction capacitance:
— Include fixed or zero junction capacitance — Model
the junction capacitance as a fixed value.
— Use C-V curve data points — Specify measured data at
three points on the diode C-V curve.
— Use parameters CJ0, VJ, M & FC — Specify zero-bias
junction capacitance, junction potential, grading coefficient,
and forward-bias depletion capacitance coefficient.
Zero-bias junction capacitance CJ0
The value of the capacitance placed in parallel with the
exponential diode term. This parameter is only visible when you
select Exponential for the Diode model parameter and Include
1-107
Diode
1-108
Diode
Charge model
Select one of the following methods for charge dynamics
parameterization:
• Do not model charge dynamics — Do not include charge
dynamics modeling. This is the default method.
• Use peak reverse current and reverse recovery time —
Model charge dynamics by providing values for peak reverse
current, Irrm, and reverse recovery time, trr, plus information
on the initial forward current and rate of change of current
used in the test circuit when measuring Irrm and trr. Use this
option if the manufacturer datasheet does not provide values
for transit time, TT, and carrier lifetime, τ.
• Use transit time and carrier lifetime — Model charge
dynamics by providing values for transit time, TT, and carrier
lifetime, τ.
Peak reverse current, Irrm
The peak reverse current measured in a test circuit. This
parameter is only visible when you select Exponential for the
Diode model parameter and Use peak reverse current and
reverse recovery time for the Charge model parameter. The
default value is 7.15 A.
Starting forward current when measuring Irrm
The initial forward current when measuring peak reverse current.
This parameter is only visible when you select Exponential for
the Diode model parameter and Use peak reverse current
and reverse recovery time for the Charge model parameter.
The default value is 4 A.
Rate of change of current when measuring Irrm
The rate of change of current when measuring peak reverse
current. This parameter is only visible when you select
Exponential for the Diode model parameter and Use peak
reverse current and reverse recovery time for the Charge
model parameter. The default value is -750 A/us.
1-109
Diode
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Use an I-V data point at second measurement
temperature — If you select this option, you specify a second
measurement temperature Tm2, and the current and voltage
1-110
Diode
1-111
Diode
1-112
Diode
+
Electrical conserving port associated with the diode positive
terminal
-
Electrical conserving port associated with the diode negative
terminal
References [1] MH. Ahmed and P.J. Spreadbury. Analogue and digital electronics
for engineers. 2nd Edition, Cambridge University Press, 1984.
1-113
Diode
[3] Lauritzen, P.O. and C.L. Ma. “A Simple Diode Model with Reverse
Recovery.” IEEE® Transactions on Power Electronics. Vol. 6, No. 2,
April 1991.
1-114
DPDT Switch
1-115
DPDT Switch
Dialog
Box and
Parameters
Main Tab
Closed resistance
Resistance between the c and s electrical ports when the switch is
closed. The value must be greater than zero. The default value
is 0.01 Ω.
Open conductance
Conductance between the c and s electrical ports when the switch
is open. The value must be greater than zero. The default value
is 1e-6 S.
Threshold
The threshold voltage for the control physical signal input vT
above which the switch will turn on. The default value is 0 V.
Dynamics Tab
Model dynamics
Select whether the block models a switching delay:
1-116
DPDT Switch
vT
Physical signal that opens and closes the switch
c1, c2, s11, s12, s21, s22
Electrical conserving ports
1-117
DPST Switch
Dialog
Box and
Parameters
1-118
DPST Switch
Main Tab
Closed resistance
Resistance between the c and s electrical ports when the switch is
closed. The value must be greater than zero. The default value
is 0.01 Ω.
Open conductance
Conductance between the c and s electrical ports when the switch
is open. The value must be greater than zero. The default value
is 1e-6 S.
Threshold
The threshold voltage for the control physical signal input vT
above which the switch will turn on. The default value is 0 V.
Dynamics Tab
Model dynamics
Select whether the block models a switching delay:
• No dynamics — Do not model the delay. This is the default
option.
• Model turn-on and turn-off times — Use additional
parameters to model a delay between the point at which the
voltage at vT passes the threshold and the switch opening or
closing.
Turn-on delay
Time between the input voltage exceeding the threshold voltage
and the switch closing. This parameter is only visible when
you select Model turn-on and turn-off times for the Model
dynamics parameter. The value must be greater than zero. The
default value is 1e-3 seconds.
Turn-off delay
Time between the input voltage falling below the threshold
voltage and the switch opening. This parameter is only visible
when you select Model turn-on and turn-off times for the
1-119
DPST Switch
vT
Physical signal that opens and closes the switch
c1, c2, s1, s2
Electrical conserving ports
1-120
Exponential Current Source
1-121
Exponential Current Source
Dialog
Box and
Parameters
Initial value, I1
The value of the output current at time zero. The default value
is 0 A.
1-122
Exponential Current Source
Pulse value, I2
The asymptotic value of the output current when the output is
high. The default value is 0 A.
Rise delay time, TDR
The rise time delay. The default value is 0 s.
Rise time, TR
The time it takes the output current to rise from the Initial
Value, I1 value to the Pulse Value, I2 value. The default value
is 1e-09 s. The value must be greater than 0.
Fall delay time, TDR
The fall time delay. The default value is 0 s, which differs from
the SPICE default value.
Fall time, TF
The time it takes the output current to fall from the Pulse value,
I2 value to the Initial value, I1 value. The default value is 1e-09
s. The value must be greater than 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-123
Exponential Voltage Source
1-124
Exponential Voltage Source
Dialog
Box and
Parameters
Initial value, V1
The value of the output voltage at time zero. The default value
is 0 V.
Pulse value, V2
The asymptotic value of the output voltage when the output is
high. The default value is 0 V.
1-125
Exponential Voltage Source
+
Positive electrical voltage.
-
Negative electrical voltage.
1-126
FEM-Parameterized Linear Actuator
Description
di ⎛ ∂Φ dx ⎞ ∂Φ
= ⎜ v − iR − ⎟/
dt ⎝ ∂x dt ⎠ ∂i
d
v = iR + Φ ( x, i )
dt
1-127
FEM-Parameterized Linear Actuator
In both cases, you specify the force as a function of current and position.
If the finite element package does not provide force, then you can
calculate it from the flux using the following equation:
∂Φ ( x, i )
i
F= ∫ ∂x
di
0
To model a linear motor with a repeated flux pattern, set the Flux
dependence on displacement parameter to Cyclic. When selecting
this option, the force and flux (or force and flux partial derivatives
depending on the option chosen) must have identical first and last
columns.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
1-128
FEM-Parameterized Linear Actuator
1-129
FEM-Parameterized Linear Actuator
Dialog
Box and
Parameters
Electrical model
Select one of the following parameterization options, based on
the underlying electrical model:
1-130
FEM-Parameterized Linear Actuator
1-131
FEM-Parameterized Linear Actuator
[ 0 0 0 0 0;
-11.94 -10.57 -9.19 -7.81 -6.43;
-21.17 -19.92 -18.67 -17.42 -16.16;
-27.99 -26.87 -25.75 -24.62 -23.5;
-32.42 -31.43 -30.43 -29.43 -28.44;
-34.46 -33.59 -32.72 -31.85 -30.98;
-34.09 -33.35 -32.61 -31.87 -31.12;
-31.33 -30.72 -30.1 -29.49 -28.87;
-26.17 -25.68 -25.2 -24.71 -24.22;
-18.62 -18.26 -17.9 -17.54 -17.18;
-8.66 -8.43 -8.2 -7.97 -7.73 ]
[ 0 0 0 0 0;
0.0085 0.0079 0.0075 0.0071 0.0067;
0.0171 0.016 0.0151 0.0143 0.0137;
0.0254 0.0239 0.0226 0.0215 0.0206;
0.033 0.0312 0.0297 0.0283 0.0271;
0.0396 0.0377 0.036 0.0345 0.0331;
0.0452 0.0433 0.0415 0.0399 0.0384;
0.0495 0.0478 0.0461 0.0446 0.0431;
0.0526 0.0512 0.0498 0.0485 0.0472;
0.0545 0.0537 0.0528 0.0519 0.0508;
0.0554 0.0553 0.0551 0.0548 0.0542 ]
1-132
FEM-Parameterized Linear Actuator
[ 0 0 0 0 0;
-0.6 -0.5 -0.4 -0.3 -0.3;
-2.3 -2 -1.7 -1.4 -1.2;
-4.9 -4.3 -3.7 -3.2 -2.7;
-8.3 -7.3 -6.4 -5.5 -4.7;
-12.2 -10.7 -9.4 -8.2 -7.2;
-16.2 -14.4 -12.7 -11.3 -10;
-20 -17.9 -15.9 -14.3 -12.9;
-23.3 -20.9 -18.8 -17.1 -15.7;
-25.7 -23.1 -21.1 -19.4 -18.2;
-26.5 -24.1 -22.2 -20.9 -20.1 ]
1-133
FEM-Parameterized Linear Actuator
Extrapolation method
Select one of the following extrapolation methods for determining
the output value when the input value is outside the range
specified in the argument list:
• From last 2 points — Extrapolates using the linear method
(regardless of the interpolation method specified), based on
the last two output values at the appropriate end of the range.
That is, the block uses the first and second specified output
values if the input value is below the specified range, and the
two last specified output values if the input value is above the
specified range.
• From last point — Uses the last specified output value at the
appropriate end of the range. That is, the block uses the last
specified output value for all input values greater than the last
specified input argument, and the first specified output value
for all input values less than the first specified input argument.
Mechanical Tab
Damping
Linear damping. The default value is 1 N/(m/s). The value can
be zero.
Plunger mass
Mass of the moving part, which corresponds to mechanical
translational port R. The default value is 0.05 kg. The value can
be zero.
1-134
FEM-Parameterized Linear Actuator
Minimum stroke
The stroke at which the lower mechanical end stop is applied. The
default value is 0. The value can be -Inf.
Maximum stroke
The stroke at which the upper mechanical end stop is applied.
The default value is 0.2 mm. The value can be Inf.
Initial plunger position
Position of the plunger at the start of the simulation. The default
value is 0 mm.
Initial plunger velocity
Speed of the plunger at the start of the simulation. The default
value is 0 mm/s.
Contact stiffness
Contact stiffness between plunger and end stops. The default
value is 1e8 N/m.
Contact damping
Contact damping between plunger and end stops. The default
value is 1e4 N/(m/s).
+
Positive electrical conserving port
-
Negative electrical conserving port
C
Mechanical translational conserving port connected to the
actuator case
R
Mechanical translational conserving port connected to the plunger
Examples The Finite Element Parameterized Solenoid example illustrates the use
and parameterization options of this block.
1-135
FEM-Parameterized Linear Actuator
1-136
FEM-Parameterized Rotary Actuator
Description
di ⎛ ∂Φ dθ ⎞ ∂Φ
= ⎜ v − iR − ⎟/
dt ⎝ ∂θ dt ⎠ ∂i
d
v = iR + Φ ( θ, i )
dt
1-137
FEM-Parameterized Rotary Actuator
In both cases, you specify the torque as a function of current and rotor
angle. If the finite element package does not provide torque, then you
can calculate it from the flux using the following equation:
∂Φ ( θ, i )
i
T= ∫ ∂θ
di
0
See the Finite Element Parameterized Solenoid example model and its
initialization file elec_fem_solenoid_ini.m for an example of how to
implement this type of integration in MATLAB.
You can define Φ and its partial derivatives for just positive, or positive
and negative currents. If defining for just positive currents, then the
block assumes that Φ(–i,x) = –Φ(i,x). Therefore, if the current vector
is positive only:
To model a rotary motor with a repeated flux pattern, set the Flux
dependence on displacement parameter to Cyclic. When selecting
this option, the torque and flux (or torque and flux partial derivatives
depending on the option chosen) must have identical first and last
columns.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
1-138
FEM-Parameterized Rotary Actuator
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
1-139
FEM-Parameterized Rotary Actuator
Dialog
Box and
Parameters
Electrical model
Select one of the following parameterization options, based on
the underlying electrical model:
• Define in terms of dPhi(i,theta)/dtheta and
dPhi(i,theta)/di — Define the current through the block in
1-140
FEM-Parameterized Rotary Actuator
[ 0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002;
0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002;
0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002;
0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002;
0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002;
0.002 0.0024 0.0035 0.0052 0.0074 0.0096 0.0118 0.0135 0.0146 ...
0.015 0.0146 0.0135 0.0118 0.0096 0.0074 0.0052 0.0035 0.0024 0.002; ]
1-141
FEM-Parameterized Rotary Actuator
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
0 9e-4 0.0017 0.0023 0.0026 0.0026 0.0023 0.0017 9e-4 ...
0 -9e-4 -0.0017 -0.0023 -0.0026 -0.0026 -0.0023 -0.0017 -9e-4 0;
0 0.0018 0.0033 0.0045 0.0051 0.0051 0.0045 0.0033 0.0018 ...
0 -0.0018 -0.0033 -0.0045 -0.0051 -0.0051 -0.0045 -0.0033 -0.0018 0;
0 0.0027 0.005 0.0068 0.0077 0.0077 0.0068 0.005 0.0027 ...
0 -0.0027 -0.005 -0.0068 -0.0077 -0.0077 -0.0068 -0.005 -0.0027 0;
0 0.0036 0.0067 0.009 0.0102 0.0102 0.009 0.0067 0.0036 ...
0 -0.0036 -0.0067 -0.009 -0.0102 -0.0102 -0.009 -0.0067 -0.0036 0;
0 0.0044 0.0084 0.0113 0.0128 0.0128 0.0113 0.0084 0.0044 ...
0 -0.0044 -0.0084 -0.0113 -0.0128 -0.0128 -0.0113 -0.0084 -0.0044 0 ]
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
4e-4 4.8e-4 7e-4 0.00105 0.00147 0.00193 0.00235 0.0027 0.00292 ...
0.003 0.00292 0.0027 0.00235 0.00193 0.00147 0.00105 7e-4 4.8e-4 4e-4;
8e-4 9.6e-4 0.00141 0.0021 0.00295 0.00385 0.0047 0.00539 0.00584 ...
0.006 0.00584 0.00539 0.0047 0.00385 0.00295 0.0021 0.00141 9.6e-4 8e-4;
0.0012 0.00144 0.00211 0.00315 0.00442 0.00578 0.00705 0.00809 0.00876 ...
0.009 0.00876 0.00809 0.00705 0.00578 0.00442 0.00315 0.00211 0.00144 0.0012;
0.0016 0.00191 0.00282 0.0042 0.0059 0.0077 0.0094 0.01078 0.01169 ...
0.012 0.01169 0.01078 0.0094 0.0077 0.0059 0.0042 0.00282 0.00191 0.0016;
0.002 0.00239 0.00352 0.00525 0.00737 0.00963 0.01175 0.01348 0.01461 ...
0.015 0.01461 0.01348 0.01175 0.00963 0.00737 0.00525 0.00352 0.00239 0.002 ]
1-142
FEM-Parameterized Rotary Actuator
[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
0 0.0889 0.1671 0.2252 0.2561 0.2561 0.2252 0.1671 0.0889 ...
0 -0.0889 -0.1671 -0.2252 -0.2561 -0.2561 -0.2252 -0.1671 -0.0889 0;
0 0.3557 0.6685 0.9007 1.0242 1.0242 0.9007 0.6685 0.3557 ...
0 -0.3557 -0.6685 -0.9007 -1.0242 -1.0242 -0.9007 -0.6685 -0.3557 0;
0 0.8003 1.5041 2.0265 2.3045 2.3045 2.0265 1.5041 0.8003 ...
0 -0.8003 -1.5041 -2.0265 -2.3045 -2.3045 -2.0265 -1.5041 -0.8003 0;
0 1.4228 2.674 3.6027 4.0968 4.0968 3.6027 2.674 1.4228 ...
0 -1.4228 -2.674 -3.6027 -4.0968 -4.0968 -3.6027 -2.674 -1.4228 0;
0 2.2231 4.1781 5.6292 6.4013 6.4013 5.6292 4.1781 2.2231 ...
0 -2.2231 -4.1781 -5.6292 -6.4013 -6.4013 -5.6292 -4.1781 -2.2231 0 ]
1-143
FEM-Parameterized Rotary Actuator
Extrapolation method
Select one of the following extrapolation methods for determining
the output value when the input value is outside the range
specified in the argument list:
• From last 2 points — Extrapolates using the linear method
(regardless of the interpolation method specified), based on
the last two output values at the appropriate end of the range.
That is, the block uses the first and second specified output
values if the input value is below the specified range, and the
two last specified output values if the input value is above the
specified range.
• From last point — Uses the last specified output value at the
appropriate end of the range. That is, the block uses the last
specified output value for all input values greater than the last
specified input argument, and the first specified output value
for all input values less than the first specified input argument.
Mechanical Tab
Damping
Rotary damping. The default value is 1e-4 N*m/(rad/s). The
value can be zero.
Rotor inertia
Inertia of the rotor attached to mechanical translational port R.
The default value is 5e-5 kg*m^2. The value can be zero.
1-144
FEM-Parameterized Rotary Actuator
+
Positive electrical conserving port
-
Negative electrical conserving port
C
Mechanical rotational conserving port connected to the actuator
case
R
Mechanical rotational conserving port connected to the rotor
1-145
Finite-Gain Op-Amp
( )
Vout = A V p - Vm − Iout * Rout
where:
• A is the gain.
• Rout is the output resistance.
• Iout is the output current.
V p - Vm
Rin
where Rin is the input resistance.
The output voltage is limited by the minimum and maximum output
values you specify in the block dialog box.
1-146
Finite-Gain Op-Amp
Dialog
Box and
Parameters
Gain, A
The open-loop gain of the operational amplifier. The default value
is 1000.
Input resistance, Rin
The resistance at the input of the operational amplifier that the
block uses to calculate the input current. The default value is
1e+06 Ω.
Output resistance, Rout
The resistance at the output of the operational amplifier that the
block uses to calculate the drop in output voltage due to output
current. The default value is 100 Ω.
Minimum output, Vmin
The lower limit on the operational amplifier output voltage. The
default value is -15 V.
Maximum output, Vmax
The upper limit on the operational amplifier output voltage. The
default value is 15 V.
1-147
Finite-Gain Op-Amp
+
Positive electrical voltage
-
Negative electrical voltage
OUT
Output voltage
1-148
Fully Differential Op-Amp
Purpose Model operational amplifier with fully differential output, that is, not
referenced to ground
Parameters for the circuit components are derived from the block
parameters that you provide. The gain of the two voltage-controlled
voltage sources (VCVS1 and VCVS2) is set to half of the differential
1-149
Fully Differential Op-Amp
gain value. Similarly the slew rate of each of the voltage sources is set
to half of the differential maximum slew rate value. The voltages of the
two output ports Vout+ and Vout- are both limited to be within the
minimum and maximum output voltages that you specify.
The output voltage for zero differential input voltage is controlled by
the common-mode port, cm. If no current is drawn from the cm port by
the external circuit, then the output voltage is set to be the average
of the positive and negative supply voltages by the resistor ladder
of R3a and R3b. Note that the negative supply voltage can be zero,
which corresponds to operation when a split supply is not available.
The values for the minimum and maximum output voltages that you
provide must be consistent with the values for the supply voltages that
you provide. So, for example, the maximum output high voltage will be
less than the positive supply voltage, the difference corresponding to
the number of p-n junction voltage drops in the circuit.
1-150
Fully Differential Op-Amp
Dialog
Box and
Parameters
Gain Tab
Differential gain
The gain applied to a voltage difference between the + and –
inputs. The default value is 1000.
Bandwidth
The frequency at which the differential voltage gain drops by 3 dB
from its dc value. The default value is 1.5 GHz.
1-151
Fully Differential Op-Amp
Output resistance
The output resistance of either of the outputs with respect to the
common-mode voltage reference. Differential output resistance
is therefore twice the value of the output resistance R_out. The
default value is 1 Ohm.
Minimum output voltage low
The minimum output voltage for either of the two output pins
with respect to ground. The default value is -1.4 V.
Maximum output voltage low
The maximum output voltage for either of the two output pins
with respect to ground. The default value is 1.4 V.
Differential maximum slew rate
The maximum slew rate of the differential output voltage. The
default value is 5000 V/μs.
1-152
Fully Differential Op-Amp
+
Noninverting input.
-
Inverting input.
cm
Common-mode port. If you want to leave this pin open-circuit,
connect a voltage sensor between the cm port and a reference port.
Vout+
Noninverting output.
Vout-
Inverting output.
1-153
Fully Differential Op-Amp
1-154
Fuse
Description The Fuse block breaks the circuit in which it is connected. It does so
when the current through the device exceeds the rated current at which
the fuse is designed to blow and continues to exceed it for a specified
amount of time.
Dialog
Box and
Parameters
Rated current
The current value at which the fuse blows when exceeded for a
specified amount of time. The default value is 1 A.
Time to fuse
The time for which the current must exceed the rated current for
the fuse to blow. The default value is 0 s.
Fuse resistance R
The fuse resistance. The parameter value must be greater than
zero. The default value is 0.01 Ω.
1-155
Fuse
Open-circuit conductance G
The open-circuit fuse conductance when the fuse has blown. The
parameter value must be greater than zero. The default value
is 1e-08 1/Ω.
+
Positive electrical port
-
Negative electrical port
1-156
Generic Battery
Library Sources
Description The Generic Battery block represents a simple battery model. If you
select Infinite for the Battery charge capacity parameter, the block
models the battery as a series resistor and a constant voltage source.
If you select Finite for the Battery charge capacity parameter, the
block models the battery as a series resistor and a charge-dependent
voltage source whose voltage as a function of charge has the following
reciprocal relationship:
⎡ ⎛ (1 − x) ⎞ ⎤
V = V0 ⎢1 − ⎜ ⎟⎥
⎣ ⎝ 1 − (1 − x) ⎠ ⎦
where:
1-157
Generic Battery
when the charge level is zero. This simple model has the advantage
of requiring very few parameters, and these are parameters that are
readily available on most datasheets.
Dialog
Box and
Parameters
1-158
Generic Battery
Ampere-Hour rating, AH
The maximum battery charge in ampere-hours. This parameter
is only visible when you select Finite for the Battery charge
capacity parameter. The default value is 50 hr*A.
Initial charge
The battery charge at the start of the simulation. This parameter
is only visible when you select Finite for the Battery charge
capacity parameter. The default value is 50 hr*A.
Voltage V1 < V_nominal when charge is AH1
The battery output voltage when the charge level is AH1 hr*A.
This parameter is only visible when you select Finite for the
Battery charge capacity parameter. The default value is 11.5
V.
Charge AH1 when no-load volts are V1
The battery charge level in hr*A when the no-load output voltage
is V1. This parameter is only visible when you select Finite for
the Battery charge capacity parameter. The default value is
25 hr*A.
Self-discharge resistance, R2
Select one of the following options for modeling the self-discharge
resistance of the battery:
• Omit — Do not include resistance across the battery output
terminals in the model.
• Include — Include resistance R2 across the battery output
terminals in the model.
R2
The resistance across the battery output terminals that represents
battery self-discharge. This parameter is only visible when you
select Include for the Self-discharge resistance, R2 parameter.
The default value is 2e+03 Ω.
1-159
Generic Battery
+
Positive electrical voltage
-
Negative electrical voltage
Examples For an example of how you can create a detailed battery model, see the
Simscape Lead-Acid Battery example.
1-160
Generic Linear Actuator
Purpose Model generic linear actuator driven from DC voltage source or PWM
driver
Description
1-161
Generic Linear Actuator
You can operate the block in the reverse direction by changing the sign
of the voltage applied. The H-Bridge block, for example, reverses motor
direction if the voltage at the REV port is greater than the Reverse
threshold voltage parameter. However, if you are using the block in
reverse, specify the force-speed data for forward operation:
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
1-162
Generic Linear Actuator
1-163
Generic Linear Actuator
Dialog
Box and
Parameters
Speed values
Specify a vector of speeds, including their units, for your
force-speed data. The default value is [ -15 -10 -5 0 5 10 15
20 25 30 ] m/s.
1-164
Generic Linear Actuator
Force values
Specify a vector of forces, including their units, for your
force-speed data. The default value is [ 4 3.5 3 2.5 2 1.5 1
0.5 0 -0.5 ] N.
Rated voltage
Indicate the voltage for which the device you are modeling is
rated. The default value is 12 V.
Motor efficiency (percent)
Efficiency that the block uses to calculate force-dependent
electrical losses. The default value is 70.
Speed at which efficiency is measured
Speed that the block uses to calculate force-dependent electrical
losses. The default value is 20 m/s.
Force-independent electrical losses
Fixed electrical loss associated with the actuator when the force is
zero. The default value is 2 W.
Simulation mode
If you set the Simulation mode parameter to PWM, apply a
PWM waveform switching between zero and rated volts to the
block electrical terminals. The current drawn from the electrical
supply is equal to the amount required to deliver the mechanical
power and to compensate for electrical losses. If the applied
voltage exceeds the rated voltage, the resultant force scales
proportionately. However, applying anything other than the rated
voltage can provide unrepresentative results. PWM is the default
setting.
Vav
× F (v)
Vrated
1-165
Generic Linear Actuator
where F (v) is the force value at speed v . The current drawn from
the supply is such that the product of the current and Vav is
equal to the average power that is consumed.
Mechanical Tab
Plunger mass
Mass of the moving part of the motor. The default value is 0.1 kg.
The value can be zero.
Linear damping
Linear damping. The default value is 1e-05 N/(m/s). The value
can be zero.
Initial plunger speed
Speed of the plunger at the start of the simulation. The default
value is 0 m/s.
+
Positive electrical conserving port
-
Negative electrical conserving port
C
Mechanical translational conserving port connected to the
actuator case
R
Mechanical translational conserving port connected to the plunger
1-166
Generic Rotary Actuator
Purpose Model generic rotary actuator driven from DC voltage source or PWM
driver
Description
1-167
Generic Rotary Actuator
You can operate the block in the reverse direction by changing the sign
of the voltage that you apply. The H-Bridge block, for example, reverses
motor direction if the voltage at the REV port is greater than the
Reverse threshold voltage parameter. However, if you are using the
block in reverse, specify the torque-speed data for forward operation:
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
1-168
Generic Rotary Actuator
1-169
Generic Rotary Actuator
Dialog
Box and
Parameters
Speed values
Specify a vector of speeds, including their units, for your
torque-speed data. The default value is [ -1.5e+03 -1000 -500
0 500 1000 1.5e+03 2e+03 2.5e+03 3e+03 ] rpm.
1-170
Generic Rotary Actuator
Torque values
Specify a vector of torques, including their units, for your
torque-speed data. The default value is [ 0.04 0.035 0.03
0.025 0.02 0.015 0.01 0.005 0 -0.005 ] Nm.
Rated voltage
Indicate the voltage for which the device you are modeling is
rated. The default value is 12 V.
Motor efficiency (percent)
The efficiency that the block uses to calculate torque-dependent
electrical losses. The default value is 80.
Speed at which efficiency is measured
The speed that the block uses to calculate torque-dependent
electrical losses. The default value is 2e+03 rpm.
Torque-independent electrical losses
Fixed electrical loss associated with the actuator when the torque
is zero. The default value is 0.1 W.
Simulation mode
If you set the Simulation mode parameter to PWM, apply a
PWM waveform switching between zero and rated volts to the
block electrical terminals. The current drawn from the electrical
supply is equal to the amount required to deliver the mechanical
power and to compensate for electrical losses. If the applied
voltage exceeds the rated voltage, the resultant torque scales
proportionately. However, applying anything other than the rated
voltage can provide unrepresentative results. PWM is the default
setting.
Vav
× T ( )
Vrated
1-171
Generic Rotary Actuator
Mechanical Tab
Rotor inertia
Rotor resistance to change in motor motion. The default value is
1e-04 kg*m2. The value can be zero.
Rotor damping
Rotor damping. The default value is 1e-08 N*m/(rad/s). The
value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
+
Positive electrical conserving port
-
Negative electrical conserving port
C
Mechanical rotational conserving port
R
Mechanical rotational conserving port
1-172
Gyro
Library Sensors
1-173
Gyro
Dialog
Box and
Parameters
Sensitivity
The change in output voltage level per unit change in rotation
rate when the output is not being limited. The default value
is 12.5 mV/(deg/s).
Output voltage for zero rotation
The output voltage from the sensor when the rotation rate is zero.
The default value is 2.5 V.
Maximum output voltage
The maximum output voltage from the sensor, which determines
the sensor maximum measured rotational rate. The default value
is 4 V.
Minimum output voltage
The minimum output voltage from the sensor, which determines
the sensor minimum measured rotational rate. The default value
is 1 V.
Dynamics
Select one of the following options for modeling sensor dynamics:
1-174
Gyro
R
Mechanical rotational port
+
Positive electrical port
-
Negative electrical port
1-175
H-Bridge
Library Drivers
Description The H-Bridge block represents an H-bridge motor driver. The block has
the following two Simulation mode options:
1-176
H-Bridge
VO VPWM
− IOUT RON
APWM
where:
- VO is the value of the Output voltage amplitude parameter.
- VPWM is the value of the voltage at the PWM port.
- APWM is the value of the PWM signal amplitude parameter.
- IOUT is the value of the output current.
- RON is the Bridge on resistance parameter.
The current will be smooth if the PWM frequency is large enough.
Synchronous operation where freewheeling is via a bridge arm back
to the supply also helps smooth the current. For cases where the
current is not smooth, or possibly discontinuous (that is, it goes to
zero between PWM cycles), use the Unsmoothed or discontinuous
option. For this option, you must also provide values for the Total
load series resistance, Total load series inductance and PWM
frequency. During simulation, the block uses these values to
calculate a more accurate value for H-bridge output voltage that
achieves the same average current as would be present if simulating
in PWM mode.
1-177
H-Bridge
the simulation using the PWM mode and compare the results to those
obtained from using the Averaged mode.
Braking mode is invoked when the voltage presented at the BRK port is
larger than the Braking threshold voltage. Regardless of whether in
PWM or Averaged mode, when in braking mode the H-bridge is modeled
by a series combination of two resistances R1 and R2 where:
• R1 is the resistance of a single bridge arm, that is, half the value of
the Total bridge on resistance parameter.
• R2 is the resistance of a single bridge arm in parallel with a diode
resistance, that is, R1 · Rd / ( R1 + Rd ), where Rd is the diode
resistance.
1-178
H-Bridge
Dialog
Box and
Parameters
Simulation mode
Select one of the following options for the type of output voltage:
• PWM — The output voltage is a pulse-width modulated signal.
This is the default option.
• Averaged — The output voltage is a constant whose value is
equal to the average value of the PWM signal.
1-179
H-Bridge
Freewheeling mode
Select one of the following options for the type of H-Bridge
dissipation circuit:
• Via one semiconductor switch and one freewheeling
diode — In this mode, the block controls the load by
maintaining one high-side bridge arm permanently on and
using the PWM signal to modulate the corresponding low-side
bridge arm. This means that the block uses only one of the
freewheeling diodes in completing the dissipation circuit when
the bridge turns off. This option is the default.
• Via two freewheeling diodes — In this mode, all bridge
arms are off during the bridge off-state. This means that the
block dissipates the load current across the power supply by
two freewheeling diodes.
• Via two semiconductor switches and one freewheeling
diode — In this mode, the block controls the load by
maintaining one high-side bridge arm permanently on
and using the PWM signal to toggle between enabling the
corresponding low-side bridge arm and the opposite high-side
bridge arm. This means that the block uses a freewheeling
diode in parallel with a bridge arm, plus another series bridge
arm, to complete the dissipation circuit when the bridge turns
off.
This parameter is only visible when you select PWM for the
Simulation mode parameter, or when you select Averaged
for the Simulation mode parameter and Unsmoothed or
discontinuous for the Load current characteristics
parameter.
Load current characteristics
Select one of the following options for the type of load current:
• Smoothed — Assumes that the current is practically continuous
due to load inductance. This option is the default.
• Unsmoothed or discontinuous — Use this option for cases
where the current is not smooth, or possibly discontinuous (that
1-180
H-Bridge
is, it goes to zero between PWM cycles). For this option, you
must also provide values for the Total load series resistance,
Total load series inductance, and PWM frequency
parameters. During simulation, the block uses these values to
calculate a more accurate value for H-bridge output voltage
that achieves the same average current as would be present
if simulating in PWM mode.
This parameter is only visible when you select Averaged for the
Simulation mode parameter.
Load total series resistance
The total load series resistance seen by the H-bridge. The default
value is 10 Ω.
1-181
H-Bridge
1-182
H-Bridge
the PWM port is greater than the value of the Enable threshold
voltage parameter on the Input Thresholds tab. The default
value is 0.1 Ω.
Freewheeling diode on resistance
The total resistance in the freewheeling diodes that dissipate the
current that flows through the motor when the voltage at the
PWM port is less than the value of the Enable threshold voltage
parameter on the Input Thresholds tab. This parameter is only
visible when you select PWM for the Simulation mode parameter
on the Simulation Mode & Load Assumptions tab. The
default value is 0.1 Ω.
+ref
Positive electrical output voltage.
-ref
Negative electrical output voltage.
PWM
Pulse-width modulated signal. The voltage is defined relative to
the REF port.
REF
Floating zero volt reference.
REV
Voltage that controls when to reverse the polarity of the H-Bridge
output. The voltage is defined relative to the REF port.
BRK
Voltage that controls when to short circuit the H-Bridge output.
The voltage is defined relative to the REF port.
1-183
Incandescent Lamp
Description The Incandescent Lamp block models an incandescent lamp, the key
characteristic of which is that the resistance increases as the filament
warms up.
Under the simplifying assumption that the rate of heat loss from the
filament is proportional to temperature difference to ambient, the
temperature of the filament is governed by
dT
ktc i 2 R kT
dt
and the filament resistance is governed by the following equation
R R0 1 T
where:
1-184
Incandescent Lamp
Dialog
Box and
Parameters
1-185
Incandescent Lamp
Resistance Tab
Parameterization
Select one of the following methods for block parameterization:
• Specify resistance values directly — Provide the values
for filament resistance at turn-on and when on in steady state.
The block determines the value for the heat transfer coefficient
based on these values. This is the default option.
• Specify currents — Provide the values for filament current
at turn-on and when on in steady state. The block determines
the value for the heat transfer coefficient based on these values.
Initial resistance at turn-on
The resistance seen by the external circuit when the lamp
is initially turned on. This parameter is only visible when
you select Specify resistance values directly for the
Parameterization parameter. The default value is 0.15 Ω.
Steady-state resistance when on
The resistance seen by the external circuit when the lamp is
on and in steady state. This parameter is only visible when
you select Specify resistance values directly for the
Parameterization parameter. This resistance should be greater
than the Initial resistance at turn-on. The default value is 1 Ω.
Inrush current at turn-on
The current through the lamp when it is initially turned on. This
parameter is only visible when you select Specify currents for
the Parameterization parameter. The default value is 70 A.
Steady-state current when on
The current through the lamp when it is on and in steady state.
This parameter is only visible when you select Specify currents
for the Parameterization parameter. This current should be less
than the Inrush current at turn-on. The default value is 10 A.
1-186
Incandescent Lamp
Rated voltage
The rated voltage for the lamp, and the voltage value for which
the resistance or current values are provided in the on and
turn-on states. The default value is 12 V.
Resistance temperature coefficient
The fractional increase in resistance per unit increase in
temperature. The default value is 0.004 1/K.
Dynamics Tab
Faults Tab
+
Positive electrical port
-
Negative electrical port
1-187
Incremental Shaft Encoder
Purpose Model device that converts information about angular shaft position
into electrical pulses
Library Sensors
Description The Incremental Shaft Encoder block represents a device that converts
information about the angular position of a shaft into electrical pulses.
The block produces N pulses on ports A and B per shaft revolution,
where N is the value you specify for the Pulses per revolution
parameter. Pulses A and B are 90 degrees out of phase. If the shaft
rotates in a positive direction, then A leads B. The block produces a
single index pulse on port Z once per revolution. The Z pulse positive
transition always coincides with an A pulse positive transition. The
voltages at output ports A, B, and Z are defined relative to the REF
reference port voltage.
Use this block if you need to model the shaft encoder signals, either
to support development of a decoding algorithm, or to include the
quantization effects. Otherwise, use the Simscape Ideal Rotational
Motion Sensor block.
Basic The Incremental Shaft Encoder block has the following limitations:
Assumptions
and • The Incremental Shaft Encoder block is not linearizable. Use the
Simscape Ideal Rotational Motion Sensor block for control design
Limitations
studies where you need to linearize your model.
1-188
Incremental Shaft Encoder
Dialog
Box and
Parameters
R
Mechanical rotational conserving port associated with the sensor
positive probe
C
Mechanical rotational conserving port associated with the sensor
negative (reference) probe
1-189
Incremental Shaft Encoder
A
Encoded electrical output
B
Encoded electrical output
Z
Index, or synchronization, electrical output
REF
Floating zero volt reference
1-190
Induction Motor
Description
I R1 jX1 = jω L1 jX 2 = jω L2 I2 R2
In the figure:
1-191
Induction Motor
pm
s =1−
This means that the slip is one when starting, and zero when running
synchronously with the supply frequency.
For an n-phase induction motor the torque-speed relationship is given
by:
npR2 Vrms 2
T=
s ⎛ 1− s ⎞
2
2 ⎟ + ( X1 + X 2 )
2
⎜ 1
R + R2 + R
⎝ s ⎠
where:
1-192
Induction Motor
Thermal Ports
The block has two optional thermal ports, one per winding, hidden by
default. To expose the thermal ports, right-click the block in your model,
and then from the context menu select Simscape block choices >
Show thermal port. This action displays the thermal ports on the
block icon, and adds the Temperature Dependence and Thermal
port tabs to the block dialog box. These tabs are described further on
this reference page.
Use the thermal ports to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports in actuator blocks, see “Simulating Thermal Effects in
Rotational and Translational Actuators”.
1-193
Induction Motor
Dialog
Box and
Parameters
1-194
Induction Motor
Model parameterization
Select one of the following methods for block parameterization:
• By motor ratings — Provide electrical torque parameters
that the block converts to an equivalent circuit model of the
motor assuming that the effect of the magnetizing inductance
Lm is negligible. This is the default method.
• By equivalent circuit parameters — Provide electrical
parameters for an equivalent circuit model of the motor.
Stator resistance R1
Resistance of the stator winding. The default value is 1 Ω.
This parameter is only visible when you select By equivalent
circuit parameters for the Model parameterization
parameter.
Rotor resistance R2
Resistance of the rotor, specified with respect to the stator.
The default value is 1 Ω. This parameter is only visible when
you select By equivalent circuit parameters for the Model
parameterization parameter.
Stator inductance L1
Inductance of the stator winding. The default value is 0.02 H.
This parameter is only visible when you select By equivalent
circuit parameters for the Model parameterization
parameter.
Rotor inductance L2
Inductance of the rotor, specified with respect to the stator. The
default value is 0.02 H. This parameter is only visible when
you select By equivalent circuit parameters for the Model
parameterization parameter.
Magnetizing inductance Lm
Magnetizing inductance of the stator. This parameter is only
visible when you select By equivalent circuit parameters for
1-195
Induction Motor
1-196
Induction Motor
1-197
Induction Motor
Mechanical Tab
Rotor inertia
Rotor inertia. The default value is 0.1 kg*m2. The value can be
zero.
Rotor damping
Rotor damping. The default value is 2e-06 N*m/(rad/s). The
value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
1-198
Induction Motor
Measurement temperature
The temperature for which motor parameters are defined. The
default value is 25 C.
W
Real power.
wm
Mechanical speed.
VAR
Imaginary power.
s
Motor slip.
C
Mechanical rotational conserving port.
R
Mechanical rotational conserving port.
1-199
Induction Motor
H1
Stator thermal port. For more information, see “Thermal Ports”
on page 1-193.
H2
Rotor thermal port. For more information, see “Thermal Ports”
on page 1-193.
1-200
Light-Emitting Diode
Library Sensors
qV
I IS e NkTm1 1
where:
qV
When (qV / NkTm1) > 80, the block replaces e NkTm1 with (qV / NkTm1 –
79)e80, which matches the gradient of the diode current at (qV / NkTm1)
= 80 and extrapolates linearly. When (qV / NkTm1) < –79, the block
qV
replaces e NkTm1 with (qV / NkTm1 + 80)e–79, which also matches the
gradient and extrapolates linearly. Typical electrical circuits do not
1-201
Light-Emitting Diode
reach these extreme values. The block provides this linear extrapolation
to help convergence when solving for the constraints during simulation.
When you select Use parameters IS and N for the Parameterization
parameter, you specify the diode in terms of the Saturation current
IS and Emission coefficient N parameters. When you select Use I-V
curve data points for the Parameterization parameter, you specify
two voltage and current measurement points on the diode I-V curve and
the block derives the IS and N values. When you specify current and
voltage measurements, the block calculates IS and N as follows:
• Vt = kTm1 / q.
• V1 and V2 are the values in the Voltages [V1 V2] vector.
• I1 and I2 are the values in the Currents [I1 I2] vector.
1-202
Light-Emitting Diode
• For V ≥ FC·VJ:
1-203
Light-Emitting Diode
Q j CJ 0 F1 (CJ 0 / F2 ) ( F3 (V FC VJ ) 0.5( M / VJ ) (V 2 ( FC VJ ) 2 ))
where:
• F1 (VJ / (1 M )) (1 (1 FC )1 M ))
• F2 (1 FC )1 M ))
• F3 1 FC (1 M )
These equations are the same as used in [2], except that the temperature
dependence of VJ and FC is not modeled. This model does not include
the diffusion capacitance term that affects performance for high
frequency switching applications.
The Light-Emitting Diode block contains several options for modeling
the dependence of the diode current-voltage relationship on the
temperature during simulation. Temperature dependence of the
junction capacitance is not modeled, this being a much smaller effect.
For details, see the Diode reference page.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-204
Light-Emitting Diode
Dialog
Box and
Parameters
1-205
Light-Emitting Diode
Main Tab
1-206
Light-Emitting Diode
Emission coefficient N
The diode emission coefficient or ideality factor. This parameter
is only visible when you select Use parameters IS and N for the
Parameterization parameter. The default value is 10.
Ohmic resistance RS
The series diode connection resistance. The default value is 0.1 Ω.
Junction capacitance
Select one of the following options for modeling the junction
capacitance:
• Fixed or zero junction capacitance — Model the junction
capacitance as a fixed value.
• Use C-V curve data points — Specify measured data at
three points on the diode C-V curve.
• Use parameters CJ0, VJ, M & FC — Specify zero-bias
junction capacitance, junction potential, grading coefficient,
and forward-bias depletion capacitance coefficient.
Zero-bias junction capacitance CJ0
The value of the capacitance placed in parallel with the
exponential diode term. This parameter is only visible when
you select Fixed or zero junction capacitance or Use
parameters CJ0, VJ, M & FC for the Junction capacitance
parameter. The default value is 20 pF.
Reverse bias voltages [VR1 VR2 VR3]
A vector of the reverse bias voltage values at the three points on
the diode C-V curve that the block uses to calculate CJ0, VJ, and
M. This parameter is only visible when you select Use C-V curve
data points for the Junction capacitance parameter. The
default value is [ 0.1 10 100 ] V.
1-207
Light-Emitting Diode
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Use an I-V data point at second measurement
temperature T2 — If you select this option, you specify
a second measurement temperature Tm2, and the current
and voltage values at this temperature. The model uses
1-208
Light-Emitting Diode
1-209
Light-Emitting Diode
1-210
Light-Emitting Diode
W
Optical output power
+
Electrical conserving port associated with the diode positive
terminal
-
Electrical conserving port associated with the diode negative
terminal
References [1] H. Ahmed and P.J. Spreadbury. Analogue and digital electronics for
engineers. 2nd Edition, Cambridge University Press, 1984.
1-211
Multiplier
Description The Multiplier block models an integrated circuit multiplier. The block
implements the following equation, which defines the voltage applied
to the output port:
⎛ ( X − X 2 ) ( Y1 − Y2 ) ⎞
Vout = A ⎜ 1 − ( Z1 − Z2 ) ⎟
⎝ K ⎠
where X1, X2, Y1, Y2, Z1, Z2 are the voltages presented at the input ports,
A is the gain, and K is the scale factor.
In a typical multiplication circuit, the output is fed back into input Z1,
which results in the following gain (assuming that A is large):
⎛ ( X − X 2 ) ( Y1 − Y2 ) ⎞
Vout = ⎜ 1 + Z2 ⎟
⎝ K ⎠
1-212
Multiplier
The next figure shows one of the differential subsystem blocks. All
three differential subsystem blocks are identical in structure.
1-213
Multiplier
Dialog
Box and
Parameters
1-214
Multiplier
Main Tab
Scaling factor, K
The scaling factor K in the equation that defines output voltage.
Datasheets sometimes refer to it as the scale factor, or SF. The
default value is 10 V.
Gain, A
The gain of the internal operational amplifier, corresponding
to the gain A in the equation that defines output voltage. The
default value is 3e3.
Inputs Tab
Outputs Tab
1-215
Multiplier
Ports The block has six electrical conserving ports that serve as signal input
ports and one electrical conserving port that outputs the multiplied
signal.
1-216
N-Channel IGBT
Description The N-Channel IGBT block provides two ways of modeling an IGBT:
1-217
N-Channel IGBT
1 1
I b 0 I s (e qVbe /( NkT ) 1)
F R
V 1
I c I s e qVbe /( NkT ) 1 bc
VAF R
where N is the Emission coefficient, N parameter value, VAF is the
forward Early voltage, and Ic and Ib are defined as positive flowing into
the collector and base, respectively. See the PNP Bipolar Transistor
reference page for definitions of the remaining variables. The first
equation can be solved for Vbe.
The base current is zero in the off-condition, and hence Ic = –Ices, where
Ices is the Zero gate voltage collector current. The base-collector voltage,
Vbc, is given by Vbc = Vces + Vces, where Vces is the voltage at which Ices is
measured. Hence we can rewrite the second equation as follows:
V V 1
I ces I s e qVbe /( NkT ) 1 ces be
VAF R
The block sets βR and βF to typical values of 1 and 50, so these two
equations can be used to solve for Vbe and IS:
1-218
N-Channel IGBT
− NkT ⎛ ⎞
Vbe = log ⎜1 + F ⎟
q ⎝ R ⎠
Ic
Is =
1
e− qVbe /( NkT ) +
R
Note The block does not require an exact value for βF because it can
adjust the MOSFET gain K to ensure the overall device gain is correct.
⎡ V 2⎤
I ds = I b = K ⎢(VGE ( sat ) − Vth )Vds − ds ⎥
⎣ 2 ⎦
1-219
N-Channel IGBT
I b ( sat )
K
Vbe ( sat ) Vce ( sat )
2
1-220
N-Channel IGBT
• CGE = Cres
• CGC = Cies – Cres
1-221
N-Channel IGBT
1-222
N-Channel IGBT
You can determine the capacitor values for Cies, Cres, and Cox as
follows, assuming that the IGBT gate is driven through an external
resistance RG:
1 Set Cies to get correct time-constant for VGE in Region 1. The time
constant is defined by the product of Cies and RG. Alternatively, you
can use a datasheet value for Cies.
1-223
N-Channel IGBT
3 Set VCox to the voltage at which the VCE gradient changes minus the
threshold voltage Vth.
4 Set Cox to get correct Miller length and time constant in Region 4.
1-224
N-Channel IGBT
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-225
N-Channel IGBT
Dialog
Box and
Parameters
Main Tab
1-226
N-Channel IGBT
1-227
N-Channel IGBT
1-228
N-Channel IGBT
This parameter is only visible when you select Lookup table for
the I-V characteristics defined by parameter.
Parameterization
Select one of the following methods for block parameterization:
• Specify from a datasheet — Provide parameters that the
block converts to junction capacitance values. This is the
default method.
• Specify using equation parameters directly — Provide
junction capacitance parameters directly.
Input capacitance, Cies
The gate-emitter capacitance with the collector shorted to the
source. This parameter is only visible when you select Specify
from a datasheet for the Model junction capacitance
parameter. The default value is 26.4 nF.
Reverse transfer capacitance, Cres
The collector-gate capacitance with the emitter connected to
ground. This parameter is only visible when you select Specify
from a datasheet for the Model junction capacitance
parameter. The default value is 2.7 nF.
Gate-emitter junction capacitance
The value of the capacitance placed between the gate and the
emitter. This parameter is only visible when you select Specify
using equation parameters directly for the Model junction
capacitance parameter. The default value is 23.7 nF.
1-229
N-Channel IGBT
1-230
N-Channel IGBT
Advanced Tab
The lookup table representation combines all the equivalent circuit
components into one lookup table, and therefore this tab is empty. If
you use the equivalent circuit representation, this tab has the following
parameters.
Emission coefficient, N
The emission coefficient or ideality factor of the bipolar transistor.
The default value is 1.
Forward Early voltage, VAF
The forward Early voltage for the PNP transistor used in the
IGBT model. See the PNP Bipolar Transistor block reference page
for more information. The default value is 200 V.
Collector resistance, RC
Resistance at the collector. The default value is 0.001 Ohm.
Emitter resistance, RE
Resistance at the emitter. The default value is 0.001 Ohm.
Forward current transfer ratio, BF
Ideal maximum forward current gain for the PNP transistor
used in the IGBT model. See the PNP Bipolar Transistor block
reference page for more information. The default value is 50.
1-231
N-Channel IGBT
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, and none of the
other parameters on this tab are visible. This is the default
method.
• Specify Ices and Vce(sat) at second measurement
temperature — Model temperature-dependent effects by
providing values for the zero gate voltage collector current,
Ices, and collector-emitter voltage, Vce(sat), at the second
measurement temperature.
• Specify Vce(sat) at second measurement temperature
plus the energy gap, EG — Use this option when the
datasheet does not provide information on the zero gate voltage
collector current, Ices, at a higher measurement temperature.
Energy gap, EG
Energy gap value. This parameter is only visible when you select
Specify Vce(sat) at second measurement temperature plus
the energy gap, EG for the Parameterization parameter. The
default value is 1.11 eV.
Zero gate voltage collector current, Ices, at second measurement
temperature
The zero gate collector current value at the second measurement
temperature. This parameter is only visible when you select
Specify Ices and Vce(sat) at second measurement
temperature for the Parameterization parameter. The default
value is 100 mA.
Collector-emitter saturation voltage, Vce(sat), at second
measurement temperature
The collector-emitter saturation voltage value at the second
measurement temperature, and when the collector current
and gate-emitter voltage are as defined by the corresponding
parameters on the Main tab. The default value is 3 V.
1-232
N-Channel IGBT
C
Electrical conserving port associated with the PNP emitter
terminal
G
Electrical conserving port associated with the MOSFET gate
terminal
E
Electrical conserving port associated with the PNP collector
terminal
1-233
N-Channel JFET
Description The N-Channel JFET block uses the Shichman and Hodges equations
to represent an N-Channel JFET using a model with the following
structure:
1-234
N-Channel JFET
• In inverse mode (VDS < 0), the block provides the following
relationship between the drain current ID and the drain-source
voltage VDS.
The currents in each of the diodes satisfy the exponential diode equation
1-235
N-Channel JFET
qVGD
IGD IS e kTm1 1
qVGS
IGS
IS e kTm1
1
where:
• CGD = Crss
• CGS = Ciss – Crss
1-236
N-Channel JFET
BEX
T
Ts Tm1 s
Tm1
where:
1-237
N-Channel JFET
For most JFETS, you can use the default value of -1.5 for BEX. Some
datasheets quote the value for α, but most typically they provide
the temperature dependence for the saturated drain current, I_dss.
Depending on the block parameterization method, you have two ways
of specifying α:
EG
ISTs ISTm1 (Ts / Tm1 ) XTI exp (1 Ts / Tm1 )
kTs
where:
1-238
N-Channel JFET
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-239
N-Channel JFET
1-240
N-Channel JFET
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
1-241
N-Channel JFET
1-242
N-Channel JFET
1-243
N-Channel JFET
Parameterization
Select one of the following methods for block parameterization:
• Specify from a datasheet — Provide parameters that the
block converts to junction capacitance values. This is the
default method.
• Specify using equation parameters directly — Provide
junction capacitance parameters directly.
Input capacitance, Ciss
The gate-source capacitance with the drain shorted to the source.
This parameter is only visible when you select Specify from a
datasheet for the Model junction capacitance parameter. The
default value is 4.5 pF.
Reverse transfer capacitance, Crss
The drain-gate capacitance with the source connected to ground.
This parameter is only visible when you select Specify from a
datasheet for the Model junction capacitance parameter. The
default value is 1.5 pF.
Gate-source junction capacitance
The value of the capacitance placed between the gate and the
source. This parameter is only visible when you select Specify
using equation parameters directly for the Model junction
capacitance parameter. The default value is 3 pF.
1-244
N-Channel JFET
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled. This is the default
method.
• Model temperature dependence — Model
temperature-dependent effects. You also have to
provide a set of additional parameters depending on the block
parameterization method. If you parameterize the block from
a datasheet, you have to provide values for I_gss and I_dss
at second measurement temperature. If you parameterize
by directly specifying equation parameters, you have to
provide the values for EG, XTI, and the gate threshold voltage
temperature coefficient, dVt0/dT. Regardless of the block
parameterization method, you also have to provide values for
BEX and for the simulation temperature, Ts.
Gate reverse current, I_gss, at second measurement temperature
The value of the gate reverse current, I_gss, at the second
measurement temperature. This parameter is only visible
when you select Specify from a datasheet for the
Parameterization parameter on the Main tab. It must be
quoted for the same working point (drain current and gate-source
voltage) as the Drain-source on resistance, R_DS(on)
parameter on the Main tab. The default value is -200 nA.
1-245
N-Channel JFET
1-246
N-Channel JFET
G
Electrical conserving port associated with the transistor gate
terminal
D
Electrical conserving port associated with the transistor drain
terminal
S
Electrical conserving port associated with the transistor source
terminal
1-247
N-Channel MOSFET
Description The N-Channel MOSFET block uses the Shichman and Hodges
equations [1] for an insulated-gate field-effect transistor to represent
an N-Channel MOSFET.
The drain-source current, IDS, depends on the region of operation:
• In the off region (VGS < Vth) the drain-source current is:
I DS = 0
• In the linear region (0 < VDS < VGS –Vth) the drain-source current is:
• In the saturated region (0 < VGS –Vth < VDS) the drain-source current
is:
1-248
N-Channel MOSFET
Charge Model
The block models gate junction capacitance as a fixed gate-source
capacitance CGS and either a fixed or a nonlinear gate-drain capacitance
CGD.
If you select Specify using equation parameters directly for the
Parameterization parameter in the Junction Capacitance tab,
you specify the Gate-drain junction capacitance and Gate-source
junction capacitance parameters directly. Otherwise, the block
derives them from the Input capacitance, Ciss and Reverse transfer
capacitance, Crss parameter values. The two parameterizations are
related as follows:
• CGD = Crss
• CGS = Ciss – Crss
1-249
N-Channel MOSFET
1-250
N-Channel MOSFET
BEX
T
K Ts K Tm1 s
Tm1
where:
1-251
N-Channel MOSFET
For most MOSFETS, you can use the default value of -1.5 for BEX.
Some datasheets quote the value for α, but most typically they provide
the temperature dependence for drain-source on resistance, RDS(on).
Depending on the block parameterization method, you have two ways
of specifying α:
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-252
N-Channel MOSFET
1-253
N-Channel MOSFET
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
• Specify from a datasheet — Provide the drain-source on
resistance and the corresponding drain current and gate-source
1-254
N-Channel MOSFET
1-255
N-Channel MOSFET
Channel modulation, L
The channel-length modulation, usually denoted by the
mathematical symbol λ. When in the saturated region, it is
the rate of change of drain current with drain-source voltage.
The effect on drain current is typically small, and the effect
is neglected if calculating transistor gain K from drain-source
on-resistance, RDS(on). A typical value is 0.02, but the effect can
be ignored in most circuit simulations. However, in some circuits
a small nonzero value may help numerical convergence. The
default value is 0 1/V.
Measurement temperature
Temperature Tm1 at which Drain-source on resistance,
R_DS(on) is measured. This parameter is only visible
when you select Model temperature dependence for
the Parameterization parameter on the Temperature
Dependence tab. The default value is 25 C.
Parameterization
Select one of the following methods for capacitance
parameterization:
• Specify from a datasheet — Provide parameters that the
block converts to junction capacitance values. This is the
default method.
• Specify using equation parameters directly — Provide
junction capacitance parameters directly.
1-256
N-Channel MOSFET
1-257
N-Channel MOSFET
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled. This is the default
method.
• Model temperature dependence — Model
temperature-dependent effects. Provide a value for
simulation temperature, Ts, a value for BEX, and a value for
the measurement temperature Tm1 (using the Measurement
temperature parameter on the Main tab). You also have to
provide a value for α using one of two methods, depending on
the value of the Parameterization parameter on the Main
tab. If you parameterize the block from a datasheet, you have
to provide RDS(on) at a second measurement temperature, and
the block will calculate α based on that. If you parameterize by
specifying equation parameters, you have to provide the value
for α directly.
1-258
N-Channel MOSFET
G
Electrical conserving port associated with the transistor gate
terminal
1-259
N-Channel MOSFET
D
Electrical conserving port associated with the transistor drain
terminal
S
Electrical conserving port associated with the transistor source
terminal
1-260
Negative Supply Rail
Library Sources
Description The Negative Supply Rail block represents an ideal negative supply
rail. Use this block instead of the Simscape DC Voltage Source block to
define the output voltage relative to the Simscape Electrical Reference
block that must appear in each model.
Note Do not attach more than one Negative Supply Rail block to any
connected line.
Dialog
Box and
Parameters
Constant voltage
The voltage at the output port relative to the Electrical Reference
block ground port. The default value is -1 V.
-
Negative electrical voltage
1-261
Nonlinear Inductor
i iL vG p
d
v Nw
dt
L
iL
Nw
where:
1-262
Nonlinear Inductor
i iL vG p
d
v Nw
dt
L
iL (for unsaturated)
Nw
Lsat
iL offset (for saturated)
Nw
where:
1-263
Nonlinear Inductor
i iL vG p
d
v Nw
dt
f iL
where:
1-264
Nonlinear Inductor
i iL vG p
d
v Nw
dt
B Ae
B f H
Nw
H iL
le
where:
1-265
Nonlinear Inductor
Dialog
Box and
Parameters
Main Tab
Parameterized by
Select one of the following methods for block parameterization:
• Single inductance (linear) — Provide the values for
number of turns, unsaturated inductance, and parasitic
parallel conductance.
1-266
Nonlinear Inductor
1-267
Nonlinear Inductor
Current, i
The current data used to populate the magnetic flux versus
current lookup table. This parameter is only visible when you
select Magnetic flux versus current characteristic for the
Parameterized by parameter. The default value is [ 0 0.64
1.28 1.92 2.56 3.20 ] A.
Magnetic flux vector, phi
The magnetic flux data used to populate the magnetic flux versus
current lookup table. This parameter is only visible when you
select Magnetic flux versus current characteristic for the
Parameterized by parameter. The default value is [0 1.29
2.00 2.27 2.36 2.39 ].*1e-5 Wb.
Magnetic field strength vector, H
The magnetic field strength data used to populate the magnetic
flux density versus magnetic field strength lookup table. This
parameter is only visible when you select Magnetic flux
density versus magnetic field strength characteristic
for the Parameterized by parameter. The default value is [ 0
200 400 600 800 1000 ] A/m.
Magnetic flux density vector, B
The magnetic flux density data used to populate the magnetic
flux density versus magnetic field strength lookup table. This
parameter is only visible when you select Magnetic flux
density versus magnetic field strength characteristic
for the Parameterized by parameter. The default value is [ 0
0.81 1.25 1.42 1.48 1.49 ] T.
Effective length
The effective core length, that is, the average distance of the
magnetic path. This parameter is only visible when you select
Magnetic flux density versus magnetic field strength
characteristic for the Parameterized by parameter. The
default value is 0.032 m.
1-268
Nonlinear Inductor
1-269
Nonlinear Inductor
+
Positive electrical port
-
Negative electrical port
1-270
Nonlinear Transformer
1-271
Nonlinear Transformer
where:
1-272
Nonlinear Transformer
For more information, see the Nonlinear Inductor block reference page.
Dialog
Box and
Parameters
1-273
Nonlinear Transformer
Main Tab
1-274
Nonlinear Transformer
Magnetization Tab
Magnetization resistance
The resistance Rm, which represents the magnetic losses in the
transformer core. The default value is 100 Ω.
Magnetization inductance parameterized by
Select one of the following methods for the nonlinear
magnetization inductance parameterization:
• Single inductance (linear) — Provide the unsaturated
inductance value.
• Single saturation point — Provide the values for the
unsaturated and saturated inductances, as well as saturation
magnetic flux. This is the default option.
• Magnetic flux versus current characteristic — Provide
the current vector and the magnetic flux vector, to populate the
magnetic flux versus current lookup table.
1-275
Nonlinear Transformer
1-276
Nonlinear Transformer
1-277
Nonlinear Transformer
Interpolation option
The lookup table interpolation option. This parameter is
only visible when you select Magnetic flux versus current
characteristic or Magnetic flux density versus magnetic
field strength characteristic for the Magnetization
inductance parameterized by parameter. Select one of the
following interpolation methods:
• Linear — Uses a linear interpolation function.
• Cubic — Uses the Piecewise Cubic Hermite Interpolation
Polinomial (PCHIP).
1-278
Nonlinear Transformer
Parasitics Tab
1-279
Nonlinear Transformer
Ports The block has four electrical conserving ports. Polarity is indicated
by the + and - signs.
1-280
NPN Bipolar Transistor
V 1 qVBC /( kTm1 )
I C IS e qVBE /( kTm1 ) e qVBC /( kTm1 ) 1 BC
VA R
e
1
1 qVBE /( kTm1 )
I B IS
e
1 e
1 qVBC /( kTm1 )
1
F R
Where:
1-281
NPN Bipolar Transistor
EG
ISTs ISTm1 (Ts / Tm1 ) XTI exp (1 Ts / Tm1 )
kTs
1-282
NPN Bipolar Transistor
XTB
T
Fs Fm1 s
Tm1
XTB
T
Rs Rm1 s
Tm1
where:
1-283
NPN Bipolar Transistor
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
Basic The NPN Bipolar Transistor model has the following limitations:
Assumptions
and • The block does not account for temperature-dependent effects on
the junction capacitances.
Limitations
• You may need to use nonzero ohmic resistance and junction
capacitance values to prevent numerical simulation issues, but the
simulation may run faster with these values set to zero.
1-284
NPN Bipolar Transistor
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
1-285
NPN Bipolar Transistor
1-286
NPN Bipolar Transistor
Voltage Vbe
Base-emitter voltage when the base current is Ib. The [ Vbe Ib ]
data pair must be quoted for when the transistor is in the normal
active region, that is, not in the saturated region. This parameter
is only visible when you select Specify from a datasheet for
the Parameterization parameter. The default value is 0.55 V.
Current Ib for voltage Vbe
Base current when the base-emitter voltage is Vbe. The [ Vbe Ib ]
data pair must be quoted for when the transistor is in the normal
active region, that is, not in the saturated region. This parameter
is only visible when you select Specify from a datasheet for
the Parameterization parameter. The default value is 0.5 mA.
Forward current transfer ratio BF
Ideal maximum forward current gain. This parameter is only
visible when you select Specify using equation parameters
directly for the Parameterization parameter. The default
value is 100.
Saturation current IS
Transistor saturation current. This parameter is only visible when
you select Specify using equation parameters directly for
the Parameterization parameter. The default value is 1e-14 A.
Forward Early voltage VAF
In the standard Ebers-Moll equations, the gradient of the
Ic versus Vce curve is zero in the normal active region. The
additional forward Early voltage term increases this gradient.
The intercept on the Vce-axis is equal to –VAF when the linear
region is extrapolated. This parameter is only visible when you
select Specify using equation parameters directly for the
Parameterization parameter. The default value is 200 V.
Reverse current transfer ratio BR
Ideal maximum reverse current gain. This value is often not
quoted in manufacturer datasheets, because it is not significant
when the transistor is biased to operate in the normal active
1-287
NPN Bipolar Transistor
region. When the value is not known and the transistor is not to
be operated on the inverse region, use the default value of 1.
Measurement temperature
Temperature Tm1 at which Vbe and Ib, or IS, are measured. The
default value is 25 C.
Collector resistance RC
Resistance at the collector. The default value is 0.01 Ω.
Emitter resistance RE
Resistance at the emitter. The default value is 1e-4 Ω.
Zero bias base resistance RB
Resistance at the base at zero bias. The default value is 1 Ω.
Capacitance Tab
1-288
NPN Bipolar Transistor
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Model temperature dependence — Provide a value for
simulation temperature, to model temperature-dependent
effects. You also have to provide a set of additional parameters
depending on the block parameterization method. If you
parameterize the block from a datasheet, you have to provide
values for a second [ Vbe Ib ] data pair and h_fe at second
measurement temperature. If you parameterize by directly
specifying equation parameters, you have to provide the values
for XTI, EG, and XTB.
Forward current transfer ratio, h_fe, at second measurement
temperature
Small-signal current gain at the second measurement
temperature. This parameter is only visible when you select
Specify from a datasheet for the Parameterization
parameter on the Main tab. It must be quoted at the same
collector-emitter voltage and collector current as for the Forward
current transfer ratio h_fe parameter on the Main tab. The
default value is 125.
Voltage Vbe at second measurement temperature
Base-emitter voltage when the base current is Ib and the
temperature is set to the second measurement temperature. The
[Vbe Ib] data pair must be quoted for when the transistor is in
the normal active region, that is, not in the saturated region.
This parameter is only visible when you select Specify from a
1-289
NPN Bipolar Transistor
1-290
NPN Bipolar Transistor
B
Electrical conserving port associated with the transistor base
terminal
C
Electrical conserving port associated with the transistor collector
terminal
E
Electrical conserving port associated with the transistor emitter
terminal
[2] H. Ahmed and P.J. Spreadbury. Analogue and digital electronics for
engineers. 2nd Edition, Cambridge University Press, 1984.
1-291
Operational Transconductance Amplifier
Control Current
The control current pin C is maintained at the voltage that you specify
for the Minimum output voltage. In practice, the Minimum
output voltage equals the negative supply voltage plus the transistor
collector-emitter voltage drop. For example, if the Minimum output
voltage for a supply voltage of +-15V is -14.5, then to achieve a control
current of 500μA, a resistor connected between the +15V rail and the
control current pin must have a value of (15 - (-14.5)) / 500e-6 = 59kOhm.
Transconductance
The relationship between input voltage, v, and transconductance
current, igm, is:
1-292
Operational Transconductance Amplifier
v v v
igm gm v
gm0 ic
gm
ic0
where:
vo
igm io
Rout
Rout0 ic0
Rout
ic
where:
1-293
Operational Transconductance Amplifier
• ic0 is the reference control current, that is, the control current at
which output resistance is quoted on the datasheet.
• Rout0 is the output resistance measured at the reference control
current ic0.
Input Resistance
The relationship between input voltage, v, across the + and - pins and
the current flowing, i, is:
v
Rin
i
R i
Rin in0 c0
ic
where:
Limits
Because of the physical construction of an operational transconductance
amplifier based on current mirrors, the transconductance current igm
cannot exceed the control current. Hence the value of igm is limited by:
–ic ≤ igm ≤ ic
1-294
Operational Transconductance Amplifier
Vmin ≤ vo ≤ Vmax
digm
dt
Dialog
Box and
Parameters
1-295
Operational Transconductance Amplifier
Transconductance
The transconductance, gm, when the control current is equal
to the Reference control current. This is the ratio of the
transconductance current, igm, to the voltage difference, v, across
the + and - pins. The default value is 9600 μS.
Input resistance
The input resistance, Rin, when the control current is equal to the
Reference control current. The input resistance is the ratio
of the voltage difference, v, across the + and - pins to the current
flowing from the + to the - pin. The default value is 25 kOhm.
Output resistance
The output resistance, Rout, when the control current is equal
to the Reference control current. See above for the equation
defining output resistance. The default value is 3 MOhm.
Reference control current
The control current at which the Transconductance, Input
resistance, and Output resistance are quoted. The default
value is 500 μA.
Dynamics Tab
Dynamics
Select one of the following options:
• No lag — Do not model the dynamics of the relationship
between output current and input voltage. This is the default.
• Finite bandwidth with slew rate limiting — Model the
dynamics of the relationship between output current and input
voltage using a first-order lag. If you select this option, the
Bandwidth, Maximum current slew rate, and Initial
current parameters appear on the Dynamics tab.
1-296
Operational Transconductance Amplifier
Bandwidth
The bandwidth of the first-order lag used to model the dynamics
of the relationship between output current and input voltage. The
default value is 2 MHz.
Maximum current slew rate
The maximum rate-of-change of transconductance current when
there is no feedback around the device. Note that datasheets
sometimes quote slew rate as a maximum rate of change of
voltage. In this case, the value depends on the particular test
circuit. To get an accurate value for Maximum current slew
rate, reproduce the test circuit in a SimElectronics® model, and
tune the parameter value to match the datasheet value. If the
test circuit is open-loop, and the load resistance is quoted, you can
obtain an approximate value for the Maximum current slew
rate by dividing the voltage slew rate by the load resistance. The
default value is 2 A/μs.
Initial current
The initial transconductance current (note, not the initial output
current). This is the transconductance current sinking to both the
internal output resistance, Rout, and the output pin. The default
value is 0 A.
Limits Tab
1-297
Operational Transconductance Amplifier
+
Positive electrical voltage
-
Negative electrical voltage
C
Control current
OUT
Output current
1-298
Optocoupler
Purpose Model optocoupler as LED, current sensor, and controlled current source
The output-side current flows from the collector junction to the emitter
junction. It has a value of CTR·Id, where CTR is the Current transfer
ratio parameter value and Id is the diode current.
Use the Optocoupler block to interface two electrical circuits without
making a direct electrical connection. A common reason for doing this is
that the two circuits work at very different voltage levels.
Note Each electrical circuit must have its own Electrical Reference
block.
• The capacitance of the photodiode and the type of the driving circuit
• The construction of the phototransistor and its associated capacitance
1-299
Optocoupler
The Optocoupler block only lets you define the capacitance on the
light-emitting diode. You can use the Junction capacitance
parameter to add your own capacitance across the collector and emitter
connections.
The Optocoupler block lets you model temperature dependence of the
underlying diode. For details, see the Diode reference page.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-300
Optocoupler
Dialog
Box and
Parameters
Main Tab
1-301
Optocoupler
Ohmic resistance RS
The series diode connection resistance. The default value is 0.1 Ω.
1-302
Optocoupler
Junction capacitance
Select one of the following options for modeling the diode junction
capacitance:
• Fixed or zero junction capacitance — Model the junction
capacitance as a fixed value.
• Use C-V curve data points — Specify measured data at
three points on the diode C-V curve.
• Use parameters CJ0, VJ, M & FC — Specify zero-bias
junction capacitance, junction potential, grading coefficient,
and forward-bias depletion capacitance coefficient.
Zero-bias junction capacitance CJ0
The value of the capacitance placed in parallel with the
exponential diode term. This parameter is only visible when
you select Fixed or zero junction capacitance or Use
parameters CJ0, VJ, M & FC for the Junction capacitance
parameter. The default value is 5 pF.
Junction potential VJ
The junction potential. This parameter is only visible when you
select Use parameters CJ0, VJ, M & FC for the Junction
capacitance parameter. The default value is 1 V.
Grading coefficient M
The coefficient that quantifies the grading of the junction. This
parameter is only visible when you select Use parameters CJ0,
VJ, M & FC for the Junction capacitance parameter. The
default value is 0.5.
Reverse bias voltages [VR1 VR2 VR3]
A vector of the reverse bias voltage values at the three points on
the diode C-V curve that the block uses to calculate CJ0, VJ, and
M. This parameter is only visible when you select Use C-V curve
data points for the Junction capacitance parameter. The
default value is [ 0.1 10 100 ] V.
1-303
Optocoupler
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Use an I-V data point at second measurement
temperature T2 — If you select this option, you specify
a second measurement temperature Tm2, and the current
and voltage values at this temperature. The model uses
these values, along with the parameter values at the first
measurement temperature Tm1, to calculate the energy gap
value.
• Specify saturation current at second measurement
temperature T2 — If you select this option, you specify a
second measurement temperature Tm2, and saturation current
value at this temperature. The model uses these values,
1-304
Optocoupler
1-305
Optocoupler
1-306
Optocoupler
+
Electrical conserving port associated with the diode positive
terminal
-
Electrical conserving port associated with the diode negative
terminal
C
Electrical conserving port associated with the transistor collector
terminal
E
Electrical conserving port associated with the transistor emitter
terminal
[2] H. Ahmed and P.J. Spreadbury. Analogue and digital electronics for
engineers. 2nd Edition, Cambridge University Press, 1984.
1-307
P-Channel JFET
Description The P-Channel JFET block uses the Shichman and Hodges equations to
represent a P-Channel JFET using a model with the following structure:
1-308
P-Channel JFET
• In inverse mode (–VDS < 0), the block provides the following
relationship between the drain current ID and the drain-source
voltage VDS.
1-309
P-Channel JFET
The currents in each of the diodes satisfy the exponential diode equation
IGD IS e qVGD kTm1
1
IGS IS e qVGS kTm1
1
where:
1-310
P-Channel JFET
• CGD = Crss
• CGS = Ciss – Crss
BEX
T
Ts Tm1 s
Tm1
where:
1-311
P-Channel JFET
For most JFETS, you can use the default value of -1.5 for BEX. Some
datasheets quote the value for α, but most typically they provide
the temperature dependence for the saturated drain current, I_dss.
Depending on the block parameterization method, you have two ways
of specifying α:
EG
ISTs ISTm1 (Ts / Tm1 ) XTI exp (1 Ts / Tm1 )
kTs
1-312
P-Channel JFET
where:
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-313
P-Channel JFET
1-314
P-Channel JFET
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
1-315
P-Channel JFET
1-316
P-Channel JFET
1-317
P-Channel JFET
Parameterization
Select one of the following methods for block parameterization:
• Specify from a datasheet — Provide parameters that the
block converts to junction capacitance values. This is the
default method.
• Specify using equation parameters directly — Provide
junction capacitance parameters directly.
Input capacitance, Ciss
The gate-source capacitance with the drain shorted to the source.
This parameter is only visible when you select Specify from a
datasheet for the Model junction capacitance parameter. The
default value is 4.5 pF.
Reverse transfer capacitance, Crss
The drain-gate capacitance with the source connected to ground.
This parameter is only visible when you select Specify from a
datasheet for the Model junction capacitance parameter. The
default value is 1.5 pF.
Gate-source junction capacitance
The value of the capacitance placed between the gate and the
source. This parameter is only visible when you select Specify
using equation parameters directly for the Model junction
capacitance parameter. The default value is 3 pF.
1-318
P-Channel JFET
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled. This is the default
method.
• Model temperature dependence — Model
temperature-dependent effects. You also have to
provide a set of additional parameters depending on the block
parameterization method. If you parameterize the block from
a datasheet, you have to provide values for I_gss and I_dss
at second measurement temperature. If you parameterize
by directly specifying equation parameters, you have to
provide the values for EG, XTI, and the gate threshold voltage
temperature coefficient, dVt0/dT. Regardless of the block
parameterization method, you also have to provide values for
BEX and for the simulation temperature, Ts.
Gate reverse current, I_gss, at second measurement temperature
The value of the gate reverse current, I_gss, at the second
measurement temperature. This parameter is only visible
when you select Specify from a datasheet for the
Parameterization parameter on the Main tab. It must be
quoted for the same working point (drain current and gate-source
voltage) as the Drain-source on resistance, R_DS(on)
parameter on the Main tab. The default value is 950 nA.
1-319
P-Channel JFET
1-320
P-Channel JFET
G
Electrical conserving port associated with the transistor gate
terminal
D
Electrical conserving port associated with the transistor drain
terminal
S
Electrical conserving port associated with the transistor source
terminal
1-321
P-Channel MOSFET
Description The P-Channel MOSFET block uses the Shichman and Hodges
equations [1] for an insulated-gate field-effect transistor to represent a
P-Channel MOSFET.
The drain-source current, IDS, depends on the region of operation:
• In the off region (–VGS < –Vth) the drain-source current is:
I DS = 0
• In the linear region (0 < –VDS < –VGS +Vth) the drain-source current is:
• In the saturated region (0 < –VGS +Vth < –VDS) the drain-source
current is:
1-322
P-Channel MOSFET
Charge Model
The block models gate junction capacitance as a fixed gate-source
capacitance CGS and either a fixed or a nonlinear gate-drain capacitance
CGD.
If you select Specify using equation parameters directly for the
Parameterization parameter in the Junction Capacitance tab,
you specify the Gate-drain junction capacitance and Gate-source
junction capacitance parameters directly. Otherwise, the block
derives them from the Input capacitance, Ciss and Reverse transfer
capacitance, Crss parameter values. The two parameterizations are
related as follows:
• CGD = Crss
• CGS = Ciss – Crss
1-323
P-Channel MOSFET
1-324
P-Channel MOSFET
BEX
T
K Ts K Tm1 s
Tm1
where:
1-325
P-Channel MOSFET
For most MOSFETS, you can use the default value of -1.5 for BEX.
Some datasheets quote the value for α, but most typically they provide
the temperature dependence for drain-source on resistance, RDS(on).
Depending on the block parameterization method, you have two ways
of specifying α:
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-326
P-Channel MOSFET
1-327
P-Channel MOSFET
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
• Specify from a datasheet — Provide the drain-source on
resistance and the corresponding drain current and gate-source
1-328
P-Channel MOSFET
1-329
P-Channel MOSFET
Channel modulation, L
The channel-length modulation, usually denoted by the
mathematical symbol λ. When in the saturated region, it is minus
the rate of change of drain current with drain-source voltage.
The effect on drain current is typically small, and the effect
is neglected if calculating transistor gain K from drain-source
on-resistance, RDS(on). A typical value is 0.02, but the effect can
be ignored in most circuit simulations. However, in some circuits
a small nonzero value may help numerical convergence. The
default value is 0 1/V.
Measurement temperature
Temperature Tm1 at which Drain-source on resistance,
R_DS(on) is measured. This parameter is only visible
when you select Model temperature dependence for
the Parameterization parameter on the Temperature
Dependence tab. The default value is 25 C.
Parameterization
Select one of the following methods for capacitance
parameterization:
• Specify from a datasheet — Provide parameters that the
block converts to junction capacitance values. This is the
default method.
• Specify using equation parameters directly — Provide
junction capacitance parameters directly.
1-330
P-Channel MOSFET
1-331
P-Channel MOSFET
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled. This is the default
method.
• Model temperature dependence — Model
temperature-dependent effects. Provide a value for
simulation temperature, Ts, a value for BEX, and a value for
the measurement temperature Tm1 (using the Measurement
temperature parameter on the Main tab). You also have to
provide a value for α using one of two methods, depending on
the value of the Parameterization parameter on the Main
tab. If you parameterize the block from a datasheet, you have
to provide RDS(on) at a second measurement temperature, and
the block will calculate α based on that. If you parameterize by
specifying equation parameters, you have to provide the value
for α directly.
1-332
P-Channel MOSFET
G
Electrical conserving port associated with the transistor gate
terminal
1-333
P-Channel MOSFET
D
Electrical conserving port associated with the transistor drain
terminal
S
Electrical conserving port associated with the transistor source
terminal
1-334
PCCCS
n −1 n
Iout = p(0) + p(1) * Iin + ... + p(n − 1) * Iin + p(n) * Iin
Iout = p * Iin
where:
1-335
PCCCS
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input current to the
output current, as described in the preceding section. The default
value is [ 0 1 ].
+
Positive electrical input voltage.
-
Negative electrical input voltage.
N+
Positive electrical output voltage.
1-336
PCCCS
N-
Negative electrical output voltage.
1-337
PCCCS2
1-338
PCCCS2
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input current to the
output current, as described in the preceding section. The default
value is [ 0 1 1 ].
+1
Positive electrical input voltage of first controlling source.
-1
Negative electrical input voltage of first controlling source.
+2
Positive electrical input voltage of second controlling source.
-2
Negative electrical input voltage of second controlling source.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-339
PCCVS
n −1 n
Vout = p(0) + p(1) * Iin + ... + p(n − 1) * Iin + p(n) * Iin
Vout = p * Iin
where:
1-340
PCCVS
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input current to the
output voltage, as described in the preceding section. The default
value is [ 0 1 ].
+
Positive electrical input voltage.
-
Negative electrical input voltage.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-341
PCCVS
1-342
PCCVS2
1-343
PCCVS2
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input current to the
output voltage, as described in the preceding section. The default
value is [ 0 1 1 ].
+1
Positive electrical input voltage of first controlling source.
-1
Negative electrical input voltage of first controlling source.
+2
Positive electrical input voltage of second controlling source.
-2
Negative electrical input voltage of second controlling source.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-344
Photodiode
Library Sensors
Ip = DeviceSensitivity · RadiantFluxDensity
where:
qV
I IS e NkTm1
1
1-345
Photodiode
where:
qV
When (qV / NkTm1) > 80, the block replaces e NkTm1 with (qV / NkTm1 –
79)e80, which matches the gradient of the diode current at (qV / NkTm1)
= 80 and extrapolates linearly. When (qV / NkTm1) < –79, the block
qV
replaces e NkTm1 with (qV / NkTm1 + 80)e–79, which also matches the
gradient and extrapolates linearly. Typical electrical circuits do not
reach these extreme values. The block provides this linear extrapolation
to help convergence when solving for the constraints during simulation.
When you select Use dark current and N for the Diode
parameterization parameter, you specify the diode in terms of the
Dark current and Emission coefficient N parameters. When you
select Use dark current plus a forward bias I-V data point
for the Diode parameterization parameter, you specify the Dark
current parameter and a voltage and current measurement point on
the diode I-V curve. The block calculates N from these values as follows:
1-346
Photodiode
1-347
Photodiode
C1 > C2 > C3 as reverse bias widens the depletion region and hence
reduces capacitance. Violating these inequalities results in an error.
Voltages VR2 and VR3 should be well away from the Junction potential
VJ. Voltage VR1 should be less than the Junction potential VJ, with a
typical value for VR1 being 0.1 V.
• For V ≥ FC·VJ:
Q j CJ 0 F1 (CJ 0 / F2 ) ( F3 (V FC VJ ) 0.5( M / VJ ) (V 2 ( FC VJ ) 2 ))
where:
• F1 (VJ / (1 M )) (1 (1 FC )1 M ))
• F2 (1 FC )1 M ))
• F3 1 FC (1 M )
These equations are the same as used in [2], except that the temperature
dependence of VJ and FC is not modeled. This model does not include
the diffusion capacitance term that affects performance for high
frequency switching applications.
The Photodiode block contains several options for modeling the
dependence of the diode current-voltage relationship on the temperature
during simulation. Temperature dependence of the junction capacitance
is not modeled, this being a much smaller effect. For details, see the
Diode reference page.
1-348
Photodiode
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-349
Photodiode
Dialog
Box and
Parameters
Main Tab
Sensitivity parameterization
Select one of the following methods for sensitivity
parameterization:
1-350
Photodiode
1-351
Photodiode
Ohmic resistance RS
The series diode connection resistance. The default value is 0.1 Ω.
Junction capacitance
Select one of the following options for modeling the junction
capacitance:
• Fixed or zero junction capacitance — Model the junction
capacitance as a fixed value.
• Use C-V curve data points — Specify measured data at
three points on the diode C-V curve.
1-352
Photodiode
1-353
Photodiode
when you select Use C-V curve data points or Use parameters
CJ0, VJ, M & FC for the Junction capacitance parameter.
The default value is 0.5.
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Use an I-V data point at second measurement
temperature T2 — If you select this option, you specify
a second measurement temperature Tm2, and the current
and voltage values at this temperature. The model uses
these values, along with the parameter values at the first
measurement temperature Tm1, to calculate the energy gap
value.
• Specify saturation current at second measurement
temperature T2 — If you select this option, you specify a
second measurement temperature Tm2, and saturation current
value at this temperature. The model uses these values,
along with the parameter values at the first measurement
temperature Tm1, to calculate the energy gap value.
• Specify the energy gap EG — Specify the energy gap value
directly.
Current I1 at second measurement temperature
Specify the diode current I1 value when the voltage is V1 at
the second measurement temperature. This parameter is only
visible when you select Use an I-V data point at second
measurement temperature T2 for the Parameterization
parameter. The default value is 0.07 A.
1-354
Photodiode
1-355
Photodiode
1-356
Photodiode
D
Physical port representing incident flux
+
Electrical conserving port associated with the diode positive
terminal
-
Electrical conserving port associated with the diode negative
terminal
References [1] MH. Ahmed and P.J. Spreadbury. Analogue and digital electronics
for engineers. 2nd Edition, Cambridge University Press, 1984.
1-357
Piezo Linear Motor
Description The Piezo Linear Motor block represents the force-speed characteristics
of a linear piezoelectric traveling wave motor. The block represents
the force-speed relationship of the motor at a level that is suitable
for system-level modeling. To simulate the motor, the block uses the
following models:
1-358
Piezo Linear Motor
1-359
Piezo Linear Motor
• Rated force
• Rated speed
• No-load maximum speed
• Maximum (stall) force
These parameter values are defined for the Rated RMS voltage and
Motor natural frequency (or rated frequency) parameter values.
The quadratic mechanical damping term produces a quadratic
force-speed curve. Piezoelectric motors force-speed curves can typically
be approximated more accurately using a quadratic function than a
linear one because the force-speed gradient becomes steeper as the
motor approaches the maximum speed.
If the plunger mass M is not specified on the datasheet, you can select
a value that provides a good match to the quoted response time.
The response time is often defined as the time for the rotor to reach
maximum speed when starting from rest, under no-load conditions.
The quality factor that you specify using the Resonance quality
factor parameter relates to the equivalent circuit model parameters
as follows:
1 L
Q=
R C
This term is not usually provided on a datasheet. You can calculate its
value by matching the sensitivity of force to driving frequency.
To reverse the motor direction of operation, make the physical signal
input v negative.
1-360
Piezo Linear Motor
1-361
Piezo Linear Motor
Dialog
Box and
Parameters
1-362
Piezo Linear Motor
Note The Holding force parameter value, the load force the
motor holds when stationary, may be greater than the Maximum
(stall) force parameter value.
1-363
Piezo Linear Motor
Mechanical Tab
Plunger mass
Mass of the moving part of the motor. The default value is 0.3 g.
Initial rotor speed
Rotor speed at the start of the simulation. The default value is 0
mm/s.
Holding force
The sum of the Coulomb and the static frictions. It must be
greater than or equal to the Coulomb friction force parameter
value. The default value is 0.3 N.
Coulomb friction force
The friction that opposes rotation with a constant force at any
velocity. The default value is 0.15 N.
Viscous friction coefficient
Proportionality coefficient between the friction force and the
relative velocity. The parameter value must be greater than or
equal to zero. The default value is 1e-05 s*N/mm.
Transition approximation coefficient
The parameter sets the coefficient value that is used to
approximate the transition between the static and the Coulomb
frictions. For detailed information about the coefficient, cv, see the
Simscape Translational Friction block reference page. The default
value is 0.1 s/mm.
Linear region velocity threshold
The parameter sets the small vicinity near zero velocity, within
which friction force is considered to be linearly proportional to the
relative velocity. MathWorks recommends that you use values
between 1e-6 and 1e-4 mm/s. The default value is 0.1 mm/s.
1-364
Piezo Linear Motor
f
Physical signal input value specifying the motor driving frequency
in Hz.
v
Physical signal input magnitude specifying the RMS supply
voltage, and sign specifying the direction of rotation. If v is
positive, then a positive force acts from port C to port R.
i
Physical signal output value that is the RMS phase current.
vel
Physical signal output value that is the linear speed of the rotor.
C
Mechanical translational conserving port.
R
Mechanical translational conserving port.
1-365
Piezo Rotary Motor
1-366
Piezo Rotary Motor
1-367
Piezo Rotary Motor
• Rated torque
• Rated rotational speed
• No-load maximum rotational speed
• Maximum torque
These parameter values are defined for the Rated RMS voltage and
Motor natural frequency (or rated frequency) parameter values.
The quadratic mechanical damping term produces a quadratic
torque-speed curve. Piezoelectric motors torque-speed curves can
typically be approximated more accurately using a quadratic function
than a linear one because the torque-speed gradient becomes steeper
as the motor approaches the maximum speed.
If the rotor inertia J is not specified on the datasheet, you can select
a value that provides a good match to the quoted response time.
The response time is often defined as the time for the rotor to reach
maximum speed when starting from rest, under no-load conditions.
The quality factor that you specify using the Resonance quality
factor parameter relates to the equivalent circuit model parameters
as follows:
1 L
Q=
R C
This term is not usually provided on a datasheet. You can calculate its
value by matching the sensitivity of torque to driving frequency.
To reverse the motor direction of operation, make the physical signal
input v negative.
1-368
Piezo Rotary Motor
1-369
Piezo Rotary Motor
Dialog
Box and
Parameters
1-370
Piezo Rotary Motor
Note The Holding torque parameter value, the load torque the
motor holds when stationary, may be greater than the Maximum
torque parameter value.
1-371
Piezo Rotary Motor
Mechanical Tab
Rotor inertia
Rotor resistance to change in motor motion. The default value
is 200 g*cm2.
Initial rotor speed
Rotor speed at the start of the simulation. The default value is
0 rpm.
Holding torque
The sum of the Coulomb and the static frictions. It must be
greater than or equal to the Coulomb friction torque parameter
value. The default value is 1.5 N*m.
Coulomb friction torque
The friction that opposes rotation with a constant torque at any
velocity. The default value is 1 N*m.
Viscous friction coefficient
Proportionality coefficient between the friction torque and the
relative angular velocity. The parameter value must be greater
than or equal to zero. The default value is 0.001 N*m/(rad*s).
Transition approximation coefficient
The parameter sets the coefficient value that is used to
approximate the transition between the static and the Coulomb
frictions. For detailed information about the coefficient, cv, see the
Simscape Rotational Friction block reference page. The default
value is 10 s/rad.
Linear region velocity threshold
The parameter sets the small vicinity near zero velocity, within
which friction torque is considered to be linearly proportional to
the relative velocity. MathWorks recommends that you use values
in the range between 1e-5 and 1e-3 rad/s. The default value is
1e-04 rad/s.
1-372
Piezo Rotary Motor
f
Physical signal input value specifying the motor driving frequency
in Hz.
v
Physical signal input magnitude specifying the RMS supply
voltage, and sign specifying the direction of rotation. If v is
positive, then a positive torque acts from port C to port R.
i
Physical signal output value that is the RMS phase current.
wm
Physical signal output value that is the rotational speed of the
rotor.
C
Mechanical rotational conserving port.
R
Mechanical rotational conserving port.
1-373
Piezo Stack
Description The Piezo Stack block represents the electrical and force characteristics
of a piezoelectric stacked actuator using the following equations:
S = s ET + d ’E
D = dT + T E
where
You can specify the block parameters that determine static force using
either datasheet parameters or material properties, as determined by
the value of the Parameterization parameter on the Static Force
tab of the block dialog box.
The Dynamic Forces tab of the block dialog box lets you include
optional effective mass and mechanical damping effects.
1-374
Piezo Stack
1-375
Piezo Stack
Dialog
Box and
Parameters
Parameterization
Select one of the following methods for static force
parameterization:
• Specify from a datasheet — Provide datasheet parameters
that the block converts to static force values. This is the default
method.
• Specify material properties — Provide material properties
that the block converts to static force values.
1-376
Piezo Stack
Stack area
Cross-sectional area of the stack. The default value is 100 mm2.
Stack length
Stack length when no load and no electrical potential are applied.
This parameter is only visible when you select Specify from a
datasheet for the Parameterization parameter. The default
value is 36 mm.
No-load displacement at V0 volts
Unconstrained displacement of the stack when a voltage of
V0 volts is applied. This parameter is only visible when you
select Specify from a datasheet for the Parameterization
parameter. The default value is 0.038 mm.
Blocking force at V0 volts
Force the stack produces when a voltage of V0 volts is applied and
the stack is physically prevented from expanding. This parameter
is only visible when you select Specify from a datasheet for the
Parameterization parameter. The default value is 3.8e+03 N.
Test voltage V0
Voltage used to determine the no-load displacement and blocking
force. This parameter is only visible when you select Specify
from a datasheet for the Parameterization parameter. The
default value is 120 V.
Capacitance
This parameter is only visible when you select Specify from a
datasheet for the Parameterization parameter. The default
value is 13 uF.
Piezo layer thickness
Thickness of each layer in the piezo stack. This parameter is only
visible when you select Specify material properties for the
Parameterization parameter. The default value is 0.3 mm.
1-377
Piezo Stack
Number of layers
Number of layers in the piezo stack. This parameter is only
visible when you select Specify material properties for the
Parameterization parameter. The default value is 50.
Piezoelectric charge constant
Mechanical strain per unit electric field applied. This parameter
is only visible when you select Specify material properties
for the Parameterization parameter. The default value is 5e-10
m/V.
Dielectric constant
Permittivity or dielectric displacement per unit electric field
measured at constant stress. This parameter is only visible
when you select Specify material properties for the
Parameterization parameter. The default value is 2.124e-08
F/m.
Elastic compliance
Strain produced in a piezoelectric material per unit of stress
applied. This parameter is only visible when you select Specify
material properties for the Parameterization parameter.
The default value is 1.9e-11 m2/N.
Parameterization
Select one of the following methods for dynamic force
parameterization:
• Specify from a datasheet — Provide datasheet parameters
that the block converts to dynamic force values. This is the
default method.
• Specify material properties — Provide material properties
that the block converts to dynamic force values.
1-378
Piezo Stack
1-379
Piezo Stack
+
Positive electrical port
-
Negative electrical port
C
Mechanical translational conserving port
R
Mechanical translational conserving port
1-380
PNP Bipolar Transistor
Description The PNP Bipolar Transistor block uses a variant of the Ebers-Moll
equations to represent an PNP bipolar transistor. The Ebers-Moll
equations are based on two exponential diodes plus two
current-controlled current sources. The PNP Bipolar Transistor block
provides the following enhancements to that model:
V 1 qVBC / ( kTm1 )
I C IS e qVBE /( kTm1 ) e qVBC /( kTm1 ) 1 BC e
1
VA R
1 qVBE /( kTm1 )
I B IS e 1 e
1 qVBC /( kTm1 )
1
F R
Where:
1-381
PNP Bipolar Transistor
EG
ISTs ISTm1 (Ts / Tm1 ) XTI exp (1 Ts / Tm1 )
kTs
1-382
PNP Bipolar Transistor
XTB
T
Fs Fm1 s
Tm1
XTB
T
Rs Rm1 s
Tm1
where:
1-383
PNP Bipolar Transistor
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
Basic The PNP Bipolar Transistor model has the following limitations:
Assumptions
and • The block does not account for temperature-dependent effects on
the junction capacitances.
Limitations
• You may need to use nonzero ohmic resistance and junction
capacitance values to prevent numerical simulation issues, but the
simulation may run faster with these values set to zero.
1-384
PNP Bipolar Transistor
Dialog
Box and
Parameters
Main Tab
Parameterization
Select one of the following methods for block parameterization:
1-385
PNP Bipolar Transistor
1-386
PNP Bipolar Transistor
Voltage Vbe
Base-emitter voltage when the base current is Ib. The [ Vbe Ib ]
data pair must be quoted for when the transistor is in the normal
active region, that is, not in the saturated region. This parameter
is only visible when you select Specify from a datasheet for
the Parameterization parameter. The default value is -0.55 V.
Current Ib for voltage Vbe
Base current when the base-emitter voltage is Vbe. The [ Vbe Ib ]
data pair must be quoted for when the transistor is in the normal
active region, that is, not in the saturated region. This parameter
is only visible when you select Specify from a datasheet for
the Parameterization parameter. The default value is -0.5 mA.
Forward current transfer ratio BF
Ideal maximum forward current gain. This parameter is only
visible when you select Specify using equation parameters
directly for the Parameterization parameter. The default
value is 100.
Saturation current IS
Transistor saturation current. This parameter is only visible when
you select Specify using equation parameters directly for
the Parameterization parameter. The default value is 1e-14 A.
Forward Early voltage VAF
In the standard Ebers-Moll equations, the gradient of the
Ic versus Vce curve is zero in the normal active region. The
additional forward Early voltage term increases this gradient.
The intercept on the Vce-axis is equal to –VAF when the linear
region is extrapolated. This parameter is only visible when you
select Specify using equation parameters directly for the
Parameterization parameter. The default value is 200 V.
Reverse current transfer ratio BR
Ideal maximum reverse current gain. This value is often not
quoted in manufacturer datasheets because it is not significant
when the transistor is biased to operate in the normal active
1-387
PNP Bipolar Transistor
region. When the value is not known and the transistor is not to
be operated on the inverse region, use the default value of 1.
Measurement temperature
Temperature Tm1 at which Vbe and Ib, or IS, are measured. The
default value is 25 C.
Collector resistance RC
Resistance at the collector. The default value is 0.01 Ω.
Emitter resistance RE
Resistance at the emitter. The default value is 1e-4 Ω.
Zero bias base resistance RB
Resistance at the base at zero bias. The default value is 1 Ω.
Capacitance Tab
1-388
PNP Bipolar Transistor
Parameterization
Select one of the following methods for temperature dependence
parameterization:
• None Simulate at parameter measurement temperature
— Temperature dependence is not modeled, or the model is
simulated at the measurement temperature Tm1 (as specified
by the Measurement temperature parameter on the Main
tab). This is the default method.
• Model temperature dependence — Provide a value for
simulation temperature, to model temperature-dependent
effects. You also have to provide a set of additional parameters
depending on the block parameterization method. If you
parameterize the block from a datasheet, you have to provide
values for a second [ Vbe Ib ] data pair and h_fe at second
measurement temperature. If you parameterize by directly
specifying equation parameters, you have to provide the values
for XTI, EG, and XTB.
Forward current transfer ratio, h_fe, at second measurement
temperature
Small-signal current gain at second measurement temperature.
This parameter is only visible when you select Specify from a
datasheet for the Parameterization parameter on the Main
tab. It must be quoted at the same collector-emitter voltage and
collector current as for the Forward current transfer ratio
h_fe parameter on the Main tab. The default value is 125.
Voltage Vbe at second measurement temperature
Base-emitter voltage when the base current is Ib and the
temperature is set to the second measurement temperature. The
[Vbe Ib] data pair must be quoted for when the transistor is in
the normal active region, that is, not in the saturated region.
This parameter is only visible when you select Specify from a
datasheet for the Parameterization parameter on the Main
tab. The default value is -0.45 V.
1-389
PNP Bipolar Transistor
1-390
PNP Bipolar Transistor
B
Electrical conserving port associated with the transistor base
terminal
C
Electrical conserving port associated with the transistor collector
terminal
E
Electrical conserving port associated with the transistor emitter
terminal
[2] H. Ahmed and P.J. Spreadbury. Analogue and digital electronics for
engineers. 2nd Edition, Cambridge University Press, 1984.
1-391
Positive Supply Rail
Library Sources
Description The Positive Supply Rail block represents an ideal positive supply rail.
Use this block instead of the Simscape DC Voltage Source block to
define the output voltage relative to the Simscape Electrical Reference
block that must appear in each model.
Note Do not attach more than one Positive Supply Rail block to any
connected line.
Dialog
Box and
Parameters
Constant voltage
The voltage at the output port relative to the Electrical Reference
block ground port. The default value is 1 V.
+
Positive electrical voltage
1-392
Potentiometer
R0
RWL = ( x − xmin )
xmax − xmin
where
RWL
⎪
=⎨
( )
⎧ A eλ( x − xmin ) − 1 if resistance gradient is higher at R
(
⎪ R0 − A eλ( xmax − x ) − 1
⎩ ) if resistance gradient is higher at L
where A and λ are chosen such that RWL at xmax is R0, and RWL at x =
(xmax + xmin) / 2 is equal to Rav, the resistance when the wiper is centered.
1-393
Potentiometer
For both linear and logarithmic tapers, the resistance between the
wiper position and port R is:
RWR = R0 − RWL
where
Dialog
Box and
Parameters
1-394
Potentiometer
Total resistance
The resistance between port L and port R when port W is
open-circuit. The default value is 1000Ω.
Residual resistance
The lower limit placed on the resistance between the wiper and
the two end ports. It must be greater than zero. A typical value is
5e-3 times the total resistance. The default value is 1Ω.
Resistance when centered
This parameter is available only if you select LOG for the Taper
parameter. If you select Higher at R for the Resistance
gradient parameter, then Resistance when centered is the
resistance between port L and port W when the wiper is centered.
Otherwise, if you select Higher at R for the Resistance
gradient parameter, then Resistance when centered is the
resistance between port R and port W when the wiper is centered.
Because the resistance taper is exponential in shape, the value
of the Resistance when centered parameter must be less than
half of the Total resistance parameter value. The default value
is 200Ω.
PS input for wiper at L
The value of the input physical signal at port x that corresponds
to the wiper being located at port L. The default value is 0.
PS input for wiper at R
The value of the input physical signal at port x that corresponds
to the wiper being located at port R. The default value is 1.
Taper
Specifies the potentiometer resistance taper behavior: LIN (linear)
or LOG (logarithmic). The default value is LIN.
Resistance gradient
Specifies whether the potentiometer resistance varies more
rapidly at the left or the right end: Higher at L or Higher at R.
This parameter is available only if you select LOG for the Taper
parameter. The default value is Higher at R.
1-395
Potentiometer
L
Electrical port representing the left pin
R
Electrical port representing the right pin
W
Electrical port representing the wiper pin
x
Physical signal input port controlling the wiper position
1-396
Power Sensor
Library Sensors
Description The Power Sensor block calculates the power taken by the load
connected across the + and - terminals under the assumption that only
the load is connected to the + terminal. Refer to the block icon for the
arrangement of internal current and voltage sensors.
The sensor can return either instantaneous power, or power averaged
over a fixed time period. Use the latter option for periodic current and
voltage waveforms such as those associated with PWM control.
The following figure shows how you connect the block to measure power
dissipated in a resistor.
1-397
Power Sensor
Dialog
Box and
Parameters
Measurement type
Select whether you want to measure Instantaneous power or
Average power over a specified period. The default value is
Instantaneous power.
Averaging period
The fixed period of time for measuring the average power. This
parameter is only visible when you select Average power over a
specified period for the Measurement type parameter. The
default value is 1e-4 s.
S
Electrical conserving port connected to the positive supply rail
+
Electrical conserving port connected to the positive terminal of
the load
-
Electrical conserving port connected to the negative terminal of
the load
1-398
Power Sensor
P
Physical signal port that outputs the measured power
1-399
Pressure Transducer
Library Sensors
1-400
Pressure Transducer
Dialog
Box and
Parameters
Pressure range
The maximum pressure that the sensor can measure. The default
value is 1e6 Pa.
Operation mode
Select one of the following options to define the reference point
for the pressure measurement:
• Absolute — The pressure measurement is with respect to zero
absolute pressure, that is, vacuum. This is the default option.
• Gauge — The pressure measurement is with respect to
atmospheric pressure. Atmospheric pressure is defined by the
Gas Properties block in the Simscape Foundation library.
• Sealed-Gauge — The pressure measurement is referenced to
an internal sealed chamber. If you select this option, use the
Reference pressure parameter to specify the reference point
for pressure measurement.
1-401
Pressure Transducer
Reference pressure
The reference pressure in the internal sealed chamber. This
parameter is only visible when you select Sealed-Gauge for the
Operation mode parameter. The default value is 1.01325e5 Pa.
Full-scape deflection
The output voltage when the measured pressure is equal to, or
greater than, the Pressure range parameter value. The default
value is 5 V.
Output resistance
The output resistance of the transducer. The default value is
200 Ω.
Dynamics
Select one of the following options for modeling sensor dynamics:
• No dynamics Suitable for HIL — Do not model sensor
dynamics. Use this option when running your simulation
fixed step or generating code for hardware-in-the-loop testing,
because this avoids the need for a small simulation time step if
the sensor bandwidth is high. This is the default option.
• Model transducer bandwidth — Model sensor dynamics with
a first-order lag approximation, based on the Bandwidth and
the Initial pressure parameter values.
Bandwidth
Determines the value of the sensor lag. This parameter is only
visible when you select Model transducer bandwidth for the
Dynamics parameter. The default value is 5 kHz.
Initial pressure
Determines the initial condition for the lag. This parameter is
only visible when you select Model transducer bandwidth for
the Dynamics parameter. The default value is 0 Pa.
1-402
Pressure Transducer
A
Pneumatic port
+
Positive electrical port
-
Negative electrical port
1-403
Proximity Sensor
Library Sensors
Description The Proximity Sensor block represents a simple proximity sensor. The
sensing distance Z is defined as the distance normal to the sensor
surface at which the sensor detects an object for a given radial offset R,
as shown in the following figure.
Object
Sensor
+ -
1-404
Proximity Sensor
Distance Z
Distance R
Dialog
Box and
Parameters
1-405
Proximity Sensor
R
Radial distance to the sensor
Z
Perpendicular distance to the sensor
+
Positive electrical voltage
-
Negative electrical voltage
1-406
PS Sensor
Library Sensors
Description The PS Sensor block represents a generic linear sensor. The block
converts the physical signal input U into an electrical output Y across
the + and - ports. The Output type parameter value determines which
of the following electrical outputs the block produces:
• Output voltage
• Output current
• Output resistance
Dialog
Box and
Parameters
1-407
PS Sensor
Output type
Indicates whether the sensor output is a Variable voltage of Y
V, a Variable current of Y A, or Variable resistor with a
value of Y Ω. The default value is Variable voltage.
Sensor gain, A
The sensitivity of the output Y with respect to the input U,
dY/dU. The default value is 1.
Sensor offset, B
The output when the input U is zero. The output does not exceed
the limits Ymax and Ymin. The default value is 0.
Maximum output, Ymax
The upper limit on the sensor output. The following table shows
the units of this parameter, which depend on the selected value of
the Output type parameter.
1-408
PS Sensor
U
Physical input signal
+
Positive electrical voltage
-
Negative electrical voltage
1-409
PTC Thermistor
Library Sensors
Description The PTC Thermistor block represents a switching type PTC thermistor.
This type of thermistor has a decreasing resistance with temperature
increasing up to the Curie temperature. Above the Curie temperature
the resistance increases very rapidly with increasing temperature,
as shown in the following plot. The region to the right of the Curie
temperature is called the Positive Temperature Coefficient (PTC)
regime. To represent a non-switching linear PTC thermistor, use the
Thermal Resistor block.
1-410
PTC Thermistor
R e0 T T0
for T < Tc
R 0
R1 e1 T T1 for T Tc
where:
dT
Q = K d tc
dt
where:
1-411
PTC Thermistor
Dialog
Box and
Parameters
Electrical Tab
Nominal resistance R0 at T0
The nominal resistance of the thermistor at the nominal
temperature. Many datasheets quote the nominal resistance at
25°C and list it as R25. The default value is 1000 Ω.
Temperature coefficient alpha0 at T0
The temperature coefficient at the nominal temperature. The
value must be less than zero. The default value is -0.01 1/K.
1-412
PTC Thermistor
Nominal temperature T0
The temperature at which the nominal resistance is measured.
The default value is 298.15 K.
Reference resistance R1 at T1
The reference resistance of the thermistor at the reference
temperature. The default value is 10000 Ω.
Temperature coefficient alpha1 at T1
The temperature coefficient at the reference temperature. The
value must be greater than zero. The default value is 1 1/K.
Reference temperature T1
The temperature at which the reference resistance is measured.
This temperature must be in the PTC regime. The default value
is 398.15 K.
Thermal Tab
A
Thermal port
+
Positive electrical port
1-413
PTC Thermistor
-
Negative electrical port
1-414
Pulse Current Source
Description The Pulse Current Source block represents a current source whose
output current value is a periodic square pulse as a function of time
and is independent of the voltage across the terminals of the source.
The following equations describe the current through the source as a
function of time:
I out ( 0 ) = I1
I out (TD ) = I1
I out (TD + TR ) = I 2
I out (TD + TR + PW ) = I 2
I out (TD + TR + PW + TF ) = I1
I out (TD + PER ) = I1
where:
1-415
Pulse Current Source
The specified values for PW and PER have the following effect on the
block output:
• If both PW and PER are infinite, the block produces a step response
at time TD.
• If PER is infinite and PW is finite, the block produces a single pulse
of width PW and infinite period.
• If PW is infinite and PER is finite, the block produces a step response
with pulses of width TR to a value I1 every PER seconds.
• If PW > PER, the block produces a step response with pulses of width
TR to a value I1 every PER seconds.
1-416
Pulse Current Source
Dialog
Box and
Parameters
Initial value, I1
The value of the output current at time zero. The default value
is 0 A.
1-417
Pulse Current Source
Pulse value, I2
The value of the output current when the output is high. The
default value is 0 A.
Pulse delay time, TD
The time at which the pulse first starts. The default value is 0 s.
Pulse rise time, TR
The time it takes the output current to rise from the Initial
value, I1 value to the Pulse value, I2 value. The default value is
1e-09 s. The value must be greater than or equal to 0.
Pulse fall time, TF
The time it takes the output current to fall from the Pulse value,
I2 value to the Initial value, I1 value. The default value is 1e-09
s. The value must be greater than or equal to 0.
Pulse width, PW
The time width of the output pulse. The default value is Inf s.
The value must be greater than 0.
Pulse period, PER
The period of the output pulse. The default value is Inf s. This
value means that the block produces a single pulse with an
infinite period. The value must be greater than 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-418
Pulse Voltage Source
Description The Pulse Voltage Source block represents a voltage source whose
output voltage value is a periodic square pulse as a function of time
and is independent of the current through the source. The following
equations describe the output voltage as a function of time:
Vout ( 0 ) = V 1
Vout (TD ) = V 1
Vout (TD + TR ) = V 2
Vout (TD + TR + PW ) = V 2
Vout (TD + TR + PW + TF ) = V 1
Vout (TD + PER ) = V 1
where:
1-419
Pulse Voltage Source
• If both PW and PER are infinite, the block produces a step response
at time TD.
• If PER is infinite and PW is finite, the block produces a single pulse
of width PW and infinite period.
• If PW is infinite and PER is finite, the block produces a step response
with pulses of width TR to a value V1 every PER seconds.
• If PW > PER, the block produces a step response with pulses of width
TR to a value V1 every PER seconds.
1-420
Pulse Voltage Source
Dialog
Box and
Parameters
Initial value, V1
The value of the output voltage at time zero. The default value
is 0 V.
1-421
Pulse Voltage Source
Pulse value, V2
The value of the output voltage when the output is high. The
default value is 0 V.
Pulse delay time, TD
The time at which the pulse first starts. The default value is 0 s.
Pulse rise time, TR
The time it takes the output voltage to rise from the Initial
Value, I1 value to the Pulse Value, V2 value. The default value
is 1e-09 s. The value must be greater than or equal to 0.
Pulse fall time, TF
The time it takes the output voltage to fall from the Pulse Value,
V2 value to the Initial Value, V1 value. The default value is
1e-09 s. The value must be greater than or equal to 0.
Pulse width, PW
The time width of the output pulse. The default value is Inf s.
Pulse period, PER
The period of the output pulse. The default value is Inf s. This
value means that the block produces a single pulse with an
infinite period.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-422
Push-Pull Output
1-423
Push-Pull Output
Both Linear and Quadratic output models add an offset and scale the
physical input X so that the gate voltage is given by:
Vg = k · ( X + c )
where
1-424
Push-Pull Output
The offset and scaling can be used, for example, to match logical values
for X (that is, range [0,1] ) to [V-, V+] at the output pin. For example,
if V+ = 10V and V- = 0, then to match the signal logical values to this
voltage range, set c = -1 and k = -10.
For both Linear and Quadratic output models, the protection diodes
D1 and D2 act to limit the output voltage range. These diodes are
Diode blocks from the Simscape Foundation library, that is, piecewise
linear diodes defined by their forward voltage and on resistance. If the
voltage across D1 rises above the forward voltage, then the diode starts
to conduct, and provided that the on resistance is low, it effectively
prevents the output rising above V+ plus the diode forward voltage
drop. An equivalent behavior results if the output voltage drops too low.
The output model is very similar to that used for the logic blocks. For
a plot of a typical output V-I characteristic when using the Quadratic
output model, see Selecting the Output Model for Logic Blocks.
1-425
Push-Pull Output
Dialog
Box and
Parameters
1-426
Push-Pull Output
1-427
Push-Pull Output
1-428
Push-Pull Output
Ports The block has one input physical signal port X and one electrical
conserving port that outputs the resulting voltage.
1-429
PVCCS
n −1 n
Iout = p(0) + p(1) * Vin + ... + p(n − 1) * Vin + p(n) * Vin
Iout = p * Vin
where:
1-430
PVCCS
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input voltage to the
output current, as described in the preceding section. The default
value is [ 0 1 ].
+
Positive electrical input voltage.
-
Negative electrical input voltage.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-431
PVCCS
1-432
PVCCS2
1-433
PVCCS2
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input voltage to the
output current, as described in the preceding section. The default
value is [ 0 1 1 ].
+1
Positive electrical input voltage of first controlling source.
-1
Negative electrical input voltage of first controlling source.
+2
Positive electrical input voltage of second controlling source.
-2
Negative electrical input voltage of second controlling source.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-434
PVCVS
n −1 n
Vout = p(0) + p(1) * Vin + ... + p(n − 1) * Vin + p(n) * Vin
Vout = p * Vin
where:
1-435
PVCVS
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input voltage to the
output voltage, as described in the preceding section. The default
value is [ 0 1 ].
+
Positive electrical input voltage.
-
Negative electrical input voltage.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-436
PVCVS
1-437
PVCVS2
1-438
PVCVS2
Dialog
Box and
Parameters
Polynomial coefficients
The polynomial coefficients that relate the input voltage to the
output voltage, as described in the preceding section. The default
value is [ 0 1 1 ].
+1
Positive electrical input voltage of first controlling source.
-1
Negative electrical input voltage of first controlling source.
+2
Positive electrical input voltage of second controlling source.
-2
Negative electrical input voltage of second controlling source.
N+
Positive electrical output voltage.
N-
Negative electrical output voltage.
1-439
PWL Current Source
Description The PWL Current Source block represents a current source that you
specify in lookup table form using a vector of time values and a vector
of the corresponding current values. You must specify at least four
time-current value pairs. The block generates a time-dependent current
based on these time-current values using the selected interpolation
and extrapolation methods. You have a choice of three interpolation
methods and two extrapolation methods. The output current is
independent of the voltage across the terminals of the source.
The block uses a small conductance internally to prevent numerical
simulation issues. The conductance connects the + and - ports of the
device and has a conductance GMIN:
1-440
PWL Current Source
Dialog
Box and
Parameters
Time specification
The vector of time values as a tabulated 1-by-n array. The time
values vector must be strictly monotonically increasing. The
values can be non-uniformly spaced. The default value is [ 0
1 2 3 4 ] s.
Current at specified time
The vector of current values as a tabulated 1-by-n array. The
current values vector must be the same size as the time values
vector. The default value is [ 0 0 0 0 0 ] A.
Interpolation method
Select the method the block uses determine the output current
values at intermediate time points that are not specified in the
preceding vectors:
• Linear — Use a linear function. This is the default method.
1-441
PWL Current Source
+
Positive electrical voltage.
-
Negative electrical voltage.
References [1] D. Kahaner, Cleve Moler, and Stephen Nash Numerical Methods
and Software Prentice Hall, 1988.
1-442
PWL Current Source
[2] W.H. Press, B.P. Flannery, S.A. Teulkolsky, and W.T. Wetterling
Numerical Recipes in C: The Art of Scientific Computing Cambridge
University Press, 1992.
1-443
PWL Voltage Source
Description The PWL Voltage Source block represents a voltage source that you
specify in lookup table form using a vector of time values and a vector
of the corresponding voltage values. You must specify at least four
time-current value pairs. The block generates a time-dependent voltage
based on these time-voltage values using the selected interpolation
and extrapolation methods. You have a choice of three interpolation
methods and two extrapolation methods. The output voltage is
independent of the current through the source.
Dialog
Box and
Parameters
Time specification
The vector of time values as a tabulated 1-by-n array. The time
values vector must be strictly monotonically increasing. The
values can be non-uniformly spaced. The default value is [ 0
1 2 3 4 ] s.
1-444
PWL Voltage Source
1-445
PWL Voltage Source
+
Positive electrical voltage.
-
Negative electrical voltage.
References [1] D. Kahaner, Cleve Moler, and Stephen Nash Numerical Methods
and Software Prentice Hall, 1988.
[2] W.H. Press, B.P. Flannery, S.A. Teulkolsky, and W.T. Wetterling
Numerical Recipes in C: The Art of Scientific Computing Cambridge
University Press, 1992.
1-446
Relay
• When the relay closes, the C to S1 connection breaks open after delay
Time-to-break C-S1 connection. The C to S2 connection closes
after delay Time-to-make C-S2 connection.
• When the relay opens, the C to S2 connection breaks open after delay
Time-to-break C-S2 connection. The C to S1 connection closes
after delay Time-to-make C-S1 connection.
You can specify break delays that are longer than the close delays to
implement a make-before-break behavior.
Basic If the PS input changes during the switching process, the block
Assumptions behavior can be inaccurate. The switching delay occurs due to both
and mechanical inertia and the fact that modeling inertia as a delay
requires approximation.
Limitations
1-447
Relay
Dialog
Box and
Parameters
1-448
Relay
Connected resistance R
Resistance across closed relay contacts. The parameter value
must be greater than zero. The default value is 0.01 Ω.
Open-circuit conductance G
Conductance across open relay contacts. The parameter value
must be greater than zero. The default value is 1e-08 1/Ω.
Threshold
If the physical signal input rises above this value, the relay is
energized. Conversely, if the physical signal input falls below this
value, the relay is de-energized. The default value is 0.
Initial connection
For the initial state of the relay, select one of the following options:
• C to S1 closed, C to S2 open — The common port C
connects to the S1 contact. This is the default option.
• C to S1 open, C to S2 closed — The common port C
connects to the S2 contact.
PS
Physical signal that energizes and de-energizes the relay
C
Common electrical port
S1
Normally-closed electrical port
S2
Normally-open electrical port
1-449
Resistor
Description The Resistor block models a linear resistor, described with the following
equation:
iv R
where:
• i is the current.
• v is the voltage.
• R is the resistance.
Optionally, the Resistor block can generate thermal noise current. If you
set the Noise mode parameter to Enabled, then the defining equations
are augmented by a discrete variable iN to represent thermal noise:
i v R iN
N 0, 1
iN 2kT R
h
where:
1-450
Resistor
Noise Options
The block generates Gaussian noise by using the Random Number
source in the Simscape Foundation library. You can control the random
number seed by setting the Repeatability parameter:
seed = randi(2^32-1);
Basic Simulating with noise enabled slows down simulation. Choose the
Assumptions sample time (h) so that noise is generated only at frequencies of interest,
and and not higher.
Limitations
1-451
Resistor
Dialog
Box and
Parameters
Main Tab
Resistance
The resistance value. The default value is 1 Ω.
Noise Tab
Noise mode
Select the noise option:
• Disabled — No noise is produced by the resistor. This is the
default.
• Enabled — Resistor generates thermal noise current, and the
associated parameters become visible on the Noise tab.
Device simulation temperature
The temperature of the thermal resistor at the start of the
simulation. The default value is 25 °C.
Sample time
Defines the rate at which the noise source is sampled. Choose
it to reflect the frequencies of interest in your model. Making
1-452
Resistor
the sample time too small will unnecessarily slow down your
simulation. The default value is 1e-3 s.
Repeatability
Select the noise control option:
• Not repeatable — The random sequence used for noise
generation is not repeatable. This is the default.
• Repeatable — The random sequence used for noise generation
is repeatable, with a system-generated seed.
• Specify seed — The random sequence used for noise
generation is repeatable, and you control the seed by using the
Seed parameter.
Seed
Random number seed used by the noise random number
generator. This parameter is visible only if you select Specify
seed for the Repeatability parameter. The default value is 0.
+
Positive electrical port
-
Negative electrical port
1-453
Resolver
Library Sensors
Description The Resolver block models a generic resolver, which consists of a rotary
transformer that couples an AC voltage applied to the primary winding
to two secondary windings. These secondary windings are physically
oriented at 90 degrees to each other. As the rotor angle changes, the
relative coupling between the primary and the two secondary windings
varies. In the Resolver block model, the first secondary winding is
oriented such that peak coupling occurs when the rotor is at zero
degrees, and therefore the second secondary winding has minimum
coupling when the rotor is at zero degrees.
1-454
Resolver
Kx = R cos(N Θ)
Ky = R sin(N Θ)
v x = K xv p
v y = K yv p
ip = –Kxix – Kyiy
where:
• vp and ip are the rotor (or equivalently primary) voltage and current,
respectively.
• vx and ix are the first secondary voltage and current, respectively.
• vy and iy are the second secondary voltage and current, respectively.
• Kx is the coupling coefficient for the first secondary winding.
1-455
Resolver
di p di diy
v p R pi p L p L p Ls k cos N x sin N
dt dt dt
dix di p
vx Rs ix Ls L p Ls k cos N
dt dt
diy di p
vy Rs iy Ls L p Ls k sin N
dt dt
where:
• vp and ip are the rotor (or equivalently primary) voltage and current,
respectively.
• vx and ix are the first secondary voltage and current, respectively.
• vy and iy are the second secondary voltage and current, respectively.
• Rp is the rotor (or primary) resistance.
• Lp is the rotor (or primary) inductance.
• Rs is the stator (or secondary) resistance.
• Ls is the stator (or secondary) inductance.
1-456
Resolver
Dialog
Box and
Parameters
1-457
Resolver
Parameterization
Select one of the following methods for block parameterization:
• Specify transformation ratio and omit dynamics —
Provide values for transformation ratio, number of pole
pairs, and initial rotor angle only. This model neglects the
transformer inductive terms, and is only valid if the sensor
is driven by a sine wave. The equations are based on the
superposition of two ideal transformers, both with coupling
coefficients that depend on rotor angle. For more information,
see “Equations when Omitting Dynamics” on page 1-455. This
is the default option.
• Specify transformation ratio and measured impedances
— Provide additional values to determine the transformer
inductive terms, to model the voltage amplitude loss and
phase differences. This model is valid for any input waveform.
The equations are based on the superposition of two mutual
inductors, both with coupling coefficients that depend on rotor
angle. For more information, see “Equations when Including
Dynamics” on page 1-456.
• Specify equation parameters directly — Model the
dynamics, but provide values for rotor and stator inductances
and the peak coefficient of coupling, instead of transformation
ratio and measured impedances. For more information, see
“Equations when Including Dynamics” on page 1-456. This
model is valid for any input waveform.
Transformation ratio
The ratio between peak output voltage and peak input voltage
assuming negligible secondary voltage drop due to resistance
and inductance. This parameter is only visible when you
select Specify transformation ratio and omit dynamics or
Specify transformation ratio and measured impedances
for the Parameterization parameter. If you select Specify
transformation ratio and measured impedances for the
Parameterization parameter, then the transformation ratio
1-458
Resolver
1-459
Resolver
Rotor inductance
This is the rotor (or equivalently the primary) inductance Lp. This
parameter is only visible when you select Specify equation
parameters directly for the Parameterization parameter.
The default value is 0.0016 H.
Stator inductance
This is the stator (or equivalently the secondary) inductance Ls.
This parameter is only visible when you select Specify equation
parameters directly for the Parameterization parameter.
The default value is 0.0048 H.
Peak coefficient of coupling
This is the peak coefficient of coupling between the primary and
secondary windings. The parameter value should be greater than
zero and less than one. This parameter is only visible when
you select Specify equation parameters directly for the
Parameterization parameter. The default value is 0.35.
Number of pole pairs
The number of pole pairs on the rotor. The default value is 1.
Initial rotor angle
The initial angle of the rotor, Θ. The default value is 0 degrees.
p1, p2
Electrical ports of the primary winding
x1, x2
Electrical ports of the first secondary winding
y1, y2
Electrical ports of the second secondary winding
R, C
Mechanical rotational ports
1-460
S-R Latch
Library Logic
If the gate voltage is greater than the threshold voltage VTH , then
the input taken is 1 (HIGH). Otherwise, the input is zero (LOW). The
gate threshold voltage VTH is halfway between the Low level input
voltage ( VIL ) and High level input voltage ( VIH ) parameters.
The block output logic level is either HIGH or LOW, according to the
logic levels of the gate inputs and the S-R latch truth table.
S R Q
0 0 0
0 1 0
1 0 1
1 1 1
• The gate inputs have infinite resistance and finite or zero capacitance.
• The gate output offers a selection of two models: Linear and
Quadratic. For more information, see “Selecting the Output Model
for Logic Blocks”. Use the Output current-voltage relationship
parameter to specify the output model.
• You can specify propagation delay for both output models. For Linear
output, the block sets the value of the gate output capacitor such that
1-461
S-R Latch
• For Linear model, output high is the High level output voltage
parameter value, and output low is the Low level output voltage
parameter value.
• For Quadratic model, the output voltage for High and Low states is
a function of the output current, as explained in “Quadratic Model
Output and Parameters”. For zero load current, output high is Vcc
(the Supply voltage parameter value), and output low is zero volts.
Basic The block does not model the internal individual MOSFET devices
Assumptions that make up the gate (except for the final MOSFET pair if you select
and the Quadratic option for the Output current-voltage relationship
parameter). This limitation has the following implications:
Limitations
• The behavior of this block is abstracted. In particular, response to
input noise and inputs that are around the logic threshold voltage
can be inaccurate. Also, dynamic response is approximate.
• The linear drop in output voltage as a function of output current is
an approximation to the MOSFET or bipolar output behavior.
• Modeling of the output as a controlled voltage source is representative
of a totem-pole or push-pull output stage. To model a device with an
open-collector:
1 Connect the output pin to the base of an NPN Bipolar Transistor
or PNP Bipolar Transistor block.
2 Set the Output resistance parameter to a suitable value.
1-462
S-R Latch
Dialog
Box and
Parameters
Inputs Tab
1-463
S-R Latch
Outputs Tab
1-464
S-R Latch
1-465
S-R Latch
S
Electrical input port corresponding to the set pin
R
Electrical input port corresponding to the reset pin
Q
Electrical output port corresponding to the output pin
1-466
Servomotor
Specify the torque-speed envelope for the positive torque region only,
that is, quadrants 1 and 4. If you specify only for positive speeds
(quadrant 1 or, equivalently, the motoring region), then the quadrant 4
torque envelope is defined by the block as the mirror image of quadrant
1-467
Servomotor
1. The servomotor torque-speed envelope has the same profile when the
motor is operating in a reverse direction (quadrants 2 and 3).
Instead of providing tabulated torque-speed data, you can specify
a maximum torque and a maximum power. This results in the
torque-speed envelope profile shown below. The other three operating
quadrants are constrained by this same profile.
The block models the electrical losses as the sum of four terms:
• A series resistance between the DC power supply and the motor drive.
• Fixed losses independent of torque and speed, P0. Use this to account
for fixed converter losses.
• A torque-dependent electrical loss kτ2, where τ is the torque and k is
a constant. This represents ohmic losses in the copper windings.
• A speed-dependent electrical loss kwω2, where ω is the speed and kw
is a constant. This represents iron losses due to eddy currents.
1-468
Servomotor
Thermal Ports
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
1-469
Servomotor
Dialog
Box and
Parameters
Parameterize by
Select one of the following methods for block parameterization:
• Tabulated torque-speed envelope — Provide the vectors of
rotational speeds and corresponding maximum torque values.
This is the default option.
1-470
Servomotor
1-471
Servomotor
00
100
00 P0 k 02 kw 2
where:
• τ0 represents the Torque at which efficiency is measured.
• ω0 represents the Speed at which efficiency is measured.
• P0 represents the Fixed losses independent of torque or
speed.
1-472
Servomotor
Mechanical Tab
Rotor inertia
Rotor resistance to change in motor motion. The default value is
5e-06 kg*m2. The value can be zero.
Rotor damping
Rotor damping. The default value is 1e-05 N*m/(rad/s). The
value can be zero.
Initial rotor speed
Rotor speed at the start of the simulation. The default value is
0 rpm.
+
Positive electrical DC supply
-
Negative electrical DC supply
Tr
Reference torque demand
w
Mechanical speed output
C
Mechanical rotational conserving port
R
Mechanical rotational conserving port
1-473
SFFM Current Source
1-474
SFFM Current Source
Dialog
Box and
Parameters
Current offset, IO
The magnitude of the time-independent part of the output
current. The default value is 0 A.
Current amplitude, IA
The magnitude of the sinusoidal part of the output current. The
default value is 0 A.
Carrier frequency, FC
Frequency of the carrier wave. The default value is 0 Hz. The
value must be greater than or equal to 0.
1-475
SFFM Current Source
Modulation index, MI
The amount by which the modulated signal varies around its
unmodulated level. The default value is 0. The value must be
greater than or equal to 0.
Signal frequency, FS
Frequency of the modulated signal. The default value is 0 Hz. The
value must be greater than or equal to 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-476
SFFM Voltage Source
1-477
SFFM Voltage Source
Dialog
Box and
Parameters
Voltage offset, VO
The magnitude of the time-independent part of the output voltage.
The default value is 0 V.
Voltage amplitude, VA
The magnitude of the sinusoidal part of the output voltage. The
default value is 0 V.
Carrier frequency, FC
Frequency of the carrier wave. The default value is 0 Hz. The
value must be greater than or equal to 0.
1-478
SFFM Voltage Source
Modulation index, MI
The amount by which the modulated signal varies around its
unmodulated level. The default value is 0. The value must be
greater than or equal to 0.
Signal frequency, FS
Frequency of the modulated signal. The default value is 0 Hz. The
value must be greater than or equal to 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-479
Shunt Motor
Description The Shunt Motor block represents the electrical and torque
characteristics of a shunt motor using the following equivalent circuit
model.
ia if
Ra
Rf
La V
+ Lf
vb
−
• Ra — Armature resistance
• La — Armature inductance
• Rf — Field winding resistance
• Lf — Field winding inductance
1 The magnetic field in the motor induces the following back emf vb in
the armature:
1-480
Shunt Motor
vb = Laf i f
where Laf is a constant of proportionality and ω is the angular
velocity.
2 The mechanical power is equal to the power reacted by the back emf:
T = P / = Laf i f ia
V = ia Ra + Laf i f
V = if Rf
V
if =
Rf
V ⎛ Laf w ⎞
ia = ⎜1 − ⎟
Ra ⎜ Rf ⎟⎠
⎝
1-481
Shunt Motor
Laf ⎛ Laf ⎞ 2
T= ⎜1 − ⎟V
Ra R f ⎜⎝ R f ⎟⎠
The block uses the rated speed and power to calculate the rated
torque. The block uses the rated torque and no-load speed values
to get one equation that relates Ra and Laf/Rf. It uses the no-load
speed at zero torque to get a second equation that relates these two
quantities. Then, it solves for Ra and Laf/Rf.
The block models motor inertia J and damping B for all values of the
Model parameterization parameter. The output torque is:
Laf ⎛ Laf ⎞ 2
Tload = ⎜1 − ⎟ V − J − B
Ra R f ⎜⎝ R f ⎟⎠
Thermal Ports
The block has two optional thermal ports, one per winding, hidden by
default. To expose the thermal ports, right-click the block in your model,
and then from the context menu select Simscape block choices >
Show thermal port. This action displays the thermal ports on the
block icon, and adds the Temperature Dependence and Thermal
port tabs to the block dialog box. These tabs are described further on
this reference page.
Use the thermal ports to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports in actuator blocks, see “Simulating Thermal Effects in
Rotational and Translational Actuators”.
1-482
Shunt Motor
Dialog
Box and
Parameters
Model parameterization
Select one of the following methods for block parameterization:
• By equivalent circuit parameters — Provide electrical
parameters for an equivalent circuit model of the motor. This
is the default method.
1-483
Shunt Motor
1-484
Shunt Motor
Mechanical Tab
Rotor inertia
Rotor inertia. The default value is 2e-04 kg*m2. The value can
be zero.
Rotor damping
Rotor damping. The default value is 1e-06 N*m/(rad/s). The
value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
1-485
Shunt Motor
+
Positive electrical input.
-
Negative electrical input.
C
Mechanical rotational conserving port.
R
Mechanical rotational conserving port.
1-486
Shunt Motor
Hf
Field winding thermal port. For more information, see “Thermal
Ports” on page 1-482.
Ha
Armature winding thermal port. For more information, see
“Thermal Ports” on page 1-482.
1-487
Sinusoidal Current Source
1-488
Sinusoidal Current Source
Dialog
Box and
Parameters
Current offset, I0
The magnitude of the time-independent part of the output
current. The default value is 0 A.
Sinusoidal amplitude, IA
The magnitude of the sinusoidal part of the output current. The
default value is 0 A.
Sinusoidal frequency, FREQ
The frequency of the output sine wave. The default value is 1e+06
Hz. The value can be less than 0.
Time delay, TD
The time at which the sine wave first starts. The default value is
0 s. The value can be less than 0.
1-489
Sinusoidal Current Source
Damping factor, DF
The amount by which to amplify or reduce the exponential
damping term that multiples the sine wave to produce the output
current. The default value is 0 1/s. The value must be greater
than or equal to 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-490
Sinusoidal Voltage Source
1-491
Sinusoidal Voltage Source
Dialog
Box and
Parameters
Voltage offset, V0
The magnitude of the time-independent part of the output voltage.
The default value is 0 V.
Sinusoidal amplitude, VA
The magnitude of the sinusoidal part of the output voltage. The
default value is 0 V.
Sinusoidal frequency, FREQ
The frequency of the output sine wave. The default value is 1e+06
Hz. The value can be less than 0.
Time delay, TD
The time at which the sine wave first starts. The default value is
0 s. The value can be less than 0.
1-492
Sinusoidal Voltage Source
Damping factor, DF
The amount by which to amplify or reduce the exponential
damping term that multiples the sine wave to produce the output
voltage. The default value is 0 1/s. The value must be greater
than or equal to 0.
+
Positive electrical voltage.
-
Negative electrical voltage.
1-493
Solar Cell
Library Sources
Description The Solar Cell block represents a solar cell current source.
The solar cell model includes the following components:
• Current source
• Two exponential diodes
• Parallel resistor Rp
1-494
Solar Cell
( )
I = I ph − I s * e(V + I *Rs ) /( N*Vt ) − 1 − I s 2 * (e(
V + I *Rs ) ( N 2 *Vt )
− 1) − (V + I * Rs ) R p
where:
Ir
I ph = I ph 0 ×
Ir 0
where:
- Ir is the irradiance (light intensity) in W/m2 falling on the cell.
- Iph0 is the measured solar-generated current for the irradiance Ir0.
• Is is the saturation current of the first diode.
• Is2 is the saturation current of the second diode.
• Vt is the thermal voltage, kT/q, where:
- k is the Boltzmann constant.
1-495
Solar Cell
The quality factor varies for amorphous cells, and is typically 2 for
polycrystalline cells.
The block lets you choose between two models:
If you choose the 5-parameter model, you can parameterize this block in
terms of the preceding equivalent circuit model parameters or in terms
of the short-circuit current and open-circuit voltage the block uses to
derive these parameters.
All models adjust the block resistance and current parameters as a
function of temperature.
You can model any number of solar cells connected in series using a
single Solar Cell block by setting the parameter Number of series
cells to a value larger than 1. Internally the block still simulates
only the equations for a single solar cell, but scales up the output
voltage according to the number of cells. This results in a more efficient
simulation than if equations for each cell were simulated individually.
If you want to model N cells in parallel, you can do so for single cells by
scaling the parameter values accordingly. That is, multiply short-circuit
1-496
Solar Cell
Temperature Dependence
Several solar cell parameters depend on temperature. The solar cell
temperature is specified by the Device simulation temperature
parameter value.
The block provides the following relationship between the solar-induced
current Iph and the solar cell temperature T:
I ph (t ) = I ph * (1 + TIPH 1 * (T − Tmeas ) )
where:
(TXIS 1 N ) ⎛ ⎛ T ⎞
( N *Vt ) ⎟⎟
⎞
⎛ T ⎞ ⎜⎜ EG*⎜ −1⎟
I s1 (T ) = I s1 * ⎜ ⎟ *e ⎝ ⎝ Tmeas ⎠ ⎠
⎝ Tmeas ⎠
where TXIS1 is the Temperature exponent for Is, TXIS1 parameter
value.
The block provides the following relationship between the saturation
current of the second diode Is2 and the solar cell temperature T:
⎛ T ⎞( )
TXIS 2 ⎛ ⎛ T ⎞ ⎞
N2 ⎜⎜ EG*⎜⎜ −1⎟⎟ ( N 2 *Vt ) ⎟⎟
I s 2 (T ) = I s 2 * ⎜ ⎟ *e ⎝ ⎝ Tmeas ⎠ ⎠
⎝ Tmeas ⎠
1-497
Solar Cell
TRS 1
⎛ T ⎞
Rs (T ) = Rs * ⎜ ⎟
⎝ Tmeas ⎠
where TRS1 is the Temperature exponent for Rs, TRS1 parameter
value.
The block provides the following relationship between the parallel
resistance Rp and the solar cell temperature T:
TRP1
⎛ T ⎞
R p (T ) = R p * ⎜ ⎟
⎝ Tmeas ⎠
where TRP1 is the Temperature exponent for Rp, TRP1 parameter
value.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
The thermal port model, shown in the following illustration, represents
just the thermal mass of the device. The thermal mass is directly
connected to the component thermal port H. An internal Ideal Heat
Flow Source supplies a heat flow to the port and thermal mass. This
heat flow represents the internally generated heat.
1-498
Solar Cell
1-499
Solar Cell
Dialog
Box and
Parameters
Parameterize by
Select one of the following methods for block parameterization:
1-500
Solar Cell
1-501
Solar Cell
1-502
Solar Cell
Configuration Tab
1-503
Solar Cell
Thermal mass
The heat energy required to raise the temperature of the solar cell
by one degree. When modeling more than one cell in series, specify
the thermal mass for a single cell. This value gets multiplied
internally by the number of cells to determine the total thermal
mass. The default value is 100 J/K.
Initial temperature
The temperature of the solar cell at the start of simulation. The
default value is 25 C.
Ir
Incident irradiance
+
Positive electrical voltage
-
Negative electrical voltage
1-504
Solar Cell
1-505
Solenoid
Ferromagnetic core
Plunger Spring
d k
Magnetic λ
Winding x(t) force, Fe (t)
Load, F1
The return spring is optional. To remove the effects of this spring from
the model, set the Spring constant parameter to 0.
The equation of motion for the plunger as a function of position, x, is:
Fl + mx + x + kx = Fe
where Fe is the electromagnetic force, Fl is the load force, λ is the viscous
damping term and m is the plunger mass. The electromagnetic force is
related to the solenoid current and inductance by:
1 ∂L( x)
Fe = i 2
2 ∂x
1-506
Solenoid
∂L( x) −
=
∂x ( + x )
2
where α and β are constants. Plugging the preceding equation into the
equation for electromagnetic force gives the force-stroke relationship of
the solenoid for a current i0:
1 −
F = i0 2
2 ( + x ) 2
The Solenoid block solves for α and β by taking the two specified force
and stroke measurements and substituting them into the preceding
equation. It solves the resulting equations for α and β.
A positive current from the electrical + to - ports creates a negative force
(i.e., a pulling force) from the mechanical C to R ports.
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from
the context menu select Simscape block choices > Show thermal
port. This action displays the thermal port H on the block icon, and
adds the Temperature Dependence and Thermal port tabs to the
block dialog box.
Use the thermal port to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
thermal ports and on the Temperature Dependence and Thermal
port tab parameters, see “Simulating Thermal Effects in Rotational
and Translational Actuators”.
1-507
Solenoid
Dialog
Box and
Parameters
1-508
Solenoid
X2 F1
>
X1 F2
The default value is [ 1 5 ] mm.
Rated voltage Vdc
The voltage at which the solenoid is rated to operate. This voltage
value is used to measure the Forces [F1 F2] and Stroke [X1 X2]
values. The default value is 50 V.
Rated current Idc
The current that flows when the solenoid is supplied with the
Rated voltage Vdc voltage. The default value is 0.05 A.
Mechanical Tab
Spring constant
Constant representing the stiffness of the spring that acts to
retract the plunger when the solenoid is powered off. The force is
zero when the plunger is displaced to the Stroke for zero spring
force parameter value. The default value is 200 N/m. Set the
spring constant to zero if there is no spring.
Stroke for zero spring force
The stroke at which the spring provides no force. The default
value is 5 mm.
1-509
Solenoid
Damping
The term λ in the equation of motion for the plunger as a function
of position that linearly damps the plunger motion. The default
value is 1 N/(m/s). The value can be zero.
Plunger mass
The weight of the solenoid plunger. The default value is 0.05 kg.
The value can be zero.
Maximum stroke
The maximum amount by which the plunger can be displaced. You
can use this parameter to model a hard endstop that limits the
stroke. The default value is Inf mm, which means no stroke limit.
Initial plunger position
The amount by which the plunger is displaced at the start of the
simulation. The default value is 0 m.
Contact stiffness
Stiffness of the plunger contact that models the hard stop at the
minimum (x = 0) and maximum (x = Maximum stroke) plunger
positions. The default value is 1e+06 N/m.
Contact damping
Damping of the plunger contact that models the hard stop at the
minimum (x = 0) and maximum (x = Maximum stroke) plunger
positions. The default value is 500 N/(m/s).
+
Positive electrical input
-
Negative electrical input
C
Mechanical translational conserving port
R
Mechanical translational conserving port
1-510
Solenoid
1-511
SPDT Switch
Dialog
Box and
Parameters
1-512
SPDT Switch
Main Tab
Closed resistance
Resistance between the c and s electrical ports when the switch is
closed. The value must be greater than zero. The default value
is 0.01 Ω.
Open conductance
Conductance between the c and s electrical ports when the switch
is open. The value must be greater than zero. The default value
is 1e-6 S.
Threshold
The threshold voltage for the control physical signal input vT
above which the switch will turn on. The default value is 0 V.
Dynamics Tab
Model dynamics
Select whether the block models a switching delay:
• No dynamics — Do not model the delay. This is the default
option.
• Model turn-on and turn-off times — Use additional
parameters to model a delay between the point at which the
voltage at vT passes the threshold and the switch opening or
closing.
Turn-on delay
Time between the input voltage exceeding the threshold voltage
and the switch closing. This parameter is only visible when
you select Model turn-on and turn-off times for the Model
dynamics parameter. The value must be greater than zero. The
default value is 1e-3 seconds.
1-513
SPDT Switch
Turn-off delay
Time between the input voltage falling below the threshold
voltage and the switch opening. This parameter is only visible
when you select Model turn-on and turn-off times for the
Model dynamics parameter. The value must be greater than
zero. The default value is 1e-3 seconds.
Initial input value, vT
The value of the physical signal input vT at time zero. This
value is used to initialize the delayed control voltage parameter
internally. This parameter is only visible when you select
Model turn-on and turn-off times for the Model dynamics
parameter. The default value is 0 V.
vT
Physical signal that opens and closes the switch
c, s1, s2
Electrical conserving ports
1-514
SPICE Diode
Current-Voltage Model
The block provides the following relationship between the diode current
Id and the diode voltage Vd after adjusting the applicable model
parameters for temperature.
Vd > 80 * Vt ⎛⎛V ⎞ ⎞
I d = IS ⎜ ⎜ d − 79 ⎟ e80 − 1⎟ + Vd * G min
⎜ V ⎟
⎝⎝ t ⎠ ⎠
1-515
SPICE Diode
−3* Vt > Vd ≥ − BV ⎛ 27 ⎞
I d = − IS ⎜1 + ⎟ + Vd * G min
⎜ (V / V ) e ⎟
3 3
⎝ d t ⎠
Vd < − BV
(
I d = − IBV * e(-(BV +Vd )/Vt − 1 − )
⎛ ⎛ ⎞
3
⎞
⎜ ⎟
IS * ⎜1 − ⎜ ⎟
3
⎜ e * BV ⎟ ⎟ +Vd * G min
⎜ ⎜⎝ Vt ⎟
⎠ ⎟
⎝ ⎠
Where:
• Vt = N * k * T/q
• N is the Emission coefficient, ND parameter value.
• q is the elementary charge on an electron.
• k is the Boltzmann constant.
• T is the diode temperature:
- If you select Device temperature for the Model temperature
dependence using parameter, T is the sum of the Circuit
temperature value plus the Offset local circuit temperature,
TOFFSET parameter value. The Circuit temperature value
comes from the SPICE Environment Parameters block, if one
exists in the circuit. Otherwise, it comes from the default value
for this block.
1-516
SPICE Diode
1− MG
Vd < FC * VJ ⎛ V ⎞
1 − ⎜1 − d ⎟
Qd = TT * I d + CJO* VJ * ⎝
VJ ⎠
1 − MG
Vd ≥ FC * VJ Qd = TT * I d +
⎛
⎜
⎛ MG ⎞
F 3 * (Vd - FC * VJ ) + ⎜ (
⎟ * Vd - ( FC * VJ )
⎝ 2 * VJ ⎠
2 2
) ⎟⎞
CJO * ⎜ F1 + ⎟
⎜ F2 ⎟
⎜ ⎟
⎝ ⎠
Where:
1-517
SPICE Diode
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the diode temperature is the Fixed
circuit temperature, TFIXED parameter value.
1-518
SPICE Diode
⎛ T ⎞ EG
XTI ⎜⎜ −1⎟⎟*
IS (T ) = IS * (T Tmeas ) ND *e ⎝ Tmeas ⎠ Vt
where:
⎛ T ⎞ 3* k * T ⎛ T ⎞ ⎛ T ⎞
VJ (T ) = VJ * ⎜ ⎟- * log ⎜ ⎟-⎜ ⎟ * EGTmeas + EGT
⎝ Tmeas ⎠ q ⎝ Tmeas ⎠ ⎝ Tmeas ⎠
where:
1-519
SPICE Diode
⎡ ⎛ VJ (T ) -VJ ⎞⎤
CJO(T ) = CJO* ⎢1 + MG* ⎜ 400e − 6 * (T - Tmeas ) - ⎟⎥
⎣ ⎝ VJ ⎠⎦
where CJO is the Zero-bias junction capacitance CJ0 parameter
value.
1-520
SPICE Diode
1-521
SPICE Diode
Saturation current, IS
The magnitude of the current that the ideal diode equation
approaches asymptotically for very large reverse bias levels. The
default value is 1e-14 A/m2. The value must be greater than or
equal to 0.
Ohmic resistance, RS
The series diode connection resistance. The default value is 0.01
m2*Ω. The value must be greater than or equal to 0.
Emission coefficient, ND
The diode emission coefficient or ideality factor. The default value
is 1. The value must be greater than 0.
1-522
SPICE Diode
1-523
SPICE Diode
Note The SPICE Diode block applies the initial diode voltage
across the junction capacitors and not across the ports.
Initial voltage V0
Diode voltage at the start of the simulation. This parameter
is only visible when you select Yes for the Model junction
capacitance and Yes for the Specify initial condition
parameter. The default value is 0 V.
Note The block applies the initial condition across the diode
junction, so the initial condition is only effective when charge
storage is included, i.e. when one or both of the Zero-bias
junction capacitance CJ0 and Transit time, TT parameters
are greater than zero.
1-524
SPICE Diode
1-525
SPICE Diode
Note The Diode model does not use this parameter at this time.
1-526
SPICE Diode
Temperature Tab
1-527
SPICE Diode
+
Positive electrical voltage.
-
Negative electrical voltage.
1-528
SPICE Environment Parameters
Description The SPICE Environment Parameters block lets you set parameters that
apply to all SPICE-compatible blocks in an electrical network:
• Circuit temperature
• Minimum conductance
1-529
SPICE Environment Parameters
Dialog
Box and
Parameters
Circuit temperature
The temperature of the connected SPICE-compatible blocks. The
default value is 300.15 K.
Minimum conductance GMIN
The minimum conductance used by some blocks. The default
value is 1e-12 1/Ω.
OUT
Electrical output.
1-530
SPICE NJFET
80* Vt ≥ Vgs (
I gs = IS * e
Vgs / Vt
)
− 1 + Vgs * G min
Where:
• Vt = ND * k * T/q
• ND is the Emission coefficient, ND parameter value.
1-531
SPICE NJFET
80* Vt ≥ Vgd (
I gd = IS * e
Vgd / Vt
)
− 1 + Vgd * G min
1-532
SPICE NJFET
current Ids and the drain-source voltage Vds in normal mode ( Vds ≥ 0 )
after adjusting the applicable model parameters for temperature.
Vgs -Vto ≤ 0 I ds = 0
Where:
current Ids and the drain-source voltage Vds in inverse mode ( Vds < 0 )
after adjusting the applicable model parameters for temperature.
1-533
SPICE NJFET
Vgd -Vto ≤ 0 I ds = 0
Vgs ≥ FC * VJ ⎛
⎜ F 3* (Vgs - FC * VJ ) +
(
MG * Vgs2 - ( FC * VJ )
2
) ⎟⎞
⎜ 2 * VJ ⎟
Qgs = CGS * ⎜ F1 + ⎟
F2
⎜ ⎟
⎜ ⎟
⎝ ⎠
Where:
1-534
SPICE NJFET
• F1 =
(
VJ * 1 - (1 - FC )
1− MG
)
1 − MG
F 2 = (1 - FC )
1+ MG
•
• F 3 = 1 - FC * (1 + MG )
Vgd ≥ FC * VJ ⎛
⎜ F 3* (Vgd - FC * VJ ) +
(
MG * Vgd2 - ( FC * VJ )
2
) ⎞⎟
⎜ 2 * VJ ⎟
Qgd = CGD* ⎜ F1 + ⎟
F2
⎜ ⎟
⎜ ⎟
⎝ ⎠
Where:
1-535
SPICE NJFET
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
⎛ T ⎞ EG
XTI ⎜⎜ −1⎟⎟*
IS (T ) = IS * (T Tmeas ) ND *e ⎝ Tmeas ⎠ Vt
where:
1-536
SPICE NJFET
• Vt = ND * k * T/q
• ND is the Emission coefficient, ND parameter value.
⎛ T ⎞ 3* k * T ⎛ T ⎞ ⎛ T ⎞
VJ (T ) = VJ * ⎜ ⎟- * log ⎜ ⎟-⎜ ⎟ * EGTmeas + EGT
⎝ Tmeas ⎠ q ⎝ Tmeas ⎠ ⎝ Tmeas ⎠
where:
⎡ ⎛ VJ (T ) -VJ ⎞⎤
CGS (T ) = CGS * ⎢1 + MG* ⎜ 400e − 6 * (T - Tmeas ) - ⎟⎥
⎣ ⎝ VJ ⎠⎦
where:
The block uses the CGS(T) equation to calculate the gate-drain junction
capacitance by substituting CGD (the Zero-bias GD capacitance,
CGD parameter value) for CGS.
The block provides the following relationship between the forward and
reverse beta and the transistor temperature T:
1-537
SPICE NJFET
⎛ T ⎞
(T ) = * ⎜ ⎟
⎝ Tmeas ⎠
where β is the Transconductance, BETA parameter value.
1-538
SPICE NJFET
1-539
SPICE NJFET
1-540
SPICE NJFET
1-541
SPICE NJFET
1-542
SPICE NJFET
Note The NJFET block applies the initial diode voltage across
the junction capacitors and not across the ports.
1-543
SPICE NJFET
Temperature Tab
1-544
SPICE NJFET
G
Electrical conserving port associated with the transistor gate
terminal.
1-545
SPICE NJFET
D
Electrical conserving port associated with the transistor drain
terminal.
S
Electrical conserving port associated with the transistor source
terminal.
1-546
SPICE NMOS
Resistance Calculations
The following table shows how the NMOS block calculates the transistor
drain resistance. The abbreviations in the table represent the values of
the following block parameters:
• Drain resistance, RD
• Sheet resistance, RSH
• Number of drain squares, NRD
1-547
SPICE NMOS
The following table shows how the NMOS block calculates the transistor
source resistance. The abbreviations in the table represent the values
of the following block parameters:
• Source resistance, RS
• Sheet resistance, RSH
• Number of source squares, NRS
80Vtn ≥ Vbs ( )
I bs = ISbs * eVbs / Vtn − 1 + Vbs * G min
Where:
• ISbs is
- The product of the Bulk jct sat current density, JS parameter
value and the Area of source, AS parameter value if both these
1-548
SPICE NMOS
• Vtn=NkT/q
• q is the elementary charge on an electron, 1.6021918e-19 C.
• N is the Emission coefficient, ND parameter value.
• k is the Boltzmann constant.
• T is the diode temperature:
- If you select Device temperature for the Model temperature
dependence using parameter, T is the sum of the Circuit
temperature value plus the Offset local circuit temperature,
TOFFSET parameter value. The Circuit temperature value
comes from the SPICE Environment Parameters block, if one
exists in the circuit. Otherwise, it comes from the default value
for this block.
- If you select Fixed temperature for the Model temperature
dependence using parameter, T is the Fixed circuit
temperature, TFIXED parameter value.
• GMIN is the diode minimum conductance. By default, GMIN
matches the Minimum conductance GMIN parameter of the
SPICE Environment Parameters block, whose default value is 1e-12.
To change GMIN, add a SPICE Environment Parameters block to
your model and set the Minimum conductance GMIN parameter
to the desired value.
1-549
SPICE NMOS
80Vtn ≥ Vbd ( )
I bd = ISbd * eVbd / Vtn − 1 + Vbd * G min
Where:
• ISbd is
- The product of the Bulk jct sat current density, JS parameter
value and the Area of drain, AD parameter value if both these
parameter values and the Area of source, AS parameter value
are nonzero.
- The Bulk saturation current, IS parameter value, otherwise.
1-550
SPICE NMOS
Normal Mode
Id = 0
Vgs -Von ≤ 0
(1 + LAMBDA *Vds )
0 < Vgs -Von ≤ Vds I d = BETA * (Vgs − Von )
2
2
I d = BETA *
0 < Vds < Vgs -Von
⎛ V ⎞
Vds ⎜ (Vgs -Von ) - ds ⎟ (1 + LAMBDA *Vds )
⎝ 2 ⎠
Where:
• Von is:
⎛ Vbs ⎞
- MTYPE * VBI + GAMMA ⎜ PHI − ⎟ if 0 < Vbs ≤ 2 * PHI .
⎝ 2 PHI ⎠
- MTYPE*VBI if Vbs > 2*PHI.
• MTYPE is 1.
• BETA is KP*WIDTH/(LENGTH-2*LD)
• KP is:
- The Transconductance, KP parameter value, if this parameter
has a numerical value.
1-551
SPICE NMOS
The block provides the following relationship between the drain current
Id and the drain-source voltage Vds in inverse mode ( Vds < 0 ) after
adjusting the applicable model parameters for temperature.
1-552
SPICE NMOS
Inverse Mode
Id = 0
Vgd -Von ≤ 0
I d = BETA *
0 < Vds < Vgd -Von
( )
Vds (Vgd -Von ) + Vds 2 (1 − LAMBDA *Vds )
Where:
• Von is:
⎛ Vbd ⎞
- MTYPE * VBI + GAMMA ⎜ PHI − ⎟ if 0 < Vbd ≤ 2 * PHI .
⎝ 2 PHI ⎠
- MTYPE*VBI if Vbd > 2*PHI.
1-553
SPICE NMOS
The blocks uses the same model for drain current in inverse mode
( Vds < 0 ), with the following substitutions:
• Vbs – Vds for Vbs
• Vgs – Vds for Vds
• –Vds for Vds
⎛ 1 + FB ⎞
I DS 0 = BETA * Fgate * ⎜ VGSX − VTH − * VDSX ⎟ * VDSX
⎝ 2 ⎠
1
Fgate =
1 + THETA * (Vgsx − VTH )
1-554
SPICE NMOS
⎛ F *V ⎞
⎜ GAMMA * Fs * Vbulk + n bulk ⎟
q * NFS ⎝ WIDTH ⎠
xn = 1 + +
COX 2 * Vbulk
• The block calculates Vbulk as follows:
- If VBS ≤ 0, Vbulk = PHI – VBS.
- Otherwise, the block calculates Vbulk using the following equation:
PHI
Vbulk = 2
⎛ VBS ⎞
⎜1 + ⎟
⎝ 2 * PHI ⎠
• VT=kT/q
• The block calculates VTH using the equation following equation:
8.15e−22 * ETA
VTH = VBI − * VDS
COX * ( LENGTH − 2 * LD )
3
• For information about how the block calculates VBI, see “Temperature
Dependence” on page 1-564.
• ETA is the Vds dependence threshold volt, ETA parameter value.
• COX = εox/TOX, where εox is the permittivity of the oxide and TOX is
the Oxide thickness, TOX parameter value.
1-555
SPICE NMOS
2 si
=
qNSUB
XD =
XD * Vbulk
wc = .0631353 + .8013292 *
XJ
2
⎛ XD * Vbulk ⎞ LD
−.01110777 * ⎜ ⎟ +
⎜ XJ ⎟ XJ
⎝ ⎠
⎛ ⎛ XD * Vbulk ⎞
2
⎞
Fs = 1 − ⎜ wc * 1 − ⎜
LD ⎟
⎜ ⎟ −
⎜ ⎜ XJ + XD * V
⎝ bulk
⎟
⎠ XJ ⎟⎟
⎝ ⎠
where εsi is the permittivity of silicon.
Otherwise, Fs = 1.
• The block calculates FB using the following equation:
GAMMA * Fs
FB = + Fn
4 * Vbulk
DELTA * * si
Fn =
2 * COX * WIDTH
• DELTA is the Width effect on threshold, DELTA parameter
value.
1-556
SPICE NMOS
− ⎜ ⎟ + ⎜⎜ ⎟⎟
⎝ 1 + FB ⎠ ⎝ UO * Fgate ⎠
Otherwise, the block calculates Vdsat using the following equation:
Vgsx − VTH
Vdsat =
1 + FB
1
ScaleVMAX =
UO * Fgate
1+ * VDSX
( LENGTH − 2 * LD ) *VMAX
Otherwise, ScaleVMAX = 1.
Channel Length Modulation Scaling
The block scales the drain current to account for channel length
modulation if the block meets all of the following criteria:
1-557
SPICE NMOS
The block scales the drain current using the following equation:
1
ScaleLChan =
Δl
1−
( LENGTH − 2 * LD )
The block uses the following procedure to calculate Δl:
• If you specify a positive value for the Max carrier drift velocity,
VMAX parameter, the block computes the intermediate value gdsat
as the greater of 1e-12 and the result of the following equation:
⎛ 1 ⎞
I DS 0 * ⎜1 − ⎟ * Scalegdsat
⎜ 1 + Scaleg * VDSX ⎟
⎝ dsat ⎠
where:
UO * Fgate
Scalegdsat =
( LENGTH − 2 * LD ) *VMAX
Then, the block uses the following equation to calculate the
intermediate value Δl0:
2
⎛ KA * I DS ⎞
Δl0 = ⎜
⎜ 2 * ( LENGTH − 2 * LD ) * g ⎟⎟ + KA * (VDS − Vdsat )
⎝ dsat ⎠
KA * I DS
−
2 * ( LENGTH − 2 * LD ) * g dsat
1-558
SPICE NMOS
Δl = KA * (VDS − Vdsat )
⎛ ( LENGTH − 2 * LD ) ⎞
Δl = ⎜1 − ⎟ * ( LENGTH − 2 * LD )
⎝ 4 * Δl0 ⎠
• Otherwise, Δl = Δl0.
Vgs −Von
ScaleINV = e xn *VT
Otherwise, ScaleINV = 1.
1-559
SPICE NMOS
• QGS=CGSO*WIDTH*Vgs
Where:
- QGS is the gate-source overlap charge.
- CGSO is the G-S overlap capacitance, CGSO parameter value.
- WIDTH is the Width of channel, WIDTH parameter value.
• QGD=CGDO*WIDTH*Vgd
Where:
- QGD is the gate-drain overlap charge.
- CGDO is the G-D overlap capacitance, CGDO parameter value.
• QGB=CGBO*(LENGTH-2*LD)*Vgb
Where:
- QGB is the gate-bulk overlap charge.
- CGBO is the G-B overlap capacitance, CGBO parameter value.
- LENGTH is the Length of channel, LENGTH parameter value.
- LD is the Lateral diffusion, LD parameter value.
1-560
SPICE NMOS
Qbottom = CBD *
Vbd ≥ FC * PB
⎛
⎜ F 3* (Vbd - FC * PB ) +
(
MJ * Vbd2 - ( FC * PB )
2
) ⎞⎟
⎜ 2 * PB ⎟
⎜ F1 + F2 ⎟
⎜ ⎟
⎜ ⎟
⎝ ⎠
if CBD > 0.
Qbottom = CJ * AD*
⎛
⎜ F 3* (Vbd - FC * PB ) +
(
MJ * Vbd2 - ( FC * PB )
2
) ⎞⎟
⎜ 2 * PB ⎟
⎜ F1 + F2 ⎟
⎜ ⎟
⎜ ⎟
⎝ ⎠
otherwise.
1-561
SPICE NMOS
Where:
• F1 =
(
PB* 1 - (1 - FC )
1− MJ
)
1 − MJ
F 2 = (1 - FC )
1+ MJ
•
• F 3 = 1 - FC * (1 + MJ )
The block uses the equations in the preceding table to calculate the
bulk-source bottom junction charge, with the following substitutions:
1-562
SPICE NMOS
Where:
• F1 =
(
PB* 1 - (1 - FC )
1− MJSW
)
1 − MJSW
F 2 = (1 - FC )
1+ MJSW
•
• F 3 = 1 - FC * (1 + MJSW )
1-563
SPICE NMOS
The block uses the equations in the preceding table to calculate the
bulk-source sidewall junction charge and the sidewall junction voltage,
with the following substitutions:
Temperature Dependence
Several transistor parameters depend on temperature. There are two
ways to specify the transistor temperature:
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
KP
KP(T ) = 3/ 2
⎛T ⎞
⎜ T ⎟
⎝ meas ⎠
where:
1-564
SPICE NMOS
⎛ ⎛ 3
q ⎛ 1.115 EGTmeas ⎞⎞⎞
⎜ PHI + meas ⎜ log ⎛⎜ meas ⎞⎟ + ⎜
T kT T
PHI (T ) = − ⎟⎟ ⎟ ⎟
Tmeas ⎜ q ⎜ ⎝ 300.15 ⎠ k ⎜⎝ 300.15 Tmeas ⎠ ⎟⎠ ⎟⎠
⎝ ⎝
kT ⎛ EGT ⎞ ⎞
3
⎛ T ⎞ q ⎛ 1.115
− ⎜ log ⎜ ⎟ + ⎜ − ⎟⎟
q ⎝⎜ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
where:
⎛ PHI (T ) − PHI ⎞
VBI (T ) = VTO + MTYPE * ⎜ − GAMMA PHI ⎟
⎝ 2 ⎠
EGTmeas − EGT
+
2
where:
• VTO is:
- The Threshold voltage, VTO parameter value, if this parameter
has a numerical value.
1-565
SPICE NMOS
− qEGT qEGTmeas
+
IS (T ) = IS * e ND*kT ND*kTmeas
where:
The block provides the following relationship between the bulk junction
saturation current density JS and the transistor temperature T:
− qEGT qEGTmeas
+
JS (T ) = JS * e ND*kT ND*kTmeas
1-566
SPICE NMOS
where:
The block provides the following relationship between the bulk junction
potential PB and the transistor temperature T:
kTmeas ⎛ ⎞⎞
3
⎛ T ⎞ q ⎛ 1.115 EGTmeas
PB + ⎜ log ⎜ meas ⎟ + ⎜ − ⎟⎟ ⎟
q ⎜ ⎜
⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
PB(T ) =
Tmeas
T
kT ⎛ EGT ⎞ ⎞
3
⎛ T ⎞ q ⎛ 1.115
− ⎜ log ⎜ ⎟ + ⎜ − ⎟⎟
q ⎜⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
where:
CBD(T ) = CBD
(
pbo + MJ * 4 * 104 * ( T − 300.15 ) * pbo − ( PB(T ) − pbo ) )
pbo + MJ * ( 4 * 10 * ( Tmeas − 300.15 ) * pbo − ( PB − pbo ) )
4
where:
kTmeas ⎛ ⎞⎞
3
⎛ T ⎞ q ⎛ 1.115 EGTmeas
PB + ⎜ log ⎜ meas ⎟ + ⎜ − ⎟⎟ ⎟
q ⎜ ⎜
⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
• pbo =
Tmeas
300.15
1-567
SPICE NMOS
CJSW (T ) = CJSW
(
pbo + MJSW * 4 * 104 * ( T − 300.15 ) * pbo − ( PB(T ) − pbo ) )
pbo + MJSW * ( 4 * 10 * ( Tmeas − 300.15 ) * pbo − ( PB − pbo ) )
4
where:
1-568
SPICE NMOS
MOS model
Select one of the following MOSFET model options:
• Level 1 MOS — Use the “Level 1 Drain Current Model” on page
1-550. This is the default option.
• Level 3 MOS — Use the “Level 3 Drain Current Model” on
page 1-553.
1-569
SPICE NMOS
Dimensions Tab
1-570
SPICE NMOS
1-571
SPICE NMOS
Perimeter of drain, PD
Perimeter of the transistor drain diffusion. The default value
is 0 m.
Perimeter of source, PS
Perimeter of the transistor source diffusion. The default value
is 0 m.
Resistors Tab
1-572
SPICE NMOS
Drain resistance, RD
The transistor drain ohmic resistance. The default value is
0.01 Ω. If you set this parameter to NaN Ω, this value means
the parameter is unspecified, so the block calculates the drain
resistance as described in “Resistance Calculations” on page
1-547. The value must be equal to 0 or greater than or equal to
Rmin. Rmin is a built-in model constant whose value is 1e-12.
Source resistance, RS
The transistor source ohmic resistance. The default value is
1e-4 Ω. If you set this parameter to NaN Ω, this value means
the parameter is unspecified, so the block calculates the drain
resistance as described in “Resistance Calculations” on page
1-547. The value must be equal to 0 or greater than or equal to
Rmin. Rmin is a built-in model constant whose value is 1e-12.
Sheet resistance, RSH
Resistance per square of the transistor source and drain. The
default value is NaN Ω. This value means the parameter is
unspecified. The block only uses this parameter value if you do
not specify one or both of the Drain resistance, RD and Source
resistance, RS parameter values, as described in “Resistance
Calculations” on page 1-547. The value must be greater than or
equal to 0.
Number of drain squares, NRD
Number of squares of resistance that make up the transistor
drain diffusion. The default value is 1 . The value must be greater
than or equal to 0. The block only uses this parameter value
if you do not specify one or both of the Drain resistance, RD
and Source resistance, RS parameter values, as described in
“Resistance Calculations” on page 1-547.
Number of source squares, NRS
Number of squares of resistance that make up the transistor
source diffusion. The default value is 1 . The value must be
greater than or equal to 0. The block only uses this parameter
value if you do not specify one or both of the Drain resistance,
1-573
SPICE NMOS
DC Currents Tab
1-574
SPICE NMOS
1-575
SPICE NMOS
1-576
SPICE NMOS
1-577
SPICE NMOS
C-V Tab
1-578
SPICE NMOS
1-579
SPICE NMOS
1-580
SPICE NMOS
Note The NMOS block applies the initial diode voltage across
the junction capacitors and not across the ports.
1-581
SPICE NMOS
Process Tab
Note When you select Level 3 MOS for the MOS model
parameter, the block uses a value of 1e-7 rather than NaN by
default.
1-582
SPICE NMOS
Lateral diffusion, LD
Length of lateral diffusion. The default value is 0 m.
Substrate doping, NSUB
Substrate doping. The default value is NaN 1/cm3. The value must
be greater than or equal to 1.45e10 (the carrier concentration
of intrinsic silicon).
Surface state density, NSS
Substrate doping. The default value is 0 1/cm2.
Surface mobility, U0
Zero-bias surface mobility coefficient. The default value is 600
cm2/V/s.
Junction depth, XJ
Junction depth. This parameter is only visible when you select
Level 3 MOS for the MOS model parameter. The default value
is 0 m.
Gate type?,TPG
Select one of the following MOSFET gate materials (as compared
to the substrate):
• Opposite of substrate — The gate material is the opposite
of the substrate. This means that TPG = 1 in the device
equations. This is the default option.
• Same as substrate — The gate material is the same as the
substrate. This means that TPG = –1 in the device equations.
• Aluminum — The gate material is aluminum. This means that
TPG = 0 in the device equations.
1-583
SPICE NMOS
Temperature Tab
1-584
SPICE NMOS
G
Electrical conserving port associated with the transistor gate
terminal.
D
Electrical conserving port associated with the transistor drain
terminal.
S
Electrical conserving port associated with the transistor source
terminal.
B
Electrical conserving port associated with the transistor bulk
terminal.
1-585
SPICE NMOS
1-586
SPICE NPN
1-587
SPICE NPN
⎛⎛V ⎞ ⎞
I bef = IS * ⎜ ⎜ BE - 79 ⎟ * e80 - 1⎟ + Gmin * VBE
⎜ V ⎟
⎝ ⎝ TF ⎠ ⎠
⎛ e( 80*VTF /VTE ) ⎞
I bee = ISE * ⎜ (VBE - 80 * VTF + VTE ) * - 1⎟
⎝ V TE ⎠
( )
I bef = IS * e(VBE /VTF ) - 1 + Gmin * VBE
(
I bee = ISE * e(VBE /VTE ) - 1 )
The base-collector junction current is calculated using the following
equations:
⎛⎛V ⎞ ⎞
I bcr = IS * ⎜ ⎜ BC - 79 ⎟ * e80 - 1⎟ + Gmin * VBC
⎜ V ⎟
⎝ ⎝ TR ⎠ ⎠
⎛ e( 80*VTR /VTC ) ⎞
I bcc = ISC * ⎜ (VBC - 80 * VTR + VTC ) * - 1⎟
⎝ VTC ⎠
( )
I bcr = IS * e(VBC /VTR ) - 1 + Gmin * VBC
(
I bcc = ISC * e(VBC /VTC ) - 1 )
In the preceding equations:
1-588
SPICE NPN
1-589
SPICE NPN
Terminal Currents
The terminal currents, IB and IC are the base and collector currents,
defined as positive into the device. They are calculated as:
⎛ I ebf I ⎞
IB = − ⎜ + I ebe + cbr + I cbc ⎟
⎝ BF BR ⎠
⎛ I ebf - I cbr I cbr ⎞
IC = − ⎜ - - I cbc ⎟
⎝ qb BR ⎠
where BF and BR are the Forward beta, BF and Reverse beta, BR
parameter values, respectively.
Base Charge Model
The base charge, qb, is calculated using the following equations:
qb =
q1 ⎛
2⎝
⎜1 + 0.5 * ( ) ⎞
(1 + 4 * q2 - eps ) 2 + eps 2 + 1 + 4 * q2 - eps + eps ⎟
⎠
−1
⎛ V V ⎞
q1 = ⎜1 − BC − BE ⎟
⎝ VAF VAR ⎠
I bef I bcr
q2 = +
IKF IKR
where
• VAF and VAR are the Forward Early voltage, VAF and Reverse
Early voltage, VAR parameters, respectively.
• IKF and IKR are the Forward knee current, IKF and Reverse
knee current, IKR parameter values, respectively.
• eps is 1e-4.
1-590
SPICE NPN
• If you use the default value of infinity for the Half base resistance
cur, IRB parameter, the NPN block calculates the base resistance
rbb as
RB - RBM
rbb = RBM +
qb
where:
- RBM is the Minimum base resistance, RBM parameter value.
- RB is the Zero-bias base resistance, RB parameter value.
• If you specify a finite value for the Half base resistance cur, IRB
parameter, the NPN block calculates the base resistance rbb as
⎛ tan z - z ⎞
rbb = RBM + 3 * ( RB - RBM ) * ⎜ 2 ⎟
⎝ z * tan z ⎠
where
1 + 144 I B / ( 2 IRB ) − 1
z=
( 24 / ) ( I
2
B / IRB )
1-591
SPICE NPN
⎡ VBC / (1.44VTF ) ⎛ I BE ⎞ ⎤
2
TF * ⎢1 + XTF * e ⎜ ⎟ ⎥
⎢⎣ ⎝ I BE + ITF ⎠ ⎥⎦
TFmod =
qb
where ITF is the Coefficient of TF, ITF parameter value.
Qdep depends on the junction voltage, Vjct (VBE for the base-emitter
junction and VBC for the base-collector junction) as follows.
1-592
SPICE NPN
1 - (1 -V jct /VJ )
(1− MJ )
V jct < FC * VJ
Qdep = C jct * VJ *
1 − MJ
V jct ≥ FC * VJ ⎡ MJ * ⎡V jct 2 - ( FC * VJ ) ⎤ ⎤
2
⎢ F 3* (V jct - FC * VJ ) + ⎣ ⎦⎥
⎢ 2 * VJ ⎥
Qdep = C jct * ⎢ F1 + ⎥
F2
⎢ ⎥
⎢⎣ ⎥⎦
Where:
1-593
SPICE NPN
• (
F1 = VJ * 1 - (1 - FC )
(1− MJ )
) (1 − MJ )
F 2 = (1 - FC )
(1+ MJ )
•
• F 3 = 1 - FC * (1 + MJ )
The collector-substrate charge Qcs depends on the collector-substrate
voltage Vcs as follows, after adjusting the applicable model parameters
for temperature.
Temperature Dependence
Several transistor parameters depend on temperature. There are two
ways to specify the transistor temperature:
1-594
SPICE NPN
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
⎛ T ⎞ EG
⎜⎜ −1⎟⎟*
IS (T ) = IS * (T Tmeas )
XTI ⎝ Tmeas ⎠ Vt
*e
where:
1-595
SPICE NPN
⎛ T ⎞ 3* k * T ⎛ T ⎞ ⎛ T ⎞
VJE (T ) = VJE * ⎜ ⎟- * log ⎜ ⎟-⎜ ⎟ * EGTmeas + EGT
⎝ Tmeas ⎠ q ⎝ Tmeas ⎠ ⎝ Tmeas ⎠
where:
⎡ ⎛ VJE (T ) -VJE ⎞ ⎤
CJE (T ) = CJE * ⎢1 + MJE * ⎜ 400e − 6 * (T - Tmeas ) - ⎟⎥
⎣ ⎝ VJE ⎠⎦
where:
1-596
SPICE NPN
XTB
⎛ T ⎞
(T ) = * ⎜ ⎟
⎝ Tmeas ⎠
where:
-XTB
⎛ T ⎞
1 / NE
⎛ IS(T) ⎞
ISE (T ) = ISE * ⎜ ⎟ *⎜ ⎟
⎝ Tmeas ⎠ ⎝ IS ⎠
where:
1-597
SPICE NPN
1-598
SPICE NPN
1-599
SPICE NPN
1-600
SPICE NPN
1-601
SPICE NPN
Reverse beta, BR
The ideal maximum reverse beta. The default value is 1. The
value must be greater than 0.
Reverse emission coefficient, NR
The reverse emission coefficient or ideality factor. The default
value is 1. The value must be greater than 0.
B-C leakage current, ISC
The base-collector leakage current. The default value is 0 A/m2.
The value must be greater than or equal to 0.
1-602
SPICE NPN
1-603
SPICE NPN
Emitter resistance, RE
The resistance of the emitter. The default value is 1e-4 m2*Ω.
The value must be greater than or equal to 0.
Collector resistance, RC
The resistance of the collector. The default value is 0.01 m2*Ω.
The value must be greater than or equal to 0.
Zero-bias base resistance, RB
The resistance of the base. The default value is 1 m2*Ω. The value
must be greater than or equal to 0.
Minimum base resistance, RBM
The minimum resistance of the base. The default value is 0 m2*Ω.
The value must be less than or equal to the Zero-bias base
resistance, RB parameter value.
Half base resistance cur, IRB
The base current at which the base resistance has dropped to
half of its zero-bias value. The default value is Inf A/m2. The
value must be greater than or equal to 0. Use the default value
of Inf if you do not want to model the change in base resistance
as a function of base current.
1-604
SPICE NPN
Capacitance Tab
1-605
SPICE NPN
1-606
SPICE NPN
1-607
SPICE NPN
1-608
SPICE NPN
1-609
SPICE NPN
Temperature Tab
1-610
SPICE NPN
1-611
SPICE NPN
B
Electrical conserving port associated with the transistor base
terminal.
C
Electrical conserving port associated with the transistor collector
terminal.
E
Electrical conserving port associated with the transistor emitter
terminal.
S
Electrical conserving port associated with the transistor substrate
terminal.
1-612
SPICE PJFET
80* Vt ≥ Vsg (
I sg = IS * e
Vsg / Vt
)
− 1 + Vsg * G min
Where:
• Vt = ND * k * T/q
• ND is the Emission coefficient, ND parameter value.
1-613
SPICE PJFET
80* Vt ≥ Vdg (
I dg = IS * e
Vdg / Vt
)
− 1 + Vdg * G min
1-614
SPICE PJFET
I sd = 0
Vsg -Vto ≤ 0
Where:
1-615
SPICE PJFET
I sd = 0
Vdg -Vto ≤ 0
Vsg ≥ FC * VJ ⎛
⎜ F 3* (Vsg - FC * VJ ) +
(
MG * Vsg2 - ( FC * VJ )
2
) ⎞⎟
⎜ 2 * VJ ⎟
Qsg = CGS * ⎜ F1 + ⎟
F2
⎜ ⎟
⎜ ⎟
⎝ ⎠
Where:
1-616
SPICE PJFET
• F1 =
(
VJ * 1 - (1 - FC )
1− MG
)
1 − MG
F 2 = (1 - FC )
1+ MG
•
• F 3 = 1 - FC * (1 + MG )
Vdg ≥ FC * VJ ⎛
⎜ F 3* (Vdg - FC * VJ ) +
(
MG * Vdg2 - ( FC * VJ )
2
) ⎞⎟
⎜ 2 * VJ ⎟
Qdg = CGD* ⎜ F1 + ⎟
F2
⎜ ⎟
⎜ ⎟
⎝ ⎠
Where:
1-617
SPICE PJFET
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
⎛ T ⎞ EG
XTI ⎜⎜ −1⎟⎟*
IS (T ) = IS * (T Tmeas ) ND *e ⎝ Tmeas ⎠ Vt
where:
1-618
SPICE PJFET
• Vt = ND * k * T/q
• ND is the Emission coefficient, ND parameter value.
⎛ T ⎞ 3* k * T ⎛ T ⎞ ⎛ T ⎞
VJ (T ) = VJ * ⎜ ⎟- * log ⎜ ⎟-⎜ ⎟ * EGTmeas + EGT
⎝ Tmeas ⎠ q ⎝ Tmeas ⎠ ⎝ Tmeas ⎠
where:
⎡ ⎛ VJ (T ) -VJ ⎞⎤
CGS (T ) = CGS * ⎢1 + MG* ⎜ 400e − 6 * (T - Tmeas ) - ⎟⎥
⎣ ⎝ VJ ⎠⎦
where:
The block uses the CGS(T) equation to calculate the gate-drain junction
capacitance by substituting CGD (the Zero-bias GD capacitance,
CGD parameter value) for CGS.
The block provides the following relationship between the forward and
reverse beta and the transistor temperature T:
1-619
SPICE PJFET
⎛ T ⎞
(T ) = * ⎜ ⎟
⎝ Tmeas ⎠
where β is the Transconductance, BETA parameter value.
1-620
SPICE PJFET
1-621
SPICE PJFET
1-622
SPICE PJFET
1-623
SPICE PJFET
1-624
SPICE PJFET
Note The PJFET block applies the initial diode voltage across
the junction capacitors and not across the ports.
1-625
SPICE PJFET
Temperature Tab
1-626
SPICE PJFET
G
Electrical conserving port associated with the transistor gate
terminal.
1-627
SPICE PJFET
D
Electrical conserving port associated with the transistor drain
terminal.
S
Electrical conserving port associated with the transistor source
terminal.
1-628
SPICE PMOS
Resistance Calculations
The following table shows how the PMOS block calculates the transistor
drain resistance. The abbreviations in the table represent the values of
the following block parameters:
• Drain resistance, RD
• Sheet resistance, RSH
• Number of drain squares, NRD
1-629
SPICE PMOS
The following table shows how the PMOS block calculates the transistor
source resistance. The abbreviations in the table represent the values
of the following block parameters:
• Source resistance, RS
• Sheet resistance, RSH
• Number of source squares, NRS
80Vtn ≥ Vsb ( )
I sb = IS sb * eVsb / Vtn − 1 + Vsb * G min
Where:
• ISsb is
- The product of the Bulk jct sat current density, JS parameter
value and the Area of source, AS parameter value if both these
1-630
SPICE PMOS
• Vtn=NkT/q
• q is the elementary charge on an electron, 1.6021918e-19 C.
• N is the Emission coefficient, ND parameter value.
• k is the Boltzmann constant.
• T is the diode temperature:
- If you select Device temperature for the Model temperature
dependence using parameter, T is the sum of the Circuit
temperature value plus the Offset local circuit temperature,
TOFFSET parameter value. The Circuit temperature value
comes from the SPICE Environment Parameters block, if one
exists in the circuit. Otherwise, it comes from the default value
for this block.
- If you select Fixed temperature for the Model temperature
dependence using parameter, T is the Fixed circuit
temperature, TFIXED parameter value.
• GMIN is the diode minimum conductance. By default, GMIN
matches the Minimum conductance GMIN parameter of the
SPICE Environment Parameters block, whose default value is 1e-12.
To change GMIN, add a SPICE Environment Parameters block to
your model and set the Minimum conductance GMIN parameter
to the desired value.
1-631
SPICE PMOS
80Vtn ≥ Vdb ( )
I db = ISdb * eVdb / Vtn − 1 + Vdb * G min
Where:
• ISdb is
- The product of the Bulk jct sat current density, JS parameter
value and the Area of drain, AD parameter value if both these
parameter values and the Area of source, AS parameter value
are nonzero.
- The Bulk saturation current, IS parameter value, otherwise.
Isd and the drain-source voltage Vsd in normal mode ( Vsd ≥ 0 ) after
adjusting the applicable model parameters for temperature.
1-632
SPICE PMOS
Normal Mode
Isd = 0
Vsg -Von ≤ 0
(1 + LAMBDA *Vsd )
0 < Vsg -Von ≤ Vsd I sd = BETA * (Vsg − Von )
2
2
I sd = BETA *
0 < Vsd < Vsg -Von
⎛ V ⎞
Vsd ⎜ (Vsg -Von ) - sd ⎟ (1 + LAMBDA *Vsd )
⎝ 2 ⎠
Where:
• Von is:
⎛ Vsb ⎞
- MTYPE * VBI + GAMMA ⎜ PHI − ⎟ if 0 < Vsb ≤ 2 * PHI .
⎝ 2 PHI ⎠
- MTYPE*VBI if Vsb > 2*PHI.
• MTYPE is –1.
• BETA is KP*WIDTH/(LENGTH-2*LD)
• KP is:
- The Transconductance, KP parameter value, if this parameter
has a numerical value.
1-633
SPICE PMOS
The block provides the following relationship between the drain current
Isd and the drain-source voltage Vsd in inverse mode ( Vsd < 0 ) after
adjusting the applicable model parameters for temperature.
1-634
SPICE PMOS
Inverse Mode
Isd = 0
Vdg -Von ≤ 0
I sd = BETA *
0 < Vsd < Vdg -Von
( )
Vsd (Vdg -Von ) + Vsd 2 (1 − LAMBDA *Vsd )
Where:
• Von is:
Vdb ≤ 0
.
⎛ Vdb ⎞
- MTYPE * VBI + GAMMA ⎜ PHI − ⎟ if
⎝ 2 PHI ⎠
0 < Vdb ≤ 2 * PHI
.
- MTYPE*VBI if Vdb > 2*PHI.
1-635
SPICE PMOS
The blocks uses the same model for drain current in inverse mode
( Vsd < 0 ), with the following substitutions:
• Vsb – Vsd for Vsb
• Vsg – Vsd for Vsd
• –Vsd for Vsd
⎛ 1 + FB ⎞
I SD 0 = BETA * Fgate * ⎜ VSGX − VTH − * VSDX ⎟ * VSDX
⎝ 2 ⎠
1
Fgate =
1 + THETA * (Vsgx − VTH )
1-636
SPICE PMOS
⎛ F *V ⎞
⎜ GAMMA * Fs * Vbulk + n bulk ⎟
q * NFS ⎝ WIDTH ⎠
xn = 1 + +
COX 2 * Vbulk
• The block calculates Vbulk as follows:
- If VSB ≤ 0, Vbulk = PHI – VBS.
- Otherwise, the block calculates Vbulk using the following equation:
PHI
Vbulk = 2
⎛ VSB ⎞
⎜1 + ⎟
⎝ 2 * PHI ⎠
• VT=kT/q
• The block calculates VTH using the equation following equation:
8.15e−22 * ETA
VTH = VBI − * VSD
COX * ( LENGTH − 2 * LD )
3
• For information about how the block calculates VBI, see “Temperature
Dependence” on page 1-646.
1-637
SPICE PMOS
2 si
=
qNSUB
XD =
XD * Vbulk
wc = .0631353 + .8013292 *
XJ
2
⎛ XD * Vbulk ⎞ LD
−.01110777 * ⎜ ⎟ +
⎜ XJ ⎟ XJ
⎝ ⎠
⎛ ⎛ XD * Vbulk ⎞
2
⎞
Fs = 1 − ⎜ wc * 1 − ⎜
LD ⎟
⎜ ⎟ −
⎜ ⎜ XJ + XD * V
⎝ bulk
⎟
⎠ XJ ⎟⎟
⎝ ⎠
where εsi is the permittivity of silicon.
Otherwise, Fs = 1.
• The block calculates FB using the following equation:
GAMMA * Fs
FB = + Fn
4 * Vbulk
1-638
SPICE PMOS
DELTA * * si
Fn =
2 * COX * WIDTH
• DELTA is the Width effect on threshold, DELTA parameter
value.
• VSDX is the lesser of VSD and the saturation voltage, Vdsat.
- If you specify a positive value for the Max carrier drift velocity,
VMAX parameter, the block calculates Vdsat using the following
equation:
− ⎜ ⎟ + ⎜⎜ ⎟⎟
⎝ 1 + F B ⎠ ⎝ UO * Fgate ⎠
Otherwise, the block calculates Vdsat using the following equation:
Vsgx − VTH
Vdsat =
1 + FB
1
ScaleVMAX =
UO * Fgate
1+ * VSDX
( LENGTH − 2 * LD ) *VMAX
Otherwise, ScaleVMAX = 1.
1-639
SPICE PMOS
The block scales the drain current using the following equation:
1
ScaleLChan =
Δl
1−
( LENGTH − 2 * LD )
The block uses the following procedure to calculate Δl:
• If you specify a positive value for the Max carrier drift velocity,
VMAX parameter, the block computes the intermediate value gdsat
as the greater of 1e-12 and the result of the following equation:
⎛ 1 ⎞
I SD 0 * ⎜1 − ⎟ * Scalegdsat
⎜ 1 + Scaleg * VSDX ⎟
⎝ dsat ⎠
where:
UO * Fgate
Scalegdsat =
( LENGTH − 2 * LD ) *VMAX
Then, the block uses the following equation to calculate the
intermediate value Δl0:
1-640
SPICE PMOS
2
⎛ KA * I SD ⎞
Δl0 = ⎜
⎜ 2 * ( LENGTH − 2 * LD ) * g ⎟⎟ + KA * (VSD − Vdsat )
⎝ dsat ⎠
KA * I SD
−
2 * ( LENGTH − 2 * LD ) * g dsat
where KA is the product of the Mobility modulation, KAPPA
parameter value and α.
• Otherwise, the block uses the following equation to calculate the
intermediate value Δl0:
Δl = KA * (VSD − Vdsat )
⎛ ( LENGTH − 2 * LD ) ⎞
Δl = ⎜1 − ⎟ * ( LENGTH − 2 * LD )
⎝ 4 * Δl0 ⎠
• Otherwise, Δl = Δl0.
Vsg −Von
ScaleINV = e xn *VT
Otherwise, ScaleINV = 1.
1-641
SPICE PMOS
• QSG=CGSO*WIDTH*Vsg
Where:
- QSG is the gate-source overlap charge.
- CGSO is the G-S overlap capacitance, CGSO parameter value.
- WIDTH is the Width of channel, WIDTH parameter value.
• QDG=CGDO*WIDTH*Vdg
Where:
- QDG is the gate-drain overlap charge.
- CGDO is the G-D overlap capacitance, CGDO parameter value.
• QBG=CGBO*(LENGTH-2*LD)*Vbg
Where:
- QBG is the gate-bulk overlap charge.
- CGBO is the G-B overlap capacitance, CGBO parameter value.
- LENGTH is the Length of channel, LENGTH parameter value.
- LD is the Lateral diffusion, LD parameter value.
1-642
SPICE PMOS
Qbottom = CBD *
Vdb ≥ FC * PB
⎛
⎜ F 3* (Vdb - FC * PB ) +
(
MJ * Vdb2 - ( FC * PB )
2
) ⎞⎟
⎜ 2 * PB ⎟
⎜ F1 + F2 ⎟
⎜ ⎟
⎜ ⎟
⎝ ⎠
if CBD > 0.
Qbottom = CJ * AD*
⎛
⎜ F 3* (Vdb - FC * PB ) +
(
MJ * Vdb2 - ( FC * PB )
2
) ⎞⎟
⎜ 2 * PB ⎟
⎜ F1 + F2 ⎟
⎜ ⎟
⎜ ⎟
⎝ ⎠
otherwise.
1-643
SPICE PMOS
Where:
• F1 =
(
PB* 1 - (1 - FC )
1− MJ
)
1 − MJ
F 2 = (1 - FC )
1+ MJ
•
• F 3 = 1 - FC * (1 + MJ )
The block uses the equations in the preceding table to calculate the
bulk-source bottom junction charge, with the following substitutions:
1-644
SPICE PMOS
Where:
• F1 =
(
PB* 1 - (1 - FC )
1− MJSW
)
1 − MJSW
F 2 = (1 - FC )
1+ MJSW
•
• F 3 = 1 - FC * (1 + MJSW )
1-645
SPICE PMOS
The block uses the equations in the preceding table to calculate the
bulk-source sidewall junction charge and the sidewall junction voltage,
with the following substitutions:
Temperature Dependence
Several transistor parameters depend on temperature. There are two
ways to specify the transistor temperature:
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
KP
KP(T ) = 3/ 2
⎛T ⎞
⎜ T ⎟
⎝ meas ⎠
where:
1-646
SPICE PMOS
⎛ ⎛ 3
q ⎛ 1.115 EGTmeas ⎞⎞⎞
⎜ PHI + meas ⎜ log ⎛⎜ meas ⎞⎟ + ⎜
T kT T
PHI (T ) = − ⎟⎟ ⎟ ⎟
Tmeas ⎜ q ⎜ ⎝ 300.15 ⎠ k ⎜⎝ 300.15 Tmeas ⎠ ⎟⎠ ⎟⎠
⎝ ⎝
kT ⎛ EGT ⎞ ⎞
3
⎛ T ⎞ q ⎛ 1.115
− ⎜ log ⎜ ⎟ + ⎜ − ⎟⎟
q ⎝⎜ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
where:
⎛ PHI (T ) − PHI ⎞
VBI (T ) = VTO + MTYPE * ⎜ − GAMMA PHI ⎟
⎝ 2 ⎠
EGTmeas − EGT
+
2
where:
• VTO is:
- The Threshold voltage, VTO parameter value, if this parameter
has a numerical value.
1-647
SPICE PMOS
− qEGT qEGTmeas
+
IS (T ) = IS * e ND*kT ND*kTmeas
where:
The block provides the following relationship between the bulk junction
saturation current density JS and the transistor temperature T:
− qEGT qEGTmeas
+
JS (T ) = JS * e ND*kT ND*kTmeas
1-648
SPICE PMOS
where:
The block provides the following relationship between the bulk junction
potential PB and the transistor temperature T:
kTmeas ⎛ ⎞⎞
3
⎛ T ⎞ q ⎛ 1.115 EGTmeas
PB + ⎜ log ⎜ meas ⎟ + ⎜ − ⎟⎟ ⎟
q ⎜ ⎜
⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
PB(T ) =
Tmeas
T
kT ⎛ EGT ⎞ ⎞
3
⎛ T ⎞ q ⎛ 1.115
− ⎜ log ⎜ ⎟ + ⎜ − ⎟⎟
q ⎜⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
where:
CBD(T ) = CBD
(
pbo + MJ * 4 * 104 * ( T − 300.15 ) * pbo − ( PB(T ) − pbo ) )
pbo + MJ * ( 4 * 10 * ( Tmeas − 300.15 ) * pbo − ( PB − pbo ) )
4
where:
kTmeas ⎛ ⎞⎞
3
⎛ T ⎞ q ⎛ 1.115 EGTmeas
PB + ⎜ log ⎜ meas ⎟ + ⎜ − ⎟⎟ ⎟
q ⎜ ⎜
⎝ ⎝ 300.15 ⎠ k ⎝ 300.15 T ⎠ ⎟⎠
• pbo =
Tmeas
300.15
1-649
SPICE PMOS
CJSW (T ) = CJSW
(
pbo + MJSW * 4 * 104 * ( T − 300.15 ) * pbo − ( PB(T ) − pbo ) )
pbo + MJSW * ( 4 * 10 * ( Tmeas − 300.15 ) * pbo − ( PB − pbo ) )
4
where:
1-650
SPICE PMOS
MOS model
Select one of the following MOSFET model options:
• Level 1 MOS — Use the “Level 1 Drain Current Model” on page
1-632. This is the default option.
• Level 3 MOS — Use the “Level 3 Drain Current Model” on
page 1-635.
1-651
SPICE PMOS
Dimensions Tab
1-652
SPICE PMOS
1-653
SPICE PMOS
Perimeter of drain, PD
Perimeter of the transistor drain diffusion. The default value
is 0 m.
Perimeter of source, PS
Perimeter of the transistor source diffusion. The default value
is 0 m.
Resistors Tab
Drain resistance, RD
The transistor drain ohmic resistance. The default value is
0.01 Ω. If you set this parameter to NaN Ω, this value means
1-654
SPICE PMOS
1-655
SPICE PMOS
DC Currents Tab
1-656
SPICE PMOS
1-657
SPICE PMOS
1-658
SPICE PMOS
only visible when you select Level 3 MOS for the MOS model
parameter. The default value is 0 1/V.
Mobility modulation, KAPPA
The coefficient that controls how the mobility affects the channel
length in the drain current calculation. This parameter is
only visible when you select Level 3 MOS for the MOS model
parameter. The default value is 0.2.
C-V Tab
1-659
SPICE PMOS
1-660
SPICE PMOS
1-661
SPICE PMOS
Note The PMOS block applies the initial diode voltage across
the junction capacitors and not across the ports.
1-662
SPICE PMOS
Process Tab
1-663
SPICE PMOS
Note When you select Level 3 MOS for the MOS model
parameter, the block uses a value of 1e-7 rather than NaN by
default.
Lateral diffusion, LD
Length of lateral diffusion. The default value is 0 m.
Substrate doping, NSUB
Substrate doping. The default value is NaN 1/cm3. The value must
be greater than or equal to 1.45e10 (the carrier concentration
of intrinsic silicon).
Surface state density, NSS
Substrate doping. The default value is 0 1/cm2.
Surface mobility, U0
Zero-bias surface mobility coefficient. The default value is 600
cm2/V/s.
Junction depth, XJ
Junction depth. This parameter is only visible when you select
Level 3 MOS for the MOS model parameter. The default value
is 0 m.
Gate type?,TPG
Select one of the following MOSFET gate materials (as compared
to the substrate):
• Opposite of substrate — The gate material is the opposite
of the substrate. This means that TPG = 1 in the device
equations. This is the default option.
• Same as substrate — The gate material is the same as the
substrate. This means that TPG = –1 in the device equations.
1-664
SPICE PMOS
Temperature Tab
1-665
SPICE PMOS
G
Electrical conserving port associated with the transistor gate
terminal.
D
Electrical conserving port associated with the transistor drain
terminal.
S
Electrical conserving port associated with the transistor source
terminal.
B
Electrical conserving port associated with the transistor bulk
terminal.
1-666
SPICE PMOS
1-667
SPICE PNP
1-668
SPICE PNP
⎛⎛V ⎞ ⎞
I ebf = IS * ⎜ ⎜ EB - 79 ⎟ * e80 - 1⎟ + Gmin * VEB
⎜ V ⎟
⎝ ⎝ TF ⎠ ⎠
⎛ e( 80*VTF /VTE ) ⎞
I ebe = ISE * ⎜ (VEB - 80 * VTF + VTE ) * - 1⎟
⎝ V TE ⎠
( )
I ebf = IS * e(VEB /VTF ) - 1 + Gmin * VEB
(
I ebe = ISE * e(VEB /VTE ) - 1 )
The base-collector junction current is calculated using the following
equations:
⎛⎛V ⎞ ⎞
I cbr = IS * ⎜ ⎜ CB - 79 ⎟ * e80 - 1⎟ + Gmin * VCB
⎜ V ⎟
⎝ ⎝ TR ⎠ ⎠
⎛ e( 80*VTR /VTC ) ⎞
I cbc = ISC * ⎜ (VCB - 80 * VTR + VTC ) * - 1⎟
⎝ VTC ⎠
( )
I cbr = IS * e(VCB /VTR ) - 1 + Gmin * VCB
(
I cbc = ISC * e(VCB /VTC ) - 1 )
In the preceding equations:
1-669
SPICE PNP
1-670
SPICE PNP
Terminal Currents
The terminal currents, IB and IC are the base and collector currents,
defined as positive into the device. They are calculated as:
⎛ I ebf I ⎞
IB = − ⎜ + I ebe + cbr + I cbc ⎟
⎝ BF BR ⎠
⎛ I ebf - I cbr I cbr ⎞
IC = − ⎜ - - I cbc ⎟
⎝ qb BR ⎠
where BF and BR are the Forward beta, BF and Reverse beta, BR
parameter values, respectively.
Base Charge Model
The base charge, qb, is calculated using the following equations:
qb =
q1 ⎛
2⎝
⎜1 + 0.5 * ( ) ⎞
(1 + 4 * q2 - eps ) 2 + eps 2 + 1 + 4 * q2 - eps + eps ⎟
⎠
−1
⎛ V V ⎞
q1 = ⎜1 − CB − EB ⎟
⎝ VAF VAR ⎠
I ebf I cbr
q2 = +
IKF IKR
where
• VAF and VAR are the Forward Early voltage, VAF and Reverse
Early voltage, VAR parameters, respectively.
• IKF and IKR are the Forward knee current, IKF and Reverse
knee current, IKR parameter values, respectively.
• eps is 1e-4.
1-671
SPICE PNP
• If you use the default value of infinity for the Half base resistance
cur, IRB parameter, the PNP block calculates the base resistance
rbb as
RB - RBM
rbb = RBM +
qb
where:
- RBM is the Minimum base resistance, RBM parameter value.
- RB is the Zero-bias base resistance, RB parameter value.
• If you specify a finite value for the Half base resistance cur, IRB
parameter, the PNP block calculates the base resistance rbb as
⎛ tan z - z ⎞
rbb = RBM + 3 * ( RB - RBM ) * ⎜ 2 ⎟
⎝ z * tan z ⎠
where:
1 + 144 I B / ( 2 IRB ) − 1
z=
( 24 / ) ( I
2
B / IRB )
1-672
SPICE PNP
⎡ VCB / (1.44VTF ) ⎛ I EB ⎞ ⎤
2
TF * ⎢1 + XTF * e ⎜ ⎟ ⎥
⎢⎣ ⎝ I EB + ITF ⎠ ⎥⎦
TFmod =
qb
where ITF is the Coefficient of TF, ITF parameter value.
Qdep depends on the junction voltage, Vjct (VEB for the emitter-base
junction and VCB for the collector-base junction) as follows.
1-673
SPICE PNP
1 - (1 -V jct /VJ )
(1− MJ )
V jct < FC * VJ
Qdep = C jct * VJ *
1 − MJ
V jct ≥ FC * VJ ⎡ MJ * ⎡V jct 2 - ( FC * VJ ) ⎤ ⎤
2
⎢ F 3* (V jct - FC * VJ ) + ⎣ ⎦⎥
⎢ 2 * VJ ⎥
Qdep = C jct * ⎢ F1 + ⎥
F2
⎢ ⎥
⎢⎣ ⎥⎦
Where:
1-674
SPICE PNP
• (
F1 = VJ * 1 - (1 - FC )
(1− MJ )
) (1 − MJ )
F 2 = (1 - FC )
(1+ MJ )
•
• F 3 = 1 - FC * (1 + MJ )
The collector-substrate charge Qsc depends on the collector-substrate
voltage Vsc as follows, after adjusting the applicable model parameters
for temperature.
Temperature Dependence
Several transistor parameters depend on temperature. There are two
ways to specify the transistor temperature:
1-675
SPICE PNP
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the transistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
⎛ T ⎞ EG
⎜⎜ −1⎟⎟*
IS (T ) = IS * (T Tmeas )
XTI ⎝ Tmeas ⎠ Vt
*e
where:
1-676
SPICE PNP
⎛ T ⎞ 3* k * T ⎛ T ⎞ ⎛ T ⎞
VJE (T ) = VJE * ⎜ ⎟- * log ⎜ ⎟-⎜ ⎟ * EGTmeas + EGT
⎝ Tmeas ⎠ q ⎝ Tmeas ⎠ ⎝ Tmeas ⎠
where:
⎡ ⎛ VJE (T ) -VJE ⎞ ⎤
CJE (T ) = CJE * ⎢1 + MJE * ⎜ 400e − 6 * (T - Tmeas ) - ⎟⎥
⎣ ⎝ VJE ⎠⎦
where:
1-677
SPICE PNP
XTB
⎛ T ⎞
(T ) = * ⎜ ⎟
⎝ Tmeas ⎠
where:
-XTB
⎛ T ⎞
1 / NE
⎛ IS(T) ⎞
ISE (T ) = ISE * ⎜ ⎟ *⎜ ⎟
⎝ Tmeas ⎠ ⎝ IS ⎠
where:
1-678
SPICE PNP
1-679
SPICE PNP
1-680
SPICE PNP
1-681
SPICE PNP
1-682
SPICE PNP
Reverse beta, BR
The ideal maximum reverse beta. The default value is 1. The
value must be greater than 0.
Reverse emission coefficient, NR
The reverse emission coefficient or ideality factor. The default
value is 1. The value must be greater than 0.
B-C leakage current, ISC
The base-collector leakage current. The default value is 0 A/m2.
The value must be greater than or equal to 0.
1-683
SPICE PNP
1-684
SPICE PNP
Resistors Tab
Emitter resistance, RE
The resistance of the emitter. The default value is 1e-4 m2*Ω.
The value must be greater than or equal to 0.
Collector resistance, RC
The resistance of the collector. The default value is 0.01 m2*Ω.
The value must be greater than or equal to 0.
Zero-bias base resistance, RB
The resistance of the base. The default value is 1 m2*Ω. The value
must be greater than or equal to 0.
1-685
SPICE PNP
Capacitance Tab
1-686
SPICE PNP
1-687
SPICE PNP
1-688
SPICE PNP
1-689
SPICE PNP
1-690
SPICE PNP
1-691
SPICE PNP
Temperature Tab
1-692
SPICE PNP
1-693
SPICE PNP
B
Electrical conserving port associated with the transistor base
terminal.
C
Electrical conserving port associated with the transistor collector
terminal.
E
Electrical conserving port associated with the transistor emitter
terminal.
S
Electrical conserving port associated with the transistor substrate
terminal.
1-694
SPICE Resistor
• As a resistance value
• As process information that the block uses to calculate a resistance
value
T = TC + TO
where:
- TC is the Circuit temperature parameter value from the SPICE
Environment Parameters block. If this block doesn’t exist in the
circuit, TC is the default value of this parameter.
- TO is the Offset local circuit temperature, TOFFSET
parameter value.
• When you select Fixed temperature for the Model temperature
dependence using parameter, the resistor temperature is the
Fixed circuit temperature, TFIXED parameter value.
R = R0(1+TC1(T–Tnom)+TC2(T–Tnom)2)
Where
1-695
SPICE Resistor
1-696
SPICE Resistor
( LENGTH − NARROW )
R = RSH *
(WIDTH − NARROW )
where:
— RSH is the Sheet resistance, RSH parameter value.
— LENGTH is the Resistor length, LENGTH parameter
value.
— WIDTH is the Resistor width, WIDTH parameter value.
— NARROW is the Etch narrowing, NARROW parameter
value.
Resistance, R
Resistance value. This parameter is only visible when you select
Use specified resistance for the Resistor parameterization
parameter. The default value is 0 Ω.
Sheet resistance, RSH
Resistance per square of the resistor. This parameter is only
visible when you select Calculate from process information
for the Resistor parameterization parameter. The default
value is 0 Ω.
Resistor length, LENGTH
Length dimension of the resistor. This parameter is only visible
when you select Calculate from process information for the
Resistor parameterization parameter. The default value is
1e-06 m.
1-697
SPICE Resistor
Temperature Tab
1-698
SPICE Resistor
+
Positive electrical voltage.
1-699
SPICE Resistor
-
Negative electrical voltage.
1-700
SPST Switch
Dialog
Box and
Parameters
1-701
SPST Switch
Main Tab
Closed resistance
Resistance between the c and s electrical ports when the switch is
closed. The value must be greater than zero. The default value
is 0.01 Ω.
Open conductance
Conductance between the c and s electrical ports when the switch
is open. The value must be greater than zero. The default value
is 1e-6 S.
Threshold
The threshold voltage for the control physical signal input vT
above which the switch will turn on. The default value is 0 V.
Dynamics Tab
Model dynamics
Select whether the block models a switching delay:
• No dynamics — Do not model the delay. This is the default
option.
• Model turn-on and turn-off times — Use additional
parameters to model a delay between the point at which the
voltage at vT passes the threshold and the switch opening or
closing.
Turn-on delay
Time between the input voltage exceeding the threshold voltage
and the switch closing. This parameter is only visible when
you select Model turn-on and turn-off times for the Model
dynamics parameter. The value must be greater than zero. The
default value is 1e-3 seconds.
Turn-off delay
Time between the input voltage falling below the threshold
voltage and the switch opening. This parameter is only visible
1-702
SPST Switch
when you select Model turn-on and turn-off times for the
Model dynamics parameter. The value must be greater than
zero. The default value is 1e-3 seconds.
Initial input value, vT
The value of the physical signal input vT at time zero. This
value is used to initialize the delayed control voltage parameter
internally. This parameter is only visible when you select
Model turn-on and turn-off times for the Model dynamics
parameter. The default value is 0 V.
vT
Physical signal that opens and closes the switch
c, s
Electrical conserving ports
1-703
Stepper Motor
Description The Stepper Motor block represents a stepper motor. It uses the input
pulse trains, A and B, to control the mechanical output according to the
following equations:
eA K m sin( N r )
eB K m cos( N r )
diA
v A RiA eA / L
dt
diB
vB RiB eB / L
dt
d
J B Te
dt
e e
Te K m iA A sin N r K m iB B cos N r Td sin 4N
N r
Rm Rm
d
dt
where:
• eA and eB are the back emfs induced in the A and B phase windings,
respectively.
• iA and iB are the A and B phase winding currents.
1-704
Stepper Motor
Thermal Ports
The block has three optional thermal ports, one for each of the two
windings and one for the rotor. These ports are hidden by default.
To expose the thermal ports, right-click the block in your model, and
then from the context menu select Simscape block choices > Show
thermal port. This action displays the thermal ports on the block
icon, and adds the Temperature Dependence and Thermal port
1-705
Stepper Motor
tabs to the block dialog box. These tabs are described further on this
reference page.
Use the thermal ports to simulate the effects of copper resistance and
iron losses that convert electrical power to heat. For more information
on using thermal ports in actuator blocks, see “Simulating Thermal
Effects in Rotational and Translational Actuators”.
Dialog
Box and
Parameters
1-706
Stepper Motor
Mechanical Tab
Rotor inertia
Resistance of the rotor to change in motor motion. The default
value is 4.5e-05 kg*m2. The value can be zero.
1-707
Stepper Motor
Rotor damping
Energy dissipated by the rotor. The default value is 8e-04
N*m/(rad/s). The value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
Initial rotor angle
Angle of the rotor at the start of the simulation. The default
value is 0 rad.
1-708
Stepper Motor
A+
Top A-phase electrical connection
A-
Lower A-phase electrical connection
B+
Top B-phase electrical connection
B-
Lower B-phase electrical connection
C
Mechanical rotational conserving port
R
Mechanical rotational conserving port
1-709
Stepper Motor
HA
Winding A thermal port. For more information, see “Thermal
Ports” on page 1-705.
HB
Winding B thermal port. For more information, see “Thermal
Ports” on page 1-705.
HR
Rotor thermal port. For more information, see “Thermal Ports”
on page 1-705.
1-710
Stepper Motor Driver
Library Drivers
Description The Stepper Motor Driver block represents a driver for a stepper motor.
It creates the pulse trains, A and B, required to control the motor. This
block initiates a step each time the voltage at the PWM port rises above
the Enable threshold voltage parameter value.
If the voltage at the REV port is less than or equal to the Reverse
threshold voltage parameter value, pulse A leads pulse B by 90
degrees. If the voltage at the REV port is greater than the Reverse
threshold voltage value, pulse B leads pulse A by 90 degrees and the
motor direction is reversed.
At time zero, pulse A is positive and pulse B is negative.
If you set the Stepping mode parameter to Half stepping, the
Stepper Motor Driver block can produce the output waveforms required
for half stepping. In this mode, there is an intermediate state between
the full steps, in which just one of the A or the B half-windings is
powered. As a result, the step size is half of the stepper motor’s full step
size. At half steps, windings that are not powered are short-circuited.
This approximates the effect of a freewheeling diode connected across
the windings.
1-711
Stepper Motor Driver
Dialog
Box and
Parameters
1-712
Stepper Motor Driver
A+
Positive electrical output of pulse A
A-
Negative electrical output of pulse A
B+
Positive electrical output of pulse B
B-
Negative electrical output of pulse B
PWM
Triggering input step voltage
REF
Input floating reference voltage
REV
Input voltage that controls motor direction
1-713
Strain Gauge
Library Sensors
Description The Strain Gauge block represents a sensor that generates a change in
resistance as a function of strain using the following equation:
ΔR
= Kε
R
where:
Dialog
Box and
Parameters
Gauge resistance
The unstressed gauge resistance. The default value is 100 Ω.
Gauge factor
The ratio K of the fractional change in resistance to the fractional
change in length. The default value is 2.
1-714
Strain Gauge
B
Strain input
+
Positive electrical port
-
Negative electrical port
1-715
Thermal Resistor
R = R0(1+α(T–T0))
where:
dT 2
Q K d tc i R
dt
where:
1-716
Thermal Resistor
Dialog
Box and
Parameters
Electrical Tab
Nominal resistance
The nominal resistance of the thermistor at the reference
temperature. Many datasheets quote the nominal resistance at
25°C (298.15 K) and list it as R25. The default value is 1 Ω.
Reference temperature
The temperature at which the nominal resistance was measured.
The default value is 298.15 K.
Temperature coefficient
The coefficient α in the equation that describes resistance as a
function of temperature. The default value is 5e-05 1/K.
1-717
Thermal Resistor
Thermal Tab
A
Resistor thermal port
+
Positive electrical port
-
Negative electrical port
1-718
Thermistor
Library Sensors
R = R0 (e B (1/ T −1/ T0 ) − 1)
where:
dT
Q = K d tc
dt
where:
1-719
Thermistor
Dialog
Box and
Parameters
Electrical Tab
1-720
Thermistor
Reference temperature T0
The temperature at which the nominal resistance was measured.
The default value is 298.15 K.
Thermal Tab
A
Thermal port
+
Positive electrical port
-
Negative electrical port
1-721
Thermocouple
Purpose Model sensor that converts thermal potential difference into electrical
potential difference
Library Sensors
where:
dT
Q = K d tc
dt
where:
1-722
Thermocouple
1-723
Thermocouple
Dialog
Box and
Parameters
Electrical Tab
1-724
Thermocouple
Thermal Tab
Reference temperature
The temperature the block subtracts from the temperature at the
thermal port in calculating the voltage across the device. The
default value is 0 °C.
Thermal time constant
The time it takes the thermocouple temperature to reach 63%
of the final temperature change when a step change in ambient
temperature occurs. The default value is 1 s.
Dissipation factor
The thermal power required to raise the thermocouple
temperature by one K. The default value is 0.001 W/K.
Initial temperature
The temperature of the thermocouple at the start of the
simulation. The default value is 25 °C.
A
Thermocouple thermal port
+
Positive electrical port
-
Negative electrical port
1-725
Thermocouple
1-726
Three-Winding Mutual Inductor
dI1 dI dI
V1 = L1 + M 12 2 + M 13 3
dt dt dt
dI dI dI
V2 = M 12 1 + L2 2 + M 23 3
dt dt dt
dI dI dI
V3 = M 13 1 + M 23 2 + L3 3
dt dt dt
where:
In the preceding equations, currents are positive when flowing into the
positive node of their respective inductor terminals.
When you run a simulation that includes this block, the software checks
the specified parameter values to ensure that the resulting device is
passive. If it is not, the software issues an error.
1-727
Three-Winding Mutual Inductor
Dialog
Box and
Parameters
Inductance L1
The self inductance of the first winding. The default value is
0.001 H.
Inductance L2
The self inductance of the second winding. The default value is
0.001 H.
Inductance L3
The self inductance of the third winding. The default value is
0.001 H.
1-728
Three-Winding Mutual Inductor
1-729
Three-Winding Mutual Inductor
1+
Positive electrical voltage of the first mutual inductor
1-
Negative electrical voltage of the first mutual inductor
2+
Positive electrical voltage of the second mutual inductor
2-
Negative electrical voltage of the second mutual inductor
3+
Positive electrical voltage of the third mutual inductor
3-
Negative electrical voltage of the third mutual inductor
1-730
Thyristor
1-731
Thyristor
1-732
Thyristor
of the NPN and PNP devices, plus external resistors. For example, for
the circuit to latch into the on-state, once triggered by a suitable gate
current, the total gain of the two transistors must be greater than one.
This model structure replicates the behavior of a thyristor in typical
application circuits, while at the same time presenting a minimum
number of equations to the solver, to improve simulation speed.
• Off-state currents, IDRM and IRRM. These are typically quoted for the
maximum off-state voltages VDRM and VRRM. It is assumed, as is the
case for most thyristors, that IDRM = IRRM and VDRM = VRRM.
• The gate trigger voltage is equal to the Gate trigger voltage, v_GT
parameter value when the gate current is equal to the Gate trigger
current, i_GT parameter value.
• The thyristor latches on when the gate current is equal to the Gate
trigger current, i_GT. The thyristor does not latch on until the
gate current reaches this value. To ensure this is the case, you must
set the Internal shunt resistor, Rs parameter correctly. If the
resistance is too high, then the gate triggers before the gate current
reaches iGT. If the resistance is too small, then the gate does not
trigger.
1-733
Thyristor
1-734
Thyristor
Thermal Port
The block has an optional thermal port, hidden by default. To expose
the thermal port, right-click the block in your model, and then from the
context menu select Simscape block choices > Show thermal port.
This action displays the thermal port H on the block icon, and adds the
Thermal port tab to the block dialog box.
1-735
Thyristor
Use the thermal port to simulate the effects of generated heat and
device temperature. For more information on using thermal ports and
on the Thermal port tab parameters, see “Simulating Thermal Effects
in Semiconductors”.
1-736
Thyristor
Dialog
Box and
Parameters
1-737
Thyristor
Main Tab
1-738
Thyristor
parameter is visible only when you select Lookup table for the
I-V characteristics defined by parameter.
Vector of corresponding currents, I_T
The vector of currents corresponding to the on-state voltages
vector values, to be used for 1D table lookup. The two vectors
must be of the same size. The default values, in A, are [0.015
0.22 0.75 1.4 2 2.75 3.45]. This parameter is visible only
when you select Lookup table for the I-V characteristics
defined by parameter.
Off-state current, I_DRM
The off-state anode current IDRM that flows when the
anode-cathode voltage is equal to the off-state voltage VDRM. The
default value is 0.01 mA.
Corresponding off-state voltage, V_DRM
Corresponding off-state voltage, VDRM. The anode-cathode voltage
VDRM applied with the thyristor in the off-state when quoting the
off-state current IDRM. The default value is 400 V.
Holding current
Minimum current at which the thyristor stays in the off
state when gate voltage is not commanding the on state. The
default value is 1 mA. This parameter is visible only when you
select Lookup table for the I-V characteristics defined by
parameter.
Measurement temperature
The device simulation temperature. You must specify all block
parameter values for this temperature. The default value is 25
°C. This parameter is visible only when you select Fundamental
nonlinear equations for the I-V characteristics defined by
parameter.
1-739
Thyristor
1-740
Thyristor
1-741
Thyristor
1-742
Thyristor
Advanced Tab
G
Electrical conserving port associated with the gate
A
Electrical conserving port associated with the anode
1-743
Thyristor
K
Electrical conserving port associated with the cathode
Examples See the Thyristor Static Behavior Validation and Thyristor Dynamic
Behavior Validation examples.
1-744
Timer
1-745
Timer
Dialog
Box and
Parameters
1-746
Timer
Supply Tab
Outputs Tab
Discharge Tab
1-747
Timer
THRES
Electrical port corresponding to the threshold pin
TRIG
Electrical port corresponding to the trigger pin
CONT
Electrical port corresponding to the control pin
RESET
Electrical port corresponding to the reset pin
OUT
Electrical port corresponding to the output pin
DISCH
Electrical port corresponding to the discharge pin
1-748
Transmission Line
Description The Transmission Line block lets you choose between the following
models of a transmission line:
The first option provides the best simulation performance, with options
2, 3 and 4 requiring progressively more computing power.
Delay-Based and Lossless
This first option, Delay-based and lossless, models the transmission
line as a fixed impedance, irrespective of frequency, plus a delay term.
The defining equations are:
v 1 ( t ) – i 1 ( t ) Z 0 = v 2 ( t – τ ) + i2 ( t – τ ) Z 0
v 2 ( t ) – i 2 ( t ) Z 0 = v 1 ( t – τ ) + i1 ( t – τ ) Z 0
where:
1-749
Transmission Line
1-750
Transmission Line
1-751
Transmission Line
L = C · Z 02
The block lets you specify either L or Z0 when using the lumped
parameter model.
Dialog
Box and
Parameters
1-752
Transmission Line
Model type
Select one of the following transmission line models:
• Delay-based and lossless — Model the transmission line as
a fixed impedance, irrespective of frequency, plus a delay term,
as described in “Delay-Based and Lossless” on page 1-749.
This is the default method. It provides the best simulation
performance.
• Delay-based and lossy — Model the transmission line as a
number of delay-based components, connected in series via a
set of resistors, as described in “Delay-Based and Lossy” on
page 1-750.
• Lumped parameter L-section — Model the transmission
line as a number of L-line segments, connected in series, as
described in “Lumped Parameter L-Section” on page 1-750.
• Lumped parameter pi-section — Model the transmission
line as a number of pi-line segments, connected in series, as
described in “Lumped Parameter Pi-Section” on page 1-751.
Transmission delay
The total transmission line delay. This parameter appears for
delay-based models only. The parameter value must be greater
than zero. The default value is 5 ns, which is a typical value for a
one-meter coaxial cable.
Characteristic impedance
The characteristic impedance of the transmission line.
This parameter appears for delay-based models, and for
lumped parameter models where Parameterization is By
characteristic impedance and capacitance. The parameter
value must be greater than zero. The default value is 50 Ω.
Parameterization
This parameter appears for lumped parameter models only. Select
the model parameterization method, as described in “Lumped
Parameter Line Model Parameterization” on page 1-751:
1-753
Transmission Line
1-754
Transmission Line
Number of segments
The number of model segments used to represent the transmission
line. This parameter appears for Delay-based and lossy and
for lumped parameter models. The parameter value must be an
integer greater than, or equal to, 1. The default value is 1.
Ports The block has four conserving electrical ports. For a coaxial cable, the
two top ports correspond to the inner conductor, and the two lower ports
to the external shielding conductor.
1-755
Unipolar Stepper Motor
Description
The Unipolar Stepper Motor block represents a stepper motor that has
center taps on the two phase windings. The winding currents and
mechanical output are defined by the following equations:
eA K m sin( N r )
eA K m sin( N r )
eB K m sin( N r )
eB K m sin( N r )
diA
v A RiA eA / L
dt
diA
v A RiA eA / L
dt
diB
vB RiB eB / L
dt
1-756
Unipolar Stepper Motor
diB
vB RiB eB / L
dt
d
J B Te
dt
e e e e
Te K m iA iA A A sin N r K m iB iB B B cos N r Td sin 4 N r
Rm Rm
d
dt
where:
1-757
Unipolar Stepper Motor
• Nr is the number of teeth on each of the two rotor poles. The Full
step size parameter is (π/2)/Nr.
• R is the half-winding resistance. For example, it is the resistance
between A+ and A0 ports.
• L is the half-winding inductance. For example, it is the inductance
between A+ and A0 ports.
• Rm is the magnetizing resistance.
• B is the rotational damping.
• J is the inertia.
• ω is the rotor speed.
• Θ is the rotor angle.
• Td is the detent torque amplitude.
1-758
Unipolar Stepper Motor
Thermal Ports
The block has five optional thermal ports, one for each of the four
half-windings and one for the rotor. These ports are hidden by default.
To expose the thermal ports, right-click the block in your model, and
then from the context menu select Simscape block choices > Show
thermal port. This action displays the thermal ports on the block
icon, and adds the Temperature Dependence and Thermal port
tabs to the block dialog box. These tabs are described further on this
reference page.
Use the thermal ports to simulate the effects of copper resistance and
iron losses that convert electrical power to heat. For more information
on using thermal ports in actuator blocks, see “Simulating Thermal
Effects in Rotational and Translational Actuators”.
1-759
Unipolar Stepper Motor
Dialog
Box and
Parameters
Half-winding resistance
Half of the resistance of the A and B phase windings as measured
between the A+ and A-, and the B+ and B- ports. The default
value is 0.55 Ω.
1-760
Unipolar Stepper Motor
Half-winding inductance
Half of the inductance of the A and B phase windings as measured
between the A+ and A-, and the B+ and B- ports. The default
value is 0.0015 H.
Motor torque constant
Motor torque constant Km. The default value is 0.19 N*m/A.
Detent torque
The amplitude of the sinusoidal torque variation observed when
rotating the shaft of the unpowered motor. The default value is
0 N*m.
Magnetizing resistance
The total magnetizing resistance seen from each of the phase
windings, for example across A+ and A0. The value must be
greater than zero. The default value is Inf, which implies that
there are no iron losses.
Full step size
Step size when changing the polarity of either the A or B phase
current. The default value is 1.8°.
Mechanical Tab
Rotor inertia
Resistance of the rotor to change in motor motion. The default
value is 4.5e-05 kg*m2. The value can be zero.
Rotor damping
Energy dissipated by the rotor. The default value is 8e-04
N*m/(rad/s). The value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
Initial rotor angle
Angle of the rotor at the start of the simulation. The default
value is 0 rad.
1-761
Unipolar Stepper Motor
1-762
Unipolar Stepper Motor
A+
Top A-phase electrical connection
A0
A-phase center tap connection
A-
Lower A-phase electrical connection
B+
Top B-phase electrical connection.
B0
B-phase center tap connection
B-
Lower B-phase electrical connection
C
Mechanical rotational conserving port
R
Mechanical rotational conserving port
HA+
Thermal port for winding between A+ and A0. For more
information, see “Thermal Ports” on page 1-759.
HA-
Thermal port for winding between A- and A0. For more
information, see “Thermal Ports” on page 1-759.
1-763
Unipolar Stepper Motor
HB+
Thermal port for winding between B+ and B0. For more
information, see “Thermal Ports” on page 1-759.
HB-
Thermal port for winding between B- and B0. For more
information, see “Thermal Ports” on page 1-759.
HR
Thermal port for rotor. For more information, see “Thermal Ports”
on page 1-759.
1-764
Unipolar Stepper Motor Driver
Library Drivers
Description The Unipolar Stepper Motor Driver block represents a driver specifically
configured for use with the Unipolar Stepper Motor block. It connects
the two winding center-tap connections A0 and B0 to the positive supply
with a voltage equal to the value you provide for the Output voltage
amplitude parameter. The A+, A-, B+, and B- ports are grounded in
the appropriate sequence to create the stepping motion. The block
initiates a step each time the voltage at the PWM port rises above the
Enable threshold voltage parameter value.
If the voltage at the REV port is less than or equal to the Reverse
threshold voltage parameter value, pulse A leads pulse B by 90
degrees. If the voltage at the REV port is greater than the Reverse
threshold voltage value, pulse B leads pulse A by 90 degrees and the
motor direction is reversed.
At time zero, A- and B+ are grounded.
If you set the Stepping mode parameter to Half stepping, the
Unipolar Stepper Motor Driver block can produce the output waveforms
required for half stepping. In this mode, there is an intermediate
state between the full steps, in which just one of the A or the B
half-windings is powered. As a result, the step size is half of the stepper
motor’s full step size. At half steps, windings that are not powered are
short-circuited. This approximates the effect of a freewheeling diode
connected across the windings.
1-765
Unipolar Stepper Motor Driver
Dialog
Box and
Parameters
1-766
Unipolar Stepper Motor Driver
A+
Top A-phase electrical connection
A0
A-phase center tap connection
A-
Lower A-phase electrical connection
B+
Top B-phase electrical connection
B0
B-phase center tap connection
B-
Lower B-phase electrical connection
PWM
Triggering input step voltage
REF
Input floating reference voltage
REV
Input voltage that controls motor direction
1-767
Universal Motor
Description The Universal Motor block represents the electrical and torque
characteristics of a universal (or series) motor using the following
equivalent circuit model.
Lf Rf if
Ra
La V
+
vb
−
Where:
1-768
Universal Motor
1 The magnetic field in the motor induces the following back emf vb in
the armature:
vb = Laf i f
where Laf is a constant of proportionality and ω is the angular
velocity.
2 The mechanical power is equal to the power reacted by the back emf:
P = vbi f = Laf i f 2
T = P / = Laf i f 2
V = ( R f + Ra )i f + vb = ( R f + Ra + Laf )i f
3 Solve the preceding equation for if and substitute this value into
the equation for torque:
1-769
Universal Motor
2
⎛ V ⎞
T = Laf ⎜
⎜ R + R + L ⎟⎟
⎝ f a af ⎠
The block uses the rated speed and power to calculate the rated
torque. The block uses the rated torque and rated speed values in
the preceding equation plus the corresponding electrical power to
determine values for Rf+Ra and Laf.
2
⎛ V ⎞
= Laf ⎜ − J − B
⎜ R + R + L ⎟⎟
Tload
⎝ f a af ⎠
The block produces a positive torque acting from the mechanical C to
R ports.
Thermal Ports
The block has two optional thermal ports, one per winding, hidden by
default. To expose the thermal ports, right-click the block in your model,
and then from the context menu select Simscape block choices >
Show thermal port. This action displays the thermal ports on the
block icon, and adds the Temperature Dependence and Thermal
port tabs to the block dialog box. These tabs are described further on
this reference page.
Use the thermal ports to simulate the effects of copper resistance losses
that convert electrical power to heat. For more information on using
1-770
Universal Motor
Dialog
Box and
Parameters
1-771
Universal Motor
Model parameterization
Select one of the following methods for block parameterization:
• By equivalent circuit parameters — Provide electrical
parameters for an equivalent circuit model of the motor.
• By DC rated power, rated speed & maximum torque —
Provide DC power and speed parameters that the block
converts to an equivalent circuit model of the motor. This is
the default method.
• By DC rated power, rated speed & electrical power
— Provide AC power and speed parameters that the block
converts to an equivalent circuit model of the motor.
• By AC rated power, rated speed, current & electrical
power — Provide AC power and speed parameters that the
block converts to an equivalent circuit model of the motor.
Total armature and field winding resistance
Total resistance of the armature and field winding. This
parameter is only visible when you select By equivalent
circuit parameters for the Model parameterization
parameter. The default value is 132.8 Ω.
Rated speed (at rated load)
Motor speed at the rated mechanical load. This parameter
is only visible when you select By DC rated power, rated
speed & maximum torque, By DC rated power, rated speed
& electrical power, or By AC rated power, rated speed,
current & electrical power for the Model parameterization
parameter. The default value is 6.5e+03 rpm.
Rated load (mechanical power)
The mechanical load for which the motor is rated to operate.
This parameter is only visible when you select By DC rated
power, rated speed & maximum torque, By DC rated power,
rated speed & electrical power, or By AC rated power,
1-772
Universal Motor
Note You can set the Total armature and field winding
inductance value to zero, but this only makes sense if you are
driving the motor with a DC source.
1-773
Universal Motor
Mechanical Tab
Rotor inertia
Rotor inertia. The default value is 2e-04 kg*m2. The value can
be zero.
Rotor damping
Rotor damping. The default value is 1e-06 N*m/(rad/s). The
value can be zero.
Initial rotor speed
Speed of the rotor at the start of the simulation. The default
value is 0 rpm.
1-774
Universal Motor
+
Positive electrical port.
-
Negative electrical port.
1-775
Universal Motor
C
Mechanical rotational conserving port.
R
Mechanical rotational conserving port.
Hf
Field winding thermal port. For more information, see “Thermal
Ports” on page 1-770.
Ha
Armature winding thermal port. For more information, see
“Thermal Ports” on page 1-770.
1-776
Variable Capacitor
dC dv
• i= v+C
dt dt
Use the preceding equation when the capacitance is defined as the
ratio of the charge Q to the steady-state voltage:
Q(v)
C(v) =
v
dv
• i=C
dt
Use the preceding equation when the capacitance is defined as the
local gradient of the charge-voltage curve for a given voltage:
dQ(v)
C (v ) =
dv
The block includes a resistor in series with the variable capacitor. You
can use this resistor to represent the total ohmic connection resistance
of the capacitor. You may need to use this resistor to prevent numerical
issues for some circuit topologies, such as where a Variable Capacitor
block is connected in parallel with another capacitor block that does not
have a series resistance.
1-777
Variable Capacitor
Dialog
Box and
Parameters
Equation
Select one of the following options for block capacitance:
• I = C*dV/dt + dC/dt*V — This equation assumes the
capacitance is defined as the ratio of the charge to the
steady-state voltage. This option is the default.
• I = C*dV/dt — This equation assumes the capacitance is
defined as the local gradient of the charge-voltage curve for a
given voltage.
Minimum capacitance C>0
The lower limit on the value of the signal at port C. This limit
prevents the signal from reaching a value that has no physical
meaning. The default value is 1e-09 F.
Series resistance
The value of the resistance placed in series with the variable
capacitor. The default value is 1e-06 Ω.
Initial charge
The charge at the start of the simulation. This parameter is
only visible when you select I = C*dV/dt + dC/dt*V for the
Equation parameter. The default value is 0 c.
1-778
Variable Capacitor
Initial voltage
The output voltage at the start of the simulation. This parameter
is only visible when you select I = C*dV/dt for the Equation
parameter. The default value is 0 V.
C
Capacitance physical signal port (C must be finite and greater
than zero)
+
Positive electrical port
-
Negative electrical port
1-779
Variable Inductor
dL di
• v= i+ L
dt dt
Use the preceding equation when the inductance is defined as the
ratio of the magnetic flux Ф to the steady-state current:
Φ (i )
L(i ) =
i
di
• v=L
dt
Use the preceding equation when the inductance is defined as the
local gradient of the flux-current curve for a given current:
d Φ (i )
L(i ) =
di
1-780
Variable Inductor
Dialog
Box and
Parameters
Equation
Select one of the following options for block inductance:
• V = L*dI/dt + dL/dt*I — This equation assumes the
inductance is defined as the ratio of the magnetic flux to the
steady-state current. This option is the default.
• V = L*dI/dt — This equation assumes the inductance is
defined as the local gradient of the flux-current curve for a
given current.
Minimum inductance L>0
The lower limit on the value of the signal at port L. This limit
prevents the signal from reaching a value that has no physical
meaning. The default value is 1e-06 H.
Parallel conductance
The value of the conductance placed in parallel with the variable
inductor. The default value is 1e-09 1/Ω.
Initial magnetic flux
The magnetic flux at the start of the simulation. This parameter
is only visible when you select V = L*dI/dt + dL/dt*I for the
Equation parameter. The default value is 0 Wb.
1-781
Variable Inductor
Initial current
The output current at the start of the simulation. This parameter
is only visible when you select V = L*dI/dt for the Equation
parameter. The default value is 0 A.
L
Inductance physical signal port (L must be finite and greater
than zero)
+
Positive electrical port
-
Negative electrical port
1-782
Voltage-Controlled Oscillator
2 F v
lim
where:
1-783
Voltage-Controlled Oscillator
Dialog
Box and
Parameters
1-784
Voltage-Controlled Oscillator
Frequency Tab
1-785
Voltage-Controlled Oscillator
Dynamics Tab
Dynamics
Select one of the following methods for specifying dynamics:
• No dynamics — Do not model the time delay between a change
in the input control voltage and the oscillator frequency. This
is the default option.
1-786
Voltage-Controlled Oscillator
1+
Positive input voltage
1-
Negative input voltage
2+
Positive output voltage
2-
Negative output voltage
1-787
Voltage-Controlled Switch
1-788
Voltage-Controlled Switch
Dialog
Box and
Parameters
Threshold voltage, VT
The voltage above which the block interprets the controlling
voltage as HIGH. The default value is 0 V.
Hysteresis voltage, VH
The amount by which the controlling voltage must exceed or fall
below the Threshold voltage, VT parameter value to change the
state of the switch. The default value is 0 V.
1-789
Voltage-Controlled Switch
On resistance, RON
The resistance of the switch when it is closed. The default value
is 1 Ω.
Off resistance, ROFF
The resistance of the switch when it is open. The default value
is 1e+12 Ω.
Initial switch state
Select one of the following options for the state of the switch at
the start of the simulation:
• On — The switch is initially closed and its resistance value is
equal to the On resistance, RON parameter value. This is
the default option.
• Off — The switch is initially open and its resistance value is
equal to the Off resistance, ROFF parameter value.
+
Positive electrical input and output ports.
-
Negative electrical input and output ports.
1-790
Voltage Source
Purpose Simulate voltage source with DC, AC, and noise components
Library Sources
Description The Voltage Source block implements a voltage source with DC, AC, and
noise components. The voltage across the + and – terminals is given by:
where:
N 0, 1
vN Pv 2
h
where:
1-791
Voltage Source
Noise Options
The block generates Gaussian noise by using the Random Number
source in the Simscape Foundation library. You can control the random
number seed by setting the Repeatability parameter:
seed = randi(2^32-1);
Basic Simulating with noise enabled slows down simulation. Choose the
Assumptions sample time (h) so that noise is generated only at frequencies of interest,
and and not higher.
Limitations
1-792
Voltage Source
Dialog
Box and
Parameters
DC voltage
The DC component of the output voltage. The default value is 0
V. Enter a nonzero value to add a DC component to the voltage
source.
AC voltage peak amplitude
Amplitude of the AC component of the output voltage. The default
value is 0 V. Enter a nonzero value to add an AC component to
the voltage source.
AC voltage phase shift
Phase offset of the AC component of the output voltage. The
default value is 0 degrees.
AC voltage frequency
Frequency of the AC component of the output voltage. The default
value is 60 Hz.
1-793
Voltage Source
Noise Tab
Noise mode
Select the noise option:
• Disabled — No noise is produced by the voltage source. This
is the default.
• Enabled — The voltage source generates thermal noise, and
the associated parameters become visible on the Noise tab.
Power spectral density
The single-sided spectrum noise power. Strictly-speaking, this
is a density function for the square of the voltage, commonly
thought of as a power into a 1 ohm load, and therefore the units
are V^2/Hz. To avoid this unit ambiguity, some datasheets quote
noise voltage as a noise density with units of V/√Hz. In this case,
you should enter the square of the noise density quoted in the
datasheet as the parameter value. The default value is 0 V^2/Hz.
Sample time
Defines the rate at which the noise source is sampled. Choose
it to reflect the frequencies of interest in your model. Making
the sample time too small will unnecessarily slow down your
simulation. The default value is 1e-3 s.
Repeatability
Select the noise control option:
• Not repeatable — The random sequence used for noise
generation is not repeatable. This is the default.
• Repeatable — The random sequence used for noise generation
is repeatable, with a system-generated seed.
• Specify seed — The random sequence used for noise
generation is repeatable, and you control the seed by using the
Seed parameter.
1-794
Voltage Source
Seed
Random number seed used by the noise random number
generator. This parameter is visible only if you select Specify
seed for the Repeatability parameter. The default value is 0.
+
Positive electrical port
-
Negative electrical port
1-795