Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / mesh / moveDynamicMesh / simpleHarmonicMotion / 0.org / pointDisplacement
blob44cae4397674c696aa4fd060e63644f19900b05e
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
4 |  \\    /   O peration     | Version:  2.0.0                                 |
5 |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       pointVectorField;
13     location    "0.01";
14     object      pointDisplacement;
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 dimensions      [0 1 0 0 0 0 0];
20 internalField   uniform (0 0 0);
22 boundaryField
24     stationaryWalls
25     {
26         type            fixedValue;
27         value           uniform (0 0 0);
28     }
29     movingBlock
30     {
31         type            uncoupledSixDoFRigidBodyDisplacement;
32         centreOfMass    (0.5 0.5 0.5);
33         momentOfInertia (0.1052 0.1052 0.1778);
34         mass            9.6;
35         velocity        (0 0 0);
36         orientation     (1 0 0 0 1 0 0 0 1);
37         acceleration    (0 0 0);
38         angularMomentum (0 0 0);
39         torque          (0 0 0);
40         gravity         (0 0 0);
41         rhoInf          1;
42         report          on;
43         restraints
44         {
45             topSpring
46             {
47                 sixDoFRigidBodyMotionRestraint linearSpring;
49                 linearSpringCoeffs
50                 {
51                     anchor          (0.5 0.5 1);
52                     refAttachmentPt $centreOfMass;
53                     stiffness       5000;
54                     damping         50;
55                     restLength      0.4;
56                 }
57             }
58         }
59         constraints
60         {
61             maxIterations       500;
63             fixedAxes1
64             {
65                 sixDoFRigidBodyMotionConstraint fixedOrientation;
66                 tolerance           1e-6;
67                 relaxationFactor    1.0;
68                 fixedOrientationCoeffs {}
69             }
71             fixedLine1
72             {
73                 sixDoFRigidBodyMotionConstraint fixedLine;
74                 tolerance           1e-6;
75                 relaxationFactor    1.0;
76                 fixedLineCoeffs
77                 {
78                     refPoint      $centreOfMass;
79                     direction     (0 0 1);
80                 }
81             }
82         }
83         value           uniform (0 0 0);
84     }
88 // ************************************************************************* //