


{"id":396890,"date":"2024-12-10T07:34:07","date_gmt":"2024-12-10T07:34:07","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/"},"modified":"2024-12-10T07:34:07","modified_gmt":"2024-12-10T07:34:07","slug":"how-to-set-a-motion-in-a-specified-reference-frame","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/","title":{"rendered":"How to set a motion in a specified reference frame"},"content":{"rendered":"<p>&lt;p class=&#8221;MsoNormal&#8221;&gt;Hello,&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221; style=&#8221;text-align: justify; text-justify: inter-ideograph;&#8221;&gt;&lt;span style=&#8221;mso-spacerun: yes;&#8221;&gt;&nbsp; &lt;\/span&gt;I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face which belongs to Fluid 2 move along the Axis 2, furthermore, there exits an angle&nbsp;<strong>&alpha;<\/strong>&nbsp;between axis 1 and axis 2, let&rsquo;s say 5&lt;span lang=&#8221;ZH-CN&#8221; style=&#8221;font-family: \u7b49\u7ebf; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin;&#8221;&gt;&deg;&lt;\/span&gt;(shown in Figure 3).&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221; style=&#8221;text-align: justify; text-justify: inter-ideograph;&#8221;&gt;&lt;span style=&#8221;mso-spacerun: yes;&#8221;&gt;&nbsp; &lt;\/span&gt;For revolution, I can use mesh motion or UDF(CG_MOTION) to realize it, but for linear motion, when I use the macro CG_MOTION, I need to decompose the linear velocity and then specify the velocity in x, y and z direction, it&rsquo;s very complicated.&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221; style=&#8221;text-align: justify; text-justify: inter-ideograph;&#8221;&gt;&lt;span style=&#8221;mso-spacerun: yes;&#8221;&gt;&nbsp; &lt;\/span&gt;As is shown in Figure 4, I created a reference frame which on the axis 2 and its y axis coincide with axis 2, then I only need to specify the velocity of y direction, but how to set the linear motion in the new reference frame? Or is there any other simple way to achieve this motion?&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;Regards,&lt;span style=&#8221;mso-no-proof: yes;&#8221;&gt;&lt;!&#8211;[endif]&#8211;&gt;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/10-12-2024-1733815962-mceclip3.png\" \/>&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;Figure 1&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&lt;span style=&#8221;mso-no-proof: yes;&#8221;&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/10-12-2024-1733815951-mceclip2.png\" \/>&lt;br&gt;&lt;!&#8211;[endif]&#8211;&gt;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;Figure 2&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&lt;span style=&#8221;mso-no-proof: yes;&#8221;&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/10-12-2024-1733815929-mceclip1.png\" width=\"696\" height=\"398\" \/>&lt;br&gt;&lt;!&#8211;[endif]&#8211;&gt;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;Figure 3&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&lt;span style=&#8221;mso-no-proof: yes;&#8221;&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/10-12-2024-1733815916-mceclip0.png\" width=\"647\" height=\"394\" \/>&lt;br&gt;&lt;!&#8211;[endif]&#8211;&gt;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;Figure 4&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221;MsoNormal&#8221;&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-396890","topic","type-topic","status-publish","hentry","topic-tag-fluent-ansys-1","topic-tag-cg_motion-1","topic-tag-relative-motion-1","topic-tag-udf"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/\" \/>\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=\"How to set a motion in a specified reference frame | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-12-10T07:34:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-10T07:34:07+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to set a motion in a specified reference frame | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face\" \/>\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\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/#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-tag\\\/udf\\\/#listItem\",\"name\":\"udf\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/#listItem\",\"position\":3,\"name\":\"udf\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/#listItem\",\"name\":\"How to set a motion in a specified reference frame\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/#listItem\",\"position\":4,\"name\":\"How to set a motion in a specified reference frame\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/udf\\\/#listItem\",\"name\":\"udf\"}}]},{\"@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\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/\",\"name\":\"How to set a motion in a specified reference frame | Ansys Learning Forum\",\"description\":\"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-set-a-motion-in-a-specified-reference-frame\\\/#breadcrumblist\"},\"datePublished\":\"2024-12-10T07:34:07+00:00\",\"dateModified\":\"2024-12-10T07:34:07+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":"How to set a motion in a specified reference frame | Ansys Learning Forum","description":"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/#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-tag\/udf\/#listItem","name":"udf"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/#listItem","position":3,"name":"udf","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/#listItem","name":"How to set a motion in a specified reference frame"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/#listItem","position":4,"name":"How to set a motion in a specified reference frame","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/#listItem","name":"udf"}}]},{"@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\/how-to-set-a-motion-in-a-specified-reference-frame\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/","name":"How to set a motion in a specified reference frame | Ansys Learning Forum","description":"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/#breadcrumblist"},"datePublished":"2024-12-10T07:34:07+00:00","dateModified":"2024-12-10T07:34:07+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":"How to set a motion in a specified reference frame | Ansys Learning Forum","og:description":"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/","article:published_time":"2024-12-10T07:34:07+00:00","article:modified_time":"2024-12-10T07:34:07+00:00","twitter:card":"summary_large_image","twitter:title":"How to set a motion in a specified reference frame | Ansys Learning Forum","twitter:description":"Hello, I am simulating a composite motion which consists of revolution and linear motion, details are shown in the following figures, as is shown in Figure 1 and 2, on one hand, the fluid 2 revolve around the Axis 1, on the other hand, the moving face"},"aioseo_meta_data":{"post_id":"396890","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":"default","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":false,"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":"2025-10-19 10:08:30","updated":"2026-09-17 13:18:11","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\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/\" title=\"udf\">udf<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to set a motion in a specified reference frame\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","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/udf\/"},{"label":"How to set a motion in a specified reference frame","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-set-a-motion-in-a-specified-reference-frame\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["396890"],"_bbp_subscription":["184661","199"],"_bbp_author_ip":["98.126.229.34"],"_bbp_last_reply_id":["397080"],"_bbp_last_active_id":["397080"],"_bbp_last_active_time":["2024-12-11 12:19:23"],"_bbp_reply_count":["2"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["184661","199"],"_btv_view_count":["542"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1733816149:184661"]},"test":"excited"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396890","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\/396890\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=396890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}