Replies: 2 comments 1 reply
-
|
The argument is |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your response. I created a structure using "overlapping-spheres" generator. However, I realized that this command creates images in which the spheres are not contained in the image and they touch or pass through the edges. I tried using some modifications, like "mode=contained", but this one does not work on "overlapping-spheres" command. Could you please guide me on how I achieve such a structure? Here is the code that I used for generating the structure. "import porespy as ps Generate structureshape = [100, 100, 100] im = ps.generators.overlapping_spheres(shape=shape, r=r, porosity=e, edges=mode) Thank you very much, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to use your example for generating a porous medium with spherical pores.
shape = [300, 300]
r = 15
im = ps.generators.random_spheres(shape=shape, r=r)
fig, ax = plt.subplots(1, 1, figsize=[4, 4])
ax.axis(False)
ax.imshow(im, origin='lower', interpolation='none');
However, I am getting an error in python: "random_spheres() got an unexpected keyword argument 'shape'". How should I solve this error?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions