literature

intro to fluid simulation with blender

Deviation Actions

AbdouBouam's avatar
By
17 Comments
7K Views

Literature Text

hello blender heads! i've prepared a small tutorial about fluid and water simulation that will make you able to create animations like this one based on some requests from the group members



please note that i wanted to keep things simple and i only explained the basics and it will cover what you need to make a basic simulation, if you want more details about this subject please look in youtube for more advanced tutorials.
in this tutorial i assume that you already know how to add, delete, move, scale, rotate and all the basics of blender

Level: :bulletgreen: Beginners :bulletorange: Intermediate

let's begin then

what you will need to d first before making a fluid simulation is setting a domain, it is a box that determines the boundaries of the fluid simulation, no fluid can get out of it
think of it as a transparent container that holds the fluid
all the settings for fluid can be accessed from the physics tab as shown in the picture

to make a domain just set the type to "domain", few settings will appear down

what interrests us for the moment is the resolution, it determines the quality of the simulation at the cost of time and memory
here's a quick compaison to know what i'm taalking about:

resolution:50
time:11seconds



resolution:128
time:4m46


you will also need some fluid to make the simulation, there are different types of fluid types:

i'm going to ignore "control" and "particle" in this tutorial since i didn't get the opportunity to work with them, you can experiment or watch more tutorials if you are interrested
Fluid:
the objects acts like any regular fluid, keeping the volume

the initial velocity represents the initial speed in which the fluid starts along the X,Y and Z axix, for example a positive Z value will push it up before gravity pulls it down again, while negative values will make it fall faster
example:


Inflow:
the inflow object becomes a source of fluid, increasing the volume
the direction of the flow can be adjusted from the "initial velocity" settings, similar to the previous example
example:


outflow:
the object will "suck" all the fluid that collides with it and make it disappear from the scene


obstacle:
the object will act like every solid object from real life and collide with the fluid pushing it away instead of going through it
the example is the same as the one of inflow, look at how water reacts with the obstacle

now you know the basics, let's get into creating a simple scene:


step1- create a cube, select it and go to the physics panel, then set it to domain and adjust the resolution as you need


2- add a suzanne (the monkey) and set it to obstacle:


3- now add a sphere above suzanne and set it to "fluid" and set the velocity to -1 or similar value according to the size you choose, this will give it more speed


4- select the domain (the cube) and then again in the physics panel select "bake" and wait
now you have an animation you can play and render
that's it, now you know what you need to make water and fluid simulations with blender, here are few extra informations and tips:
1-if blender crashes when you click on "bake", that means probably you have used all the availible memory, try reducing the resolution
2- i reduced the icons and fonts size to get more space ( user preferences>>system and then set DPI to 60 instead of 72 and uncheck "text anti-aliasing" )
3- i used a new test build of blender (blender 2.72.3 gooseberry branch, downloaded in december 20th 2014), but the tutorial is compatible all 2.7x and 2.6x versions
4- name your objects to save time and for easy selection
5- make sure to hide original inflow and fluid objects in both the viewport and the rendering
6- if you have troubles with the domain apply the rotation and scale (ctrl+A)
7- change Viewport display in the domain settings from "Preview" to "Final" when needed to see what you will get in the rendering

i hope this tutorial was helpful, and if you have more questions please don't be afraid to ask
Published:
© 2014 - 2021 AbdouBouam
Comments17
Join the community to add your comment. Already a deviant? Log In
Really nice tutorial !
AbdouBouam's avatar
Al-Ost's avatar
Terrance8d's avatar
Awesome sauce!  I found myself oddly mesmerized by the Suzanne waterfall.XD
AbdouBouam's avatar
thanks
me too :D ,maybe i'll render it with cycles instead of opengl
Terrance8d's avatar
Going all out on a little example.  Isn't that always the way?XD
FeralFlamespirit's avatar
wow!!! bro that just Amazing >3<  I love it x3
AbdouBouam's avatar
thanks, i hope it was useful and not very long :)
FeralFlamespirit's avatar
of course it is useful :3 <3  I will try to follow your tutorial that is for sure <3
AbdouBouam's avatar
:la:
please show me what you make with it :meow:
FeralFlamespirit's avatar
ok then =D but not now uwu; actually I have tons of work in the office where I work and probably the next week I will free to do whatever I want >w< so by consequence I will do something with your tutorial but I am not good whit blender yet so maybe it will took me some time XD
AbdouBouam's avatar
ok, if you need help just tell me :)
and cool new icon btw :D
Join the community to add your comment. Already a deviant? Log In