Electrical conductivity
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 |
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 |
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 |
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. |
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 |
Quote:
Quote:
Quote:
|
All times are GMT -4. The time now is 05:18. |