This application visualizes and compares different cosmological models with Planck CMB power spectrum data:
- Standard ΛCDM Model
- Hilltop Inflation Model
- Starobinsky (R²) Inflation Model
- Interactive parameter controls for both Hilltop and Starobinsky models
- Real-time visualization updates
- Responsive design that works on all devices
- Single container deployment optimized for AWS App Runner
- Python 3.11+
- Node.js 18+
- npm
-
Install Python dependencies:
pip install -r requirements.txt
-
Install frontend dependencies:
cd frontend npm install -
Build the frontend:
npm run build
-
Run the application:
python app.py
The application will be available at http://localhost:8080
-
Build the Docker image:
docker build -t plank-data . docker run -p 8080:3000 --name plank-app plank-data -
Tag and push to Amazon ECR:
aws ecr get-login-password --region <region> | docker login --username AWS --password-stdin <account>.dkr.ecr.<region>.amazonaws.com docker tag plank-data:latest <account>.dkr.ecr.<region>.amazonaws.com/plank-data:latest docker push <account>.dkr.ecr.<region>.amazonaws.com/plank-data:latest
-
Create an App Runner service using the ECR image
- Port: 8080
- CPU: 1 vCPU
- Memory: 2 GB
amp: Overall amplitude scaling (relates to V0)mu: Mass scale of the potential (typically near Planck scale)v: Vacuum expectation value (controls oscillation amplitude)p: Power in potential (p > 2 for inflation)phi: Initial field value (phi < mu for hilltop inflation)
amp: Overall amplitude (sets inflation scale)decay: Silk damping scalephase: Acoustic oscillation phasefreq: Sound horizon scalesupp: ISW suppression strength