Memristor
Ideal Memristor.
blockType: AcausalFoundation.Electrical.Elements.Memristor
|
Path in the library:
|
Description
This block allows you to model an ideal memristor. The behaviour of a memristor is similar to that of a resistor, except that its resistance is a function of the current through the device (integral of current over time). The resistance of a memristor at a given time is determined by the 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 across the memristor;
-
- current resistance;
-
- current;
-
and - resistances of the memristor in states
AandB, respectively; -
- is the fraction of the memristor in the
Astate. A positive current flowing from the + terminal to the - terminal increases . Similarly, a positive current flowing from the - terminal to the + terminal decreases . The value of is limited to 0 and 1; -
- time;
-
- the total charge required to transition the memristor completely from one state to completely another;
-
- a window function that keeps in the window between 1 and 0.
Window function:
Where:
-
- is a positive integer. This function is modified when is close to 0 or 1 to improve computational stability.
Ports
+ is positive
electricity.
Electrical port, represents the positive terminal of the memristor.
- is the negative
electricity
Electrical port, represents the negative terminal of the memristor.
Parameters
Resistance of state A - resistance in state A
1 Ohm (by default) | positive | scalar
The resistance of the memristor when the entire device is in the A state, that is, if . The value must be greater than zero.
Resistance of state B - the whole memristor is in state B.
100 ohms (by default) | positive | scalar
Resistance of the memristor when the entire device is in B state, that is, if . The value must be greater than zero.
Total charge required for full state transition - charge required for full state transition
10 mKl (by default) | positive | scalar
The total charge required for a memristor to transition from fully one state to fully another.
State A fraction at t=0 - the fraction of the memristor in state A at the beginning of the simulation
0 (by default) | min/max: (0,1)
Initial value for at the start 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 - window function exponent
2 (by default) | positive | calculus | scalar.
Indicator of window function that holds the value of between 0 and 1.
Initial value of current i - initial value of current i
`0 (By default)
Initial value of current .
Initial value of voltage v - initial value of voltage v
0 (By default)
Initial value of voltage .
