Skip to content

riekeschaefer/Blender-CFDrender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Render multi-phase flow in Blender

Some scripts from a couple of years ago to export multiphase OpenFOAM multiphase simulations from ParaView and import them into Blender. Basically load a bunch of x3d files into Blender. I hope this helps someone.

There is a version for Blender 2.79 and one for 2.80 because some of the API changed.

How to use it

  1. export scene from ParaView (either just water surface or volume or both): name+framenumber
  2. adapt file path and name in script for Blender
  3. adapt number of first and last frame in script for Blender
  4. import once manually to adapt the name of water surface/volume if necessary
  5. create the materials (water_surf_mat for surface and water_body_mat for volume, see examples for 2.79)
  6. remove the import parts you don't need
  7. run the script
  8. use the delete script if necessary to remove all the objects

For Blender 2.79, I've adapted a part of the VisualSPHysics addon to work with the same x3d files.

  • VisualSPHysics needs to be installed, otherwise parts are missing
  • Put the pythonfile into Blender/2.79/scripts/addons (or equivalent)
  • De-activate the addon when you don't use it.
  • Name the files you want to load: name_0000.x3d, name_0001.x3d, ...

For Blender 2.80, I also include an adapted script where a rendered picture for each frame is exported.

Authors

License

MIT

except for the VisualSPHysics addon which is under GNU

About

Scripts to render numbered x3d files in Blender

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages