# .sur file formats

**URL:** <https://calculix.discourse.group/t/sur-file-formats/1670>\
**Category:** Uncategorized\
**Created:** [May 19, 2023, 3:11pm UTC](https://calculix.discourse.group/t/sur-file-formats/1670 "2023-05-19T15:11:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [May 19, 2023, 3:11pm UTC](https://calculix.discourse.group/t/sur-file-formats/1670/1 "2023-05-19T15:11:43Z")

</div>

Hello  
Hope you are all well.  
Is there a way to generate .sur files using CGX but with a different format?

The typical .sur file generated by CGX looks like this: [Sinterface.sur](https://precice.discourse.group/uploads/short-url/q2Fe2ibvnz6W5813acnq668HHn1.sur) (23.7 KB)  
However, the one used in the 3D elastic pipe tutorial in preCICE [Elastic tube 3D | preCICE - The Coupling Library](https://precice.org/tutorials-elastic-tube-3d.html) looks like this: [interface.sur](https://precice.discourse.group/uploads/short-url/70njpX8iKOISHiw3UOdhgomd9fo.sur) (7.8 KB)

The original file ([solidtube.inp](https://precice.discourse.group/uploads/short-url/iUvNSDXRYLiaLSxat8BdtY5uXJY.inp) (730.8 KB)) results in a complete interface as shown however, when I split the file up into .nam files and a manually made .sur file, the mesh looks like the second image.

![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/7/79345208fb6c336c55b7898aa7c0938082a111ec.png)

I noticed that the .sur file generated by cgx is not the same as the .sur file in the elastic tutorial case which is why I copy and paste sets manually to make the .sur file identical to the tutorial format.

I guess that could be the issue.

I have asked about why such a format is used in the preCICE case [Collapsible Tube (OpenFOAM+CalculiX) - Official adapters and tutorials - preCICE Forum on Discourse](https://precice.discourse.group/t/collapsible-tube-openfoam-calculix/1334/32) however, just wanted to try and see if any CalculiX users know about such a file format?

Would appreciate any help.

---

<div class="post-metadata">

**Author:** ![dichtstoff](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dichtstoff](https://calculix.discourse.group/u/dichtstoff)\
**Post date:** [May 22, 2023, 5:01am UTC](https://calculix.discourse.group/t/sur-file-formats/1670/2 "2023-05-22T05:01:40Z")

</div>

Hello,

you want to outsource all sets and include it with \*INCLUDE, INPUT=

???

wbr

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [May 31, 2023, 3:36pm UTC](https://calculix.discourse.group/t/sur-file-formats/1670/3 "2023-05-31T15:36:14Z")

</div>

Yes, but I was wondering if Calculix can generate different formats for surface files? especially like this one:

> [@mishal49](#):
>
> However, the one used in the 3D elastic pipe tutorial in preCICE [Elastic tube 3D | preCICE - The Coupling Library](https://precice.org/tutorials-elastic-tube-3d.html) looks like this: [interface.sur](https://precice.discourse.group/uploads/short-url/70njpX8iKOISHiw3UOdhgomd9fo.sur) (7.8 KB)
