


{"id":310582,"date":"2023-10-09T08:19:31","date_gmt":"2023-10-09T08:19:31","guid":{"rendered":"\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/"},"modified":"2023-10-09T08:19:31","modified_gmt":"2023-10-09T08:19:31","slug":"gradient-calculation-fuel-cell","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/","title":{"rendered":"Gradient Calculation Fuel-Cell"},"content":{"rendered":"<p>Dear all,&nbsp;<\/p>\n<p>I&rsquo;m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can&rsquo;t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the electrons is accounted for using a UDS-Scalar Transport Equation (like in the PEM-Model provided by ANSYS) which, after solving it, provides me with a potential distribution. This is the potential distribution i get at the moment:&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png\" alt=\"\"><\/p>\n<p>This is comparable to potential distributions I found in the literature. (Note that I solve the equation in the Flow-channel as well, which is not physically meaningful, but I didn&rsquo;t find a way around it).&nbsp;<br \/>The problem I encounter is the following: &nbsp;<br \/>When I calculate the current density in the Y-Direction from the potential distribution (conductivity * gradient of potential in Y- Direction). I get some weird results, as the gradient in the cells right next to the channel is much higher than for the rest.&nbsp;<br \/>You can see the potential distribution in the second photo (phi_e (the first row from the right is the first row under the channel)). As well as the gradient I get&nbsp;(j_e). <img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696839039-phi_e.png\" alt=\"\"><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696839099-j_e.png\" alt=\"\"><\/p>\n<p>At least to me, the difference in potential per cell in the Y-Direction for the third and 4th cell row doesn&rsquo;t look high enough to explain the significant increase in the gradient, for the 4th row from the left in comparison to the third row. &nbsp;<br \/>In my opinion, a possible explanations for this could be that the Calculation of the gradient of the electrical potential is wrong (I&rsquo;m using the C_UDSI_G(c,t,0)[1] command to obtain the gradient in the Y-Direction). I think it is odd, that the Gradient in the Y-Direction is so much higher near the Flow-Channel, which leads me to believe that at least some information from the cells in x and z direction goes into the calculation of the gradient? Maybe for the calculation of C_UDSI_G? For spatial discretization, I use the Least Square Cell based method. &nbsp;In the last photo you can see the code i currently use to calculate my gradient.&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696839236-Code_snippet.png\" alt=\"\"><\/p>\n<p>If anyone has encountered this problem before or has some insight that might be useful and can help me out, I would much appreciate it!&nbsp;<\/p>\n<p>Best regards&nbsp;<\/p>\n<p>Thore &nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-310582","topic","type-topic","status-closed","hentry","topic-tag-fluent-uds","topic-tag-fluent-uds-udf-1","topic-tag-fuel-cell-1","topic-tag-gradient"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/\" \/>\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=\"Gradient Calculation Fuel-Cell | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-10-09T08:19:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-10-09T08:19:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Gradient Calculation Fuel-Cell | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png\" \/>\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\\\/gradient-calculation-fuel-cell\\\/#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\\\/gradient\\\/#listItem\",\"name\":\"gradient\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/gradient\\\/#listItem\",\"position\":3,\"name\":\"gradient\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/gradient\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-calculation-fuel-cell\\\/#listItem\",\"name\":\"Gradient Calculation Fuel-Cell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-calculation-fuel-cell\\\/#listItem\",\"position\":4,\"name\":\"Gradient Calculation Fuel-Cell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/gradient\\\/#listItem\",\"name\":\"gradient\"}}]},{\"@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\\\/gradient-calculation-fuel-cell\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-calculation-fuel-cell\\\/\",\"name\":\"Gradient Calculation Fuel-Cell | Ansys Learning Forum\",\"description\":\"Dear all, I\\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/gradient-calculation-fuel-cell\\\/#breadcrumblist\"},\"datePublished\":\"2023-10-09T08:19:31+00:00\",\"dateModified\":\"2023-10-09T08:19:31+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":"Gradient Calculation Fuel-Cell | Ansys Learning Forum","description":"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/#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\/gradient\/#listItem","name":"gradient"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/gradient\/#listItem","position":3,"name":"gradient","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/gradient\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/#listItem","name":"Gradient Calculation Fuel-Cell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/#listItem","position":4,"name":"Gradient Calculation Fuel-Cell","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/gradient\/#listItem","name":"gradient"}}]},{"@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\/gradient-calculation-fuel-cell\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/","name":"Gradient Calculation Fuel-Cell | Ansys Learning Forum","description":"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/#breadcrumblist"},"datePublished":"2023-10-09T08:19:31+00:00","dateModified":"2023-10-09T08:19:31+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":"Gradient Calculation Fuel-Cell | Ansys Learning Forum","og:description":"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png","article:published_time":"2023-10-09T08:19:31+00:00","article:modified_time":"2023-10-09T08:19:31+00:00","twitter:card":"summary_large_image","twitter:title":"Gradient Calculation Fuel-Cell | Ansys Learning Forum","twitter:description":"Dear all, I\u2019m currently developing a CFD-Model for a new kind of Fuel Cell using ANSYS Fluent, which is using both a PEM and an AEM Membrane. Because of this, I can\u2019t use the PEM-Fuel Cell Model which is provided in ANSYS Fluent and instead develop a model using User Defined Functions. The Transport of the","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/10\/09-10-2023-1696838975-phi_e_channel.png"},"aioseo_meta_data":{"post_id":"310582","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 17:41:36","updated":"2024-10-28 17:41:36","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\/gradient\/\" title=\"gradient\">gradient<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGradient Calculation Fuel-Cell\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":"gradient","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/gradient\/"},{"label":"Gradient Calculation Fuel-Cell","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradient-calculation-fuel-cell\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["59586","199"],"_bbp_author_ip":["23.206.193.15"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["971"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["310582"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","59586"],"_bbp_voice_count":["2"],"_bbp_reply_count":["9"],"_bbp_last_reply_id":["312122"],"_bbp_last_active_id":["312122"],"_bbp_last_active_time":["2023-10-18 15:03:38"]},"test":"thore-prussuni-rostock-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/310582","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\/310582\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=310582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}