RMPCDMD
Data Types | Functions/Subroutines | Variables
cell_system Module Reference

Spatial cells. More...

Data Types

type  cell_system_t
 

Functions/Subroutines

subroutine init (this, L, a, has_walls)
 
subroutine count_particles (this, position)
 
subroutine sort_particles (this, position_old, position_new)
 
subroutine random_shift (this, state)
 
integer function, dimension(3) cartesian_indices (this, position)
 

Variables

integer, parameter, public periodic_bc = 1
 
integer, parameter, public bounce_back_bc = 2
 
integer, parameter, public specular_bc = 3
 

Detailed Description

Spatial cells.

This module defines a derived type cell_system_t that contains the information for a 3-dimensional cartesian cell and the associated compact Hilbert index (see module hilbert).

Function/Subroutine Documentation

◆ cartesian_indices()

integer function, dimension(3) cell_system::cartesian_indices ( class(cell_system_t), intent(in)  this,
double precision, dimension(3), intent(in)  position 
)

Definition at line 166 of file cell_system.f90.

◆ count_particles()

subroutine cell_system::count_particles ( class(cell_system_t), intent(inout)  this,
double precision, dimension(:, :), intent(in)  position 
)

Definition at line 87 of file cell_system.f90.

◆ init()

subroutine cell_system::init ( class(cell_system_t), intent(out)  this,
integer, dimension(3), intent(in)  L,
double precision, intent(in)  a,
logical, intent(in), optional  has_walls 
)
private

Definition at line 50 of file cell_system.f90.

◆ random_shift()

subroutine cell_system::random_shift ( class(cell_system_t), intent(inout)  this,
type(threefry_rng_t), intent(inout)  state 
)
private

Definition at line 154 of file cell_system.f90.

◆ sort_particles()

subroutine cell_system::sort_particles ( class(cell_system_t), intent(inout)  this,
double precision, dimension(:, :), intent(in)  position_old,
double precision, dimension(:, :), intent(out)  position_new 
)

Definition at line 132 of file cell_system.f90.

Variable Documentation

◆ bounce_back_bc

integer, parameter, public cell_system::bounce_back_bc = 2

Definition at line 44 of file cell_system.f90.

◆ periodic_bc

integer, parameter, public cell_system::periodic_bc = 1

Definition at line 43 of file cell_system.f90.

◆ specular_bc

integer, parameter, public cell_system::specular_bc = 3

Definition at line 45 of file cell_system.f90.