69th example -rectangular waveform for oscillating voltages.
test3d08, time-dependent oscillating potentials
test3d16, User-supplied time-dependent potentials
Similar to test3d08 but with a rectangular instead of sinusoidal waveform.
The voltage goes from
V0 at time 0
to V0 + V1 at time T1
to V0 + V2 at time T2
to V0 + V3 at time T3
to V0 + V4 at time T4
to V0 at time T5.
For the data entered above, the voltage therefore goes
from 0 to 19 at time 0,
stays at 19 until time 5e-7ms,
then changes to -19,
stays at -19 until time 1e-6ms,
when it reverts to 0.
This cycle repeats every 1e-6ms.
The waveform is displaced by t0 = 1e-6ms.
The printing level is 'f', which corresponds to 'all + fields' (See Help), and so the 3 components of the electric field appear in the information box and the output file -which enables the rectangular waveform to be confirmed.
The mesh method ('m') is used for ray tracing. The second and later rays are therefore traced much more quickly than the first ray.