# Optimizing Performance for Simulation with Large Input Data

**URL:** <https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052>\
**Category:** Uncategorized\
**Created:** [February 1, 2024, 11:21am UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052 "2024-02-01T11:21:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhavita](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@Bhavita](https://calculix.discourse.group/u/Bhavita)\
**Post date:** [February 1, 2024, 11:21am UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052/1 "2024-02-01T11:21:52Z")

</div>

Hello,

I am working with an input that has 16,955,568 nodes, 16,758,266 elements, and 266 steps. My machine has 40 cores, and I’ve set OMP\_NUM\_THREADS=38. However, the simulation is taking a considerable amount of time, and it has been running for the past 4 hours, only completing step 2. How can I solve this issue and improve the simulation’s performance and speed?

Thanks,  
Bhavita

---

<div class="post-metadata">

**Author:** ![SergioP](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/sergiop/32/10_2.png) [@SergioP](https://calculix.discourse.group/u/SergioP)\
**Post date:** [February 1, 2024, 12:06pm UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052/2 "2024-02-01T12:06:58Z")

</div>

Decrease the size of the model for an initial run, and after that refine on the parts or zones were they realy need more elements. Have you removed small radius and features of your CAD model, use simmetry and shell/beams elements were it could be used?

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 1, 2024, 1:09pm UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052/3 "2024-02-01T13:09:57Z")

</div>

It’s a massive model with almost 17 mln nodes and hundreds of steps. Better save restart data because you don’t want to run this again after it fails in step 158 for some reason.

Are you sure the mesh has to be so large ? Is it a result of a convergence study or experience with the same kind of models or just a guess ?

---

<div class="post-metadata">

**Author:** ![Bhavita](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@Bhavita](https://calculix.discourse.group/u/Bhavita)\
**Post date:** [February 1, 2024, 1:46pm UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052/4 "2024-02-01T13:46:28Z")

</div>

yes, We are experimenting with a particular mesh size and that is why the model has so many nodes

---

<div class="post-metadata">

**Author:** ![vicmw](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vicmw](https://calculix.discourse.group/u/vicmw)\
**Post date:** [February 1, 2024, 7:33pm UTC](https://calculix.discourse.group/t/optimizing-performance-for-simulation-with-large-input-data/2052/5 "2024-02-01T19:33:27Z")

</div>

I’ve heard of poor performance with a high number of threads like that and that the maximum speed is reached around 8 threads. Maybe there’s some slightly higher peak between 8 and 38 but it’s not clear where.

How many iterations did it do for each of those two steps? That can tell you if there are gains to be made from making the solver run faster (if 1 or 2 iterations) or making the model easier to converge (if it’s 10+ iterations).
