CelerisLab/legacy
2026-04-17 21:50:38 +08:00
..
lbm_configs 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00
common_utils.py 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00
cuda_compiler_v1.py 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00
lbm_driver.py 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00
macros.h 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00
README.md 重构:分级设计,EsoPull 2026-04-17 21:50:38 +08:00

Legacy Code Archive

This directory contains code that has been superseded by the current architecture but is kept for reference.

Contents

File / Dir Replaced By Reason
lbm_driver.py src/CelerisLab/simulation.py + lbm/field.py + lbm/stepper.py Monolithic FlowField class. New Simulation API separates concerns: CudaContext / LBMField / LBMStepper / ObjectManager.
cuda_compiler_v1.py src/CelerisLab/cuda/compiler_v2.py macros.h-based build system. New compiler writes typed config/*.h headers per architectural layer.
macros.h src/CelerisLab/lbm/kernels/config/*.h Single flat macro file. Now split into config_grid.h / config_physics.h / config_method.h / config_objects.h matching the Global/Method/Case/Debug parameter hierarchy.
common_utils.py src/CelerisLab/config.py + src/CelerisLab/cuda/context.py FlowFieldConfig / CudaConfig NamedTuples and their JSON loaders. Replaced by LBMConfig / BodyConfig dataclasses (config.py) and CudaContext (cuda/context.py).
lbm_configs/ src/CelerisLab/configs/ Old JSON config format used by FlowField / compiler_v1.

Notes

  • None of these files is imported by any active module.
  • lbm_driver.py (FlowField) depended on cuda_compiler_v1.py and common_utils.py; all three were removed from src together.
  • macros.h was the old single-file configuration for kernel_v2.cu; kernel_v2.cu now includes config.h which aggregates config/*.h.