From e7201c03261b1d5aefb37d4bfbee3648825609a9 Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Mon, 20 Jan 2014 16:25:13 +0000 Subject: [PATCH] ENH: tutorial updates --- .../0.org/pointDisplacement | 38 +++++++++++++------ .../0.org/pointDisplacement | 19 +++++++--- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_pimpleDyMFoam/0.org/pointDisplacement b/tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_pimpleDyMFoam/0.org/pointDisplacement index f517452a805..0f8d1bdf1f3 100644 --- a/tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_pimpleDyMFoam/0.org/pointDisplacement +++ b/tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_pimpleDyMFoam/0.org/pointDisplacement @@ -48,18 +48,24 @@ boundaryField yLine { sixDoFRigidBodyMotionConstraint line; + lineCoeffs + { + refPoint (0.25 0.007 0.125); + direction (0 1 0); + } tolerance 1e-9; relaxationFactor 0.7; - refPoint (0.25 0.007 0.125); - direction (0 1 0); } zAxis { sixDoFRigidBodyMotionConstraint axis; + axisCoeffs + { + axis (0 0 1); + } tolerance 1e-06; relaxationFactor 0.7; - axis (0 0 1); } } restraints @@ -67,19 +73,27 @@ boundaryField verticalSpring { sixDoFRigidBodyMotionRestraint linearSpring; - anchor (0.25 0.007 0.125); - refAttachmentPt (0.25 0.007 0.125); - stiffness 4000; - damping 2; - restLength 0; + + linearSpringCoeffs + { + anchor (0.25 0.007 0.125); + refAttachmentPt (0.25 0.007 0.125); + stiffness 4000; + damping 2; + restLength 0; + } } axialSpring { sixDoFRigidBodyMotionRestraint linearAxialAngularSpring; - axis (0 0 1); - stiffness 700; - damping 0.5; - referenceOrientation $orientation; + + linearAxialAngularSpringCoeffs + { + axis (0 0 1); + stiffness 700; + damping 0.5; + referenceOrientation $orientation; + } } } value uniform (0 0 0); diff --git a/tutorials/mesh/moveDynamicMesh/simpleHarmonicMotion/0.org/pointDisplacement b/tutorials/mesh/moveDynamicMesh/simpleHarmonicMotion/0.org/pointDisplacement index d987171bd14..09efbce074d 100644 --- a/tutorials/mesh/moveDynamicMesh/simpleHarmonicMotion/0.org/pointDisplacement +++ b/tutorials/mesh/moveDynamicMesh/simpleHarmonicMotion/0.org/pointDisplacement @@ -45,11 +45,14 @@ boundaryField { sixDoFRigidBodyMotionRestraint linearSpring; - anchor (0.5 0.5 1); - refAttachmentPt $centreOfMass; - stiffness 5000; - damping 50; - restLength 0.4; + linearSpringCoeffs + { + anchor (0.5 0.5 1); + refAttachmentPt $centreOfMass; + stiffness 5000; + damping 50; + restLength 0.4; + } } } constraints @@ -62,7 +65,11 @@ boundaryField zLine { sixDoFRigidBodyMotionConstraint line; - direction (0 0 1); + + lineCoeffs + { + direction (0 0 1); + } } } value uniform (0 0 0); -- GitLab