From c809c1d5bda72da0526008b6da63c198dd8403e0 Mon Sep 17 00:00:00 2001
From: mattijs <m.janssens@opencfd.co.uk>
Date: Wed, 6 Aug 2008 16:14:05 +0100
Subject: [PATCH] adding coefficient logging

---
 .../nacaAirfoil/system/controlDict            | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/tutorials/sonicTurbFoam/nacaAirfoil/system/controlDict b/tutorials/sonicTurbFoam/nacaAirfoil/system/controlDict
index 31559931cf1..633ee17026f 100644
--- a/tutorials/sonicTurbFoam/nacaAirfoil/system/controlDict
+++ b/tutorials/sonicTurbFoam/nacaAirfoil/system/controlDict
@@ -44,4 +44,60 @@ timePrecision   6;
 
 runTimeModifiable yes;
 
+functions
+(
+    //forces
+    //{
+    //    type                forces;
+    //    functionObjectLibs  ("libforces.so");
+    //
+    //    // Patches to sample
+    //    patches (WALL10);
+    //    // Name of fields
+    //    pName   p;
+    //    Uname   U;
+    //    // Dump to file
+    //    log true;
+    //    // Density
+    //    rhoInf  1;
+    //    // Centre of rotation
+    //    CofR    (0 0 0);
+    //}
+
+    forces
+    {
+        type                forceCoeffs;
+        functionObjectLibs  ("libforces.so");
+
+        // Patches to sample
+        patches (WALL10);
+        // Name of fields
+        pName   p;
+        Uname   U;
+        // Dump to file
+        log true;
+        // Density
+        rhoInf  1;
+        // Centre of rotation
+        CofR    (0 0 0);
+
+        // Direction for lift
+        liftDir     (-0.239733 0.970839 0);
+        // Direction for drag
+        dragDir     ( 0.970839 0.239733 0);
+
+        // Pitching axis
+        pitchAxis   (0 0 1);
+
+        magUInf     618.022;
+
+        lRef        1.0;      
+        Aref        1.0;
+    }
+
+
+);
+
+
+
 // ************************************************************************* //
-- 
GitLab