From d46da01026a0682c71ea7d2a3670adb72334dcf3 Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel <lisa_julia.nebel@tu-dresden.de> Date: Mon, 29 Jun 2020 16:22:36 +0200 Subject: [PATCH] Add wriggers-l-shape-dirichlet-values.py in dune-elasticity as well - we always took it from the module dune-gfe --- .gitignore | 3 +++ problems/wriggers-l-shape-dirichlet-values.py | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 problems/wriggers-l-shape-dirichlet-values.py diff --git a/.gitignore b/.gitignore index d312bf4..e14662c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ # Default cmake build directory /build-cmake +# ignore Python files +*.pyc + diff --git a/problems/wriggers-l-shape-dirichlet-values.py b/problems/wriggers-l-shape-dirichlet-values.py new file mode 100644 index 0000000..eac737a --- /dev/null +++ b/problems/wriggers-l-shape-dirichlet-values.py @@ -0,0 +1,18 @@ +class DirichletValues: + def __init__(self, homotopyParameter): + self.homotopyParameter = homotopyParameter + + # Deformation of 3d classical materials + def dirichletValues(self, x): + # Clamp the L-shape in its reference configuration + return [x[0], x[1], x[2]] + + # Deformation of Cosserat shells + def deformation(self, x): + # Clamp the L-shape in its reference configuration + return [x[0], x[1], 0] + + # Orientation of Cosserat materials + def orientation(self, x): + rotation = [[1,0,0], [0, 1, 0], [0, 0, 1]] + return rotation -- GitLab