mol

package
v0.0.0-...-99d09c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2015 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Overview

Package mol defines the different MCell molecule types

Copyright 2015 Markus Dittrich Licensed under BSD license, see LICENSE file for details

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mol3

type Mol3 struct {
	Spec *Species // what species are we
	R    vec.Vec3 // where are we
	Bday float64  // when were we born
}

Molecule represents a volume (3D) molecule

func (*Mol3) MoveTo

func (m *Mol3) MoveTo(newPos vec.Vec3)

moveTo moves the given molecule to the specified position

type MolMap

type MolMap map[string][]*Mol3

MolMap is a dictionary with species names as keys and an arrays of molecules of that type a values

type Species

type Species struct {
	Name string  // species name
	D    float64 // diffusion coefficient
}

Species represents a molecule type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL