# Mapping temperature field from SPH to Calculix

**URL:** <https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456>\
**Category:** Uncategorized\
**Created:** [October 28, 2024, 7:11pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456 "2024-10-28T19:11:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LBKMEE](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@LBKMEE](https://calculix.discourse.group/u/LBKMEE)\
**Post date:** [October 28, 2024, 7:11pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456/1 "2024-10-28T19:11:20Z")

</div>

Hello all! I am trying to map my transient temperature field within a solid to Calculix to get the thermomechanical response. Imagine that I have the same exact geometry created two ways, 1-using SPH particles (point cloud) and 2- meshed for Calculix.

SPH is a meshless method and it uses much more computational elements compared to finite element or finite volume methods. I would need to down sample my results. But I was wondering how should I approach this problem?

I was thinking maybe after I mesh the geometry, I could write an algorithm to map the temperatures from the point cloud to my nodes. Can I use node (element) specified temperatures in Calculix?

Thank you!

---

<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:** [October 28, 2024, 7:13pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456/2 "2024-10-28T19:13:33Z")

</div>

You could try using ParaView for that: [How to add temperature data for external mesh? - ParaView Support - ParaView](https://discourse.paraview.org/t/how-to-add-temperature-data-for-external-mesh/5387)

---

<div class="post-metadata">

**Author:** ![LBKMEE](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@LBKMEE](https://calculix.discourse.group/u/LBKMEE)\
**Post date:** [October 28, 2024, 7:26pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456/3 "2024-10-28T19:26:25Z")

</div>

Thanks for the link. The mapping/interpolating is not the real problem, I am curious if I could import this interpolated values to Calculix? Since this is a transient simulation, there will be multiple files that Calculix would need to read and solve stresses for.

---

<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:** [October 28, 2024, 7:33pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456/4 "2024-10-28T19:33:17Z")

</div>

Once you have the nodal values, you can use them to define the initial temperature, temperature field for mechanical analysis or temperature boundary condition for thermal/coupled analysis.

---

<div class="post-metadata">

**Author:** ![LBKMEE](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@LBKMEE](https://calculix.discourse.group/u/LBKMEE)\
**Post date:** [October 28, 2024, 7:44pm UTC](https://calculix.discourse.group/t/mapping-temperature-field-from-sph-to-calculix/2456/5 "2024-10-28T19:44:59Z")

</div>

> [@Calc\_em](#):
>
> n use them to define the initial temperature, temperature field for mechanical analysis or temperature boundary condition for thermal/coupled analysis.

That’s perfect. Thank you so much!
