Skip to content

Prototype implementations of the orders 2 and 4 of the Runge-Kutta method in C++, CUDA and OpenCL applied to vector fields.

Notifications You must be signed in to change notification settings

rafamanzo/runge-kutta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Giancarlo Rigo
Nov 10, 2012
b6cb917 · Nov 10, 2012

History

60 Commits
Nov 10, 2012
Jul 6, 2012
Nov 10, 2012
Aug 15, 2012
Aug 15, 2012
Oct 1, 2012
Nov 9, 2012
Aug 15, 2012
Oct 1, 2012

Repository files navigation

Brasil - São Paulo - São Paulo
Instituto de Metemática e Estatística da Universidade de São Paulo (IME - USP)
C++, CUDA and OpenCL implementations of Runge-Kutta methods (orders 2 and 4) applied to vector fields

###########
# LICENSE #
###########

LGPL v3.0
Please see http://www.gnu.org/licenses/lgpl-3.0.txt

##############
# DEVELOPERS #
##############

Orientation: Assistant Professor of Computer Science MARCEL P. JACKOWSKI

Development: Rafael Reggiani Manzo (CUDA and C++)
             Giancarlo Rigo (OpenCL and C++)
              
#########
# INPUT #
#########

#Standard

The input file should be formated as the following:

x y z
v0_count
v0_x v0_y v0_z
.
.
.
v0_x v0_y v0_z
p_x p_y p_z
.
.
.
p_x p_y p_z
p_x p_y p_z1
.
.
.
p_x p_y p_z1
.
.
.

To see a example run: make examples

#Analyze

Another option is the Analyze format. To do so, you need to run the program with:

./rk --analyze <image.hdr>

Then you will be prompted for other params by the program.

The support to Analyze was achieved by the use of the open library CImg (http://cimg.sourceforge.net/index.shtml) distributed under the CeCILL-C license (http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html).

######################
# Interface Commands #
######################

To translate the result use the keys: w, a, s, d
To rotate the result over the X-axis use the up and down arrows
To rotate the result over the Y-axis use the left and right arrows
To zoom in use the key +
To zoom out use the key -
To toogle RK2 visualization use 2
To toogle RK4 visualization use 4
To toogle the vector field visualization use f

About

Prototype implementations of the orders 2 and 4 of the Runge-Kutta method in C++, CUDA and OpenCL applied to vector fields.

Resources

Stars

Watchers

Forks

Packages

No packages published