From 1c5d84e25927ba24b447749a6c89729f3856bbf0 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 12 Aug 2014 16:40:17 +0200
Subject: [PATCH] [Cleanup] Introduce constant zDistance

---
 src/sand-wedge-data/mygeometry.hh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/sand-wedge-data/mygeometry.hh b/src/sand-wedge-data/mygeometry.hh
index 10693e07..98bdc3d6 100644
--- a/src/sand-wedge-data/mygeometry.hh
+++ b/src/sand-wedge-data/mygeometry.hh
@@ -38,12 +38,15 @@ namespace reference {
   double const viscoHeight = 0.06; // Height of the viscous bottom layer
   double const weakLen = 0.20;     // Length of the weak zone
 
+  double const zDistance = 0.35;
+
   LocalVector2D const A = createVector(0, 0);
   LocalVector2D const B = createVector(leftLeg, -rightLeg);
   LocalVector2D const C = createVector(leftLeg, 0);
 
-  LocalVector2D const Z = createVector(0.35, 0);
-  LocalVector2D const Y = createVector(0.35, -0.35 / leftLeg * rightLeg);
+  LocalVector2D const Z = createVector(zDistance, 0);
+  LocalVector2D const Y =
+      createVector(zDistance, -zDistance / leftLeg * rightLeg);
   LocalVector2D const X = createVector(Y[0] - weakLen * std::cos(leftAngle),
                                        Y[1] + weakLen * std::sin(leftAngle));
 
-- 
GitLab