README: nit: correct the step order for E/H

This commit is contained in:
2022-05-04 00:11:18 -07:00
parent 9539dc56b8
commit 97c2b82b94

View File

@@ -158,9 +158,9 @@ here's a plot of `M(mem2)` over time from the SR latch simulation. we're measuri
## Processing Loop (and how GPU acceleration works) ## Processing Loop (and how GPU acceleration works)
the processing loop for a simulation is roughly as follows (src/driver.rs:step_until drives this loop): the processing loop for a simulation is roughly as follows (src/driver.rs:step_until drives this loop):
1. evaluate all stimuli at the present moment in time; these produce an "externally applied" E and B field 1. evaluate all stimuli at the present moment in time; these produce an "externally applied" E and H field
across the entire volume. across the entire volume.
2. apply the FDTD update equations to "step" the B field, and then "step" the E field (TODO: is this the right order?). these equations take the external stimulus from step 1 into account. 2. apply the FDTD update equations to "step" the E field, and then "step" the H field. these equations take the external stimulus from step 1 into account.
3. evaluate all the measurement functions over the current state; write these to disk. 3. evaluate all the measurement functions over the current state; write these to disk.
4. serialize the current state to disk so that we can resume from this point later if we choose. 4. serialize the current state to disk so that we can resume from this point later if we choose.