Re: Magnetic field around a current carrying square bar

 Register Blogs Members List Search Today's Posts Mark Forums Read

February 28, 2014, 08:53
Re: Magnetic field around a current carrying square bar
#1
Member

Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 11
Hi,
I am working on the aforementioned problem in ANSYS FLUENT. The aim is to validate this case by implementing UDS - 3 equations for magnetic vector potential and 1 for electric scalar potential.
Approach:
I have modelled the conductor as a box and made an enclosure around it.
For the V(electric scalar pot) equation I need to define 2 separate electrical conductivity - one for air and for copper. I have defined both of these as fluids and unchecked the flow equation option.
Problem:
1. I have tried to do it using Define_Diffusivity UDF and Thread_ID, but the problem is that the conducitivity for copper is not being taken into account. It should be taken as 2700 but I am not able to comprehend why it is being taken as 85.
2. While giving the boundary conditions, FLUENT is slitting the conductor up and down walls into coupled walls and I am getting confused on how to give the boundary condition - I need to give 670 V on conductor_up and 0 V on conductor_down. How should I apply the boundary conditions
3. When I model the copper bar as solid, and solve the UDS over all zones, while initializing I am getting Unknown UDS property method error. What does this mean? Also could someone kindly tell what does "coupled wall" mean?
4. Lastly, I would like to ask does zero normal gradient of field imply that the flux is zero?
I am attaching the UDF I have written, boundary conditions to be applied and a the plot of diffusion coeff of V to highlight my problem.

Any help would be really appreciated.
Thank you,
Regards,
Yash Ganatra
Attached Images
 Boundary-Conditions.jpg (35.9 KB, 65 views) Named_Selection.jpg (28.7 KB, 58 views) CopperBar_electrical_conductivity.jpg (62.8 KB, 58 views)
Attached Files
 CopperBar_27..2_trial_2.c (5.4 KB, 77 views)
__________________
My Website:

January 11, 2019, 15:47
#3
New Member

vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 6
Quote:
Dear aestas,
i read your reply and the last part got my interest, you said you've succesfully done the electric arc simulation in fluent, and i am currently trying to do the same thing, i have the UDFs for the Temperature dependent material properties, But my issue is; in the MHD_module i cannot define the electric current/current density. and that's a known issue in this module, so i read some papers and i've seen most people import magnetic flux density into fluent using UDFs, i have succesfully solved for time dependent magnetic flux density and have it in a text file with each mesh node and time step.
but the problem is i couldn't find a way to import this to fluent, especially since it is time and space dependent, i would really appreciate it if you could tell me how it can be done.

thanks very much

 March 6, 2020, 07:11 #4 New Member   h.sanaei Join Date: Jul 2019 Posts: 3 Rep Power: 5 Hi, guys. I need to write an UDF for volumetric heat production in a 3D problem. The heat source strength is a say Exponential function of say X coordinate, e.g. q_dot=3*10000000*e^(-10(x+0.2)) W/m^3. Please help me. Thank you.

 March 6, 2020, 08:12 Source UDF #5 Senior Member     Vinerm Join Date: Jun 2009 Location: Nederland Posts: 2,946 Blog Entries: 1 Rep Power: 34 That would be straightforward. Please look at https://www.afs.enea.it/project/nept...udf/node49.htm You need to use C_CENTROID to fetch cell center coordinates and then use the equation. __________________ Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.

 March 6, 2020, 08:35 #6 New Member   h.sanaei Join Date: Jul 2019 Posts: 3 Rep Power: 5 thanks vinerm. can u help me. and send udf for me? plz

 March 6, 2020, 08:44 UDF File #7 Senior Member     Vinerm Join Date: Jun 2009 Location: Nederland Posts: 2,946 Blog Entries: 1 Rep Power: 34 The UDF is written in the link I sent. You need to copy it manually, i.e., type it yourself instead of using copy and paste. Then you can interpret or compile (if you have compiler available). I do not have any UDF file available with me. But you can certainly get help if you start doing it yourself. __________________ Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.

August 3, 2022, 08:13
#8
Member

sina
Join Date: Nov 2021
Posts: 41
Rep Power: 3
Quote:
 Originally Posted by vinerm The UDF is written in the link I sent. You need to copy it manually, i.e., type it yourself instead of using copy and paste. Then you can interpret or compile (if you have compiler available). I do not have any UDF file available with me. But you can certainly get help if you start doing it yourself.
Hello,

How can i change UDS boundary value in a Define Adjust UDF? i mean how can i call UDS boundary value to changing in a UDF of Define Adjust?

Regards,

 Tags boundary condition, fluent - udf, magnetic field, uds diffusive