Commit Graph

16 Commits

Author SHA1 Message Date
0642f52172 Fix some issues related to the Courant number
step_h was using the wrong timestep; fixing it caused update issues
based on the Courant number being 1.0, i.e. too large. Reducing it to
\sqrt{3}/3 fixes stability issues. Unfortunately, a non-Unity Courant
value prevents me from using the ideal Absorbing Boundary Condition I
had just implemented, so that's been disabled.
2020-10-03 19:44:30 -07:00
5c8c2f6c76 Fix division by zero in UPML boundary 2020-10-03 13:58:44 -07:00
f50dbf7d4e Make the float depth compile-time configurable 2020-09-13 22:38:00 -07:00
cb9f413710 Add energy measurement 2020-09-13 17:08:33 -07:00
fbca8622df Remove usize casts 2020-09-07 17:54:50 -07:00
5d61765a84 Move the Driver away from the builder pattern and use mutators instead 2020-09-07 17:46:42 -07:00
b7716d2dea Repurpose mat::Conductor to mat::Static
This will allow taking a material-independent snapshot of the SimState.
2020-09-06 12:18:31 -07:00
d26b4197af Introduce a Driver abstraction to encapsulate the SimState and the Renderers 2020-09-06 11:24:48 -07:00
fc14961d32 Render simulations to the terminal and to disk simultaneously 2020-09-05 17:43:51 -07:00
861d7430e2 Tune some rendering constants 2020-09-05 14:44:26 -07:00
8e71e02ac1 Fix clippy errors 2020-09-04 16:49:24 -07:00
6d7bb5becb Generalize rendering into a trait 2020-09-04 16:12:33 -07:00
99cb824a36 Implement a mp4 renderer 2020-09-03 22:34:56 -07:00
aff8764114 Implement a BH-curve material (example material is 3R1)
NB: I think there are some errors needing to be worked out, but at least
it doesn't crash!
2020-08-27 23:41:57 -07:00
6ac0dafa47 Have the GenericMaterial be an enum to make it easier to replace the ferromagnet model 2020-08-27 12:51:12 -07:00
c68964403d Fix COMSOL ferromagnet model, and make a new example for it
I'm a little skeptical of it as a model, though.
2020-08-22 22:35:45 -07:00