Pressure and velocity algorithms?

  • Videogamer555
    15th Feb 2014 Member 0 Permalink
    I'm trying to write an air pressure wave simulator software for simulating sound and shock waves. I'm wondering what algorithm you guys used in TPT to implement air pressure and velocity simulation?
    Edited once by Videogamer555. Last: 15th Feb 2014
  • xetalim
    16th Feb 2014 Member 0 Permalink

    You mean...

    You are too lazy to look it up in the source?

  • Videogamer555
    17th Feb 2014 Member 0 Permalink
    Ok so I see a number of functions
    Air::make_kernel
    Air::Clear
    Air::ClearAirH
    Air::update_airh
    Air::update_air
    Air::Invert
    Air::Air

    Why do some functions have 2 variations, one with an h on the end and one without?
    What do the different keywords like std::fill, AIR_VADV, sizeof, etc, actually do? These are not defined in the source file you pointed me to. I won't be able to port this code to my project, without understanding what this code does. And hopefully someone can explain your code here in plain English, rather than linking me to another piece of source code.
  • mniip
    17th Feb 2014 Developer 0 Permalink
    @Videogamer555 (View Post)
    The "h" stands for "heat", update_air updates pressure and velocity, update_airh updates ambient heat.
    std::fill
    sizeof
    AIR_VADV
    You'd want to learn how to use google and grep, before doing anything