{"id":4932,"date":"2021-12-03T15:39:54","date_gmt":"2021-12-03T04:39:54","guid":{"rendered":"https:\/\/www.computationalfluiddynamics.com.au\/?p=3760"},"modified":"2025-04-15T15:28:34","modified_gmt":"2025-04-15T04:28:34","slug":"how-to-use-expressions-in-ansys-fluent-and-convert-from-cel","status":"publish","type":"post","link":"https:\/\/www.leapaust.com.au\/blog\/cfd\/how-to-use-expressions-in-ansys-fluent-and-convert-from-cel\/","title":{"rendered":"How to Use Expressions in Ansys Fluent (and convert from CEL)"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4932\" class=\"elementor elementor-4932\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7df627d e-flex e-con-boxed e-con e-parent\" data-id=\"7df627d\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7882d03 elementor-widget elementor-widget-text-editor\" data-id=\"7882d03\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Wouldn\u2019t it make your life easier if every simulation domain had a known static boundary and cell zone settings? But we all know that the real world is rarely static, and as simulation engineers we are often faced with the challenge of prescribing variable boundary conditions or zone settings into our simulations. Ansys Fluent users can now benefit from developments allowing expressions to be written inside Fluent, rather than needing to write a UDF. UDFs were often challenging, even for experienced users, so the introduction of UI expressions in Fluent is an exciting and welcome development.<\/p><p>Fluent UI expressions involve declarative and interpreted language that enables Fluent users to enhance their simulations without the need to write, compile and load UDFs. Recently Prof. David Fletcher, Senior CFD Specialist at LEAP Australia presented a webinar on expressions in Fluent where he provided an in-depth overview of their capabilities and use cases and even explained the process to convert from CFX CEL to Fluent expressions.<\/p><p>In the first clip below Prof. Fletcher provides an overview of expressions in Fluent, explaining where and why you should use them before looking at the syntax and UI in detail.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c6ce0b2 elementor-widget elementor-widget-video\" data-id=\"c6ce0b2\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=KbyQmj8ss4E&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-224b4826 e-flex e-con-boxed e-con e-parent\" data-id=\"224b4826\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9de564c elementor-widget elementor-widget-text-editor\" data-id=\"9de564c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Prof. Fletcher then goes on to examine the functions, variables and scientific constants available within Fluent before providing an example of a Power Law Velocity Profile. Further explanation of using the Expression Manager interface is then provided before we are shown how the post processing of expressions works. Watch the clip below to learn more.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4a85ec5 elementor-widget elementor-widget-video\" data-id=\"4a85ec5\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=Z9mlRJkOFLU&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8bc76a2 elementor-widget elementor-widget-text-editor\" data-id=\"8bc76a2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The next clip contains a detailed example of using Fluent expressions to model a heat exchanger, including the variables and equations used, how to set up and check them in the expression editor, how to test the logic and how to plot and monitor the results.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a2c186e elementor-widget elementor-widget-video\" data-id=\"a2c186e\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=BIERlo87Qrw&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a55215a elementor-widget elementor-widget-text-editor\" data-id=\"a55215a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In the final clip, Prof. Fletcher demonstrates how to convert your existing CFX CEL into Fluent expressions, explaining why expressions in Fluent have considerable usability improvements over CFX, for example, allowing the use of vector operations, many more in-built functions and the power of Python on which the Fluent expression language is based. See the live demonstration in the clip below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9659bcd elementor-widget elementor-widget-video\" data-id=\"9659bcd\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=iuQMDKOwLQA&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6d0479e3 elementor-widget elementor-widget-text-editor\" data-id=\"6d0479e3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>We hope that you found this content informatiive and you now understand how utilising expressions within Fluent can improve your efficiency. If you would like assistance tio get started with using Fluent expressions please <a href=\"https:\/\/www.leapaust.com.au\/support\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"text-decoration: underline;\">contact our technical team at LEAP<\/span><\/a> &#8211; we are always happy to assist.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Summary of a recent webinar presented by Prof. David Fletcher on how to take advantage of the powerful python-based expression language now available in Ansys Fluent. Examples shown included the use of expressions starting from scratch, plus examples showing how to convert your existing CFX CEL into Fluent expressions. <\/p>\n","protected":false},"author":3,"featured_media":5510,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","footnotes":""},"categories":[323],"tags":[174,22,395,396,420,511],"class_list":["post-4932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cfd","tag-ansys-cfd","tag-cfd","tag-cfd-modelling-of-turbulent-flows","tag-cfd-simulation-accuracy","tag-expressions","tag-unsteady-flow-models"],"_links":{"self":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/comments?post=4932"}],"version-history":[{"count":4,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4932\/revisions"}],"predecessor-version":[{"id":5514,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4932\/revisions\/5514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media\/5510"}],"wp:attachment":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media?parent=4932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/categories?post=4932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/tags?post=4932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}