From df16286aa9ac600619c85b36cfc16212ea2f584b Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Wed, 25 Apr 2018 12:39:53 +0100
Subject: [PATCH] ENH: prescribedRotation: added comment

---
 .../restraints/prescribedRotation/prescribedRotation.C       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C b/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C
index d1e9198872..483e61c29c 100644
--- a/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C
+++ b/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C
@@ -123,7 +123,10 @@ void Foam::RBD::restraints::prescribedRotation::restrain
     scalar Inertia = mag(model_.I(model_.master(bodyID_)).Ic());
 
 
-    // from the definition of the angular momentum
+    // from the definition of the angular momentum:
+    //  moment = Inertia*ddt(omega)
+    // with time step 1:
+    //  moment = Inertia*(omega_wanted - omega)
     vector moment
     (
         (Inertia * (omegaSet_.value(model_.time().value()) - omega) & a) * a
-- 
GitLab