|
[Sponsors] |
March 14, 2013, 09:42 |
No forces.dat file - any clues please?
|
#1 |
New Member
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13 |
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." |
|
March 15, 2013, 04:16 |
|
#2 |
Member
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13 |
have you fixed it? if not posting the control dict would be helpful
greetz Andy |
|
March 15, 2013, 09:25 |
|
#3 |
New Member
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13 |
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; } ); |
|
March 16, 2013, 09:39 |
|
#4 |
New Member
Steve
Join Date: Sep 2012
Location: Perth, Australia
Posts: 17
Rep Power: 13 |
Managed to fix it.
I had left out rhoName rhoInf; on the bottom of the file!! |
|
|
|
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 |