Integrated Foundation code to commit 104aac5

This commit is contained in:
Andrew Heather
2017-05-17 16:35:18 +01:00
590 changed files with 5963 additions and 3699 deletions

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,8 +17,8 @@ FoamFile
phases (water air);
pMin [1 -1 -2 0 0 0 0] 1000;
pMin 1000;
sigma [1 0 -2 0 0 0 0] 0;
sigma 0;
// ************************************************************************* //

View File

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

View File

@ -17,8 +17,12 @@ FoamFile
phases (water air);
pMin [1 -1 -2 0 0 0 0] 10000;
pMin 10000;
sigma [1 0 -2 0 0 0 0] 0.07;
sigma
{
type liquidProperties;
phase water;
}
// ************************************************************************* //

View File

@ -17,8 +17,8 @@ FoamFile
phases (water air);
pMin [1 -1 -2 0 0 0 0] 10000;
pMin 10000;
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -17,16 +17,16 @@ FoamFile
phases (water oil mercury air);
pMin [1 -1 -2 0 0 0 0] 10000;
pMin 10000;
sigmas
(
(air water) 0.07
(air oil) 0.07
(air mercury) 0.07
(water oil) 0.07
(air water) 0.07
(air oil) 0.07
(air mercury) 0.07
(water oil) 0.07
(water mercury) 0.07
(oil mercury) 0.07
(oil mercury) 0.07
);

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

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

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

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

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

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

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

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

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

@ -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] 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.07;
sigma 0.07;
// ************************************************************************* //

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

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

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

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

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

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

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

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

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

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

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

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

View File

@ -20,17 +20,17 @@ phases (fuel air);
fuel
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 5.952e-06;
rho [1 -3 0 0 0 0 0] 840;
nu 5.952e-06;
rho 840;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 8.5e-07;
rho [1 -3 0 0 0 0 0] 20;
nu 8.5e-07;
rho 20;
}
sigma [1 0 -2 0 0 0 0] 0.0261;
sigma 0.0261;
// ************************************************************************* //

View File

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

View File

@ -18,7 +18,6 @@ FoamFile
porosity1
{
type explicitPorositySource;
active yes;
explicitPorositySourceCoeffs
{
@ -27,21 +26,18 @@ porosity1
type DarcyForchheimer;
DarcyForchheimerCoeffs
{
d (2e8 -1000 -1000);
f (0 0 0);
d (2e8 -1000 -1000);
f (0 0 0);
coordinateSystem
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
}
}

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -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] 1000;
nu 1e-06;
rho 1000;
}
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.0707106;
sigma 0.0707106;
// ************************************************************************* //

View File

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

View File

@ -20,18 +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] 1000;
nu 1e-06;
rho 1000;
}
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.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -20,18 +20,18 @@ phases (water oir);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-4;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-4;
rho 1000;
}
oir
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-4;
rho [1 -3 0 0 0 0 0] 500;
nu 1e-4;
rho 500;
}
sigma [1 0 -2 0 0 0 0] 0.05;
sigma 0.05;
// ************************************************************************* //

View File

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

View File

@ -20,29 +20,29 @@ phases (air other water);
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;
}
other
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1010;
nu 1e-6;
rho 1010;
}
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-6;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-6;
rho 1000;
}
// Surface tension coefficients
sigma12 sigma12 [1 0 -2 0 0 0 0] 0.05;
sigma13 sigma13 [1 0 -2 0 0 0 0] 0.04;
sigma12 0.05;
sigma13 0.04;
// Diffusivity between miscible phases
D23 D23 [0 2 -1 0 0 0 0] 3e-09;
D23 3e-09;
// ************************************************************************* //

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,46 +19,46 @@ phases (water vapour);
phaseChangeTwoPhaseMixture SchnerrSauer;
pSat [1 -1 -2 0 0 0 0] 2300; // Saturation pressure
pSat 2300; // Saturation pressure
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 9e-07;
rho [1 -3 0 0 0 0 0] 1000;
nu 9e-07;
rho 1000;
}
vapour
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 4.273e-04;
rho [1 -3 0 0 0 0 0] 0.02308;
nu 4.273e-04;
rho 0.02308;
}
KunzCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 1000;
Cv Cv [0 0 0 0 0 0 0] 1000;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 1000;
Cv 1000;
}
MerkleCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 80;
Cv Cv [0 0 0 0 0 0 0] 1e-03;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 80;
Cv 1e-03;
}
SchnerrSauerCoeffs
{
n n [0 -3 0 0 0 0 0] 1.6e+13;
dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06;
Cc Cc [0 0 0 0 0 0 0] 1;
Cv Cv [0 0 0 0 0 0 0] 1;
n 1.6e+13;
dNuc 2.0e-06;
Cc 1;
Cv 1;
}
// ************************************************************************* //

View File

@ -18,46 +18,46 @@ phases (water vapour);
phaseChangeTwoPhaseMixture SchnerrSauer;
pSat [1 -1 -2 0 0 0 0] 2300; // Saturation pressure
pSat 2300; // Saturation pressure
sigma [1 0 -2 0 0 0 0] 0.07;
sigma 0.07;
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 9e-07;
rho [1 -3 0 0 0 0 0] 1000;
transportModel Newtonian;
nu 9e-07;
rho 1000;
}
vapour
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 4.273e-04;
rho [1 -3 0 0 0 0 0] 0.02308;
transportModel Newtonian;
nu 4.273e-04;
rho 0.02308;
}
KunzCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 1000;
Cv Cv [0 0 0 0 0 0 0] 1000;
UInf U20.0;
tInf t0.005; // L = 0.1 m
Cc C1000;
Cv C1000;
}
MerkleCoeffs
{
UInf UInf [0 1 -1 0 0 0 0] 20.0;
tInf tInf [0 0 1 0 0 0 0] 0.005; // L = 0.1 m
Cc Cc [0 0 0 0 0 0 0] 80;
Cv Cv [0 0 0 0 0 0 0] 1e-03;
UInf 20.0;
tInf 0.005; // L = 0.1 m
Cc 80;
Cv 1e-03;
}
SchnerrSauerCoeffs
{
n n [0 -3 0 0 0 0 0] 1.6e+13;
dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06;
Cc Cc [0 0 0 0 0 0 0] 1;
Cv Cv [0 0 0 0 0 0 0] 1;
n 1.6e+13;
dNuc 2.0e-06;
Cc 1;
Cv 1;
}

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);
// ************************************************************************* //

View File

@ -32,15 +32,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.air (1e-3 0); // kg/s
}
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.air (1e-3 0); // kg/s
}
}
@ -48,15 +45,12 @@ options
{
type vectorSemiImplicitSource;
vectorSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
U.air ((0 -1e-2 0) 0); // kg*m/s^2
}
volumeMode absolute;
injectionRateSuSp
{
U.air ((0 -1e-2 0) 0); // kg*m/s^2
}
}
@ -64,15 +58,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
e.air (500 0); // kg*m^2/s^3
}
volumeMode absolute;
injectionRateSuSp
{
e.air (500 0); // kg*m^2/s^3
}
}
}

View File

@ -32,15 +32,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.steam (1.0e-3 0); // kg/s
}
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.steam (1.0e-3 0); // kg/s
}
}
/*
@ -48,15 +45,12 @@ options
{
type vectorSemiImplicitSource;
vectorSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
volumeMode absolute;
injectionRateSuSp
{
U.steam ((0 1e-2 0) 0); // kg*m/s^2
}
}
}
*/
@ -64,15 +58,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
e.steam (3700 0); // kg*m^2/s^3
}
volumeMode absolute;
injectionRateSuSp
{
e.steam (3700 0); // kg*m^2/s^3
}
}
}

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type thermalPhaseChangeTwoPhaseSystem;
type thermalPhaseChangeTwoPhaseSystem;
phases (steam water);
@ -34,7 +34,7 @@ steam
}
Sc 0.7;
residualAlpha 1e-6;
residualAlpha 1e-3;
}
water
@ -47,7 +47,7 @@ water
}
Sc 0.7;
residualAlpha 1e-6;
residualAlpha 1e-3;
}
blending
@ -56,30 +56,6 @@ blending
{
type none;
continuousPhase water;
minFullyContinuousAlpha.steam 0.7;
minPartlyContinuousAlpha.steam 0.5;
minFullyContinuousAlpha.water 0.7;
minPartlyContinuousAlpha.water 0.5;
}
heatTransfer
{
type none;
continuousPhase water;
minFullyContinuousAlpha.steam 1;
minPartlyContinuousAlpha.steam 0;
minFullyContinuousAlpha.water 1;
minPartlyContinuousAlpha.water 0;
}
massTransfer
{
type none;
continuousPhase water;
minFullyContinuousAlpha.steam 1;
minPartlyContinuousAlpha.steam 0;
minFullyContinuousAlpha.water 1;
minPartlyContinuousAlpha.water 0;
}
}
@ -107,12 +83,6 @@ aspectRatio
type constant;
E0 1.0;
}
(water in steam)
{
type constant;
E0 1.0;
}
);
drag
@ -126,16 +96,6 @@ drag
type none;
}
}
(water in steam)
{
type SchillerNaumann;
residualRe 1e-3;
swarmCorrection
{
type none;
}
}
);
virtualMass
@ -145,27 +105,18 @@ virtualMass
type constantCoefficient;
Cvm 0.5;
}
(water in steam)
{
type constantCoefficient;
Cvm 0.5;
}
);
interfaceComposition
();
heatTransfer
(
(steam in water)
{
type Saturated;
species ( H2O );
Le 1.0;
saturationPressure
{
type ArdenBuck;
}
type spherical;
residualAlpha 1e-4;
}
);
heatTransfer.steam
@ -187,33 +138,19 @@ heatTransfer.water
);
massTransfer.steam
(
);
();
massTransfer.water
(
);
();
lift
(
);
();
wallLubrication
(
);
();
turbulentDispersion
(
(steam in water)
{
type Burns;//
sigma 0.7;
Ctd 1.0;
residualAlpha 1e-3;
}
);
();
// Minimum allowable pressure
pMin 10000;

View File

@ -23,9 +23,13 @@ thermoType
thermo hRefConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
energy sensibleEnthalpy;
}
dpdt yes;
pressureWorkAlphaLimit 0;
species
(
water

View File

@ -23,9 +23,13 @@ thermoType
thermo hRefConst;
equationOfState perfectFluid;
specie specie;
energy sensibleInternalEnergy;
energy sensibleEnthalpy;
}
dpdt yes;
pressureWorkAlphaLimit 0;
species
(
water

View File

@ -25,11 +25,11 @@ stopAt endTime;
endTime 10;
deltaT 1e-6;
deltaT 1e-3;
writeControl adjustableRunTime;
writeInterval 0.5;
writeInterval 0.1;
purgeWrite 0;
@ -41,7 +41,7 @@ writeCompression compressed;
timeFormat general;
timePrecision 6;
timePrecision 9;
runTimeModifiable yes;
@ -51,5 +51,30 @@ maxCo 0.1;
maxDeltaT 1e-2;
functions
{
timeStepping
{
type setTimeStep;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled yes;
deltaT tableFile;
file "system/deltaTvalues";
}
minMaxp
{
type fieldMinMax;
functionObjectLibs ("libfieldFunctionObjects.so");
fields
(
p
);
location no;
writeControl timeStep;
writeInterval 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,9 @@
(
(0 1e-3)
(0.99 1e-3)
(0.999 1e-4)
(0.9999 1e-5)
(1.001 1e-5)
(1.01 1e-4)
(1.1 1e-3)
);

View File

@ -27,8 +27,8 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-8;
relTol 0;
tolerance 1e-10;
relTol 0.001;
}
p_rghFinal
@ -78,10 +78,10 @@ solvers
PIMPLE
{
nOuterCorrectors 4;
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
nEnergyCorrectors 1;
nEnergyCorrectors 2;
faceMomentum yes;
}
@ -89,7 +89,7 @@ relaxationFactors
{
fields
{
iDmdt 1;
iDmdt 1;
}
equations

View File

@ -32,15 +32,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.air (1e-3 0); // kg/s
}
volumeMode absolute;
injectionRateSuSp
{
thermo:rho.air (1e-3 0); // kg/s
}
}
@ -48,15 +45,12 @@ options
{
type vectorSemiImplicitSource;
vectorSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
U.air ((0 -1e-2 0) 0); // kg*m/s^2
}
volumeMode absolute;
injectionRateSuSp
{
U.air ((0 -1e-2 0) 0); // kg*m/s^2
}
}
@ -64,15 +58,12 @@ options
{
type scalarSemiImplicitSource;
scalarSemiImplicitSourceCoeffs
{
$injector1;
$injector1;
volumeMode absolute;
injectionRateSuSp
{
e.air (500 0); // kg*m^2/s^3
}
volumeMode absolute;
injectionRateSuSp
{
e.air (500 0); // kg*m^2/s^3
}
}
}