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.*");
|
||||
rho rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
rhoInf 1; // Required when rho = rhoInf
|
||||
liftDir (0 0 1);
|
||||
dragDir (1 0 0);
|
||||
CofR (0.72 0 0); // Axle midpoint on ground
|
||||
|
||||
@ -19,7 +19,7 @@ forceCoeffs1
|
||||
|
||||
patches (motorBikeGroup);
|
||||
rho rhoInf; // Indicates incompressible
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
rhoInf 1; // Required when rho = rhoInf
|
||||
liftDir (0 0 1);
|
||||
dragDir (1 0 0);
|
||||
CofR (0.72 0 0); // Axle midpoint on ground
|
||||
|
||||
@ -47,35 +47,7 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
forceCoeffs1
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
#include "forceCoeffs"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,14 +18,14 @@ forceCoeffs1
|
||||
U U;
|
||||
rho rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
rhoInf 1; // Required when rho = rhoInf
|
||||
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
|
||||
lRef 4; // Wheelbase length
|
||||
Aref 1; // Estimated
|
||||
porosity on;
|
||||
|
||||
binData
|
||||
|
||||
Reference in New Issue
Block a user