Skip to contentSaltar al contenido
Gravitas homeInicio de Gravitas

ValidationValidación

What Gravitas Has Been Checked AgainstContra qué se ha comprobado Gravitas

Not a claim that the physics is right. A list of quantities, the value this engine produces for each one, the value it should have, where that value came from, and how much error was allowed.No afirma que la física sea correcta. Es una lista de magnitudes, el valor que produce este motor para cada una, el valor que debería tener, de dónde sale ese valor y cuánto error se permitió.

—

checks loading

Last runÚltima ejecución
—
TookDuración
—
Areas coveredÁreas cubiertas
—
Sources citedFuentes citadas
—

Every number on this page came out of one file that both this page and the project's test suite read, so the table a reader prints and the suite that gates a commit cannot drift apart. You do not have to take the table's word for it either: the button below runs the entire suite again, here, on your machine, against the same modules the simulation itself loads.Cada número de esta página salió de un solo archivo que leen tanto esta página como las pruebas del proyecto, de modo que la tabla que se imprime y las pruebas que controlan cada cambio no pueden separarse. Tampoco hace falta fiarse de la tabla: el botón de abajo vuelve a ejecutar todo el conjunto aquí, en tu equipo, contra los mismos módulos que carga la propia simulación.

Run it yourselfEjecútalo tú mismo

About ten seconds. Nothing is sent anywhere; the whole suite executes in a background thread in this tab.Unos diez segundos. No se envía nada a ningún sitio; todo el conjunto se ejecuta en un hilo en segundo plano de esta pestaña.

Five kinds of checkCinco tipos de comprobación

These do not mean the same thing, and a suite that mixed them would be able to hide a weak result behind a strong one. Each check is labeled with its kind everywhere it appears.No significan lo mismo, y un conjunto que los mezclara podría esconder un resultado débil detrás de uno fuerte. Cada comprobación lleva etiquetado su tipo en todos los sitios donde aparece.

How much room was leftCuánto margen quedó

Passing is a yes or no. The more useful question is by how much, so every check is plotted below at its measured error as a fraction of the tolerance it was allowed. A dot at the right-hand edge only just passed. A dot at the far left came out at machine precision, meaning the code reproduces its own equation to fifteen decimal places and the tolerance never came into it.Aprobar es un sí o un no. La pregunta más útil es por cuánto, así que cada comprobación se representa abajo con su error medido como fracción de la tolerancia permitida. Un punto en el borde derecho apenas aprobó. Un punto en el extremo izquierdo salió con precisión de máquina: el código reproduce su propia ecuación con quince decimales y la tolerancia nunca llegó a intervenir.

Checks held to an exact match are not on this chart: dividing by a tolerance of zero has no meaning. They are counted separately below and every one of them is exact.Las comprobaciones con coincidencia exacta no aparecen en este gráfico: dividir entre una tolerancia de cero no tiene sentido. Se cuentan aparte más abajo y todas son exactas.

Every check, by areaCada comprobación, por área

Measured against expected, with the error and the tolerance it was held to. Open a row to see why that tolerance is what it is, and where the expected value came from when it is a published one. A tolerance with no stated reason is a number chosen to make a test pass, so every one here carries its reason with it.Medido frente a lo esperado, con el error y la tolerancia exigida. Abre una fila para ver por qué esa tolerancia es la que es y de dónde salió el valor esperado cuando es uno publicado. Una tolerancia sin motivo declarado es un número elegido para que una prueba pase, así que cada una de las de aquí lleva su motivo.

What this does not establishLo que esto no establece

A validation suite is only worth as much as its statement of what it leaves out.Un conjunto de validación solo vale lo que valga su declaración de lo que deja fuera.

The reasoning behind the model itself, including what it deliberately simplifies, is on the model page. The full write-up of this suite, with every literature source, is in PHYSICS_VALIDATION.md. To run it in a terminal instead of a browser:El razonamiento del modelo en sí, incluido lo que simplifica a propósito, está en la página del modelo. La redacción completa de este conjunto, con todas las fuentes de la literatura, está en PHYSICS_VALIDATION.md. Para ejecutarlo en una terminal en lugar de un navegador:

npm run validate:physicsnpm run validate:physics