From 6293c5dd6e6b1744d104b0d1faced96c4fdcd166 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Tue, 30 Sep 2014 17:57:41 +0000
Subject: [PATCH] Dirichlet boundary values for the L-shape example

[[Imported from SVN: r9900]]
---
 wriggers-l-shape-dirichlet-values.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 wriggers-l-shape-dirichlet-values.py

diff --git a/wriggers-l-shape-dirichlet-values.py b/wriggers-l-shape-dirichlet-values.py
new file mode 100644
index 00000000..50a8a19d
--- /dev/null
+++ b/wriggers-l-shape-dirichlet-values.py
@@ -0,0 +1,11 @@
+class DirichletValues:
+    def __init__(self, homotopyParameter):
+        self.homotopyParameter = homotopyParameter
+
+    def deformation(self, x):
+        # Clamp the L-shape in its reference configuration
+        return [x[0], x[1], 0]
+
+    def orientation(self, x):
+        rotation = [[1,0,0], [0, 1, 0], [0, 0, 1]]
+        return rotation
-- 
GitLab