


{"id":367502,"date":"2024-05-20T06:07:35","date_gmt":"2024-05-20T06:07:35","guid":{"rendered":"\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/"},"modified":"2024-05-22T03:00:58","modified_gmt":"2024-05-22T03:00:58","slug":"report-the-drag-lift-force-on-particles-in-dpm","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/","title":{"rendered":"Report the drag\/lift force on particles in DPM"},"content":{"rendered":"<p>Hello, everyone!<\/p>\n<p>I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle.&nbsp;<\/p>\n<p>I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related information at Results-Particle tracks-Particle variables. However, i can not find the drag force, saffman lift force under this option.<\/p>\n<p>I was told certain particle-related forces such as drag and lift force are not available directly through the standard Particle Tracks Reports interface. These specific forces require customization to view and analyze by UDF. And an example of UDF has been given in the last. However, this UDF did not work in my case and software (the content in this link also not work \/forum\/forums\/topic\/how-to-report-the-drag-force-on-particles-in-dpm\/ )<\/p>\n<p>Does anyone know how to report this when the solution is done, or how to write an correct UDF to obtain the forces on particles?<\/p>\n<p>Thanks!<\/p>\n<p>&nbsp;{<\/p>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<div>&nbsp;<\/div>\n<div>\/* Define a UDF to track forces on particles *\/<\/div>\n<div>DEFINE_DPM_SCALAR_UPDATE(track_forces, cell, thread, initialize, p)<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp; real drag_force[3];<\/div>\n<div>&nbsp; &nbsp; real lift_force[3];<\/div>\n<div>&nbsp; &nbsp; real virtual_mass_force[3];<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; \/* Get the drag force *\/<\/div>\n<div>&nbsp; &nbsp; P_DRAG(p, drag_force);<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; \/* Get the lift force *\/<\/div>\n<div>&nbsp; &nbsp; P_SAFFMAN_LIFT_FORCE(p, lift_force);<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; \/* Get the virtual mass force *\/<\/div>\n<div>&nbsp; &nbsp; P_VIRTUAL_MASS_FORCE(p, virtual_mass_force);<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp; \/* Store the forces in user-defined memory (UDM) *\/<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 0) = drag_force[0];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 1) = drag_force[1];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 2) = drag_force[2];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 3) = lift_force[0];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 4) = lift_force[1];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 5) = lift_force[2];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 6) = virtual_mass_force[0];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 7) = virtual_mass_force[1];<\/div>\n<div>&nbsp; &nbsp; P_USER_REAL(p, 8) = virtual_mass_force[2];<\/div>\n<div>}<\/div>\n<p>}<\/p>\n","protected":false},"template":"","class_list":["post-367502","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=\"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/\" \/>\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=\"Report the drag\/lift force on particles in DPM | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-05-20T06:07:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-05-22T03:00:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Report the drag\/lift force on particles in DPM | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related\" \/>\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\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/#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\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/#listItem\",\"name\":\"Report the drag\\\/lift force on particles in DPM\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/#listItem\",\"position\":3,\"name\":\"Report the drag\\\/lift force on particles in DPM\",\"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\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/\",\"name\":\"Report the drag\\\/lift force on particles in DPM | Ansys Learning Forum\",\"description\":\"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/report-the-drag-lift-force-on-particles-in-dpm\\\/#breadcrumblist\"},\"datePublished\":\"2024-05-20T06:07:35+00:00\",\"dateModified\":\"2024-05-22T03:00:58+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":"Report the drag\/lift force on particles in DPM | Ansys Learning Forum","description":"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/#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\/report-the-drag-lift-force-on-particles-in-dpm\/#listItem","name":"Report the drag\/lift force on particles in DPM"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/#listItem","position":3,"name":"Report the drag\/lift force on particles in DPM","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\/report-the-drag-lift-force-on-particles-in-dpm\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/","name":"Report the drag\/lift force on particles in DPM | Ansys Learning Forum","description":"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/#breadcrumblist"},"datePublished":"2024-05-20T06:07:35+00:00","dateModified":"2024-05-22T03:00:58+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":"Report the drag\/lift force on particles in DPM | Ansys Learning Forum","og:description":"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/","article:published_time":"2024-05-20T06:07:35+00:00","article:modified_time":"2024-05-22T03:00:58+00:00","twitter:card":"summary_large_image","twitter:title":"Report the drag\/lift force on particles in DPM | Ansys Learning Forum","twitter:description":"Hello, everyone!I am working on a project about particle-airflow interaction in a channel in Fluent 2023. I want to find out the magnitude of the drag force and lift force on each particle. I have opened the drag force, saffman lift force in physical models of discrete phase model (DPM). Generally, i can find particle related"},"aioseo_meta_data":{"post_id":"367502","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:41:48","updated":"2024-10-28 16:41:48","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\tReport the drag\/lift force on particles in DPM\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":"Report the drag\/lift force on particles in DPM","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/report-the-drag-lift-force-on-particles-in-dpm\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["74521","199"],"_bbp_author_ip":["23.32.16.81"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["700"],"_bbp_topic_status":["answered"],"_bbp_topic_id":["367502"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","74521"],"_bbp_voice_count":["2"],"_bbp_last_reply_id":["367983"],"_bbp_last_active_id":["367983"],"_bbp_last_active_time":["2024-05-22 03:00:35"]},"test":"leczjut-edu-cn"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/367502","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\/367502\/revisions"}],"predecessor-version":[{"id":367984,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/367502\/revisions\/367984"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=367502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}