tidy3d.DCVoltageSource#
- class DCVoltageSource[source]#
Bases:
Tidy3dBaseModelDC voltage source in volts.
- Parameters:
Notes
This voltage refers to potential above the equivalent simulation ground. Currently, electrical ports are not defined.
Examples
>>> import tidy3d as td >>> voltages = [-0.5, 0, 1, 2, 3, 4] >>> voltage_source = td.DCVoltageSource(voltage=voltages)
Attributes
Methods
Warn if repeated voltage values are present, treating 0 and -0 as the same value.
check_voltage(val)- name#
- voltage#
- units#