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.

Modelling Natural Convection

Please login with a confirmed email address before reporting spam

I'm a new user to Comsol, having used other FE and CFD packages and I'm having difficulty with getting a test model with natural convection to run successfully. I've followed the examples in the help file which work perfectly, but any model I've built myself either gives errors before the model even starts running ('Not a number' results in various nodes in the model) or fails to converge.

The test model is a heated aluminium block 30 mm x 20 mm x 1 mm high generating 1 W power, centered on the floor of a 100 mm edge cube filled with air (I know this can be done in 2D or as a quarter model, but the follow on model I want to run has no symmetry and will have the same overall boundary conditions, so getting this running would be most of the way towards the final model). The floor is insulated and has no airflow through it and the remaining boundaries of the air volume are open to flow (Walls are Inlets (I've tried with them as open boundaries too with even worse convergence), ceiling is outlet and outflow).

The results from the model that ran but remained unconverged show the whole model at a uniform temperature of 3e5 DegC, with the maximum air velocity at 5e-7 m/s (the directions of the velocity vectors show some convection movement), so it looks like the model is almost working but no energy is leaving the system and no air is flowing into or out of the system. This suggests that I'm almost definnitely using Inlet, outlet, outflow, periodic, open and wall boundaries incorrectly.

What I've found in the help files about these boundaries doesn't really help me to work out which is appropriate for my model. If there's a document that defines all these in terms of heat and flow that could well answer my questions.

The formulae I've put in for the volume force and initial temperature and pressure as per the example models.heat.circuit_board_nat_3d.pdf are all in with no errors returned from the program.

7 Replies Last Post Apr 12, 2017, 5:43 p.m. EDT
COMSOL Moderator

Hello Cormac Eason

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 29, 2012, 3:23 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: 8 years ago Apr 6, 2017, 2:44 p.m. EDT
Hello Yoav,

Thanks a lot your answer. It helped me a lot.
But there is a problem I am facing in the Convective Heat Transfer and Fluid Flow.

I am working on designing cooling plates for Li-ion batteries. there is a continuity problem in my model. The heat generated from the battery is no absorbed by the cooling plate. The plate and battery are in contact with each other.

Is there any way I can model this. I dont understand how to connect the plate and battery?

Thanks for help
Abdul Haq
Hello Yoav, Thanks a lot your answer. It helped me a lot. But there is a problem I am facing in the Convective Heat Transfer and Fluid Flow. I am working on designing cooling plates for Li-ion batteries. there is a continuity problem in my model. The heat generated from the battery is no absorbed by the cooling plate. The plate and battery are in contact with each other. Is there any way I can model this. I dont understand how to connect the plate and battery? Thanks for help Abdul Haq

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 11, 2017, 7:36 a.m. EDT
Hi,

How you coupled heat transfer and fluid modules by using non-isothermal flow multiphysics?
Maybe you haven't applied heat transfer module to both domains? Do you have any temperature gradient in flow domain?
If you still have a problem you can upload your case, I can check it (Just clear mesh and solution of the file in order to decrease file size)

Best regards,
Reza


Hello Yoav,

Thanks a lot your answer. It helped me a lot.
But there is a problem I am facing in the Convective Heat Transfer and Fluid Flow.

I am working on designing cooling plates for Li-ion batteries. there is a continuity problem in my model. The heat generated from the battery is no absorbed by the cooling plate. The plate and battery are in contact with each other.

Is there any way I can model this. I dont understand how to connect the plate and battery?

Thanks for help
Abdul Haq


Hi, How you coupled heat transfer and fluid modules by using non-isothermal flow multiphysics? Maybe you haven't applied heat transfer module to both domains? Do you have any temperature gradient in flow domain? If you still have a problem you can upload your case, I can check it (Just clear mesh and solution of the file in order to decrease file size) Best regards, Reza [QUOTE] Hello Yoav, Thanks a lot your answer. It helped me a lot. But there is a problem I am facing in the Convective Heat Transfer and Fluid Flow. I am working on designing cooling plates for Li-ion batteries. there is a continuity problem in my model. The heat generated from the battery is no absorbed by the cooling plate. The plate and battery are in contact with each other. Is there any way I can model this. I dont understand how to connect the plate and battery? Thanks for help Abdul Haq [/QUOTE]

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 11, 2017, 7:53 p.m. EDT
Hey Reza,

I used non isothermal flow to couple heat transfer and laminar flow.

I saw the example of microchannel heat sink by comsol and tried to work on it. It is still not working.

I am trying to attach the file here (with mesh and solution) . Its not accepting. Its a 7MB file.

This is my email am313@zips.uakron.edu or you can drop your contact here. I will send the file to you.

thanks a lot for the help.

Abdul Haq
Hey Reza, I used non isothermal flow to couple heat transfer and laminar flow. I saw the example of microchannel heat sink by comsol and tried to work on it. It is still not working. I am trying to attach the file here (with mesh and solution) . Its not accepting. Its a 7MB file. This is my email am313@zips.uakron.edu or you can drop your contact here. I will send the file to you. thanks a lot for the help. Abdul Haq

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 12, 2017, 5:20 a.m. EDT
Hi,

You shouldn't send it with mesh and solution, you can easily clear both of them (right click on Mesh & also right click on Study 1).

Best,
Reza
Hi, You shouldn't send it with mesh and solution, you can easily clear both of them (right click on Mesh & also right click on Study 1). Best, Reza

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 12, 2017, 5:30 a.m. EDT
I am sorry. There was typing mistakes. I meant I cannot attcah the file without mesh and results as well.

Abdul Haq
I am sorry. There was typing mistakes. I meant I cannot attcah the file without mesh and results as well. Abdul Haq

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 12, 2017, 5:43 p.m. EDT
Sent you an email.
Sent you an email.

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.