mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: rigidbodyDynamics: prescribed rotation + testcase
See: src/rigidBodyDynamics/restraints/prescribedRotation tutorials/multiphase/overInterDyMFoam/boatAndPropeller
This commit is contained in:
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
//type slip;
|
||||
type uniformFixedValue;
|
||||
uniformValue (0 0 0);
|
||||
}
|
||||
|
||||
"(hullWall|propellerWall|rudderWall)"
|
||||
{
|
||||
type movingWallVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
//
|
||||
// right1
|
||||
// {
|
||||
// type zeroGradient; //calculated;
|
||||
// value $internalField;
|
||||
// }
|
||||
|
||||
"overset.*"
|
||||
{
|
||||
type overset;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1612+ |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alpha.water;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
"overset.*"
|
||||
{
|
||||
type overset;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
hullWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
propellerWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
rudderWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,55 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1612+ |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object alpha.water;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
|
||||
boundaryField
|
||||
{
|
||||
"overset.*"
|
||||
{
|
||||
type overset;
|
||||
value uniform 1;
|
||||
}
|
||||
hullWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
propellerWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
rudderWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,60 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1706 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class pointScalarField;
|
||||
location "0";
|
||||
object motionScale;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
overset1
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
overset2
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
overset3
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
hullWall
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
propellerWall
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
rudderWall
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,59 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
"(hullWall|propellerWall|rudderWall|defaultFaces)"
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type totalPressure;
|
||||
p0 uniform 0;
|
||||
U U;
|
||||
phi phi;
|
||||
rho rho;
|
||||
psi none;
|
||||
gamma 1;
|
||||
value uniform 0;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
//
|
||||
// right1
|
||||
// {
|
||||
// type fixedValue; //calculated;
|
||||
// value $internalField;
|
||||
// }
|
||||
|
||||
"overset.*"
|
||||
{
|
||||
patchType overset;
|
||||
type fixedFluxPressure;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,56 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class pointVectorField;
|
||||
object pointDisplacement;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 0 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type uniformFixedValue;
|
||||
uniformValue (0 0 0);
|
||||
}
|
||||
|
||||
"(hullWall|propellerWall|rudderWall)"
|
||||
{
|
||||
type calculated;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
oversetPatch
|
||||
{
|
||||
patchType overset;
|
||||
type zeroGradient;
|
||||
}
|
||||
"overset.*"
|
||||
{
|
||||
patchType overset;
|
||||
type zeroGradient;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v1706 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object zoneID;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
overset1
|
||||
{
|
||||
type overset;
|
||||
value uniform 0;
|
||||
}
|
||||
overset2
|
||||
{
|
||||
type overset;
|
||||
value uniform 0;
|
||||
}
|
||||
overset3
|
||||
{
|
||||
type overset;
|
||||
value uniform 0;
|
||||
}
|
||||
hullWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
propellerWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
rudderWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
12
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean
Executable file
12
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allclean
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -f constant/polyMesh/boundary
|
||||
rm -f constant/polyMesh/zoneID
|
||||
rm -f constant/cellInterpolationWeight
|
||||
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
10
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun
Executable file
10
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
./Allrun.pre
|
||||
|
||||
runApplication decomposePar
|
||||
runParallel overInterDyMFoam
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
37
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre
Executable file
37
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
#runApplication -s 1 topoSet -dict ./system/topoSetDictRefine
|
||||
#runApplication -s 1 refineMesh -overwrite -dict ./system/refineMeshDict
|
||||
runApplication -s 1 topoSet -dict ./system/topoSetDictRefine
|
||||
runApplication -s 1 refineMesh -overwrite -dict ./system/refineMeshDict
|
||||
runApplication -s 2 topoSet -dict ./system/topoSetDictRefine
|
||||
runApplication -s 2 refineMesh -overwrite -dict ./system/refineMeshDict
|
||||
# Select cellSets
|
||||
runApplication -s 3 topoSet -dict ./system/topoSetDictHull
|
||||
|
||||
runApplication -s 3 subsetMesh keepBox -patch hullWall -overwrite
|
||||
|
||||
# Select cellSets
|
||||
runApplication -s 4 topoSet -dict ./system/topoSetDictPropeller
|
||||
|
||||
runApplication -s 4 subsetMesh keepBox -patch propellerWall -overwrite
|
||||
|
||||
# Select cellSets
|
||||
runApplication -s 5 topoSet -dict ./system/topoSetDictRudder
|
||||
|
||||
runApplication -s 5 subsetMesh keepBox -patch rudderWall -overwrite
|
||||
|
||||
restore0Dir
|
||||
|
||||
# Use cellSets to write zoneID
|
||||
runApplication -s 1 setFields -dict system/setFieldsDict
|
||||
runApplication -s 2 setFields -dict system/setFieldsDictWaterLevel
|
||||
|
||||
|
||||
|
||||
touch rbm.foam
|
||||
#------------------------------------------------------------------------------
|
||||
@ -0,0 +1,135 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus.develop |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object dynamicMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
motionSolverLibs ("librigidBodyMeshMotion.so");
|
||||
|
||||
dynamicFvMesh dynamicOversetFvMesh;
|
||||
|
||||
motionSolver rigidBodyMotion;
|
||||
|
||||
// rigidBodyMotionCoeffs
|
||||
// {
|
||||
report on;
|
||||
|
||||
solver
|
||||
{
|
||||
type Newmark;
|
||||
gamma 0.1; // Velocity integration coefficient
|
||||
beta 0.1; // Position integration coefficient
|
||||
}
|
||||
|
||||
accelerationRelaxation 1.0;
|
||||
|
||||
bodies
|
||||
{
|
||||
hull
|
||||
{
|
||||
type rigidBody;
|
||||
parent root;
|
||||
|
||||
// Cuboid mass
|
||||
mass 9;
|
||||
rho 1;
|
||||
inertia (0.05 0 0 0.05 0 0.05);
|
||||
centreOfMass (0.21 -0.07 0);
|
||||
transform (1 0 0 0 1 0 0 0 1) (0.21 0 0);
|
||||
|
||||
joint
|
||||
{
|
||||
type composite;
|
||||
joints
|
||||
(
|
||||
{
|
||||
type Pxyz;
|
||||
}
|
||||
{
|
||||
type Rxyz;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
patches (hullWall);
|
||||
innerDistance 100;
|
||||
outerDistance 200;
|
||||
} // end hull
|
||||
|
||||
propeller
|
||||
{
|
||||
|
||||
type rigidBody;
|
||||
parent hull;
|
||||
|
||||
centreOfMass (-0.228 0.0 0);
|
||||
mass 1;
|
||||
rho 1;
|
||||
inertia (0.001 0 0 0.001 0 0.001);
|
||||
transform (1 0 0 0 1 0 0 0 1) (-0.228 0 0);
|
||||
patches (propellerWall);
|
||||
innerDistance 100;
|
||||
outerDistance 200;
|
||||
joint
|
||||
{
|
||||
type Rx;
|
||||
}
|
||||
} //end propeller
|
||||
|
||||
rudder
|
||||
{
|
||||
type rigidBody;
|
||||
parent hull;//root;
|
||||
centreOfMass (-0.265 0 0);
|
||||
mass 1;
|
||||
rho 1;
|
||||
inertia (0.001 0 0 0.001 0 0.001);
|
||||
transform (1 0 0 0 1 0 0 0 1) (-0.265 0 0);
|
||||
patches (rudderWall);
|
||||
innerDistance 100;
|
||||
outerDistance 200;
|
||||
joint
|
||||
{
|
||||
type Ry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
restraints
|
||||
{
|
||||
rudderRotation
|
||||
{
|
||||
type prescribedRotation;
|
||||
body rudder;
|
||||
referenceOrientation (1 0 0 0 1 0 0 0 1);
|
||||
axis (0 1 0);
|
||||
omega (0 26 0);
|
||||
}
|
||||
propellerRotation
|
||||
{
|
||||
type prescribedRotation;
|
||||
body propeller;
|
||||
referenceOrientation (1 0 0 0 1 0 0 0 1);
|
||||
axis (1 0 0);
|
||||
omega table
|
||||
(
|
||||
(0 (16 0 0))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// } // end of rigidBodyMotionCoeffs
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- 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 uniformDimensionedVectorField;
|
||||
object g;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -2 0 0 0 0];
|
||||
value (0 -9 0);//( 0 -9.81 0 );
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,35 @@
|
||||
/*--------------------------------*- 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;
|
||||
object transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
phases (water air);
|
||||
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 998.2;
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1;
|
||||
}
|
||||
|
||||
sigma sigma [ 1 0 -2 0 0 0 0 ] 0;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,19 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
simulationType laminar;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,158 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
scale 1;
|
||||
|
||||
vertices
|
||||
(
|
||||
// backgroundMesh
|
||||
( -1.00 -1 -1) // 0
|
||||
( 1.00 -1 -1)
|
||||
( 1.00 1.0 -1)
|
||||
( -1.00 1.0 -1)
|
||||
( -1.00 -1 1) // 4
|
||||
( 1.00 -1 1)
|
||||
( 1.00 1.0 1)
|
||||
( -1.00 1.0 1)
|
||||
|
||||
// hullBox
|
||||
( 0.0 -0.20 -0.2) // 8
|
||||
( 0.80 -0.20 -0.2)
|
||||
( 0.80 0.20 -0.2) // 10
|
||||
( 0.0 0.20 -0.2)
|
||||
( 0.0 -0.20 0.2) // 12
|
||||
( 0.80 -0.20 0.2)
|
||||
( 0.80 0.20 0.2) // 14
|
||||
( 0.0 0.20 0.2)
|
||||
|
||||
// propeller
|
||||
( -0.03 -0.08 -0.08) // 16
|
||||
( 0.04 -0.08 -0.08)
|
||||
( 0.04 0.08 -0.08) // 18
|
||||
( -0.03 0.08 -0.08)
|
||||
( -0.03 -0.08 0.08) // 20
|
||||
( 0.04 -0.08 0.08)
|
||||
( 0.04 0.08 0.08) // 22
|
||||
( -0.03 0.08 0.08)
|
||||
|
||||
// rudder
|
||||
( -0.15 -0.1 -0.05) // 24
|
||||
( -0.028 -0.1 -0.05)
|
||||
( -0.028 0.1 -0.05) // 26
|
||||
( -0.15 0.1 -0.05)
|
||||
( -0.15 -0.1 0.05) // 28
|
||||
( -0.028 -0.1 0.05)
|
||||
( -0.028 0.1 0.05) // 30
|
||||
( -0.15 0.1 0.05)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) background (80 80 40) simpleGrading (1 1 1)
|
||||
|
||||
hex (8 9 10 11 12 13 14 15) hullBox (20 20 20) simpleGrading (1 1 1)
|
||||
|
||||
hex (16 17 18 19 20 21 22 23) propeller (10 20 20) simpleGrading (1 1 1)
|
||||
|
||||
hex (24 25 26 27 28 29 30 31) rudder (20 20 20) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
overset1 //oversetHull
|
||||
{
|
||||
type overset;
|
||||
faces
|
||||
(
|
||||
( 8 12 15 11)
|
||||
(10 14 13 9)
|
||||
(11 15 14 10)
|
||||
( 9 13 12 8)
|
||||
( 9 8 11 10)
|
||||
(12 13 14 15)
|
||||
);
|
||||
}
|
||||
|
||||
overset2 //oversetPropeller
|
||||
{
|
||||
type overset;
|
||||
faces
|
||||
(
|
||||
(16 20 23 19)
|
||||
(18 22 21 17)
|
||||
(19 23 22 18)
|
||||
(17 21 20 16)
|
||||
(20 21 22 23)
|
||||
(19 18 17 16)
|
||||
);
|
||||
}
|
||||
|
||||
overset3 //oversetRudder
|
||||
{
|
||||
type overset;
|
||||
faces
|
||||
(
|
||||
(24 28 31 27)
|
||||
(26 30 29 25)
|
||||
(28 29 30 31)
|
||||
(25 24 27 26)
|
||||
(27 31 30 26)
|
||||
(24 25 29 28)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Populated by subsetMesh
|
||||
hullWall
|
||||
{
|
||||
type wall;
|
||||
faces ();
|
||||
}
|
||||
propellerWall
|
||||
{
|
||||
type wall;
|
||||
faces ();
|
||||
}
|
||||
rudderWall
|
||||
{
|
||||
type wall;
|
||||
faces ();
|
||||
}
|
||||
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type patch;
|
||||
faces
|
||||
(
|
||||
(3 7 6 2)
|
||||
// (1 5 4 0)
|
||||
);
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
();
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
libs ("liboverset.so" "librigidBodyDynamics.so");
|
||||
|
||||
application overInterDyMFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 1;
|
||||
|
||||
deltaT 0.0001;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 0.005;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
writePrecision 10;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
//maxCo 1;
|
||||
maxCo 5.0;
|
||||
maxAlphaCo 5.0;
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,30 @@
|
||||
/*--------------------------------*- 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;
|
||||
note "mesh decomposition control dictionary";
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
|
||||
method hierarchical;
|
||||
|
||||
coeffs
|
||||
{
|
||||
n (2 2 1);
|
||||
// delta 0.001;
|
||||
// order xyz;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,72 @@
|
||||
/*--------------------------------*- 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;
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
div(rhoPhi,U) Gauss upwind ;//limitedLinearV 1;
|
||||
div(U) Gauss upwind;//linear;
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss linear;
|
||||
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,omega) Gauss upwind;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
oversetInterpolation
|
||||
{
|
||||
method inverseDistance;
|
||||
}
|
||||
oversetInterpolationRequired
|
||||
{
|
||||
alpha.water;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
// default no;
|
||||
// p_rgh;
|
||||
// pcorr;
|
||||
// alpha.water;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,69 @@
|
||||
/*--------------------------------*- 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;
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
div(rhoPhi,U) Gauss limitedLinearV 1;
|
||||
div(U) Gauss linear;
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss linear;
|
||||
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,omega) Gauss upwind;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
oversetInterpolation
|
||||
{
|
||||
method inverseDistance;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p;
|
||||
// p_rgh;
|
||||
// pcorr;
|
||||
// alpha.water;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,112 @@
|
||||
/*--------------------------------*- 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;
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
|
||||
"cellDisplacement.*"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
maxIter 100;
|
||||
}
|
||||
|
||||
"alpha.water.*"
|
||||
{
|
||||
nAlphaCorr 3;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
icAlpha 0;
|
||||
|
||||
MULESCorr yes;
|
||||
nLimiterIter 5;
|
||||
alphaApplyPrevCorr no;
|
||||
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-8;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"pcorr.*"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-9;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-9;
|
||||
relTol 0.01;
|
||||
}
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
|
||||
"(U|k|omega|epsilon).*"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-08;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
momentumPredictor no;//yes;
|
||||
nOuterCorrectors 2;
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
|
||||
ddtCorr yes;
|
||||
correctPhi no;
|
||||
massFluxInterpolation no;
|
||||
|
||||
moveMeshOuterCorrectors no;
|
||||
turbOnFinalIterOnly no;
|
||||
|
||||
oversetAdjustPhi no;
|
||||
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
}
|
||||
equations
|
||||
{
|
||||
".*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
cache
|
||||
{
|
||||
grad(U);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,43 @@
|
||||
/*--------------------------------*- 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 "system";
|
||||
object refineMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
set refineSet;
|
||||
|
||||
coordinateSystem global;
|
||||
|
||||
globalCoeffs
|
||||
{
|
||||
tan1 (1 0 0);
|
||||
tan2 (0 1 0);
|
||||
}
|
||||
/*
|
||||
patchLocalCoeffs
|
||||
{
|
||||
patch outside;
|
||||
tan1 (1 0 0);
|
||||
}*/
|
||||
|
||||
directions ( tan1 tan2 );
|
||||
|
||||
useHexTopology no;
|
||||
|
||||
geometricCut yes;
|
||||
|
||||
writeMesh no;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,67 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object setFieldsDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue zoneID 123
|
||||
);
|
||||
|
||||
regions
|
||||
(
|
||||
// Set cell values
|
||||
// (does zerogradient on boundaries)
|
||||
cellToCell
|
||||
{
|
||||
set bgr0;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue zoneID 0
|
||||
);
|
||||
}
|
||||
|
||||
cellToCell
|
||||
{
|
||||
set hullBox0;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue zoneID 1
|
||||
);
|
||||
}
|
||||
|
||||
cellToCell
|
||||
{
|
||||
set propeller0;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue zoneID 2
|
||||
);
|
||||
}
|
||||
|
||||
cellToCell
|
||||
{
|
||||
set rudder0;
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue zoneID 3
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,38 @@
|
||||
/*--------------------------------*- 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;
|
||||
object setFieldsDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 0
|
||||
);
|
||||
|
||||
regions
|
||||
(
|
||||
boxToCell
|
||||
{
|
||||
box ( -100 -100 -100 ) ( 100 0.0 100 );
|
||||
fieldValues ( volScalarFieldValue alpha.water 1 );
|
||||
}
|
||||
|
||||
boxToFace
|
||||
{
|
||||
box ( -100 -100 -100 ) ( 100 0.0 100 );
|
||||
fieldValues ( volScalarFieldValue alpha.water 1 );
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,138 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
// set hullBox0set;
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
name propeller0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
name rudder0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set hullBox0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name box; // hole in mesh
|
||||
type cellSet;
|
||||
action subset;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
boxes
|
||||
(
|
||||
(0.05 -0.082 -0.1)(0.52 0.052 0.1) //hullBox
|
||||
// (0 -1 -1)(5 1 1) //hullBox
|
||||
// (-0.02 -0.05 -0.03)( -0.01 0.05 0.03) //propeller
|
||||
// (-0.08 -0.08 -0.03)(-0.06 0.08 0.03) //rudder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set box;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set propeller0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set rudder0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set bgr0;
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,109 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name hullBox0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source regionToCell;
|
||||
sourceInfo
|
||||
{
|
||||
insidePoints ((0.3 0.001 0.001));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Select box to remove from region 1 and 2
|
||||
|
||||
// {
|
||||
// name box; //all but hullBox0 region
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set c0;
|
||||
// }
|
||||
// }
|
||||
|
||||
{
|
||||
name box; // all cells including hullBox0
|
||||
type cellSet;
|
||||
action new; // was: add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set hullBox0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name box;
|
||||
type cellSet;
|
||||
action subset;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
boxes
|
||||
(
|
||||
(0.0501 -0.1 -0.1)(0.5 0.1 0.1) //hullBox
|
||||
// (0 -1 -1)(5 1 1) //hullBox
|
||||
// (-0.02 -0.05 -0.03)( -0.01 0.05 0.03) //propeller
|
||||
// (-0.08 -0.08 -0.03)(-0.06 0.08 0.03) //rudder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name c0; //copy
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set hullBox0;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name c0; //all cells but hullBox0 region
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
{
|
||||
name box; // all cells including hullBox0
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set c0;
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,261 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
// set hullBox0set;
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around hull
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
name propeller0; // all around propeller
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
name rudder0; // all around rudder
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set propeller0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name box; // hole in mesh
|
||||
type cellSet;
|
||||
action subset;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
boxes
|
||||
(
|
||||
// (0.15 -0.1 -0.1)(0.5 0.1 0.1) //hullBox
|
||||
(-0.0199 -0.0499 -0.0499)( -0.00998 0.0499 0.0499) //propeller
|
||||
// (-0.10 -0.0749 -0.00499)(-0.050 0.0749 0.00499) //rudder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set box;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set rudder0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set hullBox0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set bgr0;
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
|
||||
// /*--------------------------------*- C++ -*----------------------------------*\
|
||||
// | ========= | |
|
||||
// | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
// | \\ / O peration | Version: plus-overset |
|
||||
// | \\ / A nd | Web: www.OpenFOAM.com |
|
||||
// | \\/ M anipulation | |
|
||||
// \*---------------------------------------------------------------------------*/
|
||||
// FoamFile
|
||||
// {
|
||||
// version 2.0;
|
||||
// format ascii;
|
||||
// class dictionary;
|
||||
// object topoSetDict;
|
||||
// }
|
||||
// // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
//
|
||||
// actions
|
||||
// (
|
||||
// {
|
||||
// name propeller0; // all around bgr
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source zoneToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// name propeller;
|
||||
// // insidePoints ((-0.02 0.0001 0.0001));
|
||||
// }
|
||||
// }
|
||||
// {
|
||||
// name c0; //copy
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set propeller0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name c0; //all around hullBox0
|
||||
// type cellSet;
|
||||
// action invert;
|
||||
// }
|
||||
//
|
||||
// /*
|
||||
//
|
||||
// {
|
||||
// name c1;
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source regionsToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// insidePoints ((-0.01 0.0 0.0));
|
||||
// set c0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// {
|
||||
// name c1;
|
||||
// type cellSet;
|
||||
// action delete;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set c2;
|
||||
// }
|
||||
// }
|
||||
// */
|
||||
// // Select box to remove from region 1 and 2
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set c0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action add;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set propeller0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action subset;
|
||||
// source boxToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// boxes
|
||||
// (
|
||||
// // (0 -0.1 -0.1)(0.5 0.1 0.1) //hullBox
|
||||
// (-0.0199 -0.0499 -0.0499)( -0.00998 0.0499 0.0499) //propeller
|
||||
// // (-0.08 -0.08 -0.03)(-0.06 0.08 0.03) //rudder
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action invert;
|
||||
// }
|
||||
// );
|
||||
//
|
||||
// // ************************************************************************* //
|
||||
@ -0,0 +1,39 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
|
||||
{
|
||||
name refineSet;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
boxes
|
||||
(
|
||||
(-0.2 -0.2 -0.2)(0.0 0.2 0.2) //hullBox
|
||||
// (0 -1 -1)(5 1 1) //hullBox
|
||||
// (-0.02 -0.05 -0.03)( -0.01 0.05 0.03) //propeller
|
||||
// (-0.08 -0.08 -0.03)(-0.06 0.08 0.03) //rudder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,264 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus-overset |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
// set hullBox0set;
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around hull
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
name propeller0; // all around propeller
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
name rudder0; // all around rudder
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set rudder0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
name box; // hole in mesh
|
||||
type cellSet;
|
||||
action subset;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
boxes
|
||||
(
|
||||
// (0.15 -0.1 -0.1)(0.5 0.1 0.1) //hullBox
|
||||
// (-0.02 -0.05 -0.03)( -0.01 0.05 0.03) //propeller
|
||||
(-0.10 -0.0749 -0.00499)(-0.050 0.0749 0.00499) //rudder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name box;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action new;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set box;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set propeller0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set hullBox0;
|
||||
}
|
||||
}
|
||||
{
|
||||
name keepBox; //all cells
|
||||
type cellSet;
|
||||
action add;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
set bgr0;
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
|
||||
|
||||
// /*--------------------------------*- C++ -*----------------------------------*\
|
||||
// | ========= | |
|
||||
// | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
// | \\ / O peration | Version: plus-overset |
|
||||
// | \\ / A nd | Web: www.OpenFOAM.com |
|
||||
// | \\/ M anipulation | |
|
||||
// \*---------------------------------------------------------------------------*/
|
||||
// FoamFile
|
||||
// {
|
||||
// version 2.0;
|
||||
// format ascii;
|
||||
// class dictionary;
|
||||
// object topoSetDict;
|
||||
// }
|
||||
// // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
//
|
||||
// actions
|
||||
// (
|
||||
// {
|
||||
// name rudder0; // all around bgr
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source zoneToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// name rudder;
|
||||
// //insidePoints ((-0.11 0.0 0.0));
|
||||
// }
|
||||
// }
|
||||
// {
|
||||
// name c0; //copy
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set rudder0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name c0; //all around hullBox0
|
||||
// type cellSet;
|
||||
// action invert;
|
||||
// }
|
||||
//
|
||||
// /*
|
||||
//
|
||||
// {
|
||||
// name c1;
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source regionsToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// insidePoints ((-0.01 0.0 0.0));
|
||||
// set c0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// {
|
||||
// name c1;
|
||||
// type cellSet;
|
||||
// action delete;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set c2;
|
||||
// }
|
||||
// }
|
||||
// */
|
||||
// // Select box to remove from region 1 and 2
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action new;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set c0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action add;
|
||||
// source cellToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// set rudder0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action subset;
|
||||
// source boxToCell;
|
||||
// sourceInfo
|
||||
// {
|
||||
// boxes
|
||||
// (
|
||||
// // (0 -0.1 -0.1)(0.5 0.1 0.1) //hullBox
|
||||
// // (-0.02 -0.05 -0.03)( -0.01 0.05 0.03) //propeller
|
||||
// (-0.10 -0.0749 -0.00499)(-0.050 0.0749 0.00499) //rudder
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// name box;
|
||||
// type cellSet;
|
||||
// action invert;
|
||||
// }
|
||||
// );
|
||||
//
|
||||
// // ************************************************************************* //
|
||||
Reference in New Issue
Block a user