How Does Mesh Size Affect Heat Transfer Modeling in COMSOL?

In summary, the conversation discussed a student's attempt to model heat transfer from a heated cylinder using FEA and COMSOL. The cylinder had a diameter of 0.18 m and a height of 0.36 m, with holes from one side to the other. The student was interested in finding the temperature of the cylinder in steady state and had questions about the number of elements needed in the mesh and its effect on accuracy. The expert suggested that 170,000 elements was too many for a simple temperature profile and that a mesh convergence study may not be necessary for this problem. They also recommended simplifying the mesh by removing unnecessary elements, and advised the student to have an analytical solution as a reference. The conversation ended with a
  • #1
GT1
129
0
I'm a student with no much experience with FEA and COMSOL. I'm trying to model the heat transfer from a heated cylinder. The cylinder has diameter of about 0.18 m and height of 0.36 m. The cylinder is hollow with holes from one side to the other side.
I'm interesting in finding the temperature of the cylinder on steady state.
my questions are:
1. How much elements the mesh should have? I just want to know the average temperature of the cylinder, I'm not interesting in some boundary effects or some thing like this. The mesh I have now has 170,000 elements. Is it enough for this kind of problem? When I try to model something, how do I know what is a reasonable size for the mesh?
2.Does the size of the mesh effects the accuracy of the whole solution? If a problem solved once with fine mesh and once with coarse mesh, would the average temperature of the whole object will be different?
 
Engineering news on Phys.org
  • #2
GT1 said:
1. How much elements the mesh should have? I just want to know the average temperature of the cylinder, I'm not interesting in some boundary effects or some thing like this. The mesh I have now has 170,000 elements. Is it enough for this kind of problem? When I try to model something, how do I know what is a reasonable size for the mesh?

170,000 elements is too many if you're just looking for a simple tempertuare profile and aren't conncerned about boudnary effects. Without a picture of your geometry and mesh, I would think you could have a mesh of around 10,000 and very easily accomplish what you're wanting. Of course, if you want an average tempertaure you could just solve for it analytically, it sounds like a fairly straightforward problem.

As for how to know if the mesh is fine enough, the user has to excersise some engineering discretion. You decide based on what you know about the problem, where the areas of interest are, and what values you are expecting based on some simple analytical modeling or empirical testing. Usually experienced users know if a mesh is fine enough just by looking at it and knowing what is being solved for and how accurate the result must be.

GT1 said:
2.Does the size of the mesh effects the accuracy of the whole solution? If a problem solved once with fine mesh and once with coarse mesh, would the average temperature of the whole object will be different?

It depends on the geometry, the problem description, and what you're solving for. Generally there is a method called a "mesh convergence study" where the mesh is incrementally refined and results are compared to see if their change is greater than a certain percent value. If the mesh is refined and nothing changes (or the changes are below some threshhold, say 5%) the mesh has "converged."

For a problem such as you're describing it, I seriously doubt a mesh convergence study will be required.
 
Last edited:
  • #3
Mech_Engineer said:
170,000 elements is too many if you're just looking for a simple tempertuare profile and aren't conncerned about boudnary effects. Without a picture of your geometry and mesh, I would think you could have a mesh of around 10,000 and very easily accomplish what you're wanting. Of course, if you want an average tempertaure you could just solve for it analytically, it sounds like a fairly straightforward problem.

Thanks Mech_Engineer!
170,000 elements is the minimum size for which the meshing succeed. I imported a CAD model (IGES) to COMSOL. The model is not a perfect cylinder, it has holes, small faces, short edges etc, and every time I tried to mesh it with coarser mesh, it failed.
Maybe I don't know how to mesh it right. Do you have meshing tips?
 
  • #4
GT1 said:
Thanks Mech_Engineer!
170,000 elements is the minimum size for which the meshing succeed. I imported a CAD model (IGES) to COMSOL. The model is not a perfect cylinder, it has holes, small faces, short edges etc, and every time I tried to mesh it with coarser mesh, it failed.
Maybe I don't know how to mesh it right. Do you have meshing tips?


Hmm, well if the part has complex geometry like little holes and stuff, you'll have to keep the mesh where its at. It's important to keep in mind that if you don't really care about precise temperature distributions around certain geometry elements, you can help make the mesh simpler by removing those elements. Also, removing things like countersinks, chamfers, and radiused edges will help simplify the mesh dramatically.

A mesh with 170,000 elements may be too large for a "regular" computer to solve, it depends on how much ram and hard drive space you have available. Let me also stress again that you'll probably want to have some analytical calculations so you have a ballpark estimate of what the FEA answer will be.
 
Last edited:
  • #5
I agree with Mech, get yourself an analytic solution to start with. The solution to the heat equation for a cylinder is a Bessel function IIRC. You should be able to easily find an exact equation.
 
  • #6
One of the things that characterizes FEA, is the need to simplify your model according to what you want to know. If the little holes have no influence on your final solution, simply leave them out. If you are interested in a simple cylinder, model the cylinder and leave everything else out :)
 
  • #7
Can I just squeeze in a little question here?

In the 'extremely coarse' mesh in comsol, what is the mesh size? I need the mesh size details, and they don't seem to be mentioned in the free mesh parameters...please suggest.
 

Related to How Does Mesh Size Affect Heat Transfer Modeling in COMSOL?

1. What is COMSOL and what is its purpose?

COMSOL is a software platform used for multiphysics modeling and simulation. Its purpose is to allow scientists and engineers to create virtual prototypes of their designs and analyze them using Finite Element Analysis (FEA) methods.

2. How does FEA work?

FEA is a numerical method used to solve partial differential equations that describe the behavior of physical systems. It divides a complex problem into smaller, simpler elements and uses mathematical techniques to calculate the behavior of each element. The results are then combined to provide an overall solution to the problem.

3. What types of problems can be solved using COMSOL and FEA?

COMSOL and FEA can be used to solve a wide range of problems in various fields such as mechanical, electrical, thermal, and chemical engineering. Some examples include stress and strain analysis, heat transfer, fluid flow, and electromagnetics.

4. Is COMSOL user-friendly for beginners?

COMSOL has a user-friendly interface and provides a variety of tutorials and resources for beginners. However, some prior knowledge of FEA and numerical methods is recommended to fully utilize the software's capabilities.

5. Can COMSOL handle large and complex simulations?

Yes, COMSOL is designed to handle large and complex simulations with its high-performance computing capabilities. It also offers parallel computing options to speed up the simulation process and handle even larger models.

Similar threads

Replies
15
Views
2K
Replies
2
Views
2K
  • Mechanical Engineering
Replies
6
Views
1K
  • Thermodynamics
Replies
5
Views
1K
  • Mechanical Engineering
Replies
13
Views
2K
Replies
7
Views
6K
  • General Engineering
Replies
6
Views
2K
  • Mechanical Engineering
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • Mechanical Engineering
Replies
1
Views
2K
Back
Top