Commit Graph

31 Commits

Author SHA1 Message Date
colin a51c3a1d14 sim: remove the unused `StaticSim` type alias 2022-08-23 23:25:08 -07:00
colin 17446cdc6b sim: remove unused `AbstractSim::to_static` method 2022-08-23 23:13:15 -07:00
colin dcd7079c5f meas: Energy: allow non-meas code to query a simulation's energy
this is especially useful in test
2022-08-23 16:37:31 -07:00
colin 24b82037b4 Stimulus: parameterize over R.
this saves us from a `mem::transmute` in the sim code to get
`Fields<R>`.
2022-08-22 00:37:34 -07:00
colin 570f058ee1 rename `AbstractStimulus` -> `Stimulus` 2022-08-18 15:27:18 -07:00
colin 084c5bc342 Region: remove `Clone` from the trait, and also parameterize everything
i didn't necessarily *want* to parameterize it all,
but it turned out to be easier to do that than to force all users to
workaround the lack of Clone.
2022-08-12 01:42:19 -07:00
colin d5fbb4e9b2 Region: remove the Serialization requirement 2022-08-12 00:57:01 -07:00
colin 4fe8be8951 when writing Measurements to a CSV, format them in a machine-readable manner
i haven't tested the ones which contains commas -- hopefully the CSV
encoder deals with these :-)
2022-08-10 01:34:37 -07:00
colin 8a3a64face meas: correctly render SI prefixes for negative numbers
the previous implementation treated negative numbers as effectively
having unknown magnitude, rendering them without any adjustment.
2022-08-10 01:17:49 -07:00
colin 7d1ee0ad50 meas: backfill tests for CurrentLoop 2022-08-05 17:35:55 -07:00
colin 06379ffd30 CurrentLoop: use a better justified measurement algorithm
'course the best way to justify it is with tests: hopefully those will
come shortly.
2022-08-01 06:12:16 -07:00
colin 527814e38a convert `HasTangent -> HasCrossSection`
i believe the current loop algorithm (which i'm just preserving here) is
actually not correct. i'll work through it more.
2022-08-01 05:17:35 -07:00
colin cc876d72d6 CurrentLoop: factor out the tangent calculation 2022-08-01 00:50:02 -07:00
colin 723fed4786 rename meas::{eval_multiple_kv -> eval_multiple} 2022-07-31 23:27:37 -07:00
colin 0e0945f744 measurement: remove the `eval` method 2022-07-31 23:26:53 -07:00
colin 5362dacf3a Measurement: don't use SI prefix if there's no unit 2022-07-30 21:21:46 -07:00
colin b5c58c03ce meas: add a missing unit to the Energy measurement 2022-07-30 21:21:02 -07:00
colin 530ab890e6 meas: render the SI prefix 2022-07-30 21:15:51 -07:00
colin 542d700f69 meas: finish porting to a concrete type.
this will in future let me more easily test each individual measurement
type
2022-07-30 20:56:19 -07:00
colin 60840aec36 WIP: make the measurement type concrete 2022-07-30 20:33:03 -07:00
colin a14625b493 meas: add SI units for some things
this is an uncommon code path, apparently: only visible when rendering
BEFORE serialization. may want to implement a richer meas format.
2022-07-29 23:54:02 -07:00
colin e2c156e790 meas: Evaluated: fix `eval` to return both key and value 2022-07-29 13:39:33 -07:00
colin 4f2345f608 rename GenericSim -> AbstractSim 2022-07-28 23:41:42 -07:00
colin 71ab89c4c9 de-virtualize GenericSim
this should let us fold the GenericSim and MaterialSim traits together.
2022-07-28 22:22:07 -07:00
colin 2d1a15eabc AbstractMeasurement: remove the DynClone requirement 2022-07-28 21:49:28 -07:00
colin 3722512554 AbstractMeasurement: remove the serde typetag stuff 2022-07-28 21:46:01 -07:00
colin 5c4b8d86f2 measurements: store to disk *after* evaluating them
i'm hoping to simplify a lot of serialization code with this
2022-07-28 21:43:48 -07:00
colin 6206569f4a Fold SampleableSim and MaterialSim into one 2022-07-28 16:41:32 -07:00
colin 45d2de29c6 rename 'coremem_types' -> 'coremem_cross' to better reflect its purpose 2022-07-28 15:40:23 -07:00
colin 048eb7dbef geom: don't re-export coremem_types::vec 2022-07-23 18:57:17 -07:00
colin 5b99d30cda restructure this multi-crate project to use Cargo's "workspace" feature
this solves an issue in the Nix build, where managing multiple
Cargo.lock files is otherwise tricky. it causes (or fails to fix?) an adjacent issue where
the spirv builder doesn't seem to have everything it needs vendored.
2022-07-05 17:34:21 -07:00