# Weird simulation behavior, gas seems to be inside the geometry

**URL:** <https://molflow-forum.web.cern.ch/t/weird-simulation-behavior-gas-seems-to-be-inside-the-geometry/643>\
**Category:** General discussion\
**Tags:** molflow\
**Created:** [July 29, 2024, 8:18pm UTC](https://molflow-forum.web.cern.ch/t/weird-simulation-behavior-gas-seems-to-be-inside-the-geometry/643 "2024-07-29T20:18:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaarda](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@Sjaarda](https://molflow-forum.web.cern.ch/u/Sjaarda)\
**Post date:** [July 29, 2024, 8:18pm UTC](https://molflow-forum.web.cern.ch/t/weird-simulation-behavior-gas-seems-to-be-inside-the-geometry/643/1 "2024-07-29T20:18:40Z")

</div>

hi all, I’m just getting started with molflow and i running into some issues. right now when i start a simulation the lines from the simulation to be inside the walls of my vacuum tube, rather than the internal cavity where it should be, an image is shown below. i think i might have an issue with my geometry. if you can give me any advice that would be greatly appreciated.

 ![image](https://molflow-forum.web.cern.ch/uploads/default/original/1X/ccbeb91e23601655a72d7d636bed9ea6192db20f.jpeg)

---

<div class="post-metadata">

**Author:** ![maarton](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@maarton](https://molflow-forum.web.cern.ch/u/maarton)\
**Post date:** [July 30, 2024, 7:22am UTC](https://molflow-forum.web.cern.ch/t/weird-simulation-behavior-gas-seems-to-be-inside-the-geometry/643/2 "2024-07-30T07:22:24Z")

</div>

1. The immediate cause is that the STL defines normals to point towards the solid part of the body. You need to do Facet menu → Swap normal on all facets. More info on normal vectors in Molflow: [Documentation: Facet parameters | MolFlow+ and SynRad+](https://molflow.web.cern.ch/node/74) (see Sides section)
2. We recommend to model the geometry inside out, that is, the vacuum part only as a solid: [Designing geometries for Molflow - MolFlow+ / SynRad+ documentation](https://molflow.docs.cern.ch/guide/molflow/general/designing_geometries/)
3. If that’s too difficult, you can use the Smart Select to quickly remove the outer layer which is not hit by facets.
