d8ae766099
Add a bunch of .round()
s before conversions
...
Previously this was leading to inconsistencies when using f32 v.s. f64
2020-12-17 15:09:53 -08:00
75fde43aa7
Get another 25% perf bump by optimizing material layouts
2020-12-16 14:30:52 -08:00
41572f5285
Optimize GenericMaterial layout
...
Shaving off 2 floats, i.e. 16 bytes. Brings a 3-4% overall perf
increase. Should be possible to shave another 16 bytes.
2020-12-16 14:04:30 -08:00
737ae1b872
Add diagnostics
binary for showing things like material parameters
2020-12-16 13:53:39 -08:00
c9b4ab5b6e
More reactive z navigation
2020-12-16 00:10:16 -08:00
6362b5a60e
parallelize render_scalar_field
2020-12-15 14:19:29 -08:00
b3aba7658b
Add a magnetic loop measurement
2020-12-14 21:54:33 -08:00
cba2e3c3d2
Change up some measurement/rendering details
2020-12-14 21:44:07 -08:00
e105819461
CurlStimulus can now handle negative magnitudes
2020-12-08 22:19:06 -08:00
f5f90a7a15
Fix a bunch of warnings
2020-12-07 22:55:24 -08:00
f1c9334322
Don't recalculate inv_feature_size in every work unit
...
This shaves nearly 1% off the total simulation time
2020-12-07 22:05:20 -08:00
82b1eea353
Add a way to measure the current directed around a closed loop
2020-12-07 09:16:07 -08:00
d9176cdf06
Non-uniform current stimuli can be specified easier
2020-12-06 20:56:34 -08:00
d619383fb9
Make Current measurement serializable
...
Note that this REALLY slows it down, since it forces the Region to be
Boxed.
It might make sense at some point to consider introducing a RegionBitmap
type. Maybe keep the original Region type -- for serializing -- but
cache a Bitmap version where perf matters more.
2020-12-06 19:54:02 -08:00
8d4a3a91fe
Fix broken tests + misc cleanup
...
Move all the examples which don't compile to the `old/` directory.
2020-12-06 13:31:13 -08:00
28c734a4c5
Add a Current stimulus to the wrapped torus
2020-11-29 21:52:52 -08:00
1f44605714
Add an example for a "wrapped torus": that is, a ferromagnet torus with wire loops around it
...
Still missing:
- stimulus to inject a current onto one of the wire loops
- measurement to measure current on the other wire loop
2020-11-29 18:25:34 -08:00