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

No forces.dat file - any clues please?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2013, 10:42
Default No forces.dat file - any clues please?
  #1
New Member
 
steve
Join Date: Sep 2012
Posts: 15
Rep Power: 4
greenleader is on a distinguished road
Hi everyone,
I have searched the forum and found various useful posts on forces. I've put the necessary lines into the controlDict.
When I run simpleFoam, I don't get any errors or warnings, but there is no sign of the forces.dat file.
Can anyone give me some clues as to what I might be missing? or where I should look for it?

Thanks in advance

Correction!
I do get a warning that says:
"Could not find U,p or rho in database. De-activating forces."
greenleader is offline   Reply With Quote

Old   March 15, 2013, 05:16
Default
  #2
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 4
A.Wendy is on a distinguished road
have you fixed it? if not posting the control dict would be helpful

greetz

Andy
A.Wendy is offline   Reply With Quote

Old   March 15, 2013, 10:25
Default
  #3
New Member
 
steve
Join Date: Sep 2012
Posts: 15
Rep Power: 4
greenleader is on a distinguished road
Hi Andy, thanks for replying!
Here is my controlDict file - no have not managed to fix it yet!
Any pointers are appreciated!

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}

application     simpleFoam;
startFrom       latestTime;
startTime       0;
stopAt          endTime;
endTime         100;
deltaT          1;
writeControl    timeStep;
writeInterval   50;
purgeWrite      0;
writeFormat     ascii;
writePrecision  6;
writeCompression off;
timeFormat      general;
timePrecision   6;
runTimeModifiable true;

functions
(
    forces
    {
        type forces;
        functionObjectLibs ("libforces.so"); //Lib to load
        enabled    true;
        outputControl timeStep;
        outputInterval 1;
        patches (XXXX); // change to your patch name
        rhoInf 1.225; //Reference density for fluid
        CofR (-1.0 -6.35 0.5); //Origin for moment calculations
        log true;
        pName p;
        UName U;
    }
);
greenleader is offline   Reply With Quote

Old   March 16, 2013, 10:39
Default
  #4
New Member
 
steve
Join Date: Sep 2012
Posts: 15
Rep Power: 4
greenleader is on a distinguished road
Managed to fix it.
I had left out
rhoName rhoInf;

on the bottom of the file!!
greenleader is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam newbie29 OpenFOAM Installation 80 January 14, 2015 16:36
problem on installing swak4Foam navid2 OpenFOAM Installation 2 May 30, 2012 04:32
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 01:43.