00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _FIELDLINE_PKG_H
00020 #define _FIELDLINE_PKG_H
00021
00022 #include "pfss.h"
00023 #include "pfss_pkg.h"
00024
00025
00026
00027
00028
00029
00030 void copypoint(struct Point *pt1, struct Point *pt2);
00031
00032
00033 void sph2cart(struct Point *pt);
00034
00035
00036 void cart2sph(struct Point *pt);
00037
00038
00039 void vec_sph2car(float *vec_s, float *vec_c, struct Point *pt);
00040
00041
00042
00043
00044
00045
00046 void differential(float *dydx, float *Y, float *g, float *h,
00047 int lmax, float apar, float dir,
00048 void (*Bfunc)(float *, float *, struct Point *, float *, int, float));
00049
00050
00051 void RK4(struct Point *pt1, struct Point *pt2, float *g, float *h,
00052 int lmax, float apar, float dir,
00053 void (*Bfunc)(float *, float *, struct Point *, float *, int, float));
00054
00055
00056 void Euler(struct Point *pt1, struct Point *pt2, float *g, float *h,
00057 int lmax, float apar, float dir,
00058 void (*Bfunc)(float *, float *, struct Point *, float *, int, float));
00059
00060
00061
00062
00063
00064
00065 void compute_fte(float *g, float *h, struct FldLn *fl, int lmax,
00066 float r_hi, float r_lo, float apar,
00067 void (*Bfunc)(float *, float *, struct Point *, float *, int, float));
00068
00069
00070 void trace(float *g, float *h, struct Point *pt0, struct FldLn *fl, int lmax,
00071 void (*integrator)(struct Point *, struct Point *, float *, float *, int, float, float,
00072 void (*)(float *, float *, struct Point *, float *, int, float)),
00073 void (*Bfunc)(float *, float *, struct Point *, float *, int, float),
00074 float r_hi, float r_lo, float apar);
00075
00076
00077 #endif