# Generate balls inside the wall

**URL:** <https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265>\
**Category:** PFC\
**Created:** [February 17, 2022, 2:11pm UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265 "2022-02-17T14:11:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![syaniliffa](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@syaniliffa](https://forum.itascainternational.com/u/syaniliffa)\
**Post date:** [February 17, 2022, 2:11pm UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/1 "2022-02-17T14:11:24Z")

</div>

Hallo!  
I’m just learning to use PFC2D software. How to generate balls inside the wall? Can I get any documents/tutorials on how to do this?  
Thankyou.

Best regards,

Syani

---

<div class="post-metadata">

**Author:** ![Sineu](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sineu](https://forum.itascainternational.com/u/Sineu)\
**Post date:** [February 18, 2022, 5:18am UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/2 "2022-02-18T05:18:04Z")

</div>

Please see the PFC Help. An example called “Balls in a Box” may help you.

---

<div class="post-metadata">

**Author:** ![syaniliffa](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@syaniliffa](https://forum.itascainternational.com/u/syaniliffa)\
**Post date:** [February 18, 2022, 5:53am UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/3 "2022-02-18T05:53:13Z")

</div>

Thankyou for the answer. I have read the ‘‘Balls in a Box’’ example. However, I didn’t find a way to generate the balls on the slope geometry. What can I do to be able to model the balls inside slope geometry?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Sineu](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sineu](https://forum.itascainternational.com/u/Sineu)\
**Post date:** [February 18, 2022, 9:48am UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/4 "2022-02-18T09:48:15Z")

</div>

There are several steps that you generate the particle assembled model for the slope:  
Firstly, generate a box of balls just like the ‘‘Balls in a Box’’ example. The box must be larger than the slope geometry.  
Then, delete the walls of box after the particles have been equilibrated and delete the particles which is outside the the slope geometry.  
Lastly, create several walls from the slope geometry and use the wall servo mechanism to equilibrate the particle model.

---

<div class="post-metadata">

**Author:** ![Sineu](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sineu](https://forum.itascainternational.com/u/Sineu)\
**Post date:** [February 18, 2022, 9:53am UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/5 "2022-02-18T09:53:49Z")

</div>

‘‘Balls in a Box’’ example may be not right here. You can use the datafile “make\_sample” in the example “Rock Testing” .

---

<div class="post-metadata">

**Author:** ![syaniliffa](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@syaniliffa](https://forum.itascainternational.com/u/syaniliffa)\
**Post date:** [February 19, 2022, 9:06am UTC](https://forum.itascainternational.com/t/generate-balls-inside-the-wall/265/6 "2022-02-19T09:06:13Z")

</div>

Thank you very much. I will try it
