minerva Posted July 13, 2019 Posted July 13, 2019 Hi everyone, I am developing a realistic fusion reactor mod, based on MIT's SPARC reactor, using Monte Carlo Simulations to simulate the neutrons within the reactor to increase the realism of the mod and then use Green's function to simply model the heat transfer from the molten salt to the pipes, steam, turbines, magnets, etc. I was also planning on including radiation damage and methods to manufacture different materials with the ability to withstand high numbers of atom displacements. For those interested, pm me and I can nerd out more about the mod. My plan was to write the numerical code in C++ (I have it written in Fortran already) and transfer it over to Java using JNI (probably with HawtJNI), but I wanted to ask the more experienced modders around here how they were able to integrate numerically intense mods (i.e things like ReactorCraft, Gregtech, AE2, EnderIO, etc). I am worried that if I try to create realistically scaled fusion reactors in Minecraft using Java for the numerical calculations that java could not handle it (Or rather my implementation of Java ). I read that this forum is not a Java Class, but I was hoping to gain some insight as to how other modders here tackled numerically heavy problems in Java, or if they just wrapped C++ code into Java like I was planning to do. My programming background is in Fortran77/95, C++, and a little bit of Java (took 6.005 online at MIT's Opencourseware but I would say I am a beginner still ) Looking to forward to hear from you smart people! Thanks everyone! M Quote
Cadiboo Posted July 13, 2019 Posted July 13, 2019 Java is very fast, and the JNI has a lot of overhead. You also sacrifice Java's main benefit - being able to run on any system. I would try to find a port of the libraries to Java, or porting them yourself before you commit to using the JNI. Quote About Me Reveal hidden contents My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.