CFX Expression Language–Part 3: Applying Boundary Conditions Using CEL

Categories:

In two previous entries we introduced CFX Expression Language, CEL:

Part 1: Accessing CFD Simulation Information in CFX (and FLUENT)

Part 2: Augmenting Material Property Assignments in ANSYS CFX

In this third installment we will see how to use CEL to apply boundary conditions as equations rather than constant values. For example, if a non-constant velocity profile can be defined as an equation, we can use CEL to define as well as apply the profile.

Let’s look at an example in which the velocity profile is a function of y coordinate:

u(y) = 6 * Umax * y / H * (1 – y/H) (m/s)

Using the procedure we learned in part 1 of this series, in CFX Pre we have defined expressions for H and Umax. We then defined the equation for the velocity profile as Uprofile:

clip_image002

Next we go to the Plot tab within the Expressions editor to verify that our velocity profile matches expectations:

clip_image004

To use our new expression in CFX Pre, we just enter the expression name in the appropriate field when defining the inlet velocity:

clip_image006

Finally, this velocity plot from CFD Post shows that indeed our desired velocity profile was applied at the inlet.

clip_image008

Hopefully this demonstrates how easy it can be to use CFX Expressions to define non-constant boundary conditions. In the next part of the series, we will look at using expressions to ramp or step apply loads.

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

Share this post:

Upcoming Events

Jul 21
, 2026
Army FUZE xTech|Phantum Finals Event: Innovation Showcase
Jul 22
, 2026
Optics Valley July 2026 Member Meeting
Jul 29
, 2026
AZTC July after5 Tech Mixer
Jul 30
, 2026
AZ Tech Council Q3 VIP Tech Mixer
Aug 10
- Aug 11
, 2026
2026 CEO Leadership Retreat + Golf Tournament
Aug 20
, 2026
AZBio Spring Reception
Aug 23
- Aug 26
, 2026
Small Satellite Conference 2026
Aug 24
- Aug 27
, 2026
Nuclear Energy Conference & Expo - 2026
Sep 14
- Sep 19
, 2026
IMTS 2026
Oct 21
, 2026
2026 Southern Arizona Tech + Business Expo
Oct 28
, 2026
Nerdtoberfest 2026
Nov 18
, 2026
2026 Governor’s Celebration of Innovation

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: