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

OpenForm fatal error:Could not find rho:rho in database

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2024, 22:19
Default OpenForm fatal error:Could not find rho:rho in database
  #1
New Member
 
lee
Join Date: Oct 2024
Location: Japan
Posts: 1
Rep Power: 0
klaus_ is on a distinguished road
Hi. I try to find coefficient of lift(Cl) and drag(Cd) of two-dimensional wing. I change the ControlDict as show below. but when I run the simulation always throws --> OpenFOAM fatal error: Could not find rho:rho in database
I have no idea where to put rho:rho

*--------------------------------*- C++ -*----------------------------------*\
| |
| Generated by the CfdOF workbench for FreeCAD |
| https://github.com/jaheyns/CfdOF |
| |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application simpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;
deltaT 1;

endTime 200;

writeControl timeStep;

writeInterval 100;

purgeWrite 0;

writeFormat ascii;

writePrecision 15;

runTimeModifiable true;

libs
(
// Needed for availability of porous baffle boundary in potentialFoam
#include "turbulenceLib"
);

functions
{ forceCoeffs
{
type forceCoeffs;

functionObjectLibs ("libforces.so");

outputControl timeStep;
outputInterval 1;

log yes;

patches (Cut);
PName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 1.225; // density of air
CofR (0 0 0); // center of the wing(set to origin)
liftDir (1 0 0);
dragDir (0 0 1);
pitchAxis (0 1 0); // asis of rotaion(z-direction)
magUInf 10; // flow velocity
lRef 1.0; // wing reoresentaive length
Aref 1.0; // wing representaive area
}

}
// ************************************************** *********************** //
klaus_ 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
Unable to find turbulence model in the database mitbakhai OpenFOAM Post-Processing 3 June 24, 2024 02:33
Foam fatal io error: cannot find file smd2312 OpenFOAM 2 January 15, 2024 12:20
Error when executing simpleFoam - FOAM FATAL ERROR:(openfoam-2206) cannot find file astri OpenFOAM Running, Solving & CFD 5 November 18, 2022 04:11
FOAM FATAL ERROR in Foam::findEtcFile() : could not find mandatory file makaveli_lcf OpenFOAM Running, Solving & CFD 15 November 18, 2015 20:00
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 14:32.