


{"id":34346,"date":"2019-03-29T20:31:51","date_gmt":"2019-03-29T20:31:51","guid":{"rendered":"\/forum\/forums\/topic\/udf-wall-velocity-trouble\/"},"modified":"2019-03-29T20:31:51","modified_gmt":"2019-03-29T20:31:51","slug":"udf-wall-velocity-trouble","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/","title":{"rendered":"UDF wall velocity trouble"},"content":{"rendered":"<p><strong>UPDATE: the initial question has been answered, but another problem arose.&nbsp; See further down.&nbsp; Thanks.<\/strong><\/p>\n<p>I was going off of this example:&nbsp; https:\/\/www.youtube.com\/watch?v=neJyTxLla0E<\/p>\n<p><\/p>\n<p>I have a very simple geometry, as shown below:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF like this:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/4370e535-f9e8-4bdf-b9c9-aa1f0151df33_udf.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>To accomplish this, I set the wall to a Rigid Body Dynamic Mesh with that UDF.&nbsp; It worked, but not like I naively expected, as shown below:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/32848d2e-7d79-40d9-bb6d-aa1f01509826_mesh-deformed-ann.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>After the first time step it error with:<\/p>\n<p><\/p>\n<p><span style=\"color: #ff0000;\">Error: Update-Dynamic-Mesh failed. Negative cell volume detected.<\/span><\/p>\n<p><\/p>\n<p style=\"-qt-block-indent: 0; text-indent: 0px; margin: 0px;\"><span style=\"color: #ff0000;\">Error Object: #f<\/span><\/p>\n<p><\/p>\n<p><strong>I understand that I needed to have the adjacent wall shrink along with the movement of the moving wall so that the corner stays the same.<\/strong><\/p>\n<p><\/p>\n<p><strong>Questions:&nbsp; How do I do that?&nbsp; Another UDF?&nbsp; Which macro to use and how?&nbsp; My ultimate goal is to have the bottom wall and the two adjacent walls all move towards the center of the fluid domain to create the pressure that drives the fluid out the top, for a much more complex geometry.&nbsp; Is this possible and am I on the right track?&nbsp; <br \/><\/strong><\/p>\n<p><\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-34346","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"UDF wall velocity trouble | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&#038;upscale=false\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&#038;upscale=false\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-03-29T20:31:51+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-03-29T20:31:51+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"UDF wall velocity trouble | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&amp;upscale=false\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/#listItem\",\"name\":\"UDF wall velocity trouble\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/#listItem\",\"position\":3,\"name\":\"UDF wall velocity trouble\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/\",\"name\":\"UDF wall velocity trouble | Ansys Learning Forum\",\"description\":\"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\\\/\\\/www.youtube.com\\\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/udf-wall-velocity-trouble\\\/#breadcrumblist\"},\"datePublished\":\"2019-03-29T20:31:51+00:00\",\"dateModified\":\"2019-03-29T20:31:51+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"UDF wall velocity trouble | Ansys Learning Forum","description":"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/#listItem","name":"UDF wall velocity trouble"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/#listItem","position":3,"name":"UDF wall velocity trouble","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/","name":"UDF wall velocity trouble | Ansys Learning Forum","description":"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/#breadcrumblist"},"datePublished":"2019-03-29T20:31:51+00:00","dateModified":"2019-03-29T20:31:51+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"UDF wall velocity trouble | Ansys Learning Forum","og:description":"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/","og:image":"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&#038;upscale=false","og:image:secure_url":"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&#038;upscale=false","article:published_time":"2019-03-29T20:31:51+00:00","article:modified_time":"2019-03-29T20:31:51+00:00","twitter:card":"summary_large_image","twitter:title":"UDF wall velocity trouble | Ansys Learning Forum","twitter:description":"UPDATE: the initial question has been answered, but another problem arose. See further down. Thanks.I was going off of this example: https:\/\/www.youtube.com\/watch?v=neJyTxLla0E I have a very simple geometry, as shown below: I wanted the wall to move forward, which would push the fluid out the top,which is an outlet. So I used a UDF","twitter:image":"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/8babacfe-69bd-457f-8c79-a9e90018d38c\/e487bbb1-d332-49ef-9fbe-aa1f014fb594_mesh-undeformed-ann.jpg?width=690&amp;upscale=false"},"aioseo_meta_data":{"post_id":"34346","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 23:24:17","updated":"2024-10-28 23:24:17","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUDF wall velocity trouble\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"UDF wall velocity trouble","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-wall-velocity-trouble\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["6518"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0"],"_btv_view_count":["1713"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["34346"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","156280","162192","184487","185907"],"_bbp_voice_count":["6"],"_bbp_reply_count":["8"],"_bbp_last_reply_id":["142630"],"_bbp_last_active_id":["142630"],"_bbp_last_active_time":["2021-02-17 01:34:51"]},"test":"ansysuser"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/34346","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\/34346\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=34346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}