mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated motorBike tutorial to correspond to the training course
This commit is contained in:
@ -21,7 +21,7 @@ ls -d processor* | xargs -i rm -rf ./{}/0 $1
|
|||||||
ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1
|
ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1
|
||||||
|
|
||||||
runParallel patchSummary 6
|
runParallel patchSummary 6
|
||||||
runParallel potentialFoam 6 -noFunctionObjects -writep
|
runParallel potentialFoam 6 -noFunctionObjects
|
||||||
runParallel $(getApplication) 6
|
runParallel $(getApplication) 6
|
||||||
|
|
||||||
runApplication reconstructParMesh -constant
|
runApplication reconstructParMesh -constant
|
||||||
|
|||||||
@ -23,7 +23,7 @@ libs
|
|||||||
|
|
||||||
application simpleFoam;
|
application simpleFoam;
|
||||||
|
|
||||||
startFrom startTime; // latestTime;
|
startFrom latestTime;
|
||||||
|
|
||||||
startTime 0;
|
startTime 0;
|
||||||
|
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
forceCoeffs1
|
forceCoeffs1
|
||||||
{
|
{
|
||||||
// type forceCoeffs;
|
type forceCoeffs;
|
||||||
type forces;
|
|
||||||
|
|
||||||
functionObjectLibs ( "libforces.so" );
|
functionObjectLibs ( "libforces.so" );
|
||||||
|
|
||||||
@ -19,10 +18,7 @@ forceCoeffs1
|
|||||||
log yes;
|
log yes;
|
||||||
|
|
||||||
patches ( motorBikeGroup );
|
patches ( motorBikeGroup );
|
||||||
pName p;
|
|
||||||
UName U;
|
|
||||||
rhoName rhoInf; // Indicates incompressible
|
rhoName rhoInf; // Indicates incompressible
|
||||||
log true;
|
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Redundant for incompressible
|
||||||
liftDir (0 0 1);
|
liftDir (0 0 1);
|
||||||
dragDir (1 0 0);
|
dragDir (1 0 0);
|
||||||
@ -31,13 +27,14 @@ forceCoeffs1
|
|||||||
magUInf 20;
|
magUInf 20;
|
||||||
lRef 1.42; // Wheelbase length
|
lRef 1.42; // Wheelbase length
|
||||||
Aref 0.75; // Estimated
|
Aref 0.75; // Estimated
|
||||||
|
/*
|
||||||
binData
|
binData
|
||||||
{
|
{
|
||||||
nBin 20; // output data into 20 bins
|
nBin 20; // output data into 20 bins
|
||||||
direction (1 0 0); // bin direction
|
direction (1 0 0); // bin direction
|
||||||
cumulative yes;
|
cumulative yes;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -314,6 +314,8 @@ meshQualityControls
|
|||||||
// Write flags
|
// Write flags
|
||||||
writeFlags
|
writeFlags
|
||||||
(
|
(
|
||||||
|
scalarLevels
|
||||||
|
layerSets
|
||||||
layerFields // write volScalarField for layer coverage
|
layerFields // write volScalarField for layer coverage
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -50,8 +50,8 @@ streamLines
|
|||||||
axis x; //distance;
|
axis x; //distance;
|
||||||
|
|
||||||
// Note: tracks slightly offset so as not to be on a face
|
// Note: tracks slightly offset so as not to be on a face
|
||||||
start (-1.001 1e-7 0.0011);
|
start (-1.001 -0.05 0.0011);
|
||||||
end (-1.001 1e-7 1.0011);
|
end (-1.001 -0.05 1.0011);
|
||||||
nPoints 20;
|
nPoints 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user