{"id":164626,"date":"2023-03-17T08:58:13","date_gmt":"2023-03-17T08:58:13","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-create-a-volume-location-in-cfd-post-based-on-coordinates\/"},"modified":"2023-07-31T12:25:56","modified_gmt":"2023-07-31T12:25:56","slug":"how-to-create-a-volume-location-in-cfd-post-based-on-coordinates","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-create-a-volume-location-in-cfd-post-based-on-coordinates\/","title":{"rendered":"How to create a volume location in CFD Post based on coordinates"},"content":{"rendered":"<p>In order to define a volume location in CFD Post, one can use expression-based variables. There are two procedures:  1a) define an expression which has the value of 1 in the region to be defined as volume location, and value of 0 anywhere else For instance, expression which has a value of 1 in the region 0.25m < z < 0.75m and -0.025m < x < 0.025 can be defined as:  step((Z-0.25[m])\/(1[m])) * step((0.75[m]-Z)\/(1[m])) * step((X+0.025[m])\/(1[m])) * step((0.025[m]-X)\/(1[m]))  The function step(x) returns 1 when the x is positive, otherwise 0.  1b) define an expression based on the if function:  if(Z<0.75 [m] &#038;&#038; Z>0.25 [m] &#038;&#038;X<0.25 [m] &#038;&#038; X>-0.25 [m],1,0)  2. define a new variable, select &#8220;Expression&#8221; as &#8220;Method&#8221; and choose the expression defined in step 1.  3. Insert -> Location -> Volume; select &#8220;Isovolume&#8221; as Method; Variable -> select the variable defined in step 2; Value = 1  Keywords: CFD Post, Volume, Iso-Volume, coordinates<\/p>\n","protected":false},"template":"","class_list":["post-164626","topic","type-topic","status-publish","hentry","topic-tag-2019-r1","topic-tag-cfd-post","topic-tag-fluid-dynamics","topic-tag-general"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3-15-2023  20:20:13"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["1728"],"siebel_km_number":["2037605"],"product_version":["2019 R1"],"km_published_date":["2014-09-12T00:00:00.000Z"],"family":["Fluid Dynamics"],"application_name":["CFD-Post"],"_edit_lock":["1705046347:2"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164626\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=164626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}