Giter Club home page Giter Club logo

fluidsim's Introduction

#fluidSim

##Fluid Simulation for fire & smoke

###main.cpp Here we create the GridObject and a few GridOperators which operate on the data that the GridObject manages. A renderable object also is created which is able to take care of basic opengl viewport rendering.

###GridObject GridObject is the 'instance' of our simulation. This is in charge of higher level management of the grid, such as time tracking, channels available and their types. The main resolution of the grid is set here.

###ChannelObjects Inside the gridobject there are some 'channelObjects'. These manage the actual data through a lockFreeHashTable. Each channel can be a vector or scalar. The hash table stored pointers to 'chunks' of voxels. Creation and Deletion of chunks for each channel are called here. You can also directly sample the data by passing in a location to the ChannelObject.

###GridTiledOperator Base Class for operating on the data. It scans the channelObjects for active chunks and then goes though each chunk, copies the data in, performs a kernel operation on the data and then copies out. The copying is for cache usage (see older tiledOperator for how it accessed each value individually before).

fluidsim's People

Contributors

dokipen3d avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.