mnns.units
¶
Characteristic units for a nanowire network.
Classes:
| Name | Description |
|---|---|
NWNUnits |
Class for characteristic units for a nanowire network. Acts similar to a |
Functions:
| Name | Description |
|---|---|
get_units |
Deprecated. Use |
NWNUnits
¶
NWNUnits(new_units: dict[str, float] = None)
Class for characteristic units for a nanowire network. Acts similar to a dictionary with key-value pairs to access units.
The default units for the nanowire network are:
units = mnns.NWNUnits()
print(units)
v0: 1.0 V, Voltage
Ron: 10.0 Ω, ON Junction resistance
l0: 7.0 μm, Wire length
D0: 50.0 nm, Wire diameter
w0: 10.0 nm, Junction length (2x Wire coating thickness)
rho0: 22.6 nΩm, Wire resistivity
mu0: 0.01 μm^2 s^-1 V^-1, Ion mobility
Roff_Ron: 160 Off-On Resistance ratio
i0: 0.1 A, Current
t0: 10000.0 μs, Time
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
new_units
|
NWNUnits or dict
|
Dictionary of any custom units to use. Only base units can be altered. |
None
|
Attributes:
| Name | Type | Description |
|---|---|---|
units |
dict
|
Dictionary of characteristic units. |
Source code in mnns/units.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
get_units
¶
get_units(
new_units: dict[str, float] = None,
) -> dict[str, float]
Deprecated. Use mnns.NWNUnits
instead.
Returns the characteristic units for a nanowire network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
new_units
|
dict
|
Dictionary of any custom units to use. Only base units can be altered. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
units |
dict
|
Dictionary of characteristic units. |
Source code in mnns/units.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |