# Simulating silicon pixels detector in water phantom

**URL:** <https://allpix-squared-forum.web.cern.ch/t/simulating-silicon-pixels-detector-in-water-phantom/513>\
**Category:** Uncategorized\
**Created:** [February 8, 2024, 1:30pm UTC](https://allpix-squared-forum.web.cern.ch/t/simulating-silicon-pixels-detector-in-water-phantom/513 "2024-02-08T13:30:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hwennlof](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/h/3ab097/32.png) [@hwennlof](https://allpix-squared-forum.web.cern.ch/u/hwennlof)\
**Post date:** [February 9, 2024, 9:51am UTC](https://allpix-squared-forum.web.cern.ch/t/simulating-silicon-pixels-detector-in-water-phantom/513/2 "2024-02-09T09:51:35Z")

</div>

Hi @Fajer ,

Nice to hear you have it running with reasonable results!

The easiest way to perform a simulation with a detector in water would be to set `world_material = "WATER"` in `[GeometryBuilderGeant4]`.

Another way would be to change in the model configuration, and add support material with `material = WATER` around the sensor, if you want more control of the shape of the water.  
An example of this would be to add

```auto
[support]
thickness = 20mm
size = 30mm 20mm
location = "sensor"
material = "WATER"

```

to the model file, which will add 20 mm of water in front of the sensor. More info about placing passive material in this way can be found at [Detector Models | Allpix Squared](https://allpix-squared.docs.cern.ch/docs/05_geometry_detectors/02_models/#support-layers)

Kind regards,  
Håkan

---

_[View the full topic](https://allpix-squared-forum.web.cern.ch/t/simulating-silicon-pixels-detector-in-water-phantom/513)._
