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

No forces.dat file - any clues please?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2013, 09:42
Default No forces.dat file - any clues please?
  #1
New Member
 
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13
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, 04:16
Default
  #2
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
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, 09:25
Default
  #3
New Member
 
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13
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, 09:39
Default
  #4
New Member
 
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
[swak4Foam] problem on installing swak4Foam navid2 OpenFOAM Community Contributions 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] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 16:48.