Git Product home page Git Product logo

windtunnel's Introduction

Windtunnel

Hard-sphere particle simulation with dynamic collision detection

Simple application to simulate the behavior of gases in 2D or 3D using a hard-sphere simulation with dynamic collision detection.

Demonstrated in these videos:

https://www.youtube.com/watch?v=vwk4mSFFop0

https://www.youtube.com/watch?v=TyVx3UnZbVU

The application is based on the Vrui VR development toolkit, version 5.3-001 or later. Vrui is available from http://web.cs.ucdavis.edu/~okreylos/ResDev/Vrui/LinkDownload.html

Installation Guide

It is recommended to download or move the source packages for Vrui and the Windtunnel into a src directory underneath the user's home directory. Otherwise, references to ~/src in the following instructions need to be changed.

It is also recommended to skip optional steps 4 and 6 in the following instructions. The Windtunnel does not need to be installed in order to be used; installation (to a system directory such as /usr/local) is only recommended if the Windtunnel will be used from multiple user accounts.

  1. Install Vrui from ~/src/Vrui-<version>-<build> (see Vrui README file).

  2. Change into ~/src directory and unpack the Windtunnel tarball:

    > cd ~/src

    > tar xfz <download path>/Windtunnel-<version>.tar.gz

    • or -

    > tar xf <download path>/Windtunnel-<version>.tar

  3. Change into the Windtunnel base directory:

    > cd Windtunnel-<version>

  4. If the Vrui version installed in step 0 was not 5.3, or Vrui's installation directory was changed from the default of /usr/local, adapt the makefile using a text editor. Change the value of VRUI_MAKEDIR close to the beginning of the file as follows:

    VRUI_MAKEDIR := <Vrui install dir>/share/make

    Where <Vrui install dir> is the installation directory chosen in step 0. Use $(HOME) to refer to the user's home directory instead of ~.

  5. Optional: Adapt makefile if the Windtunnel is to be installed in a different location, for example /usr/local. Set INSTALLDIR to the desired target location. The Windtunnel will then be installed in <INSTALLDIR>/bin.

  6. Build the Windtunnel:

    > make

    This creates the CollisionBoxTest executable in ./bin.

  7. Optional: Install the Windtunnel in the selected target location. This is only necessary if the INSTALLDIR variable in the makefile was changed. By default, the Windtunnel can be run from its base directory.

    To install:

    > make install

    • or, if the target location is a system directory -

    > sudo make install

    This will copy the executable into <INSTALLDIR>/bin.

  8. Optional: Add directory containing the CollisionBoxTest executable (in ~/src/Windtunnel-<version>/bin in the default installation, in <INSTALLDIR>/bin otherwise) to the user's search path. This allows running the Windtunnel from any directory. Using csh or tcsh:

    > setenv PATH ${PATH}:~/src/NCK-<version>/bin

    • or -

    > setenv PATH ${PATH}:<INSTALLDIR>/bin

    where <INSTALLDIR> is the target location set in the makefile.

    Using bash:

    > export PATH=${PATH}:~/src/NCK-<version>/bin

    • or -

    > export PATH=${PATH}:<INSTALLDIR>/bin

    These lines can also be added to the user's .cshrc or .bashrc files to make the additions persist between logins.

Running the Windtunnel

These instructions assume that the Windtunnel was installed in its base directory (see steps 4 and 6 above).

  1. Run the Windtunnel executable:

    > cd ~/src/Windtunnel-<version>

    > ./bin/CollisionBoxTest <command line arguments>

  2. See Vrui's HTML documentation on Vrui's basic user interface and how to use the Windtunnel.

windtunnel's People

Contributors

doc-ok avatar

Stargazers

 avatar

Watchers

 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.