From e97645ba3e78f5b44c9a13f3b056b206d6810849 Mon Sep 17 00:00:00 2001 From: Ian Su Date: Wed, 16 Sep 2026 01:16:40 +0800 Subject: [PATCH] initial commit --- input/elastic-material-smoothing-2d-opt.json | 39 ++++++++++++++++ input/elastic-material-smoothing-2d.json | 45 +++++++++++++++++++ input/elastic-material-smoothing-3d-opt.json | 43 ++++++++++++++++++ input/elastic-material-smoothing-3d.json | 47 ++++++++++++++++++++ 4 files changed, 174 insertions(+) create mode 100644 input/elastic-material-smoothing-2d-opt.json create mode 100644 input/elastic-material-smoothing-2d.json create mode 100644 input/elastic-material-smoothing-3d-opt.json create mode 100644 input/elastic-material-smoothing-3d.json diff --git a/input/elastic-material-smoothing-2d-opt.json b/input/elastic-material-smoothing-2d-opt.json new file mode 100644 index 0000000..293fe92 --- /dev/null +++ b/input/elastic-material-smoothing-2d-opt.json @@ -0,0 +1,39 @@ +{ + "states": [ + { + "path": "elastic-material-smoothing-2d.json" + } + ], + "parameters": [ + { + "number": 2, + "initial": [ + 1.0, + 2.0 + ] + } + ], + "variable_to_simulation": [ + { + "type": "elastic", + "state": 0, + "composition": [ + { + "type": "append-const", + "size": 2, + "value": 0.3 + }, + { + "type": "E-nu-to-lambda-mu", + "is_volume": false + } + ] + } + ], + "functionals": [ + { + "type": "elastic_material_smoothing", + "state": 0 + } + ] +} diff --git a/input/elastic-material-smoothing-2d.json b/input/elastic-material-smoothing-2d.json new file mode 100644 index 0000000..18f147d --- /dev/null +++ b/input/elastic-material-smoothing-2d.json @@ -0,0 +1,45 @@ +{ + "geometry": [ + { + "mesh": "../square.obj", + "volume_selection": 1, + "surface_selection": { + "id": 1, + "axis": "-x", + "position": 0.01, + "relative": true + } + } + ], + "space": { + "discr_order": 1 + }, + "solver": { + "linear": { + "solver": [ + "Eigen::PardisoLDLT", + "Eigen::SimplicialLDLT" + ] + } + }, + "boundary_conditions": { + "rhs": [ + 0, + 0 + ], + "dirichlet_boundary": [ + { + "id": 1, + "value": [ + 0, + 0 + ] + } + ] + }, + "materials": { + "type": "LinearElasticity", + "E": 1.0, + "nu": 0.3 + } +} diff --git a/input/elastic-material-smoothing-3d-opt.json b/input/elastic-material-smoothing-3d-opt.json new file mode 100644 index 0000000..5a413e2 --- /dev/null +++ b/input/elastic-material-smoothing-3d-opt.json @@ -0,0 +1,43 @@ +{ + "states": [ + { + "path": "elastic-material-smoothing-3d.json" + } + ], + "parameters": [ + { + "number": 6, + "initial": [ + 1.0, + 1.2, + 1.4, + 1.6, + 1.8, + 2.0 + ] + } + ], + "variable_to_simulation": [ + { + "type": "elastic", + "state": 0, + "composition": [ + { + "type": "append-const", + "size": 6, + "value": 0.3 + }, + { + "type": "E-nu-to-lambda-mu", + "is_volume": true + } + ] + } + ], + "functionals": [ + { + "type": "elastic_material_smoothing", + "state": 0 + } + ] +} diff --git a/input/elastic-material-smoothing-3d.json b/input/elastic-material-smoothing-3d.json new file mode 100644 index 0000000..23abf9b --- /dev/null +++ b/input/elastic-material-smoothing-3d.json @@ -0,0 +1,47 @@ +{ + "geometry": [ + { + "mesh": "../cube.msh", + "volume_selection": 1, + "surface_selection": { + "id": 1, + "axis": "-x", + "position": 0.01, + "relative": true + } + } + ], + "space": { + "discr_order": 1 + }, + "solver": { + "linear": { + "solver": [ + "Eigen::PardisoLDLT", + "Eigen::SimplicialLDLT" + ] + } + }, + "boundary_conditions": { + "rhs": [ + 0, + 0, + 0 + ], + "dirichlet_boundary": [ + { + "id": 1, + "value": [ + 0, + 0, + 0 + ] + } + ] + }, + "materials": { + "type": "LinearElasticity", + "E": 1.0, + "nu": 0.3 + } +}