|
[Sponsors] |
Calculating UDS gradient containing flux term |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 12, 2021, 10:05 |
Calculating UDS gradient containing flux term
|
#1 | |
New Member
Anas Nur Fauzan
Join Date: Oct 2019
Posts: 18
Rep Power: 7 |
Hello,
I'm simulating a thermoelectric generator model. To represent every term I need to solve, I'm using UDS. For example, I want to solve equation of electric field inside a control volume. The equation is shown below, The is Temperature-dependent Seeback Coefficient Polynomial, T is temperature, is Temperature-dependent Electrical Conductivity Polynomial, and J is current flux.
In order to solve this equation, I use UDS to represent each term at RHS. Each term represented by UDS1 and UDS0, respectively. Those representation of RHS term are based from the reference journal I read. For UDS1, I think it's pretty straight forward, I think I can write the code like this inside a cell loop. Code:
real alpha; alpha = 8.439e-4 - 3.81e-6*C_T(c,t) + 6.736e-9*pow(C_T(c,t),-9) - 3.934e-12*pow(C_T(c,t),-12); NV_VS(C_UDSI_G(c,t,1) ,=, C_T_G(c,t),*,alpha); I mean to say that as we know J is a current flux which can be calculated from this equation below. And the current within the cell can be calculated with the equation below. From what I understand, current usually calculated using area of surface flux. In this case, I want to calculate J for cell which contain multiple faces. Once, I figured that maybe in order to calculate J, I could just calculate every J value at each face on the cell then sum it all at the end. But since I have to use UDS1 value to calculate this, I need to call the UDS1 value from the FACE. On that, I used F_UDSI macro. But in the Fluent Customization Guide stated, Quote:
So, please. Does anyone have any suggestion on how to implement J term on my codes? I have discussed with my professors and colleagues. But none of them familiar with UDF. So maybe someone here can offer their help. Thank you in advance. Best regards, Anas |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for removing the density in the flux term of UDS | Nadun19 | Fluent UDF and Scheme Programming | 3 | February 13, 2019 06:38 |
UDS of concentration solved in multiphases system | Tleja | Fluent UDF and Scheme Programming | 0 | January 19, 2017 12:38 |
UDS gradient ?? | akm | Fluent UDF and Scheme Programming | 0 | April 23, 2012 15:49 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
pressure gradient term in low speed flow | Atit Koonsrisuk | Main CFD Forum | 2 | January 10, 2002 11:52 |