g-amador / incremental-fluids-java

A port to Java, resorting to Apache Commons Math, with some minor changes of the C++ simple, single-file fluid solvers for learning purposes.
https://github.com/tunabrain/incremental-fluids
GNU General Public License v3.0
0 stars 3 forks source link
apache-commons-math java netbeans-project

Incremental fluids Java

This is a port to Java, resorting to Apache Commons Math, with some minor changes of the C++ code from https://github.com/tunabrain/incremental-fluids

The port is not strait forward, as instead of single files I separated some code in common among them into classes: -The solids are now individual classes common to the fluid simulators classes. -The linear interpolators were gathered in a single class stored into a maths package, integrators could possibly be also stored there something to consider. -I made an exhaustive effort to maintain the files additions among solvers by keeping even comments among Fluid solvers files methods and variables.

I do not make promises but there may appear a 2D versions a few more solvers (LBM, SWE, Stable fluids, Practical Fluids, and SPH). Also, there may appear a 3D versions of some of these codes someday. Finally, parallel versions either in CUDA/OpenCL/GLSL.

I would gladly accept suggestions/contributions to make the code more clearer or to add interesting features. Also, changes to access control or redundant static variables or methods Identified please send me a notice.