Why do NaN and Inf appear in the simulation? I have already made modifications according to the suggested methods. #2934
Unanswered
niubiworker
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Although I tried according to the recommendations from the official Meep documentation, the issue remains unresolved. Additionally, I noticed that simulations proceed smoothly when only Gaussian sources are used. However, when eigenmode sources are used, the simulation results in NaN. Why is this happening? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I find that make |
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
-
I am running a simulation based on the example of a bent waveguide, but I don't know why the simulation is showing errors. Is there an issue with the way I'm using it?
'Warning: grid volume is not an integer number of pixels; cell size will be rounded to nearest pixel.
Using MPI version 4.1, 32 processes
block, center = (19.6442,0,0)
size (39.2883,0.3,1.58)
axes (1,0,0), (0,1,0), (0,0,1)
dielectric constant epsilon diagonal = (4.88896,4.88896,4.56933)
Warning: grid volume is not an integer number of pixels; cell size will be rounded to nearest pixel.
block, center = (19.6442,0,0)
size (39.2883,0.3,1.58)
axes (1,0,0), (0,1,0), (0,0,1)
dielectric constant epsilon diagonal = (4.88896,4.88896,4.56933)
Warning: grid volume is not an integer number of pixels; cell size will be rounded to nearest pixel.
block, center = (19.6442,0,0)
size (39.2883,0.3,1.58)
axes (1,0,0), (0,1,0), (0,0,1)
dielectric constant epsilon diagonal = (4.88896,4.88896,4.56933)
Initializing structure...
Halving computational cell along direction y
Halving computational cell along direction z
Splitting into 32 chunks by voxels
time for choose_chunkdivision = 0.00113486 s
Working in 3D dimensions.
Computational cell is 45.3 x 9 x 14.1 with resolution 20
block, center = (19.6442,0,0)
size (39.2883,0.3,1.58)
axes (1,0,0), (0,1,0), (0,0,1)
dielectric constant epsilon diagonal = (4.88896,4.88896,4.56933)
Warning: grid volume is not an integer number of pixels; cell size will be rounded to nearest pixel.
time for set_epsilon = 0.595986 s
Warning: grid volume is not an integer number of pixels; cell size will be rounded to nearest pixel.
MPB solved for frequency_1(1.41164,0,0) = 0.8182 after 20 iters
MPB solved for frequency_1(1.02971,0,0) = 0.644855 after 8 iters
MPB solved for frequency_1(1.03184,0,0) = 0.645833 after 5 iters
MPB solved for frequency_1(1.03184,0,0) = 0.645833 after 1 iters
on time step 1 (time=0.025), 23.2909 s/step
on time step 49 (time=1.225), 0.0843644 s/step
on time step 97 (time=2.425), 0.0842138 s/step
on time step 145 (time=3.625), 0.0841403 s/step
on time step 192 (time=4.8), 0.0852058 s/step
on time step 240 (time=6), 0.0848948 s/step
on time step 288 (time=7.2), 0.0849695 s/step
on time step 336 (time=8.4), 0.0843097 s/step
meep: simulation fields are NaN or Inf
Abort(1) on node 18 (rank 18 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 18'
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions