Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

warp-sensitivity-analysis

Multi-scale theoretical physics testing framework for warp drive signatures.

Overview

This package provides a comprehensive analysis pipeline spanning three regimes:

  1. Signal vs. Noise Analysis: Compare synthetic warp signals against detector sensitivity curves
  2. Semi-Classical Testing: Generate Post-Newtonian corrections and compare with precision experiments
  3. Strong-Curvature Models: Explore Planck-scale physics with toy black hole and cosmological models

Repository Structure

. ├── README.md ├── EXTENDED_FRAMEWORK.md # Detailed framework documentation
├── mock_data.ndjson # Synthetic signal time-series/spectra JSON-lines ├── mock_data.am # AsciiMath metadata for mock_data ├── sensitivity_curve.csv # Generated noise curve (frequency, noise PSD) ├── sensitivity_curve.am # AsciiMath metadata for sensitivity curve ├── generate_sensitivity_curve.py # Noise curve generator
├── analyze_sensitivity.py # Original signal vs noise analysis
├── ├── semi_classical/ # Post-Newtonian analysis
│ ├── compute_pn_corrections.py # PN expansion generator
│ ├── analyze_pn_tests.py # Experimental comparison
│ ├── theory_params.am # Theory configuration
│ ├── pn_config.am # PN expansion settings
│ └── pn_data/ # Experimental datasets
│ ├── ligo_data.csv # LIGO sensitivity curves
│ ├── ligo_data.am # LIGO metadata
│ └── atomic_interf.am # Atomic interferometry data
│
└── strong_curvature/ # Planck-scale models
├── generate_2d_blackhole.py # 2D black hole toy models
├── minisuperspace_cosmo.py # FRW minisuperspace cosmology
├── compare_strong_models.py # Model unification
├── blackhole_config.am # Black hole parameters
└── cosmo_config.am # Cosmology parameters
```markdown
## Prerequisites
- Python 3.7+ - NumPy - SciPy
- SymPy (for symbolic PN calculations)
- ndjson - tqdm (optional, for progress bars)
Install via:
```bash
pip install numpy scipy sympy python-ndjson tqdm

Usage

1. Generate Noise Curve

python generate_sensitivity_curve.py

This produces:

  • sensitivity_curve.csv

    • Columns: frequency_Hz, noise_strain_per_sqrtHz
  • sensitivity_curve.am

    • One-line AsciiMath metadata: model name, parameters, point count

2. Analyze Signal Detectability

python analyze_sensitivity.py ` --mock mock_data.ndjson `
--meta mock_data.am ` --noise sensitivity_curve.csv `
--nmeta sensitivity_curve.am ` --out sensitivity_comparison.ndjson `
--oam sensitivity_comparison.am

Outputs:

  • sensitivity_comparison.ndjson
    JSON-line records:
{
"label": "signal1",
"detectable": true,
"snr": 12.5
}
  • sensitivity_comparison.am
    AsciiMath summary: detector name, injection count, detection thresholds

3. Post-Newtonian Analysis

Generate PN corrections for warp drive theories:

cd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am

Configuration files:

  • theory_params.am: Contains WarpVelocity, MassParameter, TheoryType
  • pn_config.am: Contains MaxPNOrder, FrequencyRange, ExpansionParameter

Outputs:

  • pn_waveforms.ndjson: PN corrections with observational signatures
  • pn_summary.am: Analysis metadata

Analyze against experimental data:

python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am \
--snr-threshold 5.0

Flags and Input Specifications:

  • --pn-data: PN corrections from compute_pn_corrections.py (.ndjson format)
    • Each entry contains: pn_order, correction (symbolic expressions), signature (frequency-domain observational signatures), v_over_c, mass_parameter
  • --pn-meta: PN metadata file (.am format) containing analysis parameters
    • Required keys: max_pn_order, warp_velocity, frequency_range, n_corrections
  • --exp-data: Experimental sensitivity data (.csv with columns: frequency_hz, strain_sensitivity, experiment_type)
    • Compatible with LIGO, Virgo, atomic interferometry, and pulsar timing datasets
  • --exp-meta: Experimental metadata (.am with keys: ExperimentType, InstrumentName, FrequencyRange, StrainSensitivity, DataSource)
  • --snr-threshold: SNR threshold for detectability (default: 5.0, recommended range: 3.0-10.0)

Outputs:

  • pn_analysis.ndjson: Detection analysis for each PN order with fields:
    • pn_order: PN correction order ("1PN", "2PN", "3PN", etc.)
    • theory_params: Contains v_over_c and mass_parameter values from theory
    • experimental_analysis: Per-experiment detectability results including SNR, parameter bounds, frequency ranges
    • overall_detectability: Boolean indicating if any experiment can detect this PN order
    • best_snr: Highest SNR achieved across all experimental datasets
  • pn_analysis.am: Summary metadata including detection statistics, parameter constraints, and experiment coverage

4. Strong-Curvature Models

Generate 2D black hole curvature data:

cd strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am

Configuration (blackhole_config.am):

  • ModelType: "2d_schwarzschild" or "warp_bubble"
  • MassParameter: Characteristic mass scale
  • PlanckLength: Planck length (default: 1e-35)
  • BubbleThickness: For warp bubble models

Outputs:

  • blackhole_data.ndjson: Curvature invariants and quantum parameters
  • blackhole_summary.am: Model summary and regime classification

Generate minisuperspace cosmology:

python minisuperspace_cosmo.py \
--cosmo-config cosmo_config.am \
--out cosmo_data.ndjson \
--oam cosmo_summary.am

Compare and unify strong-curvature models:

python compare_strong_models.py \
--models blackhole_data.ndjson cosmo_data.ndjson \
--meta blackhole_summary.am cosmo_summary.am \
--out unified_strong_models.ndjson \
--oam unified_summary.am

Flags and Input Specifications:

  • --models: List of model data files (.ndjson) from toy model generators
    • Multiple files can be specified: --models file1.ndjson file2.ndjson file3.ndjson
    • Each .ndjson contains model results with curvature invariants, geodesic analysis, and Planck-scale physics indicators
    • Expected structure: model_type, curvature_analysis, geodesic_analysis, planck_scale_analysis
  • --meta: Corresponding metadata files (.am) with model parameters and analysis settings
    • Must match order of --models files: --meta meta1.am meta2.am meta3.am
    • Required keys: model_type, analysis parameters specific to each model class

Outputs:

  • unified_strong_models.ndjson: Unified comparison with regime classification, containing:
    • model_id: Unique identifier for each model in the comparison
    • model_type: Type of model ("2d_schwarzschild", "warp_bubble", "frw_minisuperspace", etc.)
    • regime_classification: Overall physical regime ("classical", "semi_classical", "quantum_gravity")
    • curvature_analysis: Extracted curvature scales and quantum gravity parameters
    • classical_gr_valid: Boolean indicating if classical General Relativity is adequate
    • quantum_correction_strength: Estimated strength of quantum gravity corrections (0.0-1.0)
    • requires_quantum_gravity: Boolean indicating if quantum effects dominate
    • parameter_ranges: Valid parameter ranges for classical and quantum regimes
  • unified_summary.am: Summary statistics including:
    • regime_distribution: Count of models in each regime (classical/semi_classical/quantum_gravity)
    • n_quantum_gravity: Number of models requiring full quantum gravity treatment
    • n_classical_valid: Number of models where classical GR remains valid
    • average_quantum_correction: Average quantum correction strength across all models
    • model_types_analyzed: List of model types included in comparison
    • planck_scale_physics_important: Boolean indicating if any models reach Planck-scale physics

Input/Output Formats

AsciiMath Metadata Files (.am)

All configuration and metadata files use the AsciiMath format with consistent key-value pairs:

[ key1 = value1, key2 = "string_value", key3 = 1.23e-4, ... ]

Configuration Keys by Script:

Semi-Classical Analysis:

  • theory_params.am:

    • WarpVelocity: Dimensionless warp velocity (v/c ratio)
    • MassParameter: Characteristic mass scale parameter
    • TheoryType: Theory model type ("alcubierre_warp", "van_den_broeck", etc.)
    • MetricSignature: Metric signature convention ("mostly_plus", "mostly_minus")
  • pn_config.am:

    • MaxPNOrder: Maximum Post-Newtonian order to compute (integer: 1, 2, 3, ...)
    • FrequencyRange: Comma-separated frequency range in Hz ("10,1000")
    • ExpansionParameter: PN expansion parameter ("v_over_c", "frequency")
    • SymbolicComputation: Boolean for symbolic vs numerical computation

Strong-Curvature Models:

  • blackhole_config.am:

    • ModelType: Model type ("2d_schwarzschild", "warp_bubble")
    • MassParameter: Characteristic mass scale in natural units
    • PlanckLength: Planck length in meters (default: 1e-35)
    • BubbleThickness: Warp bubble thickness parameter (for warp_bubble models)
  • cosmo_config.am:

    • ModelType: Cosmology model ("frw_minisuperspace", "kasner")
    • HubbleParameter: Hubble parameter H₀ in units of 100 km/s/Mpc
    • OmegaMatter: Matter density parameter Ωₘ
    • PlanckLength: Planck length in meters
    • ScaleFactorRange: Comma-separated scale factor range ("1e-10,1e10")

Experimental Data:

  • ligo_data.am, atomic_interf.am:
    • ExperimentType: Type of experiment ("gravitational_wave", "atomic_interferometry")
    • InstrumentName: Specific instrument name ("LIGO_H1", "LIGO_L1", "atom_interferometer")
    • FrequencyRange: Sensitive frequency range in Hz
    • StrainSensitivity: Characteristic strain sensitivity
    • DataSource: Source of experimental data

JSON-Lines Data Files (.ndjson)

  • One JSON object per line for efficient streaming and processing

  • For mock_data.ndjson:

    { "label": "signal1", "time_series": [0.1, 0.2, ...], "sampling_rate": 16384 }
  • For pn_waveforms.ndjson:

    { "pn_order": "1PN", "correction": {...}, "signature": {...}, "v_over_c": 0.1, "mass_parameter": 1e-6 }
  • For blackhole_data.ndjson:

    { "model_type": "2d_schwarzschild", "curvature_analysis": {...}, "geodesic_analysis": {...} }

CSV Data Files (.csv)

  • Standard comma-separated with header row
  • For sensitivity curves: frequency_Hz, noise_strain_per_sqrtHz
  • For experimental data: frequency_hz, strain_sensitivity, experiment_type

Examples

# 1. Build the noise curve
python generate_sensitivity_curve.py
# 2. Run detection analysis
python analyze_sensitivity.py \
--mock mock_data.ndjson \
--meta mock_data.am \
--noise sensitivity_curve.csv \
--nmeta sensitivity_curve.am \
--out sensitivity_comparison.ndjson \
--oam sensitivity_comparison.am
# 3. Generate and analyze PN correctionscd semi_classical/
python compute_pn_corrections.py \
--theory theory_params.am \
--pn-config pn_config.am \
--out pn_waveforms.ndjson \
--oam pn_summary.am
python analyze_pn_tests.py \
--pn-data pn_waveforms.ndjson \
--pn-meta pn_summary.am \
--exp-data pn_data/ligo_data.csv \
--exp-meta pn_data/ligo_data.am \
--out pn_analysis.ndjson \
--oam pn_analysis.am
# 4. Generate strong-curvature modelscd ../strong_curvature/
python generate_2d_blackhole.py \
--model-config blackhole_config.am \
--out blackhole_data.ndjson \
--oam blackhole_summary.am
python compare_strong_models.py \
--models blackhole_data.ndjson \
--meta blackhole_summary.am \
--out unified_models.ndjson \
--oam unified_summary.am
# 5. Inspect results
head ../sensitivity_comparison.ndjson
cat ../sensitivity_comparison.am
head pn_analysis.ndjson
head unified_models.ndjson

About

Multi-scale parameter sensitivity analysis for spacetime metrics. Studies parameter dependencies, stability regions, and sensitivity coefficients in relativistic field configurations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages