# Ball Delete outside the required gemetery

**URL:** <https://forum.itascainternational.com/t/ball-delete-outside-the-required-gemetery/2320>\
**Category:** PFC\
**Created:** [January 20, 2026, 11:47am UTC](https://forum.itascainternational.com/t/ball-delete-outside-the-required-gemetery/2320 "2026-01-20T11:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShivamPandey](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@ShivamPandey](https://forum.itascainternational.com/u/ShivamPandey)\
**Post date:** [January 20, 2026, 11:47am UTC](https://forum.itascainternational.com/t/ball-delete-outside-the-required-gemetery/2320/1 "2026-01-20T11:47:41Z")

</div>

I am trying to delete the ball are outside the wall which i have created and i am not able to do it after multiple option. How can I delete the balls.

model new  
model large-strain on  
model title ‘Slope’  
model domain extent -10 120 -10 110 condition destroy;  
wall create vertices 0, 0 115, 0 id 1  
wall create vertices 115, 0 115, 9 id 2  
wall create vertices 115, 9 106, 9 id 3  
wall create vertices 106, 9 80, 39 id 4  
wall create vertices 80, 39 71, 39 id 5  
wall create vertices 71, 39 45, 69 id 6  
wall create vertices 45, 69 36, 69 id 7  
wall create vertices 36, 69 10, 99 id 8  
wall create vertices 10, 99 0, 99 id 9  
wall create vertices 0, 99 0, 0 id 10  
wall group ‘slope’ range id 1 10  
ball distribute porosity 0.5 radius 0.001 2 box 0 115 0 99 group ‘slope’ ;count 1  
ball delete range polygon position (36,69) (115,69) (115,99) (10,99)

ball delete range rectangle position-x 36 115 position-y 69 99  
ball delete range rectangle position-x 71 115 position-y 39 69  
ball delete range rectangle position-x 106 115 position-y 9 39

I want that when i delete the ball it form the slope which is of three benches.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/2X/c/c2f0ac448795b47ab9226db778b63e99349ff54d.png)

Thankyou,

---

<div class="post-metadata">

**Author:** ![dpotyondy](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/dpotyondy/32/1399_2.png) [@dpotyondy](https://forum.itascainternational.com/u/dpotyondy)\
**Post date:** [January 20, 2026, 5:06pm UTC](https://forum.itascainternational.com/t/ball-delete-outside-the-required-gemetery/2320/2 "2026-01-20T17:06:11Z")

</div>

Thank you for your use of PFC2D. The polygon range element has syntax: {ball delete range polygon vertices (0.5, -1.7) (1.5, -1.7) (1, -1.2)}. When this command is applied to this model:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/2X/1/1442a2ae9ea35f294cb3a950d91f0bf6b9e4ad08.png)

We obtain:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/2X/b/b69dc67cf13cab34530504fa4fbd3aec8e4e7d6b.png)

This project that creates this model and issues this command is here:

[gravityPack.zip](https://forum.itascainternational.com/uploads/short-url/cNPAhtE24NiQ0a9XRhDDZaBQrdK.zip) (423.7 KB)

I suggest that you use the material modeling support package to create a well-defined PFC material: [Bonded-Particle Modeling — Itasca Software 9.6 documentation](https://docs.itascasoftware.com/itasca960/pfc/docproject/source/manual/bonded_particle_modeling/bpm.html?node6154) and [https://www.itascacg.com/software/material-modeling-support](https://www.itascacg.com/software/material-modeling-support)

And finally, the range logic is described in the slide set:

[LogicsOverview.zip](https://forum.itascainternational.com/uploads/short-url/wFSd1YlyG6zwmx8gSIUARaH4YEs.zip) (3.9 MB)

You may also find the tutorial on the FISH language to be of use:

[PFC&FISH.zip](https://forum.itascainternational.com/uploads/short-url/he91Fd6O0D9saVqotcD9gG1oBNI.zip) (8.7 MB)

Cheers, David Potyondy
