# Segmentation Simulation

**URL:** <https://forum.spis.org/t/segmentation-simulation/1452>\
**Category:** SPIS\
**Created:** [17 January 2025 07:28 UTC](https://forum.spis.org/t/segmentation-simulation/1452 "2025-01-17T07:28:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [17 January 2025 07:28 UTC](https://forum.spis.org/t/segmentation-simulation/1452/1 "2025-01-17T07:28:59Z")

</div>

For some reason, I need a segmentation simulation. I used the result of the previous simulation(potential) as the initial value for the next simulation, while I found that I could only initialize the surface potential but not the ground potential. Is there a better method for segmentation simulation?

---

<div class="post-metadata">

**Author:** ![frejon](https://forum.spis.org/letter_avatar_proxy/v4/letter/f/7feea3/32.png) [@frejon](https://forum.spis.org/u/frejon)\
**Post date:** [17 February 2025 17:37 UTC](https://forum.spis.org/t/segmentation-simulation/1452/2 "2025-02-17T17:37:28Z")

</div>

Yeah, you can manipulate dirichlet potentials in the material properties, changing them for the surface, and the ground. And then in the globals, you can set the initial potential to these dirichlet values

---

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [18 February 2025 07:09 UTC](https://forum.spis.org/t/segmentation-simulation/1452/3 "2025-02-18T07:09:01Z")

</div>

But I only see SCDiriPot and SCDiriPotSurf, which should both be used to define surface potentials. What should be the characteristic name of the ground potential?

---

<div class="post-metadata">

**Author:** ![frejon](https://forum.spis.org/letter_avatar_proxy/v4/letter/f/7feea3/32.png) [@frejon](https://forum.spis.org/u/frejon)\
**Post date:** [18 February 2025 12:27 UTC](https://forum.spis.org/t/segmentation-simulation/1452/4 "2025-02-18T12:27:11Z")

</div>

SCDiriPot is defined on the node (i.e. ground), and SCDiriPotSurf is defined on the surface.

Also, set initPotFlag =2

---

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [18 February 2025 13:18 UTC](https://forum.spis.org/t/segmentation-simulation/1452/5 "2025-02-18T13:18:04Z")

</div>

I have set up SCDiriPot and SCDiriPotSurf as shown in the first picture, but the result is still not what I want. I have set voltages for node0, 1, 2 and 3, where 0 and 3 are conductors for circuit connection, and 1 and 2 are dielectrics with no circuit connection set, as shown in the second diagram.In Instrument you can see that the surface potential is set successfully, but the ground potential is still not set successfully, as shown in the third and fourth diagrams, why is this?

 ![5](https://forum.spis.org/uploads/default/original/1X/7ad36f62fbc757ff7358e3f24084be5a1dce72e7.png)  
 ![6](https://forum.spis.org/uploads/default/original/1X/07be5a4dd8893467abe0914170112b007e3aada3.png)  
 ![7](https://forum.spis.org/uploads/default/original/1X/09bf1b7adc3c3db3c987d5e053e812372fd33fa2.png)  
 ![8](https://forum.spis.org/uploads/default/original/1X/cfbd2778a1e5480f627dbb503a8914d443102766.png)

---

<div class="post-metadata">

**Author:** ![frejon](https://forum.spis.org/letter_avatar_proxy/v4/letter/f/7feea3/32.png) [@frejon](https://forum.spis.org/u/frejon)\
**Post date:** [20 February 2025 21:34 UTC](https://forum.spis.org/t/segmentation-simulation/1452/6 "2025-02-20T21:34:01Z")

</div>

Hi, it would be surprising if Dirichlet works everywhere except for the ground potential for dielectrics (node 1). Is it possible that it is set correctly, and that node 1 ground was at -2E4V but the charging timescale of this element is very very small?

You could test this by setting electricCircuitIntegrate to 0 in this simulations. That disables the S/C circuitry entirely. Otherwise, I would have to assume something was somewhere in the group parameters. Perhaps remaking it from scratch, just to be sure there isn’t any typos anywwhere.

---

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [10 March 2025 10:06 UTC](https://forum.spis.org/t/segmentation-simulation/1452/7 "2025-03-10T10:06:31Z")

</div>

Thanks for your reply, Frejon. Unfortunately, I checked my parameters and didn’t find any problems, I need to look into it a little more closely.

---

<div class="post-metadata">

**Author:** ![frejon](https://forum.spis.org/letter_avatar_proxy/v4/letter/f/7feea3/32.png) [@frejon](https://forum.spis.org/u/frejon)\
**Post date:** [10 March 2025 10:38 UTC](https://forum.spis.org/t/segmentation-simulation/1452/8 "2025-03-10T10:38:22Z")

</div>

Hi, can you clarify. Did you test setting electriccircuitintegrate to 0 and initialPotential(I think) to “2” and saw that the dirichlet conditions were ignored?

---

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [10 March 2025 11:59 UTC](https://forum.spis.org/t/segmentation-simulation/1452/9 "2025-03-10T11:59:49Z")

</div>

Yes, I’ve tried it, but the potential on the node of dielectric is still 0V. I’ve tried to repaint the model. In another simulation, one of the dielectric node potentials is successfully set, but the other remains at 0V. It is confusing.

---

<div class="post-metadata">

**Author:** ![23131213962](https://forum.spis.org/letter_avatar_proxy/v4/letter/2/ce7236/32.png) [@23131213962](https://forum.spis.org/u/23131213962)\
**Post date:** [10 March 2025 12:11 UTC](https://forum.spis.org/t/segmentation-simulation/1452/10 "2025-03-10T12:11:53Z")

</div>

![image](https://forum.spis.org/uploads/default/original/1X/2070331e79eca069bc03da468a0ae57390d88b2f.png)  
 ![image](https://forum.spis.org/uploads/default/original/1X/3278466d9cf4d953afd5fa91712d2582ebe42caa.png)  
 ![image](https://forum.spis.org/uploads/default/original/1X/cc11e0f2b256ab2859ceb37f7f9a1fd29db08097.png)  
 ![image](https://forum.spis.org/uploads/default/original/1X/71b8a73ffeee47ecdbdceaf789ec3068522f0fdb.png)
