Memristor
The perfect memristor.
blockType: AcausalFoundation.Electrical.Elements.Memristor
Path in the library:
|
Description
This block allows you to simulate an ideal memristor. The behavior of a memristor is similar to that of a resistor, except that its resistance is a function of the current passed through the device (the time integral of the current). The resistance of the memristor at a given time is determined by two states of the memristor, A and B, depending on which part of the device is in one of these states.
The mathematical model of the memristor is described by the following equations:
where:
-
— voltage on the memristor;
-
— current resistance;
-
— current;
-
and — memristor resistances in states
AandBaccordingly; -
— the proportion of the memristor in the state
A. The positive current flowing from the * terminal to the *−* terminal increases . Similarly, the positive current flowing from terminal *−* to terminal * reduces . Meaning limited to 0 and 1; -
— time;
-
— the total charge required for the memristor to completely transition from one state to another;
-
— window function that holds in the window between 1 and 0.
Window function:
where:
-
— a positive integer. This function is modified when close to 0 or 1 to improve computational stability.
Ports
+ — positive
electricity
The electrical port represents the positive terminal of the memristor.
− — negative
electricity
The electrical port represents the negative terminal of the memristor.
Parameters
Resistance of state A — resistance in the state But
1 Ohm (default) | positive | scalar
The resistance of the memristor in the case when the entire device is in the But that is , if . The value must be greater than zero.
Resistance of state B — the entire memristor is in state B
100 Ohms (default) | positive | scalar
The resistance of the memristor in the case when the entire device is in the B that is , if . The value must be greater than zero.
Total charge required for full state transition — charge for full transition between states
10 ΜL (default) | positive | scalar
The total charge required for the transition of the memristor from completely one state to completely another.
State A fraction at t=0 — the fraction of the memristor in the state But at the beginning of the simulation,
0 (default) | Min/max: (0.1)
The initial value for at the beginning of the simulation. The value must be greater than or equal to 0 and less than or equal to 1.
Exponent of the window function — exponent of the window function
2 (by default) | positive | integer | scalar
Indicator the window function that holds the value between 0 and 1.
Initial value of current i — initial value of current i
0 (default)
Initial current value .
Initial value of voltage v — initial value of voltage v
0 (default)
Initial voltage value .