mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Integrated Foundation code to commit 104aac5
This commit is contained in:
@ -14,70 +14,67 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("librigidBodyMeshMotion.so");
|
||||
|
||||
solver rigidBodyMotion;
|
||||
motionSolver rigidBodyMotion;
|
||||
|
||||
rigidBodyMotionCoeffs
|
||||
report on;
|
||||
|
||||
solver
|
||||
{
|
||||
report on;
|
||||
type Newmark;
|
||||
}
|
||||
|
||||
solver
|
||||
accelerationRelaxation 0.4;
|
||||
|
||||
bodies
|
||||
{
|
||||
hull
|
||||
{
|
||||
type Newmark;
|
||||
type rigidBody;
|
||||
parent root;
|
||||
|
||||
centreOfMass (0 0 0);
|
||||
mass 412.73;
|
||||
inertia (40 0 0 921 0 921);
|
||||
transform (1 0 0 0 1 0 0 0 1) (2.929541 0 0.2);
|
||||
|
||||
joint
|
||||
{
|
||||
type composite;
|
||||
joints
|
||||
(
|
||||
{
|
||||
type Pz;
|
||||
}
|
||||
{
|
||||
type Ry;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
patches (hull);
|
||||
innerDistance 0.3;
|
||||
outerDistance 1;
|
||||
}
|
||||
}
|
||||
|
||||
restraints
|
||||
{
|
||||
translationDamper
|
||||
{
|
||||
type linearDamper;
|
||||
body hull;
|
||||
coeff 8596;
|
||||
}
|
||||
|
||||
accelerationRelaxation 0.4;
|
||||
|
||||
bodies
|
||||
rotationDamper
|
||||
{
|
||||
hull
|
||||
{
|
||||
type rigidBody;
|
||||
parent root;
|
||||
|
||||
centreOfMass (0 0 0);
|
||||
mass 412.73;
|
||||
inertia (40 0 0 921 0 921);
|
||||
transform (1 0 0 0 1 0 0 0 1) (2.929541 0 0.2);
|
||||
|
||||
joint
|
||||
{
|
||||
type composite;
|
||||
joints
|
||||
(
|
||||
{
|
||||
type Pz;
|
||||
}
|
||||
{
|
||||
type Ry;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
patches (hull);
|
||||
innerDistance 0.3;
|
||||
outerDistance 1;
|
||||
}
|
||||
}
|
||||
|
||||
restraints
|
||||
{
|
||||
translationDamper
|
||||
{
|
||||
type linearDamper;
|
||||
body hull;
|
||||
coeff 8596;
|
||||
}
|
||||
|
||||
rotationDamper
|
||||
{
|
||||
type sphericalAngularDamper;
|
||||
body hull;
|
||||
coeff 11586;
|
||||
}
|
||||
type sphericalAngularDamper;
|
||||
body hull;
|
||||
coeff 11586;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -14,59 +14,56 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
|
||||
|
||||
solver sixDoFRigidBodyMotion;
|
||||
motionSolver sixDoFRigidBodyMotion;
|
||||
|
||||
sixDoFRigidBodyMotionCoeffs
|
||||
patches (hull);
|
||||
innerDistance 0.3;
|
||||
outerDistance 1;
|
||||
|
||||
centreOfMass (2.929541 0 0.2);
|
||||
mass 412.73;
|
||||
momentOfInertia (40 921 921);
|
||||
rhoInf 1;
|
||||
report on;
|
||||
|
||||
value uniform (0 0 0);
|
||||
|
||||
accelerationRelaxation 0.4;
|
||||
|
||||
solver
|
||||
{
|
||||
patches (hull);
|
||||
innerDistance 0.3;
|
||||
outerDistance 1;
|
||||
type Newmark;
|
||||
}
|
||||
|
||||
centreOfMass (2.929541 0 0.2);
|
||||
mass 412.73;
|
||||
momentOfInertia (40 921 921);
|
||||
rhoInf 1;
|
||||
report on;
|
||||
|
||||
value uniform (0 0 0);
|
||||
|
||||
accelerationRelaxation 0.4;
|
||||
|
||||
solver
|
||||
constraints
|
||||
{
|
||||
zAxis
|
||||
{
|
||||
type Newmark;
|
||||
sixDoFRigidBodyMotionConstraint line;
|
||||
direction (0 0 1);
|
||||
}
|
||||
|
||||
constraints
|
||||
yPlane
|
||||
{
|
||||
zAxis
|
||||
{
|
||||
sixDoFRigidBodyMotionConstraint line;
|
||||
direction (0 0 1);
|
||||
}
|
||||
yPlane
|
||||
{
|
||||
sixDoFRigidBodyMotionConstraint axis;
|
||||
axis (0 1 0);
|
||||
}
|
||||
sixDoFRigidBodyMotionConstraint axis;
|
||||
axis (0 1 0);
|
||||
}
|
||||
}
|
||||
|
||||
restraints
|
||||
restraints
|
||||
{
|
||||
translationDamper
|
||||
{
|
||||
translationDamper
|
||||
{
|
||||
sixDoFRigidBodyMotionRestraint linearDamper;
|
||||
coeff 8596;
|
||||
}
|
||||
rotationDamper
|
||||
{
|
||||
sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
|
||||
coeff 11586;
|
||||
}
|
||||
sixDoFRigidBodyMotionRestraint linearDamper;
|
||||
coeff 8596;
|
||||
}
|
||||
rotationDamper
|
||||
{
|
||||
sixDoFRigidBodyMotionRestraint sphericalAngularDamper;
|
||||
coeff 11586;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -20,17 +20,17 @@ phases (water air);
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1.09e-06;
|
||||
rho [1 -3 0 0 0 0 0] 998.8;
|
||||
nu 1.09e-06;
|
||||
rho 998.8;
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1.48e-05;
|
||||
rho [1 -3 0 0 0 0 0] 1;
|
||||
nu 1.48e-05;
|
||||
rho 1;
|
||||
}
|
||||
|
||||
sigma [1 0 -2 0 0 0 0] 0;
|
||||
sigma 0;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("librigidBodyMeshMotion.so");
|
||||
|
||||
solver rigidBodyMotion;
|
||||
motionSolver rigidBodyMotion;
|
||||
|
||||
rigidBodyMotionCoeffs
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
|
||||
|
||||
solver sixDoFRigidBodyMotion;
|
||||
motionSolver sixDoFRigidBodyMotion;
|
||||
|
||||
sixDoFRigidBodyMotionCoeffs
|
||||
{
|
||||
|
||||
@ -20,18 +20,18 @@ phases (water air);
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1e-06;
|
||||
rho [1 -3 0 0 0 0 0] 998.2;
|
||||
nu 1e-06;
|
||||
rho 998.2;
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1.48e-05;
|
||||
rho [1 -3 0 0 0 0 0] 1;
|
||||
nu 1.48e-05;
|
||||
rho 1;
|
||||
}
|
||||
|
||||
sigma [1 0 -2 0 0 0 0] 0;
|
||||
sigma 0;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -19,20 +19,15 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
|
||||
|
||||
motionSolverLibs ( "libfvMotionSolvers.so" );
|
||||
|
||||
solver solidBody;
|
||||
motionSolver solidBody;
|
||||
|
||||
solidBodyCoeffs
|
||||
{
|
||||
cellZone rotating;
|
||||
cellZone rotating;
|
||||
|
||||
solidBodyMotionFunction rotatingMotion;
|
||||
rotatingMotionCoeffs
|
||||
{
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega -5; // 5 rad/s
|
||||
}
|
||||
}
|
||||
solidBodyMotionFunction rotatingMotion;
|
||||
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega -5; // 5 rad/s
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -20,17 +20,17 @@ phases (water air);
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1e-06;
|
||||
rho [1 -3 0 0 0 0 0] 300;
|
||||
nu 1e-06;
|
||||
rho 300;
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu [0 2 -1 0 0 0 0] 1e-6;
|
||||
rho [1 -3 0 0 0 0 0] 1027;
|
||||
nu 1e-6;
|
||||
rho 1027;
|
||||
}
|
||||
|
||||
sigma [1 0 -2 0 0 0 0] 0.07;
|
||||
sigma 0.07;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user