|
[Sponsors] |
Forces not calculated when including a library in controlDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 12, 2011, 07:49 |
Forces not calculated when including a library in controlDict
|
#1 |
Member
Join Date: Nov 2009
Posts: 56
Rep Power: 17 |
Hello,
The forces are not calculated when I include my own library in the controlDict. It seems like that nothing is run in the controlDict after I include the library. Here is my controlDict: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.3 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // applicationClass turbDyMFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 1.0000; deltaT 0.005; writeControl adjustableRunTime; writeInterval 0.02; cycleWrite 0; writeFormat ascii; writePrecision 7; writeCompression uncompressed; timeFormat general; timePrecision 7; runTimeModifiable yes; adjustTimeStep yes; maxCo 0.5; maxDeltaT 1.0; libs ("libmydynamicFvMesh.so") functions ( forces { type forces; functionObjectLibs ("libforces.so"); outputControl outputTime; // Patches to sample patches (blade); // Name of fields pName p; Uname U; // Dump to file log true; // Density rhoName rhoInf; rhoInf 1000; //Reference density for fluid // Centre of rotation CofR (0 0 0.3); } ); Thank you. |
|
May 12, 2011, 12:56 |
|
#2 |
Member
Join Date: Nov 2009
Posts: 56
Rep Power: 17 |
This is rather urgent and I would be very grateful if someone had any ideas or comments.
I need the forces calculations since I want to calculate a moment on a patch. |
|
May 13, 2011, 08:25 |
|
#3 | |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Try this, it works for me:
Quote:
Andrea
__________________
Andrea Pasquali |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading forces from previous time step within solver | SD@TUB | OpenFOAM Programming & Development | 5 | April 24, 2023 12:51 |
controlDict 'forces' function: multiple output files? | lordvon | OpenFOAM | 0 | January 10, 2011 17:22 |
Forces calulated through pressure | LVDH | OpenFOAM Post-Processing | 2 | February 26, 2010 04:15 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |
Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 15:09 |