diff --git a/.gitignore b/.gitignore index d312bf402f10cd055fbe6cbd1b52dc0ef359e545..e14662c1ab4521f3e1e41ef3c10078a7dc3399b7 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 0000000000000000000000000000000000000000..eac737a0f584c379922fdf950115dd5654daac28 --- /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