|
[Sponsors] |
April 15, 2013, 23:35 |
(ask)A udf about electric field
|
#1 |
New Member
Wu Zhuo
Join Date: Apr 2013
Posts: 3
Rep Power: 13 |
Hi all
this is a code about the current density DEFINE_ADJUST(current_density,d) { Thread *t; cell_t c; if (! Data_Valid_P()) return; thread_loop_c(t,d) { begin_c_loop(c,t) { C_UDMI(c,t,0)=-1*C_UDSI_DIFF(c,t,0)*C_UDSI_G(c,t,0)[0]; C_UDMI(c,t,1)=-1*C_UDSI_DIFF(c,t,0)*C_UDSI_G(c,t,0)[1]; C_UDMI(c,t,2)=-1*C_UDSI_DIFF(c,t,0)*C_UDSI_G(c,t,0)[2]; } end_c_loop(c,t) } } howeve,the contour dispaly the udm0,1,2=0.and i also use the solve/set/expert . Can anyone help me ? thanks. |
|
April 16, 2013, 02:56 |
|
#2 |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
Hey
Actually, I don't know the answer for your question, just it seems that you are working on fuel cell. if yes, I would like to ask you a question. Is it possible to define current density instead of electrical potential using UDS? If so, are we allowed to use conductivity coefficient which appears in electric potential gradiant for current density gradiant too? I'll be waiting for your reply. Thanks in advance
__________________
Regard yours |
|
April 16, 2013, 03:30 |
|
#3 |
New Member
Wu Zhuo
Join Date: Apr 2013
Posts: 3
Rep Power: 13 |
I am not working on fuel cell.
I dont konw whether we can use current density but it is more convenient to use electrical potential |
|
October 26, 2020, 23:12 |
|
#4 | |
Senior Member
Join Date: Feb 2020
Posts: 114
Rep Power: 6 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Effects of droplets to each other in an electrostatic field | alighaffari | Fluent UDF and Scheme Programming | 4 | August 31, 2017 03:22 |
Field functions and table | crevoise | Siemens | 0 | March 20, 2013 11:51 |
UDF for magnetic field | nasser | Fluent UDF and Scheme Programming | 0 | March 4, 2013 12:35 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |