Weird Memory usage when using Prism #3105
Unanswered
raksharuia
asked this question in
Q&A
Replies: 1 comment
-
|
The memory allocation for the prism object itself should be tiny, so I'm not sure what is going on here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello MEEP community,
I am working on simulating an elliptical micropillar structure (a cavity sandwiched between a top and bottom DBR). I build this geometry by stacking up elliptic cylinders. I notice that the memory usage differs significantly depending on whether the elliptic cross-section is created using the
Prismobject (defining points on the ellipse boundary) or using multipleBlockobjects that approximate the ellipse area.This discrepancy occurs even when both geometries are visually identical and I use the same resolution and domain parameters.
The following table shows my findings when the script was run to set the geometry and run a test simulation for a small time [figure below]. (I ran my code on a CPU with 32 cores and 64 GB of RAM)
I created 3D simulations with identical cell size, source (point Electric dipole polarized along y-axis), grid resolution, and compared two orientations of the ellipse’s major axis for both the Prism and Block geometries.
Symmetry used : [mp.Mirror(direction=mp.Y, phase=-1), mp.Mirror(direction=mp.X, phase=1)].
The results of my tests are in the image below -
Does the prism geometry trigger some intermediate memory allocation? Is this extra memory usage from curved polygonal surfaces known?
Thank you in advance for you reply :-)
Raksha
Beta Was this translation helpful? Give feedback.
All reactions