|
[Sponsors] |
December 1, 2019, 22:36 |
[Urgent] Keyword is undefined in dictionary
|
#1 |
New Member
Kelvin Au
Join Date: Nov 2019
Posts: 12
Rep Power: 7 |
Hello
I am new to use openfoam and I have the following problem would like to consult all. I would like to calculate and obtain forces acting on walls. I have added libforces.so in controlDict file. Here is the code of controlDict /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application interFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 2; deltaT 0.05; writeControl adjustableRunTime; writeInterval 0.05; purgeWrite 0; writeFormat binary; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; maxCo 1; maxAlphaCo 1; maxDeltaT 1; //For basic operation functions { force_lowerwall { // Mandatory entries type forces; libs ("libforces.so"); patches (lowerWall); } } // ************************************************** *********************** // And I have encountered the following problem: /*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 7-ca808c8420bf Exec : interFoam Date : Dec 02 2019 Time : 10:26:11 Host : "kelvin-VirtualBox" PID : 10643 I/O : uncollated Case : /home/kelvin/OpenFOAM/kelvin-7/run/damBreak4 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: No convergence criteria found PIMPLE: Operating solver in transient mode with 1 outer corrector PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Selecting laminar stress model Stokes Reading g Reading hRef Calculating field g.h No MRF models present No finite volume options present DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 0, global = 0, cumulative = 0 Courant Number mean: 0 max: 0 Starting time loop forces force_lowerwall: --> FOAM FATAL IO ERROR: keyword coordinateRotation is undefined in dictionary "/home/kelvin/OpenFOAM/kelvin-7/run/damBreak4/system/controlDict.functions.force_lowerwall" file: /home/kelvin/OpenFOAM/kelvin-7/run/damBreak4/system/controlDict.functions.force_lowerwall from line 61 to line 64. From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const in file db/dictionary/dictionary.C at line 708. Before this problem, I have encountered the same problem of keyword origin is undefined in dictionary. However, after I added origin (0 0 0), the problem remains. Can anyone help me to figure out the problem? Many Thanks Kelvin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 01:58 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |