How to calculate 2D porosity or void ratio?

Asked by Ran Tu

Dear all:

I am simulating a compression of 2D soil to achieve a desired porosity by blocking zXY of all spheres. Here, z denotes the ignored direction.

 However, it is not clear for me how to measure porosity or void ratio of 2D model.

1. It seems that utils.porosity() is only suitable for 3D model.

2. Maybe utils.voxelPorosity() could work?

Could anyone please give some advice to use a proper function or code to calculate the 2D porosity/void ratio?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

please read [1] and provide MWE and more information

> I am simulating ... 2D soil

what is "2D soil"?
What overall shape does it have? rectangle? Something more complicated?
What particle shapes do you use (spheres, clumps, polyhedrons)?
Do the particles have significant overlaps?
... ?

> 1. It seems that utils.porosity() is only suitable for 3D model.

yes

> 2. Maybe utils.voxelPorosity() could work?

yes

> Could anyone please give some advice to use a proper function or code to calculate the 2D porosity/void ratio?

There are many options, depending on your needs, your simulation (which we do not know much about), etc.
Here are 3 options:
a) use utils.voxelPorosity with "degenerated" dimensions (one coordinate of start and end would be equal or almost equal, you will have to experiment a bit)
b) write your own function voxelPorosity2D, basically working same way as voxelPorosity, but working just in 2D
c) write your own function porosity2D (if there are not significant overlaps) - just sum areas of your particles (resulting in "solid volume"). Then, knowing total area (being "total volume"), you can easily compute porosity, void ratio, ...

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Can you help with this problem?

Provide an answer of your own, or ask Ran Tu for more information if necessary.

To post a message you must log in.