# How can I create a Solid mesh for working with the nearest neighbor mapping?

**URL:** <https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243>\
**Category:** Non-preCICE\
**Tags:** data-mapping, calculix, inactive\
**Created:** [May 15, 2020, 5:18pm UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243 "2020-05-15T17:18:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JessicaMarino](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@JessicaMarino](https://precice.discourse.group/u/JessicaMarino)\
**Post date:** [May 15, 2020, 5:18pm UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/1 "2020-05-15T17:18:26Z")

</div>

Hi, I want to test the np mapping for my problem “the dam-break hitting an elastic vertical flap”. I create a tetrahedral grid and generate a file for the surface information, they are attached here. However, my coupling interrupts after a few iterations. Therefore, I do not sure if my Solid grid is adequate. Can anyone help me with an example of the grid files? or explain to me what is wrong in my files…

Thank you in advance for your help.  
[surface.sur](https://precice.discourse.group/uploads/short-url/cf9kDLbULhvaK6Pb97IMUGPDVy5.sur) (541 Bytes) [mesh\_C3D10.inp](https://precice.discourse.group/uploads/short-url/hmorQcJl4pkH1BULI0gw3tQLLBz.inp) (20.3 KB)

---

<div class="post-metadata">

**Author:** ![KyleDavisSA](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/kyledavissa/32/108_2.png) [@KyleDavisSA](https://precice.discourse.group/u/KyleDavisSA)\
**Post date:** [May 20, 2020, 6:12am UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/2 "2020-05-20T06:12:18Z")

</div>

Hi, could you post the .nam files for the complete CalculiX mesh and the log output of the solvers? NP mapping works with tetrahedral grids so I am not sure if that is the issue or not. From an initial look the files you posted seem correct.

---

<div class="post-metadata">

**Author:** ![JessicaMarino](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@JessicaMarino](https://precice.discourse.group/u/JessicaMarino)\
**Post date:** [May 20, 2020, 12:35pm UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/3 "2020-05-20T12:35:54Z")

</div>

Hi Kyle,

These are all the files related to Calculix:

[https://drive.google.com/open?id=1zdSmAn7t98dAaq7rsuftBynxmyBW7nnN](https://drive.google.com/open?id=1zdSmAn7t98dAaq7rsuftBynxmyBW7nnN)

I generated a tetrahedral grid of C3D10 elements in Salome and then I converted it to Calculix format using Unical. I think that my problem is related to the solid grid or to the np mapping because I run the same case with hexahedral mesh and the same coupling parameters using rbf mapping and I did not have problems to early in the simulation. In fact, until then the forces on the structure are negligible.

Thank you very much for your help.

Jessica

---

<div class="post-metadata">

**Author:** ![KyleDavisSA](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/kyledavissa/32/108_2.png) [@KyleDavisSA](https://precice.discourse.group/u/KyleDavisSA)\
**Post date:** [May 26, 2020, 2:26pm UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/4 "2020-05-26T14:26:48Z")

</div>

Hi Jessica,

I can’t see any problems with the mesh itself. I have never had a problem generating a surface file from Salome before. I noticed in the results _flap.frd_ that one of the vertices at the top remains zero while the other points do not. Looks like it is accidnetally fixed, but can’t see that in the files. I could not repeat this result by using CalculiX only, which indicates that the _.nam_ files are not the issue.

Is the problem in the figure below repeated with other mapping parameters for this mesh, such as RBF and NN?

![Screenshot from 2020-05-26 16-23-00](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/b7e45b9d6381d38351d8b956ca72e891f5a42afb.png)

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [July 1, 2020, 9:30pm UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/5 "2020-07-01T21:30:46Z")

</div>

> [@KyleDavisSA](#):
>
> I noticed in the results _flap.frd_ that one of the vertices at the top remains zero while the other points do not. Looks like it is accidnetally fixed, but can’t see that in the files. I could not repeat this result by using CalculiX only, which indicates that the _.nam_ files are not the issue.

Could this actually be related to [this issue with the SU2-CalculiX perpendicular flap tutorial](https://github.com/precice/tutorials/issues/90)?

@JessicaMarino did anything help you resolve this?

---

<div class="post-metadata">

**Author:** ![JessicaMarino](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@JessicaMarino](https://precice.discourse.group/u/JessicaMarino)\
**Post date:** [July 2, 2020, 6:35am UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/6 "2020-07-02T06:35:58Z")

</div>

I couldn’t find the reason and changed to use the other mapping techniques

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [October 29, 2020, 8:36am UTC](https://precice.discourse.group/t/how-can-i-create-a-solid-mesh-for-working-with-the-nearest-neighbor-mapping/243/7 "2020-10-29T08:36:54Z")

</div>

2 posts were split to a new topic: [How to create a .sur file in CalculiX?](https://precice.discourse.group/t/how-to-create-a-sur-file-in-calculix/373)
