mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: Cleaned some forceCoeffs usages
This commit is contained in:
@ -16,7 +16,7 @@ forces
|
|||||||
patches ("motorBike.*");
|
patches ("motorBike.*");
|
||||||
rho rhoInf; // Indicates incompressible
|
rho rhoInf; // Indicates incompressible
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Required when rho = rhoInf
|
||||||
liftDir (0 0 1);
|
liftDir (0 0 1);
|
||||||
dragDir (1 0 0);
|
dragDir (1 0 0);
|
||||||
CofR (0.72 0 0); // Axle midpoint on ground
|
CofR (0.72 0 0); // Axle midpoint on ground
|
||||||
|
|||||||
@ -19,7 +19,7 @@ forceCoeffs1
|
|||||||
|
|
||||||
patches (motorBikeGroup);
|
patches (motorBikeGroup);
|
||||||
rho rhoInf; // Indicates incompressible
|
rho rhoInf; // Indicates incompressible
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Required when rho = rhoInf
|
||||||
liftDir (0 0 1);
|
liftDir (0 0 1);
|
||||||
dragDir (1 0 0);
|
dragDir (1 0 0);
|
||||||
CofR (0.72 0 0); // Axle midpoint on ground
|
CofR (0.72 0 0); // Axle midpoint on ground
|
||||||
|
|||||||
@ -47,35 +47,7 @@ runTimeModifiable true;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
forceCoeffs1
|
#include "forceCoeffs"
|
||||||
{
|
|
||||||
type forceCoeffs;
|
|
||||||
libs ("libforces.so" );
|
|
||||||
writeControl writeTime;
|
|
||||||
writeFields true;
|
|
||||||
|
|
||||||
patches (body);
|
|
||||||
p p;
|
|
||||||
U U;
|
|
||||||
rho rhoInf; // Indicates incompressible
|
|
||||||
log true;
|
|
||||||
rhoInf 1; // Redundant for incompressible
|
|
||||||
liftDir (0 1 0);
|
|
||||||
dragDir (1 0 0);
|
|
||||||
CofR (3.5 0 0); // Axle midpoint on ground
|
|
||||||
pitchAxis (0 0 1);
|
|
||||||
magUInf 10;
|
|
||||||
lRef 4; // Wheelbase length
|
|
||||||
Aref 1; // Estimated
|
|
||||||
porosity on;
|
|
||||||
|
|
||||||
binData
|
|
||||||
{
|
|
||||||
nBin 20; // output data into 20 bins
|
|
||||||
direction (1 0 0); // bin direction
|
|
||||||
cumulative yes;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -18,14 +18,14 @@ forceCoeffs1
|
|||||||
U U;
|
U U;
|
||||||
rho rhoInf; // Indicates incompressible
|
rho rhoInf; // Indicates incompressible
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Required when rho = rhoInf
|
||||||
liftDir (0 1 0);
|
liftDir (0 1 0);
|
||||||
dragDir (1 0 0);
|
dragDir (1 0 0);
|
||||||
CofR (3.5 0 0); // Axle midpoint on ground
|
CofR (3.5 0 0); // Axle midpoint on ground
|
||||||
pitchAxis (0 0 1);
|
pitchAxis (0 0 1);
|
||||||
magUInf 10;
|
magUInf 10;
|
||||||
lRef 4; // Wheelbase length
|
lRef 4; // Wheelbase length
|
||||||
Aref 1; // Estimated
|
Aref 1; // Estimated
|
||||||
porosity on;
|
porosity on;
|
||||||
|
|
||||||
binData
|
binData
|
||||||
|
|||||||
Reference in New Issue
Block a user