# How to import grid with results

**URL:** <https://bempp.discourse.group/t/how-to-import-grid-with-results/347>\
**Category:** Bempp\
**Created:** [18 November 2025 03:07 UTC](https://bempp.discourse.group/t/how-to-import-grid-with-results/347 "2025-11-18T03:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![S.L](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@S.L](https://bempp.discourse.group/u/S.L)\
**Post date:** [18 November 2025 03:07 UTC](https://bempp.discourse.group/t/how-to-import-grid-with-results/347/1 "2025-11-18T03:07:18Z")

</div>

Thank you for the Bempp discussion platform! I have encountered the following issues and would like to discuss them with everyone.

My question is Can Bempp import grids with result data?  
I would like to skip the process of solving the BIE and directly import previous surface calculation results for far-field acoustic radiation computation and post-processing.  
I have attempted the code below, but it appears to only import grids without result data.

> phi\_cal = bempp.api.import\_grid(“result.msh”)

---

<div class="post-metadata">

**Author:** ![Ting\_Yau\_pku](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Ting\_Yau\_pku](https://bempp.discourse.group/u/Ting_Yau_pku)\
**Post date:** [6 March 2026 12:41 UTC](https://bempp.discourse.group/t/how-to-import-grid-with-results/347/2 "2026-03-06T12:41:12Z")

</div>

1.Save your result gridfunction and coefficients  
bempp.api.export(‘sol.msh’, grid\_function=sol)  
np.savetxt(‘coefficients.csv’, sol.coefficients.reshape(-1, 1),  
delimiter=‘,’, fmt=‘%f’)  
2.Reimport and Build Gridfunction  
grid = bempp\_cl.api.import\_grid(‘sol.msh’)  
space = bempp\_cl.api.function\_space(grid, “DP”, 0)  
data = np.loadtxt(‘coefficients.csv’, delimiter=‘,’)  
sol = bempp\_cl.api.GridFunction(space, coefficients=data)
