How Do I Compute Li and Drag?: Comsol Blog Comsol Blog

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Products Video Gallery Support Contact Request a Live Demo

COMSOL BLOG Menu

How Do I Compute Li and Drag?


Peter Lyu June 16, 2015

In fluid flow simulations, it is often important to evaluate the forces that the fluid exerts onto the body — for example, lift
and drag forces on an airfoil or a car. Engineers can use these body forces to quantify the efficiency and aerodynamic
performance of designs. Today, we will discuss different ways to compute lift and drag in COMSOL Multiphysics.

De ning Li and Drag


When fluid flow passes a body, it will exert a force on the surface. As shown in the figure below, the force component
that is perpendicular to the flow direction is called lift. The force component that is parallel to the flow direction is called
drag. For simplicity, let’s assume that the flow direction is aligned with the coordinate system of the model. Later on, we
will show you how to compute the lift and drag forces in a direction that is not aligned with the model coordinate
system.

converted by Web2PDFConvert.com
Schematic of lift and drag components when fluid flow passes a body.
There are two distinct contributors to lift and drag forces — pressure force and viscous force. The pressure force, often
referred to as pressure-gradient force, is the force due to the pressure difference across the surface. The viscous force is
the force due to friction that acts in the opposite direction of the flow. The magnitudes of pressure force and viscous
force can vary significantly, depending on the type of flow. The flow around a moving car, for instance, is often
dominated by the pressure force.

Compu ng Li and Drag Using Total Stress


COMSOL Multiphysics offers complete access to all of the internal variables and makes it very easy to compute surface
forces via integration on a boundary. Here, we will demonstrate how to compute the drag forces on an Ahmed body. You
can download this model from our Application Gallery.

Simulation of airflow over an Ahmed body. The surface plot shows the pressure distribution, and the streamlines are
colored by the velocity magnitude. The arrow surface behind the Ahmed body shows the circulation in the wake zone.
There are several ways to compute drag depending on the physics. The most straightforward way is to integrate the total
stress — which includes contributions from the pressure force and the viscous force — in each direction. To do so, we
first need to define a surface integration operator under the Derived Values node, as illustrated below.

TIP: Alternatively, you can also use a boundary probe or integration operator in the component coupling to define
such integration. The difference is that the operations defined in the physics setting can be used during the
simulation — for example, drag force computed with a boundary probe as an objective or a constraint in an
converted by Web2PDFConvert.com
simulation — for example, drag force computed with a boundary probe as an objective or a constraint in an
optimization study.

Next, we can select the boundaries to perform the integration. In this example, we chose all of the boundaries on the
body. Drag in this model is in the y-direction. We can type in the expression: spf.T_stressy , which represents the total
stress in the y-direction.

Compu ng Pressure Force and Viscous Force Separately


Sometimes, engineers can obtain greater insight into designs by examining the pressure force and viscous force
separately. COMSOL Multiphysics features a predefined variable, spf.K_stressy , for viscous stress in the y-direction. We
can readily evaluate the viscous force by integrating the viscous stress.
What about the pressure force? Pressure, denoted by the variable p , is a scalar. To project in the direction of drag, we
need to multiply pressure by the y-component of the normal vector on the surface, spf.nymesh . Therefore, we can
evaluate the pressure force by integrating spf.nymesh*p on the surface.
In some special turbulent flow cases where the wall function is used, it is more accurate to compute the viscous force
using the friction velocity, spf.u_tau . In COMSOL Multiphysics, the k-epsilon and k-omega turbulence models use the
wall function.

To learn more about turbulence models in COMSOL Multiphysics, read our blog post “Which Turbulence Model
Should I Choose for My CFD Application?“.

We can obtain the local shear stress at the wall by:

Therefore, the local shear stress in the y-direction is:

converted by Web2PDFConvert.com
where is the tangential velocity at the wall. We can further rewrite as , where is the tangential
dimensionless velocity.
Without going into too many details on derivation, we can translate the previous equations into COMSOL variables. We
can integrate the local wall shear stress in the direction of drag (the y-direction) with the following expression:
spf.rho*spf.u_tau*spf.u_tangy/spf.uPlus . In this expression, spf.rho is the density of the fluid, spf.u_tangy is the velocity in
the y-direction at the wall, and spf.uPlus is the tangential dimensionless velocity.
The table below summarizes the expressions used to compute each force.
Fluid Flow Without Wall Function Turbulent Flow with Wall Function
Pressure Force spf.nymesh*p spf.nymesh*p
Viscous Force -spf.K_stressy spf.rho*spf.u_tau*spf.u_tangy/spf.uPlus
Total Force -spf.T_stressy spf.nymesh*p +
spf.rho*spf.u_tau*spf.u_tangy/spf.uPlus

Note: In this example, the drag force is in the y-direction. You may need to change the projection direction based
on the orientation of your model.

Correc on for Angle of A ack


It is common that the geometry may not be aligned perfectly with the flow direction. The angle between the center
reference line of the geometry and the incoming flow is called angle of attack (often denoted by the Greek letter ). In
aerospace engineering, the angle of attack is frequently used as it is the angle between the chord line of the airfoil and
the free-stream direction. The following figure shows the relationship between lift, drag, and angle of attack on an airfoil.

Schematic illustrating lift, drag, and angle of attack on an airfoil.


Using a 2D NACA 0012 model, we will show you how to compute lift with an angle of attack correction. This model is
available for download in our Application Gallery.
There are two ways to change the angle of attack of the model. We can either rotate the geometry itself or we can keep
converted by Web2PDFConvert.com
There are two ways to change the angle of attack of the model. We can either rotate the geometry itself or we can keep
the geometry fixed but modify the flow direction at the inlet. Here, we will use the second approach. It is much simpler to
adjust the velocity field at the inlet boundary condition as we would not need to remesh the model for each angle of
attack. As shown in the figure below, the airfoil is fixed while the streamlines show the flow at an angle of attack due to
the adjusted inlet velocity direction.

Simulation of flow passing a NACA 0012 airfoil at a 14-degree angle of attack. The surface plot shows the velocity
magnitude along with the streamlines (shown in black).
This example uses the SST turbulence model, which does not use the wall function. Therefore, we will use total stress to
compute lift. At a zero angle of attack, the lift is simply -spf.T_stressy . If the angle of attack is nonzero, we can project
the force onto the direction of the lift using the following expression:
spf.T_stressx*sin(alpha*pi/180)-spf.T_stressy*cos(alpha*pi/180) . Here, alpha represents the angle of attack in degrees.

What About Li or Drag Coe cients?


You may also be interested in the nondimensionalized forms of lift and drag — the lift coefficient and the drag coefficient.
It is often easier to use the coefficients instead of the dimensional forces for the purpose of validating experimental data
or comparing different designs. The lift coefficient in 2D is defined as:

Since we have already calculated the dimensional lift, we can simply normalize the lift by the dynamic pressure and the
chord length. With the dimensionless lift coefficient, we can compare our simulation results with experimental data (Ref.
1).

Note: In 3D, the lift coefficient is nondimensionalized by area instead of length:

converted by Web2PDFConvert.com
Graph comparing simulation results and experimental data of the lift coefficient on a NACA 0012 airfoil at various angles
of attack.
As illustrated in the above graph, no discernible discrepancy between the computational and experimental results occurs
within the range of the angle of attack values used in this simulation. The experimental results continue toward a high
angle of attack regime where the airfoil stalls.

Concluding Remarks
In this blog post, we have explored ways to compute lift and drag on an Ahmed body and an NACA 0012 airfoil. We have
demonstrated how to compute pressure force and viscous force, while also examining the special case where a wall
function is used in the turbulence model.
Each of the approaches we have presented here are certainly not limited to these specific simulations. You can compute
the body forces on any boundaries or surfaces, thereby gaining insight into designs through multiphysics simulations.
With the Optimization Module, you can take this analysis one step further and optimize lift or drag.

References
1. C.L. Ladson, “Effects of Independent Variation of Mach and Reynolds Numbers on the Low-Speed Aerodynamic
Characteristics of the NACA 0012 Airfoil Section,” NASA TM 4074, 1988.

Categories
CFD Fluid

Post Tags
 Technical Content

Newer Post
App: Evaluating the Design of an Ion Implanter

converted by Web2PDFConvert.com
Older Post
Sweet Dreams with Diffusion Acoustics

Comments
Abimbola Ashaju June 23, 2015 3:09 am
when integrating your total stress, what factor do you consider in choosing either of volume, surface or line integral

Peter Lyu June 23, 2015 8:16 am


Hi Abimbola,
You would use line integration for 2D simulations and surface integration for 3D.
Peter

Sathish Sanjeevi October 25, 2016 9:19 am


Hi,
Could you also update, how to compute Torque acting on the particle?
Best Regards,
Sathish

Peter Lyu November 9, 2016 8:57 am


Hi Sathish,
Thank you for your comments. Computing torque on particles is quite specific and depends on the physics interface
used. Please contact us at [email protected] and we can assist you further.
Peter

mohamed fahmi arfaoui mohamed fahmi arfaoui January 26, 2017 4:45 am
Comment fait une simulation du profil aérodynamique NACA 0012 avec angle d’attaque variable pour comsol 4.2

Bridget Cunningham February 9, 2017 11:38 am


Hello,
Thank you for your comment.
For questions related to your modeling, please contact your local support team.
Online support center: https://www.comsol.com/support
Email: [email protected]
Best,
Bridget

Ignaas Jimidar June 20, 2017 8:14 am


Hello Peter,
Thanks for this nice description. However, I have one remaining question: are you calculating the viscous force and
total force of the fluid on the body or the other way around? Because in the summary table, you put a minus sign, and
this confuses me a bit…
Best,
Ignaas

Asutosh Prasad September 12, 2017 5:59 am


converted by Web2PDFConvert.com
Asutosh Prasad September 12, 2017 5:59 am
Dear Peter Lyu,
Thanks for providing the valuable information. However It’s quite confusing about the -ve sign in lift and drag
expressions. I was simulating incompressible laminar flow around a 3d model along Y-direction with “no slip
boundary” condition and calculating lift and drag with “spf.T_stressz”, “spf.T_stressy”. The derived results were in -ve
value.
Please let me know if I am following the correct procedures and expressions.
Thanks

Login below to leave a comment 

LOG INTO YOUR COMSOL ACCESS ACCOUNT

Email

Password

Remember me LOG IN

Forgot password?
Don't have an account? Sign up now

Contact Sales

Attend a Webinar

Product Information
Products
Specification Chart
CAD Specification Chart
COMSOL Server FAQ (PDF)
License Options
System Requirements
converted by Web2PDFConvert.com
System Requirements
License Options
Release Highlights 5.3
Release History

Examples and Galleries


Video Gallery
User Story Gallery
Application Gallery
Technical Papers and Presentations
Resources
COMSOL News Magazine
Multiphysics Simulation Magazine
Introduction to Application Builder (PDF)
Introduction to COMSOL Multiphysics (PDF)
COMSOL Server Manual (PDF)
Resource Gallery
Multiphysics Cyclopedia

Events
Web Workshops
Webinars
Training Courses
COMSOL Conference
COMSOL Days
Events Calendar

Support and Services


Support Center
My Support Cases
Knowledge Base
Product Download
Product Downloads

Community
COMSOL Blog
Discussion Forum
Application Exchange
COMSOL Access

Company
converted by Web2PDFConvert.com
Company
Contact Us
About
Press
Careers
Partners
Certified Consultants

 North America

Login
Privacy Policy Trademarks
© 2017 by COMSOL Inc. All rights reserved

converted by Web2PDFConvert.com

You might also like