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

problem with plotting both forces and coeff

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2016, 18:04
Default problem with plotting both forces and coeff
  #1
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
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?
giammy92 is offline   Reply With Quote

Old   March 22, 2016, 11:59
Default
  #2
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
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?
giammy92 is offline   Reply With Quote

Old   March 23, 2016, 05:25
Default
  #3
Senior Member
 
JNSN's Avatar
 
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20
JNSN is on a distinguished road
names for both function objects in your controlDict are the same. Change one of them and it should work.

Best regards,
Jan
JNSN 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



All times are GMT -4. The time now is 04:22.