CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

how to sum force of the multi-element wing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 20, 2013, 06:20
Default how to sum force of the multi-element wing
  #1
Member
 
Join Date: May 2010
Posts: 51
Rep Power: 6
hewei is on a distinguished road
Hi everyone,

now I try to calculate the multi-element wing's force coefficient, there are one main wing and a flap , I use the function
functions

{ forces

{

type forceCoeffs;

functionObjectLibs ( "libforces.so" );

outputControl timeStep;

outputInterval 1;

patches

(
wing_main
wing_flap
);


rhoName rhoInf;

log true;

rhoInf 1;

CofR ( 0 0 0 );

liftDir (0 1 0 );

dragDir ( 1 0 0 );

pitchAxis ( 0 0 1 );

magUInf 10;

lRef 1.0;

Aref 1.0;
}

but the openfoam just output the last order patches value (here is flap), I can not get the total force acting on the wing. so anyone knows how to sum the force? thank you!
hewei is offline   Reply With Quote

Old   February 3, 2014, 18:38
Default
  #2
New Member
 
Andy Luo
Join Date: Jun 2012
Posts: 21
Rep Power: 4
DLuo is on a distinguished road
The ForceCoeffs library is a little weird when it comes to integrating on multiple BCs. I had success once when instead of using line breaks to delineate BCs, keep them on the same line and separate them by space. i.e.
patches ( wing_main wing_flap );

A better approach is to be clever about your naming convention. In this case it's fairly simple; both of your BCs start with "wing_", therefore you can wildcard out the latter part of the names and have it integrate on anything that starts with "wing_"
patches ( "wing_.*" );
The quotes are required for wildcards to work, and the .* is what initiates the wildcard.
This wildcard approach can also be used in setting up multiple BCs with similar names and similar Boundary conditions (e.g. fixed no-slip walls)
You can find an example for yourself in the tutorials. incompressible/simpleFoam/motorBike
DLuo is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 8 July 3, 2014 11:54
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 1 June 7, 2012 14:39
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


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