Updates to sixDOFSolver tutorials
This commit is contained in:
parent
438fe88504
commit
10879b856f
3 changed files with 21 additions and 22 deletions
|
@ -14,7 +14,7 @@ FoamFile
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Mass properties and restraints (common to all sixDOFODE's)
|
// Mass properties and inputs common to all sixDOFODE's
|
||||||
mass m [1 0 0 0 0 0 0] 1;
|
mass m [1 0 0 0 0 0 0] 1;
|
||||||
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@ equilibriumPosition Xeq [0 1 0 0 0 0 0] (0 0 0);
|
||||||
linearSpring k [1 0 -2 0 0 0 0] (1 1 1);
|
linearSpring k [1 0 -2 0 0 0 0] (1 1 1);
|
||||||
linearDamping d [1 0 -1 0 0 0 0] (0 0 0);
|
linearDamping d [1 0 -1 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
|
force f [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
|
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
momentRelative mRel [1 2 -2 0 0 0 0] (-0.5773502692 -0.5773502692 -0.5773502692);
|
||||||
|
|
||||||
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
||||||
type quaternionSixDOF;
|
type quaternionSixDOF;
|
||||||
|
|
||||||
|
@ -34,12 +40,6 @@ rotationVector (0 0 1);
|
||||||
rotationAngle rotationAngle [0 0 0 0 0 0 0] 0;
|
rotationAngle rotationAngle [0 0 0 0 0 0 0] 0;
|
||||||
omega rotUrel [0 0 -1 0 0 0 0] (0.5773502692 0.5773502692 0.5773502692);
|
omega rotUrel [0 0 -1 0 0 0 0] (0.5773502692 0.5773502692 0.5773502692);
|
||||||
|
|
||||||
force f [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
|
||||||
|
|
||||||
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
momentRelative mRel [1 2 -2 0 0 0 0] (-0.5773502692 -0.5773502692 -0.5773502692);
|
|
||||||
|
|
||||||
// Motion constraints
|
// Motion constraints
|
||||||
fixedSurge no;
|
fixedSurge no;
|
||||||
fixedSway no;
|
fixedSway no;
|
||||||
|
|
|
@ -14,7 +14,7 @@ FoamFile
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Mass properties and restraints (common to all sixDOFODE's)
|
// Mass properties and inputs common to all sixDOFODE's
|
||||||
mass m [1 0 0 0 0 0 0] 1;
|
mass m [1 0 0 0 0 0 0] 1;
|
||||||
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@ equilibriumPosition Xeq [0 1 0 0 0 0 0] (-1 0 0);
|
||||||
linearSpring k [1 0 -2 0 0 0 0] (1 1 1);
|
linearSpring k [1 0 -2 0 0 0 0] (1 1 1);
|
||||||
linearDamping d [1 0 -1 0 0 0 0] (0 0 0);
|
linearDamping d [1 0 -1 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
|
force f [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
|
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
momentRelative mRel [1 2 -2 0 0 0 0] (0 0 10);
|
||||||
|
|
||||||
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
||||||
type quaternionSixDOF;
|
type quaternionSixDOF;
|
||||||
|
|
||||||
|
@ -33,12 +39,6 @@ rotationVector (0 0 1);
|
||||||
rotationAngle rA [0 0 0 0 0 0 0] 0;
|
rotationAngle rA [0 0 0 0 0 0 0] 0;
|
||||||
omega rotU [0 0 -1 0 0 0 0] (0 -1 0);
|
omega rotU [0 0 -1 0 0 0 0] (0 -1 0);
|
||||||
|
|
||||||
force f [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
|
||||||
|
|
||||||
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
momentRelative mRel [1 2 -2 0 0 0 0] (0 0 10);
|
|
||||||
|
|
||||||
// Motion constraints
|
// Motion constraints
|
||||||
fixedSurge no;
|
fixedSurge no;
|
||||||
fixedSway no;
|
fixedSway no;
|
||||||
|
|
|
@ -14,7 +14,7 @@ FoamFile
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Mass properties and restraints (common to all sixDOFODE's)
|
// Mass properties and inputs common to all sixDOFODE's
|
||||||
mass m [1 0 0 0 0 0 0] 1;
|
mass m [1 0 0 0 0 0 0] 1;
|
||||||
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@ equilibriumPosition Xeq [0 1 0 0 0 0 0] (2 0 0);
|
||||||
linearSpring k [1 0 -2 0 0 0 0] (1 0 0);
|
linearSpring k [1 0 -2 0 0 0 0] (1 0 0);
|
||||||
linearDamping d [1 0 -1 0 0 0 0] (1 0 0);
|
linearDamping d [1 0 -1 0 0 0 0] (1 0 0);
|
||||||
|
|
||||||
|
force f [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
|
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
||||||
|
momentRelative mRel [1 2 -2 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
// Specific input for certain sixDOFODE (here quaternionSixDOF)
|
||||||
type quaternionSixDOF;
|
type quaternionSixDOF;
|
||||||
|
|
||||||
|
@ -33,13 +39,6 @@ rotationVector (0 0 1);
|
||||||
rotationAngle rotA [0 0 0 0 0 0 0] 0;
|
rotationAngle rotA [0 0 0 0 0 0 0] 0;
|
||||||
omega rotU [0 0 -1 0 0 0 0] (0 0 0);
|
omega rotU [0 0 -1 0 0 0 0] (0 0 0);
|
||||||
|
|
||||||
force f [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
|
||||||
|
|
||||||
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
|
||||||
momentRelative mRel [1 2 -2 0 0 0 0] (0 0 0);
|
|
||||||
|
|
||||||
|
|
||||||
// Motion constraints
|
// Motion constraints
|
||||||
fixedSurge no;
|
fixedSurge no;
|
||||||
fixedSway no;
|
fixedSway no;
|
||||||
|
|
Reference in a new issue