Available on crate feature
cpu_os_threads
only.Expand description
See cellular_raza_core::backend::cpu_os_threads
Note that this backend is NOT compatible with the cellular_raza_core::backend::chili. In order to use this backend, import it with
use cellular_raza::prelude::cpu_os_threads::*;
Modules§
- backend
- Numerically solve a given simulation setup.
- cartesian_
cuboid_ 2_ vertex_ old - Contains deprecated cartesian cuboid implementations for an older vertex model
- cartesian_
cuboid_ n_ old - Contains deprecated cartesian cuboid implementations
- domain_
old - Traits and types which will eventually replace the old Domain definition.
- pool_
bacteria - Objects and definitions surrounding the bacterial pool model
- rayon
- Rayon is a data-parallelism library that makes it easy to convert sequential computations into parallel.
- reactions_
old - Contains traits and types which specify cellular reactions specific to the
cpu_os_threads
backend. - storage
- Interface and methods to store and load simulation aspects.
- time
- Controls how the simulation time is advanced
- tracing
- A scoped, structured logging and diagnostics system.
Structs§
- Auxiliary
Cell Property Storage - Contains auxiliary information to update cellular properties
- Batch
Save Format - Define how batches of elements and identifiers are saved when being serialized.
- Bound
Lennard Jones - Lennard-Jones interaction potential with numerical upper and lower limit.
- Bound
Lennard Jones F32 - Identical to BoundLennardJones but for
f32
type. - Boundary
Error - Can occur during boundary calculation
- Brownian1D
- Brownian motion of particles
- Brownian1D
F32 - Brownian motion of particles
- Brownian2D
- Brownian motion of particles
- Brownian2D
F32 - Brownian motion of particles
- Brownian3D
- Brownian motion of particles
- Brownian3D
F32 - Brownian motion of particles
- Calc
Error - General Calculation Error
- Cartesian
Cuboid - A generic Domain with a cuboid layout.
- Cartesian
Cuboid1 New - Cartesian cuboid in
1D
with float typef64
- Cartesian
Cuboid1 NewF32 - Cartesian cuboid in
1D
with float typef32
- Cartesian
Cuboid2 New - Cartesian cuboid in
2D
with float typef64
- Cartesian
Cuboid2 NewF32 - Cartesian cuboid in
2D
with float typef32
- Cartesian
Cuboid3 New - Cartesian cuboid in
3D
with float typef64
- Cartesian
Cuboid3 NewF32 - Cartesian cuboid in
3D
with float typef32
- Cartesian
Cuboid Rods - Cells are represented by rods
- Cartesian
SubDomain - Subdomain corresponding to the CartesianCuboid struct.
- Cartesian
SubDomain1 - Subdomain of CartesianCuboid1New
- Cartesian
SubDomain2 - Subdomain of CartesianCuboid2New
- Cartesian
SubDomain3 - Subdomain of CartesianCuboid3New
- Cartesian
SubDomain1 F32 - Subdomain of CartesianCuboid1NewF32
- Cartesian
SubDomain2 F32 - Subdomain of CartesianCuboid2NewF32
- Cartesian
SubDomain3 F32 - Subdomain of CartesianCuboid3NewF32
- Cartesian
SubDomain Rods - The corresponding SubDomain of the CartesianCuboidRods domain.
- Cartesian
Voxel1 - Voxel of the CartesianSubDomain1
- Cartesian
Voxel2 - Voxel of the CartesianSubDomain2
- Cartesian
Voxel3 - Voxel of the CartesianSubDomain3
- Cartesian
Voxel1 F32 - Voxel of the CartesianSubDomain1F32
- Cartesian
Voxel2 F32 - Voxel of the CartesianSubDomain2F32
- Cartesian
Voxel3 F32 - Voxel of the CartesianSubDomain3F32
- Cell
Agent Box - A container struct containing meta-information of a given Cell Some variables such as id are not required and not desired to be initialized by the user. This CellAgentBox acts as a container around the cell to hold these variables.
- Combined
Save Format - Define how elements and identifiers are saved when being serialized together.
- Communication
Error - Error which occurs during sending, receiving or transmitting information between threads
- Controller
Error - Occurs when incorrectly applying a controller effect
- Death
Error - Errors occurring during the final death step of a cell
- Decomposed
Domain - Generated by the decompose method. The backend will know how to deal with this type and crate a working simulation from it.
- Division
Error - Errors related to a cell dividing process
- Domain
Box - Wrapper around the user-defined simulation Domain
- Drawing
Error - Used to catch errors related to plotting
- Fixed
Stepsize - Time stepping with a fixed time length
- Index
Error - Can occur internally when information is not present at expected place
- Json
Storage Interface - Save elements as json files with serde_json.
- Langevin1D
- Langevin dynamics
- Langevin1D
F32 - Langevin dynamics
- Langevin2D
- Langevin dynamics
- Langevin2D
F32 - Langevin dynamics
- Langevin3D
- Langevin dynamics
- Langevin3D
F32 - Langevin dynamics
- Memory
Storage Interface - Use the [sled] database to save results to an embedded database.
- MiePotential
- Generalizeation of the BoundLennardJones potential.
- MiePotential
F32 - Generalizeation of the BoundLennardJones potential.
- Modular
Cell - Superseded by the CellAgent derive macro.
- Morse
Potential - Famous Morse potential for diatomic molecules.
- Morse
Potential F32 - Famous Morse potential for diatomic molecules.
- Multi
Voxel Container - Subdomain which consists of multiple Voxels
- Newton
Damped1D - Newtonian dynamics governed by mass and damping.
- Newton
Damped1D F32 - Newtonian dynamics governed by mass and damping.
- Newton
Damped2D - Newtonian dynamics governed by mass and damping.
- Newton
Damped2D F32 - Newtonian dynamics governed by mass and damping.
- Newton
Damped3D - Newtonian dynamics governed by mass and damping.
- Newton
Damped3D F32 - Newtonian dynamics governed by mass and damping.
- Next
Time Point - Represents the next time point which is returned by the TimeStepper::advance method.
- NoCellular
Reactions - Do not model intracellular reactions at all.
- NoCycle
- No cycle of the cell.
- NoExtracellular
Gradient Sensing - Type which allows to simply not model gradients.
- NoInteraction
- No interaction of the cell with any other.
- Plotting
Config - Contains settings for plotting results.
- Request
Error - Ask the wrong object for information and receive this error
- RngError
- Can occur when generating distributions or drawing samples from them.
- RodInteraction
- Automatically derives a Interaction suitable for rods from a point-wise interaction.
- RodMechanics
- A mechanical model for Bacterial Rods
- RonStorage
Interface - Save elements as ron files with ron.
- Setup
Error - Occurs during setup of a new simulation
- Simulation
Config - Contains non-volatile configurations such as display settings etc.
- Simulation
Meta Params - Store meta parameters for simulation
- Simulation
Result - Returned after finishing a full simulation
- Simulation
Setup - Complete Set of parameters controlling execution flow of simulation
- Simulation
Supervisor - Supervisor controlling simulation execution
- Sled
Storage Interface - Use the [sled] database to save results to an embedded database.
- Storage
Builder - Used to construct a StorageManager
- Storage
Manager - This manager handles if multiple storage options have been specified It can load resources from one storage aspect and will
- Strategies
- Contains methods to modify voxels when initializing the simulation domain.
- Time
Error - Error related to advancing the simulation time or displaying its progress
- Time
Setup - Contains information about the discretization of time and when to save results.
- Vertex
Derived Interaction - Derives an interaction potential from a point-like potential.
- Vertex
Mechanics2D - Mechanics model which represents cells as vertices with edges between them.
- Voxel
Box - Wrapper for a Voxel struct that includes more information and cells.
Enums§
- Cycle
Event - Contains all events which can arise during the cell cycle and need to be communciated to the simulation engine (see also Cycle).
- Decompose
Error - Error during decomposition of a SimulationDomain into multiple subdomains
- Image
Type - Image type used for saving results to a file.
- Simulation
Error - Covers all errors that can occur in this Simulation
- Storage
Error - Error related to storing and reading elements
- Storage
Mode - The mode in which to generate paths and store results.
- Storage
Option - Define how to store results of the simulation.
- Time
Event - A TimeEvent describes that a certain action is to be executed after the next iteration step.
Traits§
- Agent
- Encapsulates all concepts that can be specified for a Agent
- Create
Plotting Root - Creates a new plotting root which can then be drawn upon.
- Cycle
- This trait represents all cycles of a cell and works in tandem with the CycleEvent enum.
- Domain
- Provides an abstraction of the physical total simulation domain.
- Domain
Create SubDomains - Generate SubDomains from an existing Domain
- Domain
RngSeed - Manage the current rng seed of a Domain
- File
Based Storage - Abstraction and simplification of many file-based storage solutions
- Force
Bound - Represents a force which can act between two cells.
- Id
- Specifies how to retrieve a unique identifier of an object.
- Interaction
- Trait describing force-interactions between cellular agents.
- Interaction
Information - Trait implementations needed for the information generic parameter of Interaction.
- Intracellular
- Setter and Getter for intracellular values of a cellagent.
- Mechanics
- Describes the position of a cell-agent and allows to calculate increments and set/get information of the agent.
- Plot
Self - Allows elements of the simulation such as cells and voxels to draw themselves onto a plotting root. Typically, voxels will draw first and cells afterwards.
- Position
- Methods for accessing the position of an agent.
- Position
Bound - Represents the current position of a cell-agent.
- Reactions
- Describes purely intracellular reactions of a cellagent.
- Reactions
Contact - Reactions between cells which are in direct contact
- Reactions
Extra - This trait models extracellular reactions which interact with agents.
- Sort
Cells - Assign an VoxelIndex to a given cell.
- Storage
Interface - Provide methods to initialize, store and load single and multiple elements at iterations.
- Storage
Interface Load - Handles loading of elements
- Storage
Interface Open - Open or create a new instance of the Storage controller.
- Storage
Interface Store - Handles storing of elements
- SubDomain
- Subdomains are produced by decomposing a Domain into multiple physical regions.
- SubDomain
Force - Apply a force on a cell depending on its position and velocity.
- SubDomain
Mechanics - Apply boundary conditions to a cells position and velocity.
- SubDomain
Reactions - Describes extracellular reactions and fluid dynamics
- Time
Stepper - Increments time of the simulation
- Velocity
- Methods for accessing the velocity of an agent
- Velocity
Bound - Represents the velocity of a cell.
- Xapy
- Mathematical abstraction similar to the well-known
axpy
method.
Functions§
- calculate_
morse_ interaction - Calculates the interaction strength behind the MorsePotential and MorsePotentialF32 structs.
- nearest_
point_ from_ point_ to_ line - Calculate the point on a line which is closest to an external given point.
- nearest_
point_ from_ point_ to_ multiple_ lines - Generalizes the nearest_point_from_point_to_line function for a collection of line segments.
- ray_
intersects_ line_ segment - Implements the ray-casting algorithm to check if a ray intersects with a given line segment.
- wiener_
process - Generate a vector corresponding to a wiener process.
Type Aliases§
- Cellular
Identifier - This is a unique identifier which is deterministic even in multi-threading situations. Its components are
- Nothing
- Type alias used when not wanting to simulate any cellular reactions for example.
- Plain
Index - This is a purely implementational detail and should not be of any concern to the end user.