|
[Sponsors] |
February 15, 2016, 18:44 |
Electrical conductivity
|
#1 |
New Member
walied
Join Date: Aug 2014
Posts: 16
Rep Power: 12 |
Hi every body :
Hoping that every thing is going well. i need urgent help please. -the electrical conductivity and the specific heat in my case is not constant and they are a function of coordinates. -the problem that the electrical conductivity in the material panel doesn't contains the udf option so how can i define it. - for the specific heat, is there any way to define it? i know that it can be defined as a function of temperature but is there any way to define it as a function of coordinates? thanks |
|
February 16, 2016, 05:50 |
|
#2 | |||
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
Quote:
Quote:
If you have a look at here, you will see that neither cell or thread are given to the macro DEFINE_SPECIFIC_HEAT. https://www.sharcnet.ca/Software/Ans...e_sp_heat.html |
||||
February 20, 2016, 21:26 |
|
#3 |
New Member
walied
Join Date: Aug 2014
Posts: 16
Rep Power: 12 |
thank you Bruno Machado for your kind replay.
but it still not clear.can you please clear more? if the electrical conductivity is Lamd=constant_1*x+constant_2*y what should i do to define it? please can you step your kind reply? thanks M.Eid |
|
February 21, 2016, 15:21 |
|
#4 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
the electrical conductivity must be defined as something like this (I am assuming it changes with x and y position): DEFINE_DIFFUSIVITY(elec_diff,c,t,i) { real Lamd, constant_1, constant_2, x, y; C_CENTROID(x,c,t); constant_1 = XXXXXXX; constant_2 = XXXXXXX; x = C_CENTROID(x,c,t)[0]; y = C_CENTROID(x,c,t)[1]; Lamd=constant_1*x+constant_2*y; return Lamd; } Change XXXXX for the values of your constant. After that, once you create an UDS, you can define this as your diffusivity for the new scalar. |
||
February 21, 2016, 17:32 |
|
#5 |
New Member
walied
Join Date: Aug 2014
Posts: 16
Rep Power: 12 |
thank you Bruno Machado for your kind reply
but still there are some questions. 1- does i compile the function as the same way of the UDF compilations? 2- from where can i assign the function to a domain....from the material panel like the UDF or what? 2- there are uds_0,uds_1 and so on............ at which uds can i define the function or i should define a new uds? THANKS |
|
February 21, 2016, 17:50 |
|
#6 | |||
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
Quote:
Quote:
|
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for specific heat and electrical conductivity | walied123 | Fluent UDF and Scheme Programming | 4 | February 20, 2015 07:17 |
IAPWS water properties + orthotropic thermal conductivity | Chander | CFX | 1 | February 29, 2012 18:26 |
Electrical conductivity of water in FLUENT | ppcf | FLUENT | 0 | August 29, 2011 21:30 |
Help with electrical conductivity in Fuel cells | Golnaz | FLUENT | 3 | June 17, 2011 17:21 |
How to add electrical conductivity in user defined | sangeeta | FLUENT | 1 | March 29, 2011 13:29 |