mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
sixDoFRigidBodyMotion: remove the constraint and restraint "Coeffs"
sub-dict and put the coefficients in the containing dictionary.
This commit is contained in:
@ -50,11 +50,8 @@ boundaryField
|
||||
sixDoFRigidBodyMotionConstraint fixedLine;
|
||||
tolerance 1e-9;
|
||||
relaxationFactor 0.7;
|
||||
fixedLineCoeffs
|
||||
{
|
||||
refPoint (0.25 0.007 0.125);
|
||||
direction (0 1 0);
|
||||
}
|
||||
refPoint (0.25 0.007 0.125);
|
||||
direction (0 1 0);
|
||||
}
|
||||
|
||||
fixedAxis1
|
||||
@ -62,10 +59,7 @@ boundaryField
|
||||
sixDoFRigidBodyMotionConstraint fixedAxis;
|
||||
tolerance 1e-06;
|
||||
relaxationFactor 0.7;
|
||||
fixedAxisCoeffs
|
||||
{
|
||||
axis ( 0 0 1 );
|
||||
}
|
||||
axis (0 0 1);
|
||||
}
|
||||
}
|
||||
restraints
|
||||
@ -73,27 +67,19 @@ boundaryField
|
||||
verticalSpring
|
||||
{
|
||||
sixDoFRigidBodyMotionRestraint linearSpring;
|
||||
|
||||
linearSpringCoeffs
|
||||
{
|
||||
anchor (0.25 0.007 0.125);
|
||||
refAttachmentPt (0.25 0.007 0.125);
|
||||
stiffness 4000;
|
||||
damping 2;
|
||||
restLength 0;
|
||||
}
|
||||
anchor (0.25 0.007 0.125);
|
||||
refAttachmentPt (0.25 0.007 0.125);
|
||||
stiffness 4000;
|
||||
damping 2;
|
||||
restLength 0;
|
||||
}
|
||||
axialSpring
|
||||
{
|
||||
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
|
||||
|
||||
linearAxialAngularSpringCoeffs
|
||||
{
|
||||
axis (0 0 1);
|
||||
stiffness 700;
|
||||
damping 0.5;
|
||||
referenceOrientation $orientation;
|
||||
}
|
||||
axis (0 0 1);
|
||||
stiffness 700;
|
||||
damping 0.5;
|
||||
referenceOrientation $orientation;
|
||||
}
|
||||
}
|
||||
value uniform (0 0 0);
|
||||
@ -109,11 +95,11 @@ boundaryField
|
||||
type empty;
|
||||
}
|
||||
|
||||
".*"
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
".*"
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("libfvMotionSolvers.so");
|
||||
motionSolverLibs ("libfvMotionSolvers.so" "libsixDoFRigidBodyMotion.so");
|
||||
|
||||
solver displacementLaplacian;
|
||||
|
||||
|
||||
@ -21,37 +21,40 @@ FoamFile
|
||||
{
|
||||
type patch;
|
||||
nFaces 72;
|
||||
startFace 25168;
|
||||
startFace 22911;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 40;
|
||||
startFace 25240;
|
||||
startFace 22983;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 62;
|
||||
startFace 25280;
|
||||
startFace 23023;
|
||||
}
|
||||
front
|
||||
{
|
||||
type empty;
|
||||
nFaces 12559;
|
||||
startFace 25342;
|
||||
inGroups 1(empty);
|
||||
nFaces 11431;
|
||||
startFace 23085;
|
||||
}
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
nFaces 12559;
|
||||
startFace 37901;
|
||||
inGroups 1(empty);
|
||||
nFaces 11431;
|
||||
startFace 34516;
|
||||
}
|
||||
wing
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(wall);
|
||||
nFaces 378;
|
||||
startFace 50460;
|
||||
startFace 45947;
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -21,37 +21,40 @@ FoamFile
|
||||
{
|
||||
type patch;
|
||||
nFaces 72;
|
||||
startFace 25168;
|
||||
startFace 22911;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 40;
|
||||
startFace 25240;
|
||||
startFace 22983;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 62;
|
||||
startFace 25280;
|
||||
startFace 23023;
|
||||
}
|
||||
front
|
||||
{
|
||||
type empty;
|
||||
nFaces 12559;
|
||||
startFace 25342;
|
||||
inGroups 1(empty);
|
||||
nFaces 11431;
|
||||
startFace 23085;
|
||||
}
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
nFaces 12559;
|
||||
startFace 37901;
|
||||
inGroups 1(empty);
|
||||
nFaces 11431;
|
||||
startFace 34516;
|
||||
}
|
||||
wing
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(wall);
|
||||
nFaces 378;
|
||||
startFace 50460;
|
||||
startFace 45947;
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("libfvMotionSolvers.so");
|
||||
motionSolverLibs ("libfvMotionSolvers.so" "libsixDoFRigidBodyMotion.so");
|
||||
|
||||
solver displacementLaplacian;
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@ FoamFile
|
||||
stationaryWalls
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(wall);
|
||||
nFaces 11200;
|
||||
startFace 277808;
|
||||
}
|
||||
@ -32,6 +33,7 @@ FoamFile
|
||||
floatingObject
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(wall);
|
||||
nFaces 672;
|
||||
startFace 290608;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user