Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
FLUENT Google Analytics
FLUENT Google Analytics
Include Page
User Defined Functions - Panel
User Defined Functions - Panel

Numerical Solution

A UDF is needed to calculate the lift force over the entire cylinder by integrating the pressure over cylinder segments set to "wall" or "velocity inlet". We cannot use the in-built lift calculator for this case because it does not consider segments set to "velocity inlet." Important point to keep in mind: The UDF only affects the post-processing of the lift coefficient. It does NOT change the base numerical solution. The strategy for computing the lift force using the UDF is as follows:

1. Turn on a 'user defined scaler' φ which Fluent will solve for
2. On the cylinder surface, set the below equation by implementing the UDF as a boundary condition for φ 

Latex
Wiki Markup
{include: FLUENT Google Analytics}
{include: User Defined Functions - Panel}

h1. Numerical Solution

The user defined function from the Pre-Analysis section defines the lift function in C and defines the pressure and centroid of each face, then calculates the quantity called liftFunc, defined as

{latex}\begin{eqnarray}
\phi = -psin(\theta)
\end{eqnarray}{latex}

Once the user defined function is implemented, we can use liftFunc to integrate the specified user defined scalar over the entire specified surface. Note that the liftFunc UDF calculates a side force that is NOT normalized. So you'll have to divide the reported value by 


3. Run at least one iteration to integrate φ over the cylinder surface

Note that the liftFunc UDF calculates a side force that is NOT normalized. So you'll have to divide the reported value by 0.5*rho*v^2*D*1

...

to

...

get

...

the

...

normalized

...

side

...

force.

...

This

...

is

...

because

...

when

...

you

...

integrate

...

liftFunc,

...

you

...

get

...

the

...

integral

...

of

...

-p*sin(theta)

...

on

...

the

...

chosen

...

surfaces.

...

User-defined

...

function

...

implementation

...

to

...

obtain

...

the

...

lift

...

coefficient

...

around

...

the

...

cylinder

...

is

...

as

...

follows.


HTML

\\
{html}<iframe width="600" height="338" src="https://www.youtube.com/embed/RZAvenIhH_s?list=UU8bXUXdcNDyFTIp6YVrtReg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>{html}
\\

[Go to Step 


Go to Step 6:

...

Numerical

...

Results
Go to all FLUENT Learning Modules