Skip to content

Commit

Permalink
add source to density and elasticity
Browse files Browse the repository at this point in the history
  • Loading branch information
ipg-jsc committed Sep 12, 2024
1 parent fd77a6d commit 3613595
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
10 changes: 7 additions & 3 deletions examples/example_material.xomp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
"surface_height_rms": 0.8,
"surface_correlation_length": 1.0
},
"elasticity": {
"elasticity_data": {
"youngs_modulus": 70e9,
"poissons_ratio": 0.35
"poissons_ratio": 0.35,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"density_data": {
"density": 2699.0,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"density": 2699.0,
"electromagnetic_properties_uri": "example_material_emp.xompt"
}
}
33 changes: 26 additions & 7 deletions schemas/material_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"surface_correlation_length"
]
},
"elasticity": {
"elasticity_data": {
"type": "object",
"description": "Information about the elasticity of the material.",
"properties": {
Expand All @@ -93,16 +93,35 @@
"poissons_ratio": {
"type": "number",
"description": "Poisson's ratio of the material."
},
"source": {
"type": "string",
"description": "Source of the elasticity data."
}
},
"required": [
"youngs_modulus",
"poissons_ratio"
"poissons_ratio",
"source"
]
},
"density": {
"type": "number",
"description": "Density of the material in kg/m^3."
"density_data": {
"type": "object",
"description": "Information about the density of the material.",
"properties": {
"density": {
"type": "number",
"description": "Density of the material in kg/m^3."
},
"source": {
"type": "string",
"description": "Source of the density data."
}
},
"required": [
"density",
"source"
]
},
"electromagnetic_properties_uri": {
"type": "string",
Expand All @@ -112,8 +131,8 @@
},
"required": [
"surface_roughness",
"elasticity",
"density",
"elasticity_data",
"density_data",
"electromagnetic_properties_uri"
]
}
Expand Down

0 comments on commit 3613595

Please sign in to comment.