Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c03c6bde
Commit
c03c6bde
authored
Dec 20, 2018
by
Andrew Heather
Browse files
TUT: Corrections
parent
9f970846
Changes
15
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/system/decomposeParDict
View file @
c03c6bde
...
...
@@ -15,13 +15,13 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains
8
;
numberOfSubdomains
16
;
method simple;
simpleCoeffs
{
n (
2
2 2);
n (
4
2 2);
}
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/0.orig/U
View file @
c03c6bde
...
...
@@ -45,6 +45,7 @@ boundaryField
"overset.*"
{
type overset;
patchType overset;
value uniform (0 0 0);
}
}
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/0.orig/p_rgh
View file @
c03c6bde
...
...
@@ -42,12 +42,7 @@ boundaryField
{
type fixedFluxPressure;
}
//
// right1
// {
// type fixedValue; //calculated;
// value $internalField;
// }
"overset.*"
{
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/Allrun.pre
View file @
c03c6bde
...
...
@@ -12,12 +12,6 @@ runApplication -s 1 refineMesh -overwrite -dict system/refineMeshDict.2
runApplication
-s
2 topoSet
-dict
system/topoSetDictRefine
runApplication
-s
2 refineMesh
-overwrite
-dict
system/refineMeshDict.2
runApplication
-s
0 topoSet
-dict
system/topoSetDictRefine.2
runApplication
-s
0 refineMesh
-overwrite
-dict
system/refineMeshDict.2
runApplication
-s
6 topoSet
-dict
system/topoSetDictRefine.2
runApplication
-s
6 refineMesh
-overwrite
-dict
system/refineMeshDict.2
runApplication
-s
7 topoSet
-dict
system/topoSetDictRefine.3
runApplication
-s
7 refineMesh
-overwrite
-dict
system/refineMeshDict.2
...
...
@@ -25,16 +19,16 @@ runApplication -s 8 topoSet -dict system/topoSetDictRefine.4
runApplication
-s
8 refineMesh
-overwrite
-dict
system/refineMeshDict.2
# Select cellSets
runApplication
-s
3
topoSet
-dict
system/topoSetDictHull
runApplication
-s
3
subsetMesh keepBox
-patch
hullWall
-overwrite
runApplication
-s
hull
topoSet
-dict
system/topoSetDictHull
runApplication
-s
hull
subsetMesh keepBox
-patch
hullWall
-overwrite
# Select cellSets
runApplication
-s
4
topoSet
-dict
system/topoSetDictPropeller
runApplication
-s
4
subsetMesh keepBox
-patch
propellerWall
-overwrite
runApplication
-s
propeller
topoSet
-dict
system/topoSetDictPropeller
runApplication
-s
propeller
subsetMesh keepBox
-patch
propellerWall
-overwrite
# Select cellSets
runApplication
-s
5
topoSet
-dict
system/topoSetDictRudder
runApplication
-s
5
subsetMesh keepBox
-patch
rudderWall
-overwrite
runApplication
-s
rudder
topoSet
-dict
system/topoSetDictRudder
runApplication
-s
rudder
subsetMesh keepBox
-patch
rudderWall
-overwrite
restore0Dir
...
...
@@ -42,6 +36,6 @@ restore0Dir
runApplication
-s
1 setFields
-dict
system/setFieldsDict
runApplication
-s
2 setFields
-dict
system/setFieldsDictWaterLevel
touch
rbm
.foam
touch
boatAndPropeller
.foam
#------------------------------------------------------------------------------
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/constant/dynamicMeshDict
View file @
c03c6bde
...
...
@@ -32,10 +32,10 @@ motionSolver rigidBodyMotion;
//beta 0.1; // Position integration coefficient
}
accelerationRelaxation 0.
9
;
accelerationRelaxation 0.
4
;
//- prescribedRotation requires some sub-iterations to converge faster
// to desired value.
// to desired value
of omega
.
nIter 3;
bodies
...
...
@@ -45,28 +45,32 @@ motionSolver rigidBodyMotion;
type rigidBody;
parent root;
//
Cuboid mass -- very simple setup. For more complicated shapes
// see utility surfaceInertia
mass 9;
rho
1
;
inertia
(0.0
5
0 0 0.0
5
0 0.05);
centreOfMass (0.2
1
-0.07 0); // relative to the centreOfMass
//
To get Tensor of Inertia (symmetrical) use surfaceInertia
// here hull is empty shell
mass
0.552
;
inertia
(0.0
033
0 0 0.0
1
0 0.0
09
5);
centreOfMass (0.2
857
-0.07 0); // relative to the centreOfMass
// of parent body
// (here root = global coord system)
// Transformation tensor and centre of rotation
transform (1 0 0 0 1 0 0 0 1) (0.2
1 0
0);
// Transformation tensor and centre of rotation
(CoR)
transform (1 0 0 0 1 0 0 0 1) (0.2
857 -0.07
0);
joint
{
// These constrains are applied only to body hull,
// other bodies need to have their own set
// Constraints used for faster run
type composite;
joints
(
{
type Px
yz
; // Allow
movement in any direction
type Px; // Allow
translation in X -
}
{
type R
xyz
; // Allow rotation along
any
axis
type R
y
; // Allow rotation along
Y
axis
// (local - body CS)
}
);
...
...
@@ -84,11 +88,11 @@ motionSolver rigidBodyMotion;
type rigidBody;
parent hull;
centreOfMass (-0.2
2
8 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.2
28 0
0);
centreOfMass (-0.28
47
0.0
3
0);
// Relative to parent CoM
mass
0.0288
;
inertia
(7.6e-6 0 0 4.2e-6 0 4.2e-6)
;
// transform and CoR - relative to parent CoR
transform (1 0 0 0 1 0 0 0 1) (-0.2
757 0.03
0);
patches (propellerWall);
innerDistance 100;
outerDistance 200;
...
...
@@ -101,12 +105,12 @@ motionSolver rigidBodyMotion;
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);
parent hull;
centreOfMass (-0.
3602 -0.0055
0);
mass
0.0746
;
inertia
(3.3e-5 0 0 4.7e-6 0 3.4e-5)
;
// transform and CoR - relative to parent CoR
transform (1 0 0 0 1 0 0 0 1) (-0.
3487 -0.04
0);
patches (rudderWall);
innerDistance 100;
outerDistance 200;
...
...
@@ -114,11 +118,12 @@ motionSolver rigidBodyMotion;
{
type Ry;
}
}
}
//end rudder
}
restraints
{
rudderRotation
{
type prescribedRotation;
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/constant/g
View file @
c03c6bde
...
...
@@ -15,6 +15,6 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 -9 0);//( 0 -9.81 0 );
value (0 -9
.81
0);//( 0 -9.81 0 );
// ************************************************************************* //
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/constant/turbulenceProperties
View file @
c03c6bde
...
...
@@ -14,6 +14,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType
laminar
;
simulationType
RAS
;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/blockMeshDict
View file @
c03c6bde
...
...
@@ -19,49 +19,50 @@ scale 1;
vertices
(
// backgroundMesh
( -
1.0
0 -
1
-
1
) // 0
( 1.00 -
1
-
1
)
( 1.00
1.0 -1
)
( -
1.0
0
1.0 -1
)
( -
1.0
0 -
1
1
) // 4
( 1.00 -
1
1
)
( 1.00
1.0 1
)
( -
1.0
0
1.0 1
)
( -
0.5
0 -
0.5
-
0.7
) // 0
( 1.00 -
0.5
-
0.7
)
( 1.00
0.5 -0.7
)
( -
0.5
0
0.5 -0.7
)
( -
0.5
0 -
0.5
0.7
) // 4
( 1.00 -
0.5
0.7
)
( 1.00
0.5 0.7
)
( -
0.5
0
0.5 0.7
)
// hullBox
( 0.04 -0.
20
-0.
2
) // 8
( 0.
8
0 -0.
20
-0.
2
)
( 0.
8
0 0.
2
0 -0.
2
) // 10
( 0.04 0.
2
0 -0.
2
)
( 0.04 -0.
20
0.
2
) // 12
( 0.
8
0 -0.
20
0.
2
)
( 0.
8
0 0.
2
0 0.
2
) // 14
( 0.04 0.
2
0 0.
2
)
( 0.04
5
-0.
14
-0.
15
) // 8
( 0.
6
0 -0.
14
-0.
15
)
( 0.
6
0 0.
1
0 -0.
15
) // 10
( 0.04
5
0.
1
0 -0.
15
)
( 0.04
5
-0.
14
0.
15
) // 12
( 0.
6
0 -0.
14
0.
15
)
( 0.
6
0 0.
1
0 0.
15
) // 14
( 0.04
5
0.
1
0 0.
15
)
// propeller
( -0.0
3
-0.08 -0.0
8
) // 16
( 0.04 -0.08 -0.0
8
)
( 0.04 0.0
8
-0.0
8
) // 18
( -0.0
3
0.0
8
-0.0
8
)
( -0.0
3
-0.08 0.0
8
) // 20
( 0.04 -0.08 0.0
8
)
( 0.04 0.0
8
0.0
8
) // 22
( -0.0
3
0.0
8
0.0
8
)
( -0.0
2
-0.08 -0.0
4
) // 16
( 0.04 -0.08 -0.0
4
)
( 0.04 0.0
0
-0.0
4
) // 18
( -0.0
2
0.0
0
-0.0
4
)
( -0.0
2
-0.08 0.0
4
) // 20
( 0.04 -0.08
0.0
4
)
( 0.04 0.0
0
0.0
4
) // 22
( -0.0
2
0.0
0
0.0
4
)
// rudder
( -0.1
5
-0.1
-0.0
5
) // 24
( -0.04 -0.1
-0.0
5
)
( -0.04 0.
1
-0.0
5
) // 26
( -0.1
5
0.
1
-0.0
5
)
( -0.1
5
-0.1
0.0
5
) // 28
( -0.04 -0.1 0.0
5
)
( -0.04 0.
1
0.0
5
) // 30
( -0.1
5
0.
1
0.0
5
)
( -0.1
0
-0.1
4
-0.0
2
) // 24
( -0.04
-0.1
4
-0.0
2
)
( -0.04
-
0.
02
-0.0
2
) // 26
( -0.1
0
-
0.
02
-0.0
2
)
( -0.1
0
-0.1
4
0.0
2
) // 28
( -0.04
-0.1
4
0.0
2
)
( -0.04
-
0.
02
0.0
2
) // 30
( -0.1
0
-
0.
02
0.0
2
)
);
blocks
(
hex (0 1 2 3 4 5 6 7) background (80 80 80) simpleGrading (1 1 1)
// hex (0 1 2 3 4 5 6 7) background (60 40 56) simpleGrading (1 1 1) // coarser mesh cell size 0.025 m
hex (0 1 2 3 4 5 6 7) background (75 50 70) simpleGrading (1 1 1) // cell size 0.02 m
hex (8 9 10 11 12 13 14 15) hullBox (32 16 16) simpleGrading (1 1 1)
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/controlDict
View file @
c03c6bde
...
...
@@ -19,13 +19,13 @@ libs ("liboverset.so" "librigidBodyDynamics.so");
application overInterDyMFoam;
startFrom
lates
tTime;
startFrom
star
tTime;
startTime 0;
stopAt endTime;
endTime 5;
endTime
1.
5;
deltaT 0.001;
...
...
@@ -49,10 +49,20 @@ runTimeModifiable true;
adjustTimeStep yes;
//maxCo 1;
maxCo 4.0;
maxAlphaCo 5.0;
maxDeltaT 1;
functions
{
minMax
{
type fieldMinMax;
libs ("libfieldFunctionObjects.so");
fields (U);
}
}
// ************************************************************************* //
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/fvSchemes
View file @
c03c6bde
...
...
@@ -39,7 +39,7 @@ divSchemes
laplacianSchemes
{
default Gauss linear uncorrected;
default Gauss linear uncorrected;
//uncorrected;
}
interpolationSchemes
...
...
@@ -49,12 +49,12 @@ interpolationSchemes
snGradSchemes
{
default uncorrected;
default uncorrected;
//uncorrected;
}
oversetInterpolation
{
method inverseDistance;
//cellVolumeWeight;
method inverseDistance;
}
oversetInterpolationSuppressed
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/fvSolution
View file @
c03c6bde
...
...
@@ -83,7 +83,7 @@ solvers
PIMPLE
{
momentumPredictor
yes
;
momentumPredictor
no
;
nOuterCorrectors 2;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
...
...
@@ -93,7 +93,7 @@ PIMPLE
massFluxInterpolation no;
moveMeshOuterCorrectors no;
turbOnFinalIterOnly
no
;
turbOnFinalIterOnly
yes
;
oversetAdjustPhi no;
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/topoSetDictHull
View file @
c03c6bde
...
...
@@ -60,7 +60,7 @@ actions
source boxToCell;
boxes
(
(0.
07
-0.082 -0.1)(0.52 0.052 0.1) //hullBox
(0.
12
-0.082 -0.1)(0.52 0.052 0.1) //hullBox
);
}
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/topoSetDictPropeller
View file @
c03c6bde
...
...
@@ -61,7 +61,7 @@ actions
source boxToCell;
boxes
(
(
-
0.0 -0.0
499
-0.0
4
99)( 0.0
2
0.0
4
99 0.0
4
99) //propeller
(0.0
05
-0.0
61
-0.0
1
99)( 0.0
18 -
0.0
1
99 0.0
1
99) //propeller
);
}
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/topoSetDictRefine
View file @
c03c6bde
...
...
@@ -30,7 +30,7 @@ actions
source boxToCell;
boxes
(
(-0.2 -0.2 -0.2)(0.0
5
0.2 0.2) //hullBox
(-0.2 -0.2 -0.2)(0.0
4
0.2 0.2) //hullBox
);
}
);
...
...
tutorials/multiphase/overInterDyMFoam/boatAndPropeller/system/topoSetDictRudder
View file @
c03c6bde
...
...
@@ -61,7 +61,7 @@ actions
source boxToCell;
boxes
(
(-0.
12
-0.
0749
-0.00499)(-0.0
70 0.0749
0.00499) //rudder
(-0.
09
-0.
12
-0.00499)(-0.0
59 -0.03
0.00499) //rudder
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment