Skip to content.

The Cactus Code

Sections
Personal tools
You are here: Home » Documentation » Arrangements » CactusExamples

CactusExamples Overview

Example applications
DemoInterp
This thorn demonstrates the use of the Cactus interpolation API.
FleshInfo
Demonstrates obtaining information about computational infrastructure from the flesh.
HelloWorld
Hello World example for Cactus, possibly the simplest thorn ever.
SampleBoundary
This thorn provides a simple example of how to create and register a physical boundary condition. It implements a linear extrapolation boundary condition in three dimensions.
SampleIO
This thorn provides a very simple I/O method which prints the values of three-dimensional Cactus grid functions and arrays at a chosen location (selected by parameters) to screen.
The I/O method makes use of the Cactus Hyperslabbing API to obtain the data values to print.
The code in this thorn is well documented and can be used as an example to build your own I/O method.
TimerInfo
At the moment just prints out the value of all timers at chosen iteration intervals. Will be worked into a more useful thorn to report of different kinds of timing information in different ways.
WaveToy1DF77
This thorn illustrates the solution of the scalar wave equation in 1D using centered explicit finite differencing. Included are routines to
  • Set up and register the 1D spatial coordinate system
  • Calculate initial data
  • Evolve using a standard explicit method
The Cactus infrastructure used includes
  • Boundary conditions (CactusBase/Boundary)
  • Timestep calculation (CactusBase/Time)
  • Parallel driver (CactusPUGH/PUGH)
  • IO (Standard IO thorns)
WaveToy2DF77
Purpose of the thorn:
This thorn illustrates the solution of the scalar wave equation in 2D using centered explicit finite differencing. Included are routines to
  • Set up and register the 2D spatial coordinate system
  • Calculate initial data
  • Evolve using a standard explicit method
The Cactus infrastructure used includes
  • Boundary conditions (CactusBase/Boundary)
  • Timestep calculation (CactusBase/Time)
  • Parallel driver (CactusPUGH/PUGH)
  • IO (Standard IO thorns)
Created by swhite
Last modified 2005-08-04 08:07 PM
 

Powered by Plone

This site conforms to the following standards: