A dimensional constraint system for computational engineering. Define the dimensional environment of your application. Keep physical meaning attached to computation.
It would be really helpful to have a visual graph or diagram view that shows how your dimensions relate to each other in real time. Something like a dependency tree where you can see which parameters flow into which calculations would make it much easier to debug and explain the dimensional model to teammates who haven't worked with it before.
Report
Maker
@organizationpro Thanks, I've actually been playing with this feature since you said it. I'm not sure if it's exactly what you meant, but this is what I ended up with:
Code:
from picounits import LENGTH, MASS, CURRENT, TIME, FLUX_DENSITY
# Charged particle entering a magnetic field
charge = 1.5 * CURRENT * TIME
velocity = 1.25 * LENGTH / TIME
field = 200 * FLUX_DENSITY
radius = 4.2 * LENGTH
mass = 3.2 * MASS
# Computes the lorentz force & prints
force = charge * velocity * field
print(f"lorentz force: {force} \n")
# Quality trace for that operation.
force.info()
It would be really helpful to have a visual graph or diagram view that shows how your dimensions relate to each other in real time. Something like a dependency tree where you can see which parameters flow into which calculations would make it much easier to debug and explain the dimensional model to teammates who haven't worked with it before.
@organizationpro Thanks, I've actually been playing with this feature since you said it. I'm not sure if it's exactly what you meant, but this is what I ended up with:
Code:
Output: