lump_a_charcoal wrote:
[marq=down]Really?[/marq]
[marq=right]It[/marq] [marq=up]can[/marq][marq=down] get [/marq][marq=right]confusing.[/marq][marq=up].[/marq][marq=down].[/marq][marq=right].[/marq]
do some real programing
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web:
http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 2000;
deltaT 1;
writeControl timeStep;
writeInterval 100;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression compressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
functions
(
wholeCar
{
type forces;
functionObjectLibs ("libforces.so");
patches ("CMT2010_.*");
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
shell
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_shell CMT2010_engineCover);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
sidepodR
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_sidepodR);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
sidepodL
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_sidepodL);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
radiator
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_radiator CMT2010_radiatorSurrounds);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
frontWheels
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_wheelFR CMT2010_wheelFL);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
rearWheels
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_wheelRR CMT2010_wheelRL);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
floor
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_floor);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
driver
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_driver);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
suspension
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_susFR CMT2010_susFL CMT2010_susRR CMT2010_susRL CMT2010_driveline);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
engine
{
type forces;
functionObjectLibs ("libforces.so");
patches (CMT2010_intake CMT2010_exhaust);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
outputControl timeStep;
outputInterval 100;
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
outputControl outputTime;
patches ("CMT2010_.*");
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.17; //Reference density for fluid - can be changed later ...
CofR ( 0.09049 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 20.0;
lRef 2.5;
Aref 1.3;
outputControl timeStep;
outputInterval 100;
} );
// ************************************************************************* //
sorry couldnt resist