# How to import more than one geometry (STL), to be meshed in the same project?

**URL:** <https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790>\
**Category:** Fluid Flow / CFD\
**Created:** [June 9, 2016, 10:23am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790 "2016-06-09T10:23:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 10:23am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/1 "2016-06-09T10:23:31Z")

</div>

Hi there,

I am currently trying to get into SimScale, starting with the generation of a mesh for CFD,external flows.  
I would like to insert more than one geoemtry to generate my final mesh: I need the aerodynamic model, wind tunnel, cellZones, refinementBoxes. But I can’t find the way to do it. If I upload a new geometry, it seems like it’s going to create 2 separate meshes.

Furthermore, is it possible to assign different meshing features (refinement levels, number of layers) for each PID on the model??

Thank you very much.  
Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 10:34am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/2 "2016-06-09T10:34:35Z")

</div>

Hi @DanieleObiso,

wind tunnel meshing, generation of cell zones (I guess for a rotating region?) and using boxes for local refinement is supported in the “Hex-dominant parametric” mesh operation. What’s not supported as of now is the combination of multiple STLs **within** SimScale. But the easiest way to achieve that is to merge your STLs before uploading them. If you’re using linux, simply hit

cat file1.stl file2.stl file3.stl \> combinedFile.stl

and upload the combined file. Single solids will be detected and you’ll be able to use them for assignment purposes.

Hope that helps!

Best,

David

---

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 10:38am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/3 "2016-06-09T10:38:01Z")

</div>

Hi David,

thank you very much. I will merge them.  
What about the last question? How can I differentiate the meshing parameters for each PID?

Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 10:46am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/4 "2016-06-09T10:46:13Z")

</div>

Hi Daniele,

yes, you can assign different local refinement types (surface, region, feature, layers) and control all their properties locally per face. Not quite sure though what you mean with PID - patch ID?

Best,

David

---

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 12:24pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/5 "2016-06-09T12:24:21Z")

</div>

Yes exactly, but I found out how to manage it.

Just a short question: I generated the mesh, and the process is finished (I can see the log file). However the job is still running/computing, and I cannot visualize the mesh (it’s already 30 min after). Is there some transfer job after the runs?

Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 12:32pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/6 "2016-06-09T12:32:03Z")

</div>

Hi @DanieleObiso,

yes, there is some post-processing with the mesh happening after the actual mesh generation is done (visualization, quality analysis, persistence etc.) - that can take some time if the mesh is very large but 30 min sounds **very** long. If you can see the log, how many cells were generated?

Best,

David

---

<div class="post-metadata">

**Author:** ![akosior](https://www.simscale.com/forum/letter_avatar/akosior/32/6_449c533f586939b6e5f246632a46421f.png) [@akosior](https://www.simscale.com/forum/u/akosior)\
**Post date:** [June 9, 2016, 12:36pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/7 "2016-06-09T12:36:35Z")

</div>

Hi @DanieleObiso,

did you try to reload your project? It works sometimes for me.

Best,  
Andrzej

---

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 12:43pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/8 "2016-06-09T12:43:06Z")

</div>

@dheiny,  
the model is not so big, 4.5e06 cells.

@akosior  
I tried to reload, but it doesn’t work.

I will wait some time more.  
Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 12:54pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/9 "2016-06-09T12:54:31Z")

</div>

@DanieleObiso,

5 million cells should be a breeze, so that can’t be the reason. Is it a public project by any chance?

Best,

David

---

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 12:57pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/10 "2016-06-09T12:57:39Z")

</div>

The run is now ended.  
But looking to results, I am not so happy. It seems that snappy and layer were not processed.  
Yes, you can look for my name. it’s a small project for an application process by SimScale.

Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 1:47pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/11 "2016-06-09T13:47:28Z")

</div>

Ah - that one?

 ![](https://www.simscale.com/forum/uploads/default/original/2X/4/4ac01c1f6e12299153f83199f68135254382f6c8.png)

I think you already deleted the old mesh, right? For “debugging” purposes I typically simply duplicate the setup, tweak and run again - that way you can review old meshes.

I’ll give it a shot myself.

Best,

David

---

<div class="post-metadata">

**Author:** ![DanieleObiso](https://www.simscale.com/forum/letter_avatar/danieleobiso/32/6_449c533f586939b6e5f246632a46421f.png) [@DanieleObiso](https://www.simscale.com/forum/u/DanieleObiso)\
**Post date:** [June 9, 2016, 1:52pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/12 "2016-06-09T13:52:37Z")

</div>

Thank you.  
But slowly I am going to get it. I am used to OpenFOAM dictionaries and a GUI needs time 😁

Thanks for support.  
Daniele

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [June 9, 2016, 2:40pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/13 "2016-06-09T14:40:13Z")

</div>

Gave it a little spin:

 ![](https://www.simscale.com/forum/uploads/default/original/2X/9/9472b6ea6926a8667971b1b5addcd861d1ccb42b.png)

---

<div class="post-metadata">

**Author:** ![endeesto](https://www.simscale.com/forum/letter_avatar/endeesto/32/6_449c533f586939b6e5f246632a46421f.png) [@endeesto](https://www.simscale.com/forum/u/endeesto)\
**Post date:** [March 20, 2017, 2:45pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/14 "2017-03-20T14:45:32Z")

</div>

Hi,

I have the same problem with the geometry and i do not know how to upload a model made of different STL files. I do not have linux so is there any other way to make it?

Thank you.  
Enrique

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [March 20, 2017, 4:41pm UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/15 "2017-03-20T16:41:13Z")

</div>

Hi @endeesto !

You can have a look at this thread **[F1 Session - Merging STL files](https://www.simscale.com/forum/t/step-by-step-tutorial-homework-of-session-4/58482)**

@anon96223049 explains in detail what you have to do if you do not have a linux distribution on your machine.

Tell me if that helped!

Good luck and happy SimScaling!

Jousef

---

<div class="post-metadata">

**Author:** ![endeesto](https://www.simscale.com/forum/letter_avatar/endeesto/32/6_449c533f586939b6e5f246632a46421f.png) [@endeesto](https://www.simscale.com/forum/u/endeesto)\
**Post date:** [March 21, 2017, 10:19am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/16 "2017-03-21T10:19:53Z")

</div>

Hii!  
Thanks for the video it was really helpful but I still have some small problems. I do not understand how he merges the files. I have all the .stl files of my model but i do not understand the way he merges them into a one single file. In the video it is shown in the minute 1:41:10 if i am correct and that is the way to merge the files.  
What text editor can I use to do it because the one i have doesn’t work

Thanks for the help in advance  
Enrique

---

<div class="post-metadata">

**Author:** ![anon18194957](https://www.simscale.com/forum/letter_avatar/anon18194957/32/6_449c533f586939b6e5f246632a46421f.png) [@anon18194957](https://www.simscale.com/forum/u/anon18194957)\
**Post date:** [March 21, 2017, 10:27am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/17 "2017-03-21T10:27:47Z")

</div>

Hi Enrique,

Notepad ++ should work, you can download it at the link below:

[https://notepad-plus-plus.org/](https://notepad-plus-plus.org/)

There are step-by-step instructions if you scroll down through the tutorial. Let me know if that helps.

Best,  
Anna

---

<div class="post-metadata">

**Author:** ![endeesto](https://www.simscale.com/forum/letter_avatar/endeesto/32/6_449c533f586939b6e5f246632a46421f.png) [@endeesto](https://www.simscale.com/forum/u/endeesto)\
**Post date:** [March 21, 2017, 11:12am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/18 "2017-03-21T11:12:04Z")

</div>

Hi Anna,  
What format do I have to export binary or ASCII? because the ASCII changes the piece and the binary makes problems with the Notepad++.

Thanks for the help  
Enrique

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [March 21, 2017, 11:29am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/19 "2017-03-21T11:29:13Z")

</div>

Hi @endeesto,

As mentioned by @anon18194957 it is all written in the thread posted by me. There is also explained that you have to use the ASCII format.

Let me know how it goes 😉

Cheers,

Jousef

---

<div class="post-metadata">

**Author:** ![endeesto](https://www.simscale.com/forum/letter_avatar/endeesto/32/6_449c533f586939b6e5f246632a46421f.png) [@endeesto](https://www.simscale.com/forum/u/endeesto)\
**Post date:** [March 21, 2017, 11:59am UTC](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790/20 "2017-03-21T11:59:59Z")

</div>

Hi  
Thank you for your quick answers. I have done exactly as the tutorial and when I tried to upload it gave me an error. This is the project:

> **[SimScale Login](https://www.simscale.com/workbench/?pid=679177550515253479#tab_0-0)**
>
> Log in to your SimScale account. SimScale makes high-fidelity engineering simulation technically and economically accessible. At any scale. In the cloud.

Also when I open any .stl file with my cad software that I export in ASCII format the piece is not correct and has nothing to do with the real piece. I don’t know why this can be caused.

I also tried to do it with the script of the tutorial and had exactly the same result.

Any idea where the problem can be?

Thanks for the help, sorry for the trouble.  
Enrique

[Next page](https://www.simscale.com/forum/t/how-to-import-more-than-one-geometry-stl-to-be-meshed-in-the-same-project/26790.md?page=2)
