


{"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":[],"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":["761"],"_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}]}}