StudentIB |
June 30, 2022 07:10 |
Trying to obtaining the surface forces
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?
|