From 8bf5d2747d23f068707b6a615c5d40145268abe4 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Tue, 16 Oct 2018 08:40:23 +0100 Subject: [PATCH] TUT: Cleaned some forceCoeffs usages --- .../motorBike/motorBike/system/forceCoeffs | 2 +- .../simpleFoam/motorBike/system/forceCoeffs | 2 +- .../simpleFoam/simpleCar/system/controlDict | 30 +------------------ .../simpleFoam/simpleCar/system/forceCoeffs | 6 ++-- 4 files changed, 6 insertions(+), 34 deletions(-) diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/system/forceCoeffs b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/system/forceCoeffs index 8a68e859ba..81bc31eac9 100644 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/system/forceCoeffs +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/system/forceCoeffs @@ -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 diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/forceCoeffs b/tutorials/incompressible/simpleFoam/motorBike/system/forceCoeffs index dfd434162a..07c4d05a04 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/system/forceCoeffs +++ b/tutorials/incompressible/simpleFoam/motorBike/system/forceCoeffs @@ -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 diff --git a/tutorials/incompressible/simpleFoam/simpleCar/system/controlDict b/tutorials/incompressible/simpleFoam/simpleCar/system/controlDict index fb08d1fcd6..fa96570544 100644 --- a/tutorials/incompressible/simpleFoam/simpleCar/system/controlDict +++ b/tutorials/incompressible/simpleFoam/simpleCar/system/controlDict @@ -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" } // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/simpleCar/system/forceCoeffs b/tutorials/incompressible/simpleFoam/simpleCar/system/forceCoeffs index b9839361aa..d5ff4d6697 100644 --- a/tutorials/incompressible/simpleFoam/simpleCar/system/forceCoeffs +++ b/tutorials/incompressible/simpleFoam/simpleCar/system/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