Skip to content

Andyduck-ops/3D-Enzyme-Cascade-MSE

Repository files navigation

3D Enzyme Cascade Simulation (MATLAB)

🌐 Language / ����
English 简体中文

License: MIT MATLAB Release Platform Code Quality Maintained Documentation Contributions Welcome GitHub Stars

1. Project Overview

This subproject implements a 3D Brownian dynamics simulator for a two-step enzyme cascade, extending the 2D framework to three dimensions while keeping a shared, dimension-agnostic core. It compares mineral-surface enzyme (MSE) localization against bulk distribution in 3D, and adds utilities for data export, automated testing, and interactive visualization in MATLAB.

Key features:

  • Dimension-aware core that can run in 3D and reuse logic for 2D via a compatibility layer.
  • Support for both MSE and bulk modes with heterogeneous diffusion and crowding inhibition.
  • Multi-task parallel execution for running many independent configurations in parallel.
  • Checkpoint-like batch execution and resumable 3D simulations.
  • Unified export of MAT, CSV and JSON metadata for downstream analysis.
  • Interactive 3D viewer for snapshots and shell statistics.

For the underlying physical and mathematical model, see 3D/docs/3d_model_theory.en.md and 3D/docs/3d_model_theory.md.

2. Repository Layout

All paths below are relative to this 3D/ directory.

3. Requirements

  • MATLAB R2019b or later (tested with newer versions).
  • Recommended toolboxes:
    • Parallel Computing Toolbox – required for parfor-based batch execution and multi-task parallelism.
    • Statistics and Machine Learning Toolbox – recommended for some neighbor search backends.
  • Optional: an NVIDIA GPU for GPU-accelerated neighbor search and larger systems.

On Windows, Linux or macOS you can run the project from a standard desktop installation of MATLAB with the toolboxes above.

4. Quick Start

4.1 Add the project to the MATLAB path

In MATLAB, change the current folder to the 3D/ directory and add the relevant subfolders:

addpath(pwd);                     % 3D/
addpath(fullfile(pwd, 'core'));
addpath(fullfile(pwd, 'core', 'config3d'));
addpath(fullfile(pwd, 'core', 'sim_core3d'));
addpath(fullfile(pwd, 'core', 'utils'));
addpath(fullfile(pwd, 'export'));
addpath(fullfile(pwd, 'viz'));
addpath(fullfile(pwd, 'scripts'));

4.2 Run a single 3D simulation

run_single_batch;

This runs a default 3D MSE vs bulk comparison and writes results to the out/ directory (MAT files, CSV exports, and figures).

4.3 Run the full test suite

tests/run_tests;

This executes unit tests for diffusion, boundary reflection, inhibition logic, neighbor list construction, GPU execution (if available), and configuration sanity checks.

5. Example Workflows

6. License

This 3D module is released under the MIT License, consistent with the 2D project.
See the LICENSE file in this directory for full terms and citation guidelines.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages