Langevin C++ source

Loading...
Searching...
No Matches
langevin_construct_grid.cpp
Go to the documentation of this file.
1
5
6#include "langevin_types.hpp"
7#include "langevin_base.hpp"
8
9 bool BaseLangevin::construct_grid(const Parameters p)
10{
11 switch (p.grid_dimension)
12 {
13 case (GridDimension::D1):
14 return construct_1D_grid(p);
15 case (GridDimension::D2):
16 return construct_2D_grid(p);
17 case (GridDimension::D3):
18 return false; // NYI
19 default:
20 return false;
21 }
22}
BaseLangevin::construct_2D_grid
bool construct_2D_grid(const Parameters parameters)
Build 2d Langevin density field grid & mixed topology.
Definition langevin_construct_grid2d.cpp:26
BaseLangevin::construct_grid
bool construct_grid(const Parameters parameters)
Construct Langevin density field grid of appropriate n-D dimension.
Definition langevin_construct_grid.cpp:9
BaseLangevin::construct_1D_grid
bool construct_1D_grid(const Parameters parameters)
Build 1d Langevin density field grid & topology.
Definition langevin_construct_grid1d.cpp:10
langevin_base.hpp
Base class for Langevin equation integrator.
langevin_types.hpp
Type definitions for BaseLangevin integrator.
Parameters
Container for BaseLangevin integrator parameters.
Definition langevin_parameters.hpp:21