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.

Meshing large domain

Please login with a confirmed email address before reporting spam

Hi,

Does anybody know how to speed up meshing process of large domains? It takes hours to finish meshing using my i7 CPU 64GB RAM? Are there tips in COMSOL or in the hardware that I can replace? I should mention that the the domain contains two different meshes: very fine (mm size) and coarser mesh (m size).

Kind regards, Taofik


4 Replies Last Post 19 apr 2024, 05:50 GMT-4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 7 months ago 16 apr 2024, 12:37 GMT-4

There are a variety of mesh settings available. If you have adjoining surfaces with different mesh sizes, then Comsol Multiphysics will attempt to connect the meshes smoothly (shrinking elements on the coarser side, at/near the boundary with the finer side). For a huge difference in mesh sizes, that could take a long while and also can yield poor results, if not managed carefully. But without seeing what/how you have set up your problem, it is uncertain why your particular meshing process is taking so long. A problematic geometry can cause an increase in meshing time, while the software attempts to improve the mesh quality. If you are not already doing so, you should take careful and manual control of the meshing process. Choose your mesh(es) in detail in accordance with the physics being represented. If you post your model to the forum, you may get more helpful advice.

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
There are a variety of mesh settings available. If you have adjoining surfaces with different mesh sizes, then Comsol Multiphysics will attempt to connect the meshes smoothly (shrinking elements on the coarser side, at/near the boundary with the finer side). For a huge difference in mesh sizes, that could take a long while and also can yield poor results, if not managed carefully. But without seeing what/how you have set up your problem, it is uncertain why your particular meshing process is taking so long. A problematic geometry can cause an increase in meshing time, while the software attempts to improve the mesh quality. If you are not already doing so, you should take careful and manual control of the meshing process. Choose your mesh(es) in detail in accordance with the physics being represented. If you post your model to the forum, you may get more helpful advice.

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 18 apr 2024, 07:20 GMT-4

Thanks Robert for your reply. I will describe the model briefly: a steel pipe with size 2.3" (ID) is transmitting a cold fluid (at different rates) the pipe is buried underground and extends for few km's. I want to monitor temperature change of the fluid over time. I took around 10 m solid material aound the pipe to observe how T is changing. Because the flow is turbulent, the mesh in the pipe must be extremely fine and in the solid material is much coarser. I created the mesh myself using mapped mesh in the pipe and trinagular mesh in the solid phase (fine close to the pipe and coarser as it extends far away).

Kind regards,

Thanks Robert for your reply. I will describe the model briefly: a steel pipe with size 2.3" (ID) is transmitting a cold fluid (at different rates) the pipe is buried underground and extends for few km's. I want to monitor temperature change of the fluid over time. I took around 10 m solid material aound the pipe to observe how T is changing. Because the flow is turbulent, the mesh in the pipe must be extremely fine and in the solid material is much coarser. I created the mesh myself using mapped mesh in the pipe and trinagular mesh in the solid phase (fine close to the pipe and coarser as it extends far away). Kind regards,

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 18 apr 2024, 08:45 GMT-4
Updated: 6 months ago 18 apr 2024, 08:45 GMT-4

Hello Taofik,

You should consider using the Pipe Flow Module, as this would eliminate the need for a fine mesh in the pipe.

Best,

Jeff

-------------------
Jeff Hiller
Hello Taofik, You should consider using the [Pipe Flow Module](https://www.comsol.com/pipe-flow-module), as this would eliminate the need for a fine mesh in the pipe. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 6 months ago 19 apr 2024, 05:50 GMT-4

Thanks Jeff for the hint. I'll try it.

Kr, Taofik

Thanks Jeff for the hint. I'll try it. Kr, Taofik

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.