


{"id":358065,"date":"2024-03-20T06:05:47","date_gmt":"2024-03-20T06:05:47","guid":{"rendered":"\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/"},"modified":"2024-03-20T06:05:47","modified_gmt":"2024-03-20T06:05:47","slug":"coupled-simulation-of-vehicle-and-fluid-tank-2","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/","title":{"rendered":"coupled simulation of vehicle and fluid tank"},"content":{"rendered":"<p>Good morning sir\/mam,<\/p>\n<p>i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent.&nbsp; UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF.&nbsp;&nbsp;<\/p>\n<div>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<p><\/p>\n<div>DEFINE_ADJUST(coupled_simulation, d)<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp; real simulation_time = RP_Get_Real(&#8220;flow-time&#8221;);<\/div>\n<div>&nbsp; &nbsp; real dt = 0.0001; \/\/ Time step size<\/div>\n<div>&nbsp; &nbsp; real end_time = 15; \/\/ End time of simulation<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; Domain *domain = Get_Domain(2); \/\/ Assuming the fluid domain has ID 2<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; if (!domain)<\/div>\n<div>&nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; Message(&#8220;Error: Unable to obtain domain.\\n&#8221;);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; return;<\/div>\n<div>&nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Define vehicle parameters<\/div>\n<div>&nbsp; &nbsp; real m_truck = 5450.0; \/\/ Mass of the truck (kg)<\/div>\n<div>&nbsp; &nbsp; real I_truck = 5000.0; \/\/ Moment of inertia of the truck (kg*m^2)<\/div>\n<div>&nbsp; &nbsp; real k1 = 2.86e10; \/\/ Front spring stiffness (N\/m)<\/div>\n<div>&nbsp; &nbsp; real k2 = 3.870e5; \/\/ Rear spring stiffness (N\/m)<\/div>\n<div>&nbsp; &nbsp; real l1 = 0.2; \/\/ Distance of front axle from CG (m)<\/div>\n<div>&nbsp; &nbsp; real l2 = 0.8; \/\/ Distance of rear axle from CG (m)<\/div>\n<div>&nbsp; &nbsp; real F_braking = 1000.0; \/\/ Braking force (N)<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Define fluid parameters for water phase<\/div>\n<div>&nbsp; &nbsp; real fluid_density_water = 1000.0; \/\/ Density of water (kg\/m^3)<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Define fluid parameters for air phase<\/div>\n<div>&nbsp; &nbsp; real fluid_density_air = 1.2; \/\/ Density of air (kg\/m^3)<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Initial conditions for vehicle motion<\/div>\n<div>&nbsp; &nbsp; real x = 1.0; \/\/ Initial vertical displacement<\/div>\n<div>&nbsp; &nbsp; real theta = 1.0; \/\/ Initial angular displacement<\/div>\n<div>&nbsp; &nbsp; real x_dot = 0.0; \/\/ Initial vertical velocity<\/div>\n<div>&nbsp; &nbsp; real theta_dot = 0.0; \/\/ Initial angular velocity<\/div>\n<div>&nbsp; &nbsp; real x_ddot = 0.0; \/\/vehicle acceleration<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; real fluid_force_x_water = 0.0, fluid_force_x_air = 0.0;<\/div>\n<div>&nbsp; &nbsp; real fluid_force_y_water = 0.0, fluid_force_y_air = 0.0;<\/div>\n<div>&nbsp; &nbsp; real fluid_force_z_water = 0.0, fluid_force_z_air = 0.0;<\/div>\n<div>&nbsp; &nbsp; real fluid_moment_x_water = 0.0, fluid_moment_x_air = 0.0;<\/div>\n<div>&nbsp; &nbsp; real fluid_moment_y_water = 0.0, fluid_moment_y_air = 0.0;<\/div>\n<div>&nbsp; &nbsp; real fluid_moment_z_water = 0.0, fluid_moment_z_air = 0.0;<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; Thread *t;<\/div>\n<div>&nbsp; &nbsp; face_t f;<\/div>\n<div>&nbsp; &nbsp; cell_t c;<\/div>\n<div>&nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; \/\/ Main simulation loop<\/div>\n<div>&nbsp; &nbsp; while (simulation_time &lt; end_time)<\/div>\n<div>&nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; \/\/ Step 1: Calculate vehicle response to braking force<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; real x_ddot = (-k1 * (x &#8211; l1 * theta) &#8211; k2 * (x + l2 * theta) + F_braking) \/ m_truck;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; real theta_ddot = (-k1 * l1 * (x &#8211; l1 * theta) + k2 * l2 * (x + l2 * theta)) \/ I_truck;<\/div>\n<div>&nbsp; &nbsp; \/\/ Step 2: Apply vehicle response to fluid domain as a body force in the source term<\/div>\n<div>&nbsp; &nbsp; real vehicle_force_y = -m_truck * x_ddot;<\/div>\n<div>&nbsp; &nbsp; real vehicle_moment_z = -k1 * l1 * (x &#8211; l1 * theta) + k2 * l2 * (x + l2 * theta);<\/div>\n<div>&nbsp; &nbsp; \/\/ Loop over fluid cells<\/div>\n<div>&nbsp; &nbsp; t = Lookup_Thread(domain, 2); \/\/ Assuming FLUID_THREAD_ID is the ID of the fluid thread<\/div>\n<div>&nbsp; &nbsp; thread_loop_c(t, d)<\/div>\n<div>&nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; begin_c_loop(c, t)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Apply the body force components based on vehicle response<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ For simplicity, assuming all the force acts in the y-direction<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 0) = 0.0; \/\/ Body force in x-direction<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 1) = vehicle_force_y; \/\/ Body force in y-direction<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 2) = 0.0; \/\/ Body force in z-direction<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Apply the moment components based on vehicle response<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Here, we&#8217;ll assume all the moments act around the z-axis<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 3) = 0.0; \/\/ Moment about x-axis<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 4) = 0.0; \/\/ Moment about y-axis<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDMI(c, t, 5) = vehicle_moment_z; \/\/ Moment about z-axis<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; end_c_loop(c, t);<\/div>\n<div>&nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Step 3: Calculate fluid forces and moments for water and air phases<\/div>\n<div>&nbsp; &nbsp; \/\/ Loop over fluid cells<\/div>\n<div>&nbsp; &nbsp; t = Lookup_Thread(domain, 2); \/\/ Assuming FLUID_THREAD_ID is the ID of the fluid thread<\/div>\n<div>&nbsp; &nbsp; thread_loop_c(t, d)<\/div>\n<div>&nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; begin_c_loop(c, t)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; real A[ND_ND], F[ND_ND], F_area[ND_ND]; \/\/ Add F_area vector to store face area<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; real p = C_P(c, t); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Pressure of the cell (initialise pressure value in Fluent= mg\/ base area)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_CENTROID(A, c, t); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/ Centroid of the cell<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; ND_ND; i++)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F[i] = 0.0; \/\/ Initialize force vector<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Loop over faces of the cell using C_FACE macro<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int f = 0; f &lt; C_NFACES(c, t); f++)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; face_t face = C_FACE(c, t, f);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F_AREA(F_area, face, t); \/\/ Face area vector<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Calculate face force<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j = 0; j &lt; ND_ND; j++)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F[j] += p * F_area[j]; \/\/ Use F_area instead of calling F_AREA macro multiple times<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Accumulate forces and moments for water phase<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_x_water += F[0];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_y_water += F[1];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_z_water += F[2];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_x_water += (A[1] * F[2] &#8211; A[2] * F[1]);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_y_water += (A[2] * F[0] &#8211; A[0] * F[2]);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_z_water += (A[0] * F[1] &#8211; A[1] * F[0]);<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Accumulate forces and moments for air phase<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_x_air += F[0];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_y_air += F[1];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_force_z_air += F[2];<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_x_air += (A[1] * F[2] &#8211; A[2] * F[1]);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_y_air += (A[2] * F[0] &#8211; A[0] * F[2]);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fluid_moment_z_air += (A[0] * F[1] &#8211; A[1] * F[0]);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; end_c_loop(c, t);<\/div>\n<div>&nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; \/\/ Step 4: Update vehicle response based on fluid forces and moments as excitation force on vehicle equations<\/div>\n<div>&nbsp; &nbsp; real fluid_force_x = fluid_force_x_water + fluid_force_x_air;<\/div>\n<div>&nbsp; &nbsp; real fluid_force_y = fluid_force_y_water + fluid_force_y_air;<\/div>\n<div>&nbsp; &nbsp; real fluid_force_z = fluid_force_z_water + fluid_force_z_air;<\/div>\n<div>&nbsp; &nbsp; &nbsp;real fluid_moment_x = fluid_moment_x_water + fluid_moment_x_air;<\/div>\n<div>&nbsp; &nbsp; &nbsp; real fluid_moment_y = fluid_moment_y_water + fluid_moment_y_air;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp;real fluid_moment_z = fluid_moment_z_water + fluid_moment_z_air;<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x_dot += fluid_force_x \/ m_truck * dt;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theta_dot += fluid_moment_z \/ I_truck * dt;<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x += x_dot * dt;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;theta += theta_dot * dt;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/ Increment simulation time<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; simulation_time += dt;<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/ Step 5: Output results if needed<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf(&#8220;Time: %.2f, x: %.4f, theta: %.4f\\n&#8221;, simulation_time, x, theta);<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/div>\n<div>&nbsp; &nbsp;<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-358065","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=\"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include &quot;udf.h&quot;DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(&quot;flow-time&quot;); real dt = 0.0001;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/\" \/>\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=\"coupled simulation of vehicle and fluid tank | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include &quot;udf.h&quot;DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(&quot;flow-time&quot;); real dt = 0.0001;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-03-20T06:05:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-03-20T06:05:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"coupled simulation of vehicle and fluid tank | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include &quot;udf.h&quot;DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(&quot;flow-time&quot;); real dt = 0.0001;\" \/>\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\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/#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\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/#listItem\",\"name\":\"coupled simulation of vehicle and fluid tank\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/#listItem\",\"position\":3,\"name\":\"coupled simulation of vehicle and fluid tank\",\"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\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/\",\"name\":\"coupled simulation of vehicle and fluid tank | Ansys Learning Forum\",\"description\":\"Good morning sir\\\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include \\\"udf.h\\\"DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(\\\"flow-time\\\"); real dt = 0.0001;\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/coupled-simulation-of-vehicle-and-fluid-tank-2\\\/#breadcrumblist\"},\"datePublished\":\"2024-03-20T06:05:47+00:00\",\"dateModified\":\"2024-03-20T06:05:47+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":"coupled simulation of vehicle and fluid tank | Ansys Learning Forum","description":"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include \"udf.h\"DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(\"flow-time\"); real dt = 0.0001;","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/#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\/coupled-simulation-of-vehicle-and-fluid-tank-2\/#listItem","name":"coupled simulation of vehicle and fluid tank"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/#listItem","position":3,"name":"coupled simulation of vehicle and fluid tank","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\/coupled-simulation-of-vehicle-and-fluid-tank-2\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/","name":"coupled simulation of vehicle and fluid tank | Ansys Learning Forum","description":"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include \"udf.h\"DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(\"flow-time\"); real dt = 0.0001;","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/#breadcrumblist"},"datePublished":"2024-03-20T06:05:47+00:00","dateModified":"2024-03-20T06:05:47+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":"coupled simulation of vehicle and fluid tank | Ansys Learning Forum","og:description":"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include &quot;udf.h&quot;DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(&quot;flow-time&quot;); real dt = 0.0001;","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/","article:published_time":"2024-03-20T06:05:47+00:00","article:modified_time":"2024-03-20T06:05:47+00:00","twitter:card":"summary_large_image","twitter:title":"coupled simulation of vehicle and fluid tank | Ansys Learning Forum","twitter:description":"Good morning sir\/mam,i am doing coupled simulation of vehicle and fluid tank thtough UDF using ansys fluent. UDF is succesfully compliled but at the time of running simulation it showing bad termination of FFF fluent and automatically shut down. below is my UDF. #include &quot;udf.h&quot;DEFINE_ADJUST(coupled_simulation, d){ real simulation_time = RP_Get_Real(&quot;flow-time&quot;); real dt = 0.0001;"},"aioseo_meta_data":{"post_id":"358065","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 16:53:08","updated":"2024-10-28 16:53:08","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\tcoupled simulation of vehicle and fluid tank\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":"coupled simulation of vehicle and fluid tank","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/coupled-simulation-of-vehicle-and-fluid-tank-2\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["336538","15180"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["185"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["358065"],"_bbp_forum_id":["27792"],"_bbp_engagement":["15180","336538"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["359232"],"_bbp_last_active_id":["359232"],"_bbp_last_active_time":["2024-03-27 08:39:30"]},"test":"vikramkumar-m22me1002mbcet-ac-in"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/358065","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\/358065\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=358065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}