How dbarnali/propagation_effect_magnetosphere works
Purpose and Entry Points
This repository implements a 3D propagation-effect simulation, likely modeling wave/field evolution through a spatial density medium. Primary executable entry points are:
• propagation_effect_full_simulation_3D.py — end-to-end 3D simulation driver.
• use_ray_paths.py — ray-path-oriented execution or post-processing workflow.
• test.py — lightweight validation or experiment runner.
Simulation Orchestration
propagation_effect_full_simulation_3D.py is the top-level control boundary: it likely assembles global parameters, initializes the 3D field, selects density behavior, invokes grid integration, and emits simulation results. It is the central integration point for the compiled numerical kernels.
• propagation_effect_full_simulation_3D.py
• global_vars.py
• instructions_on_which_codes_to_use.txt
Global Model Parameters
global_vars.py centralizes shared physical, numerical, or scenario parameters. This creates a repository-wide mutable configuration boundary: numerical kernels and drivers likely depend on compatible dimensional conventions, grid sizing, and propagation constants.
• global_vars.py
• propagation_effect_full_simulation_3D.py
Initial-Condition Construction
Initial complex 3D fields are generated in a Cython kernel. This is the starting data boundary for the numerical pipeline: source/incident-field definitions are converted into arrays suitable for repeated propagation updates.
• propagation_effect_tools_initial_condition_3D_complex_IM_cython.pyx
• propagation_effect_full_simulation_3D.py
Density / Medium Models
The medium density is represented by two performance-oriented Cython implementations: a general density function and an analytical variant. The analytical implementation likely supports closed-form or idealized density profiles, while the other supports the simulation’s primary density calculation path.
• propagation_effect_tools_density_func.pyx
• propagation_effect_tools_density_func_analytical.pyx
• propagation_effect_full_simulation_3D.py
3D Grid Propagation Solver
The core numerical evolution is handled by a Python grid-integration module. It likely consumes the initialized complex field and density samples, then advances propagation across the 3D computational grid. This is the main control/data-flow junction between Python orchestration and Cython numerical kernels.
• propagation_effect_tools_solve_integration_3D_grid.py
• propagation_effect_tools_density_func.pyx
• propagation_effect_tools_initial_condition_3D_complex_IM_cython.pyx
Ray-Path Workflow
use_ray_paths.py provides a distinct execution boundary for calculations based on ray trajectories. It may use simulation outputs or shared medium definitions to evaluate path-dependent propagation effects, rather than running only the full grid-field workflow.
• use_ray_paths.py
• propagation_effect_tools_density_func.pyx
• global_vars.py
Runtime and Build Boundary
The repository uses Python as the orchestration runtime and Cython (.pyx) for computationally expensive density and initial-condition operations. setup_cypython.py is the build/install boundary required before Python drivers can import compiled extension modules. No external hosted services or deployment infrastructure are represented in the repository tree.
• setup_cypython.py
• propagation_effect_tools_density_func.pyx
• propagation_effect_tools_initial_condition_3D_complex_IM_cython.pyx
Main entry points: propagation_effect_full_simulation_3D.py Full 3D simulation · propagation_effect_tools_solve_integration_3D_grid.py 3D grid solver · propagation_effect_tools_density_func.pyx Density model · use_ray_paths.py Ray-path workflow
Components 9
Execution workflows
- Full 3D simulation · End-to-end field propagation workflow.
propagation_effect_full_simulation_3D.py - Ray-path workflow · Path-dependent propagation calculations.
use_ray_paths.py
Python control layer
- Global parameters · Physical, numerical, and scenario parameters.
global_vars.py - 3D grid solver · Advances the complex field through the computational grid.
propagation_effect_tools_solve_integration_3D_grid.py - Cython build · Builds extension modules for Python workflows.
setup_cypython.py
Compiled numerical kernels
- Initial complex field · Constructs source/incident 3D field arrays.
propagation_effect_tools_initial_condition_3D_complex_IM_cython.pyx - Density model · Primary medium-density calculation.
propagation_effect_tools_density_func.pyx - Analytical density model · Idealized or closed-form density profile.
propagation_effect_tools_density_func_analytical.pyx
Other components
- Simulation results · Evolved 3D propagation field and derived results.
Connections 15
- Cython build → Initial complex field: builds
- Cython build → Density model: builds
- Cython build → Analytical density model: builds
- Full 3D simulation → Global parameters: loads parameters
- Full 3D simulation → Initial complex field: initializes
- Full 3D simulation → Density model: selects medium
- Full 3D simulation → Analytical density model: can select
- Full 3D simulation → 3D grid solver: runs
- Global parameters → 3D grid solver: sets conventions
- Initial complex field → 3D grid solver: initial field
- Density model → 3D grid solver: density samples
- 3D grid solver → Simulation results: evolves field
- Ray-path workflow → Global parameters: loads parameters
- Ray-path workflow → Density model: evaluates medium
- Ray-path workflow → Simulation results: produces path effects