Accelerate initialization of many excitations

Discussion about new features and development support

Moderator: thorsten

Post Reply
hannesko
Posts: 6
Joined: Wed 03 Jun 2020, 10:36

Accelerate initialization of many excitations

Post by hannesko » Mon 14 Sep 2020, 15:39

Hello Thorsten,

another excitation-related question:
How are excitations loaded / introduced into the FDTD domain? I find all the sources located in the .xml file that are then supposedly read again for initialization of the simulation. I need up to several hundred stacked excitations with time delayed activation of the (custom) source function to represent a lightning channel. I observed that the initialization becomes very slow (up to several hours) whereas the simulation itself might be done within an hour.

What do you think is the reason for this slow init process and would it be possible to introduce many excitations more efficiently into the grid?
If you can give me any hints, maybe I find a way to implement a more efficient routine...

Many thanks in advance!

Best regards,
Hannes

hannesko
Posts: 6
Joined: Wed 03 Jun 2020, 10:36

Re: Accelerate initialization of many excitations

Post by hannesko » Tue 13 Oct 2020, 08:47

Here an example of a slow initialization with 400 Custom excitation objects:
lightningChannel_400_sources.xml
(133.34 KiB) Downloaded 50 times
... it takes about 8-9 minutes on my laptop.

Best regards,
Hannes

thorsten
Posts: 1412
Joined: Mon 27 Jun 2011, 12:26

Re: Accelerate initialization of many excitations

Post by thorsten » Sun 22 Nov 2020, 20:20

I think I was able to speedup the setup quit a lot. Please give the latest build a try.

I certainly need to make sure this has no unwanted side effect as this is a change in a dangerous place...

regards
Thorsten

Post Reply