Software

Colección de herramientas computacionales, algoritmos de análisis y simulaciones físicas.

Black Hole Showcase

High-performance computational physics written in pure C. The project models gravitational lensing effects and computes photon trajectories (null geodesics) around a Schwarzschild black hole. The repository is private, but you can request access.

Black Hole Simulation View 1 Black Hole Simulation View 2
black_hole_teaser.c (Closed Repo)
// Bucle de simulación en tiempo real
while (!glfwWindowShouldClose(engine.window)) {
    double dt = glfwGetTime() - lastTime;

    // 1. Cinemática de N-Cuerpos (Fuerza Gravitacional)
    /* Ecuaciones de movimiento y tensores de curvatura omitidos */
    update_gravitational_forces(objects, dt, Gravity);

    // 2. Renderizado por Compute Shaders (Geodésicas Nulas)
    glViewport(0, 0, engine.WIDTH, engine.HEIGHT);
    engine.dispatchCompute(camera);
    engine.drawFullScreenQuad();

    // 3. Topología del Espacio-Tiempo (Malla de Curvatura)
    engine.generateGrid(objects);
    mat4 view = lookAt(camera.position(), camera.target, UP);
    mat4 viewProj = proj * view;
    engine.drawGrid(viewProj);

    // 4. Presentación en pantalla
    glfwSwapBuffers(engine.window);
    glfwPollEvents();
}
C Computational Physics Runge-Kutta 4 General Relativity