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

Trying to obtaining the surface forces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2022, 08:10
Default Trying to obtaining the surface forces
  #1
New Member
 
Join Date: Jun 2017
Posts: 12
Rep Power: 9
StudentIB is on a distinguished road
Hi,

I'm trying to obtain the output of forces (normal and tangential) for the whole surface of the object around which the flow occurs. I added this to functions in controlDict:

Code:
forces
    {
        type            forces;
        libs            ("libforces.so");
        patches
        (
            wall_001
        );
		CofR            (0 0 0);
		
		rho            rhoInf;

		log            true;

		rhoInf            1;

    }
The analysis finished successfully and I can open the results in ParaView but there are no variables associated with forces and I've noticed a long output with repeating errors:

Code:
File "...\CfdConsoleProcess.py", line 98, in readStdout
new_text = self.stdoutHook(text)
File "...\Solve\TaskPanelCfdSolverControl.py", line 290, in gotOutputLines
self.solver_runner.process_output(lines)
File "...\Solve\CfdRunnableFoam.py", line 263, in process_output
f = self.forces[self.in_forces_section]
KeyError: 'forces'
Do you know what can be wrong here? Do I need to include some additional libraries?
StudentIB 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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 19:05
OpenFOAM error Vinay Kumar V Main CFD Forum 0 February 20, 2020 10:17
separate positive and negative forces on surface xava Main CFD Forum 3 December 5, 2017 12:32
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
[waves2Foam] waveNGauges for extract surface elevation affected forces? hchen OpenFOAM Community Contributions 6 June 18, 2015 03:48


All times are GMT -4. The time now is 12:05.