Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

COMSOL, Joule Heating, heat transfer and... gravity? natural convection?

Please login with a confirmed email address before reporting spam

Hi all,

My issue is really simple.

I have a simple wire. Electrical potential and ground, one in each end, I apply voltage, and using a "h" and a "Text" in Heat Flux (in the Joule Heating module), and I OBTAIN DIFFERENT temperatures, depending if I set the wire along the Z axis, or along de X axis ¬¬.

Is this due to the natural convection? in this case... why? I do not define air around the wire...

This is really strange for me.

Do you have any idea about why I am obtaining theses results?

Thanks!!

5 Replies Last Post May 31, 2012, 7:50 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 17, 2011, 4:51 p.m. EDT
Hi

I believe you must describe a bit more your model, as for Joule effects, there should be no difference in either "direction" so long you have the same input voltage, wire material, length & section and heat exchange environment. There is no "gravity by default" in COMSOL, you must specify it as a body force density of the type

F[N/m^3] = rho[kg/m^3]*g_const (defined on a domain)

And convection is something you define on the boundaries

So are you 100% sure your models are identical ?

My final advice, forget the earlier version and use only the latest patched V4.2, in particularly for CFD issues

--
Good luck
Ivar
Hi I believe you must describe a bit more your model, as for Joule effects, there should be no difference in either "direction" so long you have the same input voltage, wire material, length & section and heat exchange environment. There is no "gravity by default" in COMSOL, you must specify it as a body force density of the type F[N/m^3] = rho[kg/m^3]*g_const (defined on a domain) And convection is something you define on the boundaries So are you 100% sure your models are identical ? My final advice, forget the earlier version and use only the latest patched V4.2, in particularly for CFD issues -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 18, 2011, 3:09 a.m. EDT
Thanks for the quick reply :-)

It was the first time I posted in this forum, and I am starting with Comsol, so I am happy of knowing that I can find help here. Thanks!

I have discovered that my problem was related with the size of the mesh. I had only 2 elements in each section of the cylinder.

By the way, do you know any theorem or rule to know how many elements (mesh) do you need in function of the size/curvature of the model to have correct calculations?

I am totally noob in FEM!!

thanks again!
Thanks for the quick reply :-) It was the first time I posted in this forum, and I am starting with Comsol, so I am happy of knowing that I can find help here. Thanks! I have discovered that my problem was related with the size of the mesh. I had only 2 elements in each section of the cylinder. By the way, do you know any theorem or rule to know how many elements (mesh) do you need in function of the size/curvature of the model to have correct calculations? I am totally noob in FEM!! thanks again!

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 18, 2011, 6:26 a.m. EDT
Hi

the mesh size must be such that you resolve correctly the steepest gradients, (and that you remain inside the available AM of your PC). If you do a search on the Forum, you will find several discussions about mesh size for different types of physics

--
Good luck
Ivar
Hi the mesh size must be such that you resolve correctly the steepest gradients, (and that you remain inside the available AM of your PC). If you do a search on the Forum, you will find several discussions about mesh size for different types of physics -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 31, 2012, 4:54 a.m. EDT
Hi all
i must say this is like the 5th thread i see dealing with natural convection and problems with the analysis.
this is also not the first time i have seen reference to "natural convection must be solved under transient solver".

well, the solution to the whole natural convection problem is complex but possible in both STATIONARY and TRANSIENT (i personally prefer for engineering application to use the stationary solution unless i am interested in the "Ramp-up" process) if only you define the physics properly , see below:

the system:
1. you need to create a large enough volume of fluid around the object to make sure that you don't get artifacts in the computation field due to the boundaries (usually 2-5 times the nominal dimension of the object in length in all directions)
2. define the fluid field: under 'absolute pressure' choose "pressure(nitf/fluid1)" , and as reference pressure enter the ambient pressure.

Mesh:
1. choose a "fine" mesh for most cases where the geometry is more elaborate then cubic presentations (you need a fine enough mesh to capture the fine temperature gradients in the near wall region, as well as the sharp directional acceleration gradients of the velocity field from the entrainment into the plum)

Boundary conditions:
1. the face where the plum (the heat plum raising from the object) is to be defined as "outflow" (under heat transfer BC) AND "outlet" (under laminar BC - set P0=P, ambient)
2. the faces where the fluid enters the system (to satisfy the entrainment of the plum) is to be defined as "open boundary" (with "no viscus stress" condition and T0=T, ambient)
3. Volume force, is to be defined as "-g_const*(nitf.rho-rho_ref)"
4. heat source, what ever is relevant to you system.

summation of BC:
1. volume force
2. open boundary
3. outflow
4. outlet
5. heat source

Solver:
1. choose the stationary solver and change
under study>solver configurations>solver1>fully coupled 1 , change the 'damping and termination' definition to being "automatic highly non-linear"

regarding convergence in Stationary studies:
as we all know and like you can find in many places in the literature, indeed natural convection has a transient element to it, as the plum and flow field fluctuates along the heated surface, HOWEVER, there is still the possibility to achieve a Stationary study that complies with the system.

the thing is, should you run a stationary solver, you will see that after some iterations as the convergence 'green bar' goes all the way to 90% it will then drop sharply to approximately 50%... this phenomena will fluctuate back and forth ENDLESSLY!
what you need to understand it that this is happening because the solver set on one solution then loss stability as it "moves" to another.

What you need to do: let the solution fluctuates aback and forth 1-2 times, once you see the pattern - stop the solver, and there you have it!!! - your solution (you will see that should you stop the solver at a different fluctuation the flow filed will look slightly different 'Plum-wise' but the temperature will be identical)

i have attached a working example, that has been lab tested to make sure the solver results are accurate.

Best regards to all
M.sc Yoav matia.
Hi all i must say this is like the 5th thread i see dealing with natural convection and problems with the analysis. this is also not the first time i have seen reference to "natural convection must be solved under transient solver". well, the solution to the whole natural convection problem is complex but possible in both STATIONARY and TRANSIENT (i personally prefer for engineering application to use the stationary solution unless i am interested in the "Ramp-up" process) if only you define the physics properly , see below: the system: 1. you need to create a large enough volume of fluid around the object to make sure that you don't get artifacts in the computation field due to the boundaries (usually 2-5 times the nominal dimension of the object in length in all directions) 2. define the fluid field: under 'absolute pressure' choose "pressure(nitf/fluid1)" , and as reference pressure enter the ambient pressure. Mesh: 1. choose a "fine" mesh for most cases where the geometry is more elaborate then cubic presentations (you need a fine enough mesh to capture the fine temperature gradients in the near wall region, as well as the sharp directional acceleration gradients of the velocity field from the entrainment into the plum) Boundary conditions: 1. the face where the plum (the heat plum raising from the object) is to be defined as "outflow" (under heat transfer BC) AND "outlet" (under laminar BC - set P0=P, ambient) 2. the faces where the fluid enters the system (to satisfy the entrainment of the plum) is to be defined as "open boundary" (with "no viscus stress" condition and T0=T, ambient) 3. Volume force, is to be defined as "-g_const*(nitf.rho-rho_ref)" 4. heat source, what ever is relevant to you system. summation of BC: 1. volume force 2. open boundary 3. outflow 4. outlet 5. heat source Solver: 1. choose the stationary solver and change under study>solver configurations>solver1>fully coupled 1 , change the 'damping and termination' definition to being "automatic highly non-linear" regarding convergence in Stationary studies: as we all know and like you can find in many places in the literature, indeed natural convection has a transient element to it, as the plum and flow field fluctuates along the heated surface, HOWEVER, there is still the possibility to achieve a Stationary study that complies with the system. the thing is, should you run a stationary solver, you will see that after some iterations as the convergence 'green bar' goes all the way to 90% it will then drop sharply to approximately 50%... this phenomena will fluctuate back and forth ENDLESSLY! what you need to understand it that this is happening because the solver set on one solution then loss stability as it "moves" to another. What you need to do: let the solution fluctuates aback and forth 1-2 times, once you see the pattern - stop the solver, and there you have it!!! - your solution (you will see that should you stop the solver at a different fluctuation the flow filed will look slightly different 'Plum-wise' but the temperature will be identical) i have attached a working example, that has been lab tested to make sure the solver results are accurate. Best regards to all M.sc Yoav matia.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 31, 2012, 7:50 a.m. EDT
Thanks a lot!!
Thanks a lot!!

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.