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

Error when trying to compute forces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2024, 00:33
Default Error when trying to compute forces
  #1
New Member
 
Jahir Bahena
Join Date: Feb 2024
Location: Mexico
Posts: 7
Rep Power: 2
Jahir is on a distinguished road
Hello.


After some months of foaming I'm tying a very simple case of Poiseuille flow in steady state. I've build and run everything correctly but I can't get to run the case whenever I try to compute the force in the walls.


My controlDict is as follows:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ 
| =========                 |                                                 | 
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           | 
|  \\    /   O peration     | Version:  v2312                                 | 
|   \\  /    A nd           | Website:  www.openfoam.com                      | 
|    \\/     M anipulation  |                                                 | 
\*---------------------------------------------------------------------------*/ 
FoamFile 
{ 
    version     2.0; 
    format      ascii; 
    class       dictionary; 
    object      controlDict; 
} 
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 

application     simpleFoam; 

startFrom       startTime; 

startTime       0; 

stopAt          endTime; 

endTime         500; 

deltaT          1; 

writeControl    timeStep; 

writeInterval   100; 

purgeWrite      0; 

writeFormat     ascii; 

writePrecision  6; 

writeCompression off; 

timeFormat      general; 

timePrecision   6; 

runTimeModifiable true; 

functions 
{ 
        fuerzasParedes 
        { 
                type            forces; 
                libs            ("libforces.so"); 
                patches         (walls); 
                rho             rhoInf; 
                rhoInf          1; 
        } 
} 

// ************************************************************************* //
When I run simpleFoam, I get the following error:
Code:
/*---------------------------------------------------------------------------*\ 
| =========                 |                                                 | 
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           | 
|  \\    /   O peration     | Version:  2406                                  | 
|   \\  /    A nd           | Website:  www.openfoam.com                      | 
|    \\/     M anipulation  |                                                 | 
\*---------------------------------------------------------------------------*/ 
Build  : _be01ca78-20240625 OPENFOAM=2406 version=2406 
Arch   : "LSB;label=32;scalar=64" 
Exec   : simpleFoam 
Date   : Jul 30 2024 
Time   : 22:25:47 
Host   : jahir-g3-3579 
PID    : 135745 
I/O    : uncollated 
Case   : /home/jahir/OpenFOAM/jahir-v2406/run/flujoPoiseuille2D 
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 

Create mesh for time = 0 


SIMPLE: no convergence criteria found. Calculations will run for 200 steps. 

Reading field p 

Reading field U 

Reading/calculating face flux field phi 

Selecting incompressible transport model Newtonian 
Selecting turbulence model type laminar 
Selecting laminar stress model Stokes 
No MRF models present 

No finite volume options present 

Starting time loop 

forces fuerzasParedes: 
    rho: rhoInf 
    Freestream density (rhoInf) set to 1 
    Not including porosity effects 


--> FOAM FATAL IO ERROR: (openfoam-2406) 


file: system/controlDict/functions/fuerzasParedes at line 51 to 55. 

    From bool Foam::dictionary::readEntry(const Foam::word&, T&, Foam::keyType::option, Foam::IOobjectOption::readOption) const [with T =
 Foam::Vector<double>] 
    in file lnInclude/dictionaryTemplates.C at line 327. 

FOAM exiting
I've read about the forces function and I can't see the error. I guess it's something trivial, but I can't see it.


Btw, it's running on Ubuntu 24.04 inside distrobox (Endeavour OS).
Jahir is offline   Reply With Quote

Reply

Tags
forces, forces and moments, functions


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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 10:42
How to compute viscous forces in OpenLabs script FineUser Fidelity CFD 4 August 3, 2017 11:00
How does OpenFoam compute forces? demo OpenFOAM Post-Processing 0 August 5, 2016 07:03
Pressure and density values to compute forces fernexda OpenFOAM Post-Processing 2 March 6, 2015 03:39


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