CG
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
cg.v25
mx
src
RadiationKernel.h
Go to the documentation of this file.
1
#ifndef RADIATION_KERNEL
2
#define RADIATION_KERNEL
3
4
5
#include "Overture.h"
6
7
8
class
RadiationKernel
9
{
10
public
:
11
12
enum
KernelTypeEnum
13
{
14
planar
,
15
slab
,
16
cylindrical
,
17
spherical
18
};
19
20
21
RadiationKernel
();
22
~RadiationKernel
();
23
24
int
setKernelType
(
KernelTypeEnum
type );
25
KernelTypeEnum
getKernelType
()
const
;
26
27
int
initialize
(
int
numberOfGridPoints_,
int
numberOfFields_,
28
int
numberOfModes_, real period_, real c_,
29
int
orderOfTimeStepping_,
int
numberOfPoles_,
30
real
radius
=1. );
31
32
int
evaluateKernel
(
double
dt, RealArray &
u
, RealArray & Hu );
33
34
static
real
cpuTime
;
35
36
protected
:
37
38
KernelTypeEnum
kernelType
;
39
40
int
numberOfGridPoints
,
numberOfFields
,
numberOfModes
,
ns
,
numberOfPoles
,
orderOfTimeStepping
,
bcinit
;
41
double
c
,
period
,
radius
;
42
double
*
ploc
,*
fold
,*
phi
,*
amc
,*
fftsave
;
43
44
double
*
alpha
, *
beta
;
45
int
*
npoles
;
46
47
};
48
49
#endif
Generated on Fri Jan 4 2013 10:19:26 for CG by
1.8.3