GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
ds.h File Reference

Dastructure for simulation runtime parameters. More...

#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <unordered_map>
#include <vector>
#include <fstream>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cufft.h>
#include <typeinfo>
#include <cassert>
#include <iostream>
Include dependency graph for ds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pos
 Struct for an x, y, z position. More...
 
struct  EqnNode
 Struct to hold the node information for the AST on the CPU. More...
 
struct  EqnNode_gpu
 Struct to hold the node information for the AST on the GPU. More...
 
class  Grid
 Class to hold the variable map and grid information. More...
 

Typedefs

typedef double(* fnPtr) (double, double)
 function pointer type More...
 
typedef class Grid Grid
 

Functions

void generate_plan_other2d (cufftHandle *plan_fft1d, Grid &par)
 Generates CUFFT plan for 2D simulations. More...
 
void generate_plan_other3d (cufftHandle *plan_fft1d, Grid &par, int axis)
 Generates CUFFT plan for 3D simulations. More...
 
void set_fns (Grid &par)
 Sets default functions for all fields (A, K, V) More...
 

Detailed Description

Dastructure for simulation runtime parameters.

Author
James R. Schloss (leios) and Lee J. O'Riordan (mlxd)
Date
12/11/2015
Version
0.1

DESCRIPTION

This file holds necessary classes and structs for all GPUE simulations. EqnNode and EqnNode_gpu are for dynamic parsing and Grid is for general use.

Definition in file ds.h.

Typedef Documentation

◆ fnPtr

typedef double(* fnPtr) (double, double)

function pointer type

Definition at line 50 of file ds.h.

◆ Grid

typedef class Grid Grid

Definition at line 197 of file ds.h.

Function Documentation

◆ generate_plan_other2d()

void generate_plan_other2d ( cufftHandle *  plan_fft1d,
Grid par 
)

Generates CUFFT plan for 2D simulations.

◆ generate_plan_other3d()

void generate_plan_other3d ( cufftHandle *  plan_fft1d,
Grid par,
int  axis 
)

Generates CUFFT plan for 3D simulations.

◆ set_fns()

void set_fns ( Grid par)

Sets default functions for all fields (A, K, V)