CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Setting up functions for OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2017, 12:40
Default Setting up functions for OF
  #1
New Member
 
Joseph O'Neill
Join Date: May 2017
Posts: 5
Rep Power: 8
joneill053 is on a distinguished road
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
joneill053 is offline   Reply With Quote

Old   May 31, 2017, 14:36
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
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>
and look wheter you call the real solver or some kind of script.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:54.