mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -41,7 +41,7 @@ boundaryField
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"motorBike_.*"
|
||||
motorBikeGroup
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
|
||||
@ -41,7 +41,7 @@ boundaryField
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"motorBike_.*"
|
||||
motorBikeGroup
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
|
||||
@ -54,7 +54,7 @@ boundaryField
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
"motorBike_.*"
|
||||
motorBikeGroup
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value uniform 0;
|
||||
|
||||
@ -40,7 +40,7 @@ boundaryField
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"motorBike_.*"
|
||||
motorBikeGroup
|
||||
{
|
||||
type omegaWallFunction;
|
||||
value $internalField;
|
||||
|
||||
@ -41,7 +41,7 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
"motorBike_.*"
|
||||
motorBikeGroup
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
@ -3,8 +3,10 @@
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
# remove surface and features
|
||||
\rm -f constant/triSurface/motorBike.obj.gz
|
||||
\rm -rf constant/extendedFeatureEdgeMesh/
|
||||
\rm -f constant/triSurface/motorBike.eMesh
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
|
||||
|
||||
@ -1,52 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
5
|
||||
(
|
||||
frontAndBack
|
||||
{
|
||||
type patch;
|
||||
nFaces 320;
|
||||
startFace 3456;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 64;
|
||||
startFace 3776;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 64;
|
||||
startFace 3840;
|
||||
}
|
||||
lowerWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 160;
|
||||
startFace 3904;
|
||||
}
|
||||
upperWall
|
||||
{
|
||||
type patch;
|
||||
nFaces 160;
|
||||
startFace 4064;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -12,12 +12,11 @@ forceCoeffs1
|
||||
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
outputControl outputTime;
|
||||
|
||||
log yes;
|
||||
|
||||
patches ( "motorBike.*" );
|
||||
patches ( motorBikeGroup );
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf; // Indicates incompressible
|
||||
@ -31,6 +30,7 @@ forceCoeffs1
|
||||
lRef 1.42; // Wheelbase length
|
||||
Aref 0.75; // Estimated
|
||||
|
||||
/* - Uncomment to have forceCoeffs calculated in 20 bins
|
||||
binData
|
||||
{
|
||||
nBin 20; // output data into 20 bins
|
||||
@ -38,6 +38,7 @@ forceCoeffs1
|
||||
format gnuplot;
|
||||
cumulative yes;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@ ddtSchemes
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(U) cellLimited Gauss linear 1;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
|
||||
@ -20,7 +20,7 @@ solvers
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-7;
|
||||
relTol 0.1;
|
||||
relTol 0.01;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
|
||||
@ -92,7 +92,7 @@ castellatedMeshControls
|
||||
(
|
||||
{
|
||||
file "motorBike.eMesh";
|
||||
level 0;
|
||||
level 6;
|
||||
}
|
||||
);
|
||||
|
||||
@ -119,7 +119,7 @@ castellatedMeshControls
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (motorBike);
|
||||
inGroups (motorBikeGroup);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -180,10 +180,10 @@ snapControls
|
||||
//- Relative distance for points to be attracted by surface feature point
|
||||
// or edge. True distance is this factor times local
|
||||
// maximum edge length.
|
||||
tolerance 4.0;
|
||||
tolerance 2.0;
|
||||
|
||||
//- Number of mesh displacement relaxation iterations.
|
||||
nSolveIter 0;
|
||||
nSolveIter 30;
|
||||
|
||||
//- Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
@ -193,14 +193,14 @@ snapControls
|
||||
|
||||
//- Number of feature edge snapping iterations.
|
||||
// Leave out altogether to disable.
|
||||
nFeatureSnapIter 0;
|
||||
nFeatureSnapIter 10;
|
||||
|
||||
//- Detect (geometric only) features by sampling the surface
|
||||
// (default=false).
|
||||
implicitFeatureSnap false;
|
||||
|
||||
//- Use castellatedMeshControls::features (default = true)
|
||||
explicitFeatureSnap false;
|
||||
explicitFeatureSnap true;
|
||||
|
||||
//- Detect points on multiple surfaces (only for explicitFeatureSnap)
|
||||
multiRegionFeatureSnap false;
|
||||
|
||||
@ -16,7 +16,6 @@ near
|
||||
|
||||
// Output every
|
||||
outputControl outputTime;
|
||||
//outputInterval 1;
|
||||
|
||||
// Fields to be sampled. Per field original name and mapped field to
|
||||
// create.
|
||||
@ -27,7 +26,7 @@ near
|
||||
);
|
||||
|
||||
// Patches/groups to sample (regular expressions)
|
||||
patches (motorBike);
|
||||
patches (motorBikeGroup);
|
||||
|
||||
// Distance to sample
|
||||
distance 0.001;
|
||||
@ -42,7 +41,6 @@ wallBoundedStreamLines
|
||||
|
||||
// Output every
|
||||
outputControl outputTime;
|
||||
// outputInterval 10;
|
||||
|
||||
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
||||
|
||||
@ -87,7 +85,7 @@ wallBoundedStreamLines
|
||||
patchSeedCoeffs
|
||||
{
|
||||
type patchSeed;
|
||||
patches (motorBike);
|
||||
patches (motorBikeGroup);
|
||||
axis x; //distance;
|
||||
maxPoints 20000;
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ boundaryField
|
||||
walls
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value uniform 0;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,64 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
5
|
||||
(
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 28;
|
||||
startFace 4422;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 28;
|
||||
startFace 4450;
|
||||
}
|
||||
side1
|
||||
{
|
||||
type cyclicAMI;
|
||||
inGroups 1(cyclicAMI);
|
||||
nFaces 400;
|
||||
startFace 4478;
|
||||
matchTolerance 0.0001;
|
||||
transform rotational;
|
||||
neighbourPatch side2;
|
||||
rotationAxis (1 0 0);
|
||||
rotationCentre (0 0 0);
|
||||
}
|
||||
side2
|
||||
{
|
||||
type cyclicAMI;
|
||||
inGroups 1(cyclicAMI);
|
||||
nFaces 250;
|
||||
startFace 4878;
|
||||
matchTolerance 0.0001;
|
||||
transform rotational;
|
||||
neighbourPatch side1;
|
||||
rotationAxis (1 0 0);
|
||||
rotationCentre (0 0 0);
|
||||
}
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
nFaces 250;
|
||||
startFace 5128;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user