korzhimanov / FDTD2D.jl

Simple 2D FDTD solver written in Julia
MIT License
2 stars 0 forks source link

Using Julia parallel computing #1

Open kabume opened 4 years ago

kabume commented 4 years ago

Excuse me for interrupting you. It's a good job using Julia to write FDTD, but as we know, the FDTD may cost a lot of computing resources. Have you tried parallel computing using julia, I have try to using Distributed and Threads to parallized FDTD, but it did not work(may be I'm so stupid). If you succeed in parallelizing FDTD, please do not hesitate to update this project, thank you!

korzhimanov commented 4 years ago

Hello! Well, this was just a simple toy project to get a feeling of Julia and make simple benchmarks, so no attempt to parallelize the code was made. However, I have plans to write a more comprehensive program to simulate plasma in electromagnetic fields which will be definitely parallelized and include FDTD. Probably the first attempt to use parallel constructions in Julia will be made in current project so hopefully you will see them soon. My plan is to start working on this in January.

kabume commented 4 years ago

Hello! Well, this was just a simple toy project to get a feeling of Julia and make simple benchmarks, so no attempt to parallelize the code was made. However, I have plans to write a more comprehensive program to simulate plasma in electromagnetic fields which will be definitely parallelized and include FDTD. Probably the first attempt to use parallel constructions in Julia will be made in current project so hopefully you will see them soon. My plan is to start working on this in January.

This looks exciting! I have written ADE-FDTD to simulate plasma using C++ parallelized by CUDA https://arxiv.org/abs/1709.00821. But you know, it's more convenient to use Julia, at least in the area of drawing. Here is an open source FDTD program which front end is Python, Scheme, or C++. https://github.com/NanoComp/meep, it will be very useful if we could make a similar program with pure Julia. I have alse written 2D-FDTD programs to simulate metamaterials, maybe we can work together to finish this project.