Ball Delete outside the required gemetery

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.

Thankyou,

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:

We obtain:

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

gravityPack.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 and https://www.itascacg.com/software/material-modeling-support

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

LogicsOverview.zip (3.9 MB)

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

PFC&FISH.zip (8.7 MB)

Cheers, David Potyondy

1 Like