We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c547c5 commit 203da21Copy full SHA for 203da21
1 file changed
metatomic-torch/src/units.cpp
@@ -586,14 +586,15 @@ static UnitValue parse_unit_expression(const std::string& unit) {
586
587
588
static const auto QUANTITY_DIMS = std::unordered_map<std::string, Dimension>{
589
- {"length", DIM_LENGTH},
590
- {"energy", DIM_ENERGY},
591
- {"force", {{1, -2, 1, 0, 0}}}, // energy/length
592
- {"pressure", {{-1, -2, 1, 0, 0}}}, // energy/length^3
593
- {"momentum", {{1, -1, 1, 0, 0}}}, // mass*length/time
594
- {"mass", DIM_MASS},
595
- {"velocity", {{1, -1, 0, 0, 0}}}, // length/time
596
- {"charge", DIM_CHARGE},
+ {"length", DIM_LENGTH},
+ {"energy", DIM_ENERGY},
+ {"force", {{1, -2, 1, 0, 0}}}, // energy/length
+ {"pressure", {{-1, -2, 1, 0, 0}}}, // energy/length^3
+ {"momentum", {{1, -1, 1, 0, 0}}}, // mass*length/time
+ {"mass", DIM_MASS},
+ {"velocity", {{1, -1, 0, 0, 0}}}, // length/time
+ {"charge", DIM_CHARGE},
597
+ {"heat_flux", {{3, -3, 1, 0, 0}}}, // energy*velocity
598
};
599
600
0 commit comments