Massively Parallel Trotter-Suzuki Solver
1.6.2
|
This class defines the 2D lattice structure over which the state and potential matrices are defined. More...
#include <trottersuzuki.h>
Public Member Functions | |
Lattice2D (int dim, double length, bool periodic_x_axis=false, bool periodic_y_axis=false, double angular_velocity=0., string coordinate_system="cartesian") | |
Lattice2D (int dim_x, double length_x, int dim_y, double length_y, bool periodic_x_axis=false, bool periodic_y_axis=false, double angular_velocity=0., string coordinate_system="cartesian") | |
This class defines the 2D lattice structure over which the state and potential matrices are defined.
As to single-process execution, the lattice is a single tile which can be surrounded by a halo, in the case of periodic boundary conditions. As to multi-process execution, the lattice is divided in smaller lattices, dubbed tiles, one for each process. Each of the tiles is surrounded by a halo.
Lattice2D::Lattice2D | ( | int | dim, |
double | length, | ||
bool | periodic_x_axis = false , |
||
bool | periodic_y_axis = false , |
||
double | angular_velocity = 0. , |
||
string | coordinate_system = "cartesian" |
||
) |
Lattice constructor.
[in] | dim | Linear dimension of the squared lattice. |
[in] | length | Physical length of the lattice's side |
[in] | periodic_x_axis | Boundary condition along the x axis (false=closed, true=periodic). |
[in] | periodic_y_axis | Boundary condition along the y axis (false=closed, true=periodic). |
[in] | angular_velocity | Angular velocity of the frame of reference. |
[in] | coordinate_system | Type of the coordinate system used. |
Lattice2D::Lattice2D | ( | int | dim_x, |
double | length_x, | ||
int | dim_y, | ||
double | length_y, | ||
bool | periodic_x_axis = false , |
||
bool | periodic_y_axis = false , |
||
double | angular_velocity = 0. , |
||
string | coordinate_system = "cartesian" |
||
) |
Lattice constructor.
[in] | dim_x | Linear dimension in x direction |
[in] | length_x | Physical length of the lattice's side along the x axis. |
[in] | dim_y | Linear dimension in y direction |
[in] | length_y | Physical length of the lattice's side along the y axis. |
[in] | periodic_x_axis | Boundary condition along the x axis (false=closed, true=periodic). |
[in] | periodic_y_axis | Boundary condition along the y axis (false=closed, true=periodic). |
[in] | angular_velocity | Angular velocity of the frame of reference. |
[in] | coordinate_system | Type of the coordinate system used. |