|
[Sponsors] |
March 21, 2016, 18:04 |
problem with plotting both forces and coeff
|
#1 |
Senior Member
Join Date: Mar 2016
Posts: 133
Rep Power: 10 |
Hi guys, i can't plot both forces and force coefficients togheter with gnuplot but one for time. When i include only the function object of forces in system directory i can plot forces with gnuplot but if i add the function object of force coefficients, in directory postprocessing i find only force coeff and i can plot only those. What was i wrong?
|
|
March 22, 2016, 11:59 |
|
#2 |
Senior Member
Join Date: Mar 2016
Posts: 133
Rep Power: 10 |
In controldict i have addes this:
functions { #include "forces" #include "readFields" #include "forces_coeff" } And I have defined those funcions object: forces { type forces; functionObjectLibs ( "libforces.so" ); outputControl timeStep; timeInterval 1; log yes; patches ( "TRAILING_EDGE.*" "SUCTION_SIDE.*" "PRESSURE_SIDE.*" ); pName p; UName U; rhoName rhoInf; // Indicates incompressible log true; rhoInf 1; // Redundant for incompressible CofR (0 0 0); // Rotation around centre line of propeller pitchAxis (0 0 1); } forces { type forceCoeffs; functionObjectLibs ( "libforces.so" ); outputControl timeStep; timeInterval 1; log yes; patches ( "TRAILING_EDGE" "SUCTION_SIDE" "PRESSURE_SIDE" ); pName p; UName U; rhoName rhoInf; rhoInf 1; log true; CofR (0 0 0); liftDir (-0.1736 0.9848 0); dragDir (0.9848 0.1736 0); pitchAxis (0 0 1); magUInf 25.75; lRef 0.5459; Aref 0.5459; } And also readfields: readFields { // Where to load it from (if not already in solver) functionObjectLibs ("libfieldFunctionObjects.so"); type readFields; fields (p U k omega); } Do you individuate any errors which impede contemporary writing of both forces and forces coeff in postprocessing? |
|
March 23, 2016, 05:25 |
|
#3 |
Senior Member
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 143
Rep Power: 20 |
names for both function objects in your controlDict are the same. Change one of them and it should work.
Best regards, Jan |
|
|
|