pymms

Implementation of a non-numeric spacetime model with the Minkowski metric

View the Project on GitHub vgurianov/srt

1. Simulation model

    • Use-Case Model
    • Analysis Model
    • Design Model

2. Package API

    • Package Overview
    • pymms.mms module
    • pymms.resacher_instruments module
    • pymms.print_results and pymms.drawing modules

3. Experiments

    • Getting Started
    • The time dilation
    • Velosity and energy as function of momentum
    • Inertial reference frame

mms module

Description: module is the definition of base classes

Module use packages:

class Carrier («Ontological Atom»)

Description: User type
Concept: class is the interaction carrier
Bases: object

Attributes:

Name Type Description
direction enumeration direction in space

class Jump:

Description: Linked list node
Concept: class is the motion count
Bases: object

Attributes:

Name Type Description
direction enumeration direction in space
next Inctance of class Jump next node

class Leaf («Ontological Atom»)

Description: Leaf of pattern Composite
Concept: Particle
Bases: object
def __init__(self, v)

Name Type Description
v int velocity of particle

Attributes:

Name Type Description
head_of_jump Inctance of class Jump list head
current_jump Inctance of class Jump current node of list
tick int time counter

Operations:

def is_active(self)
Description: list Jump isn’t None check
def jumpp(self)
Description: shift list Jump
def run(self)
Description: shift list tmp
def reset(self)
Description: set list Jump in start
def do_impact(self, car)
Description: create node Jump and append in list
Parameters:

Name Type Description
car Inctance of class Carrier interaction carrier

def interaction(self, car)
Description: The particle impact on the interaction carrier
Parameters:

Name Type Description
car Inctance of class Carrier interaction carrier

class Temp

Description: Linked list tmp node
Concept: Time interval
Bases: object

def __init__(self, t)

Name Type Description
t Inctance of class Temp time stamp for measurement

Attributes:

Name Type Description
next Inctance of class Temp next node
t int time counter
marker Inctance of class Time time marked
dedicated_node bool time counter

class ListItem («Ontological Space»)

Description: Linked list lst node
Concept: A cell of physical space
Bases: object

def __init__(self, x, o)

Name Type Description
x int coordinate stamp for measurement
o Inctance of class Table detector

Attributes:

Name Type Description
x int coordinate stamp for measurement
left Inctance of class ListItem next node
right Inctance of class ListItem next node
contents Inctance of class Leaf content of cell
tmp Inctance of class Time current node of list
count_tmp int length list tmp
temp Inctance of class Time head of list
observer Inctance of class Table detector
_err_flag bool error indicator

Operations:

def app_temp(self, tm)
Description: append a new node to linked list tmp
Parameters:

Name Type Description
tm Inctance of class Temp current time moment

def one_jump(self)
Description: one jump of particle

def item_run(self, tt, t_glob, c)
Description: activity in physical cell
Parameters:

Name Type Description
tt Inctance of class Temp current time moment
t_glob int current tick
c Inctance of class Carrier interaction carrier

def reset_tmp(self)
Description: set list tmp in start

class Composite («Ontological Category»)

Description: Composite of pattern Composite
Concept: a physical space model
Bases: object

` def init(self, size_tick, count_tick, observer)`

Name Type Description
size_tick int time tick size
count_tick int ticks count
observer Inctance of class Table detector

Attributes:

Name Type Description
tmp Inctance of class Temp time (list)
lst Inctance of class ListItem space (list)
carr Inctance of class Carrier interaction carrier
tick int counter time

Operations:

def move_reset(self)
Description: all particles set list Jump in start
def interaction(self, car_in)
Description: interaction with infinite mass
def run(self) («Exist»)
Description: activity run
Concept: activity in physical space