feat(core): implement physical types with NewType pattern

Story 1.2: Physical Types (NewType Pattern)

- Add Pressure, Temperature, Enthalpy, MassFlow types
- Implement SI base units with conversion methods
- Add arithmetic operations (Add, Sub, Mul, Div)
- Add Display and Debug traits
- Comprehensive unit tests (37 tests)
- Add PSI and Fahrenheit conversions
- Code review fixes applied

All tests passing, clippy clean
This commit is contained in:
Sepehr
2026-02-14 15:25:30 +01:00
parent dd8697b07b
commit be70a7a6c7
5 changed files with 811 additions and 2 deletions

15
crates/core/Cargo.toml Normal file
View File

@@ -0,0 +1,15 @@
[package]
name = "entropyk-core"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Core types and primitives for Entropyk thermodynamic simulation library"
[dependencies]
thiserror.workspace = true
serde.workspace = true
[dev-dependencies]
approx = "0.5"