aboutsummaryrefslogtreecommitdiff
path: root/README
blob: c58872d143b0156a71b91623d85660bc8caf0beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Cactus Code Thorn Boundary
Authors: Gabrielle Allen, Gerd Lanfermann, Miguel Alcubierre
CVS info   : $Header$
--------------------------------------------------------------------------

1. Purpose of the thorn

This thorn provides some standard outer boundary conditions. 

Currently:

  - flat boundary conditions (a copy of the point just inside the
    boundary)
 
  - radiation boundary conditions

2. Additional information

This thorn only currently works with a 3D Cartesian Grid
The boundary conditions can be called from Fortran or C, 
and can be passed either groups of grid functions, or single
grid variables.
The flat boundary conditions work with any size stencil width,
the radiation boundary conditions only currently work with 
a stencil width of one.

To apply a flat boundary condition from Fortran

	call ApplyFlatBC(cctkGH,sw,"imp::group_or_var")

to apply a radiative boundary condition from Fortran

	call ApplyRadiativeBC(cctkGH,num,sw,"imp::group_or_var","imp::group_or_var2")

Where:
 stencil width is a dimension 3 integer array containing the stencil 
 width in each direction
 num is a coefficient in the implemented radiative boundary condition
 that is usually one. 

See the documentation for more details.