


{"id":52647,"date":"2021-02-26T19:41:44","date_gmt":"2021-02-26T19:41:44","guid":{"rendered":"\/forum\/forums\/topic\/fluent-adaptation-with-named-expressions\/"},"modified":"2021-02-26T19:41:44","modified_gmt":"2021-02-26T19:41:44","slug":"fluent-adaptation-with-named-expressions","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/fluent-adaptation-with-named-expressions\/","title":{"rendered":"Fluent Adaptation with Named Expressions"},"content":{"rendered":"<p>Hello,nI have created an expression using the Named Expressions feature and I would like to adapt the grid based off this expression. Let&#8217;s say my expression p=AdaptionSpaceGradient(StaticPressure)*.01 and I would like to adapt the top 10% of cells that correspond to this expression, similar to what we do with Adapt-Cell Registers-Field Variables.nHowever, when I export this expression into the adapt dialog box, I getnExpected type is Bool, Expression type is Double.nI understand what this means but is there a way to go about adapting the expression based on the top 10% as mentioned earlier? Or has anyone been able to find a workaround for defining Named Expressions as Bools without using IF? Any help would be much appreciated.nnThanksn<\/p>\n","protected":false},"template":"","class_list":["post-52647","topic","type-topic","status-closed","hentry","topic-tag-ansys-fluent","topic-tag-fluent","topic-tag-gradient-adaption","topic-tag-mesh-adaption","topic-tag-named-expressions"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["24951"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["H??]"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["924"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["52647"],"_bbp_forum_id":["27792"],"_bbp_engagement":["184487","186624"],"_bbp_voice_count":["2"],"_bbp_reply_count":["4"],"_bbp_last_reply_id":["143989"],"_bbp_last_active_id":["143989"],"_bbp_last_active_time":["2021-02-26 21:30:40"]},"test":"arjunv"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/52647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/52647\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=52647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}