mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: tutorial updates
This commit is contained in:
@ -48,18 +48,24 @@ boundaryField
|
|||||||
yLine
|
yLine
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionConstraint line;
|
sixDoFRigidBodyMotionConstraint line;
|
||||||
tolerance 1e-9;
|
lineCoeffs
|
||||||
relaxationFactor 0.7;
|
{
|
||||||
refPoint (0.25 0.007 0.125);
|
refPoint (0.25 0.007 0.125);
|
||||||
direction (0 1 0);
|
direction (0 1 0);
|
||||||
}
|
}
|
||||||
|
tolerance 1e-9;
|
||||||
|
relaxationFactor 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
zAxis
|
zAxis
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionConstraint axis;
|
sixDoFRigidBodyMotionConstraint axis;
|
||||||
|
axisCoeffs
|
||||||
|
{
|
||||||
|
axis (0 0 1);
|
||||||
|
}
|
||||||
tolerance 1e-06;
|
tolerance 1e-06;
|
||||||
relaxationFactor 0.7;
|
relaxationFactor 0.7;
|
||||||
axis (0 0 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
restraints
|
restraints
|
||||||
@ -67,21 +73,29 @@ boundaryField
|
|||||||
verticalSpring
|
verticalSpring
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionRestraint linearSpring;
|
sixDoFRigidBodyMotionRestraint linearSpring;
|
||||||
|
|
||||||
|
linearSpringCoeffs
|
||||||
|
{
|
||||||
anchor (0.25 0.007 0.125);
|
anchor (0.25 0.007 0.125);
|
||||||
refAttachmentPt (0.25 0.007 0.125);
|
refAttachmentPt (0.25 0.007 0.125);
|
||||||
stiffness 4000;
|
stiffness 4000;
|
||||||
damping 2;
|
damping 2;
|
||||||
restLength 0;
|
restLength 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
axialSpring
|
axialSpring
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
|
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
|
||||||
|
|
||||||
|
linearAxialAngularSpringCoeffs
|
||||||
|
{
|
||||||
axis (0 0 1);
|
axis (0 0 1);
|
||||||
stiffness 700;
|
stiffness 700;
|
||||||
damping 0.5;
|
damping 0.5;
|
||||||
referenceOrientation $orientation;
|
referenceOrientation $orientation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,6 +45,8 @@ boundaryField
|
|||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionRestraint linearSpring;
|
sixDoFRigidBodyMotionRestraint linearSpring;
|
||||||
|
|
||||||
|
linearSpringCoeffs
|
||||||
|
{
|
||||||
anchor (0.5 0.5 1);
|
anchor (0.5 0.5 1);
|
||||||
refAttachmentPt $centreOfMass;
|
refAttachmentPt $centreOfMass;
|
||||||
stiffness 5000;
|
stiffness 5000;
|
||||||
@ -52,6 +54,7 @@ boundaryField
|
|||||||
restLength 0.4;
|
restLength 0.4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
constraints
|
constraints
|
||||||
{
|
{
|
||||||
fixedOrientation
|
fixedOrientation
|
||||||
@ -62,9 +65,13 @@ boundaryField
|
|||||||
zLine
|
zLine
|
||||||
{
|
{
|
||||||
sixDoFRigidBodyMotionConstraint line;
|
sixDoFRigidBodyMotionConstraint line;
|
||||||
|
|
||||||
|
lineCoeffs
|
||||||
|
{
|
||||||
direction (0 0 1);
|
direction (0 0 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user