The "<type>Coeffs" sub-dictionary is now optional for most model parameters

except turbulence and lagrangian which will also be updated shortly.

For example in the nonNewtonianIcoFoam offsetCylinder tutorial the viscosity
model coefficients may be specified in the corresponding "<type>Coeffs"
sub-dictionary:

transportModel  CrossPowerLaw;

CrossPowerLawCoeffs
{
    nu0         [0 2 -1 0 0 0 0]  0.01;
    nuInf       [0 2 -1 0 0 0 0]  10;
    m           [0 0 1 0 0 0 0]   0.4;
    n           [0 0 0 0 0 0 0]   3;
}

BirdCarreauCoeffs
{
    nu0         [0 2 -1 0 0 0 0]  1e-06;
    nuInf       [0 2 -1 0 0 0 0]  1e-06;
    k           [0 0 1 0 0 0 0]   0;
    n           [0 0 0 0 0 0 0]   1;
}

which allows a quick change between models, or using the simpler

transportModel  CrossPowerLaw;

nu0         [0 2 -1 0 0 0 0]  0.01;
nuInf       [0 2 -1 0 0 0 0]  10;
m           [0 0 1 0 0 0 0]   0.4;
n           [0 0 0 0 0 0 0]   3;

if quick switching between models is not required.

To support this more convenient parameter specification the inconsistent
specification of seedSampleSet in the streamLine and wallBoundedStreamLine
functionObjects had to be corrected from

    // Seeding method.
    seedSampleSet   uniform;  //cloud; //triSurfaceMeshPointSet;

    uniformCoeffs
    {
        type        uniform;
        axis        x;  //distance;

        // Note: tracks slightly offset so as not to be on a face
        start       (-1.001 -0.05 0.0011);
        end         (-1.001 -0.05 1.0011);
        nPoints     20;
    }

to the simpler

    // Seeding method.
    seedSampleSet
    {
        type        uniform;
        axis        x;  //distance;

        // Note: tracks slightly offset so as not to be on a face
        start       (-1.001 -0.05 0.0011);
        end         (-1.001 -0.05 1.0011);
        nPoints     20;
    }

which also support the "<type>Coeffs" form

    // Seeding method.
    seedSampleSet
    {
        type        uniform;

        uniformCoeffs
        {
            axis        x;  //distance;

            // Note: tracks slightly offset so as not to be on a face
            start       (-1.001 -0.05 0.0011);
            end         (-1.001 -0.05 1.0011);
            nPoints     20;
        }
    }
This commit is contained in:
Henry Weller
2017-04-20 09:14:48 +01:00
parent e2ccbbbbe5
commit 9801c25788
127 changed files with 713 additions and 847 deletions

View File

@ -16,43 +16,38 @@ FoamFile
dynamicFvMesh dynamicRefineFvMesh;
// Refine every refineInterval timesteps
refineInterval 1;
dynamicRefineFvMeshCoeffs
{
// Maximum refinement level (starts from 0)
maxRefinement 2;
// Refine every refineInterval timesteps
refineInterval 1;
// Maximum cell limit (approximate)
maxCells 10000;
// Maximum refinement level (starts from 0)
maxRefinement 2;
// volScalarField to base refinement on
field normalisedGradP;
// Maximum cell limit (approximate)
maxCells 10000;
nBufferLayers 1;
// volScalarField to base refinement on
field normalisedGradP;
dumpLevel true;
nBufferLayers 1;
lowerRefineLevel 0.5;
upperRefineLevel 1.5;
dumpLevel true;
unrefineLevel 0.5;
lowerRefineLevel 0.5;
upperRefineLevel 1.5;
nBufferLayers 1;
// Newly introduced patch points optionally get projected onto a surface
//projectSurfaces ("fixedWalls4.stl");
//projectPatches (fixedWalls);
// Maximum project distance
//projectDistance 1;
unrefineLevel 0.5;
nBufferLayers 1;
// Newly introduced patch points optionally get projected onto a surface
//projectSurfaces ("fixedWalls4.stl");
//projectPatches (fixedWalls);
// Maximum project distance
//projectDistance 1;
// Fluxes to adapt. For newly created faces or split faces the flux
// gets estimated from an interpolated volVectorField ('velocity')
// First is name of the flux to adapt, second is velocity that will
// be interpolated and inner-producted with the face area vector.
correctFluxes ((phi rhoU) (phi_0 none));
}
// Fluxes to adapt. For newly created faces or split faces the flux
// gets estimated from an interpolated volVectorField ('velocity')
// First is name of the flux to adapt, second is velocity that will
// be interpolated and inner-producted with the face area vector.
correctFluxes ((phi rhoU) (phi_0 none));
// ************************************************************************* //

View File

@ -17,15 +17,12 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
motionSolverLibs ("libfvMotionSolvers.so");
solver velocityComponentLaplacian;
motionSolver velocityComponentLaplacian;
velocityComponentLaplacianCoeffs
{
component x;
diffusivity directional (1 200 0);
}
component x;
diffusivity directional (1 200 0);
// ************************************************************************* //

View File

@ -19,19 +19,14 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone rotatingZone;
cellZone rotatingZone;
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega $:meshMotionProperties.omega;
}
}
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 0 1);
omega $:meshMotionProperties.omega;
// ************************************************************************* //

View File

@ -17,15 +17,12 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
motionSolverLibs ("libfvMotionSolvers.so");
solver velocityComponentLaplacian;
motionSolver velocityComponentLaplacian;
velocityComponentLaplacianCoeffs
{
component x;
diffusivity directional (1 200 0);
}
component x;
diffusivity directional (1 200 0);
// ************************************************************************* //

View File

@ -17,19 +17,14 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone rotor;
cellZone rotor;
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
}
}
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
// ************************************************************************* //

View File

@ -17,15 +17,12 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
motionSolverLibs ("libfvMotionSolvers.so");
solver velocityComponentLaplacian;
motionSolver velocityComponentLaplacian;
velocityComponentLaplacianCoeffs
{
component x;
diffusivity directional (1 200 0);
}
component x;
diffusivity directional (1 200 0);
// ************************************************************************* //

View File

@ -17,22 +17,16 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
motionSolverLibs ("libfvMotionSolvers.so");
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone inletChannel;
cellZone inletChannel;
solidBodyMotionFunction oscillatingLinearMotion;
solidBodyMotionFunction oscillatingLinearMotion;
oscillatingLinearMotionCoeffs
{
amplitude (0 0.5 0);
omega 3.14; // rad/s (.5 rps)
}
}
amplitude (0 0.5 0);
omega 3.14; // rad/s (.5 rps)
// ************************************************************************* //

View File

@ -17,22 +17,16 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
motionSolverLibs ("libfvMotionSolvers.so");
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone innerCylinderSmall;
cellZone innerCylinderSmall;
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 1 0);
omega 158; // rad/s
}
}
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 1 0);
omega 158; // rad/s
// ************************************************************************* //

View File

@ -18,72 +18,69 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
solver sixDoFRigidBodyMotion;
motionSolver sixDoFRigidBodyMotion;
sixDoFRigidBodyMotionCoeffs
patches (wing);
innerDistance 0.3;
outerDistance 1;
mass 22.9;
centreOfMass (0.4974612746 -0.01671895744 0.125);
momentOfInertia (1.958864357 3.920839234 2.057121362);
orientation
(
0.9953705935 0.09611129781 0
-0.09611129781 0.9953705935 0
0 0 1
);
angularMomentum (0 0 -2);
g (0 -9.81 0);
rho rhoInf;
rhoInf 1;
report on;
solver
{
patches (wing);
innerDistance 0.3;
outerDistance 1;
type symplectic;
}
mass 22.9;
centreOfMass (0.4974612746 -0.01671895744 0.125);
momentOfInertia (1.958864357 3.920839234 2.057121362);
orientation
(
0.9953705935 0.09611129781 0
-0.09611129781 0.9953705935 0
0 0 1
);
angularMomentum (0 0 -2);
g (0 -9.81 0);
rho rhoInf;
rhoInf 1;
report on;
solver
constraints
{
yLine
{
type symplectic;
sixDoFRigidBodyMotionConstraint line;
centreOfRotation (0.25 0.007 0.125);
direction (0 1 0);
}
constraints
zAxis
{
yLine
{
sixDoFRigidBodyMotionConstraint line;
centreOfRotation (0.25 0.007 0.125);
direction (0 1 0);
}
sixDoFRigidBodyMotionConstraint axis;
axis (0 0 1);
}
}
zAxis
{
sixDoFRigidBodyMotionConstraint axis;
axis (0 0 1);
}
restraints
{
verticalSpring
{
sixDoFRigidBodyMotionRestraint linearSpring;
anchor (0.25 0.007 0.125);
refAttachmentPt (0.25 0.007 0.125);
stiffness 4000;
damping 2;
restLength 0;
}
restraints
axialSpring
{
verticalSpring
{
sixDoFRigidBodyMotionRestraint linearSpring;
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
anchor (0.25 0.007 0.125);
refAttachmentPt (0.25 0.007 0.125);
stiffness 4000;
damping 2;
restLength 0;
}
axialSpring
{
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
axis (0 0 1);
stiffness 700;
damping 0.5;
referenceOrientation $orientation;
}
axis (0 0 1);
stiffness 700;
damping 0.5;
referenceOrientation $orientation;
}
}

View File

@ -59,8 +59,7 @@ functions
lifeTime 10000;
nSubCycle 5;
cloudName particleTracks;
seedSampleSet uniform;
uniformCoeffs
seedSampleSet
{
type uniform;
axis x;

View File

@ -32,9 +32,7 @@ streamLines
cloudName particleTracks;
// Seeding method.
seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet;
uniformCoeffs
seedSampleSet
{
type uniform;
axis x; //distance;

View File

@ -42,9 +42,7 @@ streamLines
cloudName particleTracks;
// Seeding method.
seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet;
uniformCoeffs
seedSampleSet
{
type uniform;
axis x; //distance;

View File

@ -68,29 +68,31 @@ wallBoundedStreamLines
cloudName wallBoundedParticleTracks;
// Seeding method.
seedSampleSet patchSeed; //cloud; //triSurfaceMeshPointSet;
uniformCoeffs
{
type uniform;
axis x; //distance;
start (0.0035 0.0999 0.0001);
end (0.0035 0.0999 0.0099);
nPoints 20;
}
cloudCoeffs
{
type cloud;
axis x; //distance;
points ((0.351516548679288 -0.0116085375585099 1.24));
}
patchSeedCoeffs
seedSampleSet
{
type patchSeed;
patches (motorBikeGroup);
axis x; //distance;
maxPoints 20000;
uniformCoeffs
{
axis x; //distance;
start (0.0035 0.0999 0.0001);
end (0.0035 0.0999 0.0099);
nPoints 20;
}
cloudCoeffs
{
axis x; //distance;
points ((0.351516548679288 -0.0116085375585099 1.24));
}
patchSeedCoeffs
{
patches (motorBikeGroup);
axis x; //distance;
maxPoints 20000;
}
}
}

View File

@ -76,13 +76,11 @@ functions
cloudName particleTracks;
// Seeding method.
seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet;
uniformCoeffs
seedSampleSet
{
type uniform;
axis x; //distance;
axis x; //distance;
start (-0.0205 0.001 0.00001);
end (-0.0205 0.0251 0.00001);
nPoints 10;

View File

@ -17,22 +17,17 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
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
// ************************************************************************* //

View File

@ -20,16 +20,13 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolvers.so");
solver displacementSBRStress; //displacementLaplacian;
//solver velocityComponentLaplacian z;
motionSolver displacementSBRStress; //displacementLaplacian;
//motionSolver velocityComponentLaplacian z;
displacementSBRStressCoeffs
{
// diffusivity uniform;
// diffusivity directional (1 200 0);
// diffusivity motionDirectional (1 1000 0);
// diffusivity file motionDiffusivity;
diffusivity quadratic inverseDistance 1(minZ);
}
// diffusivity uniform;
// diffusivity directional (1 200 0);
// diffusivity motionDirectional (1 1000 0);
// diffusivity file motionDiffusivity;
diffusivity quadratic inverseDistance 1(minZ);
// ************************************************************************* //

View File

@ -17,26 +17,21 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction SDA;
SDACoeffs
{
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
}
}
solidBodyMotionFunction SDA;
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
// ************************************************************************* //

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -18,7 +18,7 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("librigidBodyMeshMotion.so");
solver rigidBodyMotion;
motionSolver rigidBodyMotion;
rigidBodyMotionCoeffs
{

View File

@ -18,7 +18,7 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libsixDoFRigidBodyMotion.so");
solver sixDoFRigidBodyMotion;
motionSolver sixDoFRigidBodyMotion;
sixDoFRigidBodyMotionCoeffs
{

View File

@ -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
// ************************************************************************* //

View File

@ -17,45 +17,42 @@ FoamFile
dynamicFvMesh dynamicRefineFvMesh;
dynamicRefineFvMeshCoeffs
{
// How often to refine
refineInterval 1;
// How often to refine
refineInterval 1;
// Field to be refinement on
field alpha.water;
// Field to be refinement on
field alpha.water;
// Refine field inbetween lower..upper
lowerRefineLevel 0.001;
upperRefineLevel 0.999;
// Refine field inbetween lower..upper
lowerRefineLevel 0.001;
upperRefineLevel 0.999;
// If value < unrefineLevel unrefine
unrefineLevel 10;
// If value < unrefineLevel unrefine
unrefineLevel 10;
// Have slower than 2:1 refinement
nBufferLayers 1;
// Have slower than 2:1 refinement
nBufferLayers 1;
// Refine cells only up to maxRefinement levels
maxRefinement 2;
// Refine cells only up to maxRefinement levels
maxRefinement 2;
// Stop refinement if maxCells reached
maxCells 200000;
// Stop refinement if maxCells reached
maxCells 200000;
// Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated.
correctFluxes
(
(phi none)
(nHatf none)
(rhoPhi none)
(alphaPhi none)
(ghf none)
);
// Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated.
correctFluxes
(
(phi none)
(nHatf none)
(rhoPhi none)
(alphaPhi none)
(ghf none)
);
// Write the refinement level as a volScalarField
dumpLevel true;
}
// Write the refinement level as a volScalarField
dumpLevel true;
// ************************************************************************* //

View File

@ -17,34 +17,28 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
solidBodyMotionFunction multiMotion;
oscillation
{
solidBodyMotionFunction multiMotion;
multiMotionCoeffs
solidBodyMotionFunction oscillatingLinearMotion;
oscillatingLinearMotionCoeffs
{
oscillation
{
solidBodyMotionFunction oscillatingLinearMotion;
oscillatingLinearMotionCoeffs
{
amplitude (0.1 0 0);
omega 18.8945578;
}
}
amplitude (0.1 0 0);
omega 18.8945578;
}
}
rotation
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0.02 0);
axis (0 0 1);
omega 18.8945578;
}
}
rotation
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0.02 0);
axis (0 0 1);
omega 18.8945578;
}
}

View File

@ -17,26 +17,21 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction SDA;
SDACoeffs
{
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
}
}
solidBodyMotionFunction SDA;
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
// ************************************************************************* //

View File

@ -17,26 +17,21 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction SDA;
SDACoeffs
{
CofG (0 0 0);
lamda 50;
rollAmax 0.2;
rollAmin 0.1;
heaveA 4;
swayA 2.4;
Q 2;
Tp 14;
Tpn 12;
dTi 0.06;
dTp -0.001;
}
}
solidBodyMotionFunction SDA;
CofG (0 0 0);
lamda 50;
rollAmax 0.2;
rollAmin 0.1;
heaveA 4;
swayA 2.4;
Q 2;
Tp 14;
Tpn 12;
dTi 0.06;
dTp -0.001;
// ************************************************************************* //

View File

@ -17,26 +17,21 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction SDA;
SDACoeffs
{
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
}
}
solidBodyMotionFunction SDA;
CofG (0 0 0);
lamda 50;
rollAmax 0.22654;
rollAmin 0.10472;
heaveA 3.79;
swayA 2.34;
Q 2;
Tp 13.93;
Tpn 11.93;
dTi 0.059;
dTp -0.001;
// ************************************************************************* //

View File

@ -17,26 +17,21 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction SDA;
SDACoeffs
{
CofG (0 0 0);
lamda 50;
rollAmax 0.2;
rollAmin 0.1;
heaveA 4;
swayA 2.4;
Q 2;
Tp 14;
Tpn 12;
dTi 0.06;
dTp -0.001;
}
}
solidBodyMotionFunction SDA;
CofG (0 0 0);
lamda 50;
rollAmax 0.2;
rollAmin 0.1;
heaveA 4;
swayA 2.4;
Q 2;
Tp 14;
Tpn 12;
dTi 0.06;
dTp -0.001;
// ************************************************************************* //

View File

@ -17,17 +17,12 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
solidBodyMotionFunction tabulated6DoFMotion;
tabulated6DoFMotionCoeffs
{
CofG (0 0 0);
timeDataFileName "$FOAM_CASE/constant/6DoF.dat";
}
}
solidBodyMotionFunction tabulated6DoFMotion;
CofG (0 0 0);
timeDataFileName "$FOAM_CASE/constant/6DoF.dat";
// ************************************************************************* //

View File

@ -17,49 +17,43 @@ FoamFile
dynamicFvMesh dynamicMotionSolverFvMesh;
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
solidBodyMotionFunction multiMotion;
// Table rotating in z axis
rotatingTable
{
solidBodyMotionFunction multiMotion;
multiMotionCoeffs
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
// Table rotating in z axis
rotatingTable
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0.1 0);
axis (0 0 1);
omega 6.2832; // rad/s
}
}
origin (0 0.1 0);
axis (0 0 1);
omega 6.2832; // rad/s
}
}
//// Box rotates on rotating table
//rotatingBox
//{
// solidBodyMotionFunction rotatingMotion;
// rotatingMotionCoeffs
// {
// origin (0 0 0);
// axis (1 0 0);
// omega 12.5664; // rad/s
// }
//}
//// Box rotates on rotating table
//rotatingBox
//{
// solidBodyMotionFunction rotatingMotion;
// rotatingMotionCoeffs
// {
// origin (0 0 0);
// axis (1 0 0);
// omega 12.5664; // rad/s
// }
//}
// Tube rocking on rotating table
rotatingBox
{
solidBodyMotionFunction oscillatingRotatingMotion;
oscillatingRotatingMotionCoeffs
{
origin (0 0 0);
omega 40; // rad/s
amplitude (45 0 0); // 45 degrees max tilt
}
}
// Tube rocking on rotating table
rotatingBox
{
solidBodyMotionFunction oscillatingRotatingMotion;
oscillatingRotatingMotionCoeffs
{
origin (0 0 0);
omega 40; // rad/s
amplitude (45 0 0); // 45 degrees max tilt
}
}

View File

@ -1,21 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh staticFvMesh;
// ************************************************************************* //

View File

@ -1,21 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh staticFvMesh;
// ************************************************************************* //

View File

@ -19,27 +19,22 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone innerCylinderSmall;
cellZone innerCylinderSmall;
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 1 0);
omega table
(
(0 0)
(0.01 628)
(0.022 628)
(0.03 419)
(100 419)
);
}
}
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 1 0);
omega table
(
(0 0)
(0.01 628)
(0.022 628)
(0.03 419)
(100 419)
);
// ************************************************************************* //

View File

@ -19,20 +19,15 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
solver solidBody;
motionSolver solidBody;
solidBodyCoeffs
{
cellZone rotor;
cellZone rotor;
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
}
}
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
// ************************************************************************* //

View File

@ -16,20 +16,16 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh dynamicMotionSolverFvMesh;
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolvers.so");
solver displacementLaplacian;
//solver velocityComponentLaplacian z;
motionSolver displacementLaplacian;
displacementLaplacianCoeffs
{
// diffusivity uniform;
// diffusivity directional (1 200 0);
// diffusivity motionDirectional (1 1000 0);
// diffusivity file motionDiffusivity;
diffusivity inverseDistance 1(floatingObjectBottom);
}
// diffusivity uniform;
// diffusivity directional (1 200 0);
// diffusivity motionDirectional (1 1000 0);
// diffusivity file motionDiffusivity;
diffusivity inverseDistance 1(floatingObjectBottom);
// ************************************************************************* //