In our last meeting, we discussed the usage of units for the outputs, because we need to have a consistent representation in the KG, but that discussion was not finalized. We essentially have two options. The first one is that our metric file already expects units in a predefined format, such as discussed e.g. in #78.
{
"number_of_dofs[-]": 10,
"max_mises_stress[Pa]": 1.0,
"displacement_error_l2[m]": 1.0,
"max_displacement_error[m]": 1.0,
"displacement_top_right_corner[m]": [0.0, 0.0]
}
The second option, which is the approach we have followed for the input parameters, is that values are always provided with units. For the metrics file, this would look like
{
"number_of_dofs": 10,
"max_mises_stress": {
"value": 1.0,
"unit": "MPa"
},
"displacement_error_l2": {
"value": 1.0,
"unit": "mm"
},
"max_displacement_error": {
"value": 1.0,
"unit": "mm"
},
"displacement_top_right_corner": {
"value": [0.0, 0.0],
"unit": "mm"
}
Both options are fine with me, the second option forces the user to think about units and potential conversion issues, but we would probably convert that to some standard units anyway when creating the KG to simplify the query (or at least have both results jointly in the KG, the result the user provides with user-defined units, and the SI-converted results). @M-Jafarkhani and @doigl , what would be your suggestions? (I'm happy for comments from anyone else as well such as @jpthiele @berndflemisch @div-tyg, @srosenbu and @Sarbani-Roy.
In our last meeting, we discussed the usage of units for the outputs, because we need to have a consistent representation in the KG, but that discussion was not finalized. We essentially have two options. The first one is that our metric file already expects units in a predefined format, such as discussed e.g. in #78.
{ "number_of_dofs[-]": 10, "max_mises_stress[Pa]": 1.0, "displacement_error_l2[m]": 1.0, "max_displacement_error[m]": 1.0, "displacement_top_right_corner[m]": [0.0, 0.0] }The second option, which is the approach we have followed for the input parameters, is that values are always provided with units. For the metrics file, this would look like
{ "number_of_dofs": 10, "max_mises_stress": { "value": 1.0, "unit": "MPa" }, "displacement_error_l2": { "value": 1.0, "unit": "mm" }, "max_displacement_error": { "value": 1.0, "unit": "mm" }, "displacement_top_right_corner": { "value": [0.0, 0.0], "unit": "mm" }Both options are fine with me, the second option forces the user to think about units and potential conversion issues, but we would probably convert that to some standard units anyway when creating the KG to simplify the query (or at least have both results jointly in the KG, the result the user provides with user-defined units, and the SI-converted results). @M-Jafarkhani and @doigl , what would be your suggestions? (I'm happy for comments from anyone else as well such as @jpthiele @berndflemisch @div-tyg, @srosenbu and @Sarbani-Roy.