


{"id":357501,"date":"2024-03-17T21:54:33","date_gmt":"2024-03-17T21:54:33","guid":{"rendered":"\/forum\/forums\/topic\/pitching-airfoil-using-overset-and-dynamic-mesh\/"},"modified":"2024-04-15T23:24:27","modified_gmt":"2024-04-15T23:24:27","slug":"pitching-airfoil-using-overset-and-dynamic-mesh","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/pitching-airfoil-using-overset-and-dynamic-mesh\/","title":{"rendered":"Pitching airfoil using overset and dynamic mesh."},"content":{"rendered":"<p>Hi there,&nbsp;<\/p>\n<p>I am using a ansys to simulate pitching NACA0012 airfoil. I made a rectangular background mesh as in figure 1. then made a O shape mesh to overset on the rectangular background mesh (fig 2). I defined all the cell zones and boundary conditions (velocity inlet and pressure outlet).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left\" title=\"fig 1\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/17-03-2024-1710710671-bg.png\" alt=\"\" width=\"727\" height=\"140\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"fig 2\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/17-03-2024-1710710698-O.png\" alt=\"\" width=\"544\" height=\"181\"><\/p>\n<p>Then I created a compiled udf. given below,&nbsp;<\/p>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<div>#define AMPLITUDE 30.0&nbsp; &nbsp;\/* Amplitude of pitching motion in degrees *\/<\/div>\n<div>#define FREQUENCY 2.97&nbsp; \/* Frequency of pitching motion in Hz *\/<\/div>\n<div>#define PI 3.14159265359<\/div>\n<div>&nbsp;<\/div>\n<div>DEFINE_CG_MOTION(pitching_airfoil, dt, vel, omega, time, dtime)<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp; Thread *t;<\/div>\n<div>face_t f;<\/div>\n<div>&nbsp; &nbsp; NV_S(vel, =, 0.0);&nbsp; \/*No translational velocity *\/<\/div>\n<div>&nbsp; &nbsp;NV_S(omega, =, 0.0);&nbsp; &nbsp;\/*Initially no rotational velocity *\/<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; vel[0] = 0.0; \/\/ X-direction<\/div>\n<div>&nbsp; &nbsp; vel[1] = 0.0; \/\/ Y-direction<\/div>\n<div>&nbsp; &nbsp; vel[2] = 0.0; \/\/ Z-direction<\/div>\n<div>&nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; omega[0] = 0.0; \/\/ Rotation about X-axis<\/div>\n<div>&nbsp; &nbsp; omega[1] = 0.0; \/\/ Rotation about Y-axis<\/div>\n<div>&nbsp; &nbsp; omega[2] = 0.0; \/\/ Rotation about Z-axis<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; \/* Set the rotational velocity about the z-axis *\/<\/div>\n<div>&nbsp; &nbsp; omega[2] = 0.2618 * 18.66 * cos(2.0 * 180 * 2.97 * time);<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;&nbsp;<\/div>\n<div>}<\/div>\n<p>now In the dynamic mesh section I did the following.<br \/>1. turned off smoothing, remeshing and layering<br \/>2. enabled six DOF and enabled motion history (Didnt turn on OneDOF)<\/p>\n<p>3. finally hooked UDF into the fluid-circle (passive enabled), hydrofoil(passive disabled).<\/p>\n<p>then used time step of 10^-4. The problem is, the airfoil is not moving and showing same result as steady state case.&nbsp; <img loading=\"lazy\" decoding=\"async\" title=\"result\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/17-03-2024-1710712329-3.png\" alt=\"\" width=\"407\" height=\"191\"><\/p>\n<p>Can anyone please help me about this and thell me where I am making the problem? Is it about hooking the UDF or something else?<\/p>\n<p><\/p>\n","protected":false},"template":"","class_list":["post-357501","topic","type-topic","status-closed","hentry","topic-tag-fluent-ansys-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["25604","13659"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["584"],"_bbp_topic_status":["answered"],"_bbp_topic_id":["357501"],"_bbp_forum_id":["27792"],"_bbp_engagement":["13659","25604"],"_bbp_voice_count":["2"],"_bbp_last_reply_id":["387778"],"_bbp_last_active_id":["387778"],"_bbp_last_active_time":["2024-10-02 08:32:45"]},"test":"nahian-masudwsu-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/357501","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/357501\/revisions"}],"predecessor-version":[{"id":362345,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/357501\/revisions\/362345"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=357501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}