|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5 ![]() |
Hey,
I am using openFoam-v2006 I am trying to simulate the https://holzmann-cfd.com/community/t.../suzannes-head for learning OpenFOAM. I followed the training videos and produced the geometry and files myself. When I ran the decomposePar command I got the following error Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _b45f8f6f58-20200629 OPENFOAM=2006 Arch : "LSB;label=32;scalar=64" Exec : decomposePar Date : Nov 14 2020 Time : 14:06:13 Host : LAPTOP-BKEON11O PID : 530 I/O : uncollated Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/susan nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Decomposing mesh region0 Create mesh Calculating distribution of cells Selecting decompositionMethod simple [4] Finished decomposition in 0.01 s Calculating original mesh data Distributing cells to processors Distributing faces to processors Distributing points to processors Constructing processor meshes --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 0 Number of cells = 6163 Number of faces shared with processor 1 = 455 Number of faces shared with processor 2 = 275 Number of processor patches = 2 Number of processor faces = 730 Number of boundary faces = 1356 --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 1 Number of cells = 6510 Number of faces shared with processor 0 = 455 Number of faces shared with processor 2 = 1 Number of faces shared with processor 3 = 275 Number of processor patches = 3 Number of processor faces = 731 Number of boundary faces = 1403 --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 2 Number of cells = 6510 Number of faces shared with processor 0 = 275 Number of faces shared with processor 1 = 1 Number of faces shared with processor 3 = 455 Number of processor patches = 3 Number of processor faces = 731 Number of boundary faces = 1403 --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 3 Number of cells = 6163 Number of faces shared with processor 1 = 275 Number of faces shared with processor 2 = 455 Number of processor patches = 2 Number of processor faces = 730 Number of boundary faces = 1356 Number of processor faces = 1461 Max number of cells = 6510 (2.7381% above average 6336.5) Max number of processor patches = 3 (20% above average 2.5) Max number of faces between processors = 731 (0.0684463% above average 730.5) Time = 0 Processor 0: field transfer --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 1: field transfer --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 2: field transfer --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals Processor 3: field transfer --> FOAM Warning : From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&) in file db/functionObjects/functionObjectList/functionObjectList.C at line 287 Cannot find functionObject file residuals End I did not understand the error and so I don't know what I am supposed to do ![]() Code:
#includeFunc residuals forces { type forceCoeffs; libs ("libforces.so"); writeControl adjustableRunTime; writeInterval 0.01; patches ( monkey monkeyBack ); log true; rho rhoInf; rhoInf 1; CofR (0 0 0); liftDir (0 0 1); dragDir (0 1 0); pitchAxis (1 0 0); magUInf 0.02; lRef 4*0.02562 / 0.804201; Aref 0.02562; Thank you in advance ![]() Kind regards vava10 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 20 ![]() |
As the errror message states it can't find a function object file residuals. Most OpenFOAM solvers or preprocessing tools can run functionObjects. These are always added in the controlDict.
Function objects can be specified in a long format, like the forces function object you have listed. Or like this Code:
#includeFunc residuals OpenFOAM-v2006/etc/caseDicts/postProcessing/ There are also examples in there on how to specify these in a longer format. The short answer is hence that residuals was renamed solverInfo as it's functionally was expanded. The residuals function object no longer exists. And hence the includeFunc command can't find it. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 ![]() ![]() |
The functionObject used to be called "residuals", but is now called "solverInfo" since it does more than just residuals. Change that and you should be good to go.
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 03:52 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 06:42 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |