blob: 09c425e87e0881845348fb4915dd7a7fb25e099d (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Cactus Code Thorn Boundary
Authors : Gabrielle Allen, Gerd Lanfermann
Managed by : ... <cactusmaint@cactuscode.org>
Version : 1
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. Dependencies of the thorn
This thorn additionally requires:
implementations:
driver
thorns:
CartGrid3D (needs to get at a GH extension)
3. Thorn distribution
This thorn is publically available
4. 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.
|