From e9baae820a8631ea4bbb3deb501b1088db807318 Mon Sep 17 00:00:00 2001 From: "jonas.schwab@ipg-automotive.com" Date: Wed, 4 Sep 2024 16:35:58 +0200 Subject: [PATCH 1/2] Add elasticity and density Signed-off-by: jonas.schwab@ipg-automotive.com --- examples/example_material.xomp | 5 +++++ schemas/material_schema.json | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/examples/example_material.xomp b/examples/example_material.xomp index 8e550917..6a51d025 100644 --- a/examples/example_material.xomp +++ b/examples/example_material.xomp @@ -15,6 +15,11 @@ "surface_height_rms": 0.8, "surface_correlation_length": 1.0 }, + "elasticity": { + "youngs_modulus": 70e9, + "poissons_ratio": 0.35 + }, + "density": 2699.0, "index_of_refraction": [ { "temperature": 300.0, diff --git a/schemas/material_schema.json b/schemas/material_schema.json index 393bd958..9164633b 100644 --- a/schemas/material_schema.json +++ b/schemas/material_schema.json @@ -82,6 +82,28 @@ "surface_correlation_length" ] }, + "elasticity": { + "type": "object", + "description": "Information about the elasticity of the material.", + "properties": { + "youngs_modulus": { + "type": "number", + "description": "Young's modulus of the material in Pa." + }, + "poissons_ratio": { + "type": "number", + "description": "Poisson's ratio of the material." + } + }, + "required": [ + "youngs_modulus", + "poissons_ratio" + ] + }, + "density": { + "type": "number", + "description": "Density of the material in kg/m^3." + }, "index_of_refraction": { "type": "array", "description": "Index of refraction of the material at different temperatures.", @@ -141,6 +163,8 @@ }, "required": [ "surface_roughness", + "elasticity", + "density", "index_of_refraction" ] } From 36135950af08aa9bd30d9cfe86c5658c9eb0f81c Mon Sep 17 00:00:00 2001 From: "jonas.schwab@ipg-automotive.com" Date: Thu, 12 Sep 2024 11:48:45 +0200 Subject: [PATCH 2/2] add source to density and elasticity Signed-off-by: jonas.schwab@ipg-automotive.com --- examples/example_material.xomp | 10 +++++++--- schemas/material_schema.json | 33 ++++++++++++++++++++++++++------- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/examples/example_material.xomp b/examples/example_material.xomp index 4c6d0ce0..97712223 100644 --- a/examples/example_material.xomp +++ b/examples/example_material.xomp @@ -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" } } diff --git a/schemas/material_schema.json b/schemas/material_schema.json index 8f3e99e2..b25f967d 100644 --- a/schemas/material_schema.json +++ b/schemas/material_schema.json @@ -82,7 +82,7 @@ "surface_correlation_length" ] }, - "elasticity": { + "elasticity_data": { "type": "object", "description": "Information about the elasticity of the material.", "properties": { @@ -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", @@ -112,8 +131,8 @@ }, "required": [ "surface_roughness", - "elasticity", - "density", + "elasticity_data", + "density_data", "electromagnetic_properties_uri" ] }