Message Boards Message Boards

Plot the real value of the Fourier component of electric field?

Posted 5 years ago

I have attached a code below I am trying to plot the real value of the fourier component of electric field dq l, and I am taking contribution of fields from all positions dx j.

When I ListPlot3D for nn=200, the Mathematica quits its kernel by itself without any error or warning. I wonder is it the memory issue or something else because the code works well for few points such as nn=20. But I have to have nn=200.

Attachments:
POSTED BY: Muhammad Ali
2 Replies

Those are large symbolic expressions being generated. I'd suggest using approximate numbers in the definition of Eq so as to get a numerical table instead.

Also if you can redefine Eq in a way that uses Fourier rather than explicit sums, it would be much faster.

POSTED BY: Daniel Lichtblau
Posted 5 years ago

Thank you for the advise.

POSTED BY: Muhammad Ali
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract