|
4cd9bb86bb
|
Add tests for demagnetization across edges
|
2020-08-28 12:50:36 -07:00 |
|
|
48f362cb3c
|
Simplify the MHCurve tests
|
2020-08-28 12:42:50 -07:00 |
|
|
29a1b066cc
|
Test magnetization across edges
|
2020-08-28 12:37:14 -07:00 |
|
|
c38f06a02c
|
Test demagnetization
|
2020-08-28 12:29:50 -07:00 |
|
|
6b509b6994
|
Tests for magnetizing in the negative direction
|
2020-08-28 12:19:38 -07:00 |
|
|
65c6f6caa4
|
Fix movement along a rising edge
|
2020-08-28 12:02:43 -07:00 |
|
|
8d4d23b1c8
|
Add some tests for the MHCurve material
One is failing. Maybe I should use R64 internally, again.
|
2020-08-28 11:37:18 -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 |
|
|
b25ccc2471
|
Factor mat.rs and sim.rs out of lib.rs
|
2020-08-27 19:17:07 -07:00 |
|
|
57258eb6cc
|
Advance the E field by using Ampere's circuital law MACROSCOPIC equation
|
2020-08-27 15:23:52 -07:00 |
|
|
f948820edf
|
Implement a BHCurve
Can't implement this style of ferromagnet until ew rework step_e to use
the macroscopic version of Maxwell's equation though, I think.
|
2020-08-27 14:41:35 -07:00 |
|
|
e9f7e739ff
|
Use enum_dispatch to simplify the GenericMaterial implementation
|
2020-08-27 13:22:28 -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 |
|
|
f4d8ffdf34
|
Untested ferromagnetic model
It's pretty basic.
|
2020-08-22 21:55:27 -07:00 |
|
|
3830cf2ef8
|
Store magnetic state as H_z instead of B_z
This is consistent with the Macroscopic version of Maxwell's equations,
and will allow for storing Magnetic state with less trouble than if we
used B.
|
2020-08-22 21:17:03 -07:00 |
|
|
5677670d05
|
Fix the incorrect expansion of E about T in Cell::step_e
Now the coremem example can handle a conductor of any reasonable
conductivity without causing numerical errors.
|
2020-08-22 13:50:30 -07:00 |
|
|
dff8166906
|
Format these math comments so that they render properly for a tex-aware editor
Also document an error in the current logic
|
2020-08-16 20:14:46 -07:00 |
|
|
4bfe282c36
|
cleanup: use consts::real::HALF when possible
|
2020-07-31 19:02:17 -07:00 |
|
|
72c2ee599e
|
Track the simulation time, and configure the feature size
|
2020-07-31 19:01:00 -07:00 |
|
|
5e4699b3e6
|
Fix the conductivity error (was calculating the wrong timestep)
Also, use f64 and force them to be real.
|
2020-07-31 18:46:19 -07:00 |
|
|
5388658b00
|
Add [broken] conductivity support
It doesn't seem to be solved by using f64
|
2020-07-31 18:03:40 -07:00 |
|
|
56cc5980dd
|
Demo a B-imulse, because it behaves more symmetrically
|
2020-07-25 00:27:58 -07:00 |
|
|
1d9aa738ac
|
Render just the B field: it gives a better visualization here
|
2020-07-24 23:39:07 -07:00 |
|
|
2e92980113
|
Buffer the rendering for better framerates; create a more useful example
|
2020-07-24 23:25:16 -07:00 |
|
|
5360d2c6d3
|
Add a 2d color-based renderer
|
2020-07-16 00:31:20 -07:00 |
|
|
b890d8dc3a
|
Fix the math errors so that 2d simulations appear to now conserve energy.
|
2020-07-15 23:34:51 -07:00 |
|
|
a82c2f60e7
|
broken: expand to two dimensions.
Broken because there seems to be a scaling issue, and also the previous
1d simulation has no effect when ported to this new 2d world.
|
2020-07-14 23:26:27 -07:00 |
|
|
80cb3a9d52
|
Add a color terminal renderer
|
2020-07-12 23:00:54 -07:00 |
|
|
52c2b5be5a
|
Render the B/E fields in a way that's a little more insightful
|
2020-07-12 21:52:20 -07:00 |
|
|
2174113e7d
|
Fix the inverted sign so that the energy looks reasonable now
|
2020-07-12 21:35:40 -07:00 |
|
|
0ea06af0b0
|
Add a way to render the state
Note that this has exposed some scaling error that needs to be fixed.
|
2020-07-12 21:17:15 -07:00 |
|
|
ccd7b45fc8
|
Implement time stepping of both the B and E field
|
2020-07-12 20:51:28 -07:00 |
|
|
5e237800b4
|
Initial commit
|
2020-07-12 19:14:13 -07:00 |
|