|
[Sponsors] |
May 31, 2017, 12:40 |
Setting up functions for OF
|
#1 |
New Member
Joseph O'Neill
Join Date: May 2017
Posts: 5
Rep Power: 8 |
Hi all,
I am relatively new to OF (only been working with it about a month or so). I am trying to properly set up my controldict file so that I can get out lift, drag, and moment coefficients out of a flat plate simulation. Below is the set-up for how I've gone about putting in the functions. functions { forceCoeffs { type forceCoeffs; writeControl timeStep; writeInterval 10; libs ("libforces.so"); patches (fixedWall); rho rhoInf; rhoInf 1.225; log yes; dragDir (1 0 0); liftDir (0 0 1); magUInf 1.0; Aref 0.65; } } Whenever I try to run a simulation either through HELYX-OS or the OF terminal window, my controldict file revers back to simply having its base inclusions such as setting start and end times etc. Does anyone know why my controldict file would revert to its original state during a run? I know it's likely a simple question/simple answer kind of thing but any help at all would be much appreciated! Thanks, Joe |
|
May 31, 2017, 14:36 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Do I understand that right, your controlDict is changed by the simulation?!?
OF only reads that file and does not change it. The only reason I see is taht there is some kind of preprocessing active. Which solver do you use? Look after it with Code:
which <mysolver>
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wall functions - questions about implementation | AlmostSurelyRob | OpenFOAM Programming & Development | 44 | May 6, 2020 10:11 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 06:27 |
Enhanced wall treatment and Enhanced wall functions | Alina | FLUENT | 2 | January 3, 2012 18:48 |
Ultra high temperature? | bk | Siemens | 2 | July 19, 2005 00:01 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 04:41 |