21 void extend(
double inner_ext,
double outer_ext){
30 const View<int*,CLayout,DeviceType>& num_t_node,
const View<int**,CLayout,DeviceType>& tr_node,
32 constexpr
double epsilon = 1.0e-8;
46 constexpr
double epsilon2 = 1.0e-5;
50 && (grid.
psi(i) < (magnetic_field.
equil.
xpt_psi*(1.0 + epsilon2))))
return true;
54 for (
int j=0; j<num_t_node(i); j++){
55 int itr = tr_node(j,i) + 1;
56 for(
int ip=0; ip<3; ip++){
64 for(
int j=0; j<grid.
nwall; j++){
81 return exclude_node(magnetic_field, grid, num_t_node, tr_node, settings, i);
KOKKOS_INLINE_FUNCTION RZPair get_wall_rz(int i_wall) const
Definition: grid.tpp:294
VertexList get_excluded_vertex_list(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &settings)
Definition: boundary.hpp:78
double out_bd_psi_priv1
Definition: boundary.hpp:11
RZPair xpt2
coordinates of 2nd X-point
Definition: equil.hpp:93
Definition: magnetic_field.hpp:12
Equilibrium equil
The object containing information about the magnetic equilibrium.
Definition: magnetic_field.hpp:44
bool excl_sep_leg
Definition: boundary.hpp:19
double out_bd_psi_priv2
Definition: boundary.hpp:12
double z
Definition: grid_structs.hpp:30
int nwall
Definition: grid.hpp:164
Definition: grid_structs.hpp:28
bool set_xpt2
Whether to use a 2nd X-point.
Definition: equil.hpp:92
Definition: boundary.hpp:85
bool excl_wall
Definition: boundary.hpp:18
bool excl_near_wall
Definition: boundary.hpp:17
bool excl_private
Definition: boundary.hpp:16
Kokkos::View< double *, Kokkos::LayoutRight, Device > psi
An array of psi coordinates.
Definition: grid.hpp:170
KOKKOS_INLINE_FUNCTION void get_rz_coordinates(const int inode, double &r, double &z) const
Definition: grid.tpp:284
Definition: boundary.hpp:8
Boundary()
Definition: boundary.hpp:89
KOKKOS_INLINE_FUNCTION bool node_is_on_wall(const int inode) const
Definition: plane.tpp:816
KOKKOS_INLINE_FUNCTION int get_node_index(int triangle_index, int tri_vertex_index) const
Definition: grid.tpp:158
double out_bd_psi
Definition: boundary.hpp:10
double in_bd_psi
Definition: boundary.hpp:9
void extend(double inner_ext, double outer_ext)
Definition: boundary.hpp:21
double xpt_slope
Slope (which slope?) at 1st X-point.
Definition: equil.hpp:91
KOKKOS_INLINE_FUNCTION bool node_is_in_region_1_or_2_no_wall(const int inode) const
Definition: grid.tpp:202
bool excl_inner
Definition: boundary.hpp:14
RZPair xpt
coordinates of 1st X-point
Definition: equil.hpp:90
double r
Definition: grid_structs.hpp:29
Definition: magnetic_field.F90:1
Definition: vertex_list.hpp:53
bool excl_outer
Definition: boundary.hpp:15
Boundary(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &settings)
Definition: boundary.hpp:91
static KOKKOS_INLINE_FUNCTION bool exclude_node(const MagneticField< DeviceType > &magnetic_field, const Grid< DeviceType > &grid, const View< int *, CLayout, DeviceType > &num_t_node, const View< int **, CLayout, DeviceType > &tr_node, const BoundarySettings &s, int i)
Definition: boundary.hpp:29
Plane< Device > midplane
Definition: grid.hpp:154
int nnode
Number of grid nodes.
Definition: grid.hpp:159
KOKKOS_INLINE_FUNCTION double get_dist2_from_node(const int inode, const double r, const double z) const
Definition: plane.tpp:886
KOKKOS_INLINE_FUNCTION bool node_is_in_region_2_or_3_no_wall(const int inode) const
Definition: grid.tpp:207
double xpt_psi
Psi coordinate of 1st X-point.
Definition: equil.hpp:87
double bd_ext_near_wall
Definition: boundary.hpp:13