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 prepared the analysis in CfdOF, pressed Analysis control --> Case setup --> Write and added this to functions in case/system/controlDict file:
Code: Select all
forces
{
type forces;
libs ("libforces.so");
patches
(
wall_001
);
CofR (0 0 0);
rho rhoInf;
log true;
rhoInf 1;
}
Code: Select all
File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\CfdConsoleProcess.py", line 98, in readStdout
new_text = self.stdoutHook(text)
File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\TaskPanelCfdSolverControl.py", line 290, in gotOutputLines
self.solver_runner.process_output(lines)
File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\CfdRunnableFoam.py", line 263, in process_output
f = self.forces[self.in_forces_section]
KeyError: 'forces'
I attached the .FCStd file below.
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Polish/Poland (pl_PL)