cuIBM
A GPU-based Immersed Boundary Method code
domain.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "types.h"
10 
11 
16 class domain
17 {
18 public:
19  int nx,
20  ny;
21 
22  vecH x,
23  y,
24  dx,
25  dy;
26 
27  vecD xD,
28  yD,
29  dxD,
30  dyD;
31 
32  vecH xu,
33  yu,
34  xv,
35  yv;
36 }; // domain
vecH x
x-coordinates of the nodes
Definition: domain.h:22
Definition of custom types required by the code.
vecH dx
cell-widths in the x-direction
Definition: domain.h:22
vecH yv
y-coordinates where the y-components of velocity are evaluated
Definition: domain.h:32
vecH dy
cell-widths in the y-direction
Definition: domain.h:22
vecD xD
x-coordinates of the nodes stored on the device
Definition: domain.h:27
vecD yD
y-coordinates of the nodes stored on the device
Definition: domain.h:27
vecH yu
y-coordinates where the x-components of velocity are evaluated
Definition: domain.h:32
cusp::array1d< real, host_memory > vecH
Cusp 1D array stored in the host.
Definition: types.h:154
Stores information about the computational grid.
Definition: domain.h:16
vecH xu
x-coordinates where the x-components of velocity are evaluated
Definition: domain.h:32
vecH xv
x-coordinates where the y-components of velocity are evaluated
Definition: domain.h:32
vecD dxD
x- cell widths stored on the device
Definition: domain.h:27
int ny
number of cells in the y-direction
Definition: domain.h:19
int nx
number of cells in the x-direction
Definition: domain.h:19
vecD dyD
y- cell widths stored on the device
Definition: domain.h:27
vecH y
y-coordinates of the nodes
Definition: domain.h:22
cusp::array1d< real, device_memory > vecD
Cusp 1D array stored in the device.
Definition: types.h:161