OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
main.cpp File Reference
#include <cmath>
#include <iostream>
#include "Grid/grid_dist_id.hpp"
#include "data_type/aggregate.hpp"
#include "VCluster/VCluster.hpp"
#include "Vector/Vector.hpp"
#include "FiniteDifference/util/common.hpp"
#include "FiniteDifference/eq.hpp"
#include "FiniteDifference/FD_op.hpp"
#include "level_set/closest_point/closest_point.hpp"

Go to the source code of this file.

Data Structures

struct  EllipseParameters
 

Typedefs

using GridDist = grid_dist_id< SIM_DIM, double, aggregate< double, double[3]> >
 
typedef struct EllipseParameters EllipseParams
 

Functions

template<const unsigned int phi_field, typename grid_type >
void initializeIndicatorFunc (grid_type &gd, const EllipseParams &params)
 
void estimateErrorInReinit (GridDist &gd, EllipseParams &params)
 
int main (int argc, char *argv[])
 

Variables

constexpr int SIM_DIM = 3
 
constexpr int POLY_ORDER = 5
 
constexpr int SIM_GRID_SIZE = 64
 
constexpr double PI = 3.141592653589793
 
const long int sz [SIM_DIM] = {SIM_GRID_SIZE, SIM_GRID_SIZE, SIM_GRID_SIZE}
 
const size_t szu [SIM_DIM] = {(size_t) sz[0], (size_t) sz[1], (size_t) sz[2]}
 
Box< SIM_DIM, double > domain ({-1.5,-1.5,-1.5},{1.5, 1.5, 1.5})
 
constexpr int x = 0
 
constexpr int y = 1
 
constexpr int z = 2
 
constexpr int phi = 0
 
constexpr int cp = 1
 
double nb_gamma = 0.0
 
constexpr int narrow_band_half_width = 8
 

Typedef Documentation

◆ GridDist

using GridDist = grid_dist_id<SIM_DIM,double,aggregate<double,double[3]> >

Definition at line 42 of file main.cpp.

Function Documentation

◆ estimateErrorInReinit()

void estimateErrorInReinit ( GridDist gd,
EllipseParams params 
)

Definition at line 94 of file main.cpp.

◆ initializeIndicatorFunc()

template<const unsigned int phi_field, typename grid_type >
void initializeIndicatorFunc ( grid_type gd,
const EllipseParams params 
)

Definition at line 74 of file main.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 123 of file main.cpp.

Variable Documentation

◆ cp

constexpr int cp = 1
constexpr

Definition at line 57 of file main.cpp.

◆ narrow_band_half_width

constexpr int narrow_band_half_width = 8
constexpr

Definition at line 62 of file main.cpp.

◆ nb_gamma

double nb_gamma = 0.0

Definition at line 59 of file main.cpp.

◆ phi

constexpr int phi = 0
constexpr

Definition at line 56 of file main.cpp.

◆ PI

constexpr double PI = 3.141592653589793
constexpr

Definition at line 39 of file main.cpp.

◆ POLY_ORDER

constexpr int POLY_ORDER = 5
constexpr

Definition at line 37 of file main.cpp.

◆ SIM_DIM

constexpr int SIM_DIM = 3
constexpr

Definition at line 36 of file main.cpp.

◆ SIM_GRID_SIZE

constexpr int SIM_GRID_SIZE = 64
constexpr

Definition at line 38 of file main.cpp.

◆ sz

const long int sz[SIM_DIM] = {SIM_GRID_SIZE, SIM_GRID_SIZE, SIM_GRID_SIZE}

Definition at line 45 of file main.cpp.

◆ szu

const size_t szu[SIM_DIM] = {(size_t) sz[0], (size_t) sz[1], (size_t) sz[2]}

Definition at line 46 of file main.cpp.

◆ x

constexpr int x = 0
constexpr

Definition at line 51 of file main.cpp.

◆ y

constexpr int y = 1
constexpr

Definition at line 52 of file main.cpp.

◆ z

constexpr int z = 2
constexpr

Definition at line 53 of file main.cpp.