ASCOT5
Loading...
Searching...
No Matches
wall.h
Go to the documentation of this file.
1
9#ifndef WALL_H
10#define WALL_H
11
12#include "ascot5.h"
13#include "offload.h"
14#include "wall/wall_2d.h"
15#include "wall/wall_3d.h"
16
24
36
37void wall_free(wall_data* data);
38void wall_offload(wall_data* data);
39GPU_DECLARE_TARGET_SIMD_UNIFORM(w)
40int wall_hit_wall(real r1, real phi1, real z1, real r2, real phi2, real z2,
41 wall_data* w, real* w_coll);
42DECLARE_TARGET_END
43
44GPU_DECLARE_TARGET_SIMD_UNIFORM(w)
46DECLARE_TARGET_END
47#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
2D wall data parameters
Definition wall_2d.h:15
3D wall data parameters
Definition wall_3d.h:16
Wall model simulation data.
Definition wall.h:31
wall_type type
Definition wall.h:32
wall_3d_data w3d
Definition wall.h:34
wall_2d_data w2d
Definition wall.h:33
void wall_offload(wall_data *data)
Offload data to the accelerator.
Definition wall.c:46
DECLARE_TARGET_END int wall_get_n_elements(wall_data *w)
Return the number of wall elements.
Definition wall.c:104
int wall_hit_wall(real r1, real phi1, real z1, real r2, real phi2, real z2, wall_data *w, real *w_coll)
Check if a given directed line segment intersects the wall.
Definition wall.c:80
wall_type
Wall model types.
Definition wall.h:20
@ wall_type_2D
Definition wall.h:21
@ wall_type_3D
Definition wall.h:22
void wall_free(wall_data *data)
Free allocated resources.
Definition wall.c:29
Header file for wall_2d.c.
Header file for wall_3d.c.