sixDoFRigidBodyMotion: remove the constraint and restraint "Coeffs"

sub-dict and put the coefficients in the containing dictionary.
This commit is contained in:
Henry
2013-12-15 22:30:52 +00:00
parent d57f983401
commit 8af82f02bf
11 changed files with 58 additions and 87 deletions

View File

@ -33,7 +33,6 @@ boundaryField
momentOfInertia (0.1052 0.1052 0.1778);
mass 9.6;
velocity (0 0 0);
orientation (1 0 0 0 1 0 0 0 1);
acceleration (0 0 0);
angularMomentum (0 0 0);
torque (0 0 0);
@ -46,14 +45,11 @@ boundaryField
{
sixDoFRigidBodyMotionRestraint linearSpring;
linearSpringCoeffs
{
anchor (0.5 0.5 1);
refAttachmentPt $centreOfMass;
stiffness 5000;
damping 50;
restLength 0.4;
}
anchor (0.5 0.5 1);
refAttachmentPt $centreOfMass;
stiffness 5000;
damping 50;
restLength 0.4;
}
}
constraints
@ -65,7 +61,6 @@ boundaryField
sixDoFRigidBodyMotionConstraint fixedOrientation;
tolerance 1e-6;
relaxationFactor 1.0;
fixedOrientationCoeffs {}
}
fixedLine1
@ -73,11 +68,8 @@ boundaryField
sixDoFRigidBodyMotionConstraint fixedLine;
tolerance 1e-6;
relaxationFactor 1.0;
fixedLineCoeffs
{
refPoint $centreOfMass;
direction (0 0 1);
}
refPoint $centreOfMass;
direction (0 0 1);
}
}
value uniform (0 0 0);

View File

@ -16,7 +16,7 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolvers.so");
motionSolverLibs ("libfvMotionSolvers.so" "libsixDoFRigidBodyMotion.so");
solver displacementLaplacian;