mantaflow
mantaflow copied to clipboard
mantaflow is an open-source framework targeted at fluid simulation research in Computer Graphics and Machine Learning.
It leaves a dead zone near the ends of a moving obstacle. Instead, I implemented the algorithm in Bridson15, pg.72, fig. 5.2. Also, I'm sure if setBound() or setBoundMAC() are...
On windows, the cast to `long` from the type `npy_intp` returned by [`PyArray_NDIMS`](https://numpy.org/doc/stable/reference/c-api/array.html?highlight=pyarray_ndims#c.PyArray_DIMS) results in incorrect parsing of numpy array dimensions. I propose the [use of `intptr_t`](https://stackoverflow.com/a/6326362) as a solution...
I believe you are missing the first term: https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods https://www.geeksforgeeks.org/runge-kutta-4th-order-method-solve-differential-equation/ Specifically, update integrator.h, integratePointSet() to ``` else if (mode == IntRK4) { PosType x0(x); std::vector uTotal(u); for(int i=0; i
Do you have an advice on https://blender.stackexchange.com/questions/268689/use-my-own-mantaflow-plugin For example, what's the workflow that your research team uses (maybe a student can answer that)? --- Thinking about it some more, I...
A pseudo code of FLIP is given in section 4.2 in Zhu05, Animating Sand as a Fluid Consider manta's flip01_simple.py. flipVelocityUpdate() calculates FLIP correctly and associates the weighted FLIP/PIC velocity...
Some particles at boundary sometimes get large velocity after solving pressure. Then I found that something weird in function ghostFluidHelper function in pressure.cpp I think this line ``` if(alpha <...
I am trying to use the solvePressure function without a Preconditioner (PcNone or 0). ```python solvePressure( flags=flags, vel=velocity, pressure=pressure, cgAccuracy=1e-6, cgMaxIterFac=6000 / self.opt.res, retRhs=rhs, preconditioner=0, ) ``` I think the...
Added the BasicParticleSystem.writeParticlesNumPyText() method which serializes the coordinates of the particles in NumPy text format. The NumPy text files can be read from a Jupyter notebook to instantiate NumPy arrays...
Hello. Does Mantaflow have a roadmap? What new features will be added to the simulator in the future? And is this repository relevant? Or is a bitbucket repository considered relevant?:...