diff --git a/.github/workflows/managed.yml b/.github/workflows/managed.yml index 33ee6f5..6e4e7c8 100644 --- a/.github/workflows/managed.yml +++ b/.github/workflows/managed.yml @@ -19,7 +19,8 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} - timeout-minutes: 20 + # Dense coupled plants run serially on all three hosted runner types. + timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/AGENTS.md b/AGENTS.md index 06f0170..dd193fb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,6 +7,7 @@ - Keep the full powertrain objective. A passing electrothermal demo does not mean the engine, transmission, controls or calibrated vehicle samples are complete. - Core code must target both net10.0 and netstandard2.1 and remain free of Unity, transport, model-provider and third-party dependencies. Unity Assets scripts must compile as C# 9. Do not claim Unity supports .NET 10 or C# 14 source compilation. - Preserve explicit units, stable IDs, immutable compiled models, bounded integer time, complete batch rollback, observable channels and evidence reports. New physical behavior needs analytic/conservation/convergence checks appropriate to its equations. +- State each physical model's assumptions and validity range. Check thermodynamic consistency and the second law where applicable, using independent references. Conservation and exact replay alone do not establish numerical accuracy or measured hardware validity. - Agent-facing operations need machine-readable contracts and actionable errors. Preserve revision checks, branch independence, cancellation and compact outputs. A successful tool call is distinct from passing KPIs or calibrated physics. - Build and verify with `dotnet run --file tools/Build.cs -- verify`. This serializes builds and tests; keep that memory-conscious behavior. Do not run simultaneous heavy builds or install large tooling as background work. Do not modify desktop extensions or compositor configuration. - Unity verification is separate: set POWER_UNITY_EDITOR and run `unity-test`. Never replace actual Editor/Play/IL2CPP evidence with a .NET-only test claim. diff --git a/README.de.md b/README.de.md index 0b5349d..8a334f2 100644 --- a/README.de.md +++ b/README.de.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — Experimente ohne Oberfläche"] mcp["Power.Mcp — 12 MCP-Werkzeuge über stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Unity-6.6-Studio — 3D-Laboratorien"] model --> core @@ -119,7 +119,7 @@ Der Dienst stellt zwölf Werkzeuge mit Eingabe- und Ausgabeschemas bereit: |---|---| | `get_capabilities` | Modelle, Grenzen, Zeit- und Revisionskonventionen entdecken. Hier beginnen. | | `get_model_schema` | JSON Schema 2020-12 für `power.model.v1` | -| `get_example_model` | Ein editierbares synthetisches Modell samt Experiment holen (33 Beispiele) | +| `get_example_model` | Ein editierbares synthetisches Modell samt Experiment holen (67 Beispiele) | | `validate_model` | Modell ohne Ausführung prüfen; strukturierte Reparaturdiagnosen | | `run_experiment` | Begrenzter Lauf ohne Oberfläche mit Batch-Replay, KPIs und Herkunft | | `export_model_asset` | Ein portables `.powerasset` exportieren | @@ -147,10 +147,26 @@ Ein Ravigneaux-Forschungsgraph mit vier Bereichen ergänzt zusammengesetzte Plan > [!NOTE] > Alle Beispielparameter sind `unverified` — Forschungswerte, keine kalibrierten Messungen. -Die folgenden Laboratorien teilen Definitionen über JSON-, CLI-, MCP- und Studio-Importe. Exporte verwenden `power.asset.v24`, Leser für ältere Assets bleiben erhalten. +Die folgenden Laboratorien teilen Definitionen über JSON-, CLI-, MCP- und Studio-Importe. Exporte verwenden `power.asset.v41`, Leser für ältere Assets bleiben erhalten. + +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](docs/FUEL_DISCHARGE.de.md) [Wellengetriebene phasenauflösende Kraftstoffpumpe](docs/FUEL_CHAMBER_PUMP.de.md) + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. [Impuls einer endlichen Flüssigkraftstoffleitung](docs/FUEL_INERTIAL_PIPE.de.md) + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. [Kompressible Kraftstoffkanäle im Gleichgewicht](docs/EQUILIBRIUM_FUEL_DUCT.de.md) + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. [Wellengetriebene kompressible Kraftstoffkammern](docs/COMPRESSIBLE_FUEL_CHAMBER.de.md) + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](docs/COMPRESSIBLE_FUEL_NOZZLE.de.md) + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. [Kraftstoffdüsentransit im Phasengleichgewicht](docs/EQUILIBRIUM_FUEL_NOZZLE.de.md) + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. [Kraftstoff-Phasenrelaxation mit endlicher Rate](docs/RELAXING_FUEL.de.md) + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](docs/RELAXING_FUEL_BOUNDARIES.de.md)
-Verfügbare Laboratorien (34) +Verfügbare Laboratorien (68) | Beispielname (`get_example_model`) | Laboratorium | Was es prüft | |---|---|---| @@ -188,9 +204,49 @@ Die folgenden Laboratorien teilen Definitionen über JSON-, CLI-, MCP- und Studi | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | zusammengesetzte Planetenschaltungen mit vier Bereichen | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | gezündeter Motor, Wandler/Überbrückung und zusammengesetztes Getriebe | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | gezündeter Motor mit abgetasteter DCT-Regelung und vollem Nachweis | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | abgetastete Druckregelung und Bestätigung des tatsächlichen Gangs/Lockups | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | gezündeter Motor mit rückgekoppelten hydraulischen AT-Schaltungen | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | wellengetriebene Rail-Nachfüllung, kalorische Mischung und vollständige Bilanzen | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | pumpengespeiste Rail mit physischer Nadel und Dosierregelung | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | Entleerung des endlichen Tanks, Trockenpumpen und interner Kraftstofftransport | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | endliche Versorgung mit physischer Nadel und Verdampfung | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | Pumpenumkehr, endliche Phasendichte, Heizquelle und Kraftstoffentlüftung | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | Motor mit endlichem Tankgleichgewicht und erhaltender Flüssigkeitsansaugung | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | Kondensation an endlicher Wand, Entlüftungsverdampfung und Phasenbilanzen | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | Gleichgewichtszufuhr, reine Dampfverbrennung und Einlass/Rail-Reserven | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | endlicher Gasraum, interne Druckarbeit und gesteuerte Entlüftung | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | endlicher Gasraum/Entlüftung mit physischer Nadeldynamik | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | Druckentlastungsrücklauf mit gleichzeitiger Tank/Rail-Mischung und Verlustwärme | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | Kraftstoffumlauf mit physischer Nadel und vollständiger Wiedergabe | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | Flüssigkeitsaustrag in Koexistenz, Ventilereignisse und endliche Wandwärme | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | Rücktransport des Gemischs und Wärmekopplung mit einem elektromechanischen Labor | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | Einlassmangel, Dampfentstehung und Förderung durch auslaufende Welle | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | DC-Motorantrieb, versorgte Flüssigkeitsfüllung und endliche Motorwandwärme | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Kritischer Fluss mit eingefrorenem Dampfanteil, Flüssigkeitsverdrängung und physische Pumpe/Nadel | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Endliches Flüssigkeitsinventar, dynamischer Fluss, Mischung und erhaltende Leitungsarbeit | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Endliches Flüssigkeitsinventar, dynamischer Fluss, Mischung und erhaltende Leitungsarbeit | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Endliche Flüssigkeitszufuhr kondensiert den nassen Kanalinhalt | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | Flüssiger Kanalinhalt verdampft in endliche Zweiphasenbehälter | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Wellendruckarbeit gekoppelt an kompressiblen Kraftstofftransport | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Wellendruckarbeit gekoppelt an kompressiblen Kraftstofftransport | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Eingefrorene kritische Strömung, endlicher Austritt und reale Nadel | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Eingefrorene kritische Strömung, endlicher Austritt und reale Nadel | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Gleichgewichtsverdampfung, globale kritische Flussgrenzen und reale Nadel | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Gleichgewichtsverdampfung, globale kritische Flussgrenzen und reale Nadel | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Unabhängiger Dampfanteil, endliche Phasenrate und konservativer Transport | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Unabhängiger Dampfanteil, endliche Phasenrate und konservativer Transport | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Relaxierende Behälter, reversible Wellenarbeit und konservative eingefrorene Dampfdosierung | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Relaxierende Behälter, reversible Wellenarbeit und konservative eingefrorene Dampfdosierung |
+Alle Labore als JSON auflisten: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + `get_example_model` mit einem `name` anfordern oder direkt ausführen: ```sh @@ -203,7 +259,7 @@ Der Build exportiert zu jedem Laboratorium ein passendes `.powerasset`. Replay-N Vollständige Antriebsstränge sind das Ziel, nicht der aktuelle Stand. Noch offen: -- Vollständiges Motorverhalten: Saug-/Auslassmodellierung, Flüssigkeitspumpe/-nachfüllung, verfeinertes magnetisches/elektronisches/Einspritzverhalten, druckabhängiges Phasenverhalten, reichere Thermochemie und Zündungsregelung. +- Vollständiges Motorverhalten: Schwappen/hydrostatische Form, zweiphasiger Pumpen/Rail-Transport und Kavitation, gemessene Pumpenfüllung/Regelung, verfeinerte Magnetik/Elektronik/Sprühmodelle, Zündregelung, Einlass/Auslassdynamik, mechanische Verluste und reichere Thermochemie. - Vollständige DCT-Stellansteuerung, AT-Topologie und Getrieberegelung (ECU/TCU). - Gemessene Pumpenverlust- und Regelungskennlinien, gemessene Batteriechemie und BMS, gemessene Ventil-/Akkumulatordynamik. - Kalibrierte Antriebsstränge. @@ -219,7 +275,7 @@ Die OEM-Recherche zu EA211 DJS + DQ200 und PSA EC5 + AT8 bleibt in [assets/sampl | Projekt | [Architektur](docs/ARCHITECTURE.de.md) · [Fahrplan](docs/ROADMAP.de.md) · [Entwicklungsstand](docs/DEVELOPMENT_STATUS.de.md) · [Validierungsakte](docs/VALIDATION.de.md) · [Notizen zur Motorfortsetzung](docs/NEXT_ENGINE_STEP.de.md) | | Schnittstellen | [Agent-API](docs/AGENT_API.de.md) · [Asset-Format](docs/ASSET_FORMAT.de.md) · [Native Zig-Grenze](docs/NATIVE_ZIG.de.md) | | Motor und Gas | [Abgeschlossener Zylinder](docs/SEALED_CYLINDER.de.md) · [Gasnetz](docs/GAS_NETWORK.de.md) · [Gaswechsel](docs/GAS_EXCHANGE.de.md) · [Bewegter Zylinder](docs/MOVING_CYLINDER.de.md) · [Ventilsteuerzeiten](docs/VALVE_TIMING.de.md) · [Vormischverbrennung](docs/PREMIXED_COMBUSTION.de.md) | -| Kraftstoff und Einspritzung | [Kraftstoffdosierung](docs/FUEL_METERING.de.md) · [Kraftstofffilm](docs/FUEL_FILM.de.md) · [Flüssigeinspritzung](docs/LIQUID_FUEL_INJECTION.de.md) · [Nadelansteuerung](docs/NEEDLE_ACTUATION.de.md) · [Schließvorhersage](docs/CLOSURE_PREDICTION.de.md) | +| Kraftstoff und Einspritzung | [Kraftstoffdosierung](docs/FUEL_METERING.de.md) · [Kraftstofffilm](docs/FUEL_FILM.de.md) · [Flüssigeinspritzung](docs/LIQUID_FUEL_INJECTION.de.md) · [Nadelansteuerung](docs/NEEDLE_ACTUATION.de.md) · [Schließvorhersage](docs/CLOSURE_PREDICTION.de.md) · [Tankgeometrie und endlicher Gasraum](docs/TANK_HEADSPACE.de.md) · [Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](docs/FUEL_PHASE_EQUILIBRIUM.de.md) · [Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](docs/TANK_PHASE_EQUILIBRIUM.de.md) | | Getriebe | [Kupplungsnetz](docs/CLUTCH_NETWORK.de.md) · [Kupplungsphysik](docs/CLUTCH_PHYSICS.de.md) · [Zahnradnetz](docs/GEAR_NETWORK.de.md) · [Ideale Zahnräder](docs/IDEAL_GEARS.de.md) · [Wandler](docs/CONVERTER_NETWORK.de.md) · [Doppelkupplungsgetriebe](docs/DUAL_CLUTCH_TRANSMISSION.de.md) · [DCT-Regelung](docs/DCT_CONTROL.de.md) · [Ravigneaux-Getriebe](docs/RAVIGNEAUX_TRANSMISSION.de.md) · [Aufgelöste Planeten](docs/RESOLVED_PLANETS.de.md) | | Hydraulik | [Hydrauliknetz](docs/HYDRAULIC_NETWORK.de.md) · [Pumpe](docs/HYDRAULIC_PUMP.de.md) · [Kolben](docs/HYDRAULIC_PISTON.de.md) · [Schieber](docs/HYDRAULIC_SPOOL.de.md) · [Gasakkumulator](docs/GAS_PISTON.de.md) · [AT-Ansteuerung](docs/AT_HYDRAULIC_ACTUATION.de.md) | diff --git a/README.es.md b/README.es.md index adf49f5..2b08832 100644 --- a/README.es.md +++ b/README.es.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — experimentos sin interfaz"] mcp["Power.Mcp — 12 herramientas MCP por stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Estudio Unity 6.6 — laboratorios 3D"] model --> core @@ -119,7 +119,7 @@ El servicio expone doce herramientas con esquemas de entrada y salida: |---|---| | `get_capabilities` | Descubrir modelos, límites y convenciones de tiempo y revisión. Empieza aquí. | | `get_model_schema` | JSON Schema 2020-12 para `power.model.v1` | -| `get_example_model` | Obtener un modelo sintético editable y su experimento (33 ejemplos) | +| `get_example_model` | Obtener un modelo sintético editable y su experimento (67 ejemplos) | | `validate_model` | Validar un modelo sin ejecutarlo; diagnóstico de reparación estructurado | | `run_experiment` | Ejecución sin interfaz y acotada, con repetición por lotes, KPIs y procedencia | | `export_model_asset` | Exportar un `.powerasset` portátil | @@ -147,10 +147,26 @@ Un grafo de investigación Ravigneaux de cuatro rangos añade caminos planetario > [!NOTE] > Todos los parámetros de ejemplo son `unverified`: valores de investigación, no mediciones calibradas. -Los laboratorios siguientes comparten definiciones entre las importaciones JSON, CLI, MCP y Studio. Las exportaciones usan `power.asset.v24`, con lectores para assets anteriores conservados. +Los laboratorios siguientes comparten definiciones entre las importaciones JSON, CLI, MCP y Studio. Las exportaciones usan `power.asset.v41`, con lectores para assets anteriores conservados. + +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. [Descarga de combustible con calidad congelada y receptores finitos](docs/FUEL_DISCHARGE.es.md) [Bomba de combustible con cambio de fase impulsada por eje](docs/FUEL_CHAMBER_PUMP.es.md) + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. [Cantidad de movimiento en una línea finita de combustible líquido](docs/FUEL_INERTIAL_PIPE.es.md) + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. [Conductos de combustible compresible en equilibrio](docs/EQUILIBRIUM_FUEL_DUCT.es.md) + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. [Cámaras de combustible compresible accionadas por eje](docs/COMPRESSIBLE_FUEL_CHAMBER.es.md) + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. [Toberas de combustible compresible de calidad congelada](docs/COMPRESSIBLE_FUEL_NOZZLE.es.md) + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. [Tránsito de combustible en equilibrio por toberas](docs/EQUILIBRIUM_FUEL_NOZZLE.es.md) + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. [Relajación de fase del combustible a velocidad finita](docs/RELAXING_FUEL.es.md) + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. [Bombas de combustible con relajación y dosificación congelada](docs/RELAXING_FUEL_BOUNDARIES.es.md)
-Laboratorios disponibles (34) +Laboratorios disponibles (68) | Nombre de ejemplo (`get_example_model`) | Laboratorio | Qué ejercita | |---|---|---| @@ -188,9 +204,49 @@ Los laboratorios siguientes comparten definiciones entre las importaciones JSON, | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | entregas planetarias compuestas de cuatro rangos subiendo/bajando | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | motor encendido, convertidor/bloqueo y transmisión compuesta | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | motor encendido con control DCT muestreado y evidencia completa | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | control de presión muestreado y confirmación de marcha/bloqueo real | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | motor encendido con cambios AT hidráulicos por realimentación | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | relleno de riel por eje, mezcla calórica y balances completos | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | riel con bomba, aguja física y control de dosis | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | agotamiento del tanque finito, bombeo seco y transferencia interna | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | suministro finito con aguja física y evaporación | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | inversión de bomba, fases a densidad finita, fuente caliente y venteo de combustible | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | motor con equilibrio de tanque finito y toma líquida conservativa | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | condensación con pared finita, evaporación por venteo y balances de fase | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | suministro en equilibrio, combustión de vapor y márgenes de entrada/riel | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | espacio gaseoso finito, trabajo interno y venteo controlado | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | espacio gaseoso/venteo con dinámica física de aguja | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | retorno de alivio, mezcla simultánea tanque/riel y calor de pérdidas | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | combustible recirculado con aguja física y reproducción completa | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | descarga líquida a coexistencia, eventos de válvula y calor de pared finita | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | transporte inverso de mezcla y calor compartido con un laboratorio electromecánico | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | entrada insuficiente, formación de vapor y entrega por eje libre | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | motor CC, llenado líquido alimentado y calor finito de pared del motor | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Descarga de combustible con calidad congelada y receptores finitos | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Estrangulamiento de calidad congelada, desplazamiento finito y combustión con bomba/aguja físicas | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Inventario líquido finito, caudal dinámico, mezcla térmica y trabajo conservativo | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Inventario líquido finito, caudal dinámico, mezcla térmica y trabajo conservativo | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Una alimentación líquida finita condensa el contenido húmedo del conducto | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | El líquido del conducto se vaporiza hacia depósitos bifásicos finitos | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Trabajo de presión del eje acoplado al transporte compresible | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Trabajo de presión del eje acoplado al transporte compresible | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Bloqueo compresible congelado, descarga finita y aguja real | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Bloqueo compresible congelado, descarga finita y aguja real | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Vaporización en equilibrio, envolvente crítica global y aguja real | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Vaporización en equilibrio, envolvente crítica global y aguja real | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Fracción de vapor independiente, fase a velocidad finita y transporte conservativo | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Fracción de vapor independiente, fase a velocidad finita y transporte conservativo | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Depósitos con relajación finita, trabajo reversible y dosificación conservativa de vapor congelado | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Depósitos con relajación finita, trabajo reversible y dosificación conservativa de vapor congelado |
+Listar todos los laboratorios en JSON: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Pide `get_example_model` con un `name`, o ejecuta uno directamente: ```sh @@ -203,7 +259,7 @@ La compilación exporta un `.powerasset` correspondiente para cada laboratorio. Los grupos motopropulsores completos son el objetivo, no el estado actual. Pendiente: -- Comportamiento completo del motor: modelado de admisión/escape, bombeo/repostaje líquido, comportamiento magnético/electrónico/de pulverización refinado, comportamiento de fases dependiente de la presión, termoquímica más rica y control de encendido. +- Comportamiento completo del motor: oleaje/forma hidrostática, transporte bifásico bomba/riel y cavitación, llenado/regulación de bomba medidos, magnetismo/electrónica/pulverización refinados, encendido, admisión/escape, pérdidas mecánicas y termoquímica más rica. - Actuación DCT completa, topología AT y controles de transmisión (ECU/TCU). - Mapas medidos de pérdidas y control de bomba, química de batería y BMS medidos, y dinámica medida de válvulas/acumuladores. - Grupos motopropulsores calibrados. @@ -219,7 +275,7 @@ La investigación OEM para EA211 DJS + DQ200 y PSA EC5 + AT8 permanece en [asset | Proyecto | [Arquitectura](docs/ARCHITECTURE.es.md) · [Hoja de ruta](docs/ROADMAP.es.md) · [Estado de desarrollo](docs/DEVELOPMENT_STATUS.es.md) · [Registro de validación](docs/VALIDATION.es.md) · [Notas de reanudación del motor](docs/NEXT_ENGINE_STEP.es.md) | | Interfaces | [API de agente](docs/AGENT_API.es.md) · [Formato de asset](docs/ASSET_FORMAT.es.md) · [Frontera Zig nativa](docs/NATIVE_ZIG.es.md) | | Motor y gas | [Cilindro cerrado](docs/SEALED_CYLINDER.es.md) · [Red de gas](docs/GAS_NETWORK.es.md) · [Intercambio de gas](docs/GAS_EXCHANGE.es.md) · [Cilindro móvil](docs/MOVING_CYLINDER.es.md) · [Distribución](docs/VALVE_TIMING.es.md) · [Combustión premmezclada](docs/PREMIXED_COMBUSTION.es.md) | -| Combustible e inyección | [Dosificación de combustible](docs/FUEL_METERING.es.md) · [Película de combustible](docs/FUEL_FILM.es.md) · [Inyección líquida](docs/LIQUID_FUEL_INJECTION.es.md) · [Accionamiento de aguja](docs/NEEDLE_ACTUATION.es.md) · [Predicción de cierre](docs/CLOSURE_PREDICTION.es.md) | +| Combustible e inyección | [Dosificación de combustible](docs/FUEL_METERING.es.md) · [Película de combustible](docs/FUEL_FILM.es.md) · [Inyección líquida](docs/LIQUID_FUEL_INJECTION.es.md) · [Accionamiento de aguja](docs/NEEDLE_ACTUATION.es.md) · [Predicción de cierre](docs/CLOSURE_PREDICTION.es.md) · [Geometría del tanque y espacio gaseoso finito](docs/TANK_HEADSPACE.es.md) · [Equilibrio de fases del combustible y límites de suministro](docs/FUEL_PHASE_EQUILIBRIUM.es.md) · [Equilibrio del tanque con volumen líquido finito](docs/TANK_PHASE_EQUILIBRIUM.es.md) | | Transmisión | [Red de embragues](docs/CLUTCH_NETWORK.es.md) · [Física de embrague](docs/CLUTCH_PHYSICS.es.md) · [Red de engranajes](docs/GEAR_NETWORK.es.md) · [Engranajes ideales](docs/IDEAL_GEARS.es.md) · [Convertidor](docs/CONVERTER_NETWORK.es.md) · [Transmisión de doble embrague](docs/DUAL_CLUTCH_TRANSMISSION.es.md) · [Control DCT](docs/DCT_CONTROL.es.md) · [Transmisión Ravigneaux](docs/RAVIGNEAUX_TRANSMISSION.es.md) · [Planetarios resueltos](docs/RESOLVED_PLANETS.es.md) | | Hidráulica | [Red hidráulica](docs/HYDRAULIC_NETWORK.es.md) · [Bomba](docs/HYDRAULIC_PUMP.es.md) · [Pistón](docs/HYDRAULIC_PISTON.es.md) · [Corredera](docs/HYDRAULIC_SPOOL.es.md) · [Acumulador de gas](docs/GAS_PISTON.es.md) · [Actuación AT](docs/AT_HYDRAULIC_ACTUATION.es.md) | diff --git a/README.fr.md b/README.fr.md index 0480703..7d6064a 100644 --- a/README.fr.md +++ b/README.fr.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — expériences sans interface"] mcp["Power.Mcp — 12 outils MCP sur stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Studio Unity 6.6 — laboratoires 3D"] model --> core @@ -119,7 +119,7 @@ Le service expose douze outils avec schémas d'entrée et de sortie : |---|---| | `get_capabilities` | Découvrir les modèles, les limites, les conventions de temps et de révision. Commencez ici. | | `get_model_schema` | JSON Schema 2020-12 pour `power.model.v1` | -| `get_example_model` | Obtenir un modèle synthétique modifiable et son expérience (33 exemples) | +| `get_example_model` | Obtenir un modèle synthétique modifiable et son expérience (67 exemples) | | `validate_model` | Valider un modèle sans l'exécuter ; diagnostics de réparation structurés | | `run_experiment` | Exécution sans interface bornée, avec rejeu par lots, KPI et provenance | | `export_model_asset` | Exporter un `.powerasset` portable | @@ -147,10 +147,26 @@ Un graphe de recherche Ravigneaux à quatre plages ajoute des chemins planétair > [!NOTE] > Tous les paramètres d'exemple sont `unverified` — des valeurs de recherche, pas des mesures calibrées. -Les laboratoires ci-dessous partagent leurs définitions entre imports JSON, CLI, MCP et Studio. Les exports utilisent `power.asset.v24`, avec conservation des lecteurs pour les assets antérieurs. +Les laboratoires ci-dessous partagent leurs définitions entre imports JSON, CLI, MCP et Studio. Les exports utilisent `power.asset.v41`, avec conservation des lecteurs pour les assets antérieurs. + +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. [Décharge de carburant à titre figé et récepteurs finis](docs/FUEL_DISCHARGE.fr.md) [Pompe carburant diphasique entraînée par arbre](docs/FUEL_CHAMBER_PUMP.fr.md) + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. [Quantité de mouvement d'une ligne finie de carburant liquide](docs/FUEL_INERTIAL_PIPE.fr.md) + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. [Conduites de carburant compressible à l’équilibre](docs/EQUILIBRIUM_FUEL_DUCT.fr.md) + +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. [Chambres de carburant compressible entraînées par arbre](docs/COMPRESSIBLE_FUEL_CHAMBER.fr.md) + +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. [Buses de carburant compressible à qualité figée](docs/COMPRESSIBLE_FUEL_NOZZLE.fr.md) + +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. [Transit de carburant à l’équilibre dans les buses](docs/EQUILIBRIUM_FUEL_NOZZLE.fr.md) + +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. [Relaxation de phase du carburant à vitesse finie](docs/RELAXING_FUEL.fr.md) + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. [Pompes à carburant relaxant et dosage à phase gelée](docs/RELAXING_FUEL_BOUNDARIES.fr.md)
-Laboratoires disponibles (34) +Laboratoires disponibles (68) | Nom d'exemple (`get_example_model`) | Laboratoire | Ce qu'il exerce | |---|---|---| @@ -188,9 +204,49 @@ Les laboratoires ci-dessous partagent leurs définitions entre imports JSON, CLI | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | passations montée/descente planétaires composées à quatre plages | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | moteur allumé, convertisseur/verrouillage et transmission composée | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | moteur allumé avec contrôle DCT échantillonné et preuves complètes | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | régulation échantillonnée de pression et confirmation du rapport/verrouillage réel | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | moteur allumé avec changements AT hydrauliques en boucle fermée | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | remplissage de rampe par l'arbre, mélange calorique et bilans complets | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | rampe alimentée par pompe avec aiguille physique et dosage | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | épuisement du réservoir fini, pompage à sec et transfert interne | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | alimentation finie avec aiguille physique et évaporation | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | inversion de pompe, phases à densité finie, chauffage et évent avec carburant | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | moteur avec équilibre du réservoir fini et aspiration liquide conservative | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | condensation avec paroi finie, évaporation par ventilation et bilans de phase | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | alimentation en équilibre, combustion vapeur seule et marges entrée/rail | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | espace gazeux fini, travail de pression interne et ventilation contrôlée | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | espace gazeux et ventilation avec dynamique physique de l’aiguille | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | retour de décharge, mélange simultané réservoir/rampe et chaleur des pertes | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | carburant recirculé avec aiguille physique et rejeu complet | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | décharge liquide vers coexistence, événements de vanne et chaleur de paroi finie | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | transport inverse du mélange et couplage thermique à un laboratoire électromécanique | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | sous-alimentation, vapeur volumique et livraison par arbre en roue libre | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | moteur CC, remplissage liquide alimenté et chaleur de paroi moteur finie | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Décharge de carburant à titre figé et récepteurs finis | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Étranglement à titre figé, déplacement liquide fini et combustion avec pompe/aiguille physiques | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Inventaire liquide fini, débit dynamique, mélange thermique et travail conservatif | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Inventaire liquide fini, débit dynamique, mélange thermique et travail conservatif | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Une alimentation liquide finie condense le mélange humide de la conduite | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | Le liquide de la conduite se vaporise vers des réservoirs diphasiques finis | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Travail de pression d’arbre couplé au transport compressible | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Travail de pression d’arbre couplé au transport compressible | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Blocage compressible figé, décharge finie et aiguille réelle | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Blocage compressible figé, décharge finie et aiguille réelle | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Vaporisation à l’équilibre, flux critique global et aiguille réelle | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Vaporisation à l’équilibre, flux critique global et aiguille réelle | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Titre de vapeur indépendant, changement de phase fini et transport conservatif | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Titre de vapeur indépendant, changement de phase fini et transport conservatif | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Réservoirs à relaxation finie, travail réversible et dosage conservatif de vapeur gelée | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Réservoirs à relaxation finie, travail réversible et dosage conservatif de vapeur gelée |
+Lister tous les laboratoires en JSON : + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Demandez `get_example_model` avec un `name`, ou exécutez directement : ```sh @@ -203,7 +259,7 @@ La construction exporte un `.powerasset` correspondant pour chaque laboratoire. Des groupes motopropulseurs complets sont l'objectif, pas l'état actuel. Encore ouvert : -- Comportement moteur complet : modélisation admission/échappement, pompage/ravitaillement liquide, comportement magnétique/électronique/pulvérisation affiné, phases dépendant de la pression, thermochimie plus riche et contrôle d'allumage. +- Comportement moteur complet : ballottement/forme hydrostatique, transport diphasique pompe/rail et cavitation, remplissage/régulation de pompe mesurés, magnétisme/électronique/pulvérisation affinés, allumage, admission/échappement, pertes mécaniques et thermochimie plus riche. - Actionnement DCT complet, topologie AT et contrôles de transmission (ECU/TCU). - Cartes mesurées de pertes et de contrôle de pompe, chimie de batterie et BMS mesurés, dynamiques mesurées de vannes/accumulateurs. - Groupes motopropulseurs calibrés. @@ -219,7 +275,7 @@ La recherche OEM pour EA211 DJS + DQ200 et PSA EC5 + AT8 reste dans [assets/samp | Projet | [Architecture](docs/ARCHITECTURE.fr.md) · [Feuille de route](docs/ROADMAP.fr.md) · [État du développement](docs/DEVELOPMENT_STATUS.fr.md) · [Registre de validation](docs/VALIDATION.fr.md) · [Notes de reprise moteur](docs/NEXT_ENGINE_STEP.fr.md) | | Interfaces | [API agent](docs/AGENT_API.fr.md) · [Format d'asset](docs/ASSET_FORMAT.fr.md) · [Frontière Zig native](docs/NATIVE_ZIG.fr.md) | | Moteur et gaz | [Cylindre fermé](docs/SEALED_CYLINDER.fr.md) · [Réseau gazeux](docs/GAS_NETWORK.fr.md) · [Échange gazeux](docs/GAS_EXCHANGE.fr.md) · [Cylindre mobile](docs/MOVING_CYLINDER.fr.md) · [Calage des soupapes](docs/VALVE_TIMING.fr.md) · [Combustion prémélangée](docs/PREMIXED_COMBUSTION.fr.md) | -| Carburant et injection | [Dosage carburant](docs/FUEL_METERING.fr.md) · [Film carburant](docs/FUEL_FILM.fr.md) · [Injection liquide](docs/LIQUID_FUEL_INJECTION.fr.md) · [Actionnement d'aiguille](docs/NEEDLE_ACTUATION.fr.md) · [Prédiction de fermeture](docs/CLOSURE_PREDICTION.fr.md) | +| Carburant et injection | [Dosage carburant](docs/FUEL_METERING.fr.md) · [Film carburant](docs/FUEL_FILM.fr.md) · [Injection liquide](docs/LIQUID_FUEL_INJECTION.fr.md) · [Actionnement d'aiguille](docs/NEEDLE_ACTUATION.fr.md) · [Prédiction de fermeture](docs/CLOSURE_PREDICTION.fr.md) · [Géométrie du réservoir et espace gazeux fini](docs/TANK_HEADSPACE.fr.md) · [Équilibre des phases du carburant et limites d'alimentation](docs/FUEL_PHASE_EQUILIBRIUM.fr.md) · [Équilibre du réservoir à volume fini](docs/TANK_PHASE_EQUILIBRIUM.fr.md) | | Transmission | [Réseau d'embrayages](docs/CLUTCH_NETWORK.fr.md) · [Physique d'embrayage](docs/CLUTCH_PHYSICS.fr.md) · [Réseau d'engrenages](docs/GEAR_NETWORK.fr.md) · [Engrenages idéaux](docs/IDEAL_GEARS.fr.md) · [Convertisseur](docs/CONVERTER_NETWORK.fr.md) · [Transmission double embrayage](docs/DUAL_CLUTCH_TRANSMISSION.fr.md) · [Contrôle DCT](docs/DCT_CONTROL.fr.md) · [Transmission Ravigneaux](docs/RAVIGNEAUX_TRANSMISSION.fr.md) · [Planétaires résolus](docs/RESOLVED_PLANETS.fr.md) | | Hydraulique | [Réseau hydraulique](docs/HYDRAULIC_NETWORK.fr.md) · [Pompe](docs/HYDRAULIC_PUMP.fr.md) · [Piston](docs/HYDRAULIC_PISTON.fr.md) · [Coulisseau](docs/HYDRAULIC_SPOOL.fr.md) · [Accumulateur à gaz](docs/GAS_PISTON.fr.md) · [Actionnement AT](docs/AT_HYDRAULIC_ACTUATION.fr.md) | diff --git a/README.it.md b/README.it.md index 735562b..fba944f 100644 --- a/README.it.md +++ b/README.it.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — esperimenti senza interfaccia"] mcp["Power.Mcp — 12 strumenti MCP via stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Studio Unity 6.6 — laboratori 3D"] model --> core @@ -119,7 +119,7 @@ Il servizio espone dodici strumenti con schemi di input e output: |---|---| | `get_capabilities` | Scopre modelli, limiti e convenzioni di tempo e revisione. Inizia qui. | | `get_model_schema` | JSON Schema 2020-12 per `power.model.v1` | -| `get_example_model` | Ottiene un modello sintetico modificabile e il suo esperimento (33 esempi) | +| `get_example_model` | Ottiene un modello sintetico modificabile e il suo esperimento (67 esempi) | | `validate_model` | Valida un modello senza eseguirlo; diagnostica di riparazione strutturata | | `run_experiment` | Esecuzione senza interfaccia e limitata, con replay batch, KPI e provenienza | | `export_model_asset` | Esporta un `.powerasset` portabile | @@ -147,10 +147,26 @@ Un grafo di ricerca Ravigneaux a quattro gamme aggiunge percorsi planetari compo > [!NOTE] > Tutti i parametri di esempio sono `unverified`: valori di ricerca, non misure calibrate. -I laboratori seguenti condividono le definizioni tra import JSON, CLI, MCP e Studio. Le esportazioni usano `power.asset.v24`, mantenendo i lettori per gli asset precedenti. +I laboratori seguenti condividono le definizioni tra import JSON, CLI, MCP e Studio. Le esportazioni usano `power.asset.v41`, mantenendo i lettori per gli asset precedenti. + +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. [Scarico carburante a titolo congelato e ricevitori finiti](docs/FUEL_DISCHARGE.it.md) [Pompa carburante a cambio di fase azionata da albero](docs/FUEL_CHAMBER_PUMP.it.md) + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. [Quantità di moto della linea finita di carburante liquido](docs/FUEL_INERTIAL_PIPE.it.md) + +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. [Condotti di combustibile comprimibile in equilibrio](docs/EQUILIBRIUM_FUEL_DUCT.it.md) + +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. [Camere di combustibile comprimibile azionate da albero](docs/COMPRESSIBLE_FUEL_CHAMBER.it.md) + +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. [Ugelli di combustibile comprimibile a titolo congelato](docs/COMPRESSIBLE_FUEL_NOZZLE.it.md) + +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. [Transito di combustibile all’equilibrio negli ugelli](docs/EQUILIBRIUM_FUEL_NOZZLE.it.md) + +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. [Rilassamento di fase del combustibile a velocità finita](docs/RELAXING_FUEL.it.md) + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. [Pompe a combustibile con rilassamento e dosaggio congelato](docs/RELAXING_FUEL_BOUNDARIES.it.md)
-Laboratori disponibili (34) +Laboratori disponibili (68) | Nome esempio (`get_example_model`) | Laboratorio | Cosa esercita | |---|---|---| @@ -188,9 +204,49 @@ I laboratori seguenti condividono le definizioni tra import JSON, CLI, MCP e Stu | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | passaggi su/giù planetari composti a quattro gamme | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | motore acceso, convertitore/blocco e trasmissione composta | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | motore acceso con controllo DCT campionato ed evidenza completa | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | controllo campionato della pressione e conferma di rapporto/blocco reali | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | motore acceso con cambi AT idraulici in retroazione | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | rifornimento rail dall'albero, miscelazione calorica e bilanci completi | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | rail alimentato da pompa con ago fisico e controllo dose | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | esaurimento serbatoio finito, pompaggio a secco e trasferimento interno | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | alimentazione finita con ago fisico ed evaporazione | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | inversione pompa, fasi a densità finita, riscaldamento e sfiato di combustibile | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | motore con equilibrio del serbatoio finito e aspirazione conservativa | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | condensazione con parete finita, evaporazione da sfiato e bilanci di fase | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | alimentazione in equilibrio, combustione del vapore e margini ingresso/rail | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | spazio gassoso finito, lavoro interno e sfiato controllato | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | spazio gassoso/sfiato con dinamica fisica dell’ago | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | ritorno di scarico, miscela simultanea serbatoio/rail e calore delle perdite | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | carburante ricircolato con ago fisico e replay completo | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | scarico liquido in coesistenza, eventi valvola e calore di parete finita | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | trasporto inverso della miscela e calore condiviso con un laboratorio elettromeccanico | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | ingresso insufficiente, formazione di vapore ed erogazione da albero in folle | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | motore CC, riempimento liquido alimentato e calore finito della parete motore | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Scarico carburante a titolo congelato e ricevitori finiti | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Strozzamento a titolo congelato, spostamento liquido finito e pompa/ago fisici in combustione | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Inventario liquido finito, portata dinamica, miscela termica e lavoro conservativo | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Inventario liquido finito, portata dinamica, miscela termica e lavoro conservativo | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Una fornitura liquida finita condensa la miscela umida nel condotto | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | Il liquido del condotto vaporizza verso serbatoi bifase finiti | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Lavoro di pressione d’albero accoppiato al trasporto comprimibile | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Lavoro di pressione d’albero accoppiato al trasporto comprimibile | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Blocco comprimibile congelato, scarico finito e ago reale | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Blocco comprimibile congelato, scarico finito e ago reale | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Vaporizzazione d’equilibrio, involucro critico globale e ago reale | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Vaporizzazione d’equilibrio, involucro critico globale e ago reale | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Frazione di vapore indipendente, fase a velocità finita e trasporto conservativo | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Frazione di vapore indipendente, fase a velocità finita e trasporto conservativo | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Serbatoi a rilassamento finito, lavoro reversibile e dosaggio conservativo di vapore congelato | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Serbatoi a rilassamento finito, lavoro reversibile e dosaggio conservativo di vapore congelato |
+Elencare tutti i laboratori in JSON: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Richiedi `get_example_model` con un `name`, oppure eseguine uno direttamente: ```sh @@ -203,7 +259,7 @@ La compilazione esporta un `.powerasset` corrispondente per ogni laboratorio. Le I gruppi motopropulsori completi sono l'obiettivo, non lo stato attuale. Ancora aperto: -- Comportamento completo del motore: modellazione aspirazione/scarico, pompa/rabbocco liquido, comportamento magnetico/elettronico/a spruzzo raffinato, fasi dipendenti dalla pressione, termochimica più ricca e controllo dell'accensione. +- Comportamento completo del motore: sloshing/forma idrostatica, trasporto bifase pompa/rail e cavitazione, riempimento/regolazione della pompa misurati, magnetismo/elettronica/spray affinati, accensione, aspirazione/scarico, perdite meccaniche e termochimica più ricca. - Azionamento DCT completo, topologia AT e controlli della trasmissione (ECU/TCU). - Mappe misurate di perdite e controllo della pompa, chimica della batteria e BMS misurati, dinamica misurata di valvole/accumulatori. - Gruppi motopropulsori calibrati. @@ -219,7 +275,7 @@ La ricerca OEM per EA211 DJS + DQ200 e PSA EC5 + AT8 resta in [assets/samples](a | Progetto | [Architettura](docs/ARCHITECTURE.it.md) · [Tabella di marcia](docs/ROADMAP.it.md) · [Stato di sviluppo](docs/DEVELOPMENT_STATUS.it.md) · [Registro di validazione](docs/VALIDATION.it.md) · [Note sulla ripresa del motore](docs/NEXT_ENGINE_STEP.it.md) | | Interfacce | [API agente](docs/AGENT_API.it.md) · [Formato degli asset](docs/ASSET_FORMAT.it.md) · [Confine Zig nativo](docs/NATIVE_ZIG.it.md) | | Motore e gas | [Cilindro chiuso](docs/SEALED_CYLINDER.it.md) · [Rete gas](docs/GAS_NETWORK.it.md) · [Scambio gas](docs/GAS_EXCHANGE.it.md) · [Cilindro mobile](docs/MOVING_CYLINDER.it.md) · [Fasatura valvole](docs/VALVE_TIMING.it.md) · [Combustione premiscelata](docs/PREMIXED_COMBUSTION.it.md) | -| Carburante e iniezione | [Dosatura carburante](docs/FUEL_METERING.it.md) · [Film carburante](docs/FUEL_FILM.it.md) · [Iniezione liquida](docs/LIQUID_FUEL_INJECTION.it.md) · [Azionamento ago](docs/NEEDLE_ACTUATION.it.md) · [Predizione di chiusura](docs/CLOSURE_PREDICTION.it.md) | +| Carburante e iniezione | [Dosatura carburante](docs/FUEL_METERING.it.md) · [Film carburante](docs/FUEL_FILM.it.md) · [Iniezione liquida](docs/LIQUID_FUEL_INJECTION.it.md) · [Azionamento ago](docs/NEEDLE_ACTUATION.it.md) · [Predizione di chiusura](docs/CLOSURE_PREDICTION.it.md) · [Geometria del serbatoio e spazio gassoso finito](docs/TANK_HEADSPACE.it.md) · [Equilibrio di fase del carburante e limiti di alimentazione](docs/FUEL_PHASE_EQUILIBRIUM.it.md) · [Equilibrio del serbatoio con volume liquido finito](docs/TANK_PHASE_EQUILIBRIUM.it.md) | | Trasmissione | [Rete frizioni](docs/CLUTCH_NETWORK.it.md) · [Fisica della frizione](docs/CLUTCH_PHYSICS.it.md) · [Rete ingranaggi](docs/GEAR_NETWORK.it.md) · [Ingranaggi ideali](docs/IDEAL_GEARS.it.md) · [Convertitore](docs/CONVERTER_NETWORK.it.md) · [Trasmissione a doppia frizione](docs/DUAL_CLUTCH_TRANSMISSION.it.md) · [Controllo DCT](docs/DCT_CONTROL.it.md) · [Trasmissione Ravigneaux](docs/RAVIGNEAUX_TRANSMISSION.it.md) · [Planetari risolti](docs/RESOLVED_PLANETS.it.md) | | Idraulica | [Rete idraulica](docs/HYDRAULIC_NETWORK.it.md) · [Pompa](docs/HYDRAULIC_PUMP.it.md) · [Stantuffo](docs/HYDRAULIC_PISTON.it.md) · [Cursore](docs/HYDRAULIC_SPOOL.it.md) · [Accumulatore a gas](docs/GAS_PISTON.it.md) · [Azionamento AT](docs/AT_HYDRAULIC_ACTUATION.it.md) | diff --git a/README.ja.md b/README.ja.md index a20056b..6b659f7 100644 --- a/README.ja.md +++ b/README.ja.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — ヘッドレス実験"] mcp["Power.Mcp — 12 個の stdio MCP ツール"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Unity 6.6 スタジオ — 3D ラボラトリー"] model --> core @@ -119,7 +119,7 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll |---|---| | `get_capabilities` | モデル・制限・時間とリビジョンの規約を検索。ここから始めてください。 | | `get_model_schema` | `power.model.v1` の JSON Schema 2020-12 | -| `get_example_model` | 編集可能な合成モデルと実験を取得(33 例) | +| `get_example_model` | 編集可能な合成モデルと実験を取得(67 例) | | `validate_model` | 実行せずにモデルを検証。構造化された修復診断 | | `run_experiment` | 境界付きヘッドレス実行。バッチリプレイ・KPI・来歴付き | | `export_model_asset` | 移植可能な `.powerasset` をエクスポート | @@ -147,10 +147,26 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll > [!NOTE] > すべてのサンプルパラメーターは `unverified` です。研究値であり、キャリブレーション測定ではありません。 -以下のラボラトリーは JSON・CLI・MCP・Studio インポート間で定義を共有します。エクスポートは `power.asset.v24` を使い、旧アセットのリーダーは保持されます。 +以下のラボラトリーは JSON・CLI・MCP・Studio インポート間で定義を共有します。エクスポートは `power.asset.v41` を使い、旧アセットのリーダーは保持されます。 + +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 [蒸気質量分率を凍結した燃料流出と有限受容室](docs/FUEL_DISCHARGE.ja.md) [軸駆動の相変化燃料ポンプ](docs/FUEL_CHAMBER_PUMP.ja.md) + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 [有限液体燃料管路の運動量](docs/FUEL_INERTIAL_PIPE.ja.md) + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 [圧縮性平衡燃料ダクト](docs/EQUILIBRIUM_FUEL_DUCT.ja.md) + +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 [軸駆動の圧縮性燃料室](docs/COMPRESSIBLE_FUEL_CHAMBER.ja.md) + +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 [相分率を凍結した圧縮性燃料ノズル](docs/COMPRESSIBLE_FUEL_NOZZLE.ja.md) + +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 [燃料ノズルの平衡相変化輸送](docs/EQUILIBRIUM_FUEL_NOZZLE.ja.md) + +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 [有限速度の燃料相変化緩和](docs/RELAXING_FUEL.ja.md) + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 [相変化緩和燃料ポンプと凍結相計量](docs/RELAXING_FUEL_BOUNDARIES.ja.md)
-利用可能なラボラトリー(34) +利用可能なラボラトリー(68) | 例名(`get_example_model`) | ラボラトリー | 検証内容 | |---|---|---| @@ -188,9 +204,49 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | 4 レンジ複合遊星の昇降段引き継ぎ | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | 燃焼エンジン、コンバーター/ロックアップと複合トランスミッション | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | 燃焼エンジン、サンプリング DCT 制御と完全なエビデンス | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | サンプル圧力制御と実際の変速段/ロックアップ確認 | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | 燃焼エンジンとフィードバック制御の油圧 AT 変速 | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | 軸駆動レール補給、熱混合と完全な収支 | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | ポンプ供給レール、物理ニードルと投与制御 | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | 有限タンクの枯渇、空運転と内部燃料移送 | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | 有限供給、物理ニードルと蒸発 | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | ポンプ逆転、有限密度の相交換、加熱供給と燃料通気 | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | 有限タンク平衡と保存的液体吸入を持つ燃焼エンジン | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | 有限壁の凝縮、通気蒸発と完全な相収支 | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | 平衡燃料供給、蒸気のみの燃焼と入口/レール余裕 | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | 有限ヘッドスペース、内部圧力仕事と制御通気 | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | 有限ヘッドスペースと通気、物理ニードル動特性 | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | リリーフ戻り、タンク/レール同時混合と損失熱 | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | 燃料循環、物理ニードルと完全な再生 | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | 共存へ移る液体排出、弁イベント、有限壁熱交換 | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | 逆方向混合物輸送と機電実験との熱結合 | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | 入口不足、バルク蒸気形成、惰性軸による供給 | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | 直流モーター、液体充填、有限モーター壁熱交換 | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | 蒸気質量分率を凍結した燃料流出と有限受容室 | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | 凍結蒸気分率のチョーク、有限液体排除、物理ポンプ/ニードル燃焼 | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | 有限液体在庫、動的流量、熱混合、保存的管路仕事 | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | 有限液体在庫、動的流量、熱混合、保存的管路仕事 | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | 有限液体供給による管内湿り混合物の凝縮 | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | 管内液体が有限二相貯槽へフラッシュ蒸発 | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | 軸の圧力仕事と圧縮性燃料輸送の結合 | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | 軸の圧力仕事と圧縮性燃料輸送の結合 | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | 凍結圧縮性チョーク、有限排出、実ニードル制御 | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | 凍結圧縮性チョーク、有限排出、実ニードル制御 | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | 平衡フラッシュ、大域臨界流束包絡と実ニードル | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | 平衡フラッシュ、大域臨界流束包絡と実ニードル | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | 独立蒸気分率、有限速度相変化、保存型輸送 | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | 独立蒸気分率、有限速度相変化、保存型輸送 | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | 有限緩和貯槽、可逆軸仕事、保存型凍結蒸気計量 | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | 有限緩和貯槽、可逆軸仕事、保存型凍結蒸気計量 |
+全ラボを JSON で表示します: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + `name` を付けて `get_example_model` を要求するか、直接実行します: ```sh @@ -203,7 +259,7 @@ dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll assets/labs/.power. 完全なパワートレインは目標であって現状ではありません。未解決: -- 完全なエンジン挙動:吸排気モデリング、液体ポンプ/補給、精密化した磁気/電子/噴霧挙動、圧力依存の相挙動、より豊富な熱化学、点火制御。 +- 完全なエンジン挙動:スロッシング/静水圧形状、二相ポンプ/レール輸送とキャビテーション、実測ポンプ充填/調圧、精密な磁気/電子/噴霧挙動、点火制御、吸排気動態、機械損失とより詳細な熱化学。 - 完全な DCT アクチュエーション、AT トポロジーとトランスミッション制御(ECU/TCU)。 - 実測のポンプ損失/制御マップ、実測の電池化学と BMS、実測のバルブ/アキュムレーター動特性。 - キャリブレーション済みパワートレイン。 @@ -219,7 +275,7 @@ EA211 DJS + DQ200 と PSA EC5 + AT8 の OEM リサーチは [assets/samples](ass | プロジェクト | [アーキテクチャ](docs/ARCHITECTURE.ja.md) · [ロードマップ](docs/ROADMAP.ja.md) · [開発ステータス](docs/DEVELOPMENT_STATUS.ja.md) · [検証記録](docs/VALIDATION.ja.md) · [エンジン再開ノート](docs/NEXT_ENGINE_STEP.ja.md) | | インターフェース | [エージェント API](docs/AGENT_API.ja.md) · [アセット形式](docs/ASSET_FORMAT.ja.md) · [ネイティブ Zig 境界](docs/NATIVE_ZIG.ja.md) | | エンジンとガス | [密閉気筒](docs/SEALED_CYLINDER.ja.md) · [ガスネットワーク](docs/GAS_NETWORK.ja.md) · [ガス交換](docs/GAS_EXCHANGE.ja.md) · [可動気筒](docs/MOVING_CYLINDER.ja.md) · [バルブタイミング](docs/VALVE_TIMING.ja.md) · [予混合燃焼](docs/PREMIXED_COMBUSTION.ja.md) | -| 燃料と噴射 | [燃料計量](docs/FUEL_METERING.ja.md) · [燃料フィルム](docs/FUEL_FILM.ja.md) · [液体噴射](docs/LIQUID_FUEL_INJECTION.ja.md) · [ニードル駆動](docs/NEEDLE_ACTUATION.ja.md) · [クロージャ予測](docs/CLOSURE_PREDICTION.ja.md) | +| 燃料と噴射 | [燃料計量](docs/FUEL_METERING.ja.md) · [燃料フィルム](docs/FUEL_FILM.ja.md) · [液体噴射](docs/LIQUID_FUEL_INJECTION.ja.md) · [ニードル駆動](docs/NEEDLE_ACTUATION.ja.md) · [クロージャ予測](docs/CLOSURE_PREDICTION.ja.md) · [タンク形状と有限ヘッドスペース](docs/TANK_HEADSPACE.ja.md) · [燃料の相平衡と液体供給の境界](docs/FUEL_PHASE_EQUILIBRIUM.ja.md) · [有限体積燃料タンクの相平衡](docs/TANK_PHASE_EQUILIBRIUM.ja.md) | | トランスミッション | [クラッチネットワーク](docs/CLUTCH_NETWORK.ja.md) · [クラッチ物理](docs/CLUTCH_PHYSICS.ja.md) · [歯車ネットワーク](docs/GEAR_NETWORK.ja.md) · [理想歯車](docs/IDEAL_GEARS.ja.md) · [コンバーター](docs/CONVERTER_NETWORK.ja.md) · [デュアルクラッチトランスミッション](docs/DUAL_CLUTCH_TRANSMISSION.ja.md) · [DCT 制御](docs/DCT_CONTROL.ja.md) · [Ravigneaux トランスミッション](docs/RAVIGNEAUX_TRANSMISSION.ja.md) · [分解遊星](docs/RESOLVED_PLANETS.ja.md) | | 油圧 | [油圧ネットワーク](docs/HYDRAULIC_NETWORK.ja.md) · [ポンプ](docs/HYDRAULIC_PUMP.ja.md) · [ピストン](docs/HYDRAULIC_PISTON.ja.md) · [スプール](docs/HYDRAULIC_SPOOL.ja.md) · [ガスアキュムレーター](docs/GAS_PISTON.ja.md) · [AT 駆動](docs/AT_HYDRAULIC_ACTUATION.ja.md) | diff --git a/README.ko.md b/README.ko.md index ab697a4..a09e9eb 100644 --- a/README.ko.md +++ b/README.ko.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — 헤드리스 실험"] mcp["Power.Mcp — stdio MCP 도구 12개"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Unity 6.6 스튜디오 — 3D 실험실"] model --> core @@ -119,7 +119,7 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll |---|---| | `get_capabilities` | 모델, 제한, 시간과 개정 규약을 탐색. 여기서 시작하세요. | | `get_model_schema` | `power.model.v1`의 JSON Schema 2020-12 | -| `get_example_model` | 편집 가능한 합성 모델과 실험 가져오기 (예제 33개) | +| `get_example_model` | 편집 가능한 합성 모델과 실험 가져오기 (예제 47개) | | `validate_model` | 실행 없이 모델 검증. 구조화된 수리 진단 | | `run_experiment` | 경계가 있는 헤드리스 실행, 배치 리플레이·KPI·출처 포함 | | `export_model_asset` | 이식 가능한 `.powerasset` 내보내기 | @@ -147,10 +147,26 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll > [!NOTE] > 모든 샘플 매개변수는 `unverified`입니다. 연구 값이지 교정 측정값이 아닙니다. -아래 실험실은 JSON, CLI, MCP, Studio 가져오기 간에 정의를 공유합니다. 내보내기는 `power.asset.v24`를 사용하며 이전 자산의 판독기는 유지됩니다. +아래 실험실은 JSON, CLI, MCP, Studio 가져오기 간에 정의를 공유합니다. 내보내기는 `power.asset.v41`를 사용하며 이전 자산의 판독기는 유지됩니다. + +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. [증기 질량분율 동결 연료 토출과 유한 수용실](docs/FUEL_DISCHARGE.ko.md) [축 구동 상변화 연료 펌프](docs/FUEL_CHAMBER_PUMP.ko.md) + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. [유한 액체 연료 관로 운동량](docs/FUEL_INERTIAL_PIPE.ko.md) + +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. [압축성 평형 연료 덕트](docs/EQUILIBRIUM_FUEL_DUCT.ko.md) + +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. [축 구동 압축성 연료 챔버](docs/COMPRESSIBLE_FUEL_CHAMBER.ko.md) + +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. [상분율을 동결한 압축성 연료 노즐](docs/COMPRESSIBLE_FUEL_NOZZLE.ko.md) + +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. [연료 노즐의 평형 상변화 수송](docs/EQUILIBRIUM_FUEL_NOZZLE.ko.md) + +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. [유한 속도 연료 상변화 완화](docs/RELAXING_FUEL.ko.md) + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. [상변화 완화 연료 펌프와 동결 상 계량](docs/RELAXING_FUEL_BOUNDARIES.ko.md)
-사용 가능한 실험실 (34) +사용 가능한 실험실 (68) | 예제 이름(`get_example_model`) | 실험실 | 다루는 내용 | |---|---|---| @@ -188,9 +204,49 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | 4레인지 복합 유성 상/하단 인계 | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | 점화 엔진, 컨버터/록업과 복합 변속기 | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | 점화 엔진, 샘플링 DCT 제어와 완전한 증거 | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | 샘플 압력 제어와 실제 기어/록업 확인 | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | 연소 엔진과 피드백 제어 유압 AT 변속 | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | 축 구동 레일 보충, 열 혼합과 전체 수지 | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | 펌프 공급 레일, 물리 니들과 용량 제어 | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | 유한 탱크 고갈, 건식 펌핑과 내부 연료 이동 | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | 유한 공급, 물리 니들과 증발 | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | 펌프 역회전, 유한 밀도 상교환, 가열 공급과 연료 통기 | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | 유한 탱크 평형 및 보존 액체 흡입을 갖춘 연소 엔진 | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | 유한 벽 응축, 통기 증발과 완전 상 수지 | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | 평형 연료 공급, 증기만 연소하고 입구/레일 여유 관측 | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | 유한 기체 공간, 내부 압력 일과 제어 통기 | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | 유한 기체 공간/통기와 물리적 니들 동역학 | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | 릴리프 반환, 탱크/레일 동시 혼합과 손실 열 | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | 연료 순환, 물리 니들과 전체 재현 | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | 액체 배출의 공존 진입, 밸브 이벤트 및 유한 벽 열교환 | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | 역방향 혼합물 수송 및 전기기계 실험 열 결합 | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | 입구 부족, 벌크 증기 형성 및 관성 회전 축 공급 | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | 직류 모터 구동, 충분한 액체 충전 및 유한 모터 벽 열교환 | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | 증기 질량분율 동결 연료 토출과 유한 수용실 | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | 증기 분율 동결 초크, 유한 액체 배제 및 물리 펌프/니들 연소 | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | 유한 액체 재고, 동적 유량, 열 혼합과 보존 관로 일 | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | 유한 액체 재고, 동적 유량, 열 혼합과 보존 관로 일 | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | 유한 액체 공급에 따른 덕트 습증기 재고 응축 | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | 덕트 액체가 유한 2상 저장조로 플래시 증발 | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | 축 압력 일과 압축성 연료 수송 결합 | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | 축 압력 일과 압축성 연료 수송 결합 | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | 동결 압축성 초킹, 유한 배출과 실제 니들 제어 | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | 동결 압축성 초킹, 유한 배출과 실제 니들 제어 | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | 평형 플래시, 전역 임계 유속 포락과 실제 니들 | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | 평형 플래시, 전역 임계 유속 포락과 실제 니들 | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | 독립 증기 분율, 유한 속도 상변화와 보존 수송 | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | 독립 증기 분율, 유한 속도 상변화와 보존 수송 | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | 유한 완화 저장조, 가역 축 일과 보존형 동결 증기 계량 | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | 유한 완화 저장조, 가역 축 일과 보존형 동결 증기 계량 |
+모든 실험실을 JSON으로 나열합니다: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + `name`과 함께 `get_example_model`을 요청하거나 직접 실행하세요: ```sh @@ -203,7 +259,7 @@ dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll assets/labs/.power. 완전한 파워트레인은 목표이지 현재 상태가 아닙니다. 아직 열려 있는 항목: -- 완전한 엔진 동작: 흡기/배기 모델링, 액체 펌프/보충, 정밀화된 자기/전자/분무 동작, 압력 의존 상 거동, 더 풍부한 열화학, 점화 제어. +- 완전한 엔진 동작: 슬로싱/정수압 형상, 2상 펌프/레일 수송과 캐비테이션, 실측 펌프 충전/조절, 정교한 자기/전자/분무 동작, 점화 제어, 흡배기 동역학, 기계 손실과 더 풍부한 열화학. - 완전한 DCT 액추에이션, AT 토폴로지와 변속 제어(ECU/TCU). - 실측 펌프 손실/제어 맵, 실측 배터리 화학과 BMS, 실측 밸브/어큐뮬레이터 동역학. - 교정된 파워트레인. @@ -219,7 +275,7 @@ EA211 DJS + DQ200과 PSA EC5 + AT8에 대한 OEM 연구는 [assets/samples](asse | 프로젝트 | [아키텍처](docs/ARCHITECTURE.ko.md) · [로드맵](docs/ROADMAP.ko.md) · [개발 상태](docs/DEVELOPMENT_STATUS.ko.md) · [검증 기록](docs/VALIDATION.ko.md) · [엔진 재개 노트](docs/NEXT_ENGINE_STEP.ko.md) | | 인터페이스 | [에이전트 API](docs/AGENT_API.ko.md) · [자산 형식](docs/ASSET_FORMAT.ko.md) · [네이티브 Zig 경계](docs/NATIVE_ZIG.ko.md) | | 엔진과 가스 | [밀폐 실린더](docs/SEALED_CYLINDER.ko.md) · [가스 네트워크](docs/GAS_NETWORK.ko.md) · [가스 교환](docs/GAS_EXCHANGE.ko.md) · [가동 실린더](docs/MOVING_CYLINDER.ko.md) · [밸브 타이밍](docs/VALVE_TIMING.ko.md) · [예혼합 연소](docs/PREMIXED_COMBUSTION.ko.md) | -| 연료와 분사 | [연료 계량](docs/FUEL_METERING.ko.md) · [연료 필름](docs/FUEL_FILM.ko.md) · [액체 분사](docs/LIQUID_FUEL_INJECTION.ko.md) · [니들 구동](docs/NEEDLE_ACTUATION.ko.md) · [폐쇄 예측](docs/CLOSURE_PREDICTION.ko.md) | +| 연료와 분사 | [연료 계량](docs/FUEL_METERING.ko.md) · [연료 필름](docs/FUEL_FILM.ko.md) · [액체 분사](docs/LIQUID_FUEL_INJECTION.ko.md) · [니들 구동](docs/NEEDLE_ACTUATION.ko.md) · [폐쇄 예측](docs/CLOSURE_PREDICTION.ko.md) · [탱크 형상과 유한 헤드스페이스](docs/TANK_HEADSPACE.ko.md) · [연료 상평형과 액체 공급 경계](docs/FUEL_PHASE_EQUILIBRIUM.ko.md) · [유한 체적 연료 탱크 상평형](docs/TANK_PHASE_EQUILIBRIUM.ko.md) | | 변속기 | [클러치 네트워크](docs/CLUTCH_NETWORK.ko.md) · [클러치 물리](docs/CLUTCH_PHYSICS.ko.md) · [기어 네트워크](docs/GEAR_NETWORK.ko.md) · [이상 기어](docs/IDEAL_GEARS.ko.md) · [컨버터](docs/CONVERTER_NETWORK.ko.md) · [듀얼 클러치 변속기](docs/DUAL_CLUTCH_TRANSMISSION.ko.md) · [DCT 제어](docs/DCT_CONTROL.ko.md) · [Ravigneaux 변속기](docs/RAVIGNEAUX_TRANSMISSION.ko.md) · [분해 유성](docs/RESOLVED_PLANETS.ko.md) | | 유압 | [유압 네트워크](docs/HYDRAULIC_NETWORK.ko.md) · [펌프](docs/HYDRAULIC_PUMP.ko.md) · [피스톤](docs/HYDRAULIC_PISTON.ko.md) · [스풀](docs/HYDRAULIC_SPOOL.ko.md) · [가스 어큐뮬레이터](docs/GAS_PISTON.ko.md) · [AT 구동](docs/AT_HYDRAULIC_ACTUATION.ko.md) | diff --git a/README.md b/README.md index 548bdbc..abe978e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — headless experiments"] mcp["Power.Mcp — 12 stdio MCP tools"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Unity 6.6 studio — 3D laboratories"] model --> core @@ -119,7 +119,7 @@ The service exposes twelve tools with input and output schemas: |---|---| | `get_capabilities` | Discover models, limits, time and revision conventions. Start here. | | `get_model_schema` | JSON Schema 2020-12 for `power.model.v1` | -| `get_example_model` | Get an editable synthetic model and experiment (33 examples) | +| `get_example_model` | Get an editable synthetic model and experiment (67 examples) | | `validate_model` | Validate a model without running it; structured repair diagnostics | | `run_experiment` | Bounded headless run with batch replay, KPIs, and provenance | | `export_model_asset` | Export a portable `.powerasset` | @@ -147,10 +147,26 @@ A four-range Ravigneaux research graph adds compound planetary paths and a conve > [!NOTE] > All sample parameters are `unverified` — research values, not calibrated measurements. -The laboratories below share definitions across JSON, CLI, MCP, and Studio imports. Exports use `power.asset.v24`, with readers for earlier assets retained. +The laboratories below share definitions across JSON, CLI, MCP, and Studio imports. Exports use `power.asset.v41`, with readers for earlier assets retained. + +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. [Frozen-quality fuel discharge and finite receivers](docs/FUEL_DISCHARGE.md) [Shaft-driven phase-resolving fuel pump](docs/FUEL_CHAMBER_PUMP.md) + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. [Finite liquid fuel line momentum](docs/FUEL_INERTIAL_PIPE.md) + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. [Compressible equilibrium fuel ducts](docs/EQUILIBRIUM_FUEL_DUCT.md) + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. [Shaft-driven compressible fuel chambers](docs/COMPRESSIBLE_FUEL_CHAMBER.md) + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. [Frozen compressible fuel nozzles](docs/COMPRESSIBLE_FUEL_NOZZLE.md) + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. [Equilibrium fuel nozzle transit](docs/EQUILIBRIUM_FUEL_NOZZLE.md) + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. [Finite-rate fuel phase relaxation](docs/RELAXING_FUEL.md) + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. [Relaxing fuel pumps and frozen metering](docs/RELAXING_FUEL_BOUNDARIES.md)
-Available laboratories (34) +Available laboratories (68) | Example name (`get_example_model`) | Laboratory | What it exercises | |---|---|---| @@ -188,9 +204,49 @@ The laboratories below share definitions across JSON, CLI, MCP, and Studio impor | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | four-range compound planetary up/down handoffs | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | fired engine, converter/lockup and compound transmission | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | fired engine with sampled DCT control and full evidence | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | sampled pressure control and physical range/lockup confirmation | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | fired engine with feedback-controlled hydraulic AT shifts | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | shaft-driven rail refill with caloric mixing and complete ledgers | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | pump-fed rail with physical needle and dose control | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | finite tank exhaustion, dry pumping and internal fuel transfer | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | finite supply with physical needle and evaporation | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | pump reversal, finite-density phase exchange, heated source and fuel-bearing vent | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | fired engine with finite-volume tank equilibrium and conserving liquid pickup | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | finite-wall condensation, vent-driven evaporation and complete phase ledgers | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | equilibrium fuel delivery, vapor-only burn and observable inlet/rail margins | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | finite gas headspace, internal pressure work and controlled venting | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | finite gas headspace and venting with physical needle dynamics | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | relief return with simultaneous tank/rail mixing and loss heat | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | recirculating fuel with physical needle and complete replay | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | liquid discharge into coexistence, valve events and finite-wall heat | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | reverse mixture transport and heat coupling to an electromechanical laboratory | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | inlet starvation, bulk vapor formation and coasting-shaft delivery | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | DC motor drive, supplied liquid filling and finite motor-wall heat | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Frozen-quality fuel discharge and finite receivers | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Frozen-quality choking, finite liquid displacement and physical pump/needle firing | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Finite liquid inventory, dynamic flow, thermal mixing and conserving line work | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Finite liquid inventory, dynamic flow, thermal mixing and conserving line work | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Finite liquid supply condenses a wet duct inventory | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | Liquid duct inventory flashes into finite wet reservoirs | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Shaft pressure work coupled to compressible fuel transport | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Shaft pressure work coupled to compressible fuel transport | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Frozen compressible choking, finite discharge and physical needle control | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Frozen compressible choking, finite discharge and physical needle control | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Equilibrium flashing, global critical-flux enclosure and actual needle delivery | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Equilibrium flashing, global critical-flux enclosure and actual needle delivery | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Independent vapor quality, finite-rate phase change and conservative transport | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Independent vapor quality, finite-rate phase change and conservative transport | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Finite-rate pump reservoirs, reversible shaft work and conservative frozen vapor metering | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Finite-rate pump reservoirs, reversible shaft work and conservative frozen vapor metering |
+List all laboratories as JSON: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Request `get_example_model` with a `name`, or run one directly: ```sh @@ -203,7 +259,7 @@ The build exports a matching `.powerasset` for each laboratory. Replay evidence Complete powertrains are the goal, not the current state. Still open: -- Complete engine behavior: intake/exhaust modeling, liquid pump/refill, refined magnetic/electronic/spray behavior, pressure-dependent phase behavior, richer thermochemistry, and ignition control. +- Complete engine behavior: slosh/hydrostatic shape, two-phase pump/rail transport and cavitation, measured pump filling/regulation, refined magnetic/electronic/spray behavior, ignition control, intake/exhaust dynamics, mechanical losses and richer thermochemistry. - Complete DCT actuation, AT topology, and transmission controls (ECU/TCU). - Measured pump loss and control maps, measured battery chemistry and BMS, and measured valve/accumulator dynamics. - Calibrated powertrains. @@ -219,7 +275,7 @@ OEM research for EA211 DJS + DQ200 and PSA EC5 + AT8 stays in [assets/samples](a | Project | [Architecture](docs/ARCHITECTURE.md) · [Roadmap](docs/ROADMAP.md) · [Development status](docs/DEVELOPMENT_STATUS.md) · [Validation record](docs/VALIDATION.md) · [Engine resume notes](docs/NEXT_ENGINE_STEP.md) | | Interfaces | [Agent API](docs/AGENT_API.md) · [Asset format](docs/ASSET_FORMAT.md) · [Native Zig boundary](docs/NATIVE_ZIG.md) | | Engine and gas | [Sealed cylinder](docs/SEALED_CYLINDER.md) · [Gas network](docs/GAS_NETWORK.md) · [Gas exchange](docs/GAS_EXCHANGE.md) · [Moving cylinder](docs/MOVING_CYLINDER.md) · [Valve timing](docs/VALVE_TIMING.md) · [Premixed combustion](docs/PREMIXED_COMBUSTION.md) | -| Fuel and injection | [Fuel metering](docs/FUEL_METERING.md) · [Fuel film](docs/FUEL_FILM.md) · [Liquid injection](docs/LIQUID_FUEL_INJECTION.md) · [Needle actuation](docs/NEEDLE_ACTUATION.md) · [Closure prediction](docs/CLOSURE_PREDICTION.md) | +| Fuel and injection | [Fuel metering](docs/FUEL_METERING.md) · [Fuel film](docs/FUEL_FILM.md) · [Liquid injection](docs/LIQUID_FUEL_INJECTION.md) · [Needle actuation](docs/NEEDLE_ACTUATION.md) · [Closure prediction](docs/CLOSURE_PREDICTION.md) · [Geometric tank and finite headspace](docs/TANK_HEADSPACE.md) · [Fuel phase equilibrium and liquid supply limits](docs/FUEL_PHASE_EQUILIBRIUM.md) · [Finite-volume fuel tank equilibrium](docs/TANK_PHASE_EQUILIBRIUM.md) | | Transmission | [Clutch network](docs/CLUTCH_NETWORK.md) · [Clutch physics](docs/CLUTCH_PHYSICS.md) · [Gear network](docs/GEAR_NETWORK.md) · [Ideal gears](docs/IDEAL_GEARS.md) · [Converter](docs/CONVERTER_NETWORK.md) · [Dual-clutch transmission](docs/DUAL_CLUTCH_TRANSMISSION.md) · [DCT control](docs/DCT_CONTROL.md) · [Ravigneaux transmission](docs/RAVIGNEAUX_TRANSMISSION.md) · [Resolved planets](docs/RESOLVED_PLANETS.md) | | Hydraulics | [Hydraulic network](docs/HYDRAULIC_NETWORK.md) · [Pump](docs/HYDRAULIC_PUMP.md) · [Piston](docs/HYDRAULIC_PISTON.md) · [Spool](docs/HYDRAULIC_SPOOL.md) · [Gas accumulator](docs/GAS_PISTON.md) · [AT actuation](docs/AT_HYDRAULIC_ACTUATION.md) | diff --git a/README.pt-BR.md b/README.pt-BR.md index 81e73a7..8b25973 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — experimentos sem interface"] mcp["Power.Mcp — 12 ferramentas MCP via stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Estúdio Unity 6.6 — laboratórios 3D"] model --> core @@ -119,7 +119,7 @@ O serviço expõe doze ferramentas com esquemas de entrada e saída: |---|---| | `get_capabilities` | Descobrir modelos, limites e convenções de tempo e revisão. Comece aqui. | | `get_model_schema` | JSON Schema 2020-12 para `power.model.v1` | -| `get_example_model` | Obter um modelo sintético editável e seu experimento (33 exemplos) | +| `get_example_model` | Obter um modelo sintético editável e seu experimento (67 exemplos) | | `validate_model` | Validar um modelo sem executá-lo; diagnósticos estruturados de reparo | | `run_experiment` | Execução sem interface e limitada, com replay em lote, KPIs e procedência | | `export_model_asset` | Exportar um `.powerasset` portátil | @@ -147,10 +147,26 @@ Um grafo de pesquisa Ravigneaux de quatro faixas adiciona caminhos planetários > [!NOTE] > Todos os parâmetros de exemplo são `unverified` — valores de pesquisa, não medidas calibradas. -Os laboratórios abaixo compartilham definições entre importações JSON, CLI, MCP e Studio. As exportações usam `power.asset.v24`, mantendo leitores para assets anteriores. +Os laboratórios abaixo compartilham definições entre importações JSON, CLI, MCP e Studio. As exportações usam `power.asset.v41`, mantendo leitores para assets anteriores. + +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. [Descarga de combustível com título congelado e receptores finitos](docs/FUEL_DISCHARGE.pt-BR.md) [Bomba de combustível com mudança de fase acionada por eixo](docs/FUEL_CHAMBER_PUMP.pt-BR.md) + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. [Quantidade de movimento da linha finita de combustível líquido](docs/FUEL_INERTIAL_PIPE.pt-BR.md) + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. [Dutos de combustível compressível em equilíbrio](docs/EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. [Câmaras de combustível compressível acionadas por eixo](docs/COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. [Bocais de combustível compressível com título congelado](docs/COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. [Trânsito de combustível em equilíbrio nos bocais](docs/EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. [Relaxação de fase do combustível com taxa finita](docs/RELAXING_FUEL.pt-BR.md) + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. [Bombas de combustível com relaxação e dosagem congelada](docs/RELAXING_FUEL_BOUNDARIES.pt-BR.md)
-Laboratórios disponíveis (34) +Laboratórios disponíveis (68) | Nome do exemplo (`get_example_model`) | Laboratório | O que exercita | |---|---|---| @@ -188,9 +204,49 @@ Os laboratórios abaixo compartilham definições entre importações JSON, CLI, | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | entregas planetárias compostas de quatro faixas subindo/descendo | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | motor em combustão, conversor/trava e transmissão composta | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | motor em combustão com controle DCT amostrado e evidência completa | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | controle de pressão amostrado e confirmação de marcha/trava reais | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | motor em combustão com trocas AT hidráulicas por realimentação | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | reposição do trilho pelo eixo, mistura calórica e balanços completos | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | trilho com bomba, agulha física e controle de dose | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | esgotamento do tanque finito, bombeamento seco e transferência interna | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | suprimento finito com agulha física e evaporação | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | reversão de bomba, fases a densidade finita, aquecimento e ventilação de combustível | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | motor com equilíbrio do tanque finito e captação líquida conservativa | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | condensação com parede finita, evaporação por ventilação e balanços de fase | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | suprimento em equilíbrio, combustão de vapor e margens entrada/trilho | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | espaço gasoso finito, trabalho interno e ventilação controlada | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | espaço gasoso/ventilação com dinâmica física da agulha | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | retorno de alívio, mistura simultânea tanque/trilho e calor de perdas | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | combustível recirculado com agulha física e reprodução completa | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | descarga líquida em coexistência, eventos de válvula e calor de parede finita | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | transporte reverso de mistura e calor compartilhado com um laboratório eletromecânico | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | entrada insuficiente, formação de vapor e entrega por eixo em giro livre | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | motor CC, enchimento líquido alimentado e calor finito da parede do motor | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Descarga de combustível com título congelado e receptores finitos | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Estrangulamento com título congelado, deslocamento líquido finito e bomba/agulha físicas em combustão | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Inventário líquido finito, vazão dinâmica, mistura térmica e trabalho conservativo | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Inventário líquido finito, vazão dinâmica, mistura térmica e trabalho conservativo | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Uma alimentação líquida finita condensa a mistura úmida do duto | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | O líquido do duto vaporiza para reservatórios bifásicos finitos | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Trabalho de pressão do eixo acoplado ao transporte compressível | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Trabalho de pressão do eixo acoplado ao transporte compressível | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Bloqueio compressível congelado, descarga finita e agulha real | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Bloqueio compressível congelado, descarga finita e agulha real | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Vaporização em equilíbrio, envoltória crítica global e agulha real | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Vaporização em equilíbrio, envoltória crítica global e agulha real | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Fração de vapor independente, fase com taxa finita e transporte conservativo | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Fração de vapor independente, fase com taxa finita e transporte conservativo | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Reservatórios com relaxação finita, trabalho reversível e dosagem conservativa de vapor congelado | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Reservatórios com relaxação finita, trabalho reversível e dosagem conservativa de vapor congelado |
+Listar todos os laboratórios em JSON: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Solicite `get_example_model` com um `name`, ou execute um diretamente: ```sh @@ -203,7 +259,7 @@ A compilação exporta um `.powerasset` correspondente para cada laboratório. A Powertrains completos são o objetivo, não o estado atual. Ainda aberto: -- Comportamento completo do motor: modelagem de admissão/escape, bomba/reabastecimento líquido, comportamento magnético/eletrônico/pulverização refinado, fases dependentes da pressão, termoquímica mais rica e controle de ignição. +- Comportamento completo do motor: sloshing/forma hidrostática, transporte bifásico bomba/trilho e cavitação, enchimento/regulação de bomba medidos, magnetismo/eletrônica/pulverização refinados, ignição, admissão/escape, perdas mecânicas e termoquímica mais rica. - Acionamento DCT completo, topologia AT e controles de transmissão (ECU/TCU). - Mapas medidos de perdas e controle da bomba, química de bateria e BMS medidos, dinâmica medida de válvulas/acumuladores. - Powertrains calibrados. @@ -219,7 +275,7 @@ A pesquisa OEM para EA211 DJS + DQ200 e PSA EC5 + AT8 permanece em [assets/sampl | Projeto | [Arquitetura](docs/ARCHITECTURE.pt-BR.md) · [Roteiro](docs/ROADMAP.pt-BR.md) · [Estado de desenvolvimento](docs/DEVELOPMENT_STATUS.pt-BR.md) · [Registro de validação](docs/VALIDATION.pt-BR.md) · [Notas de retomada do motor](docs/NEXT_ENGINE_STEP.pt-BR.md) | | Interfaces | [API de agente](docs/AGENT_API.pt-BR.md) · [Formato de asset](docs/ASSET_FORMAT.pt-BR.md) · [Fronteira Zig nativa](docs/NATIVE_ZIG.pt-BR.md) | | Motor e gás | [Cilindro fechado](docs/SEALED_CYLINDER.pt-BR.md) · [Rede de gás](docs/GAS_NETWORK.pt-BR.md) · [Troca de gás](docs/GAS_EXCHANGE.pt-BR.md) · [Cilindro móvel](docs/MOVING_CYLINDER.pt-BR.md) · [Comando de válvulas](docs/VALVE_TIMING.pt-BR.md) · [Combustão premisturada](docs/PREMIXED_COMBUSTION.pt-BR.md) | -| Combustível e injeção | [Medição de combustível](docs/FUEL_METERING.pt-BR.md) · [Filme de combustível](docs/FUEL_FILM.pt-BR.md) · [Injeção líquida](docs/LIQUID_FUEL_INJECTION.pt-BR.md) · [Acionamento da agulha](docs/NEEDLE_ACTUATION.pt-BR.md) · [Predição de fechamento](docs/CLOSURE_PREDICTION.pt-BR.md) | +| Combustível e injeção | [Medição de combustível](docs/FUEL_METERING.pt-BR.md) · [Filme de combustível](docs/FUEL_FILM.pt-BR.md) · [Injeção líquida](docs/LIQUID_FUEL_INJECTION.pt-BR.md) · [Acionamento da agulha](docs/NEEDLE_ACTUATION.pt-BR.md) · [Predição de fechamento](docs/CLOSURE_PREDICTION.pt-BR.md) · [Geometria do tanque e espaço gasoso finito](docs/TANK_HEADSPACE.pt-BR.md) · [Equilíbrio de fases do combustível e limites de suprimento](docs/FUEL_PHASE_EQUILIBRIUM.pt-BR.md) · [Equilíbrio do tanque com volume líquido finito](docs/TANK_PHASE_EQUILIBRIUM.pt-BR.md) | | Transmissão | [Rede de embreagens](docs/CLUTCH_NETWORK.pt-BR.md) · [Física da embreagem](docs/CLUTCH_PHYSICS.pt-BR.md) · [Rede de engrenagens](docs/GEAR_NETWORK.pt-BR.md) · [Engrenagens ideais](docs/IDEAL_GEARS.pt-BR.md) · [Conversor](docs/CONVERTER_NETWORK.pt-BR.md) · [Transmissão de embreagem dupla](docs/DUAL_CLUTCH_TRANSMISSION.pt-BR.md) · [Controle DCT](docs/DCT_CONTROL.pt-BR.md) · [Transmissão Ravigneaux](docs/RAVIGNEAUX_TRANSMISSION.pt-BR.md) · [Planetárias resolvidas](docs/RESOLVED_PLANETS.pt-BR.md) | | Hidráulica | [Rede hidráulica](docs/HYDRAULIC_NETWORK.pt-BR.md) · [Bomba](docs/HYDRAULIC_PUMP.pt-BR.md) · [Pistão](docs/HYDRAULIC_PISTON.pt-BR.md) · [Carretel](docs/HYDRAULIC_SPOOL.pt-BR.md) · [Acumulador de gás](docs/GAS_PISTON.pt-BR.md) · [Acionamento AT](docs/AT_HYDRAULIC_ACTUATION.pt-BR.md) | diff --git a/README.ru.md b/README.ru.md index 857157c..75d57db 100644 --- a/README.ru.md +++ b/README.ru.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — эксперименты без интерфейса"] mcp["Power.Mcp — 12 инструментов MCP через stdio"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Студия Unity 6.6 — 3D-лаборатории"] model --> core @@ -119,7 +119,7 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll |---|---| | `get_capabilities` | Узнать модели, ограничения, соглашения о времени и ревизиях. Начните отсюда. | | `get_model_schema` | JSON Schema 2020-12 для `power.model.v1` | -| `get_example_model` | Получить редактируемую синтетическую модель и эксперимент (33 примера) | +| `get_example_model` | Получить редактируемую синтетическую модель и эксперимент (67 примера) | | `validate_model` | Проверить модель без запуска; структурированная диагностика исправлений | | `run_experiment` | Ограниченный запуск без интерфейса с пакетным повтором, KPI и происхождением | | `export_model_asset` | Экспортировать переносимый `.powerasset` | @@ -147,10 +147,26 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll > [!NOTE] > Все параметры образцов — `unverified`: исследовательские значения, а не калиброванные измерения. -Лаборатории ниже разделяют определения между импортом JSON, CLI, MCP и Studio. Экспорт использует `power.asset.v24`, читатели прежних активов сохранены. +Лаборатории ниже разделяют определения между импортом JSON, CLI, MCP и Studio. Экспорт использует `power.asset.v41`, читатели прежних активов сохранены. + +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. [Подача топлива с замороженным паросодержанием в конечный приёмник](docs/FUEL_DISCHARGE.ru.md) [Фазоразрешающий топливный насос с приводом от вала](docs/FUEL_CHAMBER_PUMP.ru.md) + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. [Импульс конечной линии жидкого топлива](docs/FUEL_INERTIAL_PIPE.ru.md) + +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. [Сжимаемые равновесные топливные каналы](docs/EQUILIBRIUM_FUEL_DUCT.ru.md) + +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. [Топливные камеры сжимаемой среды с приводом от вала](docs/COMPRESSIBLE_FUEL_CHAMBER.ru.md) + +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. [Сжимаемые топливные сопла с замороженным составом](docs/COMPRESSIBLE_FUEL_NOZZLE.ru.md) + +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. [Равновесное прохождение топлива через сопло](docs/EQUILIBRIUM_FUEL_NOZZLE.ru.md) + +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. [Фазовая релаксация топлива с конечной скоростью](docs/RELAXING_FUEL.ru.md) + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. [Релаксационные топливные насосы и дозирование с замороженной фазой](docs/RELAXING_FUEL_BOUNDARIES.ru.md)
-Доступные лаборатории (34) +Доступные лаборатории (68) | Имя образца (`get_example_model`) | Лаборатория | Что проверяет | |---|---|---| @@ -188,9 +204,49 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | составные планетарные передачи вверх/вниз в четырёх диапазонах | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | двигатель со сгоранием, гидротрансформатор/блокировка и составная трансмиссия | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | двигатель со сгоранием, дискретное управление DCT и полные свидетельства | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | дискретное управление давлением и подтверждение фактической передачи/блокировки | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | работающий двигатель и гидравлические переключения AT с обратной связью | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | пополнение рампы от вала, тепловое смешение и полные балансы | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | рампа с насосом, физической иглой и управлением дозой | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | исчерпание конечного бака, сухая работа насоса и внутренний перенос топлива | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | конечная подача с физической иглой и испарением | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | реверс насоса, конечная плотность фаз, нагрев и топливная вентиляция | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | двигатель с равновесием конечного бака и консервативным забором жидкости | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | конденсация с конечной стенкой, вентиляционное испарение и фазовые балансы | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | равновесная подача, горение только пара и запасы входа/рампы | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | конечный газ, внутренняя работа давления и управляемая вентиляция | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | конечный газ и вентиляция с физической динамикой иглы | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | возврат через клапан, совместное смешение бака/рампы и тепло потерь | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | рециркуляция с физической иглой и полным воспроизведением | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | выход жидкости в сосуществование, события клапана и конечный теплообмен | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | обратный перенос смеси и теплообмен с электромеханической лабораторией | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | недостаточный приток, объёмное парообразование и подача вращающимся по инерции валом | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | двигатель постоянного тока, жидкостное наполнение и конечное тепло стенки мотора | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | Подача топлива с замороженным паросодержанием в конечный приёмник | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | Критический поток с замороженным паросодержанием, конечное вытеснение и физический насос/игла | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | Конечная жидкость, динамический расход, тепловое смешение и сохраняющая работа | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | Конечная жидкость, динамический расход, тепловое смешение и сохраняющая работа | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | Конечная подача жидкости конденсирует влажную смесь канала | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | Жидкость канала вскипает при выходе в конечные двухфазные резервуары | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | Работа давления вала в сжимаемом топливном переносе | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | Работа давления вала в сжимаемом топливном переносе | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | Замороженное критическое течение, конечное истечение и реальная игла | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | Замороженное критическое течение, конечное истечение и реальная игла | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | Равновесное вскипание, глобальные границы потока и реальная игла | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | Равновесное вскипание, глобальные границы потока и реальная игла | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | Независимая доля пара, конечная фазовая скорость и консервативный перенос | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | Независимая доля пара, конечная фазовая скорость и консервативный перенос | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | Релаксирующие резервуары, обратимая работа вала и консервативное дозирование пара | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | Релаксирующие резервуары, обратимая работа вала и консервативное дозирование пара |
+Вывести все лаборатории в JSON: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + Запросите `get_example_model` с параметром `name` или запустите напрямую: ```sh @@ -203,7 +259,7 @@ dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll assets/labs/.power. Полные силовые агрегаты — цель, а не текущее состояние. Ещё открыто: -- Полное поведение двигателя: моделирование впуска/выпуска, жидкостная подкачка/заправка, уточнённое магнитное/электронное/распыляющее поведение, фазовые переходы от давления, более богатая термохимия и управление зажиганием. +- Полное поведение двигателя: плеск/гидростатическая форма, двухфазный поток насоса/рампы и кавитация, измеренное заполнение/регулирование насоса, уточнённые магнитные/электронные/распылительные процессы, зажигание, впуск/выпуск, механические потери и более полная термохимия. - Полный привод DCT, топология AT и управление трансмиссией (ECU/TCU). - Измеренные карты потерь и управления насоса, измеренная химия батареи и BMS, измеренная динамика клапанов/аккумуляторов. - Калиброванные силовые агрегаты. @@ -219,7 +275,7 @@ OEM-исследования EA211 DJS + DQ200 и PSA EC5 + AT8 остаются | Проект | [Архитектура](docs/ARCHITECTURE.ru.md) · [Дорожная карта](docs/ROADMAP.ru.md) · [Статус разработки](docs/DEVELOPMENT_STATUS.ru.md) · [Журнал валидации](docs/VALIDATION.ru.md) · [Заметки о возобновлении работ по двигателю](docs/NEXT_ENGINE_STEP.ru.md) | | Интерфейсы | [API агента](docs/AGENT_API.ru.md) · [Формат активов](docs/ASSET_FORMAT.ru.md) · [Граница нативного Zig](docs/NATIVE_ZIG.ru.md) | | Двигатель и газ | [Закрытый цилиндр](docs/SEALED_CYLINDER.ru.md) · [Газовая сеть](docs/GAS_NETWORK.ru.md) · [Газообмен](docs/GAS_EXCHANGE.ru.md) · [Подвижный цилиндр](docs/MOVING_CYLINDER.ru.md) · [Фазы клапанов](docs/VALVE_TIMING.ru.md) · [Premixed-сгорание](docs/PREMIXED_COMBUSTION.ru.md) | -| Топливо и впрыск | [Дозирование топлива](docs/FUEL_METERING.ru.md) · [Топливная плёнка](docs/FUEL_FILM.ru.md) · [Жидкостный впрыск](docs/LIQUID_FUEL_INJECTION.ru.md) · [Привод иглы](docs/NEEDLE_ACTUATION.ru.md) · [Предсказание закрытия](docs/CLOSURE_PREDICTION.ru.md) | +| Топливо и впрыск | [Дозирование топлива](docs/FUEL_METERING.ru.md) · [Топливная плёнка](docs/FUEL_FILM.ru.md) · [Жидкостный впрыск](docs/LIQUID_FUEL_INJECTION.ru.md) · [Привод иглы](docs/NEEDLE_ACTUATION.ru.md) · [Предсказание закрытия](docs/CLOSURE_PREDICTION.ru.md) · [Геометрия бака и конечное газовое пространство](docs/TANK_HEADSPACE.ru.md) · [Фазовое равновесие топлива и границы жидкой подачи](docs/FUEL_PHASE_EQUILIBRIUM.ru.md) · [Равновесие топлива в баке конечного объёма](docs/TANK_PHASE_EQUILIBRIUM.ru.md) | | Трансмиссия | [Сеть сцеплений](docs/CLUTCH_NETWORK.ru.md) · [Физика сцепления](docs/CLUTCH_PHYSICS.ru.md) · [Зубчатая сеть](docs/GEAR_NETWORK.ru.md) · [Идеальные шестерни](docs/IDEAL_GEARS.ru.md) · [Гидротрансформатор](docs/CONVERTER_NETWORK.ru.md) · [Трансмиссия с двумя сцеплениями](docs/DUAL_CLUTCH_TRANSMISSION.ru.md) · [Управление DCT](docs/DCT_CONTROL.ru.md) · [Трансмиссия Ravigneaux](docs/RAVIGNEAUX_TRANSMISSION.ru.md) · [Разрешённые планетарные ряды](docs/RESOLVED_PLANETS.ru.md) | | Гидравлика | [Гидравлическая сеть](docs/HYDRAULIC_NETWORK.ru.md) · [Насос](docs/HYDRAULIC_PUMP.ru.md) · [Поршень](docs/HYDRAULIC_PISTON.ru.md) · [Золотник](docs/HYDRAULIC_SPOOL.ru.md) · [Газовый аккумулятор](docs/GAS_PISTON.ru.md) · [Привод AT](docs/AT_HYDRAULIC_ACTUATION.ru.md) | diff --git a/README.zh-CN.md b/README.zh-CN.md index 13cedd8..47f9588 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -19,7 +19,7 @@ flowchart LR end cli["Power.Cli — 无头实验"] mcp["Power.Mcp — 12 个 stdio MCP 工具"] - assets["Power.Assets — .powerasset v24"] + assets["Power.Assets — .powerasset v41"] unity["Unity 6.6 工作室 — 3D 实验室"] model --> core @@ -119,7 +119,7 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll |---|---| | `get_capabilities` | 发现模型、限制、时间与修订约定。从这里开始。 | | `get_model_schema` | `power.model.v1` 的 JSON Schema 2020-12 | -| `get_example_model` | 获取可编辑的合成模型与实验(33 个示例) | +| `get_example_model` | 获取可编辑的合成模型与实验(67 个示例) | | `validate_model` | 不运行即校验模型;结构化修复诊断 | | `run_experiment` | 有界无头运行,含批量回放、KPI 与溯源 | | `export_model_asset` | 导出可移植的 `.powerasset` | @@ -147,10 +147,26 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll > [!NOTE] > 所有示例参数均为 `unverified`——研究取值,不是标定测量值。 -下表实验室在 JSON、CLI、MCP 与 Studio 导入之间共享定义。导出使用 `power.asset.v24`,并保留对更早资产的读取。 +下表实验室在 JSON、CLI、MCP 与 Studio 导入之间共享定义。导出使用 `power.asset.v41`,并保留对更早资产的读取。 + +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 [冻结汽相质量分数的燃油喷流与有限体积接收腔](docs/FUEL_DISCHARGE.zh-CN.md) [轴驱动相变燃料泵](docs/FUEL_CHAMBER_PUMP.zh-CN.md) + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 [有限液体燃油管路动量](docs/FUEL_INERTIAL_PIPE.zh-CN.md) + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 [可压缩平衡燃料管路](docs/EQUILIBRIUM_FUEL_DUCT.zh-CN.md) + +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 [轴驱动可压缩燃料腔室](docs/COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) + +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 [冻结相态可压缩燃料喷嘴](docs/COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) + +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 [平衡燃料喷嘴输运](docs/EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) + +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 [有限速率燃料相变弛豫](docs/RELAXING_FUEL.zh-CN.md) + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 [相变弛豫燃料泵与冻结相态计量](docs/RELAXING_FUEL_BOUNDARIES.zh-CN.md)
-可用实验室(34 个) +可用实验室(68 个) | 示例名(`get_example_model`) | 实验室 | 验证内容 | |---|---|---| @@ -188,9 +204,49 @@ dotnet /absolute/path/to/Power/src/Power.Mcp/bin/Release/net10.0/Power.Mcp.dll | `ravigneaux-transmission` | `assets/labs/ravigneaux-transmission.power.json` | 四挡域复合行星升降挡交接 | | `fired-ravigneaux-converter` | `assets/labs/fired-ravigneaux-converter.power.json` | 点火发动机、变矩器/锁止与复合变速器 | | `controlled-fired-dual-clutch` | `assets/labs/controlled-fired-dual-clutch.power.json` | 点火发动机、采样 DCT 控制与完整证据 | +| `controlled-hydraulic-ravigneaux` | `assets/labs/controlled-hydraulic-ravigneaux.power.json` | 采样压力控制与实际挡域/锁止确认 | +| `controlled-fired-hydraulic-ravigneaux` | `assets/labs/controlled-fired-hydraulic-ravigneaux.power.json` | 点火发动机与反馈控制的液压 AT 换挡 | +| `pump-fed-liquid-cylinder` | `assets/labs/pump-fed-liquid-cylinder.power.json` | 轴驱动油轨补给、热混合与完整账本 | +| `pump-fed-needle-cylinder` | `assets/labs/pump-fed-needle-cylinder.power.json` | 泵供油轨、物理针阀与剂量控制 | +| `finite-tank-liquid-cylinder` | `assets/labs/finite-tank-liquid-cylinder.power.json` | 有限油箱耗尽、干转泵送与内部燃油传递 | +| `finite-tank-needle-cylinder` | `assets/labs/finite-tank-needle-cylinder.power.json` | 有限供油、物理针阀与蒸发 | +| `equilibrium-tank-supply` | `assets/labs/equilibrium-tank-supply.power.json` | 泵反转、有限密度相变、有限热源与含燃料通气 | +| `equilibrium-tank-fired-cylinder` | `assets/labs/equilibrium-tank-fired-cylinder.power.json` | 带有限体积油箱相平衡和守恒液体吸取的点火发动机 | +| `equilibrium-fuel-cell` | `assets/labs/equilibrium-fuel-cell.power.json` | 有限壁面冷凝、通气蒸发与完整相变账本 | +| `equilibrium-injected-cylinder` | `assets/labs/equilibrium-injected-cylinder.power.json` | 平衡燃油供给、仅蒸气燃烧与可观察的入口/燃轨裕量 | +| `vented-tank-liquid-cylinder` | `assets/labs/vented-tank-liquid-cylinder.power.json` | 有限气相空间、内部压力功与受控通气 | +| `vented-tank-needle-cylinder` | `assets/labs/vented-tank-needle-cylinder.power.json` | 有限气相及通气与物理针阀动力学 | +| `recirculating-liquid-cylinder` | `assets/labs/recirculating-liquid-cylinder.power.json` | 泄压回流、油箱/油轨联立混合与损失热 | +| `recirculating-needle-cylinder` | `assets/labs/recirculating-needle-cylinder.power.json` | 循环燃油、物理针阀与完整回放 | +| `equilibrium-fuel-network` | `assets/labs/equilibrium-fuel-network.power.json` | 液体排出进入两相共存、阀事件与有限壁传热 | +| `electrothermal-fuel-network` | `assets/labs/electrothermal-fuel-network.power.json` | 反向混合物输运及与机电实验的热耦合 | +| `equilibrium-fuel-pump` | `assets/labs/equilibrium-fuel-pump.power.json` | 入口不足、体相蒸气形成与滑行轴排出 | +| `electric-equilibrium-fuel-pump` | `assets/labs/electric-equilibrium-fuel-pump.power.json` | 直流电机驱动、充分液体充填与有限电机壁传热 | +| `finite-volume-fuel-discharge` | `assets/labs/finite-volume-fuel-discharge.power.json` | 冻结汽相质量分数的燃油喷流与有限体积接收腔 | +| `pump-fed-finite-volume-cylinder` | `assets/labs/pump-fed-finite-volume-cylinder.power.json` | 冻结汽相质量分数阻塞、有限液体排量与物理泵/针阀燃烧 | +| `inertial-fuel-line` | `assets/labs/inertial-fuel-line.power.json` | 有限液体库存、动态流动、热混合与守恒管路功 | +| `inertial-pump-fed-cylinder` | `assets/labs/inertial-pump-fed-cylinder.power.json` | 有限液体库存、动态流动、热混合与守恒管路功 | +| `equilibrium-fuel-condensing-duct` | `assets/labs/equilibrium-fuel-condensing-duct.power.json` | 有限液体供给使管内湿蒸气库存凝结 | +| `equilibrium-fuel-flashing-duct` | `assets/labs/equilibrium-fuel-flashing-duct.power.json` | 液体管路库存向有限两相储罐闪蒸 | +| `compressible-fuel-chamber-duct` | `assets/labs/compressible-fuel-chamber-duct.power.json` | 轴压力功与可压缩燃料输运耦合 | +| `electric-compressible-fuel-duct` | `assets/labs/electric-compressible-fuel-duct.power.json` | 轴压力功与可压缩燃料输运耦合 | +| `compressible-fuel-nozzle` | `assets/labs/compressible-fuel-nozzle.power.json` | 冻结相态可压缩阻塞、有限排放与实际针阀控制 | +| `compressible-pump-needle` | `assets/labs/compressible-pump-needle.power.json` | 冻结相态可压缩阻塞、有限排放与实际针阀控制 | +| `equilibrium-flashing-nozzle` | `assets/labs/equilibrium-flashing-nozzle.power.json` | 平衡闪蒸、全局临界通量包络与实际针阀输送 | +| `equilibrium-pump-needle` | `assets/labs/equilibrium-pump-needle.power.json` | 平衡闪蒸、全局临界通量包络与实际针阀输送 | +| `relaxing-fuel-evaporation` | `assets/labs/relaxing-fuel-evaporation.power.json` | 独立蒸气质量分数、有限速率相变与守恒输运 | +| `relaxing-fuel-duct` | `assets/labs/relaxing-fuel-duct.power.json` | 独立蒸气质量分数、有限速率相变与守恒输运 | +| `relaxing-fuel-chamber` | `assets/labs/relaxing-fuel-chamber.power.json` | 有限速率泵储腔、可逆轴功和守恒冻结蒸气计量 | +| `relaxing-pump-needle` | `assets/labs/relaxing-pump-needle.power.json` | 有限速率泵储腔、可逆轴功和守恒冻结蒸气计量 |
+以 JSON 列出全部实验室: + +```sh +dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll list-labs +``` + 向 `get_example_model` 传入 `name`,或直接运行: ```sh @@ -203,7 +259,7 @@ dotnet src/Power.Cli/bin/Release/net10.0/Power.Cli.dll assets/labs/.power. 完整动力总成是目标,不是当前状态。仍未完成: -- 完整发动机行为:进/排气建模、液体泵送/加注、更精细的电磁/电子/喷雾行为、压力相关相变、更丰富的热化学与点火控制。 +- 完整发动机行为:油箱晃动/静液压形状、两相泵/燃轨输运与空化、实测泵充液/调压、更精细的电磁/电子/喷雾行为、点火控制、进/排气动力学、机械损失和更丰富的热化学。 - 完整的 DCT 执行、AT 拓扑与变速器控制(ECU/TCU)。 - 实测的泵损耗与控制图谱、实测电池化学与 BMS、实测阀门/蓄能器动力学。 - 标定动力总成。 @@ -219,7 +275,7 @@ EA211 DJS + DQ200 与 PSA EC5 + AT8 的 OEM 研究保留在 [assets/samples](ass | 项目 | [架构](docs/ARCHITECTURE.zh-CN.md) · [路线图](docs/ROADMAP.zh-CN.md) · [开发状态](docs/DEVELOPMENT_STATUS.zh-CN.md) · [验证记录](docs/VALIDATION.zh-CN.md) · [发动机恢复笔记](docs/NEXT_ENGINE_STEP.zh-CN.md) | | 接口 | [智能体 API](docs/AGENT_API.zh-CN.md) · [资产格式](docs/ASSET_FORMAT.zh-CN.md) · [原生 Zig 边界](docs/NATIVE_ZIG.zh-CN.md) | | 发动机与气体 | [封闭气缸](docs/SEALED_CYLINDER.zh-CN.md) · [气体网络](docs/GAS_NETWORK.zh-CN.md) · [换气](docs/GAS_EXCHANGE.zh-CN.md) · [运动气缸](docs/MOVING_CYLINDER.zh-CN.md) · [气门定时](docs/VALVE_TIMING.zh-CN.md) · [预混燃烧](docs/PREMIXED_COMBUSTION.zh-CN.md) | -| 燃油与喷射 | [燃油计量](docs/FUEL_METERING.zh-CN.md) · [油膜](docs/FUEL_FILM.zh-CN.md) · [低压喷射](docs/LIQUID_FUEL_INJECTION.zh-CN.md) · [针阀驱动](docs/NEEDLE_ACTUATION.zh-CN.md) · [闭合预测](docs/CLOSURE_PREDICTION.zh-CN.md) | +| 燃油与喷射 | [燃油计量](docs/FUEL_METERING.zh-CN.md) · [油膜](docs/FUEL_FILM.zh-CN.md) · [低压喷射](docs/LIQUID_FUEL_INJECTION.zh-CN.md) · [针阀驱动](docs/NEEDLE_ACTUATION.zh-CN.md) · [闭合预测](docs/CLOSURE_PREDICTION.zh-CN.md) · [油箱几何与有限气相空间](docs/TANK_HEADSPACE.zh-CN.md) · [燃油相平衡与液体供给边界](docs/FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [有限体积油箱相平衡](docs/TANK_PHASE_EQUILIBRIUM.zh-CN.md) | | 变速器 | [离合器网络](docs/CLUTCH_NETWORK.zh-CN.md) · [离合器物理](docs/CLUTCH_PHYSICS.zh-CN.md) · [齿轮网络](docs/GEAR_NETWORK.zh-CN.md) · [理想齿轮](docs/IDEAL_GEARS.zh-CN.md) · [变矩器](docs/CONVERTER_NETWORK.zh-CN.md) · [双离合变速器](docs/DUAL_CLUTCH_TRANSMISSION.zh-CN.md) · [DCT 控制](docs/DCT_CONTROL.zh-CN.md) · [Ravigneaux 变速器](docs/RAVIGNEAUX_TRANSMISSION.zh-CN.md) · [分解行星](docs/RESOLVED_PLANETS.zh-CN.md) | | 液压 | [液压网络](docs/HYDRAULIC_NETWORK.zh-CN.md) · [泵](docs/HYDRAULIC_PUMP.zh-CN.md) · [活塞](docs/HYDRAULIC_PISTON.zh-CN.md) · [滑阀](docs/HYDRAULIC_SPOOL.zh-CN.md) · [气体蓄能器](docs/GAS_PISTON.zh-CN.md) · [AT 驱动](docs/AT_HYDRAULIC_ACTUATION.zh-CN.md) | diff --git a/Unity/Assets/Power/Runtime/PowerStudio.cs b/Unity/Assets/Power/Runtime/PowerStudio.cs index b66bc01..7ba60b6 100644 --- a/Unity/Assets/Power/Runtime/PowerStudio.cs +++ b/Unity/Assets/Power/Runtime/PowerStudio.cs @@ -429,6 +429,14 @@ private void BuildWorld() Shape("Hydraulic chamber " + node.Id, PrimitiveType.Cylinder, position, new Vector3(1.0f, 0.65f, 1.0f), blue); Shape("Hydraulic compliance marker " + node.Id, PrimitiveType.Cube, position + Vector3.up * 0.7f, new Vector3(0.7f, 0.08f, 0.7f), steel); } + else if (node.Domain == Domain.Fuel) + { + position.y = 1.0f; + var surface = Surface(new Color(0.15f, 0.48f, 0.35f)); + _thermalMaterials.Add(node.Id, surface); + Shape("Fuel vessel " + node.Id, PrimitiveType.Cylinder, position, new Vector3(1.3f, 0.8f, 1.3f), surface); + Shape("Fuel vessel lid " + node.Id, PrimitiveType.Cylinder, position + Vector3.up * 0.85f, new Vector3(1.4f, 0.05f, 1.4f), steel); + } else if (node.Domain == Domain.Gas) { position.y = 1.0f; @@ -472,6 +480,16 @@ private void BuildWorld() if (component.Kind == ComponentKind.Shaft || component.Kind == ComponentKind.ThermalLink) Connection("Component " + component.Id, a, component.NodeB == 0 ? new Vector3(a.x, 0.05f, a.z + 1) : positions[component.NodeB], component.Kind == ComponentKind.Shaft ? steel : copper, component.Kind == ComponentKind.Shaft ? 0.15f : 0.07f); + if (component.Kind == ComponentKind.FuelRestriction || component.Kind == ComponentKind.FuelCheckValve || component.Kind == ComponentKind.FuelHeatLink) + Connection((component.Kind == ComponentKind.FuelHeatLink ? "Fuel heat link " : "Fuel restriction ") + component.Id, + a, positions[component.NodeB], component.Kind == ComponentKind.FuelHeatLink ? copper : blue, 0.08f); + if (component.Kind == ComponentKind.FuelChamber) + { + Vector3 fuel = positions[component.NodeB], center = (a + fuel) * 0.5f + Vector3.up * 0.6f; + Shape("Fuel chamber " + component.Id, PrimitiveType.Cylinder, center, new Vector3(0.7f, 0.4f, 0.7f), copper); + Connection("Fuel chamber shaft " + component.Id, a, center, steel, 0.1f); + Connection("Fuel chamber port " + component.Id, center, fuel, blue, 0.08f); + } if (component.Kind == ComponentKind.GasOrifice) { Vector3 b = component.NodeB == 0 ? a + new Vector3(0, 0, 1.5f) : positions[component.NodeB]; @@ -559,6 +577,29 @@ private void BuildWorld() Connection((component.Kind == ComponentKind.CarrierGear ? "Carrier mesh port B " : "Planetary ring ") + component.Id, ring, center, steel, 0.08f); Connection("Planetary carrier " + component.Id, carrier, center, blue, 0.08f); } + if (component.Kind == ComponentKind.LiquidRailFeed) + { + Shape("Liquid rail feed " + component.Id, PrimitiveType.Cube, a + Vector3.up * 1.1f, new Vector3(0.45f, 0.3f, 0.45f), blue); + continue; + } + if (component.Kind == ComponentKind.LiquidFuelTank) + { + Vector3 tankCenter = a + Vector3.right * 1.2f + Vector3.up * 0.7f; + Shape("Liquid fuel tank " + component.Id, PrimitiveType.Cylinder, tankCenter, new Vector3(0.55f, 0.4f, 0.55f), blue); + if (component.LiquidFuelTank != null && component.LiquidFuelTank.Headspace != null && component.LiquidFuelTank.Headspace.PhaseEquilibrium) + Connection("Tank phase exchange " + component.Id, tankCenter, positions[component.LiquidFuelTank.Headspace.GasNode], copper, 0.05f); + continue; + } + if (component.Kind == ComponentKind.LiquidRailReturn) + { + Shape("Liquid rail return " + component.Id, PrimitiveType.Cube, a + Vector3.left * 1.2f + Vector3.up * 0.8f, new Vector3(0.4f, 0.25f, 0.4f), blue); + continue; + } + if (component.Kind == ComponentKind.HydraulicAtController) + { + Shape("AT feedback controller " + component.Id, PrimitiveType.Cube, a + Vector3.up * 1.4f, new Vector3(0.55f, 0.35f, 0.45f), blue); + continue; + } if (component.Kind == ComponentKind.DualClutchController) { Shape("DCT sampled controller " + component.Id, PrimitiveType.Cube, a + Vector3.up * 1.4f, new Vector3(0.55f, 0.35f, 0.45f), blue); @@ -592,7 +633,8 @@ private void BuildWorld() Vector3 center=(a+positions[component.NodeB])*0.5f+Vector3.up*0.4f; Shape("Liquid fuel film "+component.Id,PrimitiveType.Cube,center,new Vector3(0.7f,0.08f,0.6f),copper); Connection("Film heat source "+component.Id,positions[component.NodeB],center,copper,0.05f); - Connection("Fuel vapor admission "+component.Id,center,a,copper,0.06f); + string exchange = component.FuelFilm != null && component.FuelFilm.PhaseEquilibrium != null ? "Fuel phase exchange " : "Fuel vapor admission "; + Connection(exchange+component.Id,center,a,copper,0.06f); } if (component.Kind == ComponentKind.GasFuelInjector) { diff --git a/Unity/Assets/Power/Tests/EditMode/CoreIntegrationTests.cs b/Unity/Assets/Power/Tests/EditMode/CoreIntegrationTests.cs index ff8a16a..054d4ab 100644 --- a/Unity/Assets/Power/Tests/EditMode/CoreIntegrationTests.cs +++ b/Unity/Assets/Power/Tests/EditMode/CoreIntegrationTests.cs @@ -64,6 +64,14 @@ public void UnityRuntimePreservesBatchReplay() [TestCase("FiredDualClutch")] [TestCase("ControlledDualClutch")] [TestCase("ControlledFiredDualClutch")] + [TestCase("PumpFedLiquidCylinder")] + [TestCase("FiniteTankLiquidCylinder")] + [TestCase("RecirculatingLiquidCylinder")] + [TestCase("RecirculatingNeedleCylinder")] + [TestCase("FiniteTankNeedleCylinder")] + [TestCase("PumpFedNeedleCylinder")] + [TestCase("ControlledHydraulicRavigneaux")] + [TestCase("ControlledFiredHydraulicRavigneaux")] [TestCase("HydraulicRavigneauxTransmission")] [TestCase("FiredHydraulicRavigneaux")] [TestCase("ResolvedRavigneauxTransmission")] diff --git a/Unity/Assets/Power/Tests/PlayMode/StudioLifecycleTests.cs b/Unity/Assets/Power/Tests/PlayMode/StudioLifecycleTests.cs index 80ef390..0892daf 100644 --- a/Unity/Assets/Power/Tests/PlayMode/StudioLifecycleTests.cs +++ b/Unity/Assets/Power/Tests/PlayMode/StudioLifecycleTests.cs @@ -195,6 +195,12 @@ public IEnumerator FiredPumpShowsPowerPortsAndReplays() [UnityTest] public IEnumerator FuelFilmImportsAndReplays() => PumpAssemblyReplay("FilmFiredCylinder", "Liquid fuel film 16"); + [UnityTest] + public IEnumerator EquilibriumFuelCellImportsAndReplays() => PumpAssemblyReplay("EquilibriumFuelCell", "Liquid fuel film 10"); + + [UnityTest] + public IEnumerator EquilibriumInjectedCylinderImportsAndReplays() => PumpAssemblyReplay("EquilibriumInjectedCylinder", "Liquid fuel film 16"); + [UnityTest] public IEnumerator LiquidInjectionImportsAndReplays() => PumpAssemblyReplay("LiquidInjectedCylinder", "Liquid fuel film 16"); @@ -234,6 +240,48 @@ public IEnumerator FiredPumpShowsPowerPortsAndReplays() [UnityTest] public IEnumerator FiredHydraulicRavigneauxImportsAndReplays() => PumpAssemblyReplay("FiredHydraulicRavigneaux", "Piston actuator 21"); + [UnityTest] + public IEnumerator ControlledATImportsAndReplays() => PumpAssemblyReplay("ControlledHydraulicRavigneaux", "AT feedback controller 1400"); + + [UnityTest] + public IEnumerator ControlledFiredATImportsAndReplays() => PumpAssemblyReplay("ControlledFiredHydraulicRavigneaux", "AT feedback controller 1400"); + + [UnityTest] + public IEnumerator PumpFedFuelImportsAndReplays() => PumpAssemblyReplay("PumpFedLiquidCylinder", "Liquid rail feed 1511"); + + [UnityTest] + public IEnumerator PumpFedNeedleImportsAndReplays() => PumpAssemblyReplay("PumpFedNeedleCylinder", "Liquid rail feed 1511"); + + [UnityTest] + public IEnumerator FiniteTankFuelImportsAndReplays() => PumpAssemblyReplay("FiniteTankLiquidCylinder", "Liquid fuel tank 1513"); + + [UnityTest] + public IEnumerator EquilibriumTankSupplyImportsAndReplays() => PumpAssemblyReplay("EquilibriumTankSupply", "Liquid fuel tank 22"); + + [UnityTest] + public IEnumerator EquilibriumTankEngineImportsAndReplays() => PumpAssemblyReplay("EquilibriumTankFiredCylinder", "Liquid fuel tank 1513"); + + [UnityTest] + public IEnumerator EquilibriumFuelPumpImportsAndReplays() => PumpAssemblyReplay("EquilibriumFuelPump", "Fuel chamber 12"); + + [UnityTest] + public IEnumerator ElectricEquilibriumFuelPumpImportsAndReplays() => PumpAssemblyReplay("ElectricEquilibriumFuelPump", "Fuel chamber 12"); + + [UnityTest] + public IEnumerator EquilibriumFuelNetworkImportsAndReplays() => PumpAssemblyReplay("EquilibriumFuelNetwork", "Fuel vessel 1"); + + [UnityTest] + public IEnumerator ElectrothermalFuelNetworkImportsAndReplays() => PumpAssemblyReplay("ElectrothermalFuelNetwork", "Fuel vessel 1001"); + + [UnityTest] + public IEnumerator FiniteTankNeedleImportsAndReplays() => PumpAssemblyReplay("FiniteTankNeedleCylinder", "Liquid fuel tank 1513"); + + [UnityTest] + public IEnumerator RecirculatingFuelImportsAndReplays() => PumpAssemblyReplay("RecirculatingLiquidCylinder", "Liquid rail return 1515"); + + [UnityTest] + public IEnumerator RecirculatingNeedleImportsAndReplays() => PumpAssemblyReplay("RecirculatingNeedleCylinder", "Liquid rail return 1515"); + private IEnumerator PumpAssemblyReplay(string resource, string pumpName) { _host = new GameObject(resource + " test"); diff --git a/assets/labs/catalog.json b/assets/labs/catalog.json new file mode 100644 index 0000000..ef26d70 --- /dev/null +++ b/assets/labs/catalog.json @@ -0,0 +1,413 @@ +{ + "schema": "power.laboratory_catalog.v1", + "laboratories": [ + { + "name": "electrothermal", + "asset_name": "Electrothermal", + "display_name": "Electrothermal laboratory", + "agent_example": true + }, + { + "name": "thermal-network", + "asset_name": "ThermalNetwork", + "display_name": "Thermal exchange laboratory", + "agent_example": false + }, + { + "name": "sealed-cylinder", + "asset_name": "SealedCylinder", + "display_name": "Sealed cylinder laboratory", + "agent_example": true + }, + { + "name": "gas-network", + "asset_name": "GasNetwork", + "display_name": "Gas exchange laboratory", + "agent_example": true + }, + { + "name": "moving-cylinder", + "asset_name": "MovingCylinder", + "display_name": "Moving cylinder laboratory", + "agent_example": true + }, + { + "name": "crank-timed-cylinder", + "asset_name": "CrankTimedCylinder", + "display_name": "Crank-timed cylinder laboratory", + "agent_example": true + }, + { + "name": "fired-cylinder", + "asset_name": "FiredCylinder", + "display_name": "Premixed fired cylinder laboratory", + "agent_example": true + }, + { + "name": "fired-clutch", + "asset_name": "FiredClutch", + "display_name": "Fired clutch laboratory", + "agent_example": true + }, + { + "name": "fired-pump", + "asset_name": "FiredPump", + "display_name": "Fired pump transmission laboratory", + "agent_example": true + }, + { + "name": "fired-pump-losses", + "asset_name": "FiredPumpLosses", + "display_name": "Fired transmission with pump losses", + "agent_example": true + }, + { + "name": "electric-pump", + "asset_name": "ElectricPump", + "display_name": "Electric pump and pressure clutch laboratory", + "agent_example": true + }, + { + "name": "pressure-regulated-pump", + "asset_name": "PressureRegulatedPump", + "display_name": "Pressure-regulated electric pump laboratory", + "agent_example": true + }, + { + "name": "battery-regulated-pump", + "asset_name": "BatteryRegulatedPump", + "display_name": "Battery-fed regulated pump laboratory", + "agent_example": true + }, + { + "name": "piston-actuated-clutch", + "asset_name": "PistonActuatedClutch", + "display_name": "Dynamic piston clutch laboratory", + "agent_example": true + }, + { + "name": "spool-regulated-pump", + "asset_name": "SpoolRegulatedPump", + "display_name": "Mechanical spool regulator laboratory", + "agent_example": true + }, + { + "name": "gas-accumulator-pump", + "asset_name": "GasAccumulatorPump", + "display_name": "Gas accumulator pump laboratory", + "agent_example": true + }, + { + "name": "metered-fired-cylinder", + "asset_name": "MeteredFiredCylinder", + "display_name": "Metered fuel fired cylinder laboratory", + "agent_example": true + }, + { + "name": "film-fired-cylinder", + "asset_name": "FilmFiredCylinder", + "display_name": "Finite liquid film fired cylinder laboratory", + "agent_example": true + }, + { + "name": "liquid-injected-cylinder", + "asset_name": "LiquidInjectedCylinder", + "display_name": "Liquid injection and evaporation laboratory", + "agent_example": true + }, + { + "name": "needle-actuated-cylinder", + "asset_name": "NeedleActuatedCylinder", + "display_name": "Electromagnetic needle fired cylinder laboratory", + "agent_example": true + }, + { + "name": "closure-compensated-cylinder", + "asset_name": "ClosureCompensatedCylinder", + "display_name": "Predictive needle closing laboratory", + "agent_example": true + }, + { + "name": "dual-clutch-transmission", + "asset_name": "DualClutchTransmission", + "display_name": "Seven-speed dual-clutch laboratory", + "agent_example": true + }, + { + "name": "fired-dual-clutch", + "asset_name": "FiredDualClutch", + "display_name": "Fired dual-clutch powertrain laboratory", + "agent_example": true + }, + { + "name": "vented-tank-liquid-cylinder", + "asset_name": "VentedTankLiquidCylinder", + "display_name": "Vented finite tank engine laboratory", + "agent_example": true + }, + { + "name": "vented-tank-needle-cylinder", + "asset_name": "VentedTankNeedleCylinder", + "display_name": "Vented finite tank needle laboratory", + "agent_example": true + }, + { + "name": "recirculating-liquid-cylinder", + "asset_name": "RecirculatingLiquidCylinder", + "display_name": "Recirculating fuel engine laboratory", + "agent_example": true + }, + { + "name": "recirculating-needle-cylinder", + "asset_name": "RecirculatingNeedleCylinder", + "display_name": "Recirculating needle engine laboratory", + "agent_example": true + }, + { + "name": "finite-tank-liquid-cylinder", + "asset_name": "FiniteTankLiquidCylinder", + "display_name": "Finite tank liquid engine laboratory", + "agent_example": true + }, + { + "name": "finite-tank-needle-cylinder", + "asset_name": "FiniteTankNeedleCylinder", + "display_name": "Finite tank needle engine laboratory", + "agent_example": true + }, + { + "name": "pump-fed-liquid-cylinder", + "asset_name": "PumpFedLiquidCylinder", + "display_name": "Pump-fed liquid rail engine laboratory", + "agent_example": true + }, + { + "name": "pump-fed-needle-cylinder", + "asset_name": "PumpFedNeedleCylinder", + "display_name": "Pump-fed needle engine laboratory", + "agent_example": true + }, + { + "name": "controlled-hydraulic-ravigneaux", + "asset_name": "ControlledHydraulicRavigneaux", + "display_name": "Feedback controlled hydraulic AT laboratory", + "agent_example": true + }, + { + "name": "controlled-fired-hydraulic-ravigneaux", + "asset_name": "ControlledFiredHydraulicRavigneaux", + "display_name": "Feedback controlled fired hydraulic AT laboratory", + "agent_example": true + }, + { + "name": "hydraulic-ravigneaux-transmission", + "asset_name": "HydraulicRavigneauxTransmission", + "display_name": "Hydraulic Ravigneaux actuation laboratory", + "agent_example": true + }, + { + "name": "fired-hydraulic-ravigneaux", + "asset_name": "FiredHydraulicRavigneaux", + "display_name": "Fired hydraulic Ravigneaux laboratory", + "agent_example": true + }, + { + "name": "resolved-ravigneaux-transmission", + "asset_name": "ResolvedRavigneauxTransmission", + "display_name": "Resolved planet transmission laboratory", + "agent_example": true + }, + { + "name": "fired-resolved-ravigneaux-converter", + "asset_name": "FiredResolvedRavigneauxConverter", + "display_name": "Fired resolved planet laboratory", + "agent_example": true + }, + { + "name": "ravigneaux-transmission", + "asset_name": "RavigneauxTransmission", + "display_name": "Ravigneaux transmission laboratory", + "agent_example": true + }, + { + "name": "fired-ravigneaux-converter", + "asset_name": "FiredRavigneauxConverter", + "display_name": "Fired Ravigneaux converter laboratory", + "agent_example": true + }, + { + "name": "controlled-dual-clutch", + "asset_name": "ControlledDualClutch", + "display_name": "Sampled DCT controller laboratory", + "agent_example": true + }, + { + "name": "controlled-fired-dual-clutch", + "asset_name": "ControlledFiredDualClutch", + "display_name": "Controlled fired DCT laboratory", + "agent_example": true + }, + { + "name": "fired-hydraulic", + "asset_name": "FiredHydraulic", + "display_name": "Fired hydraulic transmission laboratory", + "agent_example": true + }, + { + "name": "fired-converter", + "asset_name": "FiredConverter", + "display_name": "Fired torque converter laboratory", + "agent_example": true + }, + { + "name": "fired-planetary", + "asset_name": "FiredPlanetary", + "display_name": "Fired planetary transmission laboratory", + "agent_example": true + }, + { + "name": "equilibrium-fuel-cell", + "asset_name": "EquilibriumFuelCell", + "display_name": "Reversible fuel phase equilibrium laboratory", + "agent_example": true + }, + { + "name": "equilibrium-injected-cylinder", + "asset_name": "EquilibriumInjectedCylinder", + "display_name": "Equilibrium fuel injection engine laboratory", + "agent_example": true + }, + { + "name": "equilibrium-tank-supply", + "asset_name": "EquilibriumTankSupply", + "display_name": "Finite-volume equilibrium tank supply laboratory", + "agent_example": true + }, + { + "name": "equilibrium-tank-fired-cylinder", + "asset_name": "EquilibriumTankFiredCylinder", + "display_name": "Finite-volume equilibrium tank engine laboratory", + "agent_example": true + }, + { + "name": "equilibrium-fuel-network", + "asset_name": "EquilibriumFuelNetwork", + "display_name": "Equilibrium fuel network laboratory", + "agent_example": true + }, + { + "name": "electrothermal-fuel-network", + "asset_name": "ElectrothermalFuelNetwork", + "display_name": "Electrothermal fuel network laboratory", + "agent_example": true + }, + { + "name": "equilibrium-fuel-pump", + "asset_name": "EquilibriumFuelPump", + "display_name": "Equilibrium fuel pump laboratory", + "agent_example": true + }, + { + "name": "electric-equilibrium-fuel-pump", + "asset_name": "ElectricEquilibriumFuelPump", + "display_name": "Electric equilibrium fuel pump laboratory", + "agent_example": true + }, + { + "name": "finite-volume-fuel-discharge", + "asset_name": "FiniteVolumeFuelDischarge", + "display_name": "Finite-volume fuel discharge laboratory", + "agent_example": true + }, + { + "name": "pump-fed-finite-volume-cylinder", + "asset_name": "PumpFedFiniteVolumeCylinder", + "display_name": "Pump-fed finite-volume cylinder laboratory", + "agent_example": true + }, + { + "name": "inertial-fuel-line", + "asset_name": "InertialFuelLine", + "display_name": "Inertial liquid fuel line laboratory", + "agent_example": true + }, + { + "name": "inertial-pump-fed-cylinder", + "asset_name": "InertialPumpFedCylinder", + "display_name": "Inertial inlet pump-fed cylinder laboratory", + "agent_example": true + }, + { + "name": "equilibrium-fuel-condensing-duct", + "asset_name": "EquilibriumFuelCondensingDuct", + "display_name": "Equilibrium fuel condensing duct laboratory", + "agent_example": true + }, + { + "name": "equilibrium-fuel-flashing-duct", + "asset_name": "EquilibriumFuelFlashingDuct", + "display_name": "Equilibrium fuel flashing duct laboratory", + "agent_example": true + }, + { + "name": "compressible-fuel-chamber-duct", + "asset_name": "CompressibleFuelChamberDuct", + "display_name": "Shaft-driven compressible fuel duct laboratory", + "agent_example": true + }, + { + "name": "electric-compressible-fuel-duct", + "asset_name": "ElectricCompressibleFuelDuct", + "display_name": "Electric compressible fuel duct laboratory", + "agent_example": true + }, + { + "name": "compressible-fuel-nozzle", + "asset_name": "CompressibleFuelNozzle", + "display_name": "Frozen compressible fuel nozzle laboratory", + "agent_example": true + }, + { + "name": "compressible-pump-needle", + "asset_name": "CompressiblePumpNeedle", + "display_name": "Compressible pump and physical needle laboratory", + "agent_example": true + }, + { + "name": "equilibrium-flashing-nozzle", + "asset_name": "EquilibriumFlashingNozzle", + "display_name": "Equilibrium flashing nozzle laboratory", + "agent_example": true + }, + { + "name": "equilibrium-pump-needle", + "asset_name": "EquilibriumPumpNeedle", + "display_name": "Equilibrium pump and physical needle laboratory", + "agent_example": true + }, + { + "name": "relaxing-fuel-evaporation", + "asset_name": "RelaxingFuelEvaporation", + "display_name": "Finite-rate isolated fuel evaporation laboratory", + "agent_example": true + }, + { + "name": "relaxing-fuel-duct", + "asset_name": "RelaxingFuelDuct", + "display_name": "Finite-rate phase-relaxing fuel duct laboratory", + "agent_example": true + }, + { + "name": "relaxing-fuel-chamber", + "asset_name": "RelaxingFuelChamber", + "display_name": "Finite-rate shaft-driven fuel chamber laboratory", + "agent_example": true + }, + { + "name": "relaxing-pump-needle", + "asset_name": "RelaxingPumpNeedle", + "display_name": "Finite-rate fuel pump and physical needle laboratory", + "agent_example": true + } + ] +} diff --git a/assets/labs/compressible-fuel-chamber-duct.power.json b/assets/labs/compressible-fuel-chamber-duct.power.json new file mode 100644 index 0000000..de51649 --- /dev/null +++ b/assets/labs/compressible-fuel-chamber-duct.power.json @@ -0,0 +1,551 @@ +{ + "schema": "power.model.v1", + "description": "Unverified shaft-driven compressible homogeneous-equilibrium chamber coupled to a finite-volume fuel duct. Reversible pressure work shares the mechanical solve; conservative mass, momentum and energy transport has first-order numerical diffusion. Zero case pressure and massless chamber geometry; no directional valve, nozzle, phase slip or measured calibration.", + "step_ns": 1000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1.1224174381096273e-07, + "unit": "m3" + }, + "position": { + "value": 8.419253203260314e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.7501, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 5000, + "unit": "rad_s" + }, + "position": { + "value": 0.5, + "unit": "rad" + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 20, + "kind": "torque_source", + "node_a": 4, + "input_channel": 200, + "initial_input": { + "value": 0, + "unit": "nm" + } + } + ], + "experiment": { + "duration_ns": 100000, + "sample_every_ns": 10000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1, + "field": "vapor_mass_fraction", + "min": 1e-08, + "max": 1 + }, + { + "object_id": 12, + "field": "hydraulic_work", + "max": 0 + } + ] + } +} diff --git a/assets/labs/compressible-fuel-nozzle.power.json b/assets/labs/compressible-fuel-nozzle.power.json new file mode 100644 index 0000000..dcff377 --- /dev/null +++ b/assets/labs/compressible-fuel-nozzle.power.json @@ -0,0 +1,218 @@ +{ + "schema": "power.model.v1", + "description": "Unverified frozen-quality isentropic compressible fuel nozzle between finite equilibrium reservoirs. Liquid cold work, ideal vapor, frozen sonic choking and finite-wall jet thermalization share explicit energy and entropy checks. Phase conversion is suppressed only during transit; no calibrated spray, finite-rate nucleation or measured nozzle geometry.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1e-05, + "unit": "m3" + }, + "position": { + "value": 1.3937282229965156e-05, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 1, + "unit": "m3" + }, + "position": { + "value": 0.6968641114982579, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "compressible_fuel_nozzle", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 1e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + } + }, + "input_channel": 100 + } + ], + "experiment": { + "duration_ns": 1000000, + "sample_every_ns": 100000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 10, + "field": "choked", + "min": 1, + "max": 1 + } + ] + } +} diff --git a/assets/labs/compressible-pump-needle.power.json b/assets/labs/compressible-pump-needle.power.json new file mode 100644 index 0000000..24832e3 --- /dev/null +++ b/assets/labs/compressible-pump-needle.power.json @@ -0,0 +1,825 @@ +{ + "schema": "power.model.v1", + "description": "Unverified frozen-quality isentropic compressible fuel nozzle between finite equilibrium reservoirs. Liquid cold work, ideal vapor, frozen sonic choking and finite-wall jet thermalization share explicit energy and entropy checks. Phase conversion is suppressed only during transit; no calibrated spray, finite-rate nucleation or measured nozzle geometry. A finite supply and resolved duct feed a shaft-driven chamber through a one-way inlet; its outlet is metered by an actual solenoid, spring and elastic-stop needle. Shaft inertia and electrical work remain explicit.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1.1224174381096273e-07, + "unit": "m3" + }, + "position": { + "value": 8.419253203260314e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 1e-06, + "unit": "m3" + }, + "position": { + "value": 0.00075015, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 500, + "unit": "rad_s" + }, + "position": { + "value": 0.5, + "unit": "rad" + } + }, + { + "id": 5, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.75015, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 6, + "domain": "compressible_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.075025, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 7, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0.001, + "unit": "m" + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 5, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 20, + "kind": "compressible_fuel_nozzle", + "node_a": 2, + "node_b": 1, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 4e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + } + } + }, + { + "id": 21, + "kind": "compressible_fuel_nozzle", + "node_a": 1, + "node_b": 6, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + }, + "needle_node": 7, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.001, + "unit": "m" + } + }, + "input_channel": 210 + }, + { + "id": 30, + "kind": "linear_spring", + "node_a": 7, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 1000, + "unit": "n_m" + }, + "damping": { + "value": 0.2, + "unit": "n_s_m" + }, + "rest_angle": { + "value": 0, + "unit": "m" + }, + "ratio": 1 + } + }, + { + "id": 31, + "kind": "solenoid", + "node_a": 7, + "heat_node": 3, + "input_channel": 220, + "initial_input": { + "value": 2, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 2, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "inductance_gradient": { + "value": 4, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 1, + "unit": "a" + } + } + }, + { + "id": 32, + "kind": "travel_stop", + "node_a": 7, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.001, + "unit": "m" + }, + "stiffness": { + "value": 10000, + "unit": "n_m" + } + } + } + ], + "experiment": { + "duration_ns": 20000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 20, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 21, + "field": "total_fuel_delivered", + "min": 1e-12 + } + ] + } +} diff --git a/assets/labs/controlled-fired-hydraulic-ravigneaux.power.json b/assets/labs/controlled-fired-hydraulic-ravigneaux.power.json new file mode 100644 index 0000000..264d777 --- /dev/null +++ b/assets/labs/controlled-fired-hydraulic-ravigneaux.power.json @@ -0,0 +1,1851 @@ +{ + "schema": "power.model.v1", + "description": "Research Ravigneaux train with sampled AT range feedback, bounded pressure PI and actual piston/pressure/lock sensing. The controller owns fill/drain valves, vents before conflicting ranges and reports direction, supply, release, apply and confirmed-lock faults. Optional converter lockup uses declared speed hysteresis and pressure feedback. Research Ravigneaux train with resolved planet spin/orbit and a shared shaft-driven hydraulic supply. Each range clutch/brake, plus converter lockup when present, has a compliant oil chamber, moving piston, return spring/damping, elastic stroke stops and contact-derived friction capacity. Explicit fill/drain valves, pump leakage/drag and relief track pressure energy, swept volume, hydraulic work and heat. Prescribed valve schedules are not complete AT control. Tank gauge pressure is zero; parameters, maps and OEM applicability remain unverified. Planet geometry: three synchronous pairs; ring pitch radius 0.1 m; per inner/outer mass 0.3/1 kg and spin inertia 0.000015/0.0005 kg m2; carrier structure 0.03 kg m2 plus orbital inertia 0.0184375 kg m2. Piston front/back areas 0.001/0 m2, nominal stroke 0..0.006 m and contact at 0.002 m are declared research inputs.", + "step_ns": 20000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 1000, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + }, + { + "id": 8, + "domain": "rotational", + "storage": { + "value": 0.08, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 100, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 101, + "domain": "rotational", + "storage": { + "value": 0.015, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 102, + "domain": "rotational", + "storage": { + "value": 0.04, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 103, + "domain": "rotational", + "storage": { + "value": 0.0484375, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 104, + "domain": "rotational", + "storage": { + "value": 4.5e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 105, + "domain": "rotational", + "storage": { + "value": 0.0015, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1100, + "domain": "hydraulic", + "storage": { + "value": 2e-11, + "unit": "m3_pa" + }, + "initial": { + "value": 1000000.0, + "unit": "pa" + } + }, + { + "id": 1110, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1120, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1111, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1121, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1112, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1122, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1113, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1123, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1114, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1124, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1115, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1125, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0.04, + "fresh_air": 0.96 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 4, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 20, + "kind": "torque_converter", + "node_a": 1, + "node_b": 8, + "heat_node": 5, + "parameters": { + "pump_positive": [ + { + "speed_ratio": -1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.008, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0, + "torque_ratio": 2, + "capacity_coefficient": { + "value": 0.004, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0.5, + "torque_ratio": 1.5, + "capacity_coefficient": { + "value": 0.002, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0.85, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.0006, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0, + "unit": "nm_s2_rad2" + } + } + ], + "pump_negative": [ + { + "speed_ratio": -1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.008, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0, + "torque_ratio": 2, + "capacity_coefficient": { + "value": 0.004, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0.5, + "torque_ratio": 1.5, + "capacity_coefficient": { + "value": 0.002, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0.85, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.0006, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0, + "unit": "nm_s2_rad2" + } + } + ], + "turbine_positive": [ + { + "speed_ratio": -1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.008, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.004, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0, + "unit": "nm_s2_rad2" + } + } + ], + "turbine_negative": [ + { + "speed_ratio": -1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.008, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 0, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0.004, + "unit": "nm_s2_rad2" + } + }, + { + "speed_ratio": 1, + "torque_ratio": 1, + "capacity_coefficient": { + "value": 0, + "unit": "nm_s2_rad2" + } + } + ] + } + }, + { + "id": 200, + "kind": "carrier_gear", + "node_a": 100, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": -0.5 + } + }, + { + "id": 201, + "kind": "carrier_gear", + "node_a": 101, + "node_b": 104, + "node_c": 103, + "parameters": { + "ratio": -0.25000000000000006 + } + }, + { + "id": 202, + "kind": "ideal_gear", + "node_a": 102, + "node_b": 4, + "parameters": { + "ratio": 4 + } + }, + { + "id": 203, + "kind": "carrier_gear", + "node_a": 102, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": 0.25 + } + }, + { + "id": 204, + "kind": "carrier_gear", + "node_a": 104, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": -2.9999999999999996 + } + }, + { + "id": 1200, + "kind": "hydraulic_pump", + "node_a": 1, + "node_b": 1100, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-06, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1201, + "kind": "hydraulic_resistance", + "node_a": 1100, + "heat_node": 5, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 1e-12, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1202, + "kind": "shaft", + "node_a": 1, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 0, + "unit": "nm_rad" + }, + "damping": { + "value": 0.02, + "unit": "nm_s_rad" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 1203, + "kind": "hydraulic_relief", + "node_a": 1100, + "heat_node": 5, + "parameters": { + "coefficient": { + "value": 5e-10, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1210, + "kind": "hydraulic_piston", + "node_a": 1120, + "node_b": 1110, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1220, + "kind": "linear_spring", + "node_a": 1120, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 300, + "kind": "piston_clutch", + "node_a": 8, + "node_b": 103, + "heat_node": 5, + "parameters": { + "piston_component": 1210, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1230, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1110, + "heat_node": 5, + "input_channel": 700, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1240, + "kind": "hydraulic_resistance", + "node_a": 1110, + "heat_node": 5, + "input_channel": 701, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1211, + "kind": "hydraulic_piston", + "node_a": 1121, + "node_b": 1111, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1221, + "kind": "linear_spring", + "node_a": 1121, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 301, + "kind": "piston_clutch", + "node_a": 8, + "node_b": 101, + "heat_node": 5, + "parameters": { + "piston_component": 1211, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1231, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1111, + "heat_node": 5, + "input_channel": 702, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1241, + "kind": "hydraulic_resistance", + "node_a": 1111, + "heat_node": 5, + "input_channel": 703, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1212, + "kind": "hydraulic_piston", + "node_a": 1122, + "node_b": 1112, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1222, + "kind": "linear_spring", + "node_a": 1122, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 302, + "kind": "piston_clutch", + "node_a": 8, + "node_b": 100, + "heat_node": 5, + "parameters": { + "piston_component": 1212, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1232, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1112, + "heat_node": 5, + "input_channel": 704, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1242, + "kind": "hydraulic_resistance", + "node_a": 1112, + "heat_node": 5, + "input_channel": 705, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1213, + "kind": "hydraulic_piston", + "node_a": 1123, + "node_b": 1113, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1223, + "kind": "linear_spring", + "node_a": 1123, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 303, + "kind": "piston_clutch", + "node_a": 103, + "node_b": 0, + "heat_node": 5, + "parameters": { + "piston_component": 1213, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1233, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1113, + "heat_node": 5, + "input_channel": 706, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1243, + "kind": "hydraulic_resistance", + "node_a": 1113, + "heat_node": 5, + "input_channel": 707, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1214, + "kind": "hydraulic_piston", + "node_a": 1124, + "node_b": 1114, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1224, + "kind": "linear_spring", + "node_a": 1124, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 304, + "kind": "piston_clutch", + "node_a": 100, + "node_b": 0, + "heat_node": 5, + "parameters": { + "piston_component": 1214, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1234, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1114, + "heat_node": 5, + "input_channel": 708, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1244, + "kind": "hydraulic_resistance", + "node_a": 1114, + "heat_node": 5, + "input_channel": 709, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1215, + "kind": "hydraulic_piston", + "node_a": 1125, + "node_b": 1115, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1225, + "kind": "linear_spring", + "node_a": 1125, + "heat_node": 5, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 21, + "kind": "piston_clutch", + "node_a": 1, + "node_b": 8, + "heat_node": 5, + "parameters": { + "piston_component": 1215, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1235, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1115, + "heat_node": 5, + "input_channel": 710, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1245, + "kind": "hydraulic_resistance", + "node_a": 1115, + "heat_node": 5, + "input_channel": 711, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1400, + "kind": "at_controller", + "node_a": 8, + "input_channel": 900, + "initial_input": { + "value": 1, + "unit": "state_code" + }, + "parameters": { + "vehicle_node": 4, + "ring_node": 102, + "supply_pressure_node": 1100, + "routes": [ + { + "clutch": 300, + "fill_valve": 1230, + "drain_valve": 1240 + }, + { + "clutch": 301, + "fill_valve": 1231, + "drain_valve": 1241 + }, + { + "clutch": 302, + "fill_valve": 1232, + "drain_valve": 1242 + }, + { + "clutch": 303, + "fill_valve": 1233, + "drain_valve": 1243 + }, + { + "clutch": 304, + "fill_valve": 1234, + "drain_valve": 1244 + }, + { + "clutch": 21, + "fill_valve": 1235, + "drain_valve": 1245 + } + ], + "sample_period_ns": 1000000, + "release_timeout_ns": 500000000, + "apply_timeout_ns": 800000000, + "low_supply_timeout_ns": 50000000, + "lockup_dwell_ns": 50000000, + "apply_pressure": { + "value": 900000, + "unit": "pa" + }, + "pressure_tolerance": { + "value": 100000, + "unit": "pa" + }, + "minimum_supply_pressure": { + "value": 200000, + "unit": "pa" + }, + "release_force": { + "value": 1, + "unit": "n" + }, + "minimum_apply_force": { + "value": 200, + "unit": "n" + }, + "proportional_gain": { + "value": 2e-06, + "unit": "fraction_pa" + }, + "integral_gain": { + "value": 2e-05, + "unit": "fraction_pa_s" + }, + "synchronize_tolerance": { + "value": 1e-05, + "unit": "rad_s" + }, + "direction_speed_limit": { + "value": 0.1, + "unit": "rad_s" + }, + "lockup_speed_limit": { + "value": 30, + "unit": "rad_s" + }, + "unlock_speed_limit": { + "value": 50, + "unit": "rad_s" + }, + "minimum_lockup_input_speed": { + "value": 20, + "unit": "rad_s" + }, + "minimum_lockup_forward_range": 2 + } + } + ], + "experiment": { + "duration_ns": 2200000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 500000000, + "values": [ + { + "channel": 900, + "value": 2 + } + ] + }, + { + "time_ns": 1000000000, + "values": [ + { + "channel": 900, + "value": 3 + } + ] + }, + { + "time_ns": 1500000000, + "values": [ + { + "channel": 900, + "value": 4 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 200, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 200, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 201, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 201, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 202, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 202, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 4, + "field": "speed", + "min": 0.1, + "max": 300 + }, + { + "object_id": 20, + "field": "fluid_heat", + "min": 1, + "max": 5000 + }, + { + "object_id": 21, + "field": "friction_heat", + "min": 1, + "max": 5000 + }, + { + "object_id": 203, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 203, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 204, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 204, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1100, + "field": "pressure", + "min": 0, + "max": 3000000.0 + }, + { + "object_id": 1400, + "field": "control_fault", + "min": 0, + "max": 0 + }, + { + "object_id": 1400, + "field": "actual_gear", + "min": 4, + "max": 4 + } + ] + } +} diff --git a/assets/labs/controlled-hydraulic-ravigneaux.power.json b/assets/labs/controlled-hydraulic-ravigneaux.power.json new file mode 100644 index 0000000..0f3a43d --- /dev/null +++ b/assets/labs/controlled-hydraulic-ravigneaux.power.json @@ -0,0 +1,1296 @@ +{ + "schema": "power.model.v1", + "description": "Research Ravigneaux train with sampled AT range feedback, bounded pressure PI and actual piston/pressure/lock sensing. The controller owns fill/drain valves, vents before conflicting ranges and reports direction, supply, release, apply and confirmed-lock faults. Optional converter lockup uses declared speed hysteresis and pressure feedback. Research Ravigneaux train with resolved planet spin/orbit and a shared shaft-driven hydraulic supply. Each range clutch/brake, plus converter lockup when present, has a compliant oil chamber, moving piston, return spring/damping, elastic stroke stops and contact-derived friction capacity. Explicit fill/drain valves, pump leakage/drag and relief track pressure energy, swept volume, hydraulic work and heat. Prescribed valve schedules are not complete AT control. Tank gauge pressure is zero; parameters, maps and OEM applicability remain unverified. Planet geometry: three synchronous pairs; ring pitch radius 0.1 m; per inner/outer mass 0.3/1 kg and spin inertia 0.000015/0.0005 kg m2; carrier structure 0.03 kg m2 plus orbital inertia 0.0184375 kg m2. Piston front/back areas 0.001/0 m2, nominal stroke 0..0.006 m and contact at 0.002 m are declared research inputs.", + "step_ns": 20000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 60, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 10, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1000, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + }, + { + "id": 100, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 101, + "domain": "rotational", + "storage": { + "value": 0.015, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 102, + "domain": "rotational", + "storage": { + "value": 0.04, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 103, + "domain": "rotational", + "storage": { + "value": 0.0484375, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 104, + "domain": "rotational", + "storage": { + "value": 4.5e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 105, + "domain": "rotational", + "storage": { + "value": 0.0015, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1100, + "domain": "hydraulic", + "storage": { + "value": 2e-11, + "unit": "m3_pa" + }, + "initial": { + "value": 1000000.0, + "unit": "pa" + } + }, + { + "id": 1110, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1120, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1111, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1121, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1112, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1122, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1113, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1123, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1114, + "domain": "hydraulic", + "storage": { + "value": 2e-12, + "unit": "m3_pa" + }, + "initial": { + "value": 0, + "unit": "pa" + } + }, + { + "id": 1124, + "domain": "translational", + "storage": { + "value": 0.02, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + } + ], + "components": [ + { + "id": 200, + "kind": "carrier_gear", + "node_a": 100, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": -0.5 + } + }, + { + "id": 201, + "kind": "carrier_gear", + "node_a": 101, + "node_b": 104, + "node_c": 103, + "parameters": { + "ratio": -0.25000000000000006 + } + }, + { + "id": 202, + "kind": "ideal_gear", + "node_a": 102, + "node_b": 4, + "parameters": { + "ratio": 4 + } + }, + { + "id": 10, + "kind": "torque_source", + "node_a": 1, + "input_channel": 500, + "initial_input": { + "value": 20, + "unit": "nm" + } + }, + { + "id": 11, + "kind": "torque_source", + "node_a": 4, + "input_channel": 501, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 203, + "kind": "carrier_gear", + "node_a": 102, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": 0.25 + } + }, + { + "id": 204, + "kind": "carrier_gear", + "node_a": 104, + "node_b": 105, + "node_c": 103, + "parameters": { + "ratio": -2.9999999999999996 + } + }, + { + "id": 1200, + "kind": "hydraulic_pump", + "node_a": 1, + "node_b": 1100, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-06, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1201, + "kind": "hydraulic_resistance", + "node_a": 1100, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 1e-12, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1202, + "kind": "shaft", + "node_a": 1, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 0, + "unit": "nm_rad" + }, + "damping": { + "value": 0.02, + "unit": "nm_s_rad" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 1203, + "kind": "hydraulic_relief", + "node_a": 1100, + "heat_node": 3, + "parameters": { + "coefficient": { + "value": 5e-10, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1210, + "kind": "hydraulic_piston", + "node_a": 1120, + "node_b": 1110, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1220, + "kind": "linear_spring", + "node_a": 1120, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 300, + "kind": "piston_clutch", + "node_a": 1, + "node_b": 103, + "heat_node": 3, + "parameters": { + "piston_component": 1210, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1230, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1110, + "heat_node": 3, + "input_channel": 700, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1240, + "kind": "hydraulic_resistance", + "node_a": 1110, + "heat_node": 3, + "input_channel": 701, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1211, + "kind": "hydraulic_piston", + "node_a": 1121, + "node_b": 1111, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1221, + "kind": "linear_spring", + "node_a": 1121, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 301, + "kind": "piston_clutch", + "node_a": 1, + "node_b": 101, + "heat_node": 3, + "parameters": { + "piston_component": 1211, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1231, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1111, + "heat_node": 3, + "input_channel": 702, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1241, + "kind": "hydraulic_resistance", + "node_a": 1111, + "heat_node": 3, + "input_channel": 703, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1212, + "kind": "hydraulic_piston", + "node_a": 1122, + "node_b": 1112, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1222, + "kind": "linear_spring", + "node_a": 1122, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 302, + "kind": "piston_clutch", + "node_a": 1, + "node_b": 100, + "heat_node": 3, + "parameters": { + "piston_component": 1212, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1232, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1112, + "heat_node": 3, + "input_channel": 704, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1242, + "kind": "hydraulic_resistance", + "node_a": 1112, + "heat_node": 3, + "input_channel": 705, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1213, + "kind": "hydraulic_piston", + "node_a": 1123, + "node_b": 1113, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1223, + "kind": "linear_spring", + "node_a": 1123, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 303, + "kind": "piston_clutch", + "node_a": 103, + "node_b": 0, + "heat_node": 3, + "parameters": { + "piston_component": 1213, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1233, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1113, + "heat_node": 3, + "input_channel": 706, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1243, + "kind": "hydraulic_resistance", + "node_a": 1113, + "heat_node": 3, + "input_channel": 707, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1214, + "kind": "hydraulic_piston", + "node_a": 1124, + "node_b": 1114, + "parameters": { + "front_area": { + "value": 0.001, + "unit": "m2" + }, + "back_area": { + "value": 0, + "unit": "m2" + }, + "back_node": 0, + "back_pressure": { + "value": 0, + "unit": "pa" + }, + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.006, + "unit": "m" + }, + "stop_stiffness": { + "value": 1000000.0, + "unit": "n_m" + }, + "contact_position": { + "value": 0.002, + "unit": "m" + }, + "contact_stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 1224, + "kind": "linear_spring", + "node_a": 1124, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 10000, + "unit": "n_m" + }, + "damping": { + "value": 300, + "unit": "n_s_m" + }, + "ratio": 1, + "rest_angle": { + "value": 0, + "unit": "m" + } + }, + "node_b": 0 + }, + { + "id": 304, + "kind": "piston_clutch", + "node_a": 100, + "node_b": 0, + "heat_node": 3, + "parameters": { + "piston_component": 1214, + "effective_radius": { + "value": 0.08, + "unit": "m" + }, + "static_friction": 0.4, + "sliding_friction": 0.2, + "friction_surfaces": 4, + "ratio": 1 + } + }, + { + "id": 1234, + "kind": "hydraulic_resistance", + "node_a": 1100, + "node_b": 1114, + "heat_node": 3, + "input_channel": 708, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1244, + "kind": "hydraulic_resistance", + "node_a": 1114, + "heat_node": 3, + "input_channel": 709, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "coefficient": { + "value": 2e-10, + "unit": "m3_s_pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1400, + "kind": "at_controller", + "node_a": 1, + "input_channel": 900, + "initial_input": { + "value": 1, + "unit": "state_code" + }, + "parameters": { + "vehicle_node": 4, + "ring_node": 102, + "supply_pressure_node": 1100, + "routes": [ + { + "clutch": 300, + "fill_valve": 1230, + "drain_valve": 1240 + }, + { + "clutch": 301, + "fill_valve": 1231, + "drain_valve": 1241 + }, + { + "clutch": 302, + "fill_valve": 1232, + "drain_valve": 1242 + }, + { + "clutch": 303, + "fill_valve": 1233, + "drain_valve": 1243 + }, + { + "clutch": 304, + "fill_valve": 1234, + "drain_valve": 1244 + } + ], + "sample_period_ns": 1000000, + "release_timeout_ns": 500000000, + "apply_timeout_ns": 800000000, + "low_supply_timeout_ns": 50000000, + "lockup_dwell_ns": 50000000, + "apply_pressure": { + "value": 900000, + "unit": "pa" + }, + "pressure_tolerance": { + "value": 100000, + "unit": "pa" + }, + "minimum_supply_pressure": { + "value": 200000, + "unit": "pa" + }, + "release_force": { + "value": 1, + "unit": "n" + }, + "minimum_apply_force": { + "value": 200, + "unit": "n" + }, + "proportional_gain": { + "value": 2e-06, + "unit": "fraction_pa" + }, + "integral_gain": { + "value": 2e-05, + "unit": "fraction_pa_s" + }, + "synchronize_tolerance": { + "value": 1e-05, + "unit": "rad_s" + }, + "direction_speed_limit": { + "value": 0.1, + "unit": "rad_s" + }, + "lockup_speed_limit": { + "value": 5, + "unit": "rad_s" + }, + "unlock_speed_limit": { + "value": 15, + "unit": "rad_s" + }, + "minimum_lockup_input_speed": { + "value": 30, + "unit": "rad_s" + }, + "minimum_lockup_forward_range": 2 + } + } + ], + "experiment": { + "duration_ns": 4500000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 600000000, + "values": [ + { + "channel": 900, + "value": 2 + } + ] + }, + { + "time_ns": 1200000000, + "values": [ + { + "channel": 900, + "value": 3 + } + ] + }, + { + "time_ns": 1800000000, + "values": [ + { + "channel": 900, + "value": 4 + } + ] + }, + { + "time_ns": 2400000000, + "values": [ + { + "channel": 900, + "value": 3 + } + ] + }, + { + "time_ns": 3000000000, + "values": [ + { + "channel": 900, + "value": 2 + } + ] + }, + { + "time_ns": 3600000000, + "values": [ + { + "channel": 900, + "value": 1 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 200, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 200, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 201, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 201, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 202, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 202, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 500 + }, + { + "object_id": 4, + "field": "speed", + "min": 1, + "max": 100 + }, + { + "object_id": 203, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 203, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 204, + "field": "slip_speed", + "abs_max": 1e-08 + }, + { + "object_id": 204, + "field": "constraint_error", + "abs_max": 1e-08 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1100, + "field": "pressure", + "min": 0, + "max": 3000000.0 + }, + { + "object_id": 1400, + "field": "control_fault", + "min": 0, + "max": 0 + }, + { + "object_id": 1400, + "field": "actual_gear", + "min": 1, + "max": 1 + } + ] + } +} diff --git a/assets/labs/electric-compressible-fuel-duct.power.json b/assets/labs/electric-compressible-fuel-duct.power.json new file mode 100644 index 0000000..02297a4 --- /dev/null +++ b/assets/labs/electric-compressible-fuel-duct.power.json @@ -0,0 +1,570 @@ +{ + "schema": "power.model.v1", + "description": "Unverified shaft-driven compressible homogeneous-equilibrium chamber coupled to a finite-volume fuel duct. Reversible pressure work shares the mechanical solve; conservative mass, momentum and energy transport has first-order numerical diffusion. Zero case pressure and massless chamber geometry; no directional valve, nozzle, phase slip or measured calibration.", + "step_ns": 1000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1.1224174381096273e-07, + "unit": "m3" + }, + "position": { + "value": 7.821724307384163e-08, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.000696864111498258, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.7421602787456446e-08, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.7421602787456446e-08, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.7421602787456446e-08, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.7421602787456446e-08, + "unit": "kg" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 1000000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 5000, + "unit": "rad_s" + }, + "position": { + "value": 0.5, + "unit": "rad" + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 20, + "kind": "dc_motor", + "node_a": 4, + "heat_node": 3, + "input_channel": 200, + "initial_input": { + "value": 60, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 1, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "coupling": { + "value": 0.02, + "unit": "nm_a" + }, + "initial_current": { + "value": 0.5, + "unit": "a" + } + } + } + ], + "experiment": { + "duration_ns": 100000, + "sample_every_ns": 10000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1, + "field": "vapor_mass_fraction", + "min": 1, + "max": 1 + }, + { + "object_id": 12, + "field": "hydraulic_work", + "max": 0 + } + ] + } +} diff --git a/assets/labs/electric-equilibrium-fuel-pump.power.json b/assets/labs/electric-equilibrium-fuel-pump.power.json new file mode 100644 index 0000000..9bf9c97 --- /dev/null +++ b/assets/labs/electric-equilibrium-fuel-pump.power.json @@ -0,0 +1,373 @@ +{ + "schema": "power.model.v1", + "description": "Unverified electric pure-fuel pump research graph. The DC motor drives a finite compliant chamber through the coupled mechanical solve; ideal inlet/outlet check valves supply separated liquid and finite heat is routed to the motor wall. All parameters are unverified.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.11250000000000002, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-10, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 2, + "domain": "fuel", + "storage": { + "value": 1e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 7.875e-05, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-14, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 3, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.001725, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 0.001, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_check_valve", + "node_a": 1, + "node_b": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 3e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 11, + "kind": "fuel_check_valve", + "node_a": 2, + "node_b": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-09, + "unit": "m3_s_pa" + } + } + }, + { + "id": 12, + "kind": "fuel_chamber", + "node_a": 4, + "node_b": 2, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 14, + "kind": "dc_motor", + "node_a": 4, + "heat_node": 5, + "input_channel": 300, + "initial_input": { + "value": 2.5, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 1, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "coupling": { + "value": 0.02, + "unit": "nm_a" + }, + "initial_current": { + "value": 0.5, + "unit": "a" + } + } + }, + { + "id": 15, + "kind": "fuel_heat_link", + "node_a": 2, + "node_b": 5, + "parameters": { + "conductance": { + "value": 0.1, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 200000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 3e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "total_fuel_delivered", + "min": 1e-05 + }, + { + "object_id": 12, + "field": "hydraulic_work", + "min": 0.001 + }, + { + "object_id": 3, + "field": "pressure", + "min": 300000.0, + "max": 1000000.0 + }, + { + "object_id": 4, + "field": "speed", + "min": 50, + "max": 150 + } + ] + } +} diff --git a/assets/labs/electrothermal-fuel-network.power.json b/assets/labs/electrothermal-fuel-network.power.json new file mode 100644 index 0000000..ac1ab20 --- /dev/null +++ b/assets/labs/electrothermal-fuel-network.power.json @@ -0,0 +1,404 @@ +{ + "schema": "power.model.v1", + "description": "Unverified electrothermal and homogeneous pure-fuel research network. A motor wall exchanges finite heat with phase-resolving fuel vessels; reverse enthalpy flow shares full mass and energy ledgers. No direct fuel-to-motor torque, injector or cavitating pump coupling is inferred. All parameters are unverified.", + "step_ns": 100000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 2, + "domain": "rotational", + "storage": { + "value": 1, + "unit": "kg_m2" + }, + "initial": { + "value": 0, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 100, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + }, + { + "id": 4, + "domain": "thermal", + "storage": { + "value": 200, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + }, + { + "id": 1001, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.0003, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 1002, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 400, + "unit": "k" + }, + "position": { + "value": 0.00065, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + } + ], + "components": [ + { + "id": 10, + "kind": "dc_motor", + "node_a": 1, + "heat_node": 3, + "input_channel": 100, + "initial_input": { + "value": 24, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 0.5, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "coupling": { + "value": 0.8, + "unit": "nm_a" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 11, + "kind": "shaft", + "node_a": 1, + "node_b": 2, + "heat_node": 4, + "parameters": { + "stiffness": { + "value": 100, + "unit": "nm_rad" + }, + "damping": { + "value": 1, + "unit": "nm_s_rad" + }, + "rest_angle": { + "value": 0, + "unit": "rad" + }, + "ratio": 3 + } + }, + { + "id": 12, + "kind": "shaft", + "node_a": 2, + "parameters": { + "stiffness": { + "value": 0, + "unit": "nm_rad" + }, + "damping": { + "value": 0.1, + "unit": "nm_s_rad" + }, + "rest_angle": { + "value": 0, + "unit": "rad" + }, + "ratio": 1 + } + }, + { + "id": 13, + "kind": "thermal_link", + "node_a": 3, + "node_b": 4, + "parameters": { + "conductance": { + "value": 5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "thermal_link", + "node_a": 4, + "parameters": { + "conductance": { + "value": 2, + "unit": "w_k" + }, + "ambient_temperature": { + "value": 300, + "unit": "k" + } + } + }, + { + "id": 1010, + "kind": "fuel_restriction", + "node_a": 1001, + "node_b": 1002, + "input_channel": 1100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-11, + "unit": "m3_s_pa" + } + } + }, + { + "id": 1011, + "kind": "fuel_heat_link", + "node_a": 1001, + "node_b": 3, + "parameters": { + "conductance": { + "value": 0.2, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 200000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 50000000, + "values": [ + { + "channel": 100, + "value": 0 + } + ] + }, + { + "time_ns": 60000000, + "values": [ + { + "channel": 1100, + "value": 0 + } + ] + }, + { + "time_ns": 120000000, + "values": [ + { + "channel": 1100, + "value": 1 + } + ] + }, + { + "time_ns": 150000000, + "values": [ + { + "channel": 100, + "value": 24 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1002, + "field": "vapor_mass", + "min": 1e-10 + }, + { + "object_id": 1010, + "field": "total_fuel_delivered", + "max": -1e-05 + }, + { + "object_id": 1010, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 3, + "field": "temperature", + "min": 300, + "max": 320 + } + ] + } +} diff --git a/assets/labs/equilibrium-flashing-nozzle.power.json b/assets/labs/equilibrium-flashing-nozzle.power.json new file mode 100644 index 0000000..0172738 --- /dev/null +++ b/assets/labs/equilibrium-flashing-nozzle.power.json @@ -0,0 +1,223 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous-equilibrium compressible fuel nozzle. Pressure/entropy closure permits equilibrium flashing during isentropic transit. A global flux enclosure covers phase-boundary and smooth extrema; finite reservoirs, wall jet heat, momentum and complete inventories remain explicit. Numerical flux uncertainty is not measured calibration. No finite-rate nucleation, slip, spray or fired receiver coupling.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1e-05, + "unit": "m3" + }, + "position": { + "value": 0.0075025000000000005, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.00012073564394395675, + "unit": "kg" + }, + "initial": { + "value": 288.2192227853121, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "compressible_fuel_nozzle", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 1e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "equilibrium", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + } + }, + "input_channel": 100 + } + ], + "experiment": { + "duration_ns": 1000000, + "sample_every_ns": 100000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 10, + "field": "vapor_mass_fraction", + "min": 0.001 + }, + { + "object_id": 10, + "field": "flux_relative_uncertainty", + "min": 0, + "max": 0.0001 + } + ] + } +} diff --git a/assets/labs/equilibrium-fuel-cell.power.json b/assets/labs/equilibrium-fuel-cell.power.json new file mode 100644 index 0000000..4f3ad9a --- /dev/null +++ b/assets/labs/equilibrium-fuel-cell.power.json @@ -0,0 +1,217 @@ +{ + "schema": "power.model.v1", + "description": "Research constant-property pseudo-fluid in a fixed gas volume with negligible liquid displacement. A finite cold wall condenses fuel; an explicit vent opens and closes to produce evaporation and condensation. The common gas constant, caloric properties and saturation reference are explicit and unverified. The bounded equilibrium flash conserves total fuel and internal energy, with first-order finite-wall and transport coupling. Multicomponent fuel, finite-rate nucleation/phase kinetics, liquid-volume displacement, cavitating flow and OEM calibration remain open.", + "step_ns": 1000000, + "nodes": [ + { + "id": 2, + "domain": "gas", + "storage": { + "value": 0.01, + "unit": "m3" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4, + "premixed": { + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0.3, + "fresh_air": 0.7 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 20, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_film", + "node_a": 2, + "node_b": 3, + "parameters": { + "initial_mass": { + "value": 0.003, + "unit": "kg" + }, + "initial_temperature": { + "value": 350, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 350, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 1, + "unit": "w_k" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 30000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 550, + "unit": "k" + } + } + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 960, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 1e-05, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 1000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 350, + "unit": "k" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200000000, + "values": [ + { + "channel": 960, + "value": 1 + } + ] + }, + { + "time_ns": 400000000, + "values": [ + { + "channel": 960, + "value": 0 + } + ] + } + ], + "checks": [ + { + "object_id": 2, + "field": "temperature", + "min": 200, + "max": 550 + }, + { + "object_id": 2, + "field": "pressure", + "min": 1000, + "max": 200000 + }, + { + "object_id": 10, + "field": "mass", + "min": 0, + "max": 0.006 + }, + { + "object_id": 10, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 0.006 + }, + { + "object_id": 10, + "field": "condensed_fuel_mass", + "min": 1e-06, + "max": 0.006 + }, + { + "object_id": 10, + "field": "mass_flow", + "max": 0 + }, + { + "object_id": 10, + "field": "vapor_partial_pressure", + "min": 1, + "max": 200000 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + } + ] + } +} diff --git a/assets/labs/equilibrium-fuel-condensing-duct.power.json b/assets/labs/equilibrium-fuel-condensing-duct.power.json new file mode 100644 index 0000000..5b97507 --- /dev/null +++ b/assets/labs/equilibrium-fuel-condensing-duct.power.json @@ -0,0 +1,505 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous equilibrium finite-volume fuel duct. A thermodynamic cold compression law and ideal vapor resolve density, mass, momentum and total energy through liquid admission and bulk condensation. Reservoirs are finite and stationary. Constant area, numerical Rusanov diffusion, no phase slip or nucleation delay; not measured cavitation or hardware calibration.", + "step_ns": 1000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.7501, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.005717055997588124, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.4292639993970307e-07, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.4292639993970307e-07, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.4292639993970307e-07, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.4292639993970307e-07, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 100000, + "sample_every_ns": 10000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 100, + "field": "vapor_mass_fraction", + "min": 0, + "max": 0.01 + } + ] + } +} diff --git a/assets/labs/equilibrium-fuel-flashing-duct.power.json b/assets/labs/equilibrium-fuel-flashing-duct.power.json new file mode 100644 index 0000000..4f226bc --- /dev/null +++ b/assets/labs/equilibrium-fuel-flashing-duct.power.json @@ -0,0 +1,505 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous equilibrium finite-volume fuel duct. A thermodynamic cold compression law and ideal vapor resolve density, mass, momentum and total energy through depressurization and bulk vapor formation. Reservoirs are finite and stationary. Constant area, numerical Rusanov diffusion, no phase slip or nucleation delay; not measured cavitation or hardware calibration.", + "step_ns": 1000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.005717055997588124, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.005717055997588124, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.87525e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 100000, + "sample_every_ns": 10000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 100, + "field": "vapor_mass_fraction", + "min": 1e-05, + "max": 0.02 + } + ] + } +} diff --git a/assets/labs/equilibrium-fuel-network.power.json b/assets/labs/equilibrium-fuel-network.power.json new file mode 100644 index 0000000..0c3f39f --- /dev/null +++ b/assets/labs/equilibrium-fuel-network.power.json @@ -0,0 +1,258 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous pure-fuel research network: elastic vessels, phase-resolving enthalpy transport and finite-wall heat. Quasi-static linear resistance; no sonic choking, link inertia, pump filling or injector coupling. All parameters are unverified.", + "step_ns": 100000, + "nodes": [ + { + "id": 1, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 400, + "unit": "k" + }, + "position": { + "value": 0.00065, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 2, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.0003, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 2, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_restriction", + "node_a": 1, + "node_b": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-11, + "unit": "m3_s_pa" + } + } + }, + { + "id": 11, + "kind": "fuel_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 0.2, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 200000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 50000000, + "values": [ + { + "channel": 100, + "value": 0.25 + } + ] + }, + { + "time_ns": 100000000, + "values": [ + { + "channel": 100, + "value": 0 + } + ] + }, + { + "time_ns": 125000000, + "values": [ + { + "channel": 100, + "value": 1 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1, + "field": "vapor_mass", + "min": 1e-10 + }, + { + "object_id": 10, + "field": "total_fuel_delivered", + "min": 2e-05 + }, + { + "object_id": 10, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 11, + "field": "transport_energy", + "min": 0 + }, + { + "object_id": 3, + "field": "temperature", + "min": 300, + "max": 500 + } + ] + } +} diff --git a/assets/labs/equilibrium-fuel-pump.power.json b/assets/labs/equilibrium-fuel-pump.power.json new file mode 100644 index 0000000..a41d1eb --- /dev/null +++ b/assets/labs/equilibrium-fuel-pump.power.json @@ -0,0 +1,325 @@ +{ + "schema": "power.model.v1", + "description": "Unverified inlet-starved pure-fuel pump research graph. A finite shaft-driven compliant chamber flashes during suction and delivers through ideal check restrictions. Stored fluid/elastic energy and shaft work share one coupled solve. No local inlet inertia, sonic choking, valve dynamics or calibrated hardware behavior is inferred. All parameters are unverified.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.11250000000000002, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-10, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 2, + "domain": "fuel", + "storage": { + "value": 1e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 7.875e-05, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-14, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 3, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.001725, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 0.001, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_check_valve", + "node_a": 1, + "node_b": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-11, + "unit": "m3_s_pa" + } + } + }, + { + "id": 11, + "kind": "fuel_check_valve", + "node_a": 2, + "node_b": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-09, + "unit": "m3_s_pa" + } + } + }, + { + "id": 12, + "kind": "fuel_chamber", + "node_a": 4, + "node_b": 2, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + } + ], + "experiment": { + "duration_ns": 200000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 3e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "total_fuel_delivered", + "min": 1e-05 + }, + { + "object_id": 12, + "field": "hydraulic_work", + "min": 0.001 + }, + { + "object_id": 3, + "field": "pressure", + "min": 300000.0, + "max": 1000000.0 + }, + { + "object_id": 4, + "field": "speed", + "min": 50, + "max": 150 + }, + { + "object_id": 2, + "field": "vapor_mass", + "min": 1e-10 + } + ] + } +} diff --git a/assets/labs/equilibrium-injected-cylinder.power.json b/assets/labs/equilibrium-injected-cylinder.power.json new file mode 100644 index 0000000..1c74107 --- /dev/null +++ b/assets/labs/equilibrium-injected-cylinder.power.json @@ -0,0 +1,765 @@ +{ + "schema": "power.model.v1", + "description": "Research fired engine with finite geometric tank, explicit vent, shaft-driven liquid supply and conserving relief return. Optional fuel phase equilibrium couples receiver vapor and liquid mass with a common temperature and consistent saturation pressure. Only vapor burns; rail and pump-inlet saturation margins remain observable and negative wet margins reject the full batch. Constant properties, reference saturation pressure and temperature interval are explicit unverified research values. First-order phase coupling, negligible receiver liquid displacement, tank vaporization, bubble dynamics, measured pump/valve maps, OEM calibration and actual Unity acceptance retain their separate limits.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + }, + { + "id": 1520, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4 + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + } + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + }, + "headspace": { + "capacity": { + "value": 2e-07, + "unit": "m3" + }, + "gas_node": 1520 + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + }, + { + "id": 1521, + "kind": "gas_orifice", + "node_a": 1520, + "node_b": 0, + "input_channel": 960, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200000000, + "values": [ + { + "channel": 960, + "value": 0 + } + ] + }, + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400000000, + "values": [ + { + "channel": 960, + "value": 1 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "abs_max": 1500 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1513, + "field": "fill_fraction", + "min": 0, + "max": 1 + }, + { + "object_id": 1520, + "field": "pressure", + "min": 50000, + "max": 200000 + }, + { + "object_id": 1520, + "field": "volume", + "min": 1e-12, + "max": 2e-07 + }, + { + "object_id": 16, + "field": "condensed_fuel_mass", + "min": 0, + "max": 0.001 + }, + { + "object_id": 16, + "field": "vapor_partial_pressure", + "min": 0, + "max": 1000000 + }, + { + "object_id": 17, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 1513, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 1511, + "field": "cavitation_margin", + "min": 0 + } + ] + } +} diff --git a/assets/labs/equilibrium-pump-needle.power.json b/assets/labs/equilibrium-pump-needle.power.json new file mode 100644 index 0000000..e70c94b --- /dev/null +++ b/assets/labs/equilibrium-pump-needle.power.json @@ -0,0 +1,831 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous-equilibrium compressible fuel nozzle. Pressure/entropy closure permits equilibrium flashing during isentropic transit. A global flux enclosure covers phase-boundary and smooth extrema; finite reservoirs, wall jet heat, momentum and complete inventories remain explicit. Numerical flux uncertainty is not measured calibration. No finite-rate nucleation, slip, spray or fired receiver coupling. A resolved supply duct and shaft chamber feed an actual solenoid/spring/stop needle through equilibrium inlet and outlet boundaries.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "compressible_fuel", + "storage": { + "value": 1.1224174381096273e-07, + "unit": "m3" + }, + "position": { + "value": 8.419253203260314e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 2, + "domain": "compressible_fuel", + "storage": { + "value": 1e-06, + "unit": "m3" + }, + "position": { + "value": 0.00075015, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 101, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 102, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 103, + "domain": "compressible_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.8753749999999996e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 500, + "unit": "rad_s" + }, + "position": { + "value": 0.5, + "unit": "rad" + } + }, + { + "id": 5, + "domain": "compressible_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.75015, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 6, + "domain": "compressible_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.075025, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + } + } + }, + { + "id": 7, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0.001, + "unit": "m" + } + } + ], + "components": [ + { + "id": 10, + "kind": "equilibrium_fuel_duct", + "node_a": 5, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 20, + "kind": "compressible_fuel_nozzle", + "node_a": 2, + "node_b": 1, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 4e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "equilibrium", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + } + } + }, + { + "id": 21, + "kind": "compressible_fuel_nozzle", + "node_a": 1, + "node_b": 6, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "equilibrium", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + }, + "needle_node": 7, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.001, + "unit": "m" + } + }, + "input_channel": 210 + }, + { + "id": 30, + "kind": "linear_spring", + "node_a": 7, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 1000, + "unit": "n_m" + }, + "damping": { + "value": 0.2, + "unit": "n_s_m" + }, + "rest_angle": { + "value": 0, + "unit": "m" + }, + "ratio": 1 + } + }, + { + "id": 31, + "kind": "solenoid", + "node_a": 7, + "heat_node": 3, + "input_channel": 220, + "initial_input": { + "value": 2, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 2, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "inductance_gradient": { + "value": 4, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 1, + "unit": "a" + } + } + }, + { + "id": 32, + "kind": "travel_stop", + "node_a": 7, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.001, + "unit": "m" + }, + "stiffness": { + "value": 10000, + "unit": "n_m" + } + } + } + ], + "experiment": { + "duration_ns": 20000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 20, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 21, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 21, + "field": "flux_relative_uncertainty", + "min": 0, + "max": 0.0001 + } + ] + } +} diff --git a/assets/labs/equilibrium-tank-fired-cylinder.power.json b/assets/labs/equilibrium-tank-fired-cylinder.power.json new file mode 100644 index 0000000..b199d06 --- /dev/null +++ b/assets/labs/equilibrium-tank-fired-cylinder.power.json @@ -0,0 +1,829 @@ +{ + "schema": "power.model.v1", + "description": "Research fired engine with separated-liquid pickup from a finite-volume equilibrium tank. The paired film material and tracked headspace share R/cv/LHV; source liquid displacement and p/rho chemical potential determine reversible tank evaporation/condensation. Explicit venting carries fuel and chemical energy, a finite wall heats the source, and the existing pump/relief solve conserves displacement work. Initial source gas/liquid temperature and vapor saturation are declared. All parameters are unverified. Two-phase pump entrainment, local NPSH, real-fluid mixture properties, detailed spray and OEM/Unity acceptance remain open.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + }, + { + "id": 1520, + "domain": "gas", + "initial": { + "value": 320, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0.3732816323995968, + "fresh_air": 0.6267183676004032 + } + } + } + }, + { + "id": 1560, + "domain": "thermal", + "storage": { + "value": 0.2, + "unit": "j_k" + }, + "initial": { + "value": 360, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + } + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + }, + "headspace": { + "capacity": { + "value": 2e-07, + "unit": "m3" + }, + "gas_node": 1520, + "phase_equilibrium": true + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + }, + { + "id": 1521, + "kind": "gas_orifice", + "node_a": 1520, + "node_b": 0, + "input_channel": 960, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 1561, + "kind": "gas_heat_link", + "node_a": 1520, + "node_b": 1560, + "parameters": { + "conductance": { + "value": 0.05, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200000000, + "values": [ + { + "channel": 960, + "value": 0 + } + ] + }, + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400000000, + "values": [ + { + "channel": 960, + "value": 1 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "abs_max": 1500 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1513, + "field": "fill_fraction", + "min": 0, + "max": 1 + }, + { + "object_id": 1520, + "field": "pressure", + "min": 50000, + "max": 200000 + }, + { + "object_id": 1520, + "field": "volume", + "min": 1e-12, + "max": 2e-07 + }, + { + "object_id": 16, + "field": "condensed_fuel_mass", + "min": 0, + "max": 0.001 + }, + { + "object_id": 16, + "field": "vapor_partial_pressure", + "min": 0, + "max": 1000000 + }, + { + "object_id": 17, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 1513, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 1511, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 1513, + "field": "evaporated_fuel_mass", + "min": 0, + "max": 0.001 + }, + { + "object_id": 1513, + "field": "condensed_fuel_mass", + "min": 0, + "max": 0.001 + }, + { + "object_id": 1513, + "field": "vapor_partial_pressure", + "min": 0, + "max": 200000 + }, + { + "object_id": 1520, + "field": "fuel_mass", + "min": 0, + "max": 0.001 + } + ] + } +} diff --git a/assets/labs/equilibrium-tank-supply.power.json b/assets/labs/equilibrium-tank-supply.power.json new file mode 100644 index 0000000..d4f4436 --- /dev/null +++ b/assets/labs/equilibrium-tank-supply.power.json @@ -0,0 +1,465 @@ +{ + "schema": "power.model.v1", + "description": "Research finite-density equilibrium fuel tank supplying a compliant liquid rail through an ideal separated-liquid pump. Gas and liquid begin in declared thermal and pressure-corrected phase equilibrium. Pump reversal, explicit fuel-bearing venting and a finite heated wall exercise evaporation and condensation. The paired receiver material defines the caloric and negligible-displacement saturation reference; the tank includes liquid displacement and the p/rho chemical-potential term. All properties are unverified. Incompressible liquid, common ideal-gas R/cv and instantaneous equilibrium are declared approximations; two-phase pump entrainment, local NPSH, real mixtures and calibration remain open.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 1, + "unit": "kg_m2" + }, + "initial": { + "value": 1, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 2, + "domain": "gas", + "storage": { + "value": 0.01, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4, + "premixed": { + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 1 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 20, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 5, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 800000, + "unit": "pa" + } + }, + { + "id": 40, + "domain": "gas", + "initial": { + "value": 340, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4, + "premixed": { + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0.5042628803363988, + "fresh_air": 0.49573711966360123 + } + } + } + }, + { + "id": 60, + "domain": "thermal", + "storage": { + "value": 0.2, + "unit": "j_k" + }, + "initial": { + "value": 360, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_film", + "node_a": 2, + "node_b": 3, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0, + "unit": "w_k" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + } + } + } + }, + { + "id": 11, + "kind": "torque_source", + "node_a": 1, + "input_channel": 100, + "initial_input": { + "value": 0, + "unit": "nm" + } + }, + { + "id": 12, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 0, + "unit": "kg" + }, + "parameters": { + "film_component": 10, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 800000, + "unit": "pa" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 1e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 20, + "kind": "hydraulic_pump", + "node_a": 4, + "node_b": 5, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 21, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 12, + "pump_component": 20, + "tank_component": 22 + } + }, + { + "id": 22, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 12, + "initial_mass": { + "value": 0.0001, + "unit": "kg" + }, + "initial_temperature": { + "value": 340, + "unit": "k" + }, + "headspace": { + "capacity": { + "value": 1.4333333333333335e-07, + "unit": "m3" + }, + "gas_node": 40, + "phase_equilibrium": true + } + } + }, + { + "id": 41, + "kind": "gas_orifice", + "node_a": 40, + "input_channel": 110, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + }, + "parameters": { + "area": { + "value": 1e-10, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 1000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + } + }, + { + "id": 50, + "kind": "torque_source", + "node_a": 4, + "input_channel": 950, + "initial_input": { + "value": 0, + "unit": "nm" + } + }, + { + "id": 61, + "kind": "gas_heat_link", + "node_a": 40, + "node_b": 60, + "parameters": { + "conductance": { + "value": 0.02, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 200000000, + "sample_every_ns": 5000000, + "events": [ + { + "time_ns": 50000000, + "values": [ + { + "channel": 950, + "value": -40 + } + ] + }, + { + "time_ns": 75000000, + "values": [ + { + "channel": 110, + "value": 1 + } + ] + }, + { + "time_ns": 125000000, + "values": [ + { + "channel": 110, + "value": 0 + } + ] + }, + { + "time_ns": 150000000, + "values": [ + { + "channel": 950, + "value": 0 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 22, + "field": "mass", + "min": 0, + "max": 0.0001075 + }, + { + "object_id": 22, + "field": "temperature", + "min": 200, + "max": 600 + }, + { + "object_id": 22, + "field": "evaporated_fuel_mass", + "min": 1e-10, + "max": 0.0001 + }, + { + "object_id": 22, + "field": "condensed_fuel_mass", + "min": 1e-10, + "max": 0.0001 + }, + { + "object_id": 22, + "field": "vapor_partial_pressure", + "min": 1, + "max": 200000 + }, + { + "object_id": 12, + "field": "cavitation_margin", + "min": 0 + }, + { + "object_id": 40, + "field": "pressure", + "min": 1000, + "max": 300000 + }, + { + "object_id": 40, + "field": "fuel_mass", + "min": 0, + "max": 0.0001 + } + ] + } +} diff --git a/assets/labs/finite-tank-liquid-cylinder.power.json b/assets/labs/finite-tank-liquid-cylinder.power.json new file mode 100644 index 0000000..8c6c8ea --- /dev/null +++ b/assets/labs/finite-tank-liquid-cylinder.power.json @@ -0,0 +1,593 @@ +{ + "schema": "power.model.v1", + "description": "Research engine supplied by a finite compliant liquid rail replenished from an explicit material boundary through a conserving shaft-driven displacement pump. The hydraulic node owns rail pressure energy once; inlet caloric/chemical energy, mixed rail temperature, nozzle transfer and vapor-only burn share complete ledgers. Boundary source inventory, finite-volume spray, pump efficiency and OEM calibration remain unresolved. Synthetic fired cylinder with a finite compliant liquid fuel rail feeding a separate finite film. Forward crank windows latch requested cycle doses; nozzle pressure head and stored rail pressure energy determine actual delivery. Film sensible and latent heating determine vapor availability for the prescribed burn. Rail mass, caloric/chemical energy, released pressure work, nozzle heat and exported receiver pressure work are observable. The receiver retains the negligible-liquid-volume reduction and treats liquid displacement pressure work as an explicit external boundary; no gas-volume compensation is silently credited to cylinder crank work. Constant density/compliance/caloric properties, no rail refill, needle/electrical or spray/cavitation dynamics, and no OEM calibration are declared research boundaries. All parameters are unverified. Rail pressure KPI uses the declared pump-only upper bound P0 + D/C (omega0 t + (torque + D Pin) t^2/(2 J)); injection and positive outlet head reduce pressure relative to that bound. A finite 2e-5 kg mixed tank replaces the material/thermal source boundary. Its pump inlet retains the explicit 100000 Pa prescribed pressure and corresponding pressure-work boundary. Finite inventory limits interval-average pump filling and reaction together; dry shaft rotation supplies no fluid work. Geometric capacity, vents, slosh, cavitation and measured filling dynamics remain unverified.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06, + "max": 2e-05 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 1, + "max": 1 + } + ] + } +} diff --git a/assets/labs/finite-tank-needle-cylinder.power.json b/assets/labs/finite-tank-needle-cylinder.power.json new file mode 100644 index 0000000..6492903 --- /dev/null +++ b/assets/labs/finite-tank-needle-cylinder.power.json @@ -0,0 +1,726 @@ +{ + "schema": "power.model.v1", + "description": "Research engine supplied by a finite compliant liquid rail replenished from an explicit material boundary through a conserving shaft-driven displacement pump. The hydraulic node owns rail pressure energy once; inlet caloric/chemical energy, mixed rail temperature, nozzle transfer and vapor-only burn share complete ledgers. Boundary source inventory, finite-volume spray, pump efficiency and OEM calibration remain unresolved. Synthetic fired cylinder with finite compliant liquid rail, actual position-metered needle, linear-gap solenoid, return spring and elastic stroke stops. A sampled forward-window/dose controller owns coil voltage. Actual fluid delivery continues during electrical/mechanical closing delay and seat rebound; desired cycle dose does not impose an artificial mass cutoff. Magnetic flux energy, reciprocal needle force, electrical supply work, copper heat and spring/stop energy join the existing source/film/gas/thermal ledgers. Needle is pressure balanced; source/receiver liquid volume and pressure-work boundaries retain their declared research reduction. Magnetic saturation/hysteresis/eddy currents, driver switching/flyback hardware, rail pump/refill, axial jet force, spray, finite-volume coupling, calibrated OEM data and complete ECU remain open. All parameters are unverified. The 0.6-second boundary can retain liquid film and an incompletely settled needle after the final command; remaining liquid and gas fuel stay in the complete inventory, rather than implying complete vaporization or exact dose tracking. Rail pressure KPI uses the declared pump-only upper bound P0 + D/C (omega0 t + (torque + D Pin) t^2/(2 J)); injection and positive outlet head reduce pressure relative to that bound. A finite 2e-5 kg mixed tank replaces the material/thermal source boundary. Its pump inlet retains the explicit 100000 Pa prescribed pressure and corresponding pressure-work boundary. Finite inventory limits interval-average pump filling and reaction together; dry shaft rotation supplies no fluid work. Geometric capacity, vents, slosh, cavitation and measured filling dynamics remain unverified.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 24, + "kind": "needle_driver", + "node_a": 1, + "parameters": { + "injector_component": 17, + "solenoid_component": 23, + "sample_period_ns": 100000, + "drive_voltage": { + "value": 6.8, + "unit": "v" + } + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "min": 0, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 23, + "field": "current", + "abs_max": 5 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0, + "max": 100 + }, + { + "object_id": 24, + "field": "command_voltage", + "min": 0, + "max": 6.8 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06, + "max": 2e-05 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 1, + "max": 1 + } + ] + } +} diff --git a/assets/labs/finite-volume-fuel-discharge.power.json b/assets/labs/finite-volume-fuel-discharge.power.json new file mode 100644 index 0000000..928e741 --- /dev/null +++ b/assets/labs/finite-volume-fuel-discharge.power.json @@ -0,0 +1,233 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous frozen-quality choked nozzle into an equilibrium finite-volume receiver. Liquid displacement, ideal fully expanded jet energy and stationary-wall impulse are explicit. This synthetic pseudo-fuel is not calibrated to hardware.", + "step_ns": 100000, + "nodes": [ + { + "id": 1, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 500, + "unit": "k" + }, + "position": { + "value": 1e-05, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 2500, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 2, + "domain": "gas", + "storage": { + "value": 1e-05, + "unit": "m3" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "position": { + "value": 100000.0, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4, + "premixed": { + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 1 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "finite_fuel_film", + "node_a": 2, + "node_b": 3, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 350, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.05, + "unit": "w_k" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 2500, + "unit": "k" + } + }, + "finite_volume_density": { + "value": 750, + "unit": "kg_m3" + } + } + }, + { + "id": 11, + "kind": "fuel_discharge", + "node_a": 1, + "node_b": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "film_component": 10, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.5, + "unit": "fraction" + }, + "area": { + "value": 2e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7 + } + } + ], + "experiment": { + "duration_ns": 10000000, + "sample_every_ns": 1000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "total_fuel_delivered", + "min": 1e-09 + }, + { + "object_id": 11, + "field": "jet_impulse", + "min": 1e-08 + }, + { + "object_id": 11, + "field": "choked", + "min": 1, + "max": 1 + } + ] + } +} diff --git a/assets/labs/inertial-fuel-line.power.json b/assets/labs/inertial-fuel-line.power.json new file mode 100644 index 0000000..d311463 --- /dev/null +++ b/assets/labs/inertial-fuel-line.power.json @@ -0,0 +1,255 @@ +{ + "schema": "power.model.v1", + "description": "Unverified finite liquid line research graph. Explicit line mass, caloric and kinetic inventories couple two compliant fuel vessels and a finite friction wall. Physical reversal is resolved; liquid-only line validity is enforced. No cavitating or acoustic pipe claim.", + "step_ns": 100000, + "nodes": [ + { + "id": 1, + "domain": "fuel", + "storage": { + "value": 1e-05, + "unit": "m3" + }, + "initial": { + "value": 320, + "unit": "k" + }, + "position": { + "value": 0.00975, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 2, + "domain": "fuel", + "storage": { + "value": 1e-05, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.009000000000000001, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "fuel_inertial_pipe", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "length": { + "value": 0.1, + "unit": "m" + }, + "area": { + "value": 1e-08, + "unit": "m2" + }, + "linear_resistance": { + "value": 10000000000.0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 1e+16, + "unit": "pa_s2_m6" + }, + "initial_flow": { + "value": 0, + "unit": "m3_s" + }, + "initial_temperature": { + "value": 310, + "unit": "k" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 11, + "kind": "fuel_restriction", + "node_a": 1, + "node_b": 2, + "input_channel": 100, + "initial_input": { + "value": 0, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-12, + "unit": "m3_s_pa" + } + } + } + ], + "experiment": { + "duration_ns": 700000000, + "sample_every_ns": 10000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 3e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "forward_volume", + "min": 1e-09 + }, + { + "object_id": 10, + "field": "reverse_volume", + "min": 1e-09 + }, + { + "object_id": 10, + "field": "friction_heat", + "min": 0.0001 + }, + { + "object_id": 10, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 10, + "field": "temperature", + "min": 300, + "max": 330 + } + ] + } +} diff --git a/assets/labs/inertial-pump-fed-cylinder.power.json b/assets/labs/inertial-pump-fed-cylinder.power.json new file mode 100644 index 0000000..7e6e4d2 --- /dev/null +++ b/assets/labs/inertial-pump-fed-cylinder.power.json @@ -0,0 +1,953 @@ +{ + "schema": "power.model.v1", + "description": "Unverified pump-fed fired research cylinder with a resolved liquid inlet line before the ideal inlet check valve. The line has its own finite liquid mass, caloric energy, kinetic energy and a finite friction wall. Pump work, physical solenoid needle, frozen-quality nozzle and finite receiver keep their existing contracts. Liquid-only inlet line; no resolved cavitation, acoustic waves, two-phase line momentum or hardware calibration.", + "step_ns": 20000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 101, + "domain": "fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.11250000000000002, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-10, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 102, + "domain": "fuel", + "storage": { + "value": 1e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 7.875e-05, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-14, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 103, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.001725, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 104, + "domain": "rotational", + "storage": { + "value": 0.001, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 105, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + }, + { + "id": 106, + "domain": "fuel", + "storage": { + "value": 1e-06, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.0022500000000000003, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 2e-11, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "finite_fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + }, + "finite_volume_density": { + "value": 750, + "unit": "kg_m3" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + } + } + } + }, + { + "id": 17, + "kind": "fuel_discharge", + "node_a": 103, + "node_b": 2, + "input_channel": 104, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "film_component": 16, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.5, + "unit": "fraction" + }, + "area": { + "value": 2e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 110, + "kind": "fuel_check_valve", + "node_a": 106, + "node_b": 102, + "input_channel": 1100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 3e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 111, + "kind": "fuel_check_valve", + "node_a": 102, + "node_b": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-09, + "unit": "m3_s_pa" + } + } + }, + { + "id": 112, + "kind": "fuel_chamber", + "node_a": 104, + "node_b": 102, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 114, + "kind": "dc_motor", + "node_a": 104, + "heat_node": 105, + "input_channel": 1300, + "initial_input": { + "value": 2.5, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 1, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "coupling": { + "value": 0.02, + "unit": "nm_a" + }, + "initial_current": { + "value": 0.5, + "unit": "a" + } + } + }, + { + "id": 115, + "kind": "fuel_heat_link", + "node_a": 102, + "node_b": 105, + "parameters": { + "conductance": { + "value": 0.1, + "unit": "w_k" + } + } + }, + { + "id": 116, + "kind": "fuel_inertial_pipe", + "node_a": 101, + "node_b": 106, + "heat_node": 105, + "parameters": { + "length": { + "value": 0.05, + "unit": "m" + }, + "area": { + "value": 2e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 1000000000.0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 10000000000000.0, + "unit": "pa_s2_m6" + }, + "initial_flow": { + "value": 0, + "unit": "m3_s" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 400000000, + "sample_every_ns": 5000000, + "events": [ + { + "time_ns": 10000000, + "values": [ + { + "channel": 107, + "value": 6.8 + } + ] + }, + { + "time_ns": 25000000, + "values": [ + { + "channel": 107, + "value": 0 + } + ] + }, + { + "time_ns": 210000000, + "values": [ + { + "channel": 107, + "value": 6.8 + } + ] + }, + { + "time_ns": 225000000, + "values": [ + { + "channel": 107, + "value": 0 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 4e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-07 + }, + { + "object_id": 112, + "field": "hydraulic_work", + "min": 0.001 + }, + { + "object_id": 111, + "field": "total_fuel_delivered", + "min": 1e-05 + }, + { + "object_id": 2, + "field": "temperature", + "min": 200, + "max": 3000 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0.01 + }, + { + "object_id": 116, + "field": "forward_volume", + "min": 1e-09 + }, + { + "object_id": 116, + "field": "friction_heat", + "min": 1e-07 + }, + { + "object_id": 116, + "field": "entropy_produced", + "min": 0 + } + ] + } +} diff --git a/assets/labs/pump-fed-finite-volume-cylinder.power.json b/assets/labs/pump-fed-finite-volume-cylinder.power.json new file mode 100644 index 0000000..83995e1 --- /dev/null +++ b/assets/labs/pump-fed-finite-volume-cylinder.power.json @@ -0,0 +1,835 @@ +{ + "schema": "power.model.v1", + "description": "Unverified electric shaft-driven fuel pump, finite source/chamber/rail, ideal check valves, physical solenoid needle and frozen-quality discharge into a finite-liquid-volume fired cylinder. Explicit voltage pulses actuate the pressure-balanced needle; this is not a kg-per-cycle metering controller. Prescribed Wiebe heat release, ideal pseudo-species properties and equilibrium receiver phase change remain research reductions. No local inlet inertia, resolved spray, finite-rate nucleation or measured hardware calibration.", + "step_ns": 20000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 101, + "domain": "fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.11250000000000002, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-10, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 102, + "domain": "fuel", + "storage": { + "value": 1e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 7.875e-05, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-14, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 103, + "domain": "fuel", + "storage": { + "value": 8e-07, + "unit": "m3" + }, + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 0.001725, + "unit": "kg" + }, + "fuel": { + "compliance": { + "value": 5e-12, + "unit": "m3_pa" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 819.9999999999998, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + } + } + }, + { + "id": 104, + "domain": "rotational", + "storage": { + "value": 0.001, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 105, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 300, + "unit": "k" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "finite_fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 800, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + }, + "finite_volume_density": { + "value": 750, + "unit": "kg_m3" + }, + "phase_equilibrium": { + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 3000, + "unit": "k" + } + } + } + }, + { + "id": 17, + "kind": "fuel_discharge", + "node_a": 103, + "node_b": 2, + "input_channel": 104, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "film_component": 16, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.5, + "unit": "fraction" + }, + "area": { + "value": 2e-08, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 110, + "kind": "fuel_check_valve", + "node_a": 101, + "node_b": 102, + "input_channel": 1100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 3e-10, + "unit": "m3_s_pa" + } + } + }, + { + "id": 111, + "kind": "fuel_check_valve", + "node_a": 102, + "node_b": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "conductance": { + "value": 1e-09, + "unit": "m3_s_pa" + } + } + }, + { + "id": 112, + "kind": "fuel_chamber", + "node_a": 104, + "node_b": 102, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 114, + "kind": "dc_motor", + "node_a": 104, + "heat_node": 105, + "input_channel": 1300, + "initial_input": { + "value": 2.5, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 1, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "coupling": { + "value": 0.02, + "unit": "nm_a" + }, + "initial_current": { + "value": 0.5, + "unit": "a" + } + } + }, + { + "id": 115, + "kind": "fuel_heat_link", + "node_a": 102, + "node_b": 105, + "parameters": { + "conductance": { + "value": 0.1, + "unit": "w_k" + } + } + } + ], + "experiment": { + "duration_ns": 400000000, + "sample_every_ns": 5000000, + "events": [ + { + "time_ns": 10000000, + "values": [ + { + "channel": 107, + "value": 6.8 + } + ] + }, + { + "time_ns": 25000000, + "values": [ + { + "channel": 107, + "value": 0 + } + ] + }, + { + "time_ns": 210000000, + "values": [ + { + "channel": 107, + "value": 6.8 + } + ] + }, + { + "time_ns": 225000000, + "values": [ + { + "channel": 107, + "value": 0 + } + ] + } + ], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 4e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-07 + }, + { + "object_id": 112, + "field": "hydraulic_work", + "min": 0.001 + }, + { + "object_id": 111, + "field": "total_fuel_delivered", + "min": 1e-05 + }, + { + "object_id": 2, + "field": "temperature", + "min": 200, + "max": 3000 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0.01 + } + ] + } +} diff --git a/assets/labs/pump-fed-liquid-cylinder.power.json b/assets/labs/pump-fed-liquid-cylinder.power.json new file mode 100644 index 0000000..4e4f3b0 --- /dev/null +++ b/assets/labs/pump-fed-liquid-cylinder.power.json @@ -0,0 +1,568 @@ +{ + "schema": "power.model.v1", + "description": "Research engine supplied by a finite compliant liquid rail replenished from an explicit material boundary through a conserving shaft-driven displacement pump. The hydraulic node owns rail pressure energy once; inlet caloric/chemical energy, mixed rail temperature, nozzle transfer and vapor-only burn share complete ledgers. Boundary source inventory, finite-volume spray, pump efficiency and OEM calibration remain unresolved. Synthetic fired cylinder with a finite compliant liquid fuel rail feeding a separate finite film. Forward crank windows latch requested cycle doses; nozzle pressure head and stored rail pressure energy determine actual delivery. Film sensible and latent heating determine vapor availability for the prescribed burn. Rail mass, caloric/chemical energy, released pressure work, nozzle heat and exported receiver pressure work are observable. The receiver retains the negligible-liquid-volume reduction and treats liquid displacement pressure work as an explicit external boundary; no gas-volume compensation is silently credited to cylinder crank work. Constant density/compliance/caloric properties, no rail refill, needle/electrical or spray/cavitation dynamics, and no OEM calibration are declared research boundaries. All parameters are unverified. Rail pressure KPI uses the declared pump-only upper bound P0 + D/C (omega0 t + (torque + D Pin) t^2/(2 J)); injection and positive outlet head reduce pressure relative to that bound.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "supply_temperature": { + "value": 320, + "unit": "k" + } + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + } + ] + } +} diff --git a/assets/labs/pump-fed-needle-cylinder.power.json b/assets/labs/pump-fed-needle-cylinder.power.json new file mode 100644 index 0000000..a016990 --- /dev/null +++ b/assets/labs/pump-fed-needle-cylinder.power.json @@ -0,0 +1,701 @@ +{ + "schema": "power.model.v1", + "description": "Research engine supplied by a finite compliant liquid rail replenished from an explicit material boundary through a conserving shaft-driven displacement pump. The hydraulic node owns rail pressure energy once; inlet caloric/chemical energy, mixed rail temperature, nozzle transfer and vapor-only burn share complete ledgers. Boundary source inventory, finite-volume spray, pump efficiency and OEM calibration remain unresolved. Synthetic fired cylinder with finite compliant liquid rail, actual position-metered needle, linear-gap solenoid, return spring and elastic stroke stops. A sampled forward-window/dose controller owns coil voltage. Actual fluid delivery continues during electrical/mechanical closing delay and seat rebound; desired cycle dose does not impose an artificial mass cutoff. Magnetic flux energy, reciprocal needle force, electrical supply work, copper heat and spring/stop energy join the existing source/film/gas/thermal ledgers. Needle is pressure balanced; source/receiver liquid volume and pressure-work boundaries retain their declared research reduction. Magnetic saturation/hysteresis/eddy currents, driver switching/flyback hardware, rail pump/refill, axial jet force, spray, finite-volume coupling, calibrated OEM data and complete ECU remain open. All parameters are unverified. The 0.6-second boundary can retain liquid film and an incompletely settled needle after the final command; remaining liquid and gas fuel stay in the complete inventory, rather than implying complete vaporization or exact dose tracking. Rail pressure KPI uses the declared pump-only upper bound P0 + D/C (omega0 t + (torque + D Pin) t^2/(2 J)); injection and positive outlet head reduce pressure relative to that bound.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 24, + "kind": "needle_driver", + "node_a": 1, + "parameters": { + "injector_component": 17, + "solenoid_component": 23, + "sample_period_ns": 100000, + "drive_voltage": { + "value": 6.8, + "unit": "v" + } + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "supply_temperature": { + "value": 320, + "unit": "k" + } + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "min": 0, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 23, + "field": "current", + "abs_max": 5 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0, + "max": 100 + }, + { + "object_id": 24, + "field": "command_voltage", + "min": 0, + "max": 6.8 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + } + ] + } +} diff --git a/assets/labs/recirculating-liquid-cylinder.power.json b/assets/labs/recirculating-liquid-cylinder.power.json new file mode 100644 index 0000000..423d80f --- /dev/null +++ b/assets/labs/recirculating-liquid-cylinder.power.json @@ -0,0 +1,637 @@ +{ + "schema": "power.model.v1", + "description": "A research engine with finite mixed fuel inventory, conserving shaft pump and one-way pressure-relief fuel return. The relief uses 550000 Pa cracking differential against the explicit 100000 Pa tank pressure; its declared fluid heat fraction is 1. Pump and return use simultaneous caloric mixing and complete chemical/material/pressure/heat ledgers. Gross circulation can exceed initial tank inventory. The source sample retains unverified injector, film, engine and optional needle parameters. Geometric capacity, vents/headspace/slosh, cavitation, measured pump/valve properties, finite-volume spray, OEM calibration and actual Unity acceptance remain open.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + } + ] + } +} diff --git a/assets/labs/recirculating-needle-cylinder.power.json b/assets/labs/recirculating-needle-cylinder.power.json new file mode 100644 index 0000000..bcf34d5 --- /dev/null +++ b/assets/labs/recirculating-needle-cylinder.power.json @@ -0,0 +1,770 @@ +{ + "schema": "power.model.v1", + "description": "A research engine with finite mixed fuel inventory, conserving shaft pump and one-way pressure-relief fuel return. The relief uses 550000 Pa cracking differential against the explicit 100000 Pa tank pressure; its declared fluid heat fraction is 1. Pump and return use simultaneous caloric mixing and complete chemical/material/pressure/heat ledgers. Gross circulation can exceed initial tank inventory. The source sample retains unverified injector, film, engine and optional needle parameters. Geometric capacity, vents/headspace/slosh, cavitation, measured pump/valve properties, finite-volume spray, OEM calibration and actual Unity acceptance remain open.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 8e-06, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 4e-05, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000.0, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 24, + "kind": "needle_driver", + "node_a": 1, + "parameters": { + "injector_component": 17, + "solenoid_component": 23, + "sample_period_ns": 100000, + "drive_voltage": { + "value": 6.8, + "unit": "v" + } + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-09, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 2e-05, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 1.2e-05 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 4e-06 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 1e-06, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 5e-05, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 1e-06 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 1e-06, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "min": 0, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 1e-06, + "max": 8e-05 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 8e-06, + "max": 8e-05 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 23, + "field": "current", + "abs_max": 5 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0, + "max": 100 + }, + { + "object_id": 24, + "field": "command_voltage", + "min": 0, + "max": 6.8 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 1e-06 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + } + ] + } +} diff --git a/assets/labs/relaxing-fuel-chamber.power.json b/assets/labs/relaxing-fuel-chamber.power.json new file mode 100644 index 0000000..7f738ca --- /dev/null +++ b/assets/labs/relaxing-fuel-chamber.power.json @@ -0,0 +1,152 @@ +{ + "schema": "power.model.v1", + "description": "Unverified fixed-quality reversible shaft work coupled to finite chemical phase relaxation. Common phase pressure, temperature and velocity; compressible zero-thermal-expansion liquid and ideal vapor. Phase transfer preserves internal energy and is checked separately from entropy-preserving volume work. No measured nucleation law, liquid tension, spray, carrier gas or fired receiver.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "relaxing_fuel", + "storage": { + "value": 1e-07, + "unit": "m3" + }, + "position": { + "value": 2.5747761924154393e-07, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "position": { + "value": 0, + "unit": "rad" + }, + "initial": { + "value": 100, + "unit": "rad_s" + } + } + ], + "components": [ + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + } + ], + "experiment": { + "duration_ns": 20000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "vapor_mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1, + "field": "entropy_produced", + "min": 0 + } + ] + } +} diff --git a/assets/labs/relaxing-fuel-duct.power.json b/assets/labs/relaxing-fuel-duct.power.json new file mode 100644 index 0000000..c056e97 --- /dev/null +++ b/assets/labs/relaxing-fuel-duct.power.json @@ -0,0 +1,539 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous chemical-relaxation research model. Independent vapor quality shares common phase pressure, temperature and velocity. Constant declared relaxation time drives quality toward the fixed-mass/energy/volume equilibrium value; phase heat is internal, energy is unchanged and entropy is checked. This is not a measured nucleation law or empirical HRM calibration; no phase slip, spray, carrier gas or fired receiver. Explicit finite-volume cells transport vapor mass, momentum and total energy; residence follows actual flow. Global CFL/source splitting avoids double-relaxing shared reservoirs.", + "step_ns": 1000, + "nodes": [ + { + "id": 1, + "domain": "relaxing_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.0005137209499783144, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 2, + "domain": "relaxing_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.000257477619241544, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 6.436940481038598e-08, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 101, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 6.436940481038598e-08, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 102, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 6.436940481038598e-08, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + }, + { + "id": 103, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 6.436940481038598e-08, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + } + ], + "components": [ + { + "id": 10, + "kind": "relaxing_fuel_duct", + "node_a": 1, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + } + ], + "experiment": { + "duration_ns": 100000, + "sample_every_ns": 10000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "vapor_mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 10, + "field": "entropy_produced", + "min": 0 + }, + { + "object_id": 100, + "field": "entropy_produced", + "min": 0 + } + ] + } +} diff --git a/assets/labs/relaxing-fuel-evaporation.power.json b/assets/labs/relaxing-fuel-evaporation.power.json new file mode 100644 index 0000000..92fbdbd --- /dev/null +++ b/assets/labs/relaxing-fuel-evaporation.power.json @@ -0,0 +1,121 @@ +{ + "schema": "power.model.v1", + "description": "Unverified homogeneous chemical-relaxation research model. Independent vapor quality shares common phase pressure, temperature and velocity. Constant declared relaxation time drives quality toward the fixed-mass/energy/volume equilibrium value; phase heat is internal, energy is unchanged and entropy is checked. This is not a measured nucleation law or empirical HRM calibration; no phase slip, spray, carrier gas or fired receiver.", + "step_ns": 100000, + "nodes": [ + { + "id": 1, + "domain": "relaxing_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.000257477619241544, + "unit": "kg" + }, + "initial": { + "value": 450, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "initial_vapor_mass_fraction": { + "value": 0.3, + "unit": "fraction" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + } + } + ], + "components": [], + "experiment": { + "duration_ns": 2000000, + "sample_every_ns": 200000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "vapor_mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1, + "field": "vapor_mass_fraction", + "min": 0.39, + "max": 0.4 + }, + { + "object_id": 1, + "field": "entropy_produced", + "min": 0 + } + ] + } +} diff --git a/assets/labs/relaxing-pump-needle.power.json b/assets/labs/relaxing-pump-needle.power.json new file mode 100644 index 0000000..c1600f0 --- /dev/null +++ b/assets/labs/relaxing-pump-needle.power.json @@ -0,0 +1,875 @@ +{ + "schema": "power.model.v1", + "description": "Unverified shaft-driven finite-rate phase-relaxing pump with finite duct supply, one-way frozen inlet and physical solenoid/spring/stop outlet needle. Explicit initial vapor quality is a research seed, not measured nucleation data. Volume work preserves quality and entropy; bulk phase transfer preserves mass and internal energy. Frozen nozzle transit transports vapor mass and stagnation enthalpy; jet energy, finite-wall entropy and stationary impulse remain explicit. No finite-rate internal nozzle residence, spray, carrier gas, fired receiver or measured calibration.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "relaxing_fuel", + "storage": { + "value": 1.1224174381096273e-07, + "unit": "m3" + }, + "position": { + "value": 6.119809793876271e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 2, + "domain": "relaxing_fuel", + "storage": { + "value": 1e-06, + "unit": "m3" + }, + "position": { + "value": 0.0006000358869693512, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 1, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 100, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.5000897174230433e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 101, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.5000897174230433e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 102, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.5000897174230433e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 103, + "domain": "relaxing_fuel", + "storage": { + "value": 2.5e-08, + "unit": "m3" + }, + "position": { + "value": 1.5000897174230433e-05, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 4, + "domain": "rotational", + "storage": { + "value": 1e-05, + "unit": "kg_m2" + }, + "initial": { + "value": 500, + "unit": "rad_s" + }, + "position": { + "value": 0.5, + "unit": "rad" + } + }, + { + "id": 5, + "domain": "relaxing_fuel", + "storage": { + "value": 0.001, + "unit": "m3" + }, + "position": { + "value": 0.6000358869693513, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 6, + "domain": "relaxing_fuel", + "storage": { + "value": 0.0001, + "unit": "m3" + }, + "position": { + "value": 0.06525472205760498, + "unit": "kg" + }, + "initial": { + "value": 350, + "unit": "k" + }, + "initial_velocity": { + "value": 0, + "unit": "m_s" + }, + "fuel": { + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "maximum_pressure": { + "value": 20000000.0, + "unit": "pa" + }, + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "vapor_specific_heat": { + "value": 717.5, + "unit": "j_kg_k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "reference_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "reference_pressure": { + "value": 100000.0, + "unit": "pa" + }, + "minimum_temperature": { + "value": 200, + "unit": "k" + }, + "maximum_temperature": { + "value": 600, + "unit": "k" + }, + "lower_heating_value": { + "value": 44000000.0, + "unit": "j_kg" + }, + "liquid_bulk_modulus": { + "value": 1500000000.0, + "unit": "pa" + }, + "phase_relaxation_time_ns": 1000000 + }, + "initial_vapor_mass_fraction": { + "value": 0.001, + "unit": "fraction" + } + }, + { + "id": 7, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0.001, + "unit": "m" + } + } + ], + "components": [ + { + "id": 10, + "kind": "relaxing_fuel_duct", + "node_a": 5, + "node_b": 2, + "heat_node": 3, + "parameters": { + "cells": [ + 100, + 101, + 102, + 103 + ], + "area": { + "value": 1e-06, + "unit": "m2" + }, + "linear_resistance": { + "value": 0, + "unit": "pa_s_m3" + }, + "quadratic_resistance": { + "value": 0, + "unit": "pa_s2_m6" + }, + "fluid_heat_fraction": { + "value": 0.5, + "unit": "fraction" + } + } + }, + { + "id": 12, + "kind": "compressible_fuel_chamber", + "node_a": 4, + "node_b": 1, + "parameters": { + "minimum_reference_volume": { + "value": 1e-07, + "unit": "m3" + }, + "swept_volume": { + "value": 2e-07, + "unit": "m3" + }, + "phase": { + "value": 0, + "unit": "rad" + } + } + }, + { + "id": 20, + "kind": "compressible_fuel_nozzle", + "node_a": 2, + "node_b": 1, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 4e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + } + } + }, + { + "id": 21, + "kind": "compressible_fuel_nozzle", + "node_a": 1, + "node_b": 6, + "heat_node": 3, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-06, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "phase_mode": "frozen", + "wall_kinetic_fraction": { + "value": 0.4, + "unit": "fraction" + }, + "needle_node": 7, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.001, + "unit": "m" + } + }, + "input_channel": 210 + }, + { + "id": 30, + "kind": "linear_spring", + "node_a": 7, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 1000, + "unit": "n_m" + }, + "damping": { + "value": 0.2, + "unit": "n_s_m" + }, + "rest_angle": { + "value": 0, + "unit": "m" + }, + "ratio": 1 + } + }, + { + "id": 31, + "kind": "solenoid", + "node_a": 7, + "heat_node": 3, + "input_channel": 220, + "initial_input": { + "value": 2, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 2, + "unit": "ohm" + }, + "inductance": { + "value": 0.02, + "unit": "h" + }, + "inductance_gradient": { + "value": 4, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 1, + "unit": "a" + } + } + }, + { + "id": 32, + "kind": "travel_stop", + "node_a": 7, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.001, + "unit": "m" + }, + "stiffness": { + "value": 10000, + "unit": "n_m" + } + } + } + ], + "experiment": { + "duration_ns": 20000000, + "sample_every_ns": 2000000, + "events": [], + "checks": [ + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 2e-07 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "vapor_mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 20, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 21, + "field": "total_fuel_delivered", + "min": 1e-12 + }, + { + "object_id": 21, + "field": "total_vapor_delivered", + "min": 1e-15 + } + ] + } +} diff --git a/assets/labs/vented-tank-liquid-cylinder.power.json b/assets/labs/vented-tank-liquid-cylinder.power.json new file mode 100644 index 0000000..8f5db0c --- /dev/null +++ b/assets/labs/vented-tank-liquid-cylinder.power.json @@ -0,0 +1,725 @@ +{ + "schema": "power.model.v1", + "description": "Research fired engine supplied by a finite geometric tank, finite ideal-gas headspace, shaft-driven pump and tracked relief return. The coupled solve uses actual headspace pressure for inlet/return and conserves gas/liquid/shaft pressure work. An explicit ambient gas orifice opens, closes and reopens; vent mass and enthalpy remain observable. Liquid dose, film evaporation and prescribed burn stay separate. Capacity 2e-7 m3, gas properties, vent geometry and all engine/injector/control parameters are unverified. Slosh/hydrostatic geometry, vapor-phase equilibrium, cavitation, measured filling/valve maps, OEM calibration and actual Unity acceptance remain open.", + "step_ns": 50000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + }, + { + "id": 1520, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4 + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 0.000008, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 0.00004, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8 + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-9, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 0.00002, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + }, + "headspace": { + "capacity": { + "value": 2e-7, + "unit": "m3" + }, + "gas_node": 1520 + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + }, + { + "id": 1521, + "kind": "gas_orifice", + "node_a": 1520, + "node_b": 0, + "input_channel": 960, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-8, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200000000, + "values": [ + { + "channel": 960, + "value": 0 + } + ] + }, + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 0.000012 + } + ] + }, + { + "time_ns": 400000000, + "values": [ + { + "channel": 960, + "value": 1 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 0.000004 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 0.000001, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 0.00005, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 0.000001 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 0.000001, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "abs_max": 1e-12 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 0.000001, + "max": 0.00008 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 0.000008, + "max": 0.00008 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 0.000001 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 0.000001 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1513, + "field": "fill_fraction", + "min": 0, + "max": 1 + }, + { + "object_id": 1520, + "field": "pressure", + "min": 50000, + "max": 200000 + }, + { + "object_id": 1520, + "field": "volume", + "min": 1e-12, + "max": 2e-7 + } + ] + } +} diff --git a/assets/labs/vented-tank-needle-cylinder.power.json b/assets/labs/vented-tank-needle-cylinder.power.json new file mode 100644 index 0000000..75f9803 --- /dev/null +++ b/assets/labs/vented-tank-needle-cylinder.power.json @@ -0,0 +1,858 @@ +{ + "schema": "power.model.v1", + "description": "Research fired engine supplied by a finite geometric tank, finite ideal-gas headspace, shaft-driven pump and tracked relief return. The coupled solve uses actual headspace pressure for inlet/return and conserves gas/liquid/shaft pressure work. An explicit ambient gas orifice opens, closes and reopens; vent mass and enthalpy remain observable. Liquid dose, film evaporation and prescribed burn stay separate. Capacity 2e-7 m3, gas properties, vent geometry and all engine/injector/control parameters are unverified. Slosh/hydrostatic geometry, vapor-phase equilibrium, cavitation, measured filling/valve maps, OEM calibration and actual Unity acceptance remain open.", + "step_ns": 10000, + "nodes": [ + { + "id": 1, + "domain": "rotational", + "storage": { + "value": 0.2, + "unit": "kg_m2" + }, + "initial": { + "value": 600, + "unit": "rpm" + }, + "position": { + "value": 0, + "unit": "deg" + } + }, + { + "id": 2, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 1, + "unit": "bar" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.35, + "premixed": { + "lower_heating_value": { + "value": 44000000, + "unit": "j_kg" + }, + "stoichiometric_air_fuel_ratio": 14.7, + "initial_fractions": { + "fuel": 0, + "fresh_air": 0 + } + } + } + }, + { + "id": 3, + "domain": "thermal", + "storage": { + "value": 500, + "unit": "j_k" + }, + "initial": { + "value": 350, + "unit": "k" + } + }, + { + "id": 5, + "domain": "thermal", + "storage": { + "value": 10, + "unit": "j_k" + }, + "initial": { + "value": 500, + "unit": "k" + } + }, + { + "id": 6, + "domain": "translational", + "storage": { + "value": 0.002, + "unit": "kg" + }, + "initial": { + "value": 0, + "unit": "m_s" + }, + "position": { + "value": 0, + "unit": "m" + } + }, + { + "id": 1500, + "domain": "rotational", + "storage": { + "value": 0.02, + "unit": "kg_m2" + }, + "initial": { + "value": 100, + "unit": "rad_s" + }, + "position": { + "value": 0, + "unit": "rad" + } + }, + { + "id": 1501, + "domain": "hydraulic", + "storage": { + "value": 5e-13, + "unit": "m3_pa" + }, + "initial": { + "value": 8, + "unit": "bar" + } + }, + { + "id": 1520, + "domain": "gas", + "initial": { + "value": 300, + "unit": "k" + }, + "position": { + "value": 100000, + "unit": "pa" + }, + "gas": { + "gas_constant": { + "value": 287, + "unit": "j_kg_k" + }, + "gamma": 1.4 + } + } + ], + "components": [ + { + "id": 10, + "kind": "gas_cylinder", + "node_a": 1, + "node_b": 2, + "parameters": { + "bore": { + "value": 86, + "unit": "mm" + }, + "stroke": { + "value": 86, + "unit": "mm" + }, + "rod_length": { + "value": 143, + "unit": "mm" + }, + "phase": { + "value": 0, + "unit": "rad" + }, + "compression_ratio": 10, + "back_pressure": { + "value": 1, + "unit": "bar" + } + } + }, + { + "id": 11, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 100, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.1, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 0, + "unit": "deg" + }, + "duration_angle": { + "value": 210, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 1 + } + }, + { + "id": 12, + "kind": "gas_orifice", + "node_a": 2, + "input_channel": 101, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 50, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "reservoir_pressure": { + "value": 1.05, + "unit": "bar" + }, + "reservoir_temperature": { + "value": 450, + "unit": "k" + } + }, + "valve_timing": { + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "open_angle": { + "value": 520, + "unit": "deg" + }, + "duration_angle": { + "value": 200, + "unit": "deg" + } + }, + "reservoir_fractions": { + "fuel": 0, + "fresh_air": 0 + } + }, + { + "id": 13, + "kind": "gas_heat_link", + "node_a": 2, + "node_b": 3, + "parameters": { + "conductance": { + "value": 2.5, + "unit": "w_k" + } + } + }, + { + "id": 14, + "kind": "torque_source", + "node_a": 1, + "input_channel": 102, + "initial_input": { + "value": -6, + "unit": "nm" + } + }, + { + "id": 15, + "kind": "premixed_combustion", + "node_a": 1, + "node_b": 2, + "input_channel": 103, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 340, + "unit": "deg" + }, + "duration_angle": { + "value": 80, + "unit": "deg" + }, + "shape_exponent": 3, + "burn_coefficient": 6.9 + } + }, + { + "id": 16, + "kind": "fuel_film", + "node_a": 2, + "node_b": 5, + "parameters": { + "initial_mass": { + "value": 0, + "unit": "kg" + }, + "initial_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_specific_heat": { + "value": 2000, + "unit": "j_kg_k" + }, + "saturation_temperature": { + "value": 400, + "unit": "k" + }, + "latent_internal_energy": { + "value": 300000, + "unit": "j_kg" + }, + "conductance": { + "value": 0.5, + "unit": "w_k" + } + } + }, + { + "id": 17, + "kind": "liquid_fuel_injector", + "node_a": 2, + "input_channel": 104, + "initial_input": { + "value": 0.000008, + "unit": "kg" + }, + "parameters": { + "film_component": 16, + "crank_node": 1, + "cycle_angle": { + "value": 720, + "unit": "deg" + }, + "start_angle": { + "value": 40, + "unit": "deg" + }, + "duration_angle": { + "value": 120, + "unit": "deg" + }, + "maximum_dose": { + "value": 0.00004, + "unit": "kg" + }, + "initial_mass": { + "value": 0.0005, + "unit": "kg" + }, + "supply_temperature": { + "value": 300, + "unit": "k" + }, + "liquid_density": { + "value": 750, + "unit": "kg_m3" + }, + "initial_pressure": { + "value": 8, + "unit": "bar" + }, + "pressure_compliance": { + "value": 5e-13, + "unit": "m3_pa" + }, + "area": { + "value": 0.1, + "unit": "mm2" + }, + "discharge_coefficient": 0.8, + "needle": { + "needle_node": 6, + "closed_position": { + "value": 0, + "unit": "m" + }, + "full_open_position": { + "value": 0.2, + "unit": "mm" + } + } + } + }, + { + "id": 21, + "kind": "linear_spring", + "node_a": 6, + "heat_node": 3, + "parameters": { + "stiffness": { + "value": 40000, + "unit": "n_m" + }, + "damping": { + "value": 0.5, + "unit": "n_s_m" + }, + "rest_angle": { + "value": -0.05, + "unit": "mm" + }, + "ratio": 1 + }, + "node_b": 0 + }, + { + "id": 22, + "kind": "travel_stop", + "node_a": 6, + "parameters": { + "minimum_position": { + "value": 0, + "unit": "m" + }, + "maximum_position": { + "value": 0.2, + "unit": "mm" + }, + "stiffness": { + "value": 1000000, + "unit": "n_m" + } + } + }, + { + "id": 23, + "kind": "solenoid", + "node_a": 6, + "heat_node": 3, + "input_channel": 107, + "initial_input": { + "value": 0, + "unit": "v" + }, + "parameters": { + "resistance": { + "value": 4, + "unit": "ohm" + }, + "inductance": { + "value": 0.002, + "unit": "h" + }, + "inductance_gradient": { + "value": 8, + "unit": "h_m" + }, + "reference_position": { + "value": 0, + "unit": "m" + }, + "initial_current": { + "value": 0, + "unit": "a" + } + } + }, + { + "id": 24, + "kind": "needle_driver", + "node_a": 1, + "parameters": { + "injector_component": 17, + "solenoid_component": 23, + "sample_period_ns": 100000, + "drive_voltage": { + "value": 6.8, + "unit": "v" + } + } + }, + { + "id": 1510, + "kind": "hydraulic_pump", + "node_a": 1500, + "node_b": 1501, + "parameters": { + "inlet_node": 0, + "displacement": { + "value": 1e-9, + "unit": "m3_rad" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1511, + "kind": "liquid_rail_feed", + "node_a": 2, + "parameters": { + "injector_component": 17, + "pump_component": 1510, + "tank_component": 1513 + } + }, + { + "id": 1512, + "kind": "torque_source", + "node_a": 1500, + "input_channel": 950, + "initial_input": { + "value": 0.03, + "unit": "nm" + } + }, + { + "id": 1513, + "kind": "liquid_fuel_tank", + "node_a": 2, + "parameters": { + "injector_component": 17, + "initial_mass": { + "value": 0.00002, + "unit": "kg" + }, + "initial_temperature": { + "value": 320, + "unit": "k" + }, + "headspace": { + "capacity": { + "value": 2e-7, + "unit": "m3" + }, + "gas_node": 1520 + } + } + }, + { + "id": 1514, + "kind": "hydraulic_relief", + "node_a": 1501, + "node_b": 0, + "parameters": { + "coefficient": { + "value": 2e-12, + "unit": "m3_s_pa" + }, + "cracking_pressure": { + "value": 550000, + "unit": "pa" + }, + "reservoir_pressure": { + "value": 0, + "unit": "pa" + } + } + }, + { + "id": 1515, + "kind": "liquid_rail_return", + "node_a": 2, + "parameters": { + "feed_component": 1511, + "valve_component": 1514, + "fluid_heat_fraction": { + "value": 1, + "unit": "fraction" + } + } + }, + { + "id": 1521, + "kind": "gas_orifice", + "node_a": 1520, + "node_b": 0, + "input_channel": 960, + "initial_input": { + "value": 1, + "unit": "fraction" + }, + "parameters": { + "area": { + "value": 2e-8, + "unit": "m2" + }, + "discharge_coefficient": 0.7, + "reservoir_pressure": { + "value": 100000, + "unit": "pa" + }, + "reservoir_temperature": { + "value": 300, + "unit": "k" + } + } + } + ], + "experiment": { + "duration_ns": 600000000, + "sample_every_ns": 10000000, + "events": [ + { + "time_ns": 200000000, + "values": [ + { + "channel": 960, + "value": 0 + } + ] + }, + { + "time_ns": 200050000, + "values": [ + { + "channel": 102, + "value": -12 + } + ] + }, + { + "time_ns": 250050000, + "values": [ + { + "channel": 104, + "value": 0.000012 + } + ] + }, + { + "time_ns": 400000000, + "values": [ + { + "channel": 960, + "value": 1 + } + ] + }, + { + "time_ns": 400050000, + "values": [ + { + "channel": 102, + "value": -6 + } + ] + }, + { + "time_ns": 450050000, + "values": [ + { + "channel": 104, + "value": 0.000004 + } + ] + } + ], + "checks": [ + { + "object_id": 1, + "field": "speed", + "min": 10, + "max": 300 + }, + { + "object_id": 2, + "field": "pressure", + "min": 10000, + "max": 10000000 + }, + { + "object_id": 2, + "field": "temperature", + "min": 100, + "max": 5000 + }, + { + "object_id": 2, + "field": "mass", + "min": 0.000001, + "max": 0.01 + }, + { + "object_id": 10, + "field": "volume", + "min": 0.00005, + "max": 0.00056 + }, + { + "object_id": 0, + "field": "energy_residual", + "abs_max": 0.000001 + }, + { + "object_id": 0, + "field": "mass_residual", + "abs_max": 1e-14 + }, + { + "object_id": 11, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 12, + "field": "opening", + "min": 0, + "max": 1 + }, + { + "object_id": 15, + "field": "heat_released", + "min": 300, + "max": 20000 + }, + { + "object_id": 15, + "field": "fuel_burned", + "min": 0.000001, + "max": 0.001 + }, + { + "object_id": 0, + "field": "source_work", + "max": -1 + }, + { + "object_id": 0, + "field": "fuel_residual", + "abs_max": 1e-14 + }, + { + "object_id": 0, + "field": "fresh_air_residual", + "abs_max": 1e-14 + }, + { + "object_id": 16, + "field": "mass", + "min": 0, + "max": 0.00008 + }, + { + "object_id": 16, + "field": "evaporated_fuel_mass", + "min": 0.000001, + "max": 0.00008 + }, + { + "object_id": 16, + "field": "film_wall_heat", + "min": 1, + "max": 50 + }, + { + "object_id": 17, + "field": "pressure", + "min": 100000, + "max": 920541.8 + }, + { + "object_id": 17, + "field": "total_fuel_delivered", + "min": 0.000008, + "max": 0.00008 + }, + { + "object_id": 17, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 23, + "field": "current", + "abs_max": 5 + }, + { + "object_id": 23, + "field": "copper_heat", + "min": 0, + "max": 100 + }, + { + "object_id": 24, + "field": "command_voltage", + "min": 0, + "max": 6.8 + }, + { + "object_id": 1511, + "field": "total_fuel_delivered", + "min": 0.000001 + }, + { + "object_id": 0, + "field": "hydraulic_volume_residual", + "abs_max": 1e-14 + }, + { + "object_id": 1513, + "field": "mass", + "min": 0, + "max": 0.00052 + }, + { + "object_id": 1513, + "field": "tank_state", + "min": 0, + "max": 1 + }, + { + "object_id": 1515, + "field": "total_fuel_delivered", + "min": 0.000001 + }, + { + "object_id": 1515, + "field": "fluid_heat", + "min": 0, + "max": 1 + }, + { + "object_id": 1513, + "field": "fill_fraction", + "min": 0, + "max": 1 + }, + { + "object_id": 1520, + "field": "pressure", + "min": 50000, + "max": 200000 + }, + { + "object_id": 1520, + "field": "volume", + "min": 1e-12, + "max": 2e-7 + } + ] + } +} diff --git a/docs/AGENT_API.de.md b/docs/AGENT_API.de.md index 3fd012e..500bff3 100644 --- a/docs/AGENT_API.de.md +++ b/docs/AGENT_API.de.md @@ -74,7 +74,7 @@ Windows verwendet denselben Befehl `dotnet` und einen absoluten Pfad zur DLL. Ei ## Werkzeuge und Ergebnisse -In Agent-API-Version 0.29.0 nimmt `get_example_model` einen optionalen `name` an: `electrothermal` (Vorgabe), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` oder `fired-hydraulic-ravigneaux`. `get_capabilities` nennt unterstützte Modelltreue-Stufen, lesbare Asset-Versionen, Lösergrenzen und Eingabegrenzen. Exporte verwenden `power.asset.v24`; Assets v1–v23 bleiben lesbar. Ausgabekanäle und ihre Einheiten liefern die Modellprüfung und die Sitzungserzeugung. Bestandene Labor-KPIs begründen keinen vollständigen oder kalibrierten Antriebsstrang. +In Agent-API-Version 0.46.0 akzeptiert `get_example_model` einen optionalen `name` mit Standardwert `electrothermal`. `get_capabilities.examples` listet alle 67 Beispiele einschließlich endlicher Tanks und Kraftstoffumlauf auf. CLI `list-labs` liefert alle 68 Labore als [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json)-JSON; `thermal-network` ist konstruktionsgemäß nur im CLI verfügbar. Die Fähigkeiten nennen auch Komponenten, Modelltreue, Solvergrenzen und Eingabegrenzen. Exporte nutzen `power.asset.v41` mit erhaltenen v1-v40-Lesern. Validierung und Sitzungserstellung liefern Ausgabekanäle und Einheiten. Bestandene Labor-KPIs belegen keinen vollständigen oder kalibrierten Antriebsstrang. | Werkzeug | Aufgabe | |---|---| @@ -581,3 +581,133 @@ Berichte behalten Leitungs- und Kammerdruck, Weg, Kontaktkapazität, Pumpenarbei Volumen, Wärme von Reibung, Drossel und Dämpfung sowie jeden Modellhash. Volle Revisionen, Abbruch, spätes Rollback und unabhängige Abzweigungen zum Lösen der Ventile verwenden die gewöhnlichen Verträge. Der Graph verwendet bestehende Datensätze von Asset v24, kein neues Serialisierungsformat. Siehe [AT_HYDRAULIC_ACTUATION.de.md](AT_HYDRAULIC_ACTUATION.de.md). + +## Hydraulische AT-Rückführung + +`at_controller` akzeptiert einen ganzzahligen Sollgang in [-1,4]; null bedeutet Neutral. Er besitzt fünf Füll-/Ablassventilpaare und optional die Wandlerüberbrückung. Die Reihenfolge lautet Trägereingang, kleines Sonnenrad, großes Sonnenrad, Trägerbremse, große Sonnenradbremse, dann Überbrückung. + +`controlled-hydraulic-ravigneaux` und `controlled-fired-hydraulic-ravigneaux` verwenden Wunschkanal 900 und Regler-ID 1400. Sie behalten 99 und 122 gemeldete Zustände innerhalb der unveränderten Grenze 128. v41 speichert Routen, Verstärkungen und Uhren und liest v1-v40. + +Diese Regelung ist Forschung; Parameter bleiben `unverified`. ECU-Drehmomentkoordination, detaillierte Sensoren/Ventile, umfassende Fahrzeugfehler und OEM-Kalibrierung sind offen. Managed- und Standard-Prüfungen belegen keine tatsächliche Unity Editor/Play/Player/IL2CPP-Abnahme. + +[AT_CONTROL.de.md](AT_CONTROL.de.md) + +## Pumpengespeiste Flüssigkraftstoffschiene + +`liquid_rail_feed` verbindet einen Flüssiginjektor mit einer bestehenden Verdrängerpumpe und expliziter Stoff-/Wärmegrenze. Der hydraulische Auslassknoten muss Schienenkompliance und anfänglichem Absolutdruck entsprechen. Pumpe und Injektor besitzen diesen Knoten; andere unbilanzierte Fluidpfade werden abgelehnt. + +v41 speichert Speiseverknüpfungen und Quellentemperatur und liest v1-v40. Analytischer Wellen-/Druckaustausch, unabhängige simultane ODE-Verfeinerung, Wärmemischung, Masse/Kraftstoff/Energie/Volumenbilanzen, Rückstrom und vollständiges rollback haben eigene Prüfungen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[PUMP_FED_FUEL.de.md](PUMP_FED_FUEL.de.md) + +## Endlicher Flüssigkraftstofftank + +`liquid_fuel_tank` speichert endliche Flüssigkeitsmasse und kalorische Energie mit Dichte, Filmwärmereferenz und Heizwert des zugehörigen Injektors. Die Speisung wählt ihn mit `tank_component` und lässt `supply_temperature` weg. Jeder Tank gehört einer stofflich passenden Speisung. + +Kalorische und chemische Tankenergie gehören zur gesamten Speicherung. Interner Transfer fügt keine äußere Masse oder chemische Versorgung hinzu. Der erklärte Einlassdruck behält seine Druckarbeitsgrenze. Gaseinlass/-auslass kann weiterhin chemische Grenzenergie tragen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[LIQUID_FUEL_TANK.de.md](LIQUID_FUEL_TANK.de.md) + +## Verfolgter Kraftstoff-Entlastungsrücklauf + +`liquid_rail_return` verbindet eine Speisung mit exklusivem einseitigem `hydraulic_relief`. Das Ventil führt die Schiene zum gleichen vorgegebenen Pumpeneinlassdruck. Alle Fluidpfade registrieren; unpassende Ports, doppelte Eigentümer und unbilanzierte Pfade werden abgelehnt. + +`fluid_heat_fraction` wählt ausdrücklich den Anteil [0,1] des Ventilverlusts im Rückkraftstoff. Restwärme folgt dem erklärten Ventilwärmepfad. Gleichzeitige Schienen-/Tankmischung erhält Masse-, Chemie-, Druckarbeits- und Wärmebilanzen. Rückfluss zur Außenquelle führt Masse/Energie über die Grenze hinaus. + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## Tankgeometrie und endlicher Gasraum + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +Die gekoppelte Lösung tauscht Druckarbeit zwischen Welle, Rail und Gas ohne externe Druckquelle. Gasdrosseln und Wärmeverbindungen bilden explizite Entlüftung/Wärmewege. `pressure`, `fill_fraction`, vorzeichenbehaftete kumulierte `hydraulic_work` sowie Gasmasse, Energie und Volumen lesen. Dosis, Flüssigkeit, Verdampfung und Verbrennung bleiben getrennt. + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Optionales `fuel_film.parameters.phase_equilibrium` deklariert `reference_pressure` in `pa` oder `bar` und `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` ist die Referenztemperatur; `latent_internal_energy` die Dampf-minus-Flüssigkeits-Innenenergie dort. Jeder Gleichgewichtsempfänger besitzt einen Film. Der erklärte Anfangssnapshot bleibt erhalten; akzeptierte Intervalle gleichen Gas und Flüssigkeit mit endlicher Wandwärme aus. + +`mass_flow` ist der vorzeichenbehaftete Nettophasentransfer des vollständigen Physikschritts. `evaporated_fuel_mass` und `condensed_fuel_mass` summieren positive und negative Massen, ohne sich aufhebende Teilprojektionen doppelt zu zählen. `vapor_partial_pressure` zeigt den Kraftstoffpartialdruck. Wärme-, Masse- und Chemiebilanzen enthalten beide Phasen. + +Die Standardversorgung verwirft Flüssigkeit unter Sättigung. Optionales endliches Tankgleichgewicht löst Quellendampftransfer mit druckkorrigierten Potenzialen. Rail und Ansaugung führen weiter getrennte Flüssigkeit; Blasenmitnahme und kavitierende Strömung benötigen weitere Physik. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) + +## Transportnetz für Kraftstoff im Gleichgewicht + +`equilibrium-fuel-network` oder `electrothermal-fuel-network` per MCP anfordern oder dasselbe JSON per CLI ausführen. Pro Behälter `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` und `specific_enthalpy` lesen. `internal_energy` enthält die elastische Wand; chemische Energie bleibt separat. Verbindungen zeigen vorzeichenbehaftete Flüsse, kumulierte Masse, `transport_energy` und Paarentropieänderung. + +Ein begrenzter impliziter Euler löst dieselbe angenommene Masse q und Enthalpie H für beide Behälter. Verbindungen laufen nach stabiler Komponenten-ID; endliche Bäder nutzen einen weiteren konservativen Teilschritt. Die Kopplung ist erster Ordnung. Massen-, Temperatur- oder Druckgrenzen und Solverfehler verwerfen den ganzen Batch einschließlich Eingaben, kompensierter Historien und spekulativer Kupplungsintervalle. + +[Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + +## Wellengetriebene phasenauflösende Kraftstoffpumpe + +`equilibrium-fuel-pump` oder `electric-equilibrium-fuel-pump` per MCP anfordern oder JSON per CLI ausführen. Kammermasse, Temperatur, Druck, Dampfanteile und Energie neben Ventilförderung und Wellendrehzahl lesen. Komponenten-`volume` ist geometrisch; Knoten-`volume` enthält Wandausdehnung. `torque`, `hydraulic_power` und `hydraulic_work` zeigen den inneren Wellenaustausch. + +Der geschlossene mechanische Teilschritt hält Masse und Entropie fest. Speicherenergie umfasst Fluid und elastische Wand, daher bezieht sich Wellenarbeit auf geometrisches Referenzvolumen. Dieselbe angenommene Energieänderung bestimmt Druckmoment im gemeinsamen Solver mit Getrieben, Wandlern, Hydraulik und spekulativen Kupplungsintervallen. Expansion treibt die Welle; positives `hydraulic_work` geht in die Kammer. Keine zusätzliche äußere Druckquelle wird eingeführt. + +[Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + +## Kompressible Kraftstoffkanäle im Gleichgewicht + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. + +`liquid_bulk_modulus` angeben, `compliance` weglassen und `initial_velocity` für jeden Knoten explizit setzen. 1–24 geordnete, unterschiedliche interne `cells` gehören jeweils genau einem Kanal. Die Zelllänge ist Volumen geteilt durch `area`. Behälter ruhen und dürfen keine internen Zellen sein. Alle Anschlüsse verwenden dasselbe Material. `linear_resistance` und `quadratic_resistance` beschreiben den gesamten Leitungswiderstand, verteilt nach Zellvolumen; `fluid_heat_fraction` verteilt Reibungswärme auf Fluid und Wand. Es gibt keinen direkten Öffnungseingang. + +[Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) + +## Wellengetriebene kompressible Kraftstoffkammern + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. + +`node_a` ist rotatorisch, `node_b` hat genau einen Geometrieeigentümer. `minimum_reference_volume`, `swept_volume` und `phase` angeben; das Anfangsvolumen muss zum Anfangswinkel passen. Der gemischte Behälter hat keine mittlere Geschwindigkeit und darf keine interne Zelle sein. Die masselose sinusförmige Mechanik ergänzt keine Kolben- oder Nockenträgheit; die Wellenträgheit ist explizit. Der äußere Gehäusedruck ist null. + +[Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) + +## Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. + +Fläche, effektiven Flächenkoeffizienten und `wall_kinetic_fraction` mit endlicher thermischer Wand angeben. `initial_input` ist die Öffnung in [0,1], optional per Kanal veränderbar. Optionale `needle_node`, `closed_position` und `full_open_position` multiplizieren den Befehl mit der tatsächlichen translatorischen Nadelöffnung. Ports haben keine mittlere Geschwindigkeit, gleiche Stoffdaten und Heizwerte und dürfen keine internen Zellen sein. Gegendruck schließt diese ideale Grenze ohne Öffnungsdruckschwelle. + +[Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) + +## Kraftstoffdüsentransit im Phasengleichgewicht + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. + +Druck und spezifische Entropie bestimmen stabile Flüssigkeit, Dampf oder Koexistenz. Die Schließung nutzt gleiche chemische Potenziale und bestehende Temperatur-/Druckgrenzen. Temperaturendpunkte erlauben nur binary64-Rundungsnachbarschaften. Fläche, Wandwärme, Öffnung und reale Nadel folgen dem gemeinsamen Vertrag. Der ideale Strahl expandiert vollständig zum Empfänger; stationärer Impuls fügt weder axiale Nadelkraft noch mechanische Arbeit hinzu. + +[Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) + +## Kraftstoff-Phasenrelaxation mit endlicher Rate + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. + +`relaxing-fuel-evaporation` oder `relaxing-fuel-duct` ausführen. Beobachtbar sind tatsächlicher und Gleichgewichtsanteil, Affinität, Phasenentropie, Dampfbilanzen an Ports und globales Dampfresiduum. Verdampfungs- und Kondensationshistorien trennen den Nettoquelltransfer jedes akzeptierten Takts nach Vorzeichen; sie zählen keine mikroskopischen Bruttoströme. Prüfungen umfassen die unabhängige Exponentiallösung, Entropieableitungen, eingefrorene Akustik, den steifen Gleichgewichtsgrenzfall, zeitliche Selbstverfeinerung und unabhängige linear-akustische Gitterverfeinerung. Transaktionen, portables Replay und tatsächliches MCP werden getrennt geprüft; Zahlen stehen in den Validierungsnachweisen. + +[Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) + +## Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. + +`relaxing-fuel-chamber` oder `relaxing-pump-needle` ausführen. Beobachtbar sind Kammervolumen/-arbeit, tatsächlicher und Gleichgewichtsanteil, Phasenentropie, `total_vapor_delivered`, Portinventare und globales Dampfresiduum. Prüfungen vergleichen reine Adiabaten, unabhängige Druckquadratur bei festem Anteil, infinitesimale Arbeit, reversiblen Zyklus und unabhängige Wellen-ODE mit idealem Dampf. Gekoppelte Verfeinerung, Quellzeit gemeinsamer Behälter, vollständige Bilanzen, Abbruch, Rücksetzung, Zweige, Allokationen, portables Replay und tatsächliches MCP werden getrennt geprüft. Zahlen stehen in den Validierungsnachweisen. + +[Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) diff --git a/docs/AGENT_API.es.md b/docs/AGENT_API.es.md index 0491d20..d09ad1d 100644 --- a/docs/AGENT_API.es.md +++ b/docs/AGENT_API.es.md @@ -76,7 +76,7 @@ Windows usa el mismo comando `dotnet` y una ruta absoluta a la DLL. Una conexió ## Herramientas y resultados -En la versión 0.29.0 de la API de agente, `get_example_model` acepta un `name` opcional: `electrothermal` (por defecto), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` o `fired-hydraulic-ravigneaux`. `get_capabilities` anuncia los niveles de fidelidad admitidos, las versiones de asset legibles, los límites del solver y las cotas de entrada. Las exportaciones usan `power.asset.v24`; los assets v1–v23 siguen siendo legibles. La validación del modelo y la creación de sesión devuelven los canales de salida y sus unidades. Aprobar los KPI de un laboratorio no establece un grupo motopropulsor completo ni calibrado. +En la API de agente versión 0.46.0, `get_example_model` acepta un `name` opcional, por defecto `electrothermal`. `get_capabilities.examples` enumera los 67 ejemplos, incluidos tanque finito y recirculación. CLI `list-labs` devuelve los 68 laboratorios como JSON [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json); `thermal-network` es exclusivo de CLI por diseño. Las capacidades también anuncian componentes, fidelidad, límites del solver y entradas. Los exports usan `power.asset.v41`, conservando lectores v1-v40. La validación y creación de sesión devuelven canales y unidades. Los KPI aprobados no establecen un tren motriz completo o calibrado. | Herramienta | Finalidad | |---|---| @@ -605,3 +605,133 @@ barrido, el calor de fricción, de restricción y de amortiguación, y cada hash la cancelación, la reversión tardía y las bifurcaciones independientes de liberación de válvula usan los contratos ordinarios. El grafo usa registros existentes del asset v24, no un formato de serialización nuevo. Consulta [AT_HYDRAULIC_ACTUATION.es.md](AT_HYDRAULIC_ACTUATION.es.md). + +## Realimentación de AT hidráulica + +`at_controller` acepta una marcha solicitada entera en [-1,4]; cero es punto muerto. Controla cinco pares de válvulas de llenado/vaciado y el bloqueo opcional del convertidor. El orden es entrada del portasatélites, solar pequeño, solar grande, freno del portasatélites, freno del solar grande y bloqueo. + +`controlled-hydraulic-ravigneaux` y `controlled-fired-hydraulic-ravigneaux` usan canal 900 e ID 1400. Conservan 99 y 122 estados declarados dentro del límite sin cambios de 128. v41 conserva rutas, ganancias y relojes y lee v1-v40. + +Son controles de investigación y los parámetros siguen `unverified`. Coordinación de par ECU, sensores/válvulas detallados, fallos completos del vehículo y calibración OEM siguen pendientes. Las pruebas managed y Standard no acreditan Unity Editor/Play/Player/IL2CPP real. + +[AT_CONTROL.es.md](AT_CONTROL.es.md) + +## Raíl de combustible líquido alimentado por bomba + +`liquid_rail_feed` asocia un inyector líquido con una bomba de desplazamiento existente y una frontera explícita de materia/calor. El nodo de salida hidráulica debe coincidir con la compliancia y presión absoluta inicial del raíl. Bomba e inyector poseen ese nodo; otras rutas fluidas no contabilizadas se rechazan. + +v41 conserva enlaces y temperatura de fuente y lee v1-v40. Intercambio analítico eje/presión, refinamiento ODE simultáneo independiente, mezcla térmica, balances masa/combustible/energía/volumen, retorno y rollback completo tienen verificaciones separadas. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[PUMP_FED_FUEL.es.md](PUMP_FED_FUEL.es.md) + +## Tanque finito de combustible líquido + +`liquid_fuel_tank` guarda masa líquida finita y energía térmica con densidad, referencia térmica de película y poder calorífico del inyector asociado. La alimentación lo elige con `tank_component` y omite `supply_temperature`. Cada tanque pertenece a una alimentación compatible. + +Energías térmica y química del tanque forman el almacenamiento completo. La transferencia interna no agrega masa ni suministro químico externos. La presión de entrada prescrita mantiene su frontera de trabajo de presión. Admisión/escape gaseoso aún pueden llevar energía química. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[LIQUID_FUEL_TANK.es.md](LIQUID_FUEL_TANK.es.md) + +## Retorno de alivio de combustible trazado + +`liquid_rail_return` une una alimentación con un `hydraulic_relief` unidireccional exclusivo. La válvula conecta el raíl a la misma presión de entrada prescrita de la bomba. Registrar toda ruta fluida; puertos incompatibles, propiedad duplicada y rutas no seguidas se rechazan. + +`fluid_heat_fraction` elige explícitamente la fracción [0,1] de pérdida transportada por combustible retornado. El resto sigue la ruta térmica declarada. Mezcla simultánea raíl/tanque conserva masa, química, trabajo de presión y calor. El retorno a fuente externa saca masa/energía por la frontera. + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## Geometría del tanque y espacio gaseoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +El solver acoplado intercambia trabajo de presión entre eje, riel y gas sin fuente externa. Orificios gaseosos y enlaces térmicos dan venteo/calor explícitos. Leer `pressure`, `fill_fraction`, `hydraulic_work` acumulado con signo y masa, energía, volumen del gas. Dosis, líquido, evaporación y combustión permanecen separados. + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Equilibrio de fases del combustible y límites de suministro + +La opción `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` en `pa` o `bar`, y `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` es la temperatura de referencia; `latent_internal_energy` es la diferencia de energía interna vapor-líquido allí. Cada receptor en equilibrio tiene una película. La instantánea inicial se conserva; los intervalos aceptados equilibran gas y líquido e intercambian calor con la pared finita. + +`mass_flow` es la transferencia neta con signo del paso físico completo. `evaporated_fuel_mass` y `condensed_fuel_mass` acumulan sus masas positiva y negativa sin duplicar proyecciones que se cancelan. `vapor_partial_pressure` muestra la presión parcial de combustible. Los balances térmico, másico y químico incluyen ambas fases. + +El suministro predeterminado rechaza líquido bajo saturación. La opción de tanque finito resuelve vapor fuente con potenciales corregidos por presión. Riel y aspiración aún llevan líquido separado; burbujas y flujo cavitante requieren más física. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) + +## Red de transporte de combustible en equilibrio + +Pedir `equilibrium-fuel-network` o `electrothermal-fuel-network` por MCP o ejecutar el mismo JSON con CLI. Leer `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Aquí `internal_energy` incluye pared elástica y la energía química es aparte. Los enlaces exponen flujos con signo, masa acumulada, `transport_energy` y cambio de entropía de pareja. + +Euler implícito acotado resuelve las mismas masa q y entalpía H aceptadas en ambos recipientes. Los enlaces avanzan por ID estable; el baño finito usa otro subpaso conservativo. El acoplamiento es de primer orden. Masa, temperatura o presión fuera de límites y fallos rechazan todo el lote, incluidas entradas, historias compensadas e intervalos especulativos del embrague. + +[Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + +## Bomba de combustible con cambio de fase impulsada por eje + +Pedir `equilibrium-fuel-pump` o `electric-equilibrium-fuel-pump` por MCP o ejecutar su JSON en CLI. Leer masa, temperatura, presión, vapor y energía junto a entrega de válvulas y velocidad del eje. `volume` del componente es geométrico; el del nodo incluye expansión de pared. `torque`, `hydraulic_power` y `hydraulic_work` muestran el intercambio interno del eje. + +El subpaso mecánico cerrado conserva masa y entropía. La energía incluye fluido y pared elástica, así que el trabajo del eje usa el volumen geométrico de referencia. El mismo cambio aceptado determina el par en el solver mecánico conjunto con engranajes, convertidores, hidráulica e intervalos especulativos del embrague. La expansión impulsa el eje; `hydraulic_work` positivo entra a la cámara. No se añade otra fuente externa de presión. + +[Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + +## Conductos de combustible compresible en equilibrio + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. + +Declare `liquid_bulk_modulus`, omita `compliance` y especifique `initial_velocity` en cada nodo. Declare 1–24 `cells` internas distintas y ordenadas; cada una pertenece a un conducto. Su longitud es volumen dividido por `area`. Los depósitos tienen velocidad cero y no pueden ser celdas internas. Todos los puertos comparten material. `linear_resistance` y `quadratic_resistance` representan la resistencia total, distribuida por volumen; `fluid_heat_fraction` reparte calor de fricción entre fluido y pared. No hay entrada directa de apertura. + +[Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) + +## Cámaras de combustible compresible accionadas por eje + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. + +`node_a` es rotacional y `node_b` tiene un único propietario geométrico. Declare `minimum_reference_volume`, `swept_volume` y `phase`; el volumen inicial debe coincidir con el ángulo inicial. El depósito mezclado tiene velocidad global cero y no puede ser celda interna. El mecanismo sinusoidal sin masa no añade inercia de pistón o leva; la inercia del eje es explícita. La presión exterior de carcasa es cero. + +[Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) + +## Toberas de combustible compresible de calidad congelada + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. + +Declare área, coeficiente de área efectiva y `wall_kinetic_fraction`, con pared térmica finita. `initial_input` es apertura en [0,1], modificable por canal opcional. Los opcionales `needle_node`, `closed_position` y `full_open_position` multiplican el mando por la apertura real de la aguja translacional. Los puertos tienen velocidad global cero, material y poder calorífico iguales y no pueden ser celdas internas. La contrapresión cierra esta frontera ideal de umbral cero. + +[Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) + +## Tránsito de combustible en equilibrio por toberas + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. + +Presión y entropía específica determinan líquido estable, vapor o coexistencia. El cierre usa igualdad de potenciales químicos y límites térmicos/barométricos existentes. Los extremos térmicos solo admiten vecindades de redondeo binary64. Área, calor de pared, apertura y aguja real siguen el contrato común. El chorro se expande idealmente hasta el receptor; su impulso estacionario no añade fuerza axial ni trabajo mecánico. + +[Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) + +## Relajación de fase del combustible a velocidad finita + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. + +Ejecute `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Observe fracciones real y de equilibrio, afinidad, entropía de fase, balances de vapor en puertos y residuo global. Los historiales de evaporación y condensación separan por signo la transferencia neta de fuente de cada paso aceptado; no cuentan intercambios microscópicos brutos. Se verifican la solución exponencial independiente, derivadas de entropía, acústica congelada, límite rígido de equilibrio, autorrefinamiento temporal y refinamiento espacial acústico lineal independiente. Transacciones, reproducción portátil y MCP real se comprueban aparte; los valores están en la evidencia de validación. + +[Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) + +## Bombas de combustible con relajación y dosificación congelada + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. + +Ejecute `relaxing-fuel-chamber` o `relaxing-pump-needle`. Observe volumen/trabajo, fracciones real y de equilibrio, entropía de fase, `total_vapor_delivered`, inventarios de puertos y residuo global de vapor. Se comparan adiabáticas puras, cuadratura independiente de presión a fracción fija, trabajo infinitesimal, ciclo reversible y ODE independiente de eje con vapor ideal. Refinamiento acoplado, tiempo de fuente en depósitos compartidos, balances completos, cancelación, reversión, ramas, asignaciones, reproducción portátil y MCP real se verifican aparte. Los valores figuran en la evidencia de validación. + +[Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) diff --git a/docs/AGENT_API.fr.md b/docs/AGENT_API.fr.md index 8f977b4..d8e47d2 100644 --- a/docs/AGENT_API.fr.md +++ b/docs/AGENT_API.fr.md @@ -42,7 +42,7 @@ Windows utilise la même commande `dotnet` et un chemin absolu vers la DLL. Une ## Outils et résultats -Dans la version 0.29.0 de l'API agent, `get_example_model` accepte un `name` facultatif : `electrothermal` (défaut), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` ou `fired-hydraulic-ravigneaux`. `get_capabilities` annonce les niveaux de fidélité pris en charge, les versions d'asset lisibles, les limites du solveur et les bornes d'entrée. Les exports utilisent `power.asset.v24` ; les assets v1–v23 restent lisibles. Les canaux de sortie et leurs unités sont renvoyés par la validation du modèle et la création de session. Des KPI de laboratoire réussis n'établissent pas un groupe motopropulseur complet ou calibré. +Dans l'API agent version 0.46.0, `get_example_model` accepte un `name` optionnel, avec `electrothermal` par défaut. `get_capabilities.examples` liste les 67 exemples disponibles, dont les modèles à réservoir fini et recirculation. CLI `list-labs` retourne les 68 laboratoires en JSON [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json) ; `thermal-network` est réservé au CLI par conception. Les capacités annoncent aussi composants, fidélité, limites du solveur et bornes d'entrée. Les exports utilisent `power.asset.v41`, avec lecteurs v1-v40 conservés. Validation et création de session retournent les canaux et unités. Des KPI de laboratoire réussis ne constituent pas un groupe motopropulseur complet ou calibré. | Outil | Rôle | |---|---| @@ -287,3 +287,133 @@ Demandez `resolved-ravigneaux-transmission` ou `fired-resolved-ravigneaux-conver Demandez `hydraulic-ravigneaux-transmission` ou `fired-hydraulic-ravigneaux`. Utilisez des fractions explicites de remplissage/vidange sur 700/701 jusqu'à 708/709 ; le verrouillage allumé utilise 710/711. Les ID d'engagement de plage précédents sont absents. Validez et découvrez les canaux avant d'écrire. La pression/course/contact du piston déterminent les capacités ; une commande acceptée par l'API ne confirme pas le verrouillage physique. Les rapports conservent la pression de ligne/chambre, la course, la capacité de contact, le travail de pompe, le volume balayé, la chaleur de frottement/restriction/amortissement et chaque hachage de modèle. Les révisions complètes, l'annulation, le rollback tardif et les dérivations indépendantes de relâchement de vanne utilisent les contrats ordinaires. Le graphe utilise les enregistrements d'asset v24 existants, pas un nouveau format de sérialisation. Voir [AT_HYDRAULIC_ACTUATION.fr.md](AT_HYDRAULIC_ACTUATION.fr.md). + +## Régulation hydraulique de boîte AT + +`at_controller` accepte un rapport demandé entier dans [-1,4] ; zéro désigne le point mort. Il commande cinq paires de vannes de remplissage/vidange et le verrouillage facultatif du convertisseur. L'ordre est entrée du porte-satellites, petit soleil, grand soleil, frein du porte-satellites, frein du grand soleil, puis verrouillage. + +Les exemples `controlled-hydraulic-ravigneaux` et `controlled-fired-hydraulic-ravigneaux` utilisent le canal 900 et l'ID 1400. Ils conservent 99 et 122 états déclarés dans la limite inchangée de 128. Le format v41 conserve routes, gains et horloges et lit v1-v40. + +Ces commandes sont expérimentales et les paramètres restent `unverified`. Coordination du couple ECU, capteurs/vannes détaillés, défauts véhicule complets et calibration OEM restent à réaliser. Les contrôles gérés et Standard ne valident pas Unity Editor/Play/Player/IL2CPP réel. + +[AT_CONTROL.fr.md](AT_CONTROL.fr.md) + +## Rampe de carburant liquide alimentée par pompe + +`liquid_rail_feed` associe un injecteur liquide à une pompe volumétrique existante et à une frontière matière/thermique explicite. Le nœud de sortie hydraulique doit correspondre à la compliance et à la pression absolue initiale de la rampe. Pompe et injecteur possèdent ce nœud ; les autres chemins fluides non suivis sont rejetés. + +Le format v41 conserve les liens et la température source et lit v1-v40. Échange analytique arbre/pression, raffinement ODE simultané indépendant, mélange calorique, bilans masse/carburant/énergie/volume, retour inverse et rollback complet ont des contrôles séparés. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[PUMP_FED_FUEL.fr.md](PUMP_FED_FUEL.fr.md) + +## Réservoir fini de carburant liquide + +`liquid_fuel_tank` stocke masse liquide finie et énergie calorique avec la densité, référence thermique du film et pouvoir calorifique de l'injecteur associé. L'alimentation le choisit via `tank_component` et omet `supply_temperature`. Chaque réservoir appartient à une alimentation compatible. + +Énergies calorique et chimique du réservoir entrent dans le stockage complet. Le transfert interne n'ajoute aucune matière ni énergie chimique externe. La pression d'entrée prescrite garde sa frontière de travail de pression. Admission/échappement gazeux peuvent encore transporter de l'énergie chimique. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[LIQUID_FUEL_TANK.fr.md](LIQUID_FUEL_TANK.fr.md) + +## Retour suivi de décharge de carburant + +`liquid_rail_return` associe une alimentation à un `hydraulic_relief` unidirectionnel exclusif. La soupape relie la rampe à la même pression d'entrée prescrite que la pompe. Toute voie doit être enregistrée ; ports incompatibles, propriété dupliquée et voies non suivies sont rejetés. + +`fluid_heat_fraction` choisit explicitement la part [0,1] des pertes transportée par le carburant de retour. Le reste suit le chemin thermique déclaré. Le mélange simultané rampe/réservoir conserve les bilans matière, chimie, travail de pression et chaleur. Les retours à source externe sortent matière et énergie par la frontière. + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## Géométrie du réservoir et espace gazeux fini + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +Le solveur couplé échange le travail de pression entre arbre, rampe et gaz sans source externe. Orifices gazeux et liens thermiques fournissent ventilation et chaleur explicites. Lire `pressure`, `fill_fraction`, `hydraulic_work` cumulé signé et masse, énergie, volume du gaz. Dose, liquide livré, évaporation et combustion restent distincts. + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Équilibre des phases du carburant et limites d'alimentation + +L'option `fuel_film.parameters.phase_equilibrium` déclare `reference_pressure` en `pa` ou `bar` et `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` est la température de référence ; `latent_internal_energy` est la différence d'énergie interne vapeur-liquide à cette température. Un film possède chaque récepteur en équilibre. L'état initial déclaré est conservé ; les intervalles acceptés équilibrent gaz et liquide avec échange thermique vers la paroi finie. + +`mass_flow` est le transfert net signé sur le pas physique complet. `evaporated_fuel_mass` et `condensed_fuel_mass` cumulent ses masses positive et négative, sans compter deux fois les projections qui s'annulent. `vapor_partial_pressure` donne la pression partielle du carburant. Les bilans thermiques, massiques et chimiques comprennent les deux phases. + +L'alimentation liquide par défaut rejette les états humides sous saturation. L'option de réservoir à volume fini résout le transfert vapeur source avec potentiels chimiques corrigés. Rail et aspiration restent liquides séparés ; entraînement de bulles et écoulement cavitant demandent une physique supplémentaire. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) + +## Réseau de transport de carburant en équilibre + +Demander `equilibrium-fuel-network` ou `electrothermal-fuel-network` par MCP, ou exécuter le même JSON par CLI. Lire `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` et `specific_enthalpy` par récipient. Ici `internal_energy` comprend la paroi élastique ; l'énergie chimique est séparée. Les liens exposent débits signés, masse cumulée, `transport_energy` et variation d'entropie de paire. + +Un Euler implicite borné trouve les mêmes masse q et enthalpie H acceptées pour les deux récipients. Les liens avancent par ID de composant stable ; le bain fini utilise un autre sous-pas conservatif. Le couplage est d'ordre un. Masse, température ou pression hors limites et échecs rejettent tout le lot, entrées, historiques compensés et intervalles spéculatifs d'embrayage compris. + +[Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + +## Pompe carburant diphasique entraînée par arbre + +Demander `equilibrium-fuel-pump` ou `electric-equilibrium-fuel-pump` par MCP, ou exécuter leur JSON par CLI. Lire masse, température, pression, vapeur et énergie avec livraison des clapets et vitesse d'arbre. Le `volume` du composant est géométrique ; celui du nœud inclut la dilatation de paroi. `torque`, `hydraulic_power` et `hydraulic_work` exposent l'échange interne d'arbre. + +Le sous-pas mécanique fermé conserve masse et entropie. L'énergie comprend fluide et paroi élastique ; le travail d'arbre porte donc sur le volume géométrique de référence. La même variation acceptée fournit le couple dans le solveur mécanique joint, engrenages, convertisseurs, hydraulique et intervalles spéculatifs d'embrayage compris. La détente pousse l'arbre ; `hydraulic_work` positif entre dans la chambre. Aucune source de pression extérieure supplémentaire n'est ajoutée. + +[Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + +## Conduites de carburant compressible à l’équilibre + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. + +Déclarer `liquid_bulk_modulus`, omettre `compliance` et fournir explicitement `initial_velocity` sur chaque nœud. Déclarer 1–24 `cells` internes ordonnées et distinctes, chacune appartenant à une seule conduite. La longueur est le volume divisé par `area`. Les réservoirs ont une vitesse nulle et ne peuvent être des cellules internes. Tous les ports partagent le matériau. `linear_resistance` et `quadratic_resistance` décrivent la résistance totale, répartie par volume ; `fluid_heat_fraction` répartit la chaleur de frottement entre fluide et paroi. Aucune entrée directe d’ouverture. + +[Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) + +## Chambres de carburant compressible entraînées par arbre + +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. + +Le port `node_a` est rotatif et `node_b` possède une seule géométrie. Déclarer `minimum_reference_volume`, `swept_volume` et `phase` ; le volume initial du nœud doit correspondre à l’angle initial. Le réservoir mélangé a une vitesse globale nulle et ne peut être une cellule interne. Le mécanisme sinusoïdal sans masse n’ajoute aucune inertie de piston ou de came ; l’inertie d’arbre est explicite. La pression extérieure du carter est nulle. + +[Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) + +## Buses de carburant compressible à qualité figée + +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. + +Déclarer section, coefficient de section effective et `wall_kinetic_fraction`, avec une paroi thermique finie. `initial_input` est l’ouverture dans [0,1], modifiable par un canal optionnel. `needle_node`, `closed_position` et `full_open_position` optionnels multiplient la commande par l’ouverture réelle de l’aiguille en translation. Les ports ont une vitesse globale nulle, les mêmes matériau et pouvoir calorifique, et ne sont pas des cellules internes. Une pression inverse ferme cette frontière idéale sans seuil d’ouverture. + +[Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) + +## Transit de carburant à l’équilibre dans les buses + +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. + +Pression et entropie spécifique déterminent liquide stable, vapeur ou coexistence. La fermeture utilise l’égalité des potentiels chimiques et les bornes thermiques et de pression existantes. Les extrémités de température n’admettent que le voisinage d’arrondi binary64. Section, chaleur de paroi, commande et aiguille suivent le contrat commun. Le jet est idéalement détendu jusqu’au récepteur ; son impulsion stationnaire n’ajoute ni force axiale d’aiguille ni travail mécanique. + +[Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) + +## Relaxation de phase du carburant à vitesse finie + +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. + +Exécuter `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observer les titres réel et d’équilibre, l’affinité, l’entropie de phase, les inventaires de vapeur aux ports et le résidu global. Les historiques d’évaporation et de condensation séparent par signe le transfert net de source de chaque pas accepté ; ils ne comptent pas les échanges microscopiques bruts. Les vérifications couvrent la solution exponentielle indépendante, les dérivées d’entropie, l’acoustique gelée, la limite raide d’équilibre, l’auto-raffinement temporel et un raffinement spatial acoustique linéaire indépendant. Transactions, rejeu portable et MCP réel sont vérifiés séparément ; les valeurs figurent dans les preuves de validation. + +[Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) + +## Pompes à carburant relaxant et dosage à phase gelée + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. + +Exécuter `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observer volume et travail, titres réel et d’équilibre, entropie de phase, `total_vapor_delivered`, inventaires des ports et résidu global de vapeur. Les essais comparent adiabatiques pures, quadrature de pression indépendante à titre fixe, travail infinitésimal, cycle réversible et ODE indépendante d’arbre à vapeur idéale. Raffinement couplé, temps de source des réservoirs partagés, bilans complets, annulation, retour arrière, branches, allocations, rejeu portable et MCP réel sont vérifiés séparément. Les valeurs figurent dans les preuves de validation. + +[Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) diff --git a/docs/AGENT_API.it.md b/docs/AGENT_API.it.md index bf056b7..626e7e5 100644 --- a/docs/AGENT_API.it.md +++ b/docs/AGENT_API.it.md @@ -42,7 +42,7 @@ Windows usa lo stesso comando `dotnet` e un percorso assoluto alla DLL. Una conn ## Strumenti e risultati -Nella versione 0.29.0 dell'API agente, `get_example_model` accetta un `name` opzionale: `electrothermal` (predefinito), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` o `fired-hydraulic-ravigneaux`. `get_capabilities` annuncia i livelli di fedeltà supportati, le versioni di asset leggibili, i limiti del solver e i limiti degli input. Le esportazioni usano `power.asset.v24`; gli asset v1–v23 restano leggibili. I canali di output e le loro unità sono restituiti dalla validazione del modello e dalla creazione della sessione. Superare i KPI di laboratorio non stabilisce un gruppo motopropulsore completo o calibrato. +Nell'API agente versione 0.46.0, `get_example_model` accetta un `name` facoltativo, predefinito `electrothermal`. `get_capabilities.examples` elenca tutti i 67 esempi, inclusi serbatoi finiti e ricircolo. CLI `list-labs` restituisce i 68 laboratori come JSON [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json); `thermal-network` è riservato alla CLI per progettazione. Le capacità dichiarano anche componenti, fedeltà, limiti del solver e ingressi. Gli export usano `power.asset.v41` con lettori v1-v40 conservati. Validazione e creazione della sessione restituiscono canali e unità. KPI superati non attestano un powertrain completo o calibrato. | Strumento | Scopo | |---|---| @@ -287,3 +287,133 @@ Richiedi `resolved-ravigneaux-transmission` o `fired-resolved-ravigneaux-convert Richiedi `hydraulic-ravigneaux-transmission` o `fired-hydraulic-ravigneaux`. Usa frazioni esplicite di riempimento/scarico su 700/701 fino a 708/709; il blocco acceso usa 710/711. Gli ID precedenti di innesto di gamma sono assenti. Valida/scopri i canali prima di scrivere. Pressione/corsa/contatto dello stantuffo determinano le capacità; un comando accettato dall'API non conferma il blocco fisico. I report conservano pressione di linea/camera, corsa, capacità di contatto, lavoro della pompa, volume spazzato, calore di attrito/restrizione/smorzamento e ogni hash del modello. Revisioni complete, annullamento, rollback tardivo e fork indipendenti di rilascio valvola usano i contratti ordinari. Il grafo usa i record esistenti dell'asset v24, non un nuovo formato di serializzazione. Vedi [AT_HYDRAULIC_ACTUATION.it.md](AT_HYDRAULIC_ACTUATION.it.md). + +## Retroazione AT idraulica + +`at_controller` accetta una marcia richiesta intera in [-1,4]; zero indica folle. Gestisce cinque coppie di valvole di riempimento/scarico e il blocco facoltativo del convertitore. L'ordine è ingresso del portasatelliti, solare piccolo, solare grande, freno del portasatelliti, freno del solare grande, poi blocco. + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usano il canale 900 e l'ID 1400. Conservano 99 e 122 stati dichiarati entro il limite invariato di 128. v41 conserva percorsi, guadagni e clock e legge v1-v40. + +Sono controlli di ricerca e i parametri restano `unverified`. Coordinamento della coppia ECU, sensori/valvole dettagliati, guasti completi del veicolo e calibrazione OEM restano aperti. Le verifiche managed e Standard non provano l'accettazione reale Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.it.md](AT_CONTROL.it.md) + +## Rail di combustibile liquido alimentato da pompa + +`liquid_rail_feed` associa un iniettore liquido a una pompa volumetrica esistente e a un confine esplicito di materia/calore. Il nodo di uscita idraulica deve corrispondere alla cedevolezza e alla pressione assoluta iniziale del rail. Pompa e iniettore possiedono questo nodo; altri percorsi fluidi non contabilizzati sono rifiutati. + +v41 conserva collegamenti e temperatura sorgente e legge v1-v40. Scambio analitico albero/pressione, raffinamento ODE simultaneo indipendente, miscelazione termica, bilanci massa/combustibile/energia/volume, ritorno e rollback completo hanno verifiche separate. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[PUMP_FED_FUEL.it.md](PUMP_FED_FUEL.it.md) + +## Serbatoio finito di combustibile liquido + +`liquid_fuel_tank` conserva massa liquida finita ed energia termica con densità, riferimento termico del film e potere calorifico dell'iniettore associato. L'alimentazione lo seleziona con `tank_component` e omette `supply_temperature`. Ogni serbatoio appartiene a un'alimentazione compatibile. + +Energia termica e chimica del serbatoio entrano nello stoccaggio totale. Il trasferimento interno non aggiunge massa o energia chimica esterna. La pressione prescritta all'ingresso mantiene il confine di lavoro di pressione. Aspirazione/scarico gas possono ancora trasportare energia chimica. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[LIQUID_FUEL_TANK.it.md](LIQUID_FUEL_TANK.it.md) + +## Ritorno di scarico carburante tracciato + +`liquid_rail_return` collega un'alimentazione a un `hydraulic_relief` unidirezionale esclusivo. La valvola collega il rail alla stessa pressione d'ingresso prescritta della pompa. Registrare ogni percorso; porte incompatibili, proprietà duplicate e percorsi non tracciati sono rifiutati. + +`fluid_heat_fraction` sceglie esplicitamente la quota [0,1] delle perdite portata dal carburante di ritorno. Il resto segue il percorso termico dichiarato. Miscelazione simultanea rail/serbatoio conserva massa, chimica, lavoro di pressione e calore. Il ritorno a sorgente esterna porta massa/energia oltre confine. + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## Geometria del serbatoio e spazio gassoso finito + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +Il solver accoppiato scambia lavoro di pressione fra albero, rail e gas senza fonte esterna. Orifizi gassosi e collegamenti termici forniscono sfiato/calore espliciti. Leggere `pressure`, `fill_fraction`, `hydraulic_work` cumulativo con segno e massa, energia, volume del gas. Dose, liquido, evaporazione e combustione restano separati. + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Equilibrio di fase del carburante e limiti di alimentazione + +L'opzione `fuel_film.parameters.phase_equilibrium` dichiara `reference_pressure` in `pa` o `bar` e `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` è la temperatura di riferimento; `latent_internal_energy` la differenza di energia interna vapore-liquido a tale temperatura. Ogni ricevitore in equilibrio ha un film. Lo snapshot iniziale resta dichiarato; gli intervalli accettati equilibrano gas e liquido con scambio verso la parete finita. + +`mass_flow` è il trasferimento netto con segno del passo fisico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` accumulano masse positive e negative senza contare due volte proiezioni che si annullano. `vapor_partial_pressure` indica la pressione parziale del carburante. I bilanci termici, di massa e chimici includono entrambe le fasi. + +L'alimentazione predefinita respinge liquido sotto saturazione. Il serbatoio finito opzionale risolve il vapore sorgente con potenziali corretti. Rail e aspirazione trasportano ancora liquido separato; bolle e flusso cavitante richiedono altra fisica. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) + +## Rete di trasporto del carburante in equilibrio + +Richiedere `equilibrium-fuel-network` o `electrothermal-fuel-network` via MCP oppure eseguire lo stesso JSON con CLI. Leggere `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Qui `internal_energy` include la parete elastica e l’energia chimica è separata. I collegamenti mostrano portate con segno, massa cumulativa, `transport_energy` e variazione di entropia della coppia. + +Euler implicito limitato risolve le stesse massa q ed entalpia H accettate per entrambi i recipienti. I collegamenti avanzano secondo ID stabili; il bagno finito usa un altro sottopasso conservativo. L’accoppiamento è del primo ordine. Violazioni dei limiti di massa, temperatura e pressione e fallimenti rifiutano l’intero batch con ingressi, storie compensate e intervalli speculativi della frizione. + +[Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + +## Pompa carburante a cambio di fase azionata da albero + +Richiedere `equilibrium-fuel-pump` o `electric-equilibrium-fuel-pump` tramite MCP o eseguire JSON in CLI. Leggere massa, temperatura, pressione, vapore ed energia insieme a erogazione valvole e velocità dell’albero. `volume` del componente è geometrico; quello del nodo include dilatazione della parete. `torque`, `hydraulic_power`, `hydraulic_work` espongono lo scambio interno. + +Il sottopasso meccanico chiuso conserva massa ed entropia. L’energia include fluido e parete elastica, quindi il lavoro d’albero usa il volume geometrico di riferimento. La stessa variazione accettata determina la coppia nel solver meccanico con ingranaggi, convertitori, idraulica e intervalli speculativi della frizione. L’espansione spinge l’albero; `hydraulic_work` positivo entra nella camera. Nessuna fonte esterna aggiuntiva di pressione. + +[Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + +## Condotti di combustibile comprimibile in equilibrio + +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. + +Dichiarare `liquid_bulk_modulus`, omettere `compliance` e fornire esplicitamente `initial_velocity` per ogni nodo. Dichiarare 1–24 `cells` interne ordinate e distinte, ciascuna appartenente a un solo condotto. La lunghezza è il volume diviso per `area`. I serbatoi hanno velocità nulla e non possono essere celle interne. Tutte le porte condividono il materiale. `linear_resistance` e `quadratic_resistance` descrivono la resistenza totale, distribuita per volume; `fluid_heat_fraction` ripartisce il calore d’attrito tra fluido e parete. Non esiste un ingresso diretto di apertura. + +[Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) + +## Camere di combustibile comprimibile azionate da albero + +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. + +`node_a` è rotazionale e `node_b` ha un solo proprietario geometrico. Dichiarare `minimum_reference_volume`, `swept_volume` e `phase`; il volume iniziale deve corrispondere all’angolo iniziale. Il serbatoio miscelato ha velocità media nulla e non può essere una cella interna. Il meccanismo sinusoidale senza massa non aggiunge inerzia di pistone o camma; l’inerzia d’albero è esplicita. La pressione esterna del carter è nulla. + +[Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) + +## Ugelli di combustibile comprimibile a titolo congelato + +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. + +Dichiarare area, coefficiente di area efficace e `wall_kinetic_fraction`, con parete termica finita. `initial_input` è apertura in [0,1], modificabile da un canale opzionale. Gli opzionali `needle_node`, `closed_position` e `full_open_position` moltiplicano il comando per l’apertura reale dell’ago traslazionale. Le porte hanno velocità media nulla, materiale e potere calorifico uguali e non sono celle interne. La pressione inversa chiude il confine ideale a soglia nulla. + +[Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) + +## Transito di combustibile all’equilibrio negli ugelli + +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. + +Pressione ed entropia specifica determinano liquido stabile, vapore o coesistenza. La chiusura usa uguaglianza dei potenziali chimici e limiti termici e di pressione esistenti. Gli estremi termici ammettono solo vicinati d’arrotondamento binary64. Area, calore, comando e ago reale seguono il contratto comune. Il getto si espande idealmente al ricevitore; l’impulso stazionario non aggiunge forza assiale o lavoro meccanico. + +[Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) + +## Rilassamento di fase del combustibile a velocità finita + +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. + +Eseguire `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Osservare frazioni effettiva e di equilibrio, affinità, entropia di fase, bilanci di vapore alle porte e residuo globale. Le storie di evaporazione e condensazione separano per segno il trasferimento netto della sorgente di ogni passo accettato, senza contare i flussi microscopici lordi. Le prove includono soluzione esponenziale indipendente, derivate entropiche, acustica congelata, limite rigido di equilibrio, autoraffinamento temporale e raffinamento spaziale acustico lineare indipendente. Transazioni, riproduzione portatile e MCP reale sono verificati separatamente; i numeri sono nelle prove di validazione. + +[Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) + +## Pompe a combustibile con rilassamento e dosaggio congelato + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. + +Eseguire `relaxing-fuel-chamber` o `relaxing-pump-needle`. Osservare volume/lavoro, frazioni effettiva e di equilibrio, entropia di fase, `total_vapor_delivered`, inventari alle porte e residuo globale di vapore. Si confrontano adiabatiche pure, quadratura indipendente della pressione a frazione fissa, lavoro infinitesimo, ciclo reversibile e ODE indipendente dell’albero con vapore ideale. Raffinamento accoppiato, tempo di sorgente condiviso, bilanci completi, annullamento, rollback, rami, allocazioni, riproduzione portatile e MCP reale sono verificati separatamente. I numeri sono nelle prove di validazione. + +[Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) diff --git a/docs/AGENT_API.ja.md b/docs/AGENT_API.ja.md index 69b0dd0..5763c2d 100644 --- a/docs/AGENT_API.ja.md +++ b/docs/AGENT_API.ja.md @@ -42,7 +42,7 @@ Windows も同じ `dotnet` コマンドと、DLL への絶対パスを使いま ## ツールと結果 -エージェント API バージョン 0.29.0 では、`get_example_model` は任意の `name` を受け付けます。`electrothermal`(既定)、`sealed-cylinder`、`gas-network`、`moving-cylinder`、`crank-timed-cylinder`、`fired-cylinder`、`fired-clutch`、`fired-planetary`、`fired-converter`、`fired-hydraulic`、`fired-pump`、`fired-pump-losses`、`electric-pump`、`pressure-regulated-pump`、`battery-regulated-pump`、`piston-actuated-clutch`、`spool-regulated-pump`、`gas-accumulator-pump`、`metered-fired-cylinder`、`film-fired-cylinder`、`liquid-injected-cylinder`、`needle-actuated-cylinder`、`closure-compensated-cylinder`、`dual-clutch-transmission`、`fired-dual-clutch`、`controlled-dual-clutch`、`controlled-fired-dual-clutch`、`ravigneaux-transmission`、`fired-ravigneaux-converter`、`resolved-ravigneaux-transmission`、`fired-resolved-ravigneaux-converter`、`hydraulic-ravigneaux-transmission`、`fired-hydraulic-ravigneaux` です。`get_capabilities` は、サポートされる忠実度、読み取れるアセットバージョン、ソルバー制限、入力境界を知らせます。エクスポートは `power.asset.v24` を使います。v1–v23 のアセットは読み取れるままです。出力チャンネルとその単位は、モデル検証とセッション作成が返します。ラボラトリーの KPI に合格しても、完全な、またはキャリブレーション済みのパワートレインであることにはなりません。 +エージェント API バージョン 0.46.0 の `get_example_model` は任意の `name` を受け取り、既定値は `electrothermal` です。`get_capabilities.examples` は有限タンクと循環燃料モデルを含む全 67 サンプルを列挙します。CLI `list-labs` は全 68 ラボを [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json) JSON で返します。`thermal-network` は設計上 CLI 専用です。機能には対応コンポーネント、忠実度、ソルバー制限と入力範囲も含まれます。出力は `power.asset.v41` を使い、v1-v40 の読み込みを保持します。検証とセッション作成は出力チャネルと単位を返します。ラボ KPI の合格は完全または較正済みのパワートレインを示しません。 | ツール | 役割 | |---|---| @@ -287,3 +287,133 @@ KPI とリプレイのエビデンスを評価するには `run_experiment` を `hydraulic-ravigneaux-transmission` または `fired-hydraulic-ravigneaux` を要求します。700/701 から 708/709 まで、明示的な充填/排出の割合を使ってください。燃焼側のロックアップは 710/711 を使います。以前のレンジ係合 ID はありません。書く前に、チャンネルを検証し、見つけてください。容量を決めるのは、ピストンの圧力/行程/接触です。API が受理した指令は、物理的なロックを確認しません。 レポートは、ライン/室の圧力、行程、接触容量、ポンプ仕事、押しのけ容積、摩擦/絞り/減衰の熱、すべてのモデルハッシュを保持します。完全なリビジョン、キャンセル、遅いロールバック、独立したバルブ解放の分岐は、通常の契約を使います。グラフは、新しい直列化形式ではなく、既存のアセット v24 レコードを使います。[AT_HYDRAULIC_ACTUATION.md](AT_HYDRAULIC_ACTUATION.ja.md) を参照してください。 + +## 油圧 AT フィードバック + +`at_controller` は [-1,4] の整数目標段を受け取り、ゼロはニュートラルです。五組の充填/排油弁と任意のトルクコンバーターのロックアップを管理します。経路の順序はキャリア入力、小サン入力、大サン入力、キャリアブレーキ、大サンブレーキ、最後にロックアップです。 + +例 `controlled-hydraulic-ravigneaux` と `controlled-fired-hydraulic-ravigneaux` は要求チャンネル 900 とコントローラー ID 1400 を使います。変更していない 128 状態の上限内で 99 と 122 の報告状態を保ちます。v41 は経路、ゲイン、時計を保存し、v1-v40 を読みます。 + +研究用の制御であり、パラメーターは `unverified` のままです。ECU トルク協調、詳細なセンサー/弁、包括的な車両故障、OEM 校正は未完成です。managed と Standard の検査は実際の Unity Editor/Play/Player/IL2CPP の受入を証明しません。 + +[AT_CONTROL.ja.md](AT_CONTROL.ja.md) + +## ポンプ供給の液体燃料レール + +`liquid_rail_feed` は液体噴射器を既存の容積ポンプと明示的な物質/熱境界に結びます。油圧出口ノードはレールのコンプライアンスと初期絶対圧に一致する必要があります。ポンプと噴射器がこの圧力ノードを所有し、未追跡の他の流体経路は拒否されます。 + +v41 は補給接続と源温度を保存し v1-v40 を読みます。軸/圧力の解析交換、独立した同時 ODE 細化、熱混合、質量/燃料/エネルギー/体積台帳、逆流と完全 rollback は別々に検査します。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[PUMP_FED_FUEL.ja.md](PUMP_FED_FUEL.ja.md) + +## 有限液体燃料タンク + +`liquid_fuel_tank` は対応する噴射器の密度、フィルム熱基準、発熱量を使い、有限液体質量と熱エネルギーを保存します。補給は `tank_component` で選び、`supply_temperature` を省略します。各タンクは燃料物性が一致する一つの補給に属します。 + +タンクの熱/化学エネルギーは全貯蔵台帳に入ります。内部移送は外部質量や化学供給を追加しません。明示したポンプ入口規定圧は圧力仕事境界を保持します。ガス吸排気は化学境界エネルギーを運ぶ場合があります。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[LIQUID_FUEL_TANK.ja.md](LIQUID_FUEL_TANK.ja.md) + +## 追跡可能な燃料リリーフ戻り流れ + +`liquid_rail_return` は補給を排他的な一方向 `hydraulic_relief` に結びます。弁はレールをポンプと同じ規定入口圧へ接続します。すべての流体経路を登録し、不適合ポート、重複所有、未追跡経路は拒否します。 + +`fluid_heat_fraction` は戻り燃料が運ぶ弁損失の割合 [0,1] を明示します。残る熱は宣言した弁熱経路へ流れます。レール/タンク同時熱混合は質量、化学、圧力仕事、熱台帳を保存し、外部源への戻りは境界から質量/エネルギーを出します。 + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## タンク形状と有限ヘッドスペース + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +連成計算は外部圧力源を加えず、軸・レール・気体間で圧力仕事を交換します。気体オリフィスと熱接続が明示的な通気/伝熱を提供します。`pressure`、`fill_fraction`、符号付き累積 `hydraulic_work` と気体質量・エネルギー・体積を読みます。投与、液体供給、蒸発、燃焼は分離されます。 + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 燃料の相平衡と液体供給の境界 + +任意の `fuel_film.parameters.phase_equilibrium` は `pa` または `bar` の `reference_pressure` と、`k` の `minimum_temperature` / `maximum_temperature` を指定します。既存の `saturation_temperature` は基準温度、`latent_internal_energy` はそこでの蒸気と液体の比内部エネルギー差です。平衡受け側は一つの膜が所有します。初期スナップショットを保持し、受理した区間で気液平衡と有限壁の熱交換を計算します。 + +`mass_flow` は完全な物理刻みの符号付き正味相移動です。`evaporated_fuel_mass` と `condensed_fuel_mass` は正負の質量を別々に累積し、相殺する分割演算を二重計上しません。`vapor_partial_pressure` は受け側の燃料分圧です。熱・質量・化学エネルギー収支は両相を含みます。 + +既定の液体供給は飽和未満の湿潤状態を拒否します。任意の有限タンク平衡は補正化学ポテンシャルで供給蒸気移動を解きます。レールと吸入口は分離液体のままで、気泡巻込みとキャビテーション輸送には追加物理が必要です。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) + +## 相平衡燃料輸送ネットワーク + +MCP で `equilibrium-fuel-network` または `electrothermal-fuel-network` を要求するか、同じ JSON を CLI で実行します。各容器の `mass`、`internal_energy`、`elastic_energy`、`vapor_mass`、`vapor_mass_fraction`、`vapor_volume_fraction`、`entropy`、`specific_enthalpy` を確認します。`internal_energy` は弾性壁を含み、化学エネルギーは別です。リンクは符号付き流量、累積質量、`transport_energy`、対エントロピー変化を公開します。 + +有界後退 Euler が両容器に同じ採用質量 q とエンタルピー H を求めます。リンクは安定したコンポーネント ID 順に進み、有限熱浴は別の保存的部分ステップを使います。結合は一次精度です。質量・温度・圧力範囲外や求解失敗は入力、補償履歴、クラッチ試行区間を含むバッチ全体を拒否します。 + +[相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + +## 軸駆動の相変化燃料ポンプ + +MCP で `equilibrium-fuel-pump` または `electric-equilibrium-fuel-pump` を要求するか JSON を CLI で実行します。室の質量、温度、圧力、蒸気割合、エネルギーを弁供給と軸速度に並べて確認します。コンポーネント `volume` は幾何基準、ノード `volume` は壁膨張込みです。`torque`、`hydraulic_power`、`hydraulic_work` が内部軸交換を示します。 + +閉じた機械部分ステップは質量とエントロピーを保ちます。流体と弾性壁を含む蓄積エネルギーのため、軸仕事には幾何基準体積変化を使います。同じ採用エネルギー変化が歯車、コンバーター、油圧、クラッチ試行を含む連成解のトルクを決めます。膨張は軸を押し、正の `hydraulic_work` は軸から室への仕事です。外部圧力源は追加しません。 + +[軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + +## 圧縮性平衡燃料ダクト + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 + +`liquid_bulk_modulus` を指定し、`compliance` を省略して、各ノードの `initial_velocity` を明示します。順序付きで重複しない内部 `cells` を 1–24 個指定し、各セルは一つのダクトに所属します。セル長は体積を `area` で割った値です。貯槽の速度はゼロで、内部セルを兼用できません。全ポートで同じ物性を使用します。`linear_resistance` と `quadratic_resistance` は管全体の抵抗を表し、セル体積に応じて配分します。`fluid_heat_fraction` は摩擦熱を流体と壁に配分します。直接の開度入力はありません。 + +[圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) + +## 軸駆動の圧縮性燃料室 + +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 + +`node_a` は回転ポート、`node_b` の幾何所有者は一つです。`minimum_reference_volume`、`swept_volume`、`phase` を指定し、初期容積を初期軸角の幾何に合わせます。混合貯槽のバルク速度はゼロで、内部セルを兼用できません。質量のない正弦機構はピストンやカムの慣性を加えず、軸慣性を明示します。外部ケース圧力はゼロです。 + +[軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) + +## 相分率を凍結した圧縮性燃料ノズル + +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 + +面積、有効面積の流量係数、`wall_kinetic_fraction` と有限熱壁を指定します。`initial_input` は [0,1] の開度で、任意の入力チャンネルで変更します。任意の `needle_node`、`closed_position`、`full_open_position` は指令に実際の並進ニードル開度を掛けます。両ポートのバルク速度はゼロで、物性と発熱量は一致し、内部セルには接続できません。逆圧差では理想的な開弁圧差ゼロの境界が閉じます。 + +[相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) + +## 燃料ノズルの平衡相変化輸送 + +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 + +圧力と比エントロピーから安定な液体、蒸気、共存状態を求めます。化学ポテンシャル一致と既存の温圧範囲を使い、温度端点では binary64 の丸め近傍だけを許容します。面積、壁熱配分、開度、実ニードルは共通契約に従います。噴流は受入圧力まで理想完全膨張し、静止力積はニードル軸力や機械仕事を追加しません。 + +[燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) + +## 有限速度の燃料相変化緩和 + +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 + +`relaxing-fuel-evaporation` または `relaxing-fuel-duct` を実行します。実際と平衡の分率、化学親和力、相変化エントロピー、ポートの蒸気収支、全体の蒸気残差を観測できます。蒸発・凝縮履歴は受理した各刻みの正味源項を符号で分けた値で、微視的な順逆の総流量ではありません。独立指数解、エントロピー微分、凍結音響、剛な平衡極限、時間自己細分化、独立線形音響による格子細分化を確認します。トランザクション、可搬再生、実 MCP は別々に検証し、数値は検証証拠に記録します。 + +[有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) + +## 相変化緩和燃料ポンプと凍結相計量 + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 + +`relaxing-fuel-chamber` または `relaxing-pump-needle` を実行します。体積と仕事、実際と平衡の分率、相変化エントロピー、`total_vapor_delivered`、ポート在庫、全体蒸気残差を観測します。純相断熱線、独立した分率固定の圧力積分、微小仕事、可逆サイクル、独立理想蒸気軸 ODE と比較します。有限速度結合の細分化、共有貯槽の源項時間、全収支、取消、ロールバック、分岐、割当、可搬再生、実 MCP は個別に検証し、数値は検証証拠に記録します。 + +[相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) diff --git a/docs/AGENT_API.ko.md b/docs/AGENT_API.ko.md index 720b421..06110ee 100644 --- a/docs/AGENT_API.ko.md +++ b/docs/AGENT_API.ko.md @@ -42,7 +42,7 @@ Windows도 같은 `dotnet` 명령과 DLL의 절대 경로를 사용합니다. ## 도구와 결과 -에이전트 API 버전 0.29.0에서 `get_example_model`은 선택적 `name`을 받습니다. `electrothermal`(기본값), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission`, `fired-hydraulic-ravigneaux`입니다. `get_capabilities`는 지원되는 충실도 수준, 읽을 수 있는 자산 버전, 솔버 한계, 입력 한계를 알립니다. 내보내기는 `power.asset.v24`를 사용합니다. v1–v23 자산은 계속 읽을 수 있습니다. 출력 채널과 그 단위는 모델 검증과 세션 생성이 반환합니다. 실험실 KPI를 통과해도 완전하거나 교정된 파워트레인이 확립되지는 않습니다. +에이전트 API 버전 0.46.0의 `get_example_model`은 선택적 `name`을 받고 기본값은 `electrothermal`입니다. `get_capabilities.examples`는 유한 탱크와 순환 연료 모델을 포함한 47개 예제를 모두 나열합니다. CLI `list-labs`는 48개 실험실을 모두 [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json) JSON으로 반환합니다. `thermal-network`는 설계상 CLI 전용입니다. 기능에는 지원 구성요소, 충실도, 솔버 제한과 입력 범위도 포함됩니다. 내보내기는 `power.asset.v41`을 사용하며 v1-v40 읽기를 유지합니다. 검증과 세션 생성은 출력 채널과 단위를 반환합니다. 실험실 KPI 통과가 완전하거나 보정된 파워트레인을 입증하지 않습니다. | 도구 | 목적 | |---|---| @@ -287,3 +287,133 @@ KPI와 리플레이 증거를 평가하려면 `run_experiment`를, 개정 검사 `hydraulic-ravigneaux-transmission` 또는 `fired-hydraulic-ravigneaux`를 요청하세요. 700/701부터 708/709까지 명시적 충전/배출 분율을 사용합니다. 점화 록업은 710/711을 사용합니다. 이전 레인지 체결 ID는 없습니다. 쓰기 전에 채널을 검증하고 탐색하세요. 피스톤 압력/이동/접촉이 용량을 결정합니다. API가 수용한 명령이 물리적 잠금을 확인하지는 않습니다. 보고서는 라인/챔버 압력, 이동, 접촉 용량, 펌프 일, 쓸린 체적, 마찰/유동 제한/감쇠 열, 모든 모델 해시를 유지합니다. 완전한 개정, 취소, 늦은 롤백, 독립적인 밸브 해제 분기는 보통 계약을 사용합니다. 그래프는 새 직렬화 형식이 아니라 기존 자산 v24 레코드를 사용합니다. [AT_HYDRAULIC_ACTUATION.ko.md](AT_HYDRAULIC_ACTUATION.ko.md)를 참고하세요. + +## 유압 AT 피드백 + +`at_controller`는 [-1,4] 범위의 정수 목표 단을 받으며 0은 중립입니다. 다섯 쌍의 충전/배출 밸브와 선택적인 토크 컨버터 록업을 관리합니다. 경로 순서는 캐리어 입력, 작은 선기어 입력, 큰 선기어 입력, 캐리어 브레이크, 큰 선기어 브레이크, 마지막으로 록업입니다. + +예제 `controlled-hydraulic-ravigneaux`와 `controlled-fired-hydraulic-ravigneaux`는 요청 채널 900과 컨트롤러 ID 1400을 사용합니다. 변경되지 않은 128 상태 한도 안에서 99와 122개의 보고 상태를 보존합니다. v41는 경로, 게인과 클록을 저장하고 v1-v40를 읽습니다. + +연구용 제어이며 매개변수는 `unverified`입니다. ECU 토크 협조, 상세 센서/밸브, 전체 차량 고장과 OEM 보정은 아직 미완성입니다. managed 및 Standard 검사는 실제 Unity Editor/Play/Player/IL2CPP 검증을 입증하지 않습니다. + +[AT_CONTROL.ko.md](AT_CONTROL.ko.md) + +## 펌프 공급 액체 연료 레일 + +`liquid_rail_feed`는 액체 인젝터를 기존 용적 펌프와 명시적인 물질/열 경계에 연결합니다. 유압 출구 노드는 레일 컴플라이언스와 초기 절대압에 일치해야 합니다. 펌프와 인젝터가 이 압력 노드를 소유하고 다른 미추적 유체 경로는 거부됩니다. + +v41은 공급 연결과 원천 온도를 저장하고 v1-v40를 읽습니다. 축/압력 해석 교환, 독립 동시 ODE 세분화, 열 혼합, 질량/연료/에너지/체적 원장, 역류와 완전 rollback을 각각 확인합니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[PUMP_FED_FUEL.ko.md](PUMP_FED_FUEL.ko.md) + +## 유한 액체 연료 탱크 + +`liquid_fuel_tank`는 연결 인젝터의 밀도, 필름 열 기준과 발열량으로 유한 액체 질량과 열 에너지를 저장합니다. 공급은 `tank_component`로 선택하고 `supply_temperature`를 생략합니다. 각 탱크는 연료 물성이 같은 한 공급에 속합니다. + +탱크 열/화학 에너지는 전체 저장 원장에 포함됩니다. 내부 전달은 외부 질량이나 화학 공급을 추가하지 않습니다. 명시적 펌프 입구 지정 압력은 압력 일 경계를 유지합니다. 가스 흡배기는 화학 경계 에너지를 운반할 수 있습니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[LIQUID_FUEL_TANK.ko.md](LIQUID_FUEL_TANK.ko.md) + +## 추적 가능한 연료 릴리프 반환 + +`liquid_rail_return`는 공급을 독점 단방향 `hydraulic_relief`에 연결합니다. 밸브는 레일을 펌프와 같은 지정 입구 압력에 연결합니다. 모든 유체 경로를 등록하며 비호환 포트, 중복 소유와 미추적 경로는 거부됩니다. + +`fluid_heat_fraction`는 반환 연료가 운반하는 밸브 손실 비율 [0,1]을 명시합니다. 나머지 열은 선언된 밸브 열 경로를 따릅니다. 레일/탱크 동시 열 혼합은 질량, 화학, 압력 일과 열 원장을 보존하며 외부 원천 반환은 경계를 통해 질량/에너지를 내보냅니다. + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 탱크 형상과 유한 헤드스페이스 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +연성 계산은 외부 압력원 없이 축, 레일과 기체 사이의 압력 일을 교환합니다. 기체 오리피스와 열 연결은 명시적 통기/열전달을 제공합니다. `pressure`, `fill_fraction`, 부호 있는 누적 `hydraulic_work`와 기체 질량, 에너지, 체적을 읽습니다. 용량, 액체 공급, 증발과 연소는 구분됩니다. + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 연료 상평형과 액체 공급 경계 + +선택 항목 `fuel_film.parameters.phase_equilibrium`은 `pa` 또는 `bar`의 `reference_pressure`와 `k`의 `minimum_temperature` / `maximum_temperature`를 지정합니다. 기존 `saturation_temperature`는 기준 온도이고 `latent_internal_energy`는 그 온도에서 증기와 액체의 비내부에너지 차이입니다. 평형 수용부마다 하나의 막을 사용합니다. 초기 스냅샷을 보존하고 수용된 구간에서 기액 평형과 유한 벽 열교환을 계산합니다. + +`mass_flow`는 완전한 물리 시간 단계의 부호 있는 순 상변화입니다. `evaporated_fuel_mass`와 `condensed_fuel_mass`는 양·음 질량을 각각 누적하여 상쇄되는 분할 계산을 중복 집계하지 않습니다. `vapor_partial_pressure`는 수용부 연료 분압입니다. 열, 질량과 화학 에너지 수지는 두 상을 포함합니다. + +기본 액체 공급은 포화 이하 젖은 상태를 거부합니다. 선택 유한 탱크 평형은 압력 보정 화학 퍼텐셜로 공급 증기 이동을 풉니다. 레일과 흡입구는 여전히 분리 액체이며 기포 동반과 캐비테이션 수송은 추가 물리가 필요합니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) + +## 상평형 연료 수송 네트워크 + +MCP에서 `equilibrium-fuel-network` 또는 `electrothermal-fuel-network`를 요청하거나 동일 JSON을 CLI로 실행합니다. 용기별 `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`를 읽습니다. 여기서 `internal_energy`는 탄성 벽을 포함하며 화학 에너지는 별도입니다. 링크는 부호 있는 흐름, 누적 질량, `transport_energy`, 쌍 엔트로피 변화를 공개합니다. + +제한된 후진 Euler가 두 용기에 동일한 승인 질량 q와 엔탈피 H를 구합니다. 링크는 안정된 구성요소 ID 순서로 진행하며 유한 열욕은 별도 보존 부분 단계를 사용합니다. 결합은 1차입니다. 질량·온도·압력 한계 위반이나 해 실패는 입력, 보상 이력, 클러치 시험 구간을 포함한 전체 배치를 거부합니다. + +[상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + +## 축 구동 상변화 연료 펌프 + +MCP에서 `equilibrium-fuel-pump` 또는 `electric-equilibrium-fuel-pump`를 요청하거나 JSON을 CLI로 실행합니다. 챔버 질량, 온도, 압력, 증기 비율, 에너지를 밸브 공급과 축 속도와 함께 읽습니다. 구성요소 `volume`는 기하 기준이며 노드 `volume`는 벽 팽창을 포함합니다. `torque`, `hydraulic_power`, `hydraulic_work`가 내부 축 교환을 보여 줍니다. + +닫힌 기계 부분 단계는 질량과 엔트로피를 유지합니다. 저장 에너지는 유체와 탄성 벽을 포함하므로 축 일은 기하 기준 체적 변화에 해당합니다. 동일한 승인 에너지 변화가 기어, 컨버터, 유압, 클러치 시험을 포함한 연성 해의 토크를 결정합니다. 팽창은 축을 밀며 양의 `hydraulic_work`는 축에서 챔버로 향합니다. 외부 압력원을 추가하지 않습니다. + +[축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + +## 압축성 평형 연료 덕트 + +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. + +`liquid_bulk_modulus`를 선언하고 `compliance`는 생략하며 각 노드의 `initial_velocity`를 명시합니다. 순서가 있고 중복되지 않는 내부 `cells`를 1–24개 선언하며 각 셀은 덕트 하나에 속합니다. 셀 길이는 체적을 `area`로 나눈 값입니다. 저장조 속도는 0이고 내부 셀을 겸할 수 없습니다. 모든 포트는 동일한 물성을 사용합니다. `linear_resistance`와 `quadratic_resistance`는 전체 관의 저항이며 셀 체적에 따라 배분합니다. `fluid_heat_fraction`은 마찰열을 유체와 벽에 배분합니다. 직접 개도 입력은 없습니다. + +[압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) + +## 축 구동 압축성 연료 챔버 + +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. + +`node_a`는 회전 포트이고 `node_b`의 기하 소유자는 하나입니다. `minimum_reference_volume`, `swept_volume`, `phase`를 선언하고 초기 체적을 초기 축각의 기하와 맞춥니다. 혼합 저장조의 벌크 속도는 0이며 내부 셀을 겸할 수 없습니다. 질량 없는 정현파 기구는 피스톤이나 캠 관성을 추가하지 않으며 축 관성은 명시합니다. 외부 케이스 압력은 0입니다. + +[축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) + +## 상분율을 동결한 압축성 연료 노즐 + +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. + +면적, 유효면적 유량계수, `wall_kinetic_fraction`, 유한 열벽을 선언합니다. `initial_input`은 [0,1] 개도이며 선택 입력 채널로 변경합니다. 선택적인 `needle_node`, `closed_position`, `full_open_position`은 명령에 실제 병진 니들 개도를 곱합니다. 두 포트의 벌크 속도는 0이고 물성과 발열량이 같으며 내부 셀은 사용할 수 없습니다. 역압은 이상적인 개방 차압 0의 경계를 닫습니다. + +[상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) + +## 연료 노즐의 평형 상변화 수송 + +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. + +압력과 비엔트로피가 안정 액체, 증기 또는 공존 상태를 결정합니다. 화학 퍼텐셜 일치와 기존 온압 범위를 사용하며 온도 끝점은 binary64 반올림 근방만 허용합니다. 면적, 벽열 배분, 개도, 실제 니들은 공통 노즐 계약을 따릅니다. 제트는 수신 압력까지 이상 완전 팽창하며 정지 충격량은 니들 축력이나 기계적 일을 추가하지 않습니다. + +[연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) + +## 유한 속도 연료 상변화 완화 + +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. + +`relaxing-fuel-evaporation` 또는 `relaxing-fuel-duct`를 실행합니다. 실제 및 평형 분율, 화학 친화도, 상변화 엔트로피, 포트 증기 수지와 전역 증기 잔차를 관찰합니다. 증발·응축 이력은 수락된 각 틱의 순 소스 이동을 부호별로 나누며 미시적인 정·역방향 총 이동은 아닙니다. 독립 지수 해, 엔트로피 미분, 동결 음향, 강성 평형 극한, 시간 자체 세분화와 독립 선형 음향 격자 세분화를 확인합니다. 트랜잭션, 이식 가능한 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +[유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) + +## 상변화 완화 연료 펌프와 동결 상 계량 + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. + +`relaxing-fuel-chamber` 또는 `relaxing-pump-needle`를 실행합니다. 챔버 부피와 일, 실제 및 평형 분율, 상변화 엔트로피, `total_vapor_delivered`, 포트 재고와 전역 증기 잔차를 관찰합니다. 순수 상 단열선, 독립 분율 고정 압력 적분, 미소 일, 가역 사이클과 독립 이상 증기 축 ODE를 비교합니다. 유한 속도 결합 세분화, 공유 저장조 소스 시간, 전체 수지, 취소, 롤백, 분기, 할당, 이식 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +[상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) diff --git a/docs/AGENT_API.md b/docs/AGENT_API.md index 50aba15..d694b07 100644 --- a/docs/AGENT_API.md +++ b/docs/AGENT_API.md @@ -76,7 +76,7 @@ Windows uses the same `dotnet` command and an absolute path to the DLL. A produc ## Tools and results -In agent API version 0.29.0, `get_example_model` accepts an optional `name`: `electrothermal` (default), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` or `fired-hydraulic-ravigneaux`. `get_capabilities` advertises supported fidelity levels, readable asset versions, solver limits and input bounds. Exports use `power.asset.v24`; v1–v23 assets remain readable. Output channels and their units are returned by model validation and session creation. Passing laboratory KPIs does not establish a complete or calibrated powertrain. +In agent API version 0.46.0, `get_example_model` takes an optional `name`, defaulting to `electrothermal`. `get_capabilities.examples` lists all 67 available examples, including finite-tank and recirculating fuel models. CLI `list-labs` returns all 68 laboratories as [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json) JSON; `thermal-network` is CLI-only by design. Capabilities also advertise supported components, fidelity, solver limits and input bounds. Exports use `power.asset.v41`, with v1-v40 readers retained. Validation and session creation return output channels and units. Passing laboratory KPIs doesn't establish a complete or calibrated powertrain. | Tool | Purpose | |---|---| @@ -605,3 +605,133 @@ volume, friction/restriction/damping heat and every model hash. Full revisions, cancellation, late rollback and independent valve-release forks use the ordinary contracts. The graph uses existing asset v24 records, not a new serialization format. See [AT_HYDRAULIC_ACTUATION.md](AT_HYDRAULIC_ACTUATION.md). + +## Hydraulic AT feedback + +`at_controller` accepts an integer requested range in [-1,4]; zero is neutral. It owns five fill/drain actuator pairs and optional converter lockup. Route order is carrier input, small-sun input, large-sun input, carrier brake, large-sun brake, then lockup. + +The examples `controlled-hydraulic-ravigneaux` and `controlled-fired-hydraulic-ravigneaux` use request channel 900 and controller ID 1400. They retain 99 and 122 reported states within the unchanged 128-state limit. Asset v41 retains routes, gains and clocks and reads v1-v40. + +These are research controls and parameters remain `unverified`. Coordinated ECU torque blending, detailed sensors/valves, comprehensive vehicle faults and OEM calibration remain unfinished. Managed and Standard checks do not establish actual Unity Editor/Play/Player/IL2CPP acceptance. + +[AT_CONTROL.md](AT_CONTROL.md) + +## Pump-fed liquid fuel rail + +`liquid_rail_feed` pairs a liquid injector with an existing displacement pump and explicit material/thermal boundary. The hydraulic outlet node must match the rail compliance and initial absolute pressure. The paired pump and injector own this pressure node; other untracked fluid paths are rejected. + +Asset v41 retains feed links and source temperature and reads v1-v40. Analytic shaft/pressure exchange, independent simultaneous ODE refinement, caloric mixing, mass/fuel/energy/volume ledgers, reverse return and complete rollback have separate checks. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[PUMP_FED_FUEL.md](PUMP_FED_FUEL.md) + +## Finite liquid fuel tank + +`liquid_fuel_tank` stores finite liquid mass and caloric energy using the paired injector's density, film thermal reference and heating value. A feed selects it with `tank_component` and omits `supply_temperature`. Each tank belongs to one feed with matching fuel properties. + +Tank caloric and chemical energy enter the complete stored-energy ledger. Tank-to-rail transfer adds no external mass or chemical supply. The explicit prescribed pump inlet pressure retains its pressure-work boundary. Gas inlet/exhaust can still carry chemical boundary energy. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[LIQUID_FUEL_TANK.md](LIQUID_FUEL_TANK.md) + +## Tracked fuel relief return + +`liquid_rail_return` pairs a feed with an exclusively owned one-way `hydraulic_relief`. The valve connects the rail to the pump's same prescribed inlet pressure. Register every fluid path; incompatible ports, duplicate valve ownership and untracked paths reject. + +`fluid_heat_fraction` explicitly selects the fraction in [0,1] of valve loss carried with returned fuel. The remaining heat follows the valve's declared heat path. Simultaneous rail/tank caloric mixing preserves the full mass, chemical, pressure-work and thermal ledgers. External-source returns instead carry mass and energy out through the boundary. + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## Geometric tank and finite headspace + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +The coupled solve exchanges shaft, rail and gas pressure work without an external pressure source. Gas orifices and heat links provide explicit vent/thermal paths. Read tank `pressure`, `fill_fraction` and signed cumulative `hydraulic_work`, plus headspace gas mass, energy and volume. Prescribed dose, delivered liquid, evaporation and burn remain separate. + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Fuel phase equilibrium and liquid supply limits + +Optional `fuel_film.parameters.phase_equilibrium` declares `reference_pressure` in `pa` or `bar`, and `minimum_temperature` / `maximum_temperature` in `k`. Existing `saturation_temperature` is the reference temperature; `latent_internal_energy` is the vapor-minus-liquid internal energy there. One film owns each equilibrium receiver. The authored initial snapshot is retained; accepted intervals equilibrate gas and liquid and exchange heat with the finite wall. + +`mass_flow` is the signed net phase transfer over the complete physical tick. `evaporated_fuel_mass` and `condensed_fuel_mass` accumulate its positive and negative mass amounts, so canceling split-operator projections are not counted twice. `vapor_partial_pressure` reports the receiver fuel partial pressure. Thermal, mass and chemical ledgers include both phases. + +The default liquid-supply model rejects wet states below saturation. Optional finite-volume tank equilibrium instead resolves source vapor transfer with pressure-corrected chemical potentials. The rail and pump pickup still carry separated liquid; bubble entrainment and cavitating pump/rail flow require further physics. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) + +## Equilibrium fuel transport network + +Request `equilibrium-fuel-network` or `electrothermal-fuel-network` through MCP, or run the same JSON through CLI. Read `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` and `specific_enthalpy` on each vessel. Here `internal_energy` includes the elastic wall; chemical energy is reported separately. Links expose signed mass/volume flow, cumulative transferred mass, `transport_energy` and pair entropy change. + +A bounded backward-Euler solve finds the same accepted mass q and enthalpy H for both vessels. Links advance in stable component-ID order; finite-bath heat uses another conservative substep. The coupled method is first order. Out-of-range mass, temperature or pressure and failed solves reject the complete batch, including inputs, compensated histories and speculative clutch intervals. + +[Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + +## Shaft-driven phase-resolving fuel pump + +Request `equilibrium-fuel-pump` or `electric-equilibrium-fuel-pump` through MCP, or run their JSON through CLI. Read chamber-node mass, temperature, pressure, vapor fractions and energy beside valve delivery and shaft speed. Component `volume` is geometric reference volume; node `volume` includes wall expansion. Chamber `torque`, `hydraulic_power` and `hydraulic_work` expose the internal shaft exchange. + +Closed mechanical work holds mass and entropy fixed. Stored energy includes the fluid and elastic wall, so shaft work uses the geometric reference-volume change. The same accepted energy change determines pressure torque in the joint mechanical solve, including gears, converters, hydraulics and speculative clutch intervals. Expansion pushes the shaft; positive `hydraulic_work` means work from shaft to chamber. No extra external pressure source is added. + +[Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + +## Compressible equilibrium fuel ducts + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. + +Declare `liquid_bulk_modulus`, omit `compliance`, and explicitly supply `initial_velocity` on each node. Declare 1–24 ordered, distinct internal `cells`; each belongs to one duct. Cell length is volume divided by `area`. Reservoirs have zero velocity and cannot also be internal cells. All ports share the same material. `linear_resistance` and `quadratic_resistance` describe total line resistance and are distributed by cell volume; `fluid_heat_fraction` routes friction heat between fluid and wall. There is no direct opening input. + +[Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) + +## Shaft-driven compressible fuel chambers + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. + +Port `node_a` is rotational and `node_b` owns one chamber geometry. Declare `minimum_reference_volume`, `swept_volume` and `phase`; initial node storage must match volume at the initial shaft angle. The mixed reservoir has zero bulk velocity and cannot be an internal duct cell. The massless sinusoidal mechanism adds no piston or cam inertia; shaft inertia is explicit. External case pressure is zero. + +[Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) + +## Frozen compressible fuel nozzles + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. + +Declare area, effective-area discharge coefficient and `wall_kinetic_fraction`, with a finite thermal wall. `initial_input` is opening in [0,1]; an optional input channel changes it. Optional `needle_node`, `closed_position` and `full_open_position` multiply the command by actual translational needle opening. Both ports have zero bulk velocity, matching material and heating value, and cannot be internal duct cells. Reverse pressure closes this ideal zero-cracking-pressure boundary. + +[Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) + +## Equilibrium fuel nozzle transit + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. + +Pressure and specific entropy determine the stable liquid, vapor or coexistence state. The closure uses chemical-potential equality and the existing temperature/pressure bounds. Inclusive temperature endpoints permit only binary64 rounding neighbourhoods. Area, wall heat routing, opening commands and physical needles follow the common nozzle contract. Jet energy describes ideal complete expansion to receiver pressure; stationary jet impulse adds no axial needle force or mechanical work. + +[Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) + +## Finite-rate fuel phase relaxation + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. + +Run `relaxing-fuel-evaporation` or `relaxing-fuel-duct`. Observe actual and equilibrium quality, chemical affinity, phase entropy, vapor port inventories and the global vapor residual. Evaporated/condensed histories split the net source transfer of each accepted tick by sign; they are not gross microscopic forward/reverse traffic. Checks cover the independent exponential solution, entropy derivatives, frozen acoustics, stiff equilibrium limit, temporal self-refinement and independent linear-acoustic mesh refinement. Transactions, portable replay and actual MCP are checked separately; numbers are recorded in validation evidence. + +[Finite-rate fuel phase relaxation](RELAXING_FUEL.md) + +## Relaxing fuel pumps and frozen metering + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. + +Run `relaxing-fuel-chamber` or `relaxing-pump-needle`. Observe chamber volume/work, actual and equilibrium quality, phase entropy, `total_vapor_delivered`, port inventories and the global vapor residual. Checks compare pure-phase adiabats, independent fixed-quality pressure quadrature, infinitesimal work, a reversible cycle and an independent ideal-vapor shaft ODE. Coupled finite-rate refinement, shared-reservoir source time, complete ledgers, cancellation, rollback, branches, allocations, portable replay and actual MCP have separate checks. Numerical values are in validation evidence. + +[Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) diff --git a/docs/AGENT_API.pt-BR.md b/docs/AGENT_API.pt-BR.md index c0b85f0..124a674 100644 --- a/docs/AGENT_API.pt-BR.md +++ b/docs/AGENT_API.pt-BR.md @@ -42,7 +42,7 @@ O Windows usa o mesmo comando `dotnet` e um caminho absoluto para a DLL. Uma con ## Ferramentas e resultados -Na versão 0.29.0 da API de agente, `get_example_model` aceita um `name` opcional: `electrothermal` (padrão), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` ou `fired-hydraulic-ravigneaux`. `get_capabilities` anuncia os níveis de fidelidade suportados, as versões de asset legíveis, os limites do solver e os limites de entrada. As exportações usam `power.asset.v24`; assets v1–v23 continuam legíveis. Canais de saída e suas unidades são retornados pela validação do modelo e pela criação da sessão. KPIs de laboratório aprovados não estabelecem um powertrain completo nem calibrado. +Na API de agente versão 0.46.0, `get_example_model` aceita um `name` opcional, com padrão `electrothermal`. `get_capabilities.examples` lista os 67 exemplos, incluindo tanque finito e recirculação. CLI `list-labs` retorna os 68 laboratórios como JSON [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json); `thermal-network` é exclusivo da CLI por projeto. As capacidades também anunciam componentes, fidelidade, limites do solver e entradas. Exports usam `power.asset.v41`, mantendo leitores v1-v40. Validação e criação de sessão retornam canais e unidades. KPI aprovados não estabelecem um powertrain completo ou calibrado. | Ferramenta | Finalidade | |---|---| @@ -287,3 +287,133 @@ Solicite `resolved-ravigneaux-transmission` ou `fired-resolved-ravigneaux-conver Solicite `hydraulic-ravigneaux-transmission` ou `fired-hydraulic-ravigneaux`. Use frações explícitas de enchimento/drenagem em 700/701 até 708/709; a trava em combustão usa 710/711. Os IDs anteriores de engate de faixa estão ausentes. Valide/descubra os canais antes de escrever. Pressão/curso/contato do pistão determinam as capacidades; um comando aceito pela API não confirma o travamento físico. Os relatórios conservam pressão de linha/câmara, curso, capacidade de contato, trabalho da bomba, volume varrido, calor de atrito/restrição/amortecimento e cada hash de modelo. Revisões completas, cancelamento, rollback tardio e ramificações independentes de liberação de válvula usam os contratos ordinários. O grafo usa registros existentes do asset v24, não um formato novo de serialização. Veja [AT_HYDRAULIC_ACTUATION.pt-BR.md](AT_HYDRAULIC_ACTUATION.pt-BR.md). + +## Realimentação de AT hidráulica + +`at_controller` aceita uma marcha solicitada inteira em [-1,4]; zero indica neutro. Ele controla cinco pares de válvulas de enchimento/drenagem e o bloqueio opcional do conversor. A ordem é entrada do portasatélites, solar pequeno, solar grande, freio do portasatélites, freio do solar grande e bloqueio. + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usam o canal 900 e o ID 1400. Preservam 99 e 122 estados relatados dentro do limite inalterado de 128. v41 preserva rotas, ganhos e relógios e lê v1-v40. + +São controles de pesquisa e os parâmetros continuam `unverified`. Coordenação de torque ECU, sensores/válvulas detalhados, falhas completas do veículo e calibração OEM permanecem pendentes. Verificações managed e Standard não comprovam aceitação real Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.pt-BR.md](AT_CONTROL.pt-BR.md) + +## Rail de combustível líquido alimentado por bomba + +`liquid_rail_feed` associa um injetor líquido a uma bomba volumétrica existente e a uma fronteira explícita de matéria/calor. O nó de saída hidráulica deve corresponder à complacência e pressão absoluta inicial do rail. Bomba e injetor possuem esse nó; outras rotas fluidas não contabilizadas são rejeitadas. + +v41 preserva conexões e temperatura da fonte e lê v1-v40. Troca analítica eixo/pressão, refinamento ODE simultâneo independente, mistura térmica, balanços massa/combustível/energia/volume, retorno e rollback completo têm verificações separadas. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[PUMP_FED_FUEL.pt-BR.md](PUMP_FED_FUEL.pt-BR.md) + +## Tanque finito de combustível líquido + +`liquid_fuel_tank` guarda massa líquida finita e energia térmica com densidade, referência térmica do filme e poder calorífico do injetor associado. A alimentação o escolhe por `tank_component` e omite `supply_temperature`. Cada tanque pertence a uma alimentação compatível. + +Energias térmica e química do tanque entram no armazenamento completo. Transferência interna não adiciona massa ou energia química externa. A pressão de entrada prescrita mantém sua fronteira de trabalho de pressão. Admissão/escape gasoso ainda podem transportar energia química. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[LIQUID_FUEL_TANK.pt-BR.md](LIQUID_FUEL_TANK.pt-BR.md) + +## Retorno de alívio de combustível rastreado + +`liquid_rail_return` associa alimentação a um `hydraulic_relief` unidirecional exclusivo. A válvula liga o rail à mesma pressão de entrada prescrita da bomba. Registrar cada rota; portas incompatíveis, propriedade duplicada e rotas não rastreadas são rejeitadas. + +`fluid_heat_fraction` escolhe explicitamente a fração [0,1] da perda transportada pelo combustível retornado. O restante segue a rota térmica declarada. Mistura simultânea rail/tanque conserva massa, química, trabalho de pressão e calor. Retorno à fonte externa leva massa/energia pela fronteira. + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## Geometria do tanque e espaço gasoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +O solver acoplado troca trabalho de pressão entre eixo, trilho e gás sem fonte externa. Orifícios gasosos e conexões térmicas fornecem ventilação/calor explícitos. Ler `pressure`, `fill_fraction`, `hydraulic_work` acumulado com sinal e massa, energia, volume do gás. Dose, líquido, evaporação e combustão continuam separados. + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Equilíbrio de fases do combustível e limites de suprimento + +A opção `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` em `pa` ou `bar` e `minimum_temperature` / `maximum_temperature` em `k`. `saturation_temperature` é a temperatura de referência; `latent_internal_energy` é a diferença de energia interna vapor-líquido nela. Cada receptor em equilíbrio possui um filme. O snapshot inicial é mantido; intervalos aceitos equilibram gás e líquido com troca de calor com a parede finita. + +`mass_flow` é a transferência líquida com sinal do passo físico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` acumulam suas massas positiva e negativa sem duplicar projeções que se cancelam. `vapor_partial_pressure` mostra a pressão parcial do combustível. Balanços térmicos, de massa e químicos incluem ambas as fases. + +O suprimento padrão rejeita líquido sob saturação. O tanque finito opcional resolve vapor da fonte com potenciais corrigidos por pressão. Trilho e captação ainda levam líquido separado; bolhas e fluxo cavitante precisam de mais física. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Rede de transporte de combustível em equilíbrio + +Pedir `equilibrium-fuel-network` ou `electrothermal-fuel-network` pelo MCP ou executar o mesmo JSON pela CLI. Ler `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Aqui `internal_energy` inclui parede elástica e a energia química é separada. Os elos mostram vazões com sinal, massa acumulada, `transport_energy` e mudança de entropia do par. + +Euler implícito limitado resolve as mesmas massa q e entalpia H aceitas nos dois recipientes. Elos avançam por ID estável; o banho finito usa outro subpasso conservativo. O acoplamento é de primeira ordem. Massa, temperatura ou pressão fora dos limites e falhas rejeitam todo o lote, incluindo entradas, históricos compensados e intervalos especulativos de embreagem. + +[Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Bomba de combustível com mudança de fase acionada por eixo + +Pedir `equilibrium-fuel-pump` ou `electric-equilibrium-fuel-pump` pelo MCP ou executar JSON na CLI. Ler massa, temperatura, pressão, vapor e energia junto à entrega de válvulas e velocidade do eixo. `volume` do componente é geométrico; o do nó inclui expansão da parede. `torque`, `hydraulic_power`, `hydraulic_work` mostram a troca interna. + +O subpasso mecânico fechado mantém massa e entropia. A energia inclui fluido e parede elástica, então o trabalho do eixo usa o volume geométrico de referência. A mesma mudança aceita determina torque no solver mecânico conjunto com engrenagens, conversores, hidráulica e intervalos especulativos da embreagem. A expansão empurra o eixo; `hydraulic_work` positivo entra na câmara. Nenhuma fonte externa adicional de pressão é incluída. + +[Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Dutos de combustível compressível em equilíbrio + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. + +Declare `liquid_bulk_modulus`, omita `compliance` e forneça `initial_velocity` explicitamente em cada nó. Declare 1–24 `cells` internas ordenadas e distintas, cada uma pertencente a um duto. O comprimento é o volume dividido por `area`. Reservatórios têm velocidade zero e não podem ser células internas. Todas as portas compartilham material. `linear_resistance` e `quadratic_resistance` representam a resistência total, distribuída por volume; `fluid_heat_fraction` divide o calor de atrito entre fluido e parede. Não existe entrada direta de abertura. + +[Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Câmaras de combustível compressível acionadas por eixo + +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. + +`node_a` é rotacional e `node_b` tem um único proprietário geométrico. Declare `minimum_reference_volume`, `swept_volume` e `phase`; o volume inicial deve corresponder ao ângulo inicial. O reservatório misturado tem velocidade média zero e não pode ser célula interna. O mecanismo senoidal sem massa não acrescenta inércia de pistão ou came; a inércia do eixo é explícita. A pressão externa da carcaça é zero. + +[Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Bocais de combustível compressível com título congelado + +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. + +Declare área, coeficiente de área efetiva e `wall_kinetic_fraction`, com parede térmica finita. `initial_input` é abertura em [0,1], alterável por canal opcional. Os opcionais `needle_node`, `closed_position` e `full_open_position` multiplicam o comando pela abertura real da agulha translacional. As portas têm velocidade média zero, mesmo material e poder calorífico e não podem ser células internas. Pressão reversa fecha a fronteira ideal sem limiar de abertura. + +[Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Trânsito de combustível em equilíbrio nos bocais + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. + +Pressão e entropia específica determinam líquido estável, vapor ou coexistência. O fechamento usa igualdade dos potenciais químicos e limites térmicos e de pressão existentes. Extremos térmicos permitem somente vizinhanças de arredondamento binary64. Área, calor, comando e agulha real seguem o contrato comum. O jato expande idealmente até o receptor; o impulso estacionário não acrescenta força axial nem trabalho mecânico. + +[Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Relaxação de fase do combustível com taxa finita + +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. + +Execute `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observe frações real e de equilíbrio, afinidade, entropia de fase, balanços de vapor nas portas e resíduo global. Históricos de evaporação e condensação separam por sinal a transferência líquida da fonte em cada passo aceito; não contam trocas microscópicas brutas. As verificações cobrem solução exponencial independente, derivadas de entropia, acústica congelada, limite rígido de equilíbrio, autorrefinamento temporal e refinamento espacial acústico linear independente. Transações, reprodução portátil e MCP real são verificados separadamente; os números ficam nas evidências de validação. + +[Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) + +## Bombas de combustível com relaxação e dosagem congelada + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. + +Execute `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observe volume/trabalho, frações real e de equilíbrio, entropia de fase, `total_vapor_delivered`, inventários das portas e resíduo global de vapor. As verificações comparam adiabáticas puras, quadratura independente da pressão com fração fixa, trabalho infinitesimal, ciclo reversível e ODE independente do eixo com vapor ideal. Refinamento acoplado, tempo de fonte compartilhado, balanços completos, cancelamento, reversão, ramificações, alocações, reprodução portátil e MCP real são verificados separadamente. Os números estão nas evidências de validação. + +[Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) diff --git a/docs/AGENT_API.ru.md b/docs/AGENT_API.ru.md index c3f65ab..bf348be 100644 --- a/docs/AGENT_API.ru.md +++ b/docs/AGENT_API.ru.md @@ -42,7 +42,7 @@ Windows использует ту же команду `dotnet` и абсолют ## Инструменты и результаты -В версии API агента 0.29.0 `get_example_model` принимает необязательный `name`: `electrothermal` (по умолчанию), `sealed-cylinder`, `gas-network`, `moving-cylinder`, `crank-timed-cylinder`, `fired-cylinder`, `fired-clutch`, `fired-planetary`, `fired-converter`, `fired-hydraulic`, `fired-pump`, `fired-pump-losses`, `electric-pump`, `pressure-regulated-pump`, `battery-regulated-pump`, `piston-actuated-clutch`, `spool-regulated-pump`, `gas-accumulator-pump`, `metered-fired-cylinder`, `film-fired-cylinder`, `liquid-injected-cylinder`, `needle-actuated-cylinder`, `closure-compensated-cylinder`, `dual-clutch-transmission`, `fired-dual-clutch`, `controlled-dual-clutch`, `controlled-fired-dual-clutch`, `ravigneaux-transmission`, `fired-ravigneaux-converter`, `resolved-ravigneaux-transmission`, `fired-resolved-ravigneaux-converter`, `hydraulic-ravigneaux-transmission` или `fired-hydraulic-ravigneaux`. `get_capabilities` объявляет поддерживаемые уровни fidelity, читаемые версии активов, пределы решателя и границы входов. Экспорт использует `power.asset.v24`; активы v1–v23 остаются читаемыми. Каналы выходов и их единицы возвращают проверка модели и создание сессии. Пройденные KPI лаборатории не устанавливают полный или калиброванный силовой агрегат. +В API агента версии 0.46.0 `get_example_model` принимает необязательный `name`, по умолчанию `electrothermal`. `get_capabilities.examples` перечисляет все 67 доступный пример, включая конечный бак и рециркуляцию. CLI `list-labs` возвращает все 68 лаборатории как JSON [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json); `thermal-network` по замыслу доступна только CLI. Возможности также объявляют компоненты, точность моделей, пределы решателя и входов. Экспорт использует `power.asset.v41`, сохраняя чтение v1-v40. Проверка и создание сессии возвращают каналы и единицы. Успешные KPI лаборатории не подтверждают полный или откалиброванный силовой агрегат. | Инструмент | Назначение | |---|---| @@ -287,3 +287,133 @@ flowchart TD Запросите `hydraulic-ravigneaux-transmission` или `fired-hydraulic-ravigneaux`. Используйте явные доли заполнения и слива на 700/701 по 708/709; блокировка со сгоранием использует 710/711. Прежние ID замыкания диапазона отсутствуют. Проверьте и обнаружьте каналы, прежде чем писать. Давление, ход и контакт поршня определяют ёмкости; команда, принятая API, не подтверждает физическую блокировку. Отчёты сохраняют давление линии и камеры, ход, контактную ёмкость, работу насоса, вытесненный объём, теплоту трения, сужения и демпфирования и каждый хеш модели. Полные ревизии, отмена, поздний откат и независимые ветвления со сбросом клапана используют обычные контракты. Граф использует существующие записи актива v24, а не новый формат сериализации. См. [AT_HYDRAULIC_ACTUATION.ru.md](AT_HYDRAULIC_ACTUATION.ru.md). + +## Обратная связь гидравлической AT + +`at_controller` принимает целочисленную передачу в [-1,4]; ноль означает нейтраль. Он управляет пятью парами клапанов наполнения/слива и необязательной блокировкой гидротрансформатора. Порядок: вход водила, малого солнца, большого солнца, тормоз водила, тормоз большого солнца, затем блокировка. + +Примеры `controlled-hydraulic-ravigneaux` и `controlled-fired-hydraulic-ravigneaux` используют канал 900 и ID 1400. Они сохраняют 99 и 122 отслеживаемых состояния при неизменном пределе 128. Формат v41 хранит маршруты, усиления и часы и читает v1-v40. + +Это исследовательское управление, параметры остаются `unverified`. Координация момента ECU, подробные датчики/клапаны, полный набор неисправностей автомобиля и калибровка OEM ещё не завершены. Проверки managed и Standard не подтверждают реальные Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.ru.md](AT_CONTROL.ru.md) + +## Жидкая топливная рампа с насосной подачей + +`liquid_rail_feed` связывает жидкий инжектор с существующим объёмным насосом и явной материальной/тепловой границей. Выходной гидравлический узел должен совпадать с податливостью и начальным абсолютным давлением рампы. Насос и инжектор владеют этим узлом; другие неучтённые жидкостные пути отклоняются. + +Формат v41 хранит связи подачи и температуру источника и читает v1-v40. Аналитический обмен вал/давление, независимое совместное уточнение ODE, смешение тепла, балансы массы/топлива/энергии/объёма, обратный поток и полный rollback проверяются отдельно. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[PUMP_FED_FUEL.ru.md](PUMP_FED_FUEL.ru.md) + +## Конечный бак жидкого топлива + +`liquid_fuel_tank` хранит конечную массу жидкости и тепловую энергию с плотностью, тепловым отсчётом плёнки и теплотой сгорания связанного инжектора. Подача выбирает его через `tank_component`, исключая `supply_temperature`. Каждый бак принадлежит одной совместимой подаче. + +Тепловая и химическая энергия бака входят в полное хранилище. Внутренний перенос не добавляет внешней массы или химической энергии. Заданное входное давление насоса сохраняет границу работы давления. Впуск/выпуск газа всё ещё может переносить химическую энергию. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[LIQUID_FUEL_TANK.ru.md](LIQUID_FUEL_TANK.ru.md) + +## Отслеживаемый возврат через сброс топлива + +`liquid_rail_return` связывает подачу с исключительно принадлежащим ей однонаправленным `hydraulic_relief`. Клапан соединяет рампу с тем же заданным входным давлением насоса. Все жидкостные пути регистрируются; несовместимые порты, повторное владение и неучтённые пути отклоняются. + +`fluid_heat_fraction` явно выбирает долю [0,1] потерь, переносимую обратным топливом. Остальное тепло следует объявленному пути. Совместное смешение рампы/бака сохраняет массу, химию, работу давления и тепло. Возврат внешнему источнику выводит массу и энергию через границу. + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## Геометрия бака и конечное газовое пространство + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +Совместный решатель обменивает работу давления между валом, рампой и газом без внешнего источника давления. Газовые отверстия и тепловые связи задают явную вентиляцию/теплообмен. Читать `pressure`, `fill_fraction`, знаковую накопленную `hydraulic_work` и массу, энергию, объём газа. Доза, жидкость, испарение и горение разделены. + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Фазовое равновесие топлива и границы жидкой подачи + +Необязательный `fuel_film.parameters.phase_equilibrium` задаёт `reference_pressure` в `pa` или `bar`, а `minimum_temperature` / `maximum_temperature` в `k`. `saturation_temperature` обозначает опорную температуру; `latent_internal_energy` — разность удельной внутренней энергии пара и жидкости при ней. Каждый равновесный приёмник имеет одну плёнку. Начальный снимок сохраняется; принятые интервалы уравновешивают газ и жидкость с теплообменом с конечной стенкой. + +`mass_flow` — знаковый нетто-перенос за полный физический шаг. `evaporated_fuel_mass` и `condensed_fuel_mass` накапливают положительную и отрицательную массы без двойного счёта компенсирующих проекций. `vapor_partial_pressure` показывает парциальное давление топлива. Тепловой, массовый и химический балансы включают обе фазы. + +Однофазная подача по умолчанию отклоняет жидкость ниже насыщения. Опциональный конечный бак разрешает парообмен источника с поправкой химического потенциала. Рампа и забор остаются жидкими; пузырьки и кавитирующий поток требуют дальнейшей физики. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) + +## Сеть переноса равновесного топлива + +Запросить `equilibrium-fuel-network` или `electrothermal-fuel-network` через MCP либо запустить тот же JSON в CLI. Читать `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Здесь `internal_energy` включает упругую стенку, химическая энергия отдельна. Элементы показывают знаковые потоки, накопленную массу, `transport_energy` и изменение энтропии пары. + +Ограниченный неявный Эйлер находит одинаковые принятые массу q и энтальпию H для двух сосудов. Элементы идут по стабильным ID; конечная ванна использует другой консервативный подшаг. Порядок сопряжения — первый. Нарушение границ массы, температуры, давления и отказ решателя отклоняют весь пакет, включая входы, компенсированные истории и пробные интервалы сцепления. + +[Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + +## Фазоразрешающий топливный насос с приводом от вала + +Запросить `equilibrium-fuel-pump` или `electric-equilibrium-fuel-pump` через MCP либо запустить JSON в CLI. Читать массу, температуру, давление, пар и энергию рядом с подачей клапанов и скоростью вала. `volume` компонента геометрический; объём узла включает упругость. `torque`, `hydraulic_power`, `hydraulic_work` показывают внутренний обмен с валом. + +Закрытый механический подшаг сохраняет массу и энтропию. Запас энергии включает среду и упругую стенку, поэтому работа вала относится к геометрическому опорному объёму. То же принятое изменение энергии задаёт момент в совместном решателе, включая передачи, конвертеры, гидравлику и пробные интервалы сцепления. Расширение движет вал; положительный `hydraulic_work` направлен в камеру. Дополнительный внешний источник давления не вводится. + +[Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + +## Сжимаемые равновесные топливные каналы + +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. + +Задайте `liquid_bulk_modulus`, исключите `compliance` и явно задайте `initial_velocity` каждого узла. Укажите 1–24 упорядоченных различных внутренних `cells`, каждая принадлежит одному каналу. Длина ячейки равна объёму, делённому на `area`. Скорость резервуаров нулевая; они не могут быть внутренними ячейками. Материал всех портов одинаков. `linear_resistance` и `quadratic_resistance` задают полное сопротивление с распределением по объёму; `fluid_heat_fraction` распределяет тепло трения между средой и стенкой. Прямого входа открытия нет. + +[Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) + +## Топливные камеры сжимаемой среды с приводом от вала + +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. + +Порт `node_a` вращательный, а `node_b` имеет одного владельца геометрии. Задайте `minimum_reference_volume`, `swept_volume` и `phase`; начальный объём узла должен совпадать с геометрией при начальном угле. Средняя скорость перемешанного резервуара нулевая; он не может быть внутренней ячейкой. Безмассовый синусоидальный механизм не добавляет инерции поршня или кулачка; инерция вала явная. Внешнее давление корпуса нулевое. + +[Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) + +## Сжимаемые топливные сопла с замороженным составом + +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. + +Задайте площадь, коэффициент эффективной площади и `wall_kinetic_fraction` с конечной тепловой стенкой. `initial_input` — открытие в [0,1], изменяемое необязательным каналом. Необязательные `needle_node`, `closed_position`, `full_open_position` умножают команду на реальное открытие поступательной иглы. Порты имеют нулевую среднюю скорость, одинаковые материал и теплотворность и не являются внутренними ячейками. Обратное давление закрывает идеальную границу с нулевым порогом открытия. + +[Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) + +## Равновесное прохождение топлива через сопло + +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. + +Давление и удельная энтропия определяют устойчивую жидкость, пар или сосуществование. Замыкание использует равенство химических потенциалов и действующие температурные и барические границы. Концы температурного интервала допускают лишь округление binary64. Площадь, тепло стенки, команда и игла следуют общему контракту. Струя идеально расширена до давления приёмника; стационарный импульс не добавляет осевой силы иглы или механической работы. + +[Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) + +## Фазовая релаксация топлива с конечной скоростью + +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. + +Запустите `relaxing-fuel-evaporation` или `relaxing-fuel-duct`. Доступны фактическая и равновесная доли, сродство, фазовая энтропия, паровые балансы портов и глобальная невязка. Истории испарения и конденсации разделяют по знаку суммарный перенос источника за принятый шаг, а не микроскопические встречные потоки. Проверяются независимое экспоненциальное решение, производные энтропии, замороженная акустика, жёсткий равновесный предел, временное самосгущение и независимое линейно-акустическое сгущение сетки. Транзакции, переносимое воспроизведение и реальный MCP проверяются отдельно; числа приведены в доказательствах валидации. + +[Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) + +## Релаксационные топливные насосы и дозирование с замороженной фазой + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. + +Запустите `relaxing-fuel-chamber` или `relaxing-pump-needle`. Наблюдаются объём и работа, фактическая и равновесная доли, фазовая энтропия, `total_vapor_delivered`, запасы портов и глобальная невязка пара. Проверки сравнивают чистофазные адиабаты, независимую квадратуру давления при фиксированной доле, бесконечно малую работу, обратимый цикл и независимое ODE вала с идеальным паром. Отдельно проверяются сгущение связанной релаксации, время источника общих резервуаров, полные балансы, отмена, откат, ветвление, выделения памяти, переносимое воспроизведение и реальный MCP. Числа приведены в доказательствах валидации. + +[Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) diff --git a/docs/AGENT_API.zh-CN.md b/docs/AGENT_API.zh-CN.md index bd2286c..7d1a336 100644 --- a/docs/AGENT_API.zh-CN.md +++ b/docs/AGENT_API.zh-CN.md @@ -42,7 +42,7 @@ Windows 使用同一条 `dotnet` 命令,以及指向 DLL 的绝对路径。生 ## 工具与结果 -在智能体 API 版本 0.29.0 中,`get_example_model` 接受可选的 `name`:`electrothermal`(默认)、`sealed-cylinder`、`gas-network`、`moving-cylinder`、`crank-timed-cylinder`、`fired-cylinder`、`fired-clutch`、`fired-planetary`、`fired-converter`、`fired-hydraulic`、`fired-pump`、`fired-pump-losses`、`electric-pump`、`pressure-regulated-pump`、`battery-regulated-pump`、`piston-actuated-clutch`、`spool-regulated-pump`、`gas-accumulator-pump`、`metered-fired-cylinder`、`film-fired-cylinder`、`liquid-injected-cylinder`、`needle-actuated-cylinder`、`closure-compensated-cylinder`、`dual-clutch-transmission`、`fired-dual-clutch`、`controlled-dual-clutch`、`controlled-fired-dual-clutch`、`ravigneaux-transmission`、`fired-ravigneaux-converter`、`resolved-ravigneaux-transmission`、`fired-resolved-ravigneaux-converter`、`hydraulic-ravigneaux-transmission` 或 `fired-hydraulic-ravigneaux`。`get_capabilities` 通告支持的保真度级别、可读资产版本、求解器限制与输入界限。导出使用 `power.asset.v24`;v1–v23 资产仍可读取。输出通道及其单位由模型校验与会话创建返回。通过实验室 KPI 并不确立完整或已标定的动力总成。 +智能体 API 版本 0.46.0 的 `get_example_model` 接受可选 `name`,默认值为 `electrothermal`。`get_capabilities.examples` 列出全部 67 个示例,包括有限油箱和循环燃油模型。CLI `list-labs` 以 [`power.laboratory_catalog.v1`](../schemas/power.laboratory_catalog.v1.schema.json) JSON 返回全部 68 个实验室;`thermal-network` 按设计仅供 CLI 使用。能力还声明支持的元件、保真度、求解器限制和输入界限。导出采用 `power.asset.v41`,并保留 v1-v40 读取器。验证和会话创建返回输出通道及单位。实验室 KPI 通过不代表完整或已标定的动力总成。 | 工具 | 作用 | |---|---| @@ -287,3 +287,133 @@ flowchart TD 请求 `hydraulic-ravigneaux-transmission` 或 `fired-hydraulic-ravigneaux`。在 700/701 直到 708/709 上使用显式充/放分数;点火锁止使用 710/711。先前的挡域接合 ID 不存在。写入之前先校验/发现通道。活塞压力/行程/接触决定容量;被 API 接受的指令并不确认物理锁止。 报告保留管路/腔室压力、行程、接触容量、泵功、扫过体积、摩擦/节流/阻尼热以及每一个模型哈希。完整修订、取消、延迟回滚与独立的阀门释放分支使用普通契约。该图使用现有资产 v24 记录,而不是新的序列化格式。参见 [AT 驱动](AT_HYDRAULIC_ACTUATION.zh-CN.md)。 + +## 液压 AT 反馈控制 + +`at_controller` 接受 [-1,4] 范围内的整数目标挡位;零表示空挡。它管理五组充油/泄压阀以及可选的变矩器锁止支路。支路顺序为行星架输入、小太阳轮输入、大太阳轮输入、行星架制动、大太阳轮制动,最后是锁止。 + +示例 `controlled-hydraulic-ravigneaux` 和 `controlled-fired-hydraulic-ravigneaux` 使用请求通道 900、控制器 ID 1400。两者分别保留 99 和 122 个报告状态,未改变 128 状态上限。资产 v41 保留支路、增益和时钟,并可读取 v1-v40。 + +这是研究控制,参数仍为 `unverified`。协调 ECU 扭矩融合、详细传感器/阀模型、完整车辆故障及 OEM 标定仍待完成。托管和 Standard 检查不能证明实际 Unity Editor/Play/Player/IL2CPP 验收。 + +[AT_CONTROL.zh-CN.md](AT_CONTROL.zh-CN.md) + +## 泵送液体燃油轨 + +`liquid_rail_feed` 将液体喷射器与现有排量泵及显式质量/热边界配对。液压出口节点必须与燃轨的顺应性和初始绝对压力一致。配对泵和喷射器管理该压力节点;其他未计入的流体路径会被拒绝。 + +资产 v41 保留补给连接和源温度,并读取 v1-v40。泵轴/压力解析交换、独立联立 ODE 细化、热混合、质量/燃料/能量/体积账本、反向回输与完整回滚各有独立检查。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[PUMP_FED_FUEL.zh-CN.md](PUMP_FED_FUEL.zh-CN.md) + +## 有限液体燃油箱 + +`liquid_fuel_tank` 使用配对喷射器的密度、油膜热参考和热值,存储有限液体质量及热能。补给通过 `tank_component` 选择它,并省略 `supply_temperature`。每个油箱属于一个燃料属性相同的补给。 + +油箱热能和化学能进入完整储能账本。油箱到燃轨的传递不增加外部质量或化学供给。显式设定的泵入口压力保留其压力功边界。气体进气/排气仍可携带化学边界能量。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[LIQUID_FUEL_TANK.zh-CN.md](LIQUID_FUEL_TANK.zh-CN.md) + +## 可追踪的燃油泄压回流 + +`liquid_rail_return` 将补给与独占的单向 `hydraulic_relief` 配对。阀连接燃轨与泵相同的设定入口压力。每条流体路径都须登记;不兼容端口、重复阀所有权和未追踪路径会被拒绝。 + +`fluid_heat_fraction` 显式选择阀损失中随回流燃油携带的比例,范围为 [0,1]。剩余热量沿阀声明的热路径传递。燃轨/油箱联立热混合保持完整质量、化学、压力功和热账本。外部源模式则由回流跨边界带出质量与能量。 + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 油箱几何与有限气相空间 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +耦合求解在轴、燃轨和气体之间交换压力功,不引入外部压力源。气体孔口和热连接提供显式通气及传热路径。读取油箱 `pressure`、`fill_fraction`、带符号累计 `hydraulic_work`,以及气相的质量、能量和体积。请求剂量、液体供给、蒸发和燃烧保持独立。 + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 燃油相平衡与液体供给边界 + +可选的 `fuel_film.parameters.phase_equilibrium` 声明单位为 `pa` 或 `bar` 的 `reference_pressure`,以及单位为 `k` 的 `minimum_temperature` / `maximum_temperature`。已有 `saturation_temperature` 指参考温度,`latent_internal_energy` 指该温度下蒸气与液体的比内能差。每个平衡接收端由一个油膜拥有。初始快照保留输入状态;接受的推进区间使气液达到平衡,并与有限热容量壁面交换热量。 + +`mass_flow` 是完整物理时间步的带符号净相变流量。`evaporated_fuel_mass` 与 `condensed_fuel_mass` 分别累计正、负净相变量,避免重复计算分步求解中互相抵消的调整。`vapor_partial_pressure` 给出接收端燃料分压。热能、质量和化学能账本包含两相。 + +默认液体供给模型拒绝低于饱和压力的湿状态。可选有限体积油箱相平衡使用压力修正化学势求解供给端蒸气转移。燃轨和泵吸口仍只输送已分离液体;气泡夹带与空化泵/燃轨流动还需要后续物理模型。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) + +## 相平衡燃料输运网络 + +通过 MCP 请求 `equilibrium-fuel-network` 或 `electrothermal-fuel-network`,也可用 CLI 运行同一 JSON。读取各容器的 `mass`、`internal_energy`、`elastic_energy`、`vapor_mass`、`vapor_mass_fraction`、`vapor_volume_fraction`、`entropy` 和 `specific_enthalpy`。这里 `internal_energy` 包含弹性壁储能,化学能单独报告。链接公开有符号质量/体积流、累计转移质量、`transport_energy` 和成对熵变化。 + +有界后向 Euler 求解为两个容器确定同一组已接受质量 q 与焓 H。链接按稳定组件 ID 顺序推进,有限热浴换热使用另一守恒子步。耦合方法为一阶。质量、温度或压力越界及求解失败均拒绝整批,包括输入、补偿历史和离合器试探区间。 + +[相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + +## 轴驱动相变燃料泵 + +通过 MCP 请求 `equilibrium-fuel-pump` 或 `electric-equilibrium-fuel-pump`,也可用 CLI 运行其 JSON。联合读取腔体质量、温度、压力、蒸气比例、能量、阀交付量与轴速。组件 `volume` 是几何参考体积,节点 `volume` 包含壁膨胀。腔体 `torque`、`hydraulic_power`、`hydraulic_work` 公开内部轴功交换。 + +封闭机械子步保持质量与熵不变。储能包含流体和弹性壁,因此轴功使用几何参考体积的变化。同一组已接受能量变化在联合机械求解中确定压力转矩,并包含齿轮、变矩器、液压和离合器试探区间。膨胀推动轴;正 `hydraulic_work` 表示轴向腔体做功。不添加额外外部压力源。 + +[轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + +## 可压缩平衡燃料管路 + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 + +声明 `liquid_bulk_modulus`,省略 `compliance`,并为每个节点显式给出 `initial_velocity`。声明 1–24 个有序且不重复的内部 `cells`,每个单元只能属于一个管路。单元长度等于体积除以 `area`。储罐速度为零,且不能兼作内部单元。所有端口使用相同材料。`linear_resistance` 和 `quadratic_resistance` 表示整条管路的阻力,按单元体积分配;`fluid_heat_fraction` 在流体与壁面之间分配摩擦热。没有直接开度输入。 + +[可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) + +## 轴驱动可压缩燃料腔室 + +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 + +`node_a` 为转动端口,`node_b` 只能有一个腔室几何所有者。声明 `minimum_reference_volume`、`swept_volume` 和 `phase`;节点初始容积须匹配初始轴角处的几何容积。混合储腔主体速度为零,不能兼作管路内部单元。无质量的正弦机构不增加活塞或凸轮惯量,轴惯量显式给定。外部壳体压力为零。 + +[轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) + +## 冻结相态可压缩燃料喷嘴 + +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 + +声明截面积、有效面积流量系数和 `wall_kinetic_fraction`,并连接有限热壁面。`initial_input` 是 [0,1] 内的开度,可选输入通道用于改变它。可选的 `needle_node`、`closed_position` 和 `full_open_position` 将指令乘以实际平动针阀开度。两端主体速度为零,材料与热值一致,且不能是管路内部单元。反向压差会关闭这个理想零开启压差边界。 + +[冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) + +## 平衡燃料喷嘴输运 + +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 + +压力与比熵共同确定稳定液体、蒸气或两相共存状态。闭合关系使用化学势相等条件及既有温压边界;温度端点只允许 binary64 舍入邻域。面积、壁面热分配、开度指令和实际针阀沿用共同喷嘴契约。喷流能量表示完全膨胀到接收腔压力的理想状态;静止喷流冲量不额外产生针阀轴向力或机械功。 + +[平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) + +## 有限速率燃料相变弛豫 + +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 + +运行 `relaxing-fuel-evaporation` 或 `relaxing-fuel-duct`。可观察实际与平衡质量分数、化学亲和势、相变熵、端口蒸气库存和全局蒸气残差。蒸发、凝结历史按每个已接受时间步的净源项转移量正负累计,不表示微观正反向总通量。检查覆盖独立指数解析解、熵导数、冻结声学、刚性平衡极限、时间自细化和独立线性声学网格细化。事务、可移植重放与真实 MCP 分别验证;数值记录在验证证据中。 + +[有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) + +## 相变弛豫燃料泵与冻结相态计量 + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 + +运行 `relaxing-fuel-chamber` 或 `relaxing-pump-needle`。可观察腔体体积与功、实际及平衡质量分数、相变熵、`total_vapor_delivered`、端口库存和全局蒸气残差。检查对照纯相绝热线、独立固定质量分数压力积分、微小位移功、可逆循环及独立理想蒸气轴动力学 ODE;有限速率耦合细化、共享储腔源项时间、完整账本、取消、回滚、分支、分配、资产重放和真实 MCP 分别验证。数值记录在验证证据中。 + +[相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) diff --git a/docs/ARCHITECTURE.de.md b/docs/ARCHITECTURE.de.md index 1e8e5b4..fc41975 100644 --- a/docs/ARCHITECTURE.de.md +++ b/docs/ARCHITECTURE.de.md @@ -118,7 +118,7 @@ MCP-Sitzungen leben im lokalen Serverprozess. Die Grenze ist 16. Sie werden frei ## Was noch offen ist -Kompressibler Gaswechsel, vorgeschriebene Vormischverbrennung, Kupplungen, Zahnräder, ein tabellierter Wandler und hydraulische Betätigung existieren jetzt als Komponenten mit Ports, Zustand und Erhaltungsprüfungen. Sie schließen den Antriebsstrang nicht ab. Noch offen: Leitungspumpe und Nachfüllung, Zündungsregelung, detaillierte Saug- und Auslassseite, mechanische Verluste, reichere Thermochemie, Nachgiebigkeit der Verzahnung, vollständige AT-Druck- und Schaltregelung, abgestimmtes ECU-/TCU-Verhalten und gemessene Kalibrierung. Eine neue Gleichung braucht weiterhin eine explizite Modellversion, Dimensionen und numerische Nachweise. Bestehende Komponentensemantik wird nicht still erweitert. +Kompressibler Gaswechsel, vorgeschriebene Vormischverbrennung, Kupplungen, Zahnräder, ein tabellierter Wandler und hydraulische Betätigung existieren jetzt als Komponenten mit Ports, Zustand und Erhaltungsprüfungen. Sie schließen den Antriebsstrang nicht ab. Noch offen: gemessene Pumpenfüllung und Druckregelung, Zündungsregelung, detaillierte Saug- und Auslassseite, mechanische Verluste, reichere Thermochemie, Nachgiebigkeit der Verzahnung, vollständige AT-Druck- und Schaltregelung, abgestimmtes ECU-/TCU-Verhalten und gemessene Kalibrierung. Eine neue Gleichung braucht weiterhin eine explizite Modellversion, Dimensionen und numerische Nachweise. Bestehende Komponentensemantik wird nicht still erweitert. Ein Agent kann eine Topologie und einen Anfangszustand erzeugen, Parameterhypothesen vorschlagen, Komponentenkandidaten schreiben, Experimente bauen und die Nachweise zurücklesen. Der Ausführungskern besitzt weiterhin numerische Nebenbedingungen und Prüfungen. Ein Urteil eines Sprachmodells ist keine physikalische Tatsache. Graphbearbeitung in Unity, ein Simulations-Worker-Thread und ein austauschbares Hochleistungslöser-Backend warten, bis die Grenze stabil ist. Nichts hier behauptet einen allgemeinen nichtlinearen Löser, Burst oder einen GPU-Löser. @@ -245,3 +245,127 @@ Trägerverzahnungen unterstützen endliche, von null verschiedene, vorzeichenbeh ## Gemeinsame Baugruppe der hydraulischen Betätigung Die [Baugruppe der AT-Ansteuerung](AT_HYDRAULIC_ACTUATION.de.md) senkt 1..6 erklärte Kupplungsziele in tatsächliche Kolben- und Kontaktkupplungen, Füll- und Ablassdrosseln sowie Rückstellfedern ab, versorgt von einer gemeinsamen reversiblen Pumpe, von Leckage und Schlepp und von der Druckbegrenzung. Explizite Vorder- und Rückflächen erhalten überstrichenen Bestand und Arbeit des Referenzdrucks. Unveränderliche gewöhnliche Definitionen erhalten die bestehende gemeinsame Lösung aus Druck, Bewegung und Reibung, die portable Semantik von v24 und den vollständigen atomaren Zustand. Vorgeschriebene Ventilzeitpläne bleiben getrennt von AT-Rückführung und AT-Regelung sowie von der gemessenen Abnahme des Ventilkörpers. + +## Hydraulische AT-Rückführung + +`at_controller` akzeptiert einen ganzzahligen Sollgang in [-1,4]; null bedeutet Neutral. Er besitzt fünf Füll-/Ablassventilpaare und optional die Wandlerüberbrückung. Die Reihenfolge lautet Trägereingang, kleines Sonnenrad, großes Sonnenrad, Trägerbremse, große Sonnenradbremse, dann Überbrückung. + +`controlled-hydraulic-ravigneaux` und `controlled-fired-hydraulic-ravigneaux` verwenden Wunschkanal 900 und Regler-ID 1400. Sie behalten 99 und 122 gemeldete Zustände innerhalb der unveränderten Grenze 128. v41 speichert Routen, Verstärkungen und Uhren und liest v1-v40. + +Diese Regelung ist Forschung; Parameter bleiben `unverified`. ECU-Drehmomentkoordination, detaillierte Sensoren/Ventile, umfassende Fahrzeugfehler und OEM-Kalibrierung sind offen. Managed- und Standard-Prüfungen belegen keine tatsächliche Unity Editor/Play/Player/IL2CPP-Abnahme. + +[AT_CONTROL.de.md](AT_CONTROL.de.md) + +## Pumpengespeiste Flüssigkraftstoffschiene + +`liquid_rail_feed` verbindet einen Flüssiginjektor mit einer bestehenden Verdrängerpumpe und expliziter Stoff-/Wärmegrenze. Der hydraulische Auslassknoten muss Schienenkompliance und anfänglichem Absolutdruck entsprechen. Pumpe und Injektor besitzen diesen Knoten; andere unbilanzierte Fluidpfade werden abgelehnt. + +v41 speichert Speiseverknüpfungen und Quellentemperatur und liest v1-v40. Analytischer Wellen-/Druckaustausch, unabhängige simultane ODE-Verfeinerung, Wärmemischung, Masse/Kraftstoff/Energie/Volumenbilanzen, Rückstrom und vollständiges rollback haben eigene Prüfungen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[PUMP_FED_FUEL.de.md](PUMP_FED_FUEL.de.md) + +## Endlicher Flüssigkraftstofftank + +`liquid_fuel_tank` speichert endliche Flüssigkeitsmasse und kalorische Energie mit Dichte, Filmwärmereferenz und Heizwert des zugehörigen Injektors. Die Speisung wählt ihn mit `tank_component` und lässt `supply_temperature` weg. Jeder Tank gehört einer stofflich passenden Speisung. + +Kalorische und chemische Tankenergie gehören zur gesamten Speicherung. Interner Transfer fügt keine äußere Masse oder chemische Versorgung hinzu. Der erklärte Einlassdruck behält seine Druckarbeitsgrenze. Gaseinlass/-auslass kann weiterhin chemische Grenzenergie tragen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[LIQUID_FUEL_TANK.de.md](LIQUID_FUEL_TANK.de.md) + +## Verfolgter Kraftstoff-Entlastungsrücklauf + +`liquid_rail_return` verbindet eine Speisung mit exklusivem einseitigem `hydraulic_relief`. Das Ventil führt die Schiene zum gleichen vorgegebenen Pumpeneinlassdruck. Alle Fluidpfade registrieren; unpassende Ports, doppelte Eigentümer und unbilanzierte Pfade werden abgelehnt. + +`fluid_heat_fraction` wählt ausdrücklich den Anteil [0,1] des Ventilverlusts im Rückkraftstoff. Restwärme folgt dem erklärten Ventilwärmepfad. Gleichzeitige Schienen-/Tankmischung erhält Masse-, Chemie-, Druckarbeits- und Wärmebilanzen. Rückfluss zur Außenquelle führt Masse/Energie über die Grenze hinaus. + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## Tankgeometrie und endlicher Gasraum + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +Die gekoppelte Lösung tauscht Druckarbeit zwischen Welle, Rail und Gas ohne externe Druckquelle. Gasdrosseln und Wärmeverbindungen bilden explizite Entlüftung/Wärmewege. `pressure`, `fill_fraction`, vorzeichenbehaftete kumulierte `hydraulic_work` sowie Gasmasse, Energie und Volumen lesen. Dosis, Flüssigkeit, Verdampfung und Verbrennung bleiben getrennt. + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Das Modell nutzt eine ideale Pseudospezies, die gemeinsame Gaskonstante, konstante Wärmekapazitäten und vernachlässigbare Flüssigkeitsverdrängung. Gleiche chemische Potenziale ergeben die Sättigungsbeziehung unten. Bei festem Volumen bestimmen Gesamtkraftstoff und Innenenergie Temperatur und Dampfmasse. Chemisches Inventar wird intern übertragen; die Reaktion verbraucht nur Dampf. + +Eine begrenzte skalare Lösung nutzt die monotone Gleichgewichtsenergie. Endliche Wandwärme verwendet impliziten Euler. Transport- und Zylinderarbeitskopplung besitzen Verfeinerungsnachweise erster Ordnung. Flüssige Koexistenz bleibt im Temperaturintervall. Nach vollständiger Verdampfung darin kann Gas überhitzen, ohne die Sättigungskurve zu extrapolieren. + +`mass_flow` ist der vorzeichenbehaftete Nettophasentransfer des vollständigen Physikschritts. `evaporated_fuel_mass` und `condensed_fuel_mass` summieren positive und negative Massen, ohne sich aufhebende Teilprojektionen doppelt zu zählen. `vapor_partial_pressure` zeigt den Kraftstoffpartialdruck. Wärme-, Masse- und Chemiebilanzen enthalten beide Phasen. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +Der starre Behälter enthält inkompressible Flüssigkeit und ideales Pseudospezies/Trägergas. Flüssigkeitsvolumen ändert Gasvolumen. Das chemische Flüssigkeitspotenzial enthält `p/rho`; die Empfängerreferenz `p_0(T)` für vernachlässigbare Verdrängung wird druckkorrigiert. `reference_pressure` behält diese Stoffreferenz und wird nicht still als reale Sättigung des endlichen Reinstoffs umgedeutet. + +Ein begrenzter Flash bei konstantem U,V erhält Kraftstoff und Wärmeenergie. Explizite Gasdrosseln transportieren Dampf, Träger und chemische Energie; Wärmewege koppeln endliche Knoten. Pumpe/Rücklauf tauschen Verdrängungsarbeit mit dem Gas, danach verteilt das Gleichgewicht Innenenergie. `hydraulic_work` zählt Pumpenverdrängung ohne interne Phasenarbeit. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) + +## Referenz für ein nachgiebiges Kraftstoffvolumen + +`CompliantFuelVolume` liefert den konstitutiven Abschluss des Gleichgewichts-Kraftstoffnetzes. Er löst Flüssigkeit, Dampf und Koexistenz mit elastischem Speicher aus Gesamtmasse und Temperatur oder Energie. Die pumpengespeiste Injektoranbindung bleibt zu erweitern. [Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + +[Referenz für ein nachgiebiges Kraftstoffvolumen](COMPLIANT_FUEL_VOLUME.de.md) + +## Transportnetz für Kraftstoff im Gleichgewicht + +Die Domäne `fuel` transportiert reine Flüssigkeit und Dampf gemeinsam in endlichen elastischen Behältern. Jeder Behälter hält Gesamtmasse und kalorische plus elastische Energie unabhängig; der Phasenflash bestimmt Temperatur, Druck und Dampfanteile. `fuel_restriction` tauscht homogenes Spenderfluid aus, `fuel_heat_link` tauscht Wärme mit einem endlichen thermischen Knoten. Chemische Heizwertenergie bleibt separat bilanziert. + +[Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + +## Wellengetriebene phasenauflösende Kraftstoffpumpe + +`fuel_chamber` koppelt eine tatsächliche Welle an eine endliche Kraftstoffkammer. Einlass- und Auslass-`fuel_check_valve` liefern druckgetrieben Füllung und Förderung. Flüssigkeit, Dampf und elastische Wandenergie teilen einen Abschluss. Bei Einlassmangel kann die Kammer beim Ansaugen verdampfen; Förderung folgt berechnetem Bestand und Druck. + +[Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) + +## Wellengetriebene kompressible Kraftstoffkammern + +Der geschlossene Arbeitsschritt hält Masse und Entropie konstant. Kalte Kompressionsenergie und kalorische Energie verwenden dasselbe Gleichgewichtspotenzial wie der Kanal. Reine Flüssigkeit nutzt das exakte Druckintegral, idealer Dampf seine analytische Adiabate. Beim Phasenwechsel wird Entropie invertiert und der Energieendzustand geprüft. Die akzeptierte Energiedifferenz liefert das diskrete Druckmoment im gemeinsamen mechanischen Löser. Positives `hydraulic_work` bedeutet Energie von Welle zu Fluid. + +Der bewegliche Behälter verwendet halben Transport, volle Wellenarbeit und halben Transport. Der Transport bleibt erster Ordnung mit numerischer Diffusion; symmetrische Aufteilung erhöht die Ordnung nicht. Glatte geschlossene Flüssigkeitsbewegung konvergiert zweiter Ordnung. Winkeländerungen sind auf 0.25 rad je mechanischem Intervall begrenzt. CFL, Stoffgrenzen, vollständige Rücknahme, Abbruch und unabhängige Zweige gelten weiterhin. Stationärer Anschluss-/Gehäuseimpuls ist von der Kolbendruckarbeit getrennt. + +[Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) + +## Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil + +Beide Phasen teilen Druck, Temperatur und Geschwindigkeit; Phasenmassenübertragung ist unterdrückt. Entropiebeziehung und kalte Kompressionsenergie bestimmen den isentropen Enthalpieabfall. Das eindeutige Flussmaximum nutzt eingefrorene statt Gleichgewichtsschallgeschwindigkeit. Der Koeffizient skaliert die effektive Fläche. Bei kritischer Strömung beschreibt die Austrittsenergie einen ideal bis zum Empfängerdruck expandierten Strahl. Stagnationsenthalpie versorgt Empfänger und explizite Wandwärme genau einmal. Der Impuls bezeichnet stationäre Thermalisierung, nicht den gesamten Gehäuseschub oder axiale Nadelkraft. + +Konservative Teilschritte erster Ordnung übertragen dieselbe Masse und Enthalpie; Strahlenergie verteilt sich auf Fluid und Wand. Stoffzustände und gesamte Paarentropie werden geprüft. Grenzen: 4096 Teilschritte, 64 Halbierungen je Kandidat, anfänglich höchstens 0.1 der kleineren Behältermasse. Die Schließgrenze erlaubt 128 binary64 epsilon mal maximalen Kompressionsmodul oder Portdruck, ohne Ausgabedruck zu begrenzen. Fehler nehmen den ganzen Stapel zurück. Schritt, Bestand, Stoffgrenzen, Nadelhub und Fläche prüfen. + +[Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) + +## Kraftstoffdüsentransit im Phasengleichgewicht + +Positive Gleichgewichtsschallgeschwindigkeit im Quadrat liefert steigende Dichte mit Druck bei fester Entropie; der Enthalpieabfall sinkt. Diese monotonen Faktoren begrenzen den Intervallfluss einschließlich Phasengrenzen und mehrerer Extrema. Verzweigen und Begrenzen liefert abgetastete Untergrenze und verbleibende Obergrenze mit relativer Breite höchstens 1e-4. Grenzen sind 512 Stackintervalle und 8192 Teilungen. Kalorische Differenzen nutzen Rundungsspielraum und monotone Integralgrenzen mit bis zu 256 Riemann-Feldern und 80 Schließungsiterationen. Ungelöste Fälle verwerfen den Stapel. Ein glattes inneres Maximum ist sonisch; ein Phasengrenzenmaximum kann nicht glatt sein. + +Konservative Teilschritte erster Ordnung übertragen dieselbe Masse und Enthalpie; Strahlenergie verteilt sich auf Fluid und Wand. Stoffzustände und gesamte Paarentropie werden geprüft. Grenzen: 4096 Teilschritte, 64 Halbierungen je Kandidat, anfänglich höchstens 0.1 der kleineren Behältermasse. Die Schließgrenze erlaubt 128 binary64 epsilon mal maximalen Kompressionsmodul oder Portdruck, ohne Ausgabedruck zu begrenzen. Fehler nehmen den ganzen Stapel zurück. Schritt, Bestand, Stoffgrenzen, Nadelhub und Fläche prüfen. + +[Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) + +## Kraftstoff-Phasenrelaxation mit endlicher Rate + +Der Abschluss übernimmt das Kaltpotential der kompressiblen Flüssigkeit und den idealen Dampf des Gleichgewichtsmodells. Der Anfangsanteil ist explizit und wird nicht auf Gleichgewicht projiziert. Bei fester Masse, festem Volumen und fester innerer Energie nähert sich der Anteil mit konstantem `phase_relaxation_time_ns` exponentiell dem Gleichgewicht. Latente Wärme bleibt in der inneren Energiebilanz. Chemische Affinität ist das Flüssigkeits- minus Dampfpotential; ihr Produkt mit dem Phasentransfer, geteilt durch Temperatur, liefert nichtnegative Entropieproduktion. Dies ist ein Forschungsgesetz, keine gemessene Keimbildungskorrelation. + +Konservative Rusanov-Flüsse transportieren vier Felder. Jedes globale CFL-Intervall verwendet eine halbe lokale Phasenquelle, Transport und eine halbe Quelle. Gemeinsame Behälter erhalten jede Quelle einmal, unabhängig von der Kanalzahl. Der Quellverlauf ist für isolierte Zustände bei festem Volumen exakt; der gekoppelte Transport bleibt erster Ordnung. CFL nutzt die Schallgeschwindigkeitsgrenze bei eingefrorenem Anteil. Phasen- und Kanalentropie werden getrennt geprüft. Unzulässige Zustände setzen den gesamten Stapel zurück. + +[Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) + +## Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. + +Die Entropiebeziehung bei festem Anteil bestimmt Druck und Temperatur nach der Volumenänderung. Die Arbeit enthält kalte Flüssigkeitskompression und nutzt stabile Inkrementfunktionen für kleine Bewegungen. Dieselbe diskrete Arbeit treibt das Wellenmoment. Jedes globale Intervall wendet die Phasenquelle jedes Knotens einmal um den konservativen Kanal- und eingefrorenen Düsentransport an. Kanal-CFL und 0.02 des kleineren Portinventars begrenzen Intervalle; höchstens 4096 sind erlaubt. Mechanische Arbeit und Quelle bleiben getrennt. Gekoppelter Transport bleibt erster Ordnung und benötigt zeitliche Verfeinerung. + +[Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) diff --git a/docs/ARCHITECTURE.es.md b/docs/ARCHITECTURE.es.md index ea9df3a..64a91b7 100644 --- a/docs/ARCHITECTURE.es.md +++ b/docs/ARCHITECTURE.es.md @@ -152,7 +152,7 @@ Las sesiones MCP viven en el proceso local del servidor. El límite es 16. Se li ## Lo que sigue pendiente -El intercambio de gas compresible, la combustión premmezclada prescrita, los embragues, los engranajes, un convertidor mapeado y la actuación hidráulica existen ahora como componentes con puertos, estado y comprobaciones de conservación. No completan el grupo motopropulsor. Siguen pendientes: la bomba y el repostaje del raíl, el control de encendido, la admisión y el escape detallados, las pérdidas mecánicas, una termoquímica más rica, la flexibilidad de engrane, el control completo de presión y cambio de la AT, el comportamiento coordinado de ECU/TCU y la calibración medida. Una ecuación nueva sigue necesitando una versión de modelo explícita, dimensiones y evidencia numérica. La semántica de los componentes existentes no se amplía cambiándola en silencio. +El intercambio de gas compresible, la combustión premmezclada prescrita, los embragues, los engranajes, un convertidor mapeado y la actuación hidráulica existen ahora como componentes con puertos, estado y comprobaciones de conservación. No completan el grupo motopropulsor. Siguen pendientes: el llenado y la regulación medidos de la bomba, el control de encendido, la admisión y el escape detallados, las pérdidas mecánicas, una termoquímica más rica, la flexibilidad de engrane, el control completo de presión y cambio de la AT, el comportamiento coordinado de ECU/TCU y la calibración medida. Una ecuación nueva sigue necesitando una versión de modelo explícita, dimensiones y evidencia numérica. La semántica de los componentes existentes no se amplía cambiándola en silencio. Un agente puede generar una topología y un estado inicial, proponer hipótesis de parámetros, escribir candidatos de componente, construir experimentos y leer la evidencia de vuelta. El núcleo de ejecución sigue siendo dueño de las restricciones y comprobaciones numéricas. El juicio de un modelo de lenguaje no es un hecho físico. La edición de grafos en Unity, un hilo de trabajo de simulación y un backend de solver de alto rendimiento sustituible esperan a que la frontera sea estable. Nada de esto afirma un solver no lineal general, Burst ni un solver en GPU. @@ -488,3 +488,127 @@ explícitas de las caras delantera y trasera conservan el inventario barrido y e ordinarias inmutables conservan la resolución conjunta existente de presión, movimiento y fricción, la semántica portátil de v24 y el estado atómico completo. Los calendarios de válvula prescritos siguen separados de la realimentación y el control de la AT, y de la aceptación medida del cuerpo de válvulas. + +## Realimentación de AT hidráulica + +`at_controller` acepta una marcha solicitada entera en [-1,4]; cero es punto muerto. Controla cinco pares de válvulas de llenado/vaciado y el bloqueo opcional del convertidor. El orden es entrada del portasatélites, solar pequeño, solar grande, freno del portasatélites, freno del solar grande y bloqueo. + +`controlled-hydraulic-ravigneaux` y `controlled-fired-hydraulic-ravigneaux` usan canal 900 e ID 1400. Conservan 99 y 122 estados declarados dentro del límite sin cambios de 128. v41 conserva rutas, ganancias y relojes y lee v1-v40. + +Son controles de investigación y los parámetros siguen `unverified`. Coordinación de par ECU, sensores/válvulas detallados, fallos completos del vehículo y calibración OEM siguen pendientes. Las pruebas managed y Standard no acreditan Unity Editor/Play/Player/IL2CPP real. + +[AT_CONTROL.es.md](AT_CONTROL.es.md) + +## Raíl de combustible líquido alimentado por bomba + +`liquid_rail_feed` asocia un inyector líquido con una bomba de desplazamiento existente y una frontera explícita de materia/calor. El nodo de salida hidráulica debe coincidir con la compliancia y presión absoluta inicial del raíl. Bomba e inyector poseen ese nodo; otras rutas fluidas no contabilizadas se rechazan. + +v41 conserva enlaces y temperatura de fuente y lee v1-v40. Intercambio analítico eje/presión, refinamiento ODE simultáneo independiente, mezcla térmica, balances masa/combustible/energía/volumen, retorno y rollback completo tienen verificaciones separadas. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[PUMP_FED_FUEL.es.md](PUMP_FED_FUEL.es.md) + +## Tanque finito de combustible líquido + +`liquid_fuel_tank` guarda masa líquida finita y energía térmica con densidad, referencia térmica de película y poder calorífico del inyector asociado. La alimentación lo elige con `tank_component` y omite `supply_temperature`. Cada tanque pertenece a una alimentación compatible. + +Energías térmica y química del tanque forman el almacenamiento completo. La transferencia interna no agrega masa ni suministro químico externos. La presión de entrada prescrita mantiene su frontera de trabajo de presión. Admisión/escape gaseoso aún pueden llevar energía química. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[LIQUID_FUEL_TANK.es.md](LIQUID_FUEL_TANK.es.md) + +## Retorno de alivio de combustible trazado + +`liquid_rail_return` une una alimentación con un `hydraulic_relief` unidireccional exclusivo. La válvula conecta el raíl a la misma presión de entrada prescrita de la bomba. Registrar toda ruta fluida; puertos incompatibles, propiedad duplicada y rutas no seguidas se rechazan. + +`fluid_heat_fraction` elige explícitamente la fracción [0,1] de pérdida transportada por combustible retornado. El resto sigue la ruta térmica declarada. Mezcla simultánea raíl/tanque conserva masa, química, trabajo de presión y calor. El retorno a fuente externa saca masa/energía por la frontera. + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## Geometría del tanque y espacio gaseoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +El solver acoplado intercambia trabajo de presión entre eje, riel y gas sin fuente externa. Orificios gaseosos y enlaces térmicos dan venteo/calor explícitos. Leer `pressure`, `fill_fraction`, `hydraulic_work` acumulado con signo y masa, energía, volumen del gas. Dosis, líquido, evaporación y combustión permanecen separados. + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Equilibrio de fases del combustible y límites de suministro + +El modelo usa una pseudoespecie ideal, la constante gaseosa común del receptor, capacidades constantes y desplazamiento líquido despreciable. La igualdad de potenciales químicos da la saturación siguiente. A volumen fijo, combustible total y energía interna determinan temperatura y masa de vapor. El inventario químico se transfiere internamente; la reacción solo consume vapor. + +Una solución escalar acotada usa la energía de equilibrio monótona. El calor de pared usa Euler implícito. Transporte y trabajo del cilindro móvil tienen evidencia de refinamiento de primer orden. La coexistencia líquida queda en el intervalo declarado. Tras evaporarse completamente dentro de él, el gas puede sobrecalentarse sin extrapolar la curva. + +`mass_flow` es la transferencia neta con signo del paso físico completo. `evaporated_fuel_mass` y `condensed_fuel_mass` acumulan sus masas positiva y negativa sin duplicar proyecciones que se cancelan. `vapor_partial_pressure` muestra la presión parcial de combustible. Los balances térmico, másico y químico incluyen ambas fases. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Equilibrio del tanque con volumen líquido finito + +El recipiente rígido contiene líquido incompresible y gas ideal de pseudoespecie/portador. El líquido desplaza volumen gaseoso. Su potencial químico incluye `p/rho`, por lo que se corrige la referencia `p_0(T)` de desplazamiento despreciable. `reference_pressure` mantiene ese significado y no se reinterpreta como saturación real del fluido puro de densidad finita. + +Un flash acotado a U,V constantes conserva combustible y energía térmica. Orificios explícitos transportan vapor, portador y energía química; enlaces térmicos intercambian con nodos finitos. Bomba/retorno intercambian trabajo de desplazamiento con el gas y luego el equilibrio redistribuye energía. `hydraulic_work` cuenta desplazamiento de bomba, excluyendo trabajo interno de fase. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) + +## Referencia de volumen de combustible flexible + +`CompliantFuelVolume` aporta el cierre constitutivo de la red de combustible en equilibrio. Resuelve líquido, vapor y coexistencia con almacenamiento elástico desde masa total y temperatura o energía. La ruta de inyector por bomba mantiene pendiente ampliar su acoplamiento. [Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + +[Referencia de volumen de combustible flexible](COMPLIANT_FUEL_VOLUME.es.md) + +## Red de transporte de combustible en equilibrio + +El dominio `fuel` transporta líquido puro y vapor juntos en recipientes elásticos finitos. Cada recipiente mantiene masa total y energía calórica más elástica independientes; el flash determina temperatura, presión y fracciones de vapor. `fuel_restriction` intercambia fluido donante homogéneo y `fuel_heat_link` intercambia calor con un nodo térmico finito. La energía química del poder calorífico mantiene un balance separado. + +[Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + +## Bomba de combustible con cambio de fase impulsada por eje + +`fuel_chamber` acopla un eje real a una cámara finita de combustible. `fuel_check_valve` de entrada y salida permiten llenado y entrega por presión. Líquido, vapor y energía elástica comparten cierre. Con entrada insuficiente la cámara puede vaporizar en aspiración; la entrega sigue inventario y presión calculados. + +[Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. [Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) + +## Cámaras de combustible compresible accionadas por eje + +El paso de trabajo cerrado mantiene masa y entropía. Energía de compresión fría y energía calórica usan el potencial de equilibrio del conducto. El líquido puro usa la integral exacta de presión y el vapor ideal su adiabática analítica. El cambio de fase invierte entropía y comprueba la energía final. La diferencia aceptada determina un par discreto en la resolución mecánica común. Un `hydraulic_work` positivo significa energía del eje al fluido. + +El depósito móvil usa medio transporte, trabajo completo del eje y medio transporte. El transporte sigue siendo de primer orden con difusión numérica; la separación simétrica no eleva su orden. El movimiento líquido cerrado y suave converge a segundo orden. Los incrementos angulares se limitan a 0.25 rad por intervalo mecánico. Siguen aplicándose CFL, límites materiales, reversión completa, cancelación y ramas independientes. El impulso estacionario de puertos/carcasa se separa del trabajo del pistón. + +[Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) + +## Toberas de combustible compresible de calidad congelada + +Las fases comparten presión, temperatura y velocidad; se suprime transferencia másica de fase. Entropía y compresión fría determinan la caída isentrópica de entalpía. El máximo único usa velocidad del sonido congelada, distinta de la de equilibrio. El coeficiente escala área efectiva. En bloqueo, la energía de salida describe un chorro ideal totalmente expandido a la presión receptora. La entalpía de remanso paga una vez energía receptora y calor explícito de pared. El impulso es de termalización estacionaria, no empuje total de carcasa ni fuerza axial de aguja. + +Subpasos conservativos de primer orden transfieren igual masa y entalpía y reparten energía cinética entre fluido y pared. Se comprueban estados y entropía total de la pareja. Límites: 4096 subpasos, 64 reducciones a la mitad por candidato y transferencia inicial de hasta 0.1 de la menor masa. El cierre tolera 128 epsilon binary64 por el mayor módulo volumétrico o presión, sin recortar presiones informadas. Un fallo revierte todo el lote. Revise paso, inventario, límites, carrera y área. + +[Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) + +## Tránsito de combustible en equilibrio por toberas + +La velocidad del sonido de equilibrio al cuadrado positiva implica densidad creciente con presión a entropía fija; la caída de entalpía disminuye. Estos factores monótonos acotan el flujo en intervalos, incluidas fronteras de fase y varios extremos. Ramificación y acotación devuelve cota inferior muestreada y superior restante con ancho relativo máximo 1e-4. Límites: 512 intervalos en pila y 8192 divisiones. Diferencias calóricas usan márgenes de redondeo y cotas integrales monótonas con hasta 256 paneles Riemann y 80 iteraciones. Lo no resuelto rechaza el lote. Un máximo interior suave es sónico; uno de frontera puede no ser suave. + +Subpasos conservativos de primer orden transfieren igual masa y entalpía y reparten energía cinética entre fluido y pared. Se comprueban estados y entropía total de la pareja. Límites: 4096 subpasos, 64 reducciones a la mitad por candidato y transferencia inicial de hasta 0.1 de la menor masa. El cierre tolera 128 epsilon binary64 por el mayor módulo volumétrico o presión, sin recortar presiones informadas. Un fallo revierte todo el lote. Revise paso, inventario, límites, carrera y área. + +[Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) + +## Relajación de fase del combustible a velocidad finita + +El cierre conserva el potencial frío del líquido compresible y el vapor ideal del modelo de equilibrio. La fracción inicial es explícita y no se proyecta al equilibrio. Con masa, volumen y energía interna fijos, la fracción se aproxima exponencialmente al objetivo con `phase_relaxation_time_ns` constante. El calor latente permanece en el balance interno. La afinidad química es el potencial del líquido menos el del vapor; su producto por la transferencia de fase, dividido por la temperatura, produce entropía no negativa. Es una ley de investigación, no una correlación de nucleación medida. + +Los flujos conservativos de Rusanov transportan cuatro campos. Cada intervalo CFL global aplica media fuente local, transporte y media fuente. Los depósitos compartidos reciben cada fuente una vez, independientemente del número de conductos. La fuente es exacta para estados aislados a volumen fijo; el transporte acoplado mantiene error de primer orden. CFL usa la cota acústica de fracción congelada. Las entropías de fase y conducto se comprueban por separado. Un estado fuera de límites revierte todo el lote. + +[Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) + +## Bombas de combustible con relajación y dosificación congelada + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. + +La relación de entropía a fracción fija determina presión y temperatura tras cambiar el volumen. El trabajo incluye compresión fría del líquido y funciones incrementales estables para movimientos pequeños. El mismo trabajo discreto genera el par del eje. Cada intervalo global aplica una vez la fuente de cada nodo alrededor del transporte conservativo por conducto y tobera congelada. CFL y 0.02 del menor inventario de puerto limitan los intervalos, con máximo de 4096. Trabajo y fuente se separan. El transporte acoplado sigue siendo de primer orden y requiere refinamiento temporal. + +[Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) diff --git a/docs/ARCHITECTURE.fr.md b/docs/ARCHITECTURE.fr.md index 8e74d6f..702740f 100644 --- a/docs/ARCHITECTURE.fr.md +++ b/docs/ARCHITECTURE.fr.md @@ -117,7 +117,7 @@ Les sessions MCP vivent dans le processus serveur local. La limite est 16. Elles ## Ce qui reste ouvert -L'échange gazeux compressible, la combustion prémélangée prescrite, les embrayages, les engrenages, un convertisseur cartographié et l'actionnement hydraulique existent maintenant comme composants avec ports, état et contrôles de conservation. Ils n'achèvent pas le groupe motopropulseur. Encore ouvert : pompe et ravitaillement de rampe, contrôle d'allumage, admission et échappement détaillés, pertes mécaniques, thermochimie plus riche, compliance d'engrènement, pression et contrôle de passage AT complets, comportement ECU/TCU coordonné, et calibration mesurée. Une nouvelle équation a encore besoin d'une version de modèle explicite, de dimensions et de preuves numériques. La sémantique des composants existants n'est pas étendue en la changeant en silence. +L'échange gazeux compressible, la combustion prémélangée prescrite, les embrayages, les engrenages, un convertisseur cartographié et l'actionnement hydraulique existent maintenant comme composants avec ports, état et contrôles de conservation. Ils n'achèvent pas le groupe motopropulseur. Encore ouvert : remplissage et régulation de pompe mesurés, contrôle d'allumage, admission et échappement détaillés, pertes mécaniques, thermochimie plus riche, compliance d'engrènement, pression et contrôle de passage AT complets, comportement ECU/TCU coordonné, et calibration mesurée. Une nouvelle équation a encore besoin d'une version de modèle explicite, de dimensions et de preuves numériques. La sémantique des composants existants n'est pas étendue en la changeant en silence. Un agent peut générer une topologie et un état initial, proposer des hypothèses de paramètres, écrire des candidats de composants, construire des expériences et relire les preuves. Le cœur d'exécution possède encore les contraintes numériques et les contrôles. Le jugement d'un modèle de langage n'est pas un fait physique. L'édition de graphe Unity, un fil de travailleur de simulation et un backend de solveur haute performance remplaçable attendent que la frontière soit stable. Rien ici ne revendique un solveur non linéaire général, Burst ou un solveur GPU. @@ -244,3 +244,127 @@ Les engrènements de porte-satellites prennent en charge des rapports relatifs s ## Assemblage d'actionnement hydraulique partagé L'[assemblage d'actionnement AT](AT_HYDRAULIC_ACTUATION.fr.md) abaisse 1..6 cibles d'embrayage déclarées en embrayages réels à piston/contact, restrictions de remplissage/vidange et ressorts de rappel alimentés par une pompe réversible partagée, des fuites/traînée et une décharge. Les aires avant/arrière explicites conservent l'inventaire balayé et le travail de pression de référence. Les définitions ordinaires immuables préservent la résolution conjointe existante pression/mouvement/frottement, la sémantique portable v24 et l'état atomique complet. Les calendriers de vanne prescrits restent séparés du retour/contrôle AT et de l'acceptation mesurée du corps de vanne. + +## Régulation hydraulique de boîte AT + +`at_controller` accepte un rapport demandé entier dans [-1,4] ; zéro désigne le point mort. Il commande cinq paires de vannes de remplissage/vidange et le verrouillage facultatif du convertisseur. L'ordre est entrée du porte-satellites, petit soleil, grand soleil, frein du porte-satellites, frein du grand soleil, puis verrouillage. + +Les exemples `controlled-hydraulic-ravigneaux` et `controlled-fired-hydraulic-ravigneaux` utilisent le canal 900 et l'ID 1400. Ils conservent 99 et 122 états déclarés dans la limite inchangée de 128. Le format v41 conserve routes, gains et horloges et lit v1-v40. + +Ces commandes sont expérimentales et les paramètres restent `unverified`. Coordination du couple ECU, capteurs/vannes détaillés, défauts véhicule complets et calibration OEM restent à réaliser. Les contrôles gérés et Standard ne valident pas Unity Editor/Play/Player/IL2CPP réel. + +[AT_CONTROL.fr.md](AT_CONTROL.fr.md) + +## Rampe de carburant liquide alimentée par pompe + +`liquid_rail_feed` associe un injecteur liquide à une pompe volumétrique existante et à une frontière matière/thermique explicite. Le nœud de sortie hydraulique doit correspondre à la compliance et à la pression absolue initiale de la rampe. Pompe et injecteur possèdent ce nœud ; les autres chemins fluides non suivis sont rejetés. + +Le format v41 conserve les liens et la température source et lit v1-v40. Échange analytique arbre/pression, raffinement ODE simultané indépendant, mélange calorique, bilans masse/carburant/énergie/volume, retour inverse et rollback complet ont des contrôles séparés. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[PUMP_FED_FUEL.fr.md](PUMP_FED_FUEL.fr.md) + +## Réservoir fini de carburant liquide + +`liquid_fuel_tank` stocke masse liquide finie et énergie calorique avec la densité, référence thermique du film et pouvoir calorifique de l'injecteur associé. L'alimentation le choisit via `tank_component` et omet `supply_temperature`. Chaque réservoir appartient à une alimentation compatible. + +Énergies calorique et chimique du réservoir entrent dans le stockage complet. Le transfert interne n'ajoute aucune matière ni énergie chimique externe. La pression d'entrée prescrite garde sa frontière de travail de pression. Admission/échappement gazeux peuvent encore transporter de l'énergie chimique. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[LIQUID_FUEL_TANK.fr.md](LIQUID_FUEL_TANK.fr.md) + +## Retour suivi de décharge de carburant + +`liquid_rail_return` associe une alimentation à un `hydraulic_relief` unidirectionnel exclusif. La soupape relie la rampe à la même pression d'entrée prescrite que la pompe. Toute voie doit être enregistrée ; ports incompatibles, propriété dupliquée et voies non suivies sont rejetés. + +`fluid_heat_fraction` choisit explicitement la part [0,1] des pertes transportée par le carburant de retour. Le reste suit le chemin thermique déclaré. Le mélange simultané rampe/réservoir conserve les bilans matière, chimie, travail de pression et chaleur. Les retours à source externe sortent matière et énergie par la frontière. + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## Géométrie du réservoir et espace gazeux fini + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +Le solveur couplé échange le travail de pression entre arbre, rampe et gaz sans source externe. Orifices gazeux et liens thermiques fournissent ventilation et chaleur explicites. Lire `pressure`, `fill_fraction`, `hydraulic_work` cumulé signé et masse, énergie, volume du gaz. Dose, liquide livré, évaporation et combustion restent distincts. + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Équilibre des phases du carburant et limites d'alimentation + +Le modèle utilise une pseudo-espèce idéale, la constante gazeuse commune du récepteur, des capacités thermiques constantes et un déplacement liquide négligeable. L'égalité des potentiels chimiques donne la relation de saturation ci-dessous. À volume fixé, carburant total et énergie interne déterminent température et masse de vapeur. Le transfert chimique reste interne ; la réaction consomme uniquement la vapeur. + +Un solveur scalaire borné utilise l'énergie d'équilibre monotone. La chaleur de paroi suit Euler implicite. Le couplage au transport et au travail du cylindre présente une convergence du premier ordre. La coexistence liquide reste dans l'intervalle déclaré. Le gaz peut surchauffer après évaporation complète dans cet intervalle, sans extrapoler la courbe de saturation. + +`mass_flow` est le transfert net signé sur le pas physique complet. `evaporated_fuel_mass` et `condensed_fuel_mass` cumulent ses masses positive et négative, sans compter deux fois les projections qui s'annulent. `vapor_partial_pressure` donne la pression partielle du carburant. Les bilans thermiques, massiques et chimiques comprennent les deux phases. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Équilibre du réservoir à volume fini + +Le récipient rigide contient un liquide incompressible et un gaz idéal avec pseudo-espèce et porteur. Le volume liquide modifie le volume gazeux. Le potentiel chimique liquide inclut `p/rho`, d'où une correction de la référence `p_0(T)` à déplacement négligeable du récepteur. `reference_pressure` garde ce sens et n'est pas réinterprété comme saturation réelle du fluide pur à densité finie. + +Un flash borné à U,V constants conserve carburant total et énergie thermique. Les orifices explicites transportent vapeur, porteur et énergie chimique ; les liens thermiques échangent avec des parois finies. Pompe/retour échangent le travail de déplacement avec le gaz, puis l'équilibre redistribue l'énergie interne. `hydraulic_work` compte le travail de déplacement de pompe, hors travail interne de changement de phase. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) + +## Référence de volume de carburant déformable + +`CompliantFuelVolume` fournit la fermeture constitutive du réseau de carburant en équilibre. Elle résout liquide, vapeur et coexistence avec stockage élastique depuis masse totale et température ou énergie. Le chemin d'injecteur alimenté par pompe attend son couplage étendu. [Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + +[Référence de volume de carburant déformable](COMPLIANT_FUEL_VOLUME.fr.md) + +## Réseau de transport de carburant en équilibre + +Le domaine `fuel` transporte ensemble liquide pur et vapeur dans des récipients élastiques finis. Chaque récipient conserve indépendamment masse totale et énergie calorique plus élastique ; le flash détermine température, pression et fractions de vapeur. `fuel_restriction` échange le fluide donneur homogène et `fuel_heat_link` échange avec un nœud thermique fini. L'énergie chimique du pouvoir calorifique garde son bilan séparé. + +[Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + +## Pompe carburant diphasique entraînée par arbre + +`fuel_chamber` couple un arbre réel à une chambre finie du domaine carburant. Des `fuel_check_valve` d'entrée et de sortie assurent remplissage et livraison par pression. Liquide, vapeur et énergie élastique partagent la même fermeture. Une chambre sous-alimentée peut vaporiser à l'aspiration ; la livraison suit l'inventaire et la pression calculés. + +[Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. [Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) + +## Chambres de carburant compressible entraînées par arbre + +Le travail fermé conserve masse et entropie. Énergie de compression froide et énergie calorique utilisent le potentiel d’équilibre du conduit. Le liquide seul utilise l’intégrale exacte de pression, la vapeur idéale son adiabatique analytique. Le changement de phase inverse l’entropie et vérifie l’état énergétique final. La différence acceptée produit le couple discret dans la résolution mécanique commune. Un `hydraulic_work` positif représente l’énergie de l’arbre vers le fluide. + +Le réservoir mobile utilise un demi-transport, le travail complet de l’arbre, puis un demi-transport. Le transport reste du premier ordre avec diffusion numérique ; la séparation symétrique n’augmente pas son ordre. Le mouvement liquide fermé et lisse converge au second ordre. L’incrément angulaire est limité à 0.25 rad par intervalle mécanique. CFL, limites matérielles, restauration complète, annulation et branches indépendantes s’appliquent. L’impulsion stationnaire des ports et du carter est distincte du travail du piston. + +[Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) + +## Buses de carburant compressible à qualité figée + +Les phases figées partagent pression, température et vitesse ; le transfert massique entre phases est supprimé. Entropie et compression froide donnent la chute d’enthalpie isentropique. Le maximum unique de flux utilise le son figé, distinct du son d’équilibre. Le coefficient réduit la section effective. En régime critique, l’énergie de sortie décrit un jet idéal complètement détendu à la pression réceptrice. L’enthalpie d’arrêt alimente une seule fois récepteur et chaleur explicite de paroi. L’impulsion décrit la thermalisation stationnaire, pas la poussée totale du carter ni la force axiale de l’aiguille. + +Des sous-pas conservatifs du premier ordre échangent la même masse et enthalpie ; l’énergie cinétique du jet se répartit entre récepteur et paroi. Chaque acceptation vérifie les états et l’entropie totale de la paire. Limites : 4096 sous-pas, 64 réductions de moitié par candidat, transfert initial borné à 0.1 fois la plus petite masse. La fermeture tolère 128 fois epsilon binary64 multiplié par le plus grand module volumique ou la pression des ports, sans écrêter les pressions. Un échec restaure tout le lot. Réduire le pas et examiner inventaire, limites, course et section. + +[Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) + +## Transit de carburant à l’équilibre dans les buses + +Le carré positif de la vitesse du son d’équilibre donne une densité croissante avec la pression à entropie fixe. La chute d’enthalpie décroît. Ces facteurs monotones bornent le flux sur chaque intervalle, y compris frontières de phase et extrema multiples. La séparation-évaluation renvoie débit inférieur échantillonné et borne supérieure restante à largeur relative au plus 1e-4. Limites : 512 intervalles sur pile et 8192 divisions. Différences caloriques, marges d’arrondi et bornes d’intégrales monotones utilisent jusqu’à 256 panneaux de Riemann et 80 itérations de fermeture. Un cas non résolu rejette le lot. Un maximum intérieur lisse est sonique ; une frontière de phase peut être non lisse. + +Des sous-pas conservatifs du premier ordre échangent la même masse et enthalpie ; l’énergie cinétique du jet se répartit entre récepteur et paroi. Chaque acceptation vérifie les états et l’entropie totale de la paire. Limites : 4096 sous-pas, 64 réductions de moitié par candidat, transfert initial borné à 0.1 fois la plus petite masse. La fermeture tolère 128 fois epsilon binary64 multiplié par le plus grand module volumique ou la pression des ports, sans écrêter les pressions. Un échec restaure tout le lot. Réduire le pas et examiner inventaire, limites, course et section. + +[Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) + +## Relaxation de phase du carburant à vitesse finie + +La fermeture conserve le potentiel froid du liquide compressible et la vapeur idéale du modèle d’équilibre. Le titre initial est explicite, sans projection à l’équilibre. À masse, volume et énergie interne fixes, le titre tend exponentiellement vers sa cible avec `phase_relaxation_time_ns` constant. La chaleur latente reste dans le bilan interne. L’affinité chimique est le potentiel du liquide moins celui de la vapeur ; son produit par le transfert de phase, divisé par la température, donne une production d’entropie non négative. Cette loi de recherche n’est pas une corrélation de nucléation mesurée. + +Les flux conservatifs de Rusanov transportent quatre champs. Chaque intervalle CFL global applique une demi-source locale, le transport puis une demi-source. Un réservoir partagé reçoit chaque source une seule fois, quel que soit le nombre de conduits. La source est exacte pour un état isolé à volume fixe ; le transport couplé reste du premier ordre. Le CFL utilise une borne acoustique à titre gelé. Les entropies de phase et du conduit sont vérifiées séparément. Un état hors limites annule le lot entier. + +[Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) + +## Pompes à carburant relaxant et dosage à phase gelée + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. + +La relation d’entropie à titre fixe détermine pression et température après variation de volume. Le travail inclut l’énergie froide de compression liquide et utilise des fonctions incrémentales stables pour les petits mouvements. Le même travail discret produit le couple d’arbre. Chaque intervalle global applique une fois la source de chaque nœud autour du transport conservatif par conduit et buse gelée. Le CFL et une fraction de 0.02 du plus petit inventaire de port bornent les intervalles, limités à 4096. Travail mécanique et source restent séparés. Le transport couplé est du premier ordre et exige un raffinement temporel. + +[Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) diff --git a/docs/ARCHITECTURE.it.md b/docs/ARCHITECTURE.it.md index f92fb99..274a1a1 100644 --- a/docs/ARCHITECTURE.it.md +++ b/docs/ARCHITECTURE.it.md @@ -118,7 +118,7 @@ Le sessioni MCP vivono nel processo del server locale. Il limite è 16. Sono ril ## Che cosa è ancora aperto -Scambio gas comprimibile, combustione premiscelata prescritta, frizioni, ingranaggi, un convertitore mappato e l'azionamento idraulico esistono ora come componenti con porte, stato e controlli di conservazione. Non completano il gruppo motopropulsore. Ancora aperti: pompa e rabbocco del binario, controllo dell'accensione, aspirazione e scarico dettagliati, perdite meccaniche, termochimica più ricca, cedevolezza di ingranamento, controllo completo di pressione e cambio AT, comportamento ECU/TCU coordinato e calibrazione misurata. Una nuova equazione ha ancora bisogno di una versione esplicita del modello, di dimensioni e di evidenza numerica. La semantica dei componenti esistenti non si estende cambiandola in silenzio. +Scambio gas comprimibile, combustione premiscelata prescritta, frizioni, ingranaggi, un convertitore mappato e l'azionamento idraulico esistono ora come componenti con porte, stato e controlli di conservazione. Non completano il gruppo motopropulsore. Ancora aperti: riempimento e regolazione misurati della pompa, controllo dell'accensione, aspirazione e scarico dettagliati, perdite meccaniche, termochimica più ricca, cedevolezza di ingranamento, controllo completo di pressione e cambio AT, comportamento ECU/TCU coordinato e calibrazione misurata. Una nuova equazione ha ancora bisogno di una versione esplicita del modello, di dimensioni e di evidenza numerica. La semantica dei componenti esistenti non si estende cambiandola in silenzio. Un agente può generare una topologia e uno stato iniziale, proporre ipotesi sui parametri, scrivere candidati di componenti, costruire esperimenti e rileggere l'evidenza. Il nucleo di esecuzione possiede ancora i vincoli numerici e i controlli. Un giudizio di un modello linguistico non è un fatto fisico. La modifica del grafo in Unity, un thread di lavoro della simulazione e un backend di solver ad alte prestazioni sostituibile aspettano che il confine sia stabile. Niente qui afferma un solver non lineare generale, Burst o un solver su GPU. @@ -245,3 +245,127 @@ Gli ingranamenti del portasatelliti supportano rapporti relativi con segno finit ## Assemblaggio condiviso di azionamento idraulico L'[assemblaggio di azionamento AT](AT_HYDRAULIC_ACTUATION.it.md) abbassa i bersagli di frizione dichiarati 1..6 in frizioni reali a stantuffo/contatto, restrizioni di riempimento/scarico e molle di richiamo alimentate da una pompa reversibile condivisa, trafilamento/trascinamento e scarico. Le aree esplicite anteriore/posteriore conservano l'inventario spazzato e il lavoro della pressione di riferimento. Le definizioni ordinarie immutabili conservano la soluzione congiunta esistente di pressione/moto/attrito, la semantica portabile v24 e lo stato atomico completo. Le programmazioni di valvole prescritte restano separate dalla retroazione/dal controllo AT e dall'accettazione misurata del corpo valvole. + +## Retroazione AT idraulica + +`at_controller` accetta una marcia richiesta intera in [-1,4]; zero indica folle. Gestisce cinque coppie di valvole di riempimento/scarico e il blocco facoltativo del convertitore. L'ordine è ingresso del portasatelliti, solare piccolo, solare grande, freno del portasatelliti, freno del solare grande, poi blocco. + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usano il canale 900 e l'ID 1400. Conservano 99 e 122 stati dichiarati entro il limite invariato di 128. v41 conserva percorsi, guadagni e clock e legge v1-v40. + +Sono controlli di ricerca e i parametri restano `unverified`. Coordinamento della coppia ECU, sensori/valvole dettagliati, guasti completi del veicolo e calibrazione OEM restano aperti. Le verifiche managed e Standard non provano l'accettazione reale Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.it.md](AT_CONTROL.it.md) + +## Rail di combustibile liquido alimentato da pompa + +`liquid_rail_feed` associa un iniettore liquido a una pompa volumetrica esistente e a un confine esplicito di materia/calore. Il nodo di uscita idraulica deve corrispondere alla cedevolezza e alla pressione assoluta iniziale del rail. Pompa e iniettore possiedono questo nodo; altri percorsi fluidi non contabilizzati sono rifiutati. + +v41 conserva collegamenti e temperatura sorgente e legge v1-v40. Scambio analitico albero/pressione, raffinamento ODE simultaneo indipendente, miscelazione termica, bilanci massa/combustibile/energia/volume, ritorno e rollback completo hanno verifiche separate. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[PUMP_FED_FUEL.it.md](PUMP_FED_FUEL.it.md) + +## Serbatoio finito di combustibile liquido + +`liquid_fuel_tank` conserva massa liquida finita ed energia termica con densità, riferimento termico del film e potere calorifico dell'iniettore associato. L'alimentazione lo seleziona con `tank_component` e omette `supply_temperature`. Ogni serbatoio appartiene a un'alimentazione compatibile. + +Energia termica e chimica del serbatoio entrano nello stoccaggio totale. Il trasferimento interno non aggiunge massa o energia chimica esterna. La pressione prescritta all'ingresso mantiene il confine di lavoro di pressione. Aspirazione/scarico gas possono ancora trasportare energia chimica. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[LIQUID_FUEL_TANK.it.md](LIQUID_FUEL_TANK.it.md) + +## Ritorno di scarico carburante tracciato + +`liquid_rail_return` collega un'alimentazione a un `hydraulic_relief` unidirezionale esclusivo. La valvola collega il rail alla stessa pressione d'ingresso prescritta della pompa. Registrare ogni percorso; porte incompatibili, proprietà duplicate e percorsi non tracciati sono rifiutati. + +`fluid_heat_fraction` sceglie esplicitamente la quota [0,1] delle perdite portata dal carburante di ritorno. Il resto segue il percorso termico dichiarato. Miscelazione simultanea rail/serbatoio conserva massa, chimica, lavoro di pressione e calore. Il ritorno a sorgente esterna porta massa/energia oltre confine. + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## Geometria del serbatoio e spazio gassoso finito + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +Il solver accoppiato scambia lavoro di pressione fra albero, rail e gas senza fonte esterna. Orifizi gassosi e collegamenti termici forniscono sfiato/calore espliciti. Leggere `pressure`, `fill_fraction`, `hydraulic_work` cumulativo con segno e massa, energia, volume del gas. Dose, liquido, evaporazione e combustione restano separati. + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Equilibrio di fase del carburante e limiti di alimentazione + +Il modello usa una pseudospecie ideale, la costante gassosa comune, calori specifici costanti e spostamento liquido trascurabile. L'uguaglianza dei potenziali chimici dà la saturazione seguente. A volume fisso, combustibile totale ed energia interna determinano temperatura e massa di vapore. L'inventario chimico si trasferisce internamente; la reazione consuma solo vapore. + +Una soluzione scalare limitata usa l'energia di equilibrio monotona. Il calore della parete usa Euler implicito. Trasporto e lavoro del cilindro mobile hanno evidenza di convergenza del primo ordine. La coesistenza liquida resta nell'intervallo dichiarato. Dopo completa evaporazione al suo interno il gas può surriscaldarsi senza estrapolare la curva. + +`mass_flow` è il trasferimento netto con segno del passo fisico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` accumulano masse positive e negative senza contare due volte proiezioni che si annullano. `vapor_partial_pressure` indica la pressione parziale del carburante. I bilanci termici, di massa e chimici includono entrambe le fasi. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Il recipiente rigido contiene liquido incomprimibile e gas ideale di pseudospecie/portante. Il volume liquido modifica quello gassoso. Il potenziale chimico liquido include `p/rho`, correggendo il riferimento `p_0(T)` a spostamento trascurabile. `reference_pressure` conserva tale significato e non diventa implicitamente la saturazione reale del fluido puro a densità finita. + +Un flash limitato a U,V costanti conserva combustibile ed energia termica. Orifizi espliciti trasportano vapore, portante ed energia chimica; collegamenti termici scambiano con nodi finiti. Pompa/ritorno scambiano lavoro di spostamento col gas, poi l'equilibrio ridistribuisce energia interna. `hydraulic_work` conta il lavoro di pompa escludendo quello interno di fase. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) + +## Riferimento del volume di carburante cedevole + +`CompliantFuelVolume` fornisce la chiusura costitutiva della rete di carburante in equilibrio. Risolve liquido, vapore e coesistenza con accumulo elastico da massa totale e temperatura o energia. Il percorso iniettore alimentato da pompa richiede ancora l’estensione dell’accoppiamento. [Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + +[Riferimento del volume di carburante cedevole](COMPLIANT_FUEL_VOLUME.it.md) + +## Rete di trasporto del carburante in equilibrio + +Il dominio `fuel` trasporta insieme liquido puro e vapore in recipienti elastici finiti. Ogni recipiente conserva massa totale ed energia calorica più elastica indipendenti; il flash determina temperatura, pressione e frazioni di vapore. `fuel_restriction` scambia fluido donatore omogeneo, `fuel_heat_link` scambia calore con un nodo termico finito. L’energia chimica del potere calorifico resta separata. + +[Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + +## Pompa carburante a cambio di fase azionata da albero + +`fuel_chamber` accoppia un albero reale a una camera carburante finita. `fuel_check_valve` di ingresso e uscita forniscono riempimento ed erogazione per pressione. Liquido, vapore ed energia elastica usano la stessa chiusura. Con ingresso insufficiente la camera può evaporare in aspirazione; l’erogazione segue inventario e pressione calcolati. + +[Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. [Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) + +## Camere di combustibile comprimibile azionate da albero + +Il passo di lavoro chiuso mantiene massa ed entropia. Compressione fredda ed energia calorica usano lo stesso potenziale d’equilibrio del condotto. Il liquido puro usa l’integrale esatto della pressione, il vapore ideale l’adiabatica analitica. Il cambiamento di fase inverte l’entropia e verifica l’energia finale. La differenza accettata fornisce una coppia discreta nel solutore meccanico comune. `hydraulic_work` positivo significa energia dall’albero al fluido. + +Il serbatoio mobile usa mezzo trasporto, lavoro completo d’albero e mezzo trasporto. Il trasporto resta al primo ordine con diffusione numerica; la separazione simmetrica non alza l’ordine. Il moto liquido chiuso e regolare converge al secondo ordine. Gli incrementi angolari sono limitati a 0.25 rad per intervallo meccanico. Restano validi CFL, limiti materiali, rollback completo, annullamento e rami indipendenti. L’impulso stazionario di porte/carter è distinto dal lavoro del pistone. + +[Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) + +## Ugelli di combustibile comprimibile a titolo congelato + +Le fasi condividono pressione, temperatura e velocità; il trasferimento massico di fase è soppresso. Entropia ed energia di compressione fredda danno il salto isentropico d’entalpia. Il massimo unico di flusso usa il suono congelato, diverso da quello d’equilibrio. Il coefficiente scala l’area efficace. Al blocco, l’energia d’uscita descrive un getto ideale completamente espanso alla pressione ricevente. L’entalpia di ristagno paga una sola volta energia ricevente e calore esplicito di parete. L’impulso misura la termalizzazione stazionaria, non la spinta totale del carter né la forza assiale dell’ago. + +Sottopassi conservativi del primo ordine trasferiscono la stessa massa ed entalpia e dividono l’energia cinetica fra fluido e parete. Si verificano stati ed entropia totale della coppia. Limiti: 4096 sottopassi, 64 dimezzamenti per candidato, trasferimento iniziale entro 0.1 della massa minore. La chiusura tollera 128 epsilon binary64 per il massimo modulo volumetrico o pressione senza limitare i valori riportati. Un errore annulla l’intero lotto. Controllare passo, inventario, limiti, corsa e area. + +[Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) + +## Transito di combustibile all’equilibrio negli ugelli + +Il quadrato positivo del suono d’equilibrio dà densità crescente con pressione a entropia fissa; il salto d’entalpia diminuisce. I fattori monotoni limitano il flusso di ogni intervallo, incluse frontiere di fase ed estremi multipli. La separazione e valutazione restituisce limite inferiore campionato e superiore residuo con ampiezza relativa massima 1e-4. Limiti: 512 intervalli sullo stack e 8192 divisioni. Differenze caloriche usano margini d’arrotondamento e limiti integrali monotoni fino a 256 pannelli Riemann e 80 iterazioni. Casi irrisolti rifiutano il lotto. Un massimo interno regolare è sonico; uno alla frontiera può essere non regolare. + +Sottopassi conservativi del primo ordine trasferiscono la stessa massa ed entalpia e dividono l’energia cinetica fra fluido e parete. Si verificano stati ed entropia totale della coppia. Limiti: 4096 sottopassi, 64 dimezzamenti per candidato, trasferimento iniziale entro 0.1 della massa minore. La chiusura tollera 128 epsilon binary64 per il massimo modulo volumetrico o pressione senza limitare i valori riportati. Un errore annulla l’intero lotto. Controllare passo, inventario, limiti, corsa e area. + +[Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) + +## Rilassamento di fase del combustibile a velocità finita + +La chiusura mantiene il potenziale freddo del liquido comprimibile e il vapore ideale del modello di equilibrio. La frazione iniziale è esplicita e non proiettata all’equilibrio. A massa, volume ed energia interna fissi, tende esponenzialmente al valore di equilibrio con `phase_relaxation_time_ns` costante. Il calore latente resta nel bilancio interno. L’affinità chimica è il potenziale del liquido meno quello del vapore; il prodotto con il trasferimento di fase, diviso per la temperatura, dà produzione entropica non negativa. È una legge di ricerca, non una correlazione di nucleazione misurata. + +I flussi conservativi di Rusanov trasportano quattro campi. Ogni intervallo CFL globale applica mezza sorgente locale, trasporto e mezza sorgente. I serbatoi condivisi ricevono ogni sorgente una sola volta indipendentemente dal numero di condotti. La sorgente è esatta per stati isolati a volume fisso; il trasporto accoppiato mantiene errore del primo ordine. CFL usa il limite acustico a frazione congelata. Entropia di fase e del condotto sono verificate separatamente. Uno stato fuori limite annulla l’intero lotto. + +[Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) + +## Pompe a combustibile con rilassamento e dosaggio congelato + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. + +La relazione entropica a frazione fissa determina pressione e temperatura dopo la variazione di volume. Il lavoro include compressione fredda del liquido e funzioni incrementali stabili per piccoli movimenti. Lo stesso lavoro discreto determina la coppia all’albero. Ogni intervallo globale applica una volta la sorgente di ogni nodo attorno al trasporto conservativo in condotto e ugello congelato. CFL e 0.02 dell’inventario minore alle porte limitano gli intervalli, al massimo 4096. Lavoro e sorgente restano separati. Il trasporto accoppiato rimane del primo ordine e richiede raffinamento temporale. + +[Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) diff --git a/docs/ARCHITECTURE.ja.md b/docs/ARCHITECTURE.ja.md index 93922a6..9f306d7 100644 --- a/docs/ARCHITECTURE.ja.md +++ b/docs/ARCHITECTURE.ja.md @@ -117,7 +117,7 @@ MCP セッションはローカルサーバープロセスにあります。上 ## まだ開いているもの -圧縮性ガス交換、規定予混合燃焼、クラッチ、歯車、マップ化されたコンバーター、油圧駆動は、ポート、状態、保存検査を持つコンポーネントとして存在します。それらがパワートレインを完成させるわけではありません。まだ開いているもの: レールポンプと補給、点火制御、詳細な吸気と排気、機械損失、より豊富な熱化学、噛み合いのコンプライアンス、完全な AT の圧力と変速の制御、協調した ECU/TCU 挙動、実測キャリブレーション。新しい方程式には、明示的なモデルバージョン、次元、数値エビデンスがまだ必要です。既存コンポーネントの意味論は、静かに変えることで拡張されません。 +圧縮性ガス交換、規定予混合燃焼、クラッチ、歯車、マップ化されたコンバーター、油圧駆動は、ポート、状態、保存検査を持つコンポーネントとして存在します。それらがパワートレインを完成させるわけではありません。まだ開いているもの: 実測ポンプ充填と調圧、点火制御、詳細な吸気と排気、機械損失、より豊富な熱化学、噛み合いのコンプライアンス、完全な AT の圧力と変速の制御、協調した ECU/TCU 挙動、実測キャリブレーション。新しい方程式には、明示的なモデルバージョン、次元、数値エビデンスがまだ必要です。既存コンポーネントの意味論は、静かに変えることで拡張されません。 エージェントは、トポロジーと初期状態を生成し、パラメーター仮説を提案し、コンポーネント候補を書き、実験を作り、エビデンスを読み戻せます。実行コアが、数値制約と検査をまだ所有します。言語モデルの判断は物理的事実ではありません。Unity のグラフ編集、シミュレーションワーカースレッド、交換可能な高性能ソルバーバックエンドは、境界が安定するまで待ちます。ここにあるものは、一般的な非線形ソルバー、Burst、GPU ソルバーを主張しません。 @@ -244,3 +244,127 @@ CLI と MCP は、ガスのドキュメント、アセット、実験の意味 ## 共有油圧駆動アセンブリ [AT 駆動アセンブリ](AT_HYDRAULIC_ACTUATION.ja.md) は、宣言された 1..6 のクラッチ対象を、実際のピストン/接触クラッチ、充填/排出の絞り、戻しばねへ下げます。共有の可逆ポンプ、漏れ/抵抗、リリーフが供給します。明示的な前面/背面の面積が、掃引在庫と参照圧力仕事を保持します。不変の通常定義は、既存の連成した圧力/運動/摩擦の求解、移植可能な v24 意味論、完全なアトミック状態を保ちます。規定されたバルブスケジュールは、AT のフィードバック/制御や、実測のバルブボディ受け入れとは別のままです。 + +## 油圧 AT フィードバック + +`at_controller` は [-1,4] の整数目標段を受け取り、ゼロはニュートラルです。五組の充填/排油弁と任意のトルクコンバーターのロックアップを管理します。経路の順序はキャリア入力、小サン入力、大サン入力、キャリアブレーキ、大サンブレーキ、最後にロックアップです。 + +例 `controlled-hydraulic-ravigneaux` と `controlled-fired-hydraulic-ravigneaux` は要求チャンネル 900 とコントローラー ID 1400 を使います。変更していない 128 状態の上限内で 99 と 122 の報告状態を保ちます。v41 は経路、ゲイン、時計を保存し、v1-v40 を読みます。 + +研究用の制御であり、パラメーターは `unverified` のままです。ECU トルク協調、詳細なセンサー/弁、包括的な車両故障、OEM 校正は未完成です。managed と Standard の検査は実際の Unity Editor/Play/Player/IL2CPP の受入を証明しません。 + +[AT_CONTROL.ja.md](AT_CONTROL.ja.md) + +## ポンプ供給の液体燃料レール + +`liquid_rail_feed` は液体噴射器を既存の容積ポンプと明示的な物質/熱境界に結びます。油圧出口ノードはレールのコンプライアンスと初期絶対圧に一致する必要があります。ポンプと噴射器がこの圧力ノードを所有し、未追跡の他の流体経路は拒否されます。 + +v41 は補給接続と源温度を保存し v1-v40 を読みます。軸/圧力の解析交換、独立した同時 ODE 細化、熱混合、質量/燃料/エネルギー/体積台帳、逆流と完全 rollback は別々に検査します。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[PUMP_FED_FUEL.ja.md](PUMP_FED_FUEL.ja.md) + +## 有限液体燃料タンク + +`liquid_fuel_tank` は対応する噴射器の密度、フィルム熱基準、発熱量を使い、有限液体質量と熱エネルギーを保存します。補給は `tank_component` で選び、`supply_temperature` を省略します。各タンクは燃料物性が一致する一つの補給に属します。 + +タンクの熱/化学エネルギーは全貯蔵台帳に入ります。内部移送は外部質量や化学供給を追加しません。明示したポンプ入口規定圧は圧力仕事境界を保持します。ガス吸排気は化学境界エネルギーを運ぶ場合があります。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[LIQUID_FUEL_TANK.ja.md](LIQUID_FUEL_TANK.ja.md) + +## 追跡可能な燃料リリーフ戻り流れ + +`liquid_rail_return` は補給を排他的な一方向 `hydraulic_relief` に結びます。弁はレールをポンプと同じ規定入口圧へ接続します。すべての流体経路を登録し、不適合ポート、重複所有、未追跡経路は拒否します。 + +`fluid_heat_fraction` は戻り燃料が運ぶ弁損失の割合 [0,1] を明示します。残る熱は宣言した弁熱経路へ流れます。レール/タンク同時熱混合は質量、化学、圧力仕事、熱台帳を保存し、外部源への戻りは境界から質量/エネルギーを出します。 + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## タンク形状と有限ヘッドスペース + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +連成計算は外部圧力源を加えず、軸・レール・気体間で圧力仕事を交換します。気体オリフィスと熱接続が明示的な通気/伝熱を提供します。`pressure`、`fill_fraction`、符号付き累積 `hydraulic_work` と気体質量・エネルギー・体積を読みます。投与、液体供給、蒸発、燃焼は分離されます。 + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 燃料の相平衡と液体供給の境界 + +一つの理想擬似成分、受け側の共通気体定数、一定比熱を用い、液体押しのけ容積を無視します。相の化学ポテンシャルの一致から下の飽和関係を得ます。固定体積では総燃料と内部エネルギーから共通温度と蒸気質量が決まります。化学エネルギーは内部で移動し、反応は蒸気のみを消費します。 + +有界スカラー解法は単調な平衡エネルギーを使います。有限壁の伝熱は後退 Euler です。輸送と移動シリンダー仕事との連成には一次収束の証拠があります。液体共存は指定温度区間内に限り、その区間で完全蒸発した気体は過熱できます。飽和曲線は外挿しません。 + +`mass_flow` は完全な物理刻みの符号付き正味相移動です。`evaporated_fuel_mass` と `condensed_fuel_mass` は正負の質量を別々に累積し、相殺する分割演算を二重計上しません。`vapor_partial_pressure` は受け側の燃料分圧です。熱・質量・化学エネルギー収支は両相を含みます。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 有限体積燃料タンクの相平衡 + +剛体容器は非圧縮液体と理想擬似成分・キャリア気体を含みます。液体容積が気体容積を変えます。液体化学ポテンシャルに `p/rho` を含めるため、受け側の無視できる押しのけの基準 `p_0(T)` に圧力補正が入ります。`reference_pressure` はその物性基準の意味を保ち、有限密度の純流体飽和圧へ暗黙に読み替えません。 + +有界な定 U,V フラッシュは総燃料と熱エネルギーを保存します。明示的な気体オリフィスは蒸気、キャリアと化学エネルギーを運び、熱接続は有限熱ノードと交換します。ポンプ/戻りは気体と押しのけ仕事を交換し、相平衡が内部エネルギーを再配分します。`hydraulic_work` は内部相変化仕事を除くポンプ押しのけ仕事です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) + +## 弾性燃料容積の参照モデル + +`CompliantFuelVolume` は相平衡燃料ネットワークの構成則閉包を提供します。総質量と温度またはエネルギーから液体、蒸気、弾性蓄積を伴う共存を解決します。ポンプ供給噴射経路の結合拡張は残ります。 [相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + +[弾性燃料容積の参照モデル](COMPLIANT_FUEL_VOLUME.ja.md) + +## 相平衡燃料輸送ネットワーク + +`fuel` ドメインは有限弾性容器内で純燃料の液体と蒸気を共に輸送します。各容器は総質量と熱量・弾性の合計エネルギーを独立に保持し、相平衡フラッシュが温度、圧力、蒸気割合を決定します。`fuel_restriction` は均質な供給側流体を交換し、`fuel_heat_link` は有限熱ノードと熱交換します。発熱量に対応する化学エネルギーは別台帳です。 + +[相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + +## 軸駆動の相変化燃料ポンプ + +`fuel_chamber` は実際の軸と有限燃料室を結合します。入口・出口の `fuel_check_valve` が圧力差で充填と供給を行います。液体、蒸気、弾性壁エネルギーは同じ閉包を使います。入口不足では吸入中にフラッシュ蒸発でき、供給量は計算した在庫と圧力に従います。 + +[軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 [蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) + +## 軸駆動の圧縮性燃料室 + +閉じた仕事ステップは質量とエントロピーを一定にします。液体の冷圧縮エネルギーと熱内部エネルギーはダクトと同じ平衡ポテンシャルを使います。純液体は厳密な圧力積分、理想蒸気は解析的断熱線を使用します。相変化時はエントロピーを反転し最終エネルギーを確認します。採用したエネルギー差から共同機械解法の離散圧力トルクを求めます。正の `hydraulic_work` は軸から流体へのエネルギーです。 + +可動貯槽は半輸送、軸仕事全体、半輸送の順に更新します。輸送は数値拡散を伴う一次精度のままで、対称分割でも次数は上がりません。滑らかな閉液体の軸運動は二次収束します。機械区間の角度増分は 0.25 rad 以下です。CFL、物性境界、完全ロールバック、取消、独立分岐が適用されます。静止ポート/筐体への力積とピストン圧力仕事を分けて扱います。 + +[軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) + +## 相分率を凍結した圧縮性燃料ノズル + +両相は圧力、温度、速度を共有し、相間質量移動を抑制します。エントロピー関係と冷圧縮エネルギーから等エントロピーのエンタルピー差を求めます。唯一の質量流束最大値は平衡音速とは異なる凍結音速を使います。係数は有効面積を調整します。チョーク時の出口エネルギーは受入圧力まで完全膨張した理想噴流です。供給側の全エンタルピーが流体と壁の熱を一度だけ賄います。力積は静止した熱化を表し、筐体全推力やニードル軸力を表しません。 + +保存的な一次サブステップが同じ質量とエンタルピーを移し、噴流運動エネルギーを流体と壁に配分します。物性状態と対全体のエントロピーを確認します。区間当たり最大 4096 ステップ、候補当たり 64 回の半減、初期移動量は小さい貯槽質量の 0.1 倍以下です。閉鎖判定には最大体積弾性率またはポート圧力の 128 binary64 epsilon 倍の丸め幅を許容し、出力圧力は切り詰めません。失敗はバッチ全体をロールバックします。刻み、在庫、物性範囲、行程、面積を確認してください。 + +[相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) + +## 燃料ノズルの平衡相変化輸送 + +平衡音速の二乗が正なので、等エントロピー密度は圧力とともに増え、エンタルピー降下は減ります。この単調性から相境界や複数極値を含む各区間の流束上限を求めます。分枝限定法は標本下限と残存上限の相対幅を 1e-4 以下にします。最大 512 個のスタック区間と 8192 分割です。熱量差の丸め余裕と単調圧力積分の界を用い、最大 256 Riemann 区間、80 回の閉合反復を行います。解決できなければバッチを拒否します。滑らかな内部最大値は音速条件を満たし、相境界最大値は非平滑になり得ます。 + +保存的な一次サブステップが同じ質量とエンタルピーを移し、噴流運動エネルギーを流体と壁に配分します。物性状態と対全体のエントロピーを確認します。区間当たり最大 4096 ステップ、候補当たり 64 回の半減、初期移動量は小さい貯槽質量の 0.1 倍以下です。閉鎖判定には最大体積弾性率またはポート圧力の 128 binary64 epsilon 倍の丸め幅を許容し、出力圧力は切り詰めません。失敗はバッチ全体をロールバックします。刻み、在庫、物性範囲、行程、面積を確認してください。 + +[燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) + +## 有限速度の燃料相変化緩和 + +閉包は平衡燃料モデルの圧縮性液体の冷ポテンシャルと理想蒸気を引き継ぎます。初期質量分率は明示し、平衡状態へ投影しません。質量、体積、内部エネルギーを固定したとき、分率は一定の `phase_relaxation_time_ns` で平衡値へ指数的に近づきます。潜熱は内部のエネルギー収支に含まれます。化学親和力は液相と蒸気相の化学ポテンシャル差であり、相変化との積を温度で割ると非負のエントロピー生成になります。これは研究用緩和則で、実測核生成相関ではありません。 + +保存型 Rusanov 流束で四つの場を輸送します。各グローバル CFL 区間で局所相変化の半ステップ、輸送、半ステップを実行します。共有貯槽の源項は管路数にかかわらず一度だけ適用します。孤立定容状態の源項軌跡は厳密ですが、結合輸送は一次誤差を持ちます。CFL は質量分率凍結時の音速上限を使用し、相変化と管路のエントロピーを個別に検査します。範囲外の状態はバッチ全体をロールバックします。 + +[有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) + +## 相変化緩和燃料ポンプと凍結相計量 + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 + +質量分率固定のエントロピー関係から体積変化後の圧力と温度を求めます。仕事は液体の冷圧縮エネルギーを含み、小変位では安定した増分関数を使います。同じ離散仕事が軸トルクを与えます。各全体区間で保存型管路・凍結ノズル輸送の前後に各ノードの相変化源項を一度ずつ適用します。区間は管路 CFL と小さいポート在庫の 0.02 比率で制限し、最大 4096 区間です。機械仕事と源項は分離し、結合輸送は一次精度で時間細分化を要します。 + +[相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) diff --git a/docs/ARCHITECTURE.ko.md b/docs/ARCHITECTURE.ko.md index bd8cddb..9bd5dd4 100644 --- a/docs/ARCHITECTURE.ko.md +++ b/docs/ARCHITECTURE.ko.md @@ -118,7 +118,7 @@ MCP 세션은 로컬 서버 프로세스에 있습니다. 한도는 16입니다. ## 아직 열려 있는 것 -압축성 가스 교환, 규정 예혼합 연소, 클러치, 기어, 맵 기반 컨버터, 유압 구동은 이제 포트, 상태, 보존 검사를 갖춘 컴포넌트로 존재합니다. 이들이 파워트레인을 끝내지는 않습니다. 아직 열려 있는 것: 레일 펌프와 보충, 점화 제어, 상세 흡기 및 배기, 기계 손실, 더 풍부한 열화학, 물림 컴플라이언스, 완전한 AT 압력 및 변속 제어, 조율된 ECU/TCU 동작, 실측 교정. 새 방정식에는 여전히 명시적 모델 버전, 차원, 수치 증거가 필요합니다. 기존 컴포넌트 의미론은 조용히 바꾸어 확장하지 않습니다. +압축성 가스 교환, 규정 예혼합 연소, 클러치, 기어, 맵 기반 컨버터, 유압 구동은 이제 포트, 상태, 보존 검사를 갖춘 컴포넌트로 존재합니다. 이들이 파워트레인을 끝내지는 않습니다. 아직 열려 있는 것: 실측 펌프 충전과 압력 조절, 점화 제어, 상세 흡기 및 배기, 기계 손실, 더 풍부한 열화학, 물림 컴플라이언스, 완전한 AT 압력 및 변속 제어, 조율된 ECU/TCU 동작, 실측 교정. 새 방정식에는 여전히 명시적 모델 버전, 차원, 수치 증거가 필요합니다. 기존 컴포넌트 의미론은 조용히 바꾸어 확장하지 않습니다. 에이전트는 토폴로지와 초기 상태를 생성하고, 매개변수 가설을 제안하고, 컴포넌트 후보를 작성하고, 실험을 구성하고, 증거를 다시 읽을 수 있습니다. 실행 코어가 여전히 수치 제약과 검사를 소유합니다. 언어 모델의 판단은 물리적 사실이 아닙니다. Unity 그래프 편집, 시뮬레이션 워커 스레드, 교체 가능한 고성능 솔버 백엔드는 경계가 안정될 때까지 기다립니다. 여기의 어떤 내용도 일반 비선형 솔버, Burst, GPU 솔버를 주장하지 않습니다. @@ -245,3 +245,127 @@ CLI와 MCP는 가스 문서, 자산, 실험 의미론을 공유합니다. 스튜 ## 공유 유압 구동 조립 [AT 구동 조립](AT_HYDRAULIC_ACTUATION.ko.md)은 선언된 클러치 대상 1..6을 실제 피스톤/접촉 클러치, 충전/배출 유동 제한, 복귀 스프링으로 내립니다. 공유 가역 펌프, 누출/항력, 릴리프가 공급합니다. 명시적 전면/후면 면적은 쓸린 재고와 기준 압력 일을 유지합니다. 불변의 보통 정의는 기존 결합 압력/운동/마찰 해석, 이식 가능한 v24 의미론, 완전한 원자적 상태를 보존합니다. 규정 밸브 일정은 AT 피드백/제어 및 실측 밸브 바디 수용과 분리된 상태로 남습니다. + +## 유압 AT 피드백 + +`at_controller`는 [-1,4] 범위의 정수 목표 단을 받으며 0은 중립입니다. 다섯 쌍의 충전/배출 밸브와 선택적인 토크 컨버터 록업을 관리합니다. 경로 순서는 캐리어 입력, 작은 선기어 입력, 큰 선기어 입력, 캐리어 브레이크, 큰 선기어 브레이크, 마지막으로 록업입니다. + +예제 `controlled-hydraulic-ravigneaux`와 `controlled-fired-hydraulic-ravigneaux`는 요청 채널 900과 컨트롤러 ID 1400을 사용합니다. 변경되지 않은 128 상태 한도 안에서 99와 122개의 보고 상태를 보존합니다. v41는 경로, 게인과 클록을 저장하고 v1-v40를 읽습니다. + +연구용 제어이며 매개변수는 `unverified`입니다. ECU 토크 협조, 상세 센서/밸브, 전체 차량 고장과 OEM 보정은 아직 미완성입니다. managed 및 Standard 검사는 실제 Unity Editor/Play/Player/IL2CPP 검증을 입증하지 않습니다. + +[AT_CONTROL.ko.md](AT_CONTROL.ko.md) + +## 펌프 공급 액체 연료 레일 + +`liquid_rail_feed`는 액체 인젝터를 기존 용적 펌프와 명시적인 물질/열 경계에 연결합니다. 유압 출구 노드는 레일 컴플라이언스와 초기 절대압에 일치해야 합니다. 펌프와 인젝터가 이 압력 노드를 소유하고 다른 미추적 유체 경로는 거부됩니다. + +v41은 공급 연결과 원천 온도를 저장하고 v1-v40를 읽습니다. 축/압력 해석 교환, 독립 동시 ODE 세분화, 열 혼합, 질량/연료/에너지/체적 원장, 역류와 완전 rollback을 각각 확인합니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[PUMP_FED_FUEL.ko.md](PUMP_FED_FUEL.ko.md) + +## 유한 액체 연료 탱크 + +`liquid_fuel_tank`는 연결 인젝터의 밀도, 필름 열 기준과 발열량으로 유한 액체 질량과 열 에너지를 저장합니다. 공급은 `tank_component`로 선택하고 `supply_temperature`를 생략합니다. 각 탱크는 연료 물성이 같은 한 공급에 속합니다. + +탱크 열/화학 에너지는 전체 저장 원장에 포함됩니다. 내부 전달은 외부 질량이나 화학 공급을 추가하지 않습니다. 명시적 펌프 입구 지정 압력은 압력 일 경계를 유지합니다. 가스 흡배기는 화학 경계 에너지를 운반할 수 있습니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[LIQUID_FUEL_TANK.ko.md](LIQUID_FUEL_TANK.ko.md) + +## 추적 가능한 연료 릴리프 반환 + +`liquid_rail_return`는 공급을 독점 단방향 `hydraulic_relief`에 연결합니다. 밸브는 레일을 펌프와 같은 지정 입구 압력에 연결합니다. 모든 유체 경로를 등록하며 비호환 포트, 중복 소유와 미추적 경로는 거부됩니다. + +`fluid_heat_fraction`는 반환 연료가 운반하는 밸브 손실 비율 [0,1]을 명시합니다. 나머지 열은 선언된 밸브 열 경로를 따릅니다. 레일/탱크 동시 열 혼합은 질량, 화학, 압력 일과 열 원장을 보존하며 외부 원천 반환은 경계를 통해 질량/에너지를 내보냅니다. + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 탱크 형상과 유한 헤드스페이스 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +연성 계산은 외부 압력원 없이 축, 레일과 기체 사이의 압력 일을 교환합니다. 기체 오리피스와 열 연결은 명시적 통기/열전달을 제공합니다. `pressure`, `fill_fraction`, 부호 있는 누적 `hydraulic_work`와 기체 질량, 에너지, 체적을 읽습니다. 용량, 액체 공급, 증발과 연소는 구분됩니다. + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 연료 상평형과 액체 공급 경계 + +하나의 이상 의사 성분, 수용부의 공통 기체 상수, 일정 비열을 쓰며 액체 변위 체적은 무시합니다. 상의 화학 퍼텐셜 일치로 아래 포화 관계를 얻습니다. 고정 체적에서 총연료와 내부에너지가 공통 온도와 증기 질량을 결정합니다. 화학 에너지는 내부 이동하며 반응은 증기만 소비합니다. + +유계 스칼라 풀이가 단조 평형 에너지를 사용합니다. 유한 벽 열전달은 후진 Euler입니다. 수송 및 이동 실린더 일과의 연성에 1차 수렴 증거가 있습니다. 액체 공존은 지정 온도 구간 안에 있어야 합니다. 구간 안에서 완전히 증발한 기체는 과열될 수 있으며 포화 곡선을 외삽하지 않습니다. + +`mass_flow`는 완전한 물리 시간 단계의 부호 있는 순 상변화입니다. `evaporated_fuel_mass`와 `condensed_fuel_mass`는 양·음 질량을 각각 누적하여 상쇄되는 분할 계산을 중복 집계하지 않습니다. `vapor_partial_pressure`는 수용부 연료 분압입니다. 열, 질량과 화학 에너지 수지는 두 상을 포함합니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유한 체적 연료 탱크 상평형 + +강체 용기는 비압축 액체와 이상 의사 성분/운반 기체를 포함합니다. 액체 체적이 기체 체적을 바꿉니다. 액체 화학 퍼텐셜은 `p/rho`를 포함하므로 수용부의 무시 가능한 변위 기준 `p_0(T)`에 압력 보정이 붙습니다. `reference_pressure`는 그 물성 기준을 유지하며 유한 밀도 순수 유체 포화압으로 조용히 바꾸지 않습니다. + +유계 정 U,V 플래시가 총연료와 열에너지를 보존합니다. 명시적 오리피스는 증기, 운반 기체와 화학 에너지를 수송하고 열 연결은 유한 열 노드와 교환합니다. 펌프/반환은 기체와 변위 일을 교환하며 이후 평형이 내부에너지를 재분배합니다. `hydraulic_work`는 내부 상변화 일을 제외한 펌프 변위 일입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) + +## 탄성 연료 체적 참조 모델 + +`CompliantFuelVolume`은 상평형 연료 네트워크의 구성 폐쇄 관계를 제공합니다. 총질량과 온도 또는 에너지에서 액체, 증기, 탄성 저장을 동반한 공존을 풉니다. 펌프 공급 인젝터 경로는 결합 확장이 남습니다. [상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + +[탄성 연료 체적 참조 모델](COMPLIANT_FUEL_VOLUME.ko.md) + +## 상평형 연료 수송 네트워크 + +`fuel` 도메인은 유한 탄성 용기에서 순수 연료 액체와 증기를 함께 수송합니다. 각 용기는 총질량과 열량·탄성 총에너지를 독립적으로 유지하며 상평형 플래시가 온도, 압력, 증기 비율을 결정합니다. `fuel_restriction`은 균질 공급 유체를 교환하고 `fuel_heat_link`는 유한 열 노드와 열을 교환합니다. 발열량에 해당하는 화학 에너지는 별도 장부입니다. + +[상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + +## 축 구동 상변화 연료 펌프 + +`fuel_chamber`는 실제 축과 유한 연료 챔버를 결합합니다. 입출구 `fuel_check_valve`가 압력차로 충전과 공급을 수행합니다. 액체, 증기, 탄성 벽 에너지는 같은 폐쇄 관계를 씁니다. 입구 공급 부족 시 흡입 중 플래시 증발이 가능하며 공급량은 계산한 재고와 압력에 따릅니다. + +[축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. [증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) + +## 축 구동 압축성 연료 챔버 + +닫힌 일 단계는 질량과 엔트로피를 유지합니다. 액체 냉압축 에너지와 열 내부에너지는 덕트와 동일한 평형 퍼텐셜을 사용합니다. 순수 액체에는 정확한 압력 적분을, 이상증기에는 해석적 단열선을 사용합니다. 상변화에서는 엔트로피를 역산하고 최종 에너지를 확인합니다. 채택된 에너지 차이가 공동 기계 해법에서 이산 압력 토크를 제공합니다. 양의 `hydraulic_work`는 축에서 유체로 전달되는 에너지입니다. + +가변 체적 저장조는 반 수송, 전체 축 일, 반 수송 순서로 계산합니다. 수송은 수치 확산을 가진 1차이며 대칭 분할이 차수를 높이지 않습니다. 매끄러운 닫힌 액체 축 운동은 2차 수렴합니다. 기계 구간의 각 증가량은 0.25 rad로 제한합니다. CFL, 물성 범위, 전체 롤백, 취소, 독립 분기는 그대로 적용됩니다. 정지 포트/하우징 충격량은 피스톤 압력 일과 구분합니다. + +[축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) + +## 상분율을 동결한 압축성 연료 노즐 + +두 상은 압력, 온도, 속도를 공유하고 상간 질량전달을 억제합니다. 엔트로피 관계와 냉압축 에너지가 등엔트로피 엔탈피 강하를 결정합니다. 유일한 질량유속 최대값에는 평형 음속과 다른 동결 음속을 사용합니다. 계수는 유효면적을 조정합니다. 초킹 시 출구 에너지는 수신 압력까지 완전히 팽창한 이상 제트입니다. 공급 정체 엔탈피는 수신 유체와 명시적 벽열을 한 번만 지불합니다. 충격량은 정지 열화를 뜻하며 전체 하우징 추력이나 니들 축력이 아닙니다. + +보존형 1차 하위 스텝이 같은 질량과 엔탈피를 전달하고 제트 운동에너지를 수신 유체와 벽에 배분합니다. 물성 상태와 쌍 전체 엔트로피를 확인합니다. 구간당 최대 4096 스텝, 후보당 최대 64회 반감, 초기 전달량은 작은 저장조 질량의 0.1배 이하입니다. 닫힘 판단은 최대 체적탄성률 또는 포트 압력의 128 binary64 epsilon배 반올림을 허용하며 출력 압력을 클램프하지 않습니다. 실패하면 전체 배치를 롤백합니다. 시간 간격, 재고, 물성 범위, 니들 행정과 면적을 확인하십시오. + +[상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) + +## 연료 노즐의 평형 상변화 수송 + +평형 음속 제곱이 양수이므로 등엔트로피 밀도는 압력과 함께 증가하고 엔탈피 강하는 감소합니다. 이 단조 인자로 상경계와 여러 극값을 포함한 구간 유속 상한을 구합니다. 분기 한정은 표본 하한과 잔여 상한의 상대 폭을 1e-4 이하로 만듭니다. 스택 구간 최대 512개, 분할 8192회입니다. 열량 차이의 반올림 여유와 단조 압력 적분 경계를 사용하며 최대 256 Riemann 구간과 80회 폐쇄 반복을 수행합니다. 해결할 수 없으면 배치를 거부합니다. 매끄러운 내부 최대값은 음속 조건을 만족하지만 상경계 최대값은 비매끄러울 수 있습니다. + +보존형 1차 하위 스텝이 같은 질량과 엔탈피를 전달하고 제트 운동에너지를 수신 유체와 벽에 배분합니다. 물성 상태와 쌍 전체 엔트로피를 확인합니다. 구간당 최대 4096 스텝, 후보당 최대 64회 반감, 초기 전달량은 작은 저장조 질량의 0.1배 이하입니다. 닫힘 판단은 최대 체적탄성률 또는 포트 압력의 128 binary64 epsilon배 반올림을 허용하며 출력 압력을 클램프하지 않습니다. 실패하면 전체 배치를 롤백합니다. 시간 간격, 재고, 물성 범위, 니들 행정과 면적을 확인하십시오. + +[연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) + +## 유한 속도 연료 상변화 완화 + +폐쇄식은 평형 연료 모델의 압축성 액체 냉각 퍼텐셜과 이상 증기를 유지합니다. 초기 분율은 명시하며 평형으로 투영하지 않습니다. 질량, 부피와 내부 에너지가 일정할 때 분율은 일정한 `phase_relaxation_time_ns`로 평형값에 지수적으로 접근합니다. 잠열은 내부 에너지 수지에 남습니다. 화학 친화도는 액체와 증기의 화학 퍼텐셜 차이며, 상변화율과의 곱을 온도로 나누면 음이 아닌 엔트로피 생성이 됩니다. 이는 연구용 완화 법칙으로 실측 핵생성 상관식이 아닙니다. + +보존형 Rusanov 플럭스가 네 장을 수송합니다. 각 전역 CFL 구간에서 국소 상변화 반 단계, 수송, 반 단계를 적용합니다. 공유 저장조는 덕트 수와 무관하게 소스항을 한 번씩 받습니다. 고립된 정적 부피 상태의 소스 궤적은 정확하지만 결합 수송은 일차 오차를 가집니다. CFL은 동결 분율 음속 상한을 사용합니다. 상변화와 덕트 엔트로피를 별도로 검사하며 범위 이탈은 전체 배치를 롤백합니다. + +[유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) + +## 상변화 완화 연료 펌프와 동결 상 계량 + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. + +분율 고정 엔트로피 관계로 부피 변화 후 압력과 온도를 구합니다. 일은 액체 냉압축 에너지를 포함하며 작은 변위에는 안정적인 증분 함수를 씁니다. 동일한 이산 일이 축 토크를 결정합니다. 각 전역 구간에서 보존 덕트 및 동결 노즐 수송 전후에 각 노드의 상변화 소스항을 한 번씩 적용합니다. 구간은 덕트 CFL과 더 작은 포트 재고의 0.02 비율로 제한하며 최대 4096개입니다. 기계 일과 소스는 분리합니다. 결합 수송은 일차이며 시간 세분화가 필요합니다. + +[상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 78f30e2..f71c791 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -152,7 +152,7 @@ MCP sessions live in the local server process. The limit is 16. They are release ## What is still open -Compressible gas exchange, prescribed premixed combustion, clutches, gears, a mapped converter and hydraulic actuation now exist as components with ports, state and conservation checks. They do not finish the powertrain. Still open: rail pump and refill, ignition control, detailed intake and exhaust, mechanical losses, richer thermochemistry, mesh compliance, complete AT pressure and shift control, coordinated ECU/TCU behavior, and measured calibration. A new equation still needs an explicit model version, dimensions and numerical evidence. Existing component semantics are not extended by changing them quietly. +Compressible gas exchange, prescribed premixed combustion, clutches, gears, a mapped converter and hydraulic actuation now exist as components with ports, state and conservation checks. They do not finish the powertrain. Still open: measured pump filling and regulation, ignition control, detailed intake and exhaust, mechanical losses, richer thermochemistry, mesh compliance, complete AT pressure and shift control, coordinated ECU/TCU behavior, and measured calibration. A new equation still needs an explicit model version, dimensions and numerical evidence. Existing component semantics are not extended by changing them quietly. An agent can generate a topology and initial state, propose parameter hypotheses, write component candidates, build experiments and read the evidence back. The execution core still owns numerical constraints and checks. A language-model judgment is not a physical fact. Unity graph editing, a simulation worker thread and a replaceable high-performance solver backend wait until the boundary is stable. Nothing here claims a general nonlinear solver, Burst or a GPU solver. @@ -488,3 +488,127 @@ front/back areas retain swept inventory and reference-pressure work. Immutable ordinary definitions preserve the existing joint pressure/motion/friction solve, portable v24 semantics and complete atomic state. Prescribed valve schedules remain separate from AT feedback/control and measured valve-body acceptance. + +## Hydraulic AT feedback + +`at_controller` accepts an integer requested range in [-1,4]; zero is neutral. It owns five fill/drain actuator pairs and optional converter lockup. Route order is carrier input, small-sun input, large-sun input, carrier brake, large-sun brake, then lockup. + +The examples `controlled-hydraulic-ravigneaux` and `controlled-fired-hydraulic-ravigneaux` use request channel 900 and controller ID 1400. They retain 99 and 122 reported states within the unchanged 128-state limit. Asset v41 retains routes, gains and clocks and reads v1-v40. + +These are research controls and parameters remain `unverified`. Coordinated ECU torque blending, detailed sensors/valves, comprehensive vehicle faults and OEM calibration remain unfinished. Managed and Standard checks do not establish actual Unity Editor/Play/Player/IL2CPP acceptance. + +[AT_CONTROL.md](AT_CONTROL.md) + +## Pump-fed liquid fuel rail + +`liquid_rail_feed` pairs a liquid injector with an existing displacement pump and explicit material/thermal boundary. The hydraulic outlet node must match the rail compliance and initial absolute pressure. The paired pump and injector own this pressure node; other untracked fluid paths are rejected. + +Asset v41 retains feed links and source temperature and reads v1-v40. Analytic shaft/pressure exchange, independent simultaneous ODE refinement, caloric mixing, mass/fuel/energy/volume ledgers, reverse return and complete rollback have separate checks. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[PUMP_FED_FUEL.md](PUMP_FED_FUEL.md) + +## Finite liquid fuel tank + +`liquid_fuel_tank` stores finite liquid mass and caloric energy using the paired injector's density, film thermal reference and heating value. A feed selects it with `tank_component` and omits `supply_temperature`. Each tank belongs to one feed with matching fuel properties. + +Tank caloric and chemical energy enter the complete stored-energy ledger. Tank-to-rail transfer adds no external mass or chemical supply. The explicit prescribed pump inlet pressure retains its pressure-work boundary. Gas inlet/exhaust can still carry chemical boundary energy. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[LIQUID_FUEL_TANK.md](LIQUID_FUEL_TANK.md) + +## Tracked fuel relief return + +`liquid_rail_return` pairs a feed with an exclusively owned one-way `hydraulic_relief`. The valve connects the rail to the pump's same prescribed inlet pressure. Register every fluid path; incompatible ports, duplicate valve ownership and untracked paths reject. + +`fluid_heat_fraction` explicitly selects the fraction in [0,1] of valve loss carried with returned fuel. The remaining heat follows the valve's declared heat path. Simultaneous rail/tank caloric mixing preserves the full mass, chemical, pressure-work and thermal ledgers. External-source returns instead carry mass and energy out through the boundary. + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## Geometric tank and finite headspace + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +The coupled solve exchanges shaft, rail and gas pressure work without an external pressure source. Gas orifices and heat links provide explicit vent/thermal paths. Read tank `pressure`, `fill_fraction` and signed cumulative `hydraulic_work`, plus headspace gas mass, energy and volume. Prescribed dose, delivered liquid, evaporation and burn remain separate. + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Fuel phase equilibrium and liquid supply limits + +The model uses one ideal pseudo-species, the receiver's common gas constant and constant heat capacities, and negligible liquid displacement. Equality of phase chemical potentials gives the saturation relation below. At fixed volume, total fuel and internal energy determine the common temperature and vapor mass. Evaporation and condensation transfer chemical inventory internally; reaction still consumes vapor only. + +A bounded scalar solve uses the monotone equilibrium energy relation. Finite-wall heat uses backward Euler. Coupling to transport and moving-cylinder work has first-order refinement evidence. Liquid coexistence stays within the declared temperature interval. Completely evaporated gas can superheat after dryout within that interval; the saturation curve is not extrapolated. + +`mass_flow` is the signed net phase transfer over the complete physical tick. `evaporated_fuel_mass` and `condensed_fuel_mass` accumulate its positive and negative mass amounts, so canceling split-operator projections are not counted twice. `vapor_partial_pressure` reports the receiver fuel partial pressure. Thermal, mass and chemical ledgers include both phases. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Finite-volume fuel tank equilibrium + +The rigid vessel contains incompressible liquid and an ideal pseudo-species/carrier gas. Liquid volume changes the gas volume. The liquid chemical potential includes `p/rho`, so the receiver's negligible-displacement saturation reference `p_0(T)` receives a pressure correction. `reference_pressure` retains that material-reference meaning; it is not silently reinterpreted as the finite-density pure-fluid saturation pressure. + +A bounded constant-U,V flash conserves total fuel and thermal energy. Explicit gas orifices carry vapor, carrier gas and chemical energy; gas heat links exchange heat with finite thermal nodes. The pump/return solve exchanges displacement work with the gas, then phase equilibration redistributes internal energy. Its `hydraulic_work` channel records pump-displacement work, excluding internal phase-change work. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) + +## Compliant fuel volume reference + +`CompliantFuelVolume` supplies the constitutive closure used by the equilibrium fuel network. It resolves liquid, vapor and coexistence with elastic storage from total mass and temperature or stored energy. The pump-fed injector path remains separate until its coupling is extended. [Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + +[Compliant fuel volume reference](COMPLIANT_FUEL_VOLUME.md) + +## Equilibrium fuel transport network + +The `fuel` domain carries pure liquid and vapor together in finite elastic vessels. Each vessel owns independent total mass and caloric-plus-elastic energy; its phase flash determines temperature, pressure and vapor fractions. `fuel_restriction` exchanges homogeneous donor fluid and `fuel_heat_link` exchanges heat with a finite thermal node. Chemical heating-value energy stays in a separate ledger. + +[Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + +## Shaft-driven phase-resolving fuel pump + +A `fuel_chamber` couples an actual shaft to a finite fuel-domain chamber. Inlet and outlet `fuel_check_valve` components provide pressure-driven filling and delivery. Liquid, vapor and elastic wall energy share the same material closure. An inlet-starved chamber can flash during suction; delivered fuel follows the computed inventory and pressure. + +[Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. [Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) + +## Shaft-driven compressible fuel chambers + +The closed work step holds mass and entropy fixed. Liquid cold compression energy and caloric energy use the same equilibrium potential as the duct. Liquid-only motion uses the exact pressure integral; ideal-vapor motion uses its analytic adiabat. Phase-changing motion inverts entropy and checks the final energy state. The accepted energy difference supplies a discrete pressure torque in the joint mechanical solve. Positive `hydraulic_work` means energy from shaft to fluid. + +A moving reservoir uses half duct transport, full shaft work, then half transport. Transport remains first order with numerical diffusion; symmetric splitting does not raise its order. Closed smooth liquid shaft motion has second-order refinement. Angular increments are limited to 0.25 rad per mechanical interval. Duct CFL, material bounds, full rollback, cancellation and independent branches still apply. Stationary port/housing impulse is separate from piston pressure work. + +[Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) + +## Frozen compressible fuel nozzles + +The frozen phases share pressure, temperature and velocity; phase mass transfer is suppressed. Their entropy relation and liquid cold energy give the isentropic enthalpy drop. The unique mass-flux maximum uses frozen sound speed, which differs from equilibrium sound speed. The coefficient scales effective area. At choking, reported exit energy describes an ideal jet fully expanded to receiver pressure. Donor stagnation enthalpy supplies receiver energy and explicit finite-wall jet heat once. Jet impulse measures stationary thermalization, not total housing thrust or axial needle force. + +Conservative first-order substeps transfer the same mass and enthalpy between reservoirs. Jet kinetic energy is divided between receiver and wall. Accepted substeps check both material states and total pair entropy. Each interval permits 4096 substeps with at most 64 halvings per candidate; the initial transfer bound is 0.1 times the smaller reservoir mass. Pressure closure allows 128 times binary64 epsilon times the largest bulk modulus or port pressure; reported pressures are not clamped. A failed interval rolls back the whole batch. Reduce the tick and inspect inventory, material bounds, needle travel and valve area. + +[Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) + +## Equilibrium fuel nozzle transit + +Positive equilibrium sound-speed squared gives increasing density along an isentrope. Enthalpy drop decreases with pressure. These monotone factors bound flux on each pressure interval, including phase boundaries and multiple extrema. Branch-and-bound returns a sampled lower rate and remaining upper bound within 1e-4 relative width. There are at most 512 stack intervals and 8192 splits. Caloric endpoint differences use roundoff allowances and monotone pressure-integral bounds, with up to 256 Riemann panels and 80 closure iterations. Unresolved cases reject the batch. A smooth interior maximum is sonic; a phase-boundary maximum can be nonsmooth. + +Conservative first-order substeps transfer the same mass and enthalpy between reservoirs. Jet kinetic energy is divided between receiver and wall. Accepted substeps check both material states and total pair entropy. Each interval permits 4096 substeps with at most 64 halvings per candidate; the initial transfer bound is 0.1 times the smaller reservoir mass. Pressure closure allows 128 times binary64 epsilon times the largest bulk modulus or port pressure; reported pressures are not clamped. A failed interval rolls back the whole batch. Reduce the tick and inspect inventory, material bounds, needle travel and valve area. + +[Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) + +## Finite-rate fuel phase relaxation + +The closure retains the compressible liquid cold potential and ideal vapor of the equilibrium fuel model. Initial quality is explicit and is not projected to equilibrium. At fixed mass, volume and internal energy, quality approaches the equilibrium target exponentially with constant `phase_relaxation_time_ns`. Latent heat stays inside the energy balance. Chemical affinity is liquid minus vapor chemical potential; its product with phase transfer gives nonnegative entropy production divided by temperature. This is a research relaxation law, not a measured nucleation correlation. + +Conservative Rusanov fluxes advect four fields. Each global CFL interval applies half a local phase source, transport, then half a source. Shared reservoirs receive each source once, regardless of duct count. The source trajectory is exact for isolated fixed-volume states; the coupled method retains first-order transport error. CFL uses the frozen-quality acoustic bound. Local phase and duct entropy changes are checked separately. Out-of-range states reject the complete batch. + +[Finite-rate fuel phase relaxation](RELAXING_FUEL.md) + +## Relaxing fuel pumps and frozen metering + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. + +The fixed-quality entropy relation determines pressure and temperature after a volume change. Work includes liquid cold compression energy and uses stable incremental functions for small motion. The identical discrete work drives shaft torque. Global intervals apply each node's phase source once around conservative duct and frozen nozzle transport. Duct CFL and a 0.02 fraction of the smaller nozzle-port inventory bound intervals; at most 4096 intervals are allowed. Mechanical work is separated from source evolution. Coupled transport remains first order and needs temporal refinement. + +[Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) diff --git a/docs/ARCHITECTURE.pt-BR.md b/docs/ARCHITECTURE.pt-BR.md index 156fa69..1096562 100644 --- a/docs/ARCHITECTURE.pt-BR.md +++ b/docs/ARCHITECTURE.pt-BR.md @@ -116,7 +116,7 @@ A impressão digital cobre a semântica do modelo, os parâmetros normalizados, ## O que ainda está aberto -Troca de gás compressível, combustão premisturada prescrita, embreagens, engrenagens, um conversor mapeado e acionamento hidráulico agora existem como componentes com portas, estado e verificações de conservação. Eles não concluem o powertrain. Ainda aberto: bomba e reabastecimento do trilho, controle de ignição, admissão e escape detalhados, perdas mecânicas, termoquímica mais rica, flexibilidade de engrenamento, controle completo de pressão e troca da AT, comportamento coordenado de ECU/TCU e calibração medida. Uma equação nova ainda precisa de uma versão explícita de modelo, dimensões e evidência numérica. A semântica dos componentes existentes não é estendida alterando-os em silêncio. +Troca de gás compressível, combustão premisturada prescrita, embreagens, engrenagens, um conversor mapeado e acionamento hidráulico agora existem como componentes com portas, estado e verificações de conservação. Eles não concluem o powertrain. Ainda aberto: enchimento e regulação medidos da bomba, controle de ignição, admissão e escape detalhados, perdas mecânicas, termoquímica mais rica, flexibilidade de engrenamento, controle completo de pressão e troca da AT, comportamento coordenado de ECU/TCU e calibração medida. Uma equação nova ainda precisa de uma versão explícita de modelo, dimensões e evidência numérica. A semântica dos componentes existentes não é estendida alterando-os em silêncio. Um agente pode gerar uma topologia e um estado inicial, propor hipóteses de parâmetros, escrever candidatos de componente, construir experimentos e ler a evidência de volta. O núcleo de execução continua dono das restrições e verificações numéricas. O julgamento de um modelo de linguagem não é um fato físico. Edição de grafo no Unity, uma thread de trabalho de simulação e um backend substituível de solver de alto desempenho esperam até a fronteira estar estável. Nada aqui afirma um solver não linear geral, Burst ou um solver de GPU. @@ -243,3 +243,127 @@ Engrenamentos do porta-planetas suportam relações relativas finitas, não nula ## Montagem compartilhada de acionamento hidráulico A [montagem de acionamento da AT](AT_HYDRAULIC_ACTUATION.pt-BR.md) reduz 1..6 alvos de embreagem declarados em embreagens reais de pistão/contato, restrições de enchimento/drenagem e molas de retorno alimentadas por uma bomba reversível compartilhada, vazamento/arrasto e alívio. Áreas dianteira/traseira explícitas conservam o inventário varrido e o trabalho de pressão de referência. Definições ordinárias imutáveis preservam a solução conjunta existente de pressão/movimento/atrito, a semântica portátil v24 e o estado atômico completo. Agendas prescritas de válvulas continuam separadas da realimentação/controle da AT e da aceitação medida do corpo de válvulas. + +## Realimentação de AT hidráulica + +`at_controller` aceita uma marcha solicitada inteira em [-1,4]; zero indica neutro. Ele controla cinco pares de válvulas de enchimento/drenagem e o bloqueio opcional do conversor. A ordem é entrada do portasatélites, solar pequeno, solar grande, freio do portasatélites, freio do solar grande e bloqueio. + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usam o canal 900 e o ID 1400. Preservam 99 e 122 estados relatados dentro do limite inalterado de 128. v41 preserva rotas, ganhos e relógios e lê v1-v40. + +São controles de pesquisa e os parâmetros continuam `unverified`. Coordenação de torque ECU, sensores/válvulas detalhados, falhas completas do veículo e calibração OEM permanecem pendentes. Verificações managed e Standard não comprovam aceitação real Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.pt-BR.md](AT_CONTROL.pt-BR.md) + +## Rail de combustível líquido alimentado por bomba + +`liquid_rail_feed` associa um injetor líquido a uma bomba volumétrica existente e a uma fronteira explícita de matéria/calor. O nó de saída hidráulica deve corresponder à complacência e pressão absoluta inicial do rail. Bomba e injetor possuem esse nó; outras rotas fluidas não contabilizadas são rejeitadas. + +v41 preserva conexões e temperatura da fonte e lê v1-v40. Troca analítica eixo/pressão, refinamento ODE simultâneo independente, mistura térmica, balanços massa/combustível/energia/volume, retorno e rollback completo têm verificações separadas. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[PUMP_FED_FUEL.pt-BR.md](PUMP_FED_FUEL.pt-BR.md) + +## Tanque finito de combustível líquido + +`liquid_fuel_tank` guarda massa líquida finita e energia térmica com densidade, referência térmica do filme e poder calorífico do injetor associado. A alimentação o escolhe por `tank_component` e omite `supply_temperature`. Cada tanque pertence a uma alimentação compatível. + +Energias térmica e química do tanque entram no armazenamento completo. Transferência interna não adiciona massa ou energia química externa. A pressão de entrada prescrita mantém sua fronteira de trabalho de pressão. Admissão/escape gasoso ainda podem transportar energia química. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[LIQUID_FUEL_TANK.pt-BR.md](LIQUID_FUEL_TANK.pt-BR.md) + +## Retorno de alívio de combustível rastreado + +`liquid_rail_return` associa alimentação a um `hydraulic_relief` unidirecional exclusivo. A válvula liga o rail à mesma pressão de entrada prescrita da bomba. Registrar cada rota; portas incompatíveis, propriedade duplicada e rotas não rastreadas são rejeitadas. + +`fluid_heat_fraction` escolhe explicitamente a fração [0,1] da perda transportada pelo combustível retornado. O restante segue a rota térmica declarada. Mistura simultânea rail/tanque conserva massa, química, trabalho de pressão e calor. Retorno à fonte externa leva massa/energia pela fronteira. + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## Geometria do tanque e espaço gasoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +O solver acoplado troca trabalho de pressão entre eixo, trilho e gás sem fonte externa. Orifícios gasosos e conexões térmicas fornecem ventilação/calor explícitos. Ler `pressure`, `fill_fraction`, `hydraulic_work` acumulado com sinal e massa, energia, volume do gás. Dose, líquido, evaporação e combustão continuam separados. + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Equilíbrio de fases do combustível e limites de suprimento + +O modelo usa uma pseudoespécie ideal, a constante gasosa comum, calores específicos constantes e deslocamento líquido desprezível. Potenciais químicos iguais fornecem a saturação abaixo. A volume fixo, combustível total e energia interna determinam temperatura e massa de vapor. O inventário químico é transferido internamente; a reação consome só vapor. + +Uma solução escalar limitada usa energia de equilíbrio monótona. Calor da parede usa Euler implícito. Transporte e trabalho do cilindro móvel têm evidência de refinamento de primeira ordem. A coexistência líquida fica no intervalo declarado. Após evaporação completa dentro dele, o gás pode superaquecer sem extrapolar a curva. + +`mass_flow` é a transferência líquida com sinal do passo físico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` acumulam suas massas positiva e negativa sem duplicar projeções que se cancelam. `vapor_partial_pressure` mostra a pressão parcial do combustível. Balanços térmicos, de massa e químicos incluem ambas as fases. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +O recipiente rígido contém líquido incompressível e gás ideal de pseudoespécie/portador. O líquido muda o volume gasoso. Seu potencial químico inclui `p/rho`, corrigindo a referência `p_0(T)` de deslocamento desprezível. `reference_pressure` mantém esse significado, sem ser reinterpretada como saturação real de fluido puro com densidade finita. + +Um flash limitado a U,V constantes conserva combustível e energia térmica. Orifícios explícitos carregam vapor, portador e energia química; ligações térmicas trocam com nós finitos. Bomba/retorno trocam trabalho de deslocamento com o gás e depois o equilíbrio redistribui energia. `hydraulic_work` conta deslocamento de bomba, excluindo trabalho interno de fase. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Referência de volume de combustível complacente + +`CompliantFuelVolume` fornece o fechamento constitutivo da rede de combustível em equilíbrio. Resolve líquido, vapor e coexistência com armazenamento elástico por massa total e temperatura ou energia. O caminho de injetor alimentado por bomba ainda exige ampliar o acoplamento. [Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +[Referência de volume de combustível complacente](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Rede de transporte de combustível em equilíbrio + +O domínio `fuel` transporta líquido puro e vapor juntos em recipientes elásticos finitos. Cada recipiente mantém massa total e energia calórica mais elástica independentes; o flash determina temperatura, pressão e frações de vapor. `fuel_restriction` troca fluido doador homogêneo e `fuel_heat_link` troca calor com um nó térmico finito. A energia química do poder calorífico mantém um balanço separado. + +[Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Bomba de combustível com mudança de fase acionada por eixo + +`fuel_chamber` acopla um eixo real a uma câmara finita de combustível. `fuel_check_valve` de entrada e saída fornecem enchimento e entrega por pressão. Líquido, vapor e energia elástica usam o mesmo fechamento. Com entrada insuficiente a câmara pode vaporizar na sucção; a entrega segue inventário e pressão calculados. + +[Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. [Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) + +## Câmaras de combustível compressível acionadas por eixo + +O passo fechado de trabalho mantém massa e entropia. Energia de compressão fria e energia calórica usam o potencial de equilíbrio do duto. O líquido puro usa a integral exata da pressão e o vapor ideal sua adiabática analítica. A mudança de fase inverte entropia e verifica a energia final. A diferença aceita fornece torque discreto na solução mecânica conjunta. `hydraulic_work` positivo significa energia do eixo para o fluido. + +O reservatório móvel usa meio transporte, trabalho completo do eixo e meio transporte. O transporte continua de primeira ordem com difusão numérica; a separação simétrica não eleva a ordem. O movimento líquido fechado e suave converge em segunda ordem. Incrementos angulares são limitados a 0.25 rad por intervalo mecânico. CFL, limites materiais, reversão completa, cancelamento e ramificações independentes continuam válidos. O impulso estacionário das portas/carcaça é separado do trabalho do pistão. + +[Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Bocais de combustível compressível com título congelado + +As fases compartilham pressão, temperatura e velocidade; a transferência mássica de fase é suprimida. Entropia e energia de compressão fria determinam a queda isentrópica de entalpia. O máximo único de fluxo usa som congelado, diferente do som de equilíbrio. O coeficiente escala área efetiva. No bloqueio, a energia de saída descreve um jato ideal totalmente expandido à pressão receptora. A entalpia de estagnação paga uma vez a energia receptora e o calor explícito da parede. O impulso mede termalização estacionária, não empuxo total da carcaça ou força axial na agulha. + +Subpassos conservativos de primeira ordem transferem igual massa e entalpia e dividem a energia cinética entre fluido e parede. Verificam-se estados e entropia total do par. Limites: 4096 subpassos, 64 reduções à metade por candidato e transferência inicial de até 0.1 da menor massa. O fechamento permite 128 epsilon binary64 vezes o maior módulo volumétrico ou pressão, sem limitar pressões informadas. Falhas revertem todo o lote. Examine passo, inventário, limites, curso e área. + +[Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Trânsito de combustível em equilíbrio nos bocais + +O quadrado positivo do som de equilíbrio implica densidade crescente com pressão a entropia fixa; a queda de entalpia diminui. Os fatores monótonos limitam o fluxo de cada intervalo, incluindo fronteiras de fase e vários extremos. Ramificação e limitação retornam limite inferior amostrado e superior restante com largura relativa até 1e-4. Limites: 512 intervalos na pilha e 8192 divisões. Diferenças calóricas usam margens de arredondamento e limites integrais monótonos com até 256 painéis Riemann e 80 iterações. Casos não resolvidos rejeitam o lote. Máximo interior suave é sônico; na fronteira pode não ser suave. + +Subpassos conservativos de primeira ordem transferem igual massa e entalpia e dividem a energia cinética entre fluido e parede. Verificam-se estados e entropia total do par. Limites: 4096 subpassos, 64 reduções à metade por candidato e transferência inicial de até 0.1 da menor massa. O fechamento permite 128 epsilon binary64 vezes o maior módulo volumétrico ou pressão, sem limitar pressões informadas. Falhas revertem todo o lote. Examine passo, inventário, limites, curso e área. + +[Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Relaxação de fase do combustível com taxa finita + +O fechamento mantém o potencial frio do líquido compressível e o vapor ideal do modelo de equilíbrio. A fração inicial é explícita e não é projetada ao equilíbrio. Com massa, volume e energia interna fixos, a fração converge exponencialmente ao alvo com `phase_relaxation_time_ns` constante. O calor latente permanece no balanço interno. A afinidade química é o potencial do líquido menos o do vapor; seu produto pela transferência de fase, dividido pela temperatura, gera entropia não negativa. É uma lei de pesquisa, não uma correlação de nucleação medida. + +Fluxos conservativos de Rusanov transportam quatro campos. Cada intervalo CFL global aplica meia fonte local, transporte e meia fonte. Reservatórios compartilhados recebem cada fonte uma vez, independentemente do número de dutos. A fonte é exata para estados isolados de volume fixo; o transporte acoplado mantém erro de primeira ordem. CFL usa o limite acústico de fração congelada. Entropias de fase e duto são verificadas separadamente. Estados fora dos limites revertem o lote inteiro. + +[Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) + +## Bombas de combustível com relaxação e dosagem congelada + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. + +A relação de entropia com fração fixa determina pressão e temperatura após variar o volume. O trabalho inclui compressão fria do líquido e funções incrementais estáveis para pequenos movimentos. O mesmo trabalho discreto gera o torque do eixo. Cada intervalo global aplica uma vez a fonte de cada nó ao redor do transporte conservativo em duto e bocal congelado. CFL e 0.02 do menor inventário de porta limitam os intervalos, no máximo 4096. Trabalho e fonte ficam separados. O transporte acoplado continua de primeira ordem e exige refinamento temporal. + +[Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) diff --git a/docs/ARCHITECTURE.ru.md b/docs/ARCHITECTURE.ru.md index a27ce86..f356b79 100644 --- a/docs/ARCHITECTURE.ru.md +++ b/docs/ARCHITECTURE.ru.md @@ -118,7 +118,7 @@ slip = ω_a - r ω_b ## Что ещё открыто -Сжимаемый газообмен, предписанное предварительно смешанное сгорание, сцепления, шестерни, гидротрансформатор с картой и гидравлический привод теперь существуют как компоненты с портами, состоянием и проверками сохранения. Силовой агрегат они не заканчивают. Всё ещё открыто: насос и заправка рейки, управление зажиганием, подробные впуск и выпуск, механические потери, более богатая термохимия, податливость зацепления, полное управление давлением и переключением AT, согласованное поведение ECU/TCU и измеренная калибровка. Новому уравнению всё ещё нужны явная версия модели, размерности и численные свидетельства. Семантику существующих компонентов не расширяют, тихо её меняя. +Сжимаемый газообмен, предписанное предварительно смешанное сгорание, сцепления, шестерни, гидротрансформатор с картой и гидравлический привод теперь существуют как компоненты с портами, состоянием и проверками сохранения. Силовой агрегат они не заканчивают. Всё ещё открыто: измеренные наполнение и регулирование насоса, управление зажиганием, подробные впуск и выпуск, механические потери, более богатая термохимия, податливость зацепления, полное управление давлением и переключением AT, согласованное поведение ECU/TCU и измеренная калибровка. Новому уравнению всё ещё нужны явная версия модели, размерности и численные свидетельства. Семантику существующих компонентов не расширяют, тихо её меняя. Агент может породить топологию и начальное состояние, предложить гипотезы параметров, написать кандидатов компонентов, собрать эксперименты и прочитать свидетельства обратно. Ядро исполнения по-прежнему владеет численными ограничениями и проверками. Суждение языковой модели — не физический факт. Редактирование графа в Unity, рабочий поток симуляции и заменяемый высокопроизводительный сервер решателя ждут, пока граница не станет устойчивой. Здесь не заявляется общий нелинейный решатель, Burst или решатель на GPU. @@ -245,3 +245,127 @@ CLI и MCP делят семантику газового документа, а ## Общая компоновка гидравлического привода [Компоновка привода AT](AT_HYDRAULIC_ACTUATION.ru.md) понижает 1..6 объявленных целей сцепления в фактические поршневые и контактные сцепления, сужения заполнения и слива и возвратные пружины, которые питает общий реверсивный насос, с утечками, сопротивлением и предохранительным клапаном. Явные передняя и задняя площади сохраняют вытесненный запас и работу опорного давления. Неизменяемые обычные определения сохраняют существующее совместное решение давления, движения и трения, переносимую семантику v24 и полное атомарное состояние. Предписанные расписания клапанов остаются отдельными от обратной связи и управления AT и от измеренной приёмки гидроблока. + +## Обратная связь гидравлической AT + +`at_controller` принимает целочисленную передачу в [-1,4]; ноль означает нейтраль. Он управляет пятью парами клапанов наполнения/слива и необязательной блокировкой гидротрансформатора. Порядок: вход водила, малого солнца, большого солнца, тормоз водила, тормоз большого солнца, затем блокировка. + +Примеры `controlled-hydraulic-ravigneaux` и `controlled-fired-hydraulic-ravigneaux` используют канал 900 и ID 1400. Они сохраняют 99 и 122 отслеживаемых состояния при неизменном пределе 128. Формат v41 хранит маршруты, усиления и часы и читает v1-v40. + +Это исследовательское управление, параметры остаются `unverified`. Координация момента ECU, подробные датчики/клапаны, полный набор неисправностей автомобиля и калибровка OEM ещё не завершены. Проверки managed и Standard не подтверждают реальные Unity Editor/Play/Player/IL2CPP. + +[AT_CONTROL.ru.md](AT_CONTROL.ru.md) + +## Жидкая топливная рампа с насосной подачей + +`liquid_rail_feed` связывает жидкий инжектор с существующим объёмным насосом и явной материальной/тепловой границей. Выходной гидравлический узел должен совпадать с податливостью и начальным абсолютным давлением рампы. Насос и инжектор владеют этим узлом; другие неучтённые жидкостные пути отклоняются. + +Формат v41 хранит связи подачи и температуру источника и читает v1-v40. Аналитический обмен вал/давление, независимое совместное уточнение ODE, смешение тепла, балансы массы/топлива/энергии/объёма, обратный поток и полный rollback проверяются отдельно. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[PUMP_FED_FUEL.ru.md](PUMP_FED_FUEL.ru.md) + +## Конечный бак жидкого топлива + +`liquid_fuel_tank` хранит конечную массу жидкости и тепловую энергию с плотностью, тепловым отсчётом плёнки и теплотой сгорания связанного инжектора. Подача выбирает его через `tank_component`, исключая `supply_temperature`. Каждый бак принадлежит одной совместимой подаче. + +Тепловая и химическая энергия бака входят в полное хранилище. Внутренний перенос не добавляет внешней массы или химической энергии. Заданное входное давление насоса сохраняет границу работы давления. Впуск/выпуск газа всё ещё может переносить химическую энергию. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[LIQUID_FUEL_TANK.ru.md](LIQUID_FUEL_TANK.ru.md) + +## Отслеживаемый возврат через сброс топлива + +`liquid_rail_return` связывает подачу с исключительно принадлежащим ей однонаправленным `hydraulic_relief`. Клапан соединяет рампу с тем же заданным входным давлением насоса. Все жидкостные пути регистрируются; несовместимые порты, повторное владение и неучтённые пути отклоняются. + +`fluid_heat_fraction` явно выбирает долю [0,1] потерь, переносимую обратным топливом. Остальное тепло следует объявленному пути. Совместное смешение рампы/бака сохраняет массу, химию, работу давления и тепло. Возврат внешнему источнику выводит массу и энергию через границу. + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## Геометрия бака и конечное газовое пространство + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +Совместный решатель обменивает работу давления между валом, рампой и газом без внешнего источника давления. Газовые отверстия и тепловые связи задают явную вентиляцию/теплообмен. Читать `pressure`, `fill_fraction`, знаковую накопленную `hydraulic_work` и массу, энергию, объём газа. Доза, жидкость, испарение и горение разделены. + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Фазовое равновесие топлива и границы жидкой подачи + +Модель использует идеальный псевдокомпонент, общую газовую постоянную приёмника, постоянные теплоёмкости и пренебрежимо малое вытеснение жидкости. Равенство химических потенциалов даёт приведённое ниже насыщение. При фиксированном объёме общее топливо и внутренняя энергия определяют температуру и массу пара. Химический запас переносится внутри; реакция расходует только пар. + +Ограниченный скалярный решатель использует монотонную равновесную энергию. Тепло стенки вычисляется неявным Эйлером. Для переноса и работы движущегося цилиндра показана сходимость первого порядка. Сосуществование жидкости ограничено заданными температурами. После полного испарения внутри интервала газ может перегреваться без экстраполяции кривой насыщения. + +`mass_flow` — знаковый нетто-перенос за полный физический шаг. `evaporated_fuel_mass` и `condensed_fuel_mass` накапливают положительную и отрицательную массы без двойного счёта компенсирующих проекций. `vapor_partial_pressure` показывает парциальное давление топлива. Тепловой, массовый и химический балансы включают обе фазы. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Равновесие топлива в баке конечного объёма + +Жёсткий сосуд содержит несжимаемую жидкость и идеальный газ псевдокомпонента с носителем. Объём жидкости меняет объём газа. Химический потенциал жидкости содержит `p/rho`, поэтому опорная кривая приёмника `p_0(T)` получает поправку давления. `reference_pressure` сохраняет этот смысл, а не превращается молча в действительное насыщение чистой среды конечной плотности. + +Ограниченный flash при постоянных U,V сохраняет топливо и тепловую энергию. Явные газовые отверстия переносят пар, носитель и химическую энергию; тепловые связи работают с конечными узлами. Насос/возврат обменивают с газом работу вытеснения, затем равновесие перераспределяет внутреннюю энергию. `hydraulic_work` учитывает работу насоса, исключая внутреннюю работу фазового перехода. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) + +## Эталон податливого объёма топлива + +`CompliantFuelVolume` задаёт определяющее замыкание сети равновесного топлива. По полной массе и температуре или энергии оно разрешает жидкость, пар и сосуществование с упругим накоплением. Насосный путь форсунки пока требует расширения сопряжения. [Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + +[Эталон податливого объёма топлива](COMPLIANT_FUEL_VOLUME.ru.md) + +## Сеть переноса равновесного топлива + +Домен `fuel` переносит чистую жидкость и пар вместе в конечных упругих сосудах. Каждый сосуд независимо хранит полную массу и калорическую плюс упругую энергию; фазовый flash определяет температуру, давление и доли пара. `fuel_restriction` обменивает однородную среду донора, `fuel_heat_link` обменивается теплом с конечным тепловым узлом. Химическая энергия теплоты сгорания учитывается отдельно. + +[Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + +## Фазоразрешающий топливный насос с приводом от вала + +`fuel_chamber` связывает фактический вал с конечной камерой топлива. Входной и выходной `fuel_check_valve` обеспечивают наполнение и подачу по перепаду давления. Жидкость, пар и упругая энергия используют одно замыкание. При недостаточном притоке камера может испарять топливо на всасывании; подача следует рассчитанным массе и давлению. + +[Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. [Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) + +## Топливные камеры сжимаемой среды с приводом от вала + +Закрытый шаг работы сохраняет массу и энтропию. Холодное сжатие и тепловая энергия используют потенциал канала. Для жидкости применяется точный интеграл давления, для идеального пара — аналитическая адиабата. При фазовом переходе обращается энтропия и проверяется конечная энергия. Принятая разность энергии задаёт дискретный момент в общем механическом решении. Положительный `hydraulic_work` означает передачу энергии от вала среде. + +Подвижный резервуар использует половину переноса, полную работу вала и вторую половину переноса. Перенос остаётся первого порядка с численной диффузией; симметричное расщепление не повышает порядок. Гладкое движение замкнутой жидкости имеет второй порядок. Приращение угла ограничено 0.25 rad за механический интервал. Сохраняются CFL, материальные границы, полный откат, отмена и независимые ветви. Стационарный импульс портов/корпуса отделён от работы давления поршня. + +[Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) + +## Сжимаемые топливные сопла с замороженным составом + +Фазы разделяют давление, температуру и скорость; межфазный массоперенос подавлен. Энтропия и холодное сжатие задают изоэнтропный перепад энтальпии. Единственный максимум потока использует замороженную скорость звука, отличную от равновесной. Коэффициент масштабирует площадь. При запирании выходная энергия относится к идеальной струе, полностью расширенной до давления приёмника. Энтальпия торможения однократно покрывает энергию приёмника и тепло стенки. Импульс относится к стационарной термализации, а не полной тяге корпуса или осевой силе иглы. + +Консервативные подшаги первого порядка переносят одинаковую массу и энтальпию; кинетическая энергия делится между средой и стенкой. Проверяются состояния и полная энтропия пары. Пределы: 4096 подшагов, 64 деления пополам на кандидат, начальный перенос не больше 0.1 меньшей массы. Закрытие допускает 128 epsilon binary64, умноженных на наибольший модуль упругости или давление; выдаваемые давления не обрезаются. Ошибка откатывает весь пакет. Уменьшите шаг и проверьте запасы, границы, ход иглы и площадь. + +[Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) + +## Равновесное прохождение топлива через сопло + +Положительный квадрат равновесной скорости звука даёт рост плотности с давлением при фиксированной энтропии. Перепад энтальпии уменьшается. Монотонные множители ограничивают поток на каждом интервале, включая фазовые границы и несколько экстремумов. Метод ветвей и границ возвращает выборочную нижнюю и оставшуюся верхнюю границы с относительной шириной не более 1e-4. Пределы: 512 интервалов в стеке и 8192 разбиения. Калорические разности, поправки округления и монотонные интегральные границы используют до 256 панелей Римана и 80 итераций. Неразрешённый случай отклоняет пакет. Гладкий внутренний максимум звуковой; фазовая граница может быть негладкой. + +Консервативные подшаги первого порядка переносят одинаковую массу и энтальпию; кинетическая энергия делится между средой и стенкой. Проверяются состояния и полная энтропия пары. Пределы: 4096 подшагов, 64 деления пополам на кандидат, начальный перенос не больше 0.1 меньшей массы. Закрытие допускает 128 epsilon binary64, умноженных на наибольший модуль упругости или давление; выдаваемые давления не обрезаются. Ошибка откатывает весь пакет. Уменьшите шаг и проверьте запасы, границы, ход иглы и площадь. + +[Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) + +## Фазовая релаксация топлива с конечной скоростью + +Замыкание сохраняет холодный потенциал сжимаемой жидкости и идеальный пар равновесной модели. Начальная доля задаётся явно и не проецируется на равновесие. При постоянных массе, объёме и внутренней энергии доля экспоненциально стремится к равновесной с постоянным `phase_relaxation_time_ns`. Скрытая теплота остаётся внутри энергобаланса. Химическое сродство равно разности потенциалов жидкости и пара; его произведение на фазовый перенос, делённое на температуру, даёт неотрицательное производство энтропии. Это исследовательский закон, а не измеренная корреляция зародышеобразования. + +Консервативные потоки Русанова переносят четыре поля. Каждый глобальный интервал CFL включает половину локального источника, перенос и вторую половину источника. Общий резервуар получает каждый источник один раз независимо от числа каналов. Источник точен для изолированного состояния постоянного объёма; связанный перенос остаётся первого порядка. CFL использует верхнюю границу замороженной скорости звука. Энтропия фазового перехода и канала проверяется раздельно. Выход за границы откатывает весь пакет. + +[Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) + +## Релаксационные топливные насосы и дозирование с замороженной фазой + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. + +Энтропийное соотношение при фиксированной доле задаёт давление и температуру после изменения объёма. Работа включает холодную энергию сжатия жидкости и устойчивые приращения для малых перемещений. Та же дискретная работа определяет момент вала. Каждый глобальный интервал однократно применяет источник каждого узла вокруг консервативного переноса по каналу и замороженному соплу. Интервалы ограничены CFL и долей 0.02 меньшего запаса на портах; допускается не более 4096. Работа и источник разделены. Связанный перенос остаётся первого порядка и требует временного сгущения. + +[Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) diff --git a/docs/ARCHITECTURE.zh-CN.md b/docs/ARCHITECTURE.zh-CN.md index 5ecb909..231d964 100644 --- a/docs/ARCHITECTURE.zh-CN.md +++ b/docs/ARCHITECTURE.zh-CN.md @@ -117,7 +117,7 @@ MCP 会话位于本地服务器进程中。上限是 16。服务器退出时释 ## 仍未完成的部分 -可压缩换气、预设预混燃烧、离合器、齿轮、映射式变矩器与液压驱动现在作为带端口、状态与守恒检查的元件存在。它们并不完成动力总成。仍未完成:油轨泵送与加注、点火控制、详细进气与排气、机械损失、更丰富的热化学、啮合柔性、完整 AT 压力与换挡控制、协调的 ECU/TCU 行为,以及实测标定。新方程仍需要显式模型版本、量纲与数值证据。现有元件语义不会通过悄悄修改来扩展。 +可压缩换气、预设预混燃烧、离合器、齿轮、映射式变矩器与液压驱动现在作为带端口、状态与守恒检查的元件存在。它们并不完成动力总成。仍未完成:实测泵充填与调压、点火控制、详细进气与排气、机械损失、更丰富的热化学、啮合柔性、完整 AT 压力与换挡控制、协调的 ECU/TCU 行为,以及实测标定。新方程仍需要显式模型版本、量纲与数值证据。现有元件语义不会通过悄悄修改来扩展。 智能体可以生成拓扑与初始状态、提出参数假设、编写元件候选、构建实验并读回证据。执行核心仍拥有数值约束与检查。语言模型的判断不是物理事实。Unity 图编辑、仿真工作线程与可替换的高性能求解器后端要等到边界稳定。这里并不声称有通用非线性求解器、Burst 或 GPU 求解器。 @@ -244,3 +244,127 @@ CLI 与 MCP 共享气体文档、资产与实验语义。工作室读取同一 ## 共享液压驱动总成 [AT 驱动总成](AT_HYDRAULIC_ACTUATION.zh-CN.md) 把 1..6 个声明的离合器目标降为真实的活塞/接触离合器、充/放节流与回位弹簧,由共享的可逆泵、泄漏/黏性阻力与泄压供能。显式的前/后面积保留扫过存量与参考压力功。不可变普通定义保留现有的联合压力/运动/摩擦求解、可移植 v24 语义与完整原子状态。预设阀门排程与 AT 反馈/控制以及实测阀体验收保持分开。 + +## 液压 AT 反馈控制 + +`at_controller` 接受 [-1,4] 范围内的整数目标挡位;零表示空挡。它管理五组充油/泄压阀以及可选的变矩器锁止支路。支路顺序为行星架输入、小太阳轮输入、大太阳轮输入、行星架制动、大太阳轮制动,最后是锁止。 + +示例 `controlled-hydraulic-ravigneaux` 和 `controlled-fired-hydraulic-ravigneaux` 使用请求通道 900、控制器 ID 1400。两者分别保留 99 和 122 个报告状态,未改变 128 状态上限。资产 v41 保留支路、增益和时钟,并可读取 v1-v40。 + +这是研究控制,参数仍为 `unverified`。协调 ECU 扭矩融合、详细传感器/阀模型、完整车辆故障及 OEM 标定仍待完成。托管和 Standard 检查不能证明实际 Unity Editor/Play/Player/IL2CPP 验收。 + +[AT_CONTROL.zh-CN.md](AT_CONTROL.zh-CN.md) + +## 泵送液体燃油轨 + +`liquid_rail_feed` 将液体喷射器与现有排量泵及显式质量/热边界配对。液压出口节点必须与燃轨的顺应性和初始绝对压力一致。配对泵和喷射器管理该压力节点;其他未计入的流体路径会被拒绝。 + +资产 v41 保留补给连接和源温度,并读取 v1-v40。泵轴/压力解析交换、独立联立 ODE 细化、热混合、质量/燃料/能量/体积账本、反向回输与完整回滚各有独立检查。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[PUMP_FED_FUEL.zh-CN.md](PUMP_FED_FUEL.zh-CN.md) + +## 有限液体燃油箱 + +`liquid_fuel_tank` 使用配对喷射器的密度、油膜热参考和热值,存储有限液体质量及热能。补给通过 `tank_component` 选择它,并省略 `supply_temperature`。每个油箱属于一个燃料属性相同的补给。 + +油箱热能和化学能进入完整储能账本。油箱到燃轨的传递不增加外部质量或化学供给。显式设定的泵入口压力保留其压力功边界。气体进气/排气仍可携带化学边界能量。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[LIQUID_FUEL_TANK.zh-CN.md](LIQUID_FUEL_TANK.zh-CN.md) + +## 可追踪的燃油泄压回流 + +`liquid_rail_return` 将补给与独占的单向 `hydraulic_relief` 配对。阀连接燃轨与泵相同的设定入口压力。每条流体路径都须登记;不兼容端口、重复阀所有权和未追踪路径会被拒绝。 + +`fluid_heat_fraction` 显式选择阀损失中随回流燃油携带的比例,范围为 [0,1]。剩余热量沿阀声明的热路径传递。燃轨/油箱联立热混合保持完整质量、化学、压力功和热账本。外部源模式则由回流跨边界带出质量与能量。 + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 油箱几何与有限气相空间 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +耦合求解在轴、燃轨和气体之间交换压力功,不引入外部压力源。气体孔口和热连接提供显式通气及传热路径。读取油箱 `pressure`、`fill_fraction`、带符号累计 `hydraulic_work`,以及气相的质量、能量和体积。请求剂量、液体供给、蒸发和燃烧保持独立。 + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 燃油相平衡与液体供给边界 + +模型采用一种理想拟组分、接收端共用气体常数和常比热,并忽略液体位移体积。由两相化学势相等得到下述饱和关系。在固定体积下,总燃料量与内能确定共同温度及蒸气质量。蒸发和冷凝在内部转移化学能库存,反应仍只消耗蒸气。 + +有界标量求解利用单调的平衡能量关系。有限壁面传热采用后向欧拉。与输运、运动气缸功耦合的一阶细化检查通过。液体共存状态保持在声明的温度区间内;在区间内完全蒸发后,干燥气体可以继续过热,饱和曲线不作外推。 + +`mass_flow` 是完整物理时间步的带符号净相变流量。`evaporated_fuel_mass` 与 `condensed_fuel_mass` 分别累计正、负净相变量,避免重复计算分步求解中互相抵消的调整。`vapor_partial_pressure` 给出接收端燃料分压。热能、质量和化学能账本包含两相。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 有限体积油箱相平衡 + +刚性容器包含不可压缩液体、理想拟组分及载气。液体体积改变气体体积。液体化学势包含 `p/rho`,因此接收端的可忽略位移饱和参考 `p_0(T)` 带有压力修正。`reference_pressure` 保留原有物性参考含义,不会被静默解释成有限密度纯流体的实际饱和压力。 + +有界的定内能、定体积闪蒸保持总燃料与热能守恒。显式气体孔口传递蒸气、载气与化学能;气体热连接与有限热节点交换热量。泵/回流求解与气体交换位移功,再由相平衡重新分配内能。`hydraulic_work` 记录泵位移功,不包含内部相变功。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) + +## 柔性燃料容积参考模型 + +`CompliantFuelVolume` 为相平衡燃料网络提供本构闭合关系,根据总质量与温度或储能求解液态、蒸气及带弹性储能的共存。泵供油喷油器路径仍待扩展耦合。 [相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + +[柔性燃料容积参考模型](COMPLIANT_FUEL_VOLUME.zh-CN.md) + +## 相平衡燃料输运网络 + +`fuel` 域在有限弹性容器中共同输送纯燃料液体与蒸气。每个容器独立保存总质量及热量加弹性储能,相平衡闪蒸据此确定温度、压力和蒸气比例。`fuel_restriction` 交换均匀混合的供体流体,`fuel_heat_link` 与有限热节点换热。燃料热值对应的化学能使用独立账本。 + +[相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + +## 轴驱动相变燃料泵 + +`fuel_chamber` 将实际转轴与有限燃料域腔体耦合。进出口 `fuel_check_valve` 通过压差完成充填与排出。液体、蒸气和弹性壁储能使用同一物性闭合关系。入口供给不足时,腔体可在吸入期间闪蒸;交付燃料由实际库存和压力决定。 + +[轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 [冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) + +## 轴驱动可压缩燃料腔室 + +闭腔做功步骤保持质量与熵不变。液体冷压缩能和热内能使用与管路一致的平衡势函数。纯液体运动使用精确压力积分,理想蒸气使用解析绝热线;相变运动反演熵并检查最终能量状态。接受的能量差在联合机械求解中产生离散压力转矩。`hydraulic_work` 为正表示轴向流体输入能量。 + +可变容积储腔依次使用半步管路输运、整步轴功、半步输运。输运仍具有一阶数值扩散,对称分裂不会提高其阶数。光滑的纯液体闭腔轴运动呈二阶收敛。每个机械区间的角增量限制为 0.25 rad。管路 CFL、材料边界、完整回滚、取消与独立分支仍适用。静止端口/壳体冲量与活塞压力功分别核算。 + +[轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) + +## 冻结相态可压缩燃料喷嘴 + +冻结两相共享压力、温度和速度,相间质量转移受到抑制。熵关系与液体冷压缩能共同确定等熵焓降。质量通量存在唯一最大值,其条件使用冻结声速,区别于平衡声速。流量系数缩放有效面积。阻塞时,出口能量描述理想喷流完全膨胀到接收腔压力的状态。供给端滞止焓一次性支付接收腔能量和显式壁面喷流热。喷流冲量只表示静止热化过程,不代表完整壳体推力或针阀轴向力。 + +守恒的一阶子步在储腔之间转移相同的质量和焓,并在接收流体与壁面之间分配喷流动能。接受子步前检查两端材料状态与总熵变。每个区间最多 4096 个子步,每个候选最多减半 64 次;初始转移量上限是较小储腔质量的 0.1 倍。闭阀压差允许 128 倍 binary64 epsilon 乘以最大体积模量或端口压力的舍入量,报告压力不作钳制。失败区间会回滚整个批次。应减小时间步并检查库存、材料边界、针阀行程及阀口面积。 + +[冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) + +## 平衡燃料喷嘴输运 + +平衡声速平方为正,使密度沿等熵线随压力增加;焓降则随压力增加而减小。利用这两个单调因子,可对各压力区间的通量给出上界,覆盖相边界和多个极值。分支定界返回采样流量下界及剩余上界,相对宽度不超过 1e-4。最多使用 512 个栈上区间和 8192 次分裂。热力学端点差使用舍入裕量和单调压力积分界,最多细化 256 个 Riemann 区间及 80 次闭合迭代。无法满足包络时拒绝整个批次。光滑内部极值满足声速条件,相边界极值则可能不光滑。 + +守恒的一阶子步在储腔之间转移相同的质量和焓,并在接收流体与壁面之间分配喷流动能。接受子步前检查两端材料状态与总熵变。每个区间最多 4096 个子步,每个候选最多减半 64 次;初始转移量上限是较小储腔质量的 0.1 倍。闭阀压差允许 128 倍 binary64 epsilon 乘以最大体积模量或端口压力的舍入量,报告压力不作钳制。失败区间会回滚整个批次。应减小时间步并检查库存、材料边界、针阀行程及阀口面积。 + +[平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) + +## 有限速率燃料相变弛豫 + +闭合关系沿用平衡燃料模型的可压缩液体冷势能与理想蒸气。初始质量分数必须显式给出,不会被投影到平衡态。在质量、体积和内能固定时,质量分数按恒定的 `phase_relaxation_time_ns` 指数趋近平衡目标;潜热保留在内部能量平衡中。化学亲和势为液相减蒸气相化学势,其与相变速率的乘积除以温度给出非负熵产生。这是研究弛豫定律,不是实测成核关联式。 + +守恒 Rusanov 通量输运四个场。每个全局 CFL 区间依次执行半步局部相变、输运和半步相变;共享储腔每次只接受一次源项,与连接管道数无关。孤立定容状态的源项轨迹为精确解,耦合方法仍具有一阶输运误差。CFL 使用冻结质量分数声速上界,局部相变与管道熵变分别检查;越界状态会回滚整个批次。 + +[有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) + +## 相变弛豫燃料泵与冻结相态计量 + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 + +固定质量分数的熵关系确定体积变化后的压力与温度。做功包括液体冷压缩能,小位移采用稳定的增量函数计算,同一离散功用于轴转矩。每个全局区间在守恒管道及冻结喷嘴输运前后,对各节点仅施加一次相变源项。区间受管道 CFL 和喷嘴两端较小库存的 0.02 比例限制,最多允许 4096 个区间。机械做功与源项演化分开;耦合输运仍为一阶,需要时间细化检查。 + +[相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) diff --git a/docs/ASSET_FORMAT.de.md b/docs/ASSET_FORMAT.de.md index 9eb4523..a570b6f 100644 --- a/docs/ASSET_FORMAT.de.md +++ b/docs/ASSET_FORMAT.de.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Dekodieren, neu kompilieren, Fingerabdruck prüfen] ``` -## Aktuelle Version 24 und erhaltene Leser +## Aktuelle Version 41 + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) + +## Beibehaltene Version 40 + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) + +## Beibehaltene Version 39 + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) + + +## Beibehaltene Version 38 + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) + + +## Beibehaltene Version 37 + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) + + +## Beibehaltene Version 36 + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) + + +## Beibehaltene Version 35 + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Impuls einer endlichen Flüssigkraftstoffleitung](FUEL_INERTIAL_PIPE.de.md) + + +## Beibehaltene Version 34 + +Ein `fuel_discharge` verbindet eine endliche Kraftstoffquelle mit dem Gasknoten eines `finite_fuel_film`. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Düsendurchgang konstant, beide Endvolumina stellen sich erneut ins Gleichgewicht. Die homogenen Phasen teilen Temperatur und Geschwindigkeit; Flüssigkeit ist inkompressibel, Dampf eine ideale Pseudospezies. Stoffdaten und Flüssigkeitsdichte müssen übereinstimmen. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) + + +## Beibehaltene Version 33 + +`fuel_chamber` koppelt eine tatsächliche Welle an eine endliche Kraftstoffkammer. Einlass- und Auslass-`fuel_check_valve` liefern druckgetrieben Füllung und Förderung. Flüssigkeit, Dampf und elastische Wandenergie teilen einen Abschluss. Bei Einlassmangel kann die Kammer beim Ansaugen verdampfen; Förderung folgt berechnetem Bestand und Druck. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + + +## Beibehaltene Version 32 + +Die Domäne `fuel` transportiert reine Flüssigkeit und Dampf gemeinsam in endlichen elastischen Behältern. Jeder Behälter hält Gesamtmasse und kalorische plus elastische Energie unabhängig; der Phasenflash bestimmt Temperatur, Druck und Dampfanteile. `fuel_restriction` tauscht homogenes Spenderfluid aus, `fuel_heat_link` tauscht Wärme mit einem endlichen thermischen Knoten. Chemische Heizwertenergie bleibt separat bilanziert. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + + +## Beibehaltene Version 31 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) + +## Beibehaltene Version 30 + +Optionales `fuel_film.parameters.phase_equilibrium` deklariert `reference_pressure` in `pa` oder `bar` und `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` ist die Referenztemperatur; `latent_internal_energy` die Dampf-minus-Flüssigkeits-Innenenergie dort. Jeder Gleichgewichtsempfänger besitzt einen Film. Der erklärte Anfangssnapshot bleibt erhalten; akzeptierte Intervalle gleichen Gas und Flüssigkeit mit endlicher Wandwärme aus. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Beibehaltene Version 29 + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +`vented-tank-liquid-cylinder` und `vented-tank-needle-cylinder` nutzen Tank 1513, Gas 1520 und Entlüftungseingang 960. Asset v29 speichert Geometrie und liest v1-v28. Analytische Arbeit/Ableitungen, unabhängige ODE-Konvergenz, Bilanzen, portable/MCP-Replay, Rollback und allokationsfreie Schritte bestehen. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Beibehaltene Version 28 + +`recirculating-liquid-cylinder` und `recirculating-needle-cylinder` behalten endlichen Kraftstoff, tatsächliche Einspritzung, Verdampfung und optionale Nadeldynamik. v28 speichert Verknüpfung/Wärmeanteil und liest v1-v27. Jeder Rücklauf fügt 8 Zustände innerhalb gleicher Grenzen hinzu. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## Beibehaltene Version 27 + +v27 speichert Tank und Speisewahl und liest v1-v26. Jeder Tank fügt 4 Zustände innerhalb gleicher Grenzen hinzu. Unabhängiger Nass-Austausch, analytischer Leerdruck/Wellenenergie, Rückmischung, vollständige Bilanzen, rollback, Zweige und allokationsfreie Schritte sind geprüft. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.de.md](LIQUID_FUEL_TANK.de.md) + +## Beibehaltene Version 26 + +Der Encoder schreibt `power.asset.v26` und liest v1-v26. Es gibt 38 int32-Zähler (152 bytes); der Header umfasst 230 + UTF-8-Namenslänge bytes. Typ 39 ist `liquid_rail_feed`, Fingerprint-Tag 30. Ein 24-bytes-Datensatz speichert Index, Injektor-/Pumpen-IDs und Quellentemperatur. Typen und exklusiver Besitz werden geprüft; ein neu signiertes v25-Downgrade weist den neuen Typ zurück. + +## Beibehaltene Version 25 + +Der Encoder schreibt `power.asset.v25` und liest v1-v25. Die Tabelle enthält 37 int32-Werte (148 bytes); der Header umfasst 226 + UTF-8-Namenslänge bytes. Typ 38 ist `at_controller`, mit Fingerprint-Tag 29. Jeder Datensatz hat 208 feste bytes plus 12 bytes je Route. Die Routenzahl ist 5 oder 6; die begrenzte Summe wird getrennt angegeben. Typen, Uhren, Einheiten, Eigentümer und Topologie werden geprüft. Ein neu signiertes v24-Downgrade weist den neuen Typ zurück. + +## Beibehaltene Version 24 Der Encoder schreibt `power.asset.v24`; die Versionen 1 bis 24 bleiben lesbar. Zähltabelle und Datensatzgrößen bleiben die von v23. Kind 37 ist `carrier_gear`: diff --git a/docs/ASSET_FORMAT.es.md b/docs/ASSET_FORMAT.es.md index d9d69f5..62ad087 100644 --- a/docs/ASSET_FORMAT.es.md +++ b/docs/ASSET_FORMAT.es.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Decodificar, recompilar, comprobar la huella] ``` -## Versión actual 24 y lectores conservados +## Versión actual 41 + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) + +## Versión conservada 40 + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) + +## Versión conservada 39 + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) + + +## Versión conservada 38 + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) + + +## Versión conservada 37 + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) + + +## Versión conservada 36 + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) + + +## Versión conservada 35 + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Cantidad de movimiento en una línea finita de combustible líquido](FUEL_INERTIAL_PIPE.es.md) + + +## Versión conservada 34 + +Un `fuel_discharge` conecta una fuente finita del dominio de combustible al nodo gaseoso de un `finite_fuel_film`. Declare `phase_mode` como `frozen`: la fracción másica de vapor queda fija durante el paso por la tobera y ambos volúmenes vuelven al equilibrio. Las fases homogéneas comparten temperatura y velocidad; el líquido es incompresible y el vapor una pseudoespecie ideal. Propiedades y densidad deben coincidir. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) + + +## Versión conservada 33 + +`fuel_chamber` acopla un eje real a una cámara finita de combustible. `fuel_check_valve` de entrada y salida permiten llenado y entrega por presión. Líquido, vapor y energía elástica comparten cierre. Con entrada insuficiente la cámara puede vaporizar en aspiración; la entrega sigue inventario y presión calculados. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + + +## Versión conservada 32 + +El dominio `fuel` transporta líquido puro y vapor juntos en recipientes elásticos finitos. Cada recipiente mantiene masa total y energía calórica más elástica independientes; el flash determina temperatura, presión y fracciones de vapor. `fuel_restriction` intercambia fluido donante homogéneo y `fuel_heat_link` intercambia calor con un nodo térmico finito. La energía química del poder calorífico mantiene un balance separado. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + + +## Versión conservada 31 + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) + +## Versión conservada 30 + +La opción `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` en `pa` o `bar`, y `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` es la temperatura de referencia; `latent_internal_energy` es la diferencia de energía interna vapor-líquido allí. Cada receptor en equilibrio tiene una película. La instantánea inicial se conserva; los intervalos aceptados equilibran gas y líquido e intercambian calor con la pared finita. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Versión conservada 29 + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +`vented-tank-liquid-cylinder` y `vented-tank-needle-cylinder` usan tanque 1513, gas 1520 y entrada de venteo 960. Asset v29 guarda geometría y lee v1-v28. Pasan trabajo/derivadas analíticos, convergencia ODE independiente, balances, replay portable/MCP, rollback y pasos sin asignación. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Versión conservada 28 + +`recirculating-liquid-cylinder` y `recirculating-needle-cylinder` conservan combustible finito, inyección real, evaporación y aguja opcional. v28 guarda enlaces/fracción y lee v1-v27. Cada retorno añade 8 estados en los mismos límites. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## Versión 27 conservada + +v27 conserva tanque y selección y lee v1-v26. Cada tanque añade 4 estados dentro de las mismas cotas. Se verifican intercambio húmedo independiente, presión/energía de eje agotadas analíticas, mezcla de retorno, balances completos, rollback, ramas y pasos sin asignación. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.es.md](LIQUID_FUEL_TANK.es.md) + +## Versión 26 conservada + +El codificador escribe `power.asset.v26` y lee v1-v26. Hay 38 cuentas int32 (152 bytes); la cabecera ocupa 230 + longitud del nombre UTF-8 bytes. El tipo 39 es `liquid_rail_feed`, etiqueta de huella 30. Un registro de 24 bytes guarda índice, IDs inyector/bomba y temperatura fuente. Se comprueban tipos y propiedad exclusiva; una reducción v25 firmada de nuevo rechaza el tipo nuevo. + +## Versión 25 conservada + +El codificador escribe `power.asset.v25` y lee v1-v25. La tabla contiene 37 valores int32 (148 bytes); la cabecera ocupa 226 + longitud del nombre UTF-8 bytes. El tipo 38 es `at_controller`, con etiqueta de huella 29. Cada registro tiene 208 bytes fijos más 12 bytes por ruta. Las rutas son 5 o 6; el total limitado se declara por separado. Se comprueban tipos, relojes, unidades, propiedad y topología. Una reducción a v24 con digest firmado de nuevo rechaza el tipo nuevo. + +## Versión 24 conservada El codificador escribe `power.asset.v24`; las versiones 1 a 24 siguen siendo legibles. La tabla de recuentos y los tamaños de registro siguen siendo los de v23. El tipo 37 es `carrier_gear`: diff --git a/docs/ASSET_FORMAT.fr.md b/docs/ASSET_FORMAT.fr.md index 60fa3b7..0944f95 100644 --- a/docs/ASSET_FORMAT.fr.md +++ b/docs/ASSET_FORMAT.fr.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Décoder, recompiler, vérifier l'empreinte] ``` -## Version courante 24 et lecteurs conservés +## Version actuelle 41 + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) + +## Version conservée 40 + +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) + +## Version conservée 39 + +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) + + +## Version conservée 38 + +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) + + +## Version conservée 37 + +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) + + +## Version conservée 36 + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) + + +## Version conservée 35 + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Quantité de mouvement d'une ligne finie de carburant liquide](FUEL_INERTIAL_PIPE.fr.md) + + +## Version conservée 34 + +Un `fuel_discharge` relie une source finie du domaine carburant au nœud gazeux d'un `finite_fuel_film`. Déclarer `phase_mode` à `frozen` : le titre massique vapeur reste figé dans la tuyère, tandis que les deux volumes retrouvent leur équilibre. Les phases homogènes partagent température et vitesse ; le liquide est incompressible et la vapeur une pseudo-espèce idéale. Propriétés et masse volumique doivent correspondre. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) + + +## Version conservée 33 + +`fuel_chamber` couple un arbre réel à une chambre finie du domaine carburant. Des `fuel_check_valve` d'entrée et de sortie assurent remplissage et livraison par pression. Liquide, vapeur et énergie élastique partagent la même fermeture. Une chambre sous-alimentée peut vaporiser à l'aspiration ; la livraison suit l'inventaire et la pression calculés. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + + +## Version conservée 32 + +Le domaine `fuel` transporte ensemble liquide pur et vapeur dans des récipients élastiques finis. Chaque récipient conserve indépendamment masse totale et énergie calorique plus élastique ; le flash détermine température, pression et fractions de vapeur. `fuel_restriction` échange le fluide donneur homogène et `fuel_heat_link` échange avec un nœud thermique fini. L'énergie chimique du pouvoir calorifique garde son bilan séparé. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + + +## Version conservée 31 + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) + +## Version conservée 30 + +L'option `fuel_film.parameters.phase_equilibrium` déclare `reference_pressure` en `pa` ou `bar` et `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` est la température de référence ; `latent_internal_energy` est la différence d'énergie interne vapeur-liquide à cette température. Un film possède chaque récepteur en équilibre. L'état initial déclaré est conservé ; les intervalles acceptés équilibrent gaz et liquide avec échange thermique vers la paroi finie. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Version conservée 29 + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +Les exemples `vented-tank-liquid-cylinder` et `vented-tank-needle-cylinder` utilisent réservoir 1513, gaz 1520 et entrée de ventilation 960. Asset v29 conserve la géométrie et lit v1-v28. Travail/dérivées analytiques, convergence ODE indépendante, bilans, rejeu portable/MCP, retour arrière et avancement sans allocation passent. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Version conservée 28 + +`recirculating-liquid-cylinder` et `recirculating-needle-cylinder` gardent carburant fini, injection réelle, évaporation et aiguille facultative. v28 conserve liens et fraction et lit v1-v27. Chaque retour ajoute 8 états dans les mêmes bornes. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## Version 27 conservée + +v27 conserve les données et la sélection et lit v1-v26. Chaque réservoir ajoute 4 états dans les bornes inchangées. Échange humide indépendant, pression/énergie d'arbre après épuisement analytiques, mélange retour, bilans complets, rollback, branches et pas sans allocation sont vérifiés. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.fr.md](LIQUID_FUEL_TANK.fr.md) + +## Version 26 conservée + +L'encodeur écrit `power.asset.v26` et lit v1-v26. Il y a 38 comptes int32 (152 bytes) ; l'en-tête mesure 230 + longueur du nom UTF-8 bytes. Le type 39 est `liquid_rail_feed`, étiquette d'empreinte 30. Un enregistrement de 24 bytes contient index, IDs injecteur/pompe et température source. Types et propriété exclusive sont vérifiés ; un déclassement v25 resigné rejette le type nouveau. + +## Version 25 conservée + +L'encodeur écrit `power.asset.v25` et lit v1-v25. La table contient 37 valeurs int32 (148 bytes) ; l'en-tête mesure 226 + longueur du nom UTF-8 bytes. Le type 38 est `at_controller`, avec l'étiquette d'empreinte 29. Chaque enregistrement contient 208 bytes fixes plus 12 bytes par route. Le nombre de routes est 5 ou 6 ; le total borné est déclaré séparément. Types, horloges, unités, propriété et topologie sont vérifiés. Un déclassement v24 avec un nouveau digest rejette ce type. + +## Version 24 conservée L'encodeur écrit `power.asset.v24` ; les versions 1 à 24 restent lisibles. La table de comptes et les tailles d'enregistrement restent celles de v23. La sorte 37 est `carrier_gear` : son rapport de base est fini, signé et non nul ; son extension d'engrenage de 8 octets conserve l'index de composant et le porte-satellites mobile distinct. Les comptes typés couvrent chaque engrènement de porte-satellites. Une rétrogradation v23 rescellée par condensé rejette la nouvelle sorte. diff --git a/docs/ASSET_FORMAT.it.md b/docs/ASSET_FORMAT.it.md index 6cf1500..48dbd30 100644 --- a/docs/ASSET_FORMAT.it.md +++ b/docs/ASSET_FORMAT.it.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Decodifica, ricompila, controlla l'impronta] ``` -## Versione attuale 24 e lettori conservati +## Versione corrente 41 + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) + +## Versione conservata 40 + +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) + +## Versione conservata 39 + +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) + + +## Versione conservata 38 + +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) + + +## Versione conservata 37 + +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) + + +## Versione conservata 36 + +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) + + +## Versione conservata 35 + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Quantità di moto della linea finita di carburante liquido](FUEL_INERTIAL_PIPE.it.md) + + +## Versione conservata 34 + +Un `fuel_discharge` collega una sorgente finita del dominio carburante al nodo gas di un `finite_fuel_film`. Dichiarare `phase_mode` come `frozen`: il titolo massico del vapore resta fisso nell'ugello mentre i volumi alle estremità tornano in equilibrio. Le fasi omogenee condividono temperatura e velocità; liquido incomprimibile e vapore come pseudospecie ideale. Proprietà e densità devono coincidere. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) + + +## Versione conservata 33 + +`fuel_chamber` accoppia un albero reale a una camera carburante finita. `fuel_check_valve` di ingresso e uscita forniscono riempimento ed erogazione per pressione. Liquido, vapore ed energia elastica usano la stessa chiusura. Con ingresso insufficiente la camera può evaporare in aspirazione; l’erogazione segue inventario e pressione calcolati. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + + +## Versione conservata 32 + +Il dominio `fuel` trasporta insieme liquido puro e vapore in recipienti elastici finiti. Ogni recipiente conserva massa totale ed energia calorica più elastica indipendenti; il flash determina temperatura, pressione e frazioni di vapore. `fuel_restriction` scambia fluido donatore omogeneo, `fuel_heat_link` scambia calore con un nodo termico finito. L’energia chimica del potere calorifico resta separata. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + + +## Versione conservata 31 + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) + +## Versione conservata 30 + +L'opzione `fuel_film.parameters.phase_equilibrium` dichiara `reference_pressure` in `pa` o `bar` e `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` è la temperatura di riferimento; `latent_internal_energy` la differenza di energia interna vapore-liquido a tale temperatura. Ogni ricevitore in equilibrio ha un film. Lo snapshot iniziale resta dichiarato; gli intervalli accettati equilibrano gas e liquido con scambio verso la parete finita. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Versione conservata 29 + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usano serbatoio 1513, gas 1520 e ingresso sfiato 960. Asset v29 conserva geometria e legge v1-v28. Passano lavoro/derivate analitici, convergenza ODE indipendente, bilanci, replay portable/MCP, rollback e passi senza allocazioni. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Versione conservata 28 + +`recirculating-liquid-cylinder` e `recirculating-needle-cylinder` conservano combustibile finito, iniezione reale, evaporazione e ago opzionale. v28 salva collegamenti/quota e legge v1-v27. Ogni ritorno aggiunge 8 stati nei limiti invariati. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## Versione 27 conservata + +v27 conserva serbatoio e selezione e legge v1-v26. Ogni serbatoio aggiunge 4 stati nei limiti invariati. Scambio umido indipendente, pressione/energia d'albero esaurite analitiche, miscela di ritorno, bilanci completi, rollback, rami e passi senza allocazioni sono verificati. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.it.md](LIQUID_FUEL_TANK.it.md) + +## Versione 26 conservata + +Il codificatore scrive `power.asset.v26` e legge v1-v26. Ci sono 38 conteggi int32 (152 bytes); l'intestazione occupa 230 + lunghezza del nome UTF-8 bytes. Il tipo 39 è `liquid_rail_feed`, tag di impronta 30. Un record di 24 bytes salva indice, ID iniettore/pompa e temperatura sorgente. Tipi e proprietà esclusiva sono verificati; un downgrade v25 rifirmato rifiuta il nuovo tipo. + +## Versione 25 conservata + +Il codificatore scrive `power.asset.v25` e legge v1-v25. La tabella contiene 37 valori int32 (148 bytes); l'intestazione occupa 226 + lunghezza del nome UTF-8 bytes. Il tipo 38 è `at_controller`, con tag di impronta 29. Ogni record ha 208 bytes fissi più 12 bytes per percorso. I percorsi sono 5 o 6; il totale limitato è dichiarato separatamente. Si verificano tipi, clock, unità, proprietà e topologia. Un downgrade v24 con digest rifirmato rifiuta il nuovo tipo. + +## Versione 24 conservata L'encoder scrive `power.asset.v24`; le versioni da 1 a 24 restano leggibili. La tabella dei conteggi e le dimensioni dei record restano quelle della v23. Il kind 37 è `carrier_gear`: il suo rapporto di base è finito, con segno e diverso da zero; la sua estensione di ingranaggio da 8 byte conserva l'indice del componente e il portasatelliti mobile distinto. I conteggi tipizzati coprono ogni ingranamento del portasatelliti. Una retrocessione v23 risigillata nel digest rifiuta il nuovo kind. diff --git a/docs/ASSET_FORMAT.ja.md b/docs/ASSET_FORMAT.ja.md index 82de220..8132c01 100644 --- a/docs/ASSET_FORMAT.ja.md +++ b/docs/ASSET_FORMAT.ja.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[デコード、再コンパイル、フィンガープリント検査] ``` -## 現行バージョン 24 と保持されるリーダー +## 現行バージョン 41 + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) + +## 保持バージョン 40 + +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) + +## 保持バージョン 39 + +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) + + +## 保持バージョン 38 + +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) + + +## 保持バージョン 37 + +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) + + +## 保持バージョン 36 + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) + + +## 保持バージョン 35 + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[有限液体燃料管路の運動量](FUEL_INERTIAL_PIPE.ja.md) + + +## 保持バージョン 34 + +`fuel_discharge` は有限燃料源を `finite_fuel_film` の気体ノードへ接続します。`phase_mode` を `frozen` と宣言し、ノズル通過中の蒸気質量分率を固定します。両端のバルクは再平衡化します。均質な両相は温度と速度を共有し、液体は非圧縮、蒸気は理想擬似種です。材料特性と液体密度は一致する必要があります。 + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) + + +## 保持バージョン 33 + +`fuel_chamber` は実際の軸と有限燃料室を結合します。入口・出口の `fuel_check_valve` が圧力差で充填と供給を行います。液体、蒸気、弾性壁エネルギーは同じ閉包を使います。入口不足では吸入中にフラッシュ蒸発でき、供給量は計算した在庫と圧力に従います。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + + +## 保持バージョン 32 + +`fuel` ドメインは有限弾性容器内で純燃料の液体と蒸気を共に輸送します。各容器は総質量と熱量・弾性の合計エネルギーを独立に保持し、相平衡フラッシュが温度、圧力、蒸気割合を決定します。`fuel_restriction` は均質な供給側流体を交換し、`fuel_heat_link` は有限熱ノードと熱交換します。発熱量に対応する化学エネルギーは別台帳です。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + + +## 保持バージョン 31 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) + +## 保持バージョン 30 + +任意の `fuel_film.parameters.phase_equilibrium` は `pa` または `bar` の `reference_pressure` と、`k` の `minimum_temperature` / `maximum_temperature` を指定します。既存の `saturation_temperature` は基準温度、`latent_internal_energy` はそこでの蒸気と液体の比内部エネルギー差です。平衡受け側は一つの膜が所有します。初期スナップショットを保持し、受理した区間で気液平衡と有限壁の熱交換を計算します。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 保持バージョン 29 + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +`vented-tank-liquid-cylinder` と `vented-tank-needle-cylinder` はタンク 1513、気体 1520、通気入力 960 を使います。アセット v29 は形状を保存し v1-v28 を読みます。解析仕事/導関数、独立 ODE 収束、収支、portable/MCP 再生、ロールバックとゼロ割当ステップに合格しました。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 保持バージョン 28 + +`recirculating-liquid-cylinder` と `recirculating-needle-cylinder` は有限燃料、実噴射、蒸発、任意のニードル動特性を保持します。v28 は接続/熱割合を保存し v1-v27 を読みます。各戻りは既存上限内で 8 状態を追加します。 + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## 保持するバージョン 27 + +v27 はタンクと補給選択を保存し v1-v26 を読みます。各タンクは既存上限内で 4 状態を追加します。独立湿潤交換、枯渇後の圧力/軸エネルギー解析解、逆流混合、全台帳、rollback、分岐、割り当てなしステップを検査します。 + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.ja.md](LIQUID_FUEL_TANK.ja.md) + +## 保持するバージョン 26 + +エンコーダーは `power.asset.v26` を書き、v1-v26 を読みます。計数は 38 個の int32(152 bytes)、ヘッダーは 230 + UTF-8 名称長 bytes です。種類 39 は `liquid_rail_feed`、指紋タグは 30 です。24 bytes のレコードは索引、噴射器/ポンプ ID、源温度量を保存します。型とレール/ポンプの独占所有権を確認し、再署名した v25 降格は新種類を拒否します。 + +## 保持するバージョン 25 + +エンコーダーは `power.asset.v25` を書き、v1-v25 を読みます。計数表は 37 個の int32(148 bytes)、ヘッダーは 226 + UTF-8 名称長 bytes です。種類 38 は `at_controller`、指紋タグは 29 です。各レコードは固定 208 bytes と経路ごとの 12 bytes です。経路数は 5 または 6 で、有界合計を別に宣言します。型、時計、単位、所有権、トポロジーを確認します。digest を再署名した v24 への降格は新しい種類を拒否します。 + +## 保持するバージョン 24 エンコーダーは `power.asset.v24` を書き出します。バージョン 1 から 24 までは読み取れます。件数テーブルとレコードサイズは v23 のままです。種別 37 は `carrier_gear` です。基本変速比は有限で、符号付き、かつ非ゼロです。8 バイトの歯車拡張は、コンポーネントインデックスと、区別される可動キャリアを保持します。型付き件数は、すべてのキャリア噛み合いを網羅します。ダイジェストを再封した v23 ダウングレードは、新しい種別を拒否します。 diff --git a/docs/ASSET_FORMAT.ko.md b/docs/ASSET_FORMAT.ko.md index 8052941..e8c5e19 100644 --- a/docs/ASSET_FORMAT.ko.md +++ b/docs/ASSET_FORMAT.ko.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[디코드, 재컴파일, 지문 검사] ``` -## 현재 버전 24와 유지되는 판독기 +## 현재 버전 41 + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) + +## 보존 버전 40 + +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) + +## 보존 버전 39 + +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) + + +## 보존 버전 38 + +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) + + +## 보존 버전 37 + +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) + + +## 보존 버전 36 + +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) + + +## 보존 버전 35 + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[유한 액체 연료 관로 운동량](FUEL_INERTIAL_PIPE.ko.md) + + +## 보존 버전 34 + +`fuel_discharge`는 유한 연료 도메인 공급원을 `finite_fuel_film`의 기체 노드에 연결합니다. `phase_mode`를 `frozen`으로 선언하면 노즐 통과 중 증기 질량분율은 고정되고 양쪽 벌크는 다시 평형화됩니다. 균질 두 상은 온도와 속도를 공유합니다. 액체는 비압축성이고 증기는 이상 의사 종입니다. 재료 특성과 액체 밀도가 같아야 합니다. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) + + +## 보존 버전 33 + +`fuel_chamber`는 실제 축과 유한 연료 챔버를 결합합니다. 입출구 `fuel_check_valve`가 압력차로 충전과 공급을 수행합니다. 액체, 증기, 탄성 벽 에너지는 같은 폐쇄 관계를 씁니다. 입구 공급 부족 시 흡입 중 플래시 증발이 가능하며 공급량은 계산한 재고와 압력에 따릅니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + + +## 유지 버전 32 + +`fuel` 도메인은 유한 탄성 용기에서 순수 연료 액체와 증기를 함께 수송합니다. 각 용기는 총질량과 열량·탄성 총에너지를 독립적으로 유지하며 상평형 플래시가 온도, 압력, 증기 비율을 결정합니다. `fuel_restriction`은 균질 공급 유체를 교환하고 `fuel_heat_link`는 유한 열 노드와 열을 교환합니다. 발열량에 해당하는 화학 에너지는 별도 장부입니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + + +## 유지 버전 31 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) + +## 유지 버전 30 + +선택 항목 `fuel_film.parameters.phase_equilibrium`은 `pa` 또는 `bar`의 `reference_pressure`와 `k`의 `minimum_temperature` / `maximum_temperature`를 지정합니다. 기존 `saturation_temperature`는 기준 온도이고 `latent_internal_energy`는 그 온도에서 증기와 액체의 비내부에너지 차이입니다. 평형 수용부마다 하나의 막을 사용합니다. 초기 스냅샷을 보존하고 수용된 구간에서 기액 평형과 유한 벽 열교환을 계산합니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유지 버전 29 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +`vented-tank-liquid-cylinder`와 `vented-tank-needle-cylinder`는 탱크 1513, 기체 1520, 통기 입력 960을 사용합니다. 자산 v29는 형상을 저장하고 v1-v28을 읽습니다. 해석적 일/미분, 독립 ODE 수렴, 수지, portable/MCP 재현, 롤백과 무할당 단계 검사가 통과했습니다. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 유지 버전 28 + +`recirculating-liquid-cylinder`와 `recirculating-needle-cylinder`는 유한 연료, 실제 분사, 증발과 선택적 니들 동역학을 보존합니다. v28은 연결/열 비율을 저장하고 v1-v27을 읽습니다. 각 반환은 기존 상한 내 8개 상태를 추가합니다. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 유지된 버전 27 + +v27은 탱크와 공급 선택을 저장하고 v1-v26을 읽습니다. 각 탱크는 기존 상한 안에서 4개 상태를 추가합니다. 독립 습윤 교환, 고갈 압력/축 에너지 해석, 반환 혼합, 전체 원장, rollback, 분기와 무할당 스텝을 검사합니다. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.ko.md](LIQUID_FUEL_TANK.ko.md) + +## 유지된 버전 26 + +인코더는 `power.asset.v26`를 쓰고 v1-v26을 읽습니다. 38개의 int32 계수(152 bytes)가 있고 헤더는 230 + UTF-8 이름 길이 bytes입니다. 종류 39는 `liquid_rail_feed`, 지문 태그는 30입니다. 24 bytes 레코드는 색인, 인젝터/펌프 ID와 원천 온도량을 저장합니다. 형식과 레일/펌프 독점 소유권을 확인하며 재서명 v25 다운그레이드는 새 종류를 거부합니다. + +## 유지된 버전 25 + +인코더는 `power.asset.v25`를 쓰고 v1-v25를 읽습니다. 계수 표에는 37개의 int32 값(148 bytes)이 있고 헤더는 226 + UTF-8 이름 길이 bytes입니다. 종류 38은 `at_controller`이고 지문 태그는 29입니다. 각 레코드는 고정 208 bytes와 경로마다 12 bytes를 가집니다. 경로 수는 5 또는 6이며 제한된 합계를 별도로 선언합니다. 형식, 클록, 단위, 소유권과 토폴로지를 확인합니다. digest를 다시 서명한 v24 다운그레이드는 새 종류를 거부합니다. + +## 유지된 버전 24 인코더는 `power.asset.v24`를 씁니다. 버전 1부터 24까지 계속 읽을 수 있습니다. 개수 표와 레코드 크기는 v23의 것을 유지합니다. 종류 37은 `carrier_gear`입니다. 기본 변속비는 유한하고, 부호가 있으며, 0이 아닙니다. 8바이트 기어 확장은 컴포넌트 인덱스와 구분되는 움직이는 캐리어를 유지합니다. 타입이 있는 개수는 모든 캐리어 물림을 덮습니다. 다이제스트를 다시 봉인한 v23 다운그레이드는 새 종류를 거부합니다. diff --git a/docs/ASSET_FORMAT.md b/docs/ASSET_FORMAT.md index 2ae2b01..d63696c 100644 --- a/docs/ASSET_FORMAT.md +++ b/docs/ASSET_FORMAT.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Decode, recompile, check fingerprint] ``` -## Current version 24 and retained readers +## Current version 41 + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) + +## Retained version 40 + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Finite-rate fuel phase relaxation](RELAXING_FUEL.md) + +## Retained version 39 + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) + + +## Retained version 38 + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) + + +## Retained version 37 + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) + + +## Retained version 36 + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) + + +## Retained version 35 + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Finite liquid fuel line momentum](FUEL_INERTIAL_PIPE.md) + + +## Retained version 34 + +A `fuel_discharge` connects a finite fuel-domain source to the gas node of a `finite_fuel_film`. Declare `phase_mode` as `frozen`: vapor mass quality stays fixed during nozzle transit, while both bulk endpoints re-equilibrate. The homogeneous phases share temperature and velocity; liquid is incompressible and vapor is an ideal pseudo-species. Source and receiver material properties and liquid density must agree. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) + + +## Retained version 33 + +A `fuel_chamber` couples an actual shaft to a finite fuel-domain chamber. Inlet and outlet `fuel_check_valve` components provide pressure-driven filling and delivery. Liquid, vapor and elastic wall energy share the same material closure. An inlet-starved chamber can flash during suction; delivered fuel follows the computed inventory and pressure. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + + +## Retained version 32 + +The `fuel` domain carries pure liquid and vapor together in finite elastic vessels. Each vessel owns independent total mass and caloric-plus-elastic energy; its phase flash determines temperature, pressure and vapor fractions. `fuel_restriction` exchanges homogeneous donor fluid and `fuel_heat_link` exchanges heat with a finite thermal node. Chemical heating-value energy stays in a separate ledger. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + + +## Retained version 31 + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) + +## Retained version 30 + +Optional `fuel_film.parameters.phase_equilibrium` declares `reference_pressure` in `pa` or `bar`, and `minimum_temperature` / `maximum_temperature` in `k`. Existing `saturation_temperature` is the reference temperature; `latent_internal_energy` is the vapor-minus-liquid internal energy there. One film owns each equilibrium receiver. The authored initial snapshot is retained; accepted intervals equilibrate gas and liquid and exchange heat with the finite wall. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Retained version 29 + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +The examples `vented-tank-liquid-cylinder` and `vented-tank-needle-cylinder` use tank 1513, headspace 1520 and vent input 960. Asset v29 stores geometry and reads v1-v28. Analytic work/derivative checks, independent simultaneous ODE refinement, complete ledgers, portable/MCP replay, rollback and allocation-free stepping pass. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Retained version 28 + +`recirculating-liquid-cylinder` and `recirculating-needle-cylinder` retain finite fuel, actual injection, evaporation and optional needle dynamics. Asset v28 retains return links and heat fraction and reads v1-v27. Each return adds 8 states within the unchanged model bounds. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## Retained version 27 + +Asset v27 retains tank data and feed selection and reads v1-v26. Each tank adds 4 reported states within the unchanged bounds. Independent wet exchange, analytic exhausted pressure/shaft energy, reverse mixing, complete ledgers, rollback, forks and allocation-free stepping are checked. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.md](LIQUID_FUEL_TANK.md) + +## Retained version 26 + +The encoder writes `power.asset.v26` and reads v1-v26. There are 38 int32 counts (152 bytes); header size is 230 + UTF-8 name length bytes. Kind 39 is `liquid_rail_feed`, fingerprint tag 30. A 24-byte record stores component index, injector/pump IDs and supply-temperature quantity. Typed coverage and exclusive rail/pump ownership are validated; a re-signed v25 downgrade rejects the new kind. + +## Retained version 25 + +The encoder writes `power.asset.v25` and reads v1-v25. The count table contains 37 int32 values (148 bytes); the header is 226 + UTF-8 name length bytes. Kind 38 is `at_controller`, with fingerprint tag 29. Each record has 208 fixed bytes plus 12 bytes per route. Route count is 5 or 6; the bounded total is declared separately. Typed coverage, clocks, units, ownership and topology are checked. A re-signed v24 downgrade rejects the new kind. + +## Retained version 24 The encoder writes `power.asset.v24`; versions 1 through 24 remain readable. The count table and record sizes remain those of v23. Kind 37 is `carrier_gear`: diff --git a/docs/ASSET_FORMAT.pt-BR.md b/docs/ASSET_FORMAT.pt-BR.md index 9ec2cc5..e152550 100644 --- a/docs/ASSET_FORMAT.pt-BR.md +++ b/docs/ASSET_FORMAT.pt-BR.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Decodificar, recompilar, conferir a impressão digital] ``` -## Versão atual 24 e leitores retidos +## Versão atual 41 + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Versão preservada 40 + +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) + +## Versão preservada 39 + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + + +## Versão preservada 38 + +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + + +## Versão preservada 37 + +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + + +## Versão preservada 36 + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + + +## Versão preservada 35 + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Quantidade de movimento da linha finita de combustível líquido](FUEL_INERTIAL_PIPE.pt-BR.md) + + +## Versão preservada 34 + +Um `fuel_discharge` conecta uma fonte finita do domínio de combustível ao nó gasoso de um `finite_fuel_film`. Declare `phase_mode` como `frozen`: o título mássico de vapor fica fixo na passagem pelo bocal, enquanto os volumes das extremidades voltam ao equilíbrio. As fases homogêneas compartilham temperatura e velocidade; líquido incompressível e vapor como pseudoespécie ideal. Propriedades e densidade devem coincidir. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) + + +## Versão preservada 33 + +`fuel_chamber` acopla um eixo real a uma câmara finita de combustível. `fuel_check_valve` de entrada e saída fornecem enchimento e entrega por pressão. Líquido, vapor e energia elástica usam o mesmo fechamento. Com entrada insuficiente a câmara pode vaporizar na sucção; a entrega segue inventário e pressão calculados. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + + +## Versão mantida 32 + +O domínio `fuel` transporta líquido puro e vapor juntos em recipientes elásticos finitos. Cada recipiente mantém massa total e energia calórica mais elástica independentes; o flash determina temperatura, pressão e frações de vapor. `fuel_restriction` troca fluido doador homogêneo e `fuel_heat_link` troca calor com um nó térmico finito. A energia química do poder calorífico mantém um balanço separado. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + + +## Versão mantida 31 + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Versão mantida 30 + +A opção `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` em `pa` ou `bar` e `minimum_temperature` / `maximum_temperature` em `k`. `saturation_temperature` é a temperatura de referência; `latent_internal_energy` é a diferença de energia interna vapor-líquido nela. Cada receptor em equilíbrio possui um filme. O snapshot inicial é mantido; intervalos aceitos equilibram gás e líquido com troca de calor com a parede finita. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Versão mantida 29 + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usam tanque 1513, gás 1520 e entrada de ventilação 960. Asset v29 guarda geometria e lê v1-v28. Passam trabalho/derivadas analíticos, convergência ODE independente, balanços, replay portable/MCP, rollback e passos sem alocação. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Versão mantida 28 + +`recirculating-liquid-cylinder` e `recirculating-needle-cylinder` mantêm combustível finito, injeção real, evaporação e agulha opcional. v28 guarda conexões/fração e lê v1-v27. Cada retorno acrescenta 8 estados nos mesmos limites. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## Versão 27 preservada + +v27 preserva tanque e seleção e lê v1-v26. Cada tanque acrescenta 4 estados dentro dos limites mantidos. Troca úmida independente, pressão/energia do eixo esgotadas analíticas, mistura de retorno, balanços completos, rollback, ramos e passos sem alocação são verificados. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.pt-BR.md](LIQUID_FUEL_TANK.pt-BR.md) + +## Versão 26 preservada + +O codificador escreve `power.asset.v26` e lê v1-v26. Há 38 contagens int32 (152 bytes); o cabeçalho ocupa 230 + comprimento do nome UTF-8 bytes. O tipo 39 é `liquid_rail_feed`, etiqueta de impressão 30. Um registro de 24 bytes guarda índice, IDs injetor/bomba e temperatura fonte. Tipos e propriedade exclusiva são verificados; um downgrade v25 reassinado rejeita o novo tipo. + +## Versão 25 preservada + +O codificador escreve `power.asset.v25` e lê v1-v25. A tabela contém 37 valores int32 (148 bytes); o cabeçalho ocupa 226 + comprimento do nome UTF-8 bytes. O tipo 38 é `at_controller`, com etiqueta de impressão 29. Cada registro tem 208 bytes fixos mais 12 bytes por rota. As rotas são 5 ou 6; o total limitado é declarado separadamente. Tipos, relógios, unidades, propriedade e topologia são verificados. Um downgrade v24 com digest reassinado rejeita o novo tipo. + +## Versão 24 preservada O codificador escreve `power.asset.v24`; as versões 1 a 24 continuam legíveis. A tabela de contagens e os tamanhos de registro continuam os da v23. O tipo 37 é `carrier_gear`: sua relação de base é finita, com sinal e não nula; sua extensão de engrenagem de 8 bytes conserva o índice do componente e o porta-planetas móvel distinto. Contagens tipadas cobrem cada engrenamento do porta-planetas. Um rebaixamento v23 com digest recalculado rejeita o tipo novo. diff --git a/docs/ASSET_FORMAT.ru.md b/docs/ASSET_FORMAT.ru.md index 8dc81ea..51c600c 100644 --- a/docs/ASSET_FORMAT.ru.md +++ b/docs/ASSET_FORMAT.ru.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[Декодирование, перекомпиляция, сверка отпечатка] ``` -## Текущая версия 24 и сохранённые читатели +## Текущая версия 41 + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) + +## Сохранённая версия 40 + +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) + +## Сохранённая версия 39 + +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) + + +## Сохранённая версия 38 + +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) + + +## Сохранённая версия 37 + +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) + + +## Сохранённая версия 36 + +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) + + +## Сохранённая версия 35 + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[Импульс конечной линии жидкого топлива](FUEL_INERTIAL_PIPE.ru.md) + + +## Сохранённая версия 34 + +`fuel_discharge` связывает конечный источник топливного домена с газовым узлом `finite_fuel_film`. Задайте `phase_mode` как `frozen`: массовая доля пара постоянна в сопле, а объёмы на концах вновь уравновешиваются. Однородные фазы имеют общие температуру и скорость; жидкость несжимаема, пар — идеальная псевдокомпонента. Свойства и плотность жидкости должны совпадать. + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) + + +## Сохранённая версия 33 + +`fuel_chamber` связывает фактический вал с конечной камерой топлива. Входной и выходной `fuel_check_valve` обеспечивают наполнение и подачу по перепаду давления. Жидкость, пар и упругая энергия используют одно замыкание. При недостаточном притоке камера может испарять топливо на всасывании; подача следует рассчитанным массе и давлению. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + + +## Сохранённая версия 32 + +Домен `fuel` переносит чистую жидкость и пар вместе в конечных упругих сосудах. Каждый сосуд независимо хранит полную массу и калорическую плюс упругую энергию; фазовый flash определяет температуру, давление и доли пара. `fuel_restriction` обменивает однородную среду донора, `fuel_heat_link` обменивается теплом с конечным тепловым узлом. Химическая энергия теплоты сгорания учитывается отдельно. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + + +## Сохранённая версия 31 + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) + +## Сохранённая версия 30 + +Необязательный `fuel_film.parameters.phase_equilibrium` задаёт `reference_pressure` в `pa` или `bar`, а `minimum_temperature` / `maximum_temperature` в `k`. `saturation_temperature` обозначает опорную температуру; `latent_internal_energy` — разность удельной внутренней энергии пара и жидкости при ней. Каждый равновесный приёмник имеет одну плёнку. Начальный снимок сохраняется; принятые интервалы уравновешивают газ и жидкость с теплообменом с конечной стенкой. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Сохранённая версия 29 + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +Примеры `vented-tank-liquid-cylinder` и `vented-tank-needle-cylinder` используют бак 1513, газ 1520 и вход вентиляции 960. Asset v29 хранит геометрию и читает v1-v28. Проходят аналитические работа/производные, независимая сходимость ODE, балансы, portable/MCP воспроизведение, откат и шаг без аллокаций. + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Сохранённая версия 28 + +`recirculating-liquid-cylinder` и `recirculating-needle-cylinder` сохраняют конечное топливо, фактическую инжекцию, испарение и необязательную иглу. v28 хранит связи/долю и читает v1-v27. Каждый возврат добавляет 8 состояний в прежних границах. + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## Сохранённая версия 27 + +v27 сохраняет бак и выбор подачи и читает v1-v26. Каждый бак добавляет 4 состояния в прежних границах. Независимый мокрый обмен, аналитические давление/энергия вала после опустошения, обратное смешение, полные балансы, rollback, ветви и шаги без выделений проверены. + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.ru.md](LIQUID_FUEL_TANK.ru.md) + +## Сохранённая версия 26 + +Кодировщик пишет `power.asset.v26` и читает v1-v26. Содержатся 38 счётчиков int32 (152 bytes); заголовок занимает 230 + длина имени UTF-8 bytes. Тип 39 — `liquid_rail_feed`, тег отпечатка 30. Запись 24 bytes хранит индекс, ID инжектора/насоса и температуру источника. Проверяются типы и исключительное владение; переподписанное понижение v25 отклоняет новый тип. + +## Сохранённая версия 25 + +Кодировщик пишет `power.asset.v25` и читает v1-v25. Таблица содержит 37 значений int32 (148 bytes); заголовок занимает 226 + длина имени UTF-8 bytes. Тип 38 — `at_controller`, тег отпечатка 29. Запись содержит 208 фиксированных bytes и 12 bytes на маршрут. Число маршрутов — 5 или 6; ограниченная сумма объявляется отдельно. Проверяются типы, часы, единицы, владение и топология. Понижение до v24 с обновлённым digest отклоняет новый тип. + +## Сохранённая версия 24 Кодировщик пишет `power.asset.v24`; версии с 1 по 24 остаются читаемыми. Таблица счётчиков и размеры записей остаются теми же, что у v23. Вид 37 — `carrier_gear`: его базовое отношение конечно, со знаком и не равно нулю; его 8-байтовое расширение шестерни сохраняет индекс компонента и отдельное подвижное водило. Типизированные счётчики покрывают каждое зацепление водила. Понижение v23 с пересчитанным дайджестом отклоняет новый вид. diff --git a/docs/ASSET_FORMAT.zh-CN.md b/docs/ASSET_FORMAT.zh-CN.md index e02e50e..3d6d873 100644 --- a/docs/ASSET_FORMAT.zh-CN.md +++ b/docs/ASSET_FORMAT.zh-CN.md @@ -14,7 +14,352 @@ flowchart LR UNI --> RE[解码、重新编译、校验指纹] ``` -## 当前版本 24 与保留的读取器 +## 当前版本 41 + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_boundaries | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| relaxing_nozzle_phase_mode | 1 frozen | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| retained_asset_readers | power.asset.v1..v40 | + +[相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) + +## 保留版本 40 + +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_relaxing_fuel | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| phase_relaxation_time_ns | 1..3600000000000 | +| initial_vapor_mass_fraction | fraction, [0,1] | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| equilibrium_fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| relaxing_fuel_material_record_bytes | 180 | +| relaxing_material_extension | uint64 phase_relaxation_time_ns, quantity initial_vapor_mass_fraction | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117 equilibrium_vapor_mass_fraction, 118 chemical_affinity, 119 vapor_mass_residual, 120 vapor_mass_at_a, 121 vapor_mass_at_b | +| retained_asset_readers | power.asset.v1..v39 | + +[有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) + +## 保留版本 39 + +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 + +| Identifier | Value | +|---|---| +| fingerprint_tag_equilibrium_nozzle | 44 | +| compressible_fuel_nozzle_kind | 51 | +| phase_mode_frozen | 1 | +| phase_mode_equilibrium | 2 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 flux_relative_uncertainty | +| retained_asset_readers | power.asset.v1..v38 | + +[平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) + + +## 保留版本 38 + +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_record_count | count(kind == compressible_fuel_nozzle) | +| compressible_nozzle_record_order | component_index, area, discharge_coefficient, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| compressible_nozzle_quantity_fields | 4 | +| compressible_nozzle_phase_mode_frozen | 1 | +| absent_needle | needle_node=0; positions=default quantities | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> compressible_nozzle -> inputs | +| additional_reported_states_per_nozzle | 13 | +| retained_asset_readers | power.asset.v1..v37 | + +[冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) + + +## 保留版本 37 + +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_record_count | count(kind in [fuel_chamber, compressible_fuel_chamber]) | +| fuel_chamber_record_order | component_index, minimum_reference_volume, swept_volume, phase | +| fuel_chamber_quantity_fields | 3 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_compressible_chamber | 4 | +| retained_asset_readers | power.asset.v1..v36 | + +[轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) + + +## 保留版本 36 + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| compressible_fuel_material_record_bytes | 160 | +| compressible_fuel_material_first_quantity | liquid_bulk_modulus replaces compliance | +| compressible_fuel_material_appended_quantity | initial_velocity | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| fuel_duct_cell_count | 1..24 | +| fuel_duct_record_order | component_index, cell_count, area, linear_resistance, quadratic_resistance, fluid_heat_fraction, cells | +| fuel_duct_record_count | count(component.kind == equilibrium_fuel_duct) | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> fuel_duct -> inputs | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112 density; 113 sound_speed; 114 mass_at_a; 115 mass_at_b | +| retained_asset_readers | power.asset.v1..v35 | + +[可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) + + +## 保留版本 35 + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 40 | +| component_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_record_count | count(component.kind == fuel_inertial_pipe) | +| fuel_pipe_quantity_fields | 7 | +| fuel_pipe_quantity_order | length, area, linear_resistance, quadratic_resistance, initial_flow, initial_temperature, fluid_heat_fraction | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> fuel_pipe -> inputs | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| retained_asset_readers | power.asset.v1..v34 | + +[有限液体燃油管路动量](FUEL_INERTIAL_PIPE.zh-CN.md) + + +## 保留版本 34 + +`fuel_discharge` 将有限燃油域源连接到 `finite_fuel_film` 的气体节点。将 `phase_mode` 声明为 `frozen`:喷嘴输运过程中汽相质量分数保持不变,两端主体重新达到平衡。均相两相具有共同温度和速度;液体不可压缩,蒸汽是理想伪组分。源与接收腔的材料属性和液体密度必须一致。 + +| Identifier | Value | +|---|---| +| fingerprint_tags | 38, 39 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| finite_fuel_film_added_quantity | finite_volume_density | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_record_order | component_index, film_component, phase_mode, wall_kinetic_fraction, needle_node, closed_position, full_open_position | +| phase_mode_frozen | 1 | +| fuel_discharge_orifice_extension_bytes | 36 | +| extension_table_order | fuel_material -> fuel_chamber -> fuel_discharge -> inputs | +| additional_reported_states_per_discharge | 11 | +| jet_impulse_unit | n_s / NewtonSecond / 52 | +| additional_output_fields | 101-106 | +| retained_asset_readers | power.asset.v1..v33 | + +[冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) + + +## 保留版本 33 + +`fuel_chamber` 将实际转轴与有限燃料域腔体耦合。进出口 `fuel_check_valve` 通过压差完成充填与排出。液体、蒸气和弹性壁储能使用同一物性闭合关系。入口供给不足时,腔体可在吸入期间闪蒸;交付燃料由实际库存和压力决定。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 37 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| fuel_chamber_record_count | count(component.kind == fuel_chamber) | +| fuel_geometry_quantity_order | minimum_reference_volume, swept_volume, phase | +| extension_table_order | fuel_material -> fuel_chamber -> inputs | +| additional_reported_states_per_chamber | 3 | + +[轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + + +## 保留版本 32 + +`fuel` 域在有限弹性容器中共同输送纯燃料液体与蒸气。每个容器独立保存总质量及热量加弹性储能,相平衡闪蒸据此确定温度、压力和蒸气比例。`fuel_restriction` 交换均匀混合的供体流体,`fuel_heat_link` 与有限热节点换热。燃料热值对应的化学能使用独立账本。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| fuel_material_count | count(node.domain == fuel) | +| fuel_table_order | liquid_returns -> fuel_material -> inputs | +| fuel_quantity_order | compliance, liquid_density, maximum_pressure, gas_constant, vapor_specific_heat, liquid_specific_heat, reference_temperature, latent_internal_energy, reference_pressure, minimum_temperature, maximum_temperature, lower_heating_value | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | + +[相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + + +## 保留版本 31 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 35 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) + +## 保留版本 30 + +可选的 `fuel_film.parameters.phase_equilibrium` 声明单位为 `pa` 或 `bar` 的 `reference_pressure`,以及单位为 `k` 的 `minimum_temperature` / `maximum_temperature`。已有 `saturation_temperature` 指参考温度,`latent_internal_energy` 指该温度下蒸气与液体的比内能差。每个平衡接收端由一个油膜拥有。初始快照保留输入状态;接受的推进区间使气液达到平衡,并与有限热容量壁面交换热量。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 34 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_film_record_bytes | 100 | +| phase_equilibrium_extension_bytes | 36 | +| condensed_fuel_mass_field | 89 | +| vapor_partial_pressure_field | 90 | +| saturation_pressure_field | 91 | +| cavitation_margin_field | 92 | +| additional_states_per_equilibrium_film | 1 | + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 保留版本 29 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +示例 `vented-tank-liquid-cylinder` 和 `vented-tank-needle-cylinder` 使用油箱 1513、气相 1520、通气输入 960。资产 v29 保留几何并读取 v1-v28。解析功及导数、独立联立 ODE 细化、完整账本、资产/MCP 回放、回滚和零分配推进检查通过。 + +| Identifier | Value | +|---|---| +| fingerprint_tag | 33 (headspace geometry) | +| fill_fraction_field | 88 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_tank_record_bytes | 48 | +| headspace_extension_bytes | 16 (capacity quantity + gas_node) | + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 保留版本 28 + +`recirculating-liquid-cylinder` 与 `recirculating-needle-cylinder` 保留有限燃料、真实喷射、蒸发和可选针阀动力学。资产 v28 保留回流连接与热比例,并读取 v1-v27。每条回流在原有模型边界内增加 8 个状态。 + +| Identifier | Value | +|---|---| +| kind | 41 (`liquid_rail_return`) | +| fingerprint_tag | 32 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| liquid_return_record_bytes | 24 | + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 保留的版本 27 + +资产 v27 保留油箱数据和补给选择,并读取 v1-v26。每个油箱在原有边界内增加 4 个报告状态。独立湿态交换、耗尽压力/轴能解析解、回流混合、完整账本、回滚、独立分支与无分配步进均有检查。 + +| Identifier | Value | +|---|---| +| kind | 40 (`liquid_fuel_tank`) | +| fingerprint_tag | 31 | +| tank_state_field | 87 | +| count_table_int32 | 39 | +| count_table_bytes | 156 | +| header_bytes | 234 + UTF-8 name length | +| liquid_feed_record_bytes | 28 | +| liquid_tank_record_bytes | 32 | + +[LIQUID_FUEL_TANK.zh-CN.md](LIQUID_FUEL_TANK.zh-CN.md) + +## 保留的版本 26 + +编码器写入 `power.asset.v26`,读取 v1-v26。计数为 38 个 int32(152 bytes);头部为 230 + UTF-8 名称长度 bytes。种类 39 是 `liquid_rail_feed`,指纹标签为 30。24 bytes 记录保存组件索引、喷射器/泵 ID 和源温度量。检查类型覆盖与燃轨/泵的独占归属;重签名的 v25 降级拒绝新种类。 + +## 保留的版本 25 + +编码器写入 `power.asset.v25`,可读取 v1-v25。计数表包含 37 个 int32(148 bytes);头部为 226 + UTF-8 名称长度 bytes。种类 38 为 `at_controller`,指纹标签为 29。每条记录包含 208 固定 bytes,加上每支路 12 bytes。支路数量为 5 或 6,另行声明有界总数。类型覆盖、时钟、单位、归属和拓扑均需检查。重新签署摘要的 v24 降级会拒绝新种类。 + +## 保留的版本 24 编码器写出 `power.asset.v24`;版本 1 到 24 仍可读取。计数表与记录大小仍是 v23 的那些。种类 37 是 `carrier_gear`:其基线速比有限、有符号且非零;其 8 字节齿轮扩展保留元件索引与彼此不同的运动行星架。带类型的计数覆盖每一个行星架啮合。重新封装摘要的 v23 降级会拒绝这个新种类。 diff --git a/docs/AT_CONTROL.de.md b/docs/AT_CONTROL.de.md new file mode 100644 index 0000000..6a25f8b --- /dev/null +++ b/docs/AT_CONTROL.de.md @@ -0,0 +1,19 @@ +# Hydraulische AT-Rückführung + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · **Deutsch** · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## Vertrag + +`at_controller` akzeptiert einen ganzzahligen Sollgang in [-1,4]; null bedeutet Neutral. Er besitzt fünf Füll-/Ablassventilpaare und optional die Wandlerüberbrückung. Die Reihenfolge lautet Trägereingang, kleines Sonnenrad, großes Sonnenrad, Trägerbremse, große Sonnenradbremse, dann Überbrückung. + +Vor dem Anlegen eines widersprechenden Gangs bestätigt die tatsächliche Belagkraft das Lösen. Der begrenzte Druck-PI nutzt gemessenen Kammerdruck. Ein Gang gilt erst nach bestätigtem Kontakt und physischer Kupplungsverriegelung als aktiv. Nicht ganzzahlige Wünsche und direkte Zugriffe auf zugeordnete Ventile liefern hilfreiche Fehler. + +Abgetastete Phase, Fehler, Druckintegrale und Zeiten gehören zum vollständigen Transaktionszustand. Abbruch, späte Fehler und Zweige erhalten dieselben Verläufe. Fehler umfassen Löse-/Anlegezeitüberschreitung, niedrigen Versorgungsdruck, Richtungswechsel und Verlust bestätigter Verriegelung. Ein Ablassbefehl löst keinen physisch blockierten Ablauf. + +Optionale Überbrückung nutzt Grenzen für Vorwärtsgang, Eingangsdrehzahl, Schlupf und Wartezeit mit eigener Lösehysterese. Der Ausgang beschreibt tatsächlich Released/Applying/Locked/Releasing. Es ist eine physische Kolbenkupplung, keine vorgegebene Drehzahlgleichheit. + +## Nachweise und Grenzen + +`controlled-hydraulic-ravigneaux` und `controlled-fired-hydraulic-ravigneaux` verwenden Wunschkanal 900 und Regler-ID 1400. Sie behalten 99 und 122 gemeldete Zustände innerhalb der unveränderten Grenze 128. v41 speichert Routen, Verstärkungen und Uhren und liest v1-v40. + +Diese Regelung ist Forschung; Parameter bleiben `unverified`. ECU-Drehmomentkoordination, detaillierte Sensoren/Ventile, umfassende Fahrzeugfehler und OEM-Kalibrierung sind offen. Managed- und Standard-Prüfungen belegen keine tatsächliche Unity Editor/Play/Player/IL2CPP-Abnahme. diff --git a/docs/AT_CONTROL.es.md b/docs/AT_CONTROL.es.md new file mode 100644 index 0000000..1e34468 --- /dev/null +++ b/docs/AT_CONTROL.es.md @@ -0,0 +1,19 @@ +# Realimentación de AT hidráulica + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · **Español** · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## Contrato + +`at_controller` acepta una marcha solicitada entera en [-1,4]; cero es punto muerto. Controla cinco pares de válvulas de llenado/vaciado y el bloqueo opcional del convertidor. El orden es entrada del portasatélites, solar pequeño, solar grande, freno del portasatélites, freno del solar grande y bloqueo. + +Antes de aplicar una marcha incompatible, la fuerza real de las pastillas confirma la liberación. El PI de presión limitado usa presión medida en las cámaras. Una marcha solo está activa al confirmar los contactos y el bloqueo físico de los embragues. Las solicitudes fraccionarias y las escrituras directas a válvulas controladas devuelven errores útiles. + +Fase muestreada, fallo, integrales de presión y tiempos forman el estado transaccional completo. Cancelación, fallos tardíos y ramas conservan las mismas historias. Los fallos incluyen tiempos de liberación/aplicación, baja alimentación, cambio de sentido y pérdida de bloqueo confirmado. Una orden de vaciado no libera un drenaje físicamente bloqueado. + +El bloqueo opcional usa límites de marcha adelante, velocidad de entrada, deslizamiento y espera, con histéresis de desbloqueo separada. La salida describe el estado real Released/Applying/Locked/Releasing. Es un embrague de pistón físico, no una igualdad de velocidades impuesta. + +## Evidencia y límites + +`controlled-hydraulic-ravigneaux` y `controlled-fired-hydraulic-ravigneaux` usan canal 900 e ID 1400. Conservan 99 y 122 estados declarados dentro del límite sin cambios de 128. v41 conserva rutas, ganancias y relojes y lee v1-v40. + +Son controles de investigación y los parámetros siguen `unverified`. Coordinación de par ECU, sensores/válvulas detallados, fallos completos del vehículo y calibración OEM siguen pendientes. Las pruebas managed y Standard no acreditan Unity Editor/Play/Player/IL2CPP real. diff --git a/docs/AT_CONTROL.fr.md b/docs/AT_CONTROL.fr.md new file mode 100644 index 0000000..9a1b00a --- /dev/null +++ b/docs/AT_CONTROL.fr.md @@ -0,0 +1,19 @@ +# Régulation hydraulique de boîte AT + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · **Français** · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## Contrat + +`at_controller` accepte un rapport demandé entier dans [-1,4] ; zéro désigne le point mort. Il commande cinq paires de vannes de remplissage/vidange et le verrouillage facultatif du convertisseur. L'ordre est entrée du porte-satellites, petit soleil, grand soleil, frein du porte-satellites, frein du grand soleil, puis verrouillage. + +Le débrayage est confirmé par la force réelle des garnitures avant l'application d'un rapport incompatible. Le PI de pression borné utilise la pression mesurée des chambres. Un rapport n'est actif qu'après confirmation des contacts et du verrouillage physique des embrayages. Les demandes fractionnaires et les écritures directes aux vannes réservées renvoient des erreurs exploitables. + +Phase échantillonnée, défaut, intégrales de pression et temps font partie de l'état transactionnel complet. Annulation, échecs tardifs et branches conservent les mêmes historiques. Les défauts couvrent les délais de débrayage/engagement, la faible alimentation, le changement de sens et la perte de verrouillage confirmé. Une commande de vidange ne libère pas un drain physiquement bouché. + +Le verrouillage facultatif utilise rapport avant, vitesse d'entrée, glissement et temporisation, avec hystérésis de déverrouillage séparée. La sortie décrit l'état réel Released/Applying/Locked/Releasing. Il s'agit d'un embrayage à piston physique, pas d'une égalité de vitesse imposée. + +## Preuves et limites + +Les exemples `controlled-hydraulic-ravigneaux` et `controlled-fired-hydraulic-ravigneaux` utilisent le canal 900 et l'ID 1400. Ils conservent 99 et 122 états déclarés dans la limite inchangée de 128. Le format v41 conserve routes, gains et horloges et lit v1-v40. + +Ces commandes sont expérimentales et les paramètres restent `unverified`. Coordination du couple ECU, capteurs/vannes détaillés, défauts véhicule complets et calibration OEM restent à réaliser. Les contrôles gérés et Standard ne valident pas Unity Editor/Play/Player/IL2CPP réel. diff --git a/docs/AT_CONTROL.it.md b/docs/AT_CONTROL.it.md new file mode 100644 index 0000000..0c0ad4f --- /dev/null +++ b/docs/AT_CONTROL.it.md @@ -0,0 +1,19 @@ +# Retroazione AT idraulica + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · **Italiano** · [Português](AT_CONTROL.pt-BR.md) + +## Contratto + +`at_controller` accetta una marcia richiesta intera in [-1,4]; zero indica folle. Gestisce cinque coppie di valvole di riempimento/scarico e il blocco facoltativo del convertitore. L'ordine è ingresso del portasatelliti, solare piccolo, solare grande, freno del portasatelliti, freno del solare grande, poi blocco. + +Prima di applicare una marcia incompatibile, la forza reale dei pattini conferma il rilascio. Il PI di pressione limitato usa la pressione misurata nelle camere. La marcia è attiva solo dopo la conferma dei contatti e del blocco fisico delle frizioni. Richieste frazionarie e scritture dirette alle valvole controllate restituiscono errori utili. + +Fase campionata, guasto, integrali di pressione e tempi appartengono allo stato transazionale completo. Annullamento, errori tardivi e rami mantengono le stesse storie. I guasti includono timeout di rilascio/applicazione, bassa alimentazione, cambio di direzione e perdita del blocco confermato. Un comando di scarico non libera uno scarico fisicamente bloccato. + +Il blocco facoltativo usa limiti di marcia avanti, velocità di ingresso, slittamento e attesa con isteresi di sblocco separata. L'uscita descrive lo stato reale Released/Applying/Locked/Releasing. È una frizione a pistone fisica, non una velocità uguale imposta. + +## Evidenze e limiti + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usano il canale 900 e l'ID 1400. Conservano 99 e 122 stati dichiarati entro il limite invariato di 128. v41 conserva percorsi, guadagni e clock e legge v1-v40. + +Sono controlli di ricerca e i parametri restano `unverified`. Coordinamento della coppia ECU, sensori/valvole dettagliati, guasti completi del veicolo e calibrazione OEM restano aperti. Le verifiche managed e Standard non provano l'accettazione reale Unity Editor/Play/Player/IL2CPP. diff --git a/docs/AT_CONTROL.ja.md b/docs/AT_CONTROL.ja.md new file mode 100644 index 0000000..8a1734c --- /dev/null +++ b/docs/AT_CONTROL.ja.md @@ -0,0 +1,19 @@ +# 油圧 AT フィードバック + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · **日本語** · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## 契約 + +`at_controller` は [-1,4] の整数目標段を受け取り、ゼロはニュートラルです。五組の充填/排油弁と任意のトルクコンバーターのロックアップを管理します。経路の順序はキャリア入力、小サン入力、大サン入力、キャリアブレーキ、大サンブレーキ、最後にロックアップです。 + +競合する段を作動させる前に、実際のパッド荷重で解放を確認します。上限付き圧力 PI は測定した室圧を使います。必要な接触とクラッチの物理的ロックが確認されて初めて段を有効と報告します。小数の要求や管理対象の弁への直接書き込みは対処可能なエラーを返します。 + +サンプル位相、故障、圧力積分、時刻は完全なトランザクション状態に含まれます。取消、後半の失敗、分岐でも同じ履歴を保ちます。故障には解放/係合のタイムアウト、供給圧不足、方向変更、確認済みロックの喪失があります。排油指令だけでは物理的に詰まった排油路を解放できません。 + +任意のロックアップは前進段、入力速度、滑り、待機時間の制限と独立した解除ヒステリシスを使います。出力は実際の Released/Applying/Locked/Releasing を示します。ロックアップは物理的なピストンクラッチであり、速度一致の指令ではありません。 + +## 証拠と制限 + +例 `controlled-hydraulic-ravigneaux` と `controlled-fired-hydraulic-ravigneaux` は要求チャンネル 900 とコントローラー ID 1400 を使います。変更していない 128 状態の上限内で 99 と 122 の報告状態を保ちます。v41 は経路、ゲイン、時計を保存し、v1-v40 を読みます。 + +研究用の制御であり、パラメーターは `unverified` のままです。ECU トルク協調、詳細なセンサー/弁、包括的な車両故障、OEM 校正は未完成です。managed と Standard の検査は実際の Unity Editor/Play/Player/IL2CPP の受入を証明しません。 diff --git a/docs/AT_CONTROL.ko.md b/docs/AT_CONTROL.ko.md new file mode 100644 index 0000000..3149632 --- /dev/null +++ b/docs/AT_CONTROL.ko.md @@ -0,0 +1,19 @@ +# 유압 AT 피드백 + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · **한국어** · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## 계약 + +`at_controller`는 [-1,4] 범위의 정수 목표 단을 받으며 영은 중립입니다. 다섯 쌍의 충전/배출 밸브와 선택적인 토크 컨버터 록업을 관리합니다. 경로 순서는 캐리어 입력, 작은 선기어 입력, 큰 선기어 입력, 캐리어 브레이크, 큰 선기어 브레이크, 마지막으로 록업입니다. + +충돌하는 단을 적용하기 전에 실제 패드 힘으로 해제를 확인합니다. 제한된 압력 PI는 측정한 챔버 압력을 사용합니다. 필요한 접촉과 클러치의 물리적 잠금이 확인된 뒤에만 단을 활성 상태로 보고합니다. 소수 요청과 소유된 밸브에 대한 직접 쓰기는 수정 가능한 오류를 반환합니다. + +샘플 단계, 고장, 압력 적분과 시간은 전체 트랜잭션 상태에 포함됩니다. 취소, 늦은 실패와 분기는 동일한 이력을 보존합니다. 고장은 해제/체결 시간 초과, 낮은 공급압, 방향 변경과 확인된 잠금 손실을 포함합니다. 배출 명령만으로 물리적으로 막힌 배출 경로를 해제할 수 없습니다. + +선택적 록업은 전진 단, 입력 속도, 슬립과 유지 시간 제한 및 별도의 해제 히스테리시스를 사용합니다. 출력은 실제 Released/Applying/Locked/Releasing 상태를 나타냅니다. 록업은 물리적 피스톤 클러치이며 속도 일치 명령이 아닙니다. + +## 증거와 한계 + +예제 `controlled-hydraulic-ravigneaux`와 `controlled-fired-hydraulic-ravigneaux`는 요청 채널 900과 컨트롤러 ID 1400을 사용합니다. 변경되지 않은 128 상태 한도 안에서 99와 122개의 보고 상태를 보존합니다. v41는 경로, 게인과 클록을 저장하고 v1-v40를 읽습니다. + +연구용 제어이며 매개변수는 `unverified`입니다. ECU 토크 협조, 상세 센서/밸브, 전체 차량 고장과 OEM 보정은 아직 미완성입니다. managed 및 Standard 검사는 실제 Unity Editor/Play/Player/IL2CPP 검증을 입증하지 않습니다. diff --git a/docs/AT_CONTROL.md b/docs/AT_CONTROL.md new file mode 100644 index 0000000..932b501 --- /dev/null +++ b/docs/AT_CONTROL.md @@ -0,0 +1,19 @@ +# Hydraulic AT feedback + +**English** · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## Contract + +`at_controller` accepts an integer requested range in [-1,4]; zero is neutral. It owns five fill/drain actuator pairs and optional converter lockup. Route order is carrier input, small-sun input, large-sun input, carrier brake, large-sun brake, then lockup. + +Release is confirmed from actual pad force before a conflicting range applies. Bounded pressure PI uses measured chamber pressure. A range becomes active only when the required contacts and physical clutch locks are confirmed. Fractional requests and direct writes to owned valves return actionable errors. + +Sampled phase, fault, pressure integrals and timing belong to the full transactional state. Cancellation, late failures and forks preserve the same histories. Faults cover release/apply timeout, low supply, direction change and loss of confirmed lock. A vent command cannot release a physically blocked drain. + +Optional lockup uses forward-range, input-speed, slip and dwell limits with separate unlock hysteresis. The output describes actual Released/Applying/Locked/Releasing state. Lockup is a physical piston clutch, not a commanded speed equality. + +## Evidence and limits + +The examples `controlled-hydraulic-ravigneaux` and `controlled-fired-hydraulic-ravigneaux` use request channel 900 and controller ID 1400. They retain 99 and 122 reported states within the unchanged 128-state limit. Asset v41 retains routes, gains and clocks and reads v1-v40. + +These are research controls and parameters remain `unverified`. Coordinated ECU torque blending, detailed sensors/valves, comprehensive vehicle faults and OEM calibration remain unfinished. Managed and Standard checks do not establish actual Unity Editor/Play/Player/IL2CPP acceptance. diff --git a/docs/AT_CONTROL.pt-BR.md b/docs/AT_CONTROL.pt-BR.md new file mode 100644 index 0000000..0f5cb7f --- /dev/null +++ b/docs/AT_CONTROL.pt-BR.md @@ -0,0 +1,19 @@ +# Realimentação de AT hidráulica + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · **Português** + +## Contrato + +`at_controller` aceita uma marcha solicitada inteira em [-1,4]; zero indica neutro. Ele controla cinco pares de válvulas de enchimento/drenagem e o bloqueio opcional do conversor. A ordem é entrada do portasatélites, solar pequeno, solar grande, freio do portasatélites, freio do solar grande e bloqueio. + +Antes de aplicar uma marcha incompatível, a força real das pastilhas confirma a liberação. O PI de pressão limitado usa a pressão medida nas câmaras. Uma marcha fica ativa somente após confirmar contatos e travamento físico das embreagens. Solicitações fracionárias e escritas diretas nas válvulas controladas retornam erros úteis. + +Fase amostrada, falha, integrais de pressão e tempos pertencem ao estado transacional completo. Cancelamento, falhas tardias e ramificações preservam os mesmos históricos. As falhas incluem tempo de liberação/aplicação, baixa alimentação, mudança de direção e perda do travamento confirmado. Um comando de drenagem não libera um dreno fisicamente bloqueado. + +O bloqueio opcional usa limites de marcha à frente, velocidade de entrada, deslizamento e espera com histerese de desbloqueio separada. A saída descreve o estado real Released/Applying/Locked/Releasing. É uma embreagem física com pistão, não uma igualdade de velocidade imposta. + +## Evidências e limites + +`controlled-hydraulic-ravigneaux` e `controlled-fired-hydraulic-ravigneaux` usam o canal 900 e o ID 1400. Preservam 99 e 122 estados relatados dentro do limite inalterado de 128. v41 preserva rotas, ganhos e relógios e lê v1-v40. + +São controles de pesquisa e os parâmetros continuam `unverified`. Coordenação de torque ECU, sensores/válvulas detalhados, falhas completas do veículo e calibração OEM permanecem pendentes. Verificações managed e Standard não comprovam aceitação real Unity Editor/Play/Player/IL2CPP. diff --git a/docs/AT_CONTROL.ru.md b/docs/AT_CONTROL.ru.md new file mode 100644 index 0000000..d906d2c --- /dev/null +++ b/docs/AT_CONTROL.ru.md @@ -0,0 +1,19 @@ +# Обратная связь гидравлической AT + +[English](AT_CONTROL.md) · [简体中文](AT_CONTROL.zh-CN.md) · [Français](AT_CONTROL.fr.md) · **Русский** · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## Контракт + +`at_controller` принимает целочисленную передачу в [-1,4]; ноль означает нейтраль. Он управляет пятью парами клапанов наполнения/слива и необязательной блокировкой гидротрансформатора. Порядок: вход водила, малого солнца, большого солнца, тормоз водила, тормоз большого солнца, затем блокировка. + +Перед включением конфликтующей передачи отпускание подтверждается фактической силой прижима. Ограниченный PI давления использует измеренное давление камер. Передача считается активной только после подтверждения контактов и физической блокировки муфт. Дробные запросы и прямые записи в принадлежащие контроллеру клапаны возвращают понятные ошибки. + +Дискретная фаза, ошибка, интегралы давления и время входят в полное транзакционное состояние. Отмена, поздние сбои и ветви сохраняют одинаковые истории. Ошибки охватывают тайм-аут отпускания/включения, низкое питание, смену направления и потерю подтверждённой блокировки. Команда слива не освобождает физически заблокированный слив. + +Необязательная блокировка использует ограничения передачи вперёд, входной скорости, скольжения и выдержки, с отдельным гистерезисом разблокировки. Выход описывает фактическое Released/Applying/Locked/Releasing. Это физическая поршневая муфта, а не команда равенства скоростей. + +## Доказательства и ограничения + +Примеры `controlled-hydraulic-ravigneaux` и `controlled-fired-hydraulic-ravigneaux` используют канал 900 и ID 1400. Они сохраняют 99 и 122 отслеживаемых состояния при неизменном пределе 128. Формат v41 хранит маршруты, усиления и часы и читает v1-v40. + +Это исследовательское управление, параметры остаются `unverified`. Координация момента ECU, подробные датчики/клапаны, полный набор неисправностей автомобиля и калибровка OEM ещё не завершены. Проверки managed и Standard не подтверждают реальные Unity Editor/Play/Player/IL2CPP. diff --git a/docs/AT_CONTROL.zh-CN.md b/docs/AT_CONTROL.zh-CN.md new file mode 100644 index 0000000..8a471b4 --- /dev/null +++ b/docs/AT_CONTROL.zh-CN.md @@ -0,0 +1,19 @@ +# 液压 AT 反馈控制 + +[English](AT_CONTROL.md) · **简体中文** · [Français](AT_CONTROL.fr.md) · [Русский](AT_CONTROL.ru.md) · [日本語](AT_CONTROL.ja.md) · [한국어](AT_CONTROL.ko.md) · [Deutsch](AT_CONTROL.de.md) · [Español](AT_CONTROL.es.md) · [Italiano](AT_CONTROL.it.md) · [Português](AT_CONTROL.pt-BR.md) + +## 接口约定 + +`at_controller` 接受 [-1,4] 范围内的整数目标挡位;零表示空挡。它管理五组充油/泄压阀以及可选的变矩器锁止支路。支路顺序为行星架输入、小太阳轮输入、大太阳轮输入、行星架制动、大太阳轮制动,最后是锁止。 + +施加冲突挡位前,控制器根据实际摩擦片压紧力确认释放。有限幅值的压力 PI 使用实测腔室压力。只有所需接触和离合器实际锁定得到确认,才报告挡位已接合。小数挡位和直接写入受控阀通道会返回可操作的错误。 + +采样阶段、故障、压力积分和时间状态纳入完整事务状态。取消、后期失败和分支保留相同历史。故障包括释放/接合超时、供压不足、方向切换及已确认锁定丢失。泄压命令无法释放物理上堵塞的排油支路。 + +可选锁止使用前进挡、输入转速、滑差和驻留时间限制,并设置独立的解锁滞回。输出描述实际 Released/Applying/Locked/Releasing 状态。锁止是物理活塞离合器,不是转速相等命令。 + +## 证据与限制 + +示例 `controlled-hydraulic-ravigneaux` 和 `controlled-fired-hydraulic-ravigneaux` 使用请求通道 900、控制器 ID 1400。两者分别保留 99 和 122 个报告状态,未改变 128 状态上限。资产 v41 保留支路、增益和时钟,并可读取 v1-v40。 + +这是研究控制,参数仍为 `unverified`。协调 ECU 扭矩融合、详细传感器/阀模型、完整车辆故障及 OEM 标定仍待完成。托管和 Standard 检查不能证明实际 Unity Editor/Play/Player/IL2CPP 验收。 diff --git a/docs/COMPLIANT_FUEL_VOLUME.de.md b/docs/COMPLIANT_FUEL_VOLUME.de.md new file mode 100644 index 0000000..8bddbc9 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.de.md @@ -0,0 +1,43 @@ +# Referenz für ein nachgiebiges Kraftstoffvolumen + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · **Deutsch** · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Konstitutiver Umfang + +`CompliantFuelVolume` liefert den konstitutiven Abschluss des Gleichgewichts-Kraftstoffnetzes. Er löst Flüssigkeit, Dampf und Koexistenz mit elastischem Speicher aus Gesamtmasse und Temperatur oder Energie. Die pumpengespeiste Injektoranbindung bleibt zu erweitern. [Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + +## Thermodynamik + +Flüssigkeitsdichte und Wärmekapazität sind konstant, der Dampf ist eine ideale Pseudospezies. Beide Phasen teilen die vorhandene Filmstoffreferenz. Das chemische Flüssigkeitspotenzial enthält `p/rho_l`. Somit ist `p_0(T)` die Stoffreferenz mit vernachlässigbarer Verdrängung und nicht der Sättigungsdruck des reinen Fluids mit endlicher Flüssigkeitsdichte. Die elastische Wand hat äußeren Druck null und speichert Druckarbeit einmal. + +`StoredEnergyJoules` enthält kalorische und elastische Energie; chemische Heizwertenergie bleibt bei der Graphanbindung eine eigene Bilanz. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +Koexistenz wählt die Dampfwurzel niedriger Dichte. Die Verdampfungsenthalpie ist `L_u + R T - p/rho_l`; die Druckableitung erfüllt Clapeyron. Bei fester Masse differenziert die gemeldete Wärmekapazität Fluid- und elastische Energie einschließlich Phasenübergang. Die Wand trägt keine Entropie. + +## Core-API + +`Evaluate` nimmt Temperatur und Gesamtmasse. `Flash` nimmt Gesamtmasse und gespeicherte Fluid- plus elastische Energie. `AdvanceHeat` tauscht mit endlichem Bad über erklärte Leitfähigkeit und lokale Dauer in Sekunden mittels implizitem Euler Wärme aus. Eigenschaftsnamen nennen SI-Einheiten. Lokale Aufrufe ersetzen nicht die begrenzte ganzzahlige Uhr von `Simulation`. + +`FuelVolumeStatus` unterscheidet ungültige Eingaben, Temperatur-, Massen- und Energiegrenzen und Solverfehler; abgelehnte Ausgaben sind Standardwerte. `Flash` erhält die angeforderte Energie und meldet den kalorischen Gleitkomma-Rekonstruktionsfehler als `CaloricResidualJoules`. Instanzen halten keinen fortschreitenden Zustand; erfolgreiche Aufrufe allozieren keinen verwalteten Speicher. + +## Gültigkeit + +Positives Referenzvolumen, positive Nachgiebigkeit, Flüssigkeitsdichte und maximalen Wanddruck erklären. Die Druckgrenze umfasst die gesamte Koexistenzkurve und bleibt unter `rho_l R T_min`. Die Koexistenz-Wandausdehnung bei Minimaltemperatur muss mindestens `128 * epsilon` des Referenzvolumens betragen, mit `epsilon = 2^-52`. Das schließt unaufgelöste Wandverformung und den dichten Dampfzweig außerhalb des erklärten Modells aus; ein kritischer Punkt wird nicht vorhergesagt. + +Stofftemperaturintervall und `0 < M <= rho_l (V_0 + C p_max)` einhalten. Vakuum, Trägergas, reale Gemische, Wärmeausdehnung, Wandträgheit, Oberflächenspannung und endliche Phasenkinetik liegen außerhalb. Stoff- und Wandparameter bleiben `unverified`. Wellengetriebene Pumpenfüllung, Injektoranbindung, aufgelöster Impuls und kritische Strömung brauchen weitere Kopplung und unabhängige Nachweise. + +`AdiabaticReferenceVolume` bewegt dasselbe unveränderliche Material zwischen expliziten Referenzvolumen bei fester Masse und Entropie. Die zurückgegebene Energieänderung enthält elastischen Speicher und ist mechanische Arbeit. Variable Auswertung, Flash und endliches Bad halten Stoff-/Wandgrenzen ein. [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + +## Unabhängige Nachweise + +Geprüft werden chemische Potenziale, Clapeyron-Steigungen, kalorische und Entropieableitungen sowie Gibbs mit elastischem Speicher. Unabhängige beschränkte Entropiemaximierung nutzt den Sättigungssolver nicht. Grenzfälle starrer Behälter, ideales Gas und extensive Skalierung sowie RK4-Verfeinerung des endlichen Bads liefern unabhängige Referenzen. Wärmeaustausch erhält Gesamtenergie und verfeinert erster Ordnung bei nicht sinkender Gesamtentropie. Das belegt weder gemessene Kraftstoffgültigkeit noch Unity-Abnahme. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.de.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.es.md b/docs/COMPLIANT_FUEL_VOLUME.es.md new file mode 100644 index 0000000..f0cd828 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.es.md @@ -0,0 +1,43 @@ +# Referencia de volumen de combustible flexible + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · **Español** · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Alcance constitutivo + +`CompliantFuelVolume` aporta el cierre constitutivo de la red de combustible en equilibrio. Resuelve líquido, vapor y coexistencia con almacenamiento elástico desde masa total y temperatura o energía. La ruta de inyector por bomba mantiene pendiente ampliar su acoplamiento. [Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + +## Termodinámica + +La densidad y el calor específico del líquido son constantes; el vapor es una pseudoespecie ideal. Las fases comparten la referencia material de la película existente. El potencial químico líquido incluye `p/rho_l`. Por tanto, `p_0(T)` es la referencia con desplazamiento despreciable, no la presión de saturación del fluido puro con densidad líquida finita. La pared tiene presión exterior cero y almacena el trabajo de presión una vez. + +`StoredEnergyJoules` contiene energía calórica y elástica; la energía química del poder calorífico mantiene un balance separado al conectar el cierre al grafo. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +La coexistencia selecciona la raíz de vapor de baja densidad. Su entalpía latente es `L_u + R T - p/rho_l`; la derivada de presión cumple Clapeyron. A masa fija, la capacidad térmica deriva energía del fluido más elasticidad, incluida la transferencia de fase. La pared no porta entropía. + +## API Core + +`Evaluate` recibe temperatura y masa total. `Flash` recibe masa y energía almacenada de fluido más elasticidad. `AdvanceHeat` intercambia calor con un baño finito mediante conductancia declarada y duración local en segundos, usando Euler implícito. Los nombres indican unidades SI. Las llamadas locales no sustituyen el reloj entero acotado de `Simulation`. + +`FuelVolumeStatus` distingue entrada inválida, límites de temperatura, masa y energía y fallo del solver; una salida rechazada toma el valor predeterminado. `Flash` conserva la energía solicitada e informa del error calórico de reconstrucción flotante como `CaloricResidualJoules`. Las instancias no guardan estado evolutivo y las llamadas correctas no asignan memoria administrada. + +## Validez + +Declarar volumen de referencia, flexibilidad, densidad líquida y presión máxima positivos. El límite de presión cubre toda la curva de coexistencia y está por debajo de `rho_l R T_min`. La expansión de coexistencia a temperatura mínima debe ser al menos `128 * epsilon` del volumen de referencia, con `epsilon = 2^-52`. Excluye deformación no resuelta y la rama de vapor denso fuera del modelo declarado; no predice un punto crítico. + +Respetar el intervalo térmico del material y `0 < M <= rho_l (V_0 + C p_max)`. Vacío, gas portador, mezclas reales, expansión térmica, inercia de pared, tensión superficial y cinética de fase finita quedan fuera. Los parámetros siguen `unverified`. Llenado de bomba por eje, conexión de inyector, cantidad de movimiento y flujo crítico requieren más acoplamiento y evidencia independiente. + +`AdiabaticReferenceVolume` mueve el mismo material inmutable entre volúmenes explícitos con masa y entropía fijas. El cambio de energía incluye elasticidad y es el trabajo mecánico. Evaluación variable, flash y baño finito respetan límites materiales y de pared. [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + +## Evidencia independiente + +Los controles comparan potenciales químicos, pendientes de Clapeyron, derivadas calóricas y entrópicas y Gibbs con almacenamiento elástico. Una maximización independiente de entropía restringida no usa el solver de saturación. Los límites de recipiente rígido, gas ideal y escala extensiva y el refinamiento RK4 del baño finito aportan referencias independientes. El intercambio conserva energía total y refina a primer orden con entropía total no decreciente. No acredita combustible medido ni aceptación Unity. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.es.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.fr.md b/docs/COMPLIANT_FUEL_VOLUME.fr.md new file mode 100644 index 0000000..4f893d4 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.fr.md @@ -0,0 +1,43 @@ +# Référence de volume de carburant déformable + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · **Français** · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Portée constitutive + +`CompliantFuelVolume` fournit la fermeture constitutive du réseau de carburant en équilibre. Elle résout liquide, vapeur et coexistence avec stockage élastique depuis masse totale et température ou énergie. Le chemin d'injecteur alimenté par pompe attend son couplage étendu. [Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + +## Thermodynamique + +La masse volumique et la capacité thermique du liquide sont constantes ; la vapeur est une pseudo-espèce idéale. Les deux phases partagent la référence du film existant. Le potentiel chimique liquide comprend `p/rho_l`. Ainsi, `p_0(T)` est la référence matière à déplacement négligeable, pas la pression de saturation du fluide pur de densité finie. La paroi élastique est à pression extérieure nulle et stocke une seule fois le travail de pression. + +`StoredEnergyJoules` contient l'énergie calorique et élastique ; l'énergie chimique du pouvoir calorifique reste un bilan séparé lors du raccordement au graphe. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +La coexistence sélectionne la racine de vapeur à faible densité. Son enthalpie latente vaut `L_u + R T - p/rho_l` ; la dérivée de pression satisfait Clapeyron. À masse fixe, la capacité thermique dérive l'énergie du fluide et de la paroi, transfert de phase compris. La paroi ne porte aucune entropie. + +## API Core + +`Evaluate` reçoit température et masse totale. `Flash` reçoit masse totale et énergie stockée fluide plus élasticité. `AdvanceHeat` échange avec un bain fini par une conductance déclarée et une durée locale en secondes, avec Euler implicite. Les noms des propriétés indiquent les unités SI. Ces appels locaux ne remplacent pas l'horloge entière bornée de `Simulation`. + +`FuelVolumeStatus` distingue entrée invalide, limites de température, masse et énergie, et échec du solveur ; une sortie rejetée vaut la valeur par défaut. `Flash` conserve l'énergie demandée et expose l'erreur calorique flottante dans `CaloricResidualJoules`. Les instances n'ont aucun état évolutif et les appels réussis n'allouent aucune mémoire managée. + +## Validité + +Déclarer volume de référence, compliance, densité liquide et pression maximale positifs. La limite de pression couvre toute la courbe de coexistence et reste sous `rho_l R T_min`. À la température minimale, la dilatation de coexistence doit atteindre au moins `128 * epsilon` du volume de référence, avec `epsilon = 2^-52`. Cela exclut la déformation non résolue et la branche de vapeur dense hors du modèle déclaré ; aucun point critique n'est prédit. + +Respecter l'intervalle thermique du matériau et `0 < M <= rho_l (V_0 + C p_max)`. Vide, gaz porteur, mélanges réels, dilatation thermique, inertie de paroi, tension superficielle et cinétique de phase finie sont hors portée. Les paramètres restent `unverified`. Remplissage de pompe entraînée par arbre, raccordement d'injecteur, quantité de mouvement et blocage sonique demandent encore couplage et preuves indépendantes. + +`AdiabaticReferenceVolume` déplace le même matériau immuable entre volumes de référence explicites à masse et entropie constantes. Sa variation d'énergie comprend l'élasticité et constitue le travail mécanique. Évaluation variable, flash et bain fini respectent les limites déclarées. [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + +## Preuves indépendantes + +Les contrôles comparent potentiels chimiques, pentes de Clapeyron, dérivées caloriques et entropiques et relation de Gibbs avec stockage élastique. Une maximisation indépendante de l'entropie contrainte n'utilise pas le solveur de saturation. Les limites de récipient rigide, gaz idéal et extensivité et le raffinement RK4 du bain fini servent de références. L'échange thermique conserve l'énergie totale et converge à l'ordre un avec entropie totale non décroissante. Cela ne valide ni carburant mesuré ni Unity. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.fr.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.it.md b/docs/COMPLIANT_FUEL_VOLUME.it.md new file mode 100644 index 0000000..ccbc2d9 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.it.md @@ -0,0 +1,43 @@ +# Riferimento del volume di carburante cedevole + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · **Italiano** · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Ambito costitutivo + +`CompliantFuelVolume` fornisce la chiusura costitutiva della rete di carburante in equilibrio. Risolve liquido, vapore e coesistenza con accumulo elastico da massa totale e temperatura o energia. Il percorso iniettore alimentato da pompa richiede ancora l’estensione dell’accoppiamento. [Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + +## Termodinamica + +Densità e calore specifico del liquido sono costanti; il vapore è una pseudo-specie ideale. Le fasi condividono il riferimento materiale del film esistente. Il potenziale chimico liquido include `p/rho_l`. Quindi `p_0(T)` è il riferimento a spostamento trascurabile, non la pressione di saturazione del fluido puro con densità liquida finita. La parete ha pressione esterna nulla e immagazzina una sola volta il lavoro di pressione. + +`StoredEnergyJoules` include energia calorica ed elastica; l’energia chimica del potere calorifico resta un bilancio separato nel collegamento al grafo. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +La coesistenza sceglie la radice del vapore a bassa densità. L’entalpia latente è `L_u + R T - p/rho_l`; la derivata della pressione soddisfa Clapeyron. A massa fissa, la capacità termica deriva energia del fluido ed elastica includendo il trasferimento di fase. La parete non porta entropia. + +## API Core + +`Evaluate` riceve temperatura e massa totale. `Flash` riceve massa ed energia accumulata del fluido più elasticità. `AdvanceHeat` scambia calore con un bagno finito tramite conduttanza dichiarata e durata locale in secondi, usando Euler implicito. I nomi indicano le unità SI. Le chiamate locali non sostituiscono l’orologio intero limitato di `Simulation`. + +`FuelVolumeStatus` distingue ingresso non valido, limiti di temperatura, massa ed energia e fallimento del solver; gli output rifiutati sono predefiniti. `Flash` conserva l’energia richiesta e segnala l’errore calorico di ricostruzione in virgola mobile in `CaloricResidualJoules`. Le istanze non conservano stato evolutivo e le chiamate riuscite non allocano memoria gestita. + +## Validità + +Dichiarare volume di riferimento, cedevolezza, densità liquida e pressione massima positivi. Il limite copre tutta la curva di coesistenza e resta sotto `rho_l R T_min`. L’espansione di coesistenza alla temperatura minima deve essere almeno `128 * epsilon` del volume di riferimento, con `epsilon = 2^-52`. Esclude deformazioni irrisolte e il ramo di vapore denso fuori dal modello dichiarato; non predice un punto critico. + +Rispettare l’intervallo termico materiale e `0 < M <= rho_l (V_0 + C p_max)`. Vuoto, gas portante, miscele reali, dilatazione termica, inerzia della parete, tensione superficiale e cinetica di fase finita sono esclusi. I parametri restano `unverified`. Riempimento pompa da albero, collegamento iniettore, quantità di moto e flusso critico richiedono ulteriore accoppiamento ed evidenze indipendenti. + +`AdiabaticReferenceVolume` sposta lo stesso materiale immutabile tra volumi espliciti a massa ed entropia fisse. La variazione di energia include elasticità ed è il lavoro meccanico. Valutazione variabile, flash e bagno finito rispettano i limiti dichiarati. [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + +## Evidenze indipendenti + +Si confrontano potenziali chimici, pendenze di Clapeyron, derivate caloriche ed entropiche e Gibbs con accumulo elastico. Una massimizzazione indipendente dell’entropia vincolata non usa il solver di saturazione. Limiti di recipiente rigido, gas ideale e scala estensiva e raffinamento RK4 del bagno finito forniscono riferimenti indipendenti. Lo scambio conserva l’energia totale e converge al primo ordine con entropia totale non decrescente. Non dimostra validità misurata del carburante né accettazione Unity. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.it.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.ja.md b/docs/COMPLIANT_FUEL_VOLUME.ja.md new file mode 100644 index 0000000..9c8fa63 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.ja.md @@ -0,0 +1,43 @@ +# 弾性燃料容積の参照モデル + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · **日本語** · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## 構成則の範囲 + +`CompliantFuelVolume` は相平衡燃料ネットワークの構成則閉包を提供します。総質量と温度またはエネルギーから液体、蒸気、弾性蓄積を伴う共存を解決します。ポンプ供給噴射経路の結合拡張は残ります。 [相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + +## 熱力学 + +液体の密度と比熱は一定で、蒸気は理想擬似成分です。両相は既存の燃料膜物性基準を共有します。液体の化学ポテンシャルは `p/rho_l` を含むため、`p_0(T)` は液体排除体積を無視した物性基準であり、有限密度の純流体の飽和圧力ではありません。弾性壁の外圧はゼロで、圧力仕事を一度だけ蓄えます。 + +`StoredEnergyJoules` は熱量と弾性エネルギーを含みます。グラフへ接続する際、発熱量に対応する化学エネルギーは別の台帳で扱います。 + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +共存状態は低密度蒸気の根を選びます。潜熱エンタルピーは `L_u + R T - p/rho_l` で、圧力導関数は Clapeyron 関係を満たします。固定質量での報告熱容量は相移動を含め、流体と弾性の合計エネルギーを微分します。壁はエントロピーを持ちません。 + +## Core API + +`Evaluate` は温度と総質量を受け取ります。`Flash` は総質量と流体・弾性の合計蓄積エネルギーを受け取ります。`AdvanceHeat` は宣言した熱コンダクタンスと秒単位の局所時間を用い、後退 Euler 法で有限熱浴と熱交換します。属性名には SI 単位を明記します。これらは `Simulation` の有界整数時計を置き換えません。 + +`FuelVolumeStatus` は無効入力、温度・質量・エネルギー範囲外、ソルバー失敗を区別し、拒否時の出力は既定値です。`Flash` は指定エネルギーを保持し、浮動小数点の熱量再構成誤差を `CaloricResidualJoules` に示します。インスタンスは進行状態を持たず、成功呼び出しはマネージドメモリを割り当てません。 + +## 適用範囲 + +正の基準体積、コンプライアンス、液体密度、最大壁圧を宣言します。圧力上限は全共存曲線を覆い、`rho_l R T_min` 未満です。最低温度の共存壁膨張は基準体積に対し最低 `128 * epsilon`、`epsilon = 2^-52` とします。分解不能な壁変形と宣言したモデル範囲外の高密度蒸気分岐を除外しますが、臨界点は予測しません。 + +物性温度区間と `0 < M <= rho_l (V_0 + C p_max)` を守ります。真空、キャリアガス、実混合物、熱膨張、有限壁慣性、表面張力、有限速度相変化は対象外です。物性・壁パラメーターは `unverified` 軸駆動ポンプ充填、噴射器接続、運動量の解決、チョーク流にはさらに結合と独立証拠が必要です。 + +`AdiabaticReferenceVolume` は質量・エントロピー一定で同じ不変物性を明示した基準体積間に移します。返すエネルギー変化は弾性蓄積を含む機械仕事です。可変体積評価、フラッシュ、有限熱浴は宣言した物性・壁限界を守ります。 [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + +## 独立した証拠 + +化学ポテンシャル、Clapeyron 勾配、熱量・エントロピー導関数、弾性蓄積を含む Gibbs 関係を比較します。独立した拘束付きエントロピー最大化は飽和ソルバーを使いません。剛体容器、理想気体、示量性スケーリングの極限と有限熱浴 RK4 細分化が独立参照です。熱交換は総エネルギーを保存し、総エントロピー非減少で一次収束します。実測燃料妥当性や Unity 検証を意味しません。 + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.ja.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.ko.md b/docs/COMPLIANT_FUEL_VOLUME.ko.md new file mode 100644 index 0000000..bfb3ebd --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.ko.md @@ -0,0 +1,43 @@ +# 탄성 연료 체적 참조 모델 + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · **한국어** · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## 구성 관계 범위 + +`CompliantFuelVolume`은 상평형 연료 네트워크의 구성 폐쇄 관계를 제공합니다. 총질량과 온도 또는 에너지에서 액체, 증기, 탄성 저장을 동반한 공존을 풉니다. 펌프 공급 인젝터 경로는 결합 확장이 남습니다. [상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + +## 열역학 + +액체의 밀도와 비열은 일정하며 증기는 이상 의사 성분입니다. 두 상은 기존 액막 물성 기준을 공유합니다. 액체 화학 퍼텐셜은 `p/rho_l`을 포함하므로 `p_0(T)`는 액체 변위를 무시한 물성 기준이며 유한 밀도 순수 유체의 포화 압력이 아닙니다. 탄성 벽 외압은 0이며 압력 일을 한 번만 저장합니다. + +`StoredEnergyJoules`는 열량 및 탄성 에너지를 포함합니다. 그래프에 연결할 때 발열량에 해당하는 화학 에너지는 별도 장부로 유지합니다. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +공존 상태는 낮은 증기 밀도의 근을 선택합니다. 잠재 엔탈피는 `L_u + R T - p/rho_l`이며 압력 도함수는 Clapeyron 관계를 만족합니다. 고정 질량에서 보고한 열용량은 상전달을 포함한 유체 및 탄성 총에너지를 미분합니다. 벽은 엔트로피를 갖지 않습니다. + +## Core API + +`Evaluate`는 온도와 총질량을 받습니다. `Flash`는 총질량과 유체 및 탄성 저장 에너지를 받습니다. `AdvanceHeat`는 선언된 열전도도와 초 단위 국소 시간으로 후진 Euler를 적용해 유한 열욕과 열을 교환합니다. 속성 이름에 SI 단위가 명시됩니다. 이 국소 호출은 `Simulation`의 제한된 정수 시계를 대체하지 않습니다. + +`FuelVolumeStatus`는 잘못된 입력, 온도·질량·에너지 범위, 솔버 실패를 구분하며 거부된 출력은 기본값입니다. `Flash`는 요청 에너지를 유지하고 부동소수점 열량 재구성 오차를 `CaloricResidualJoules`로 보고합니다. 인스턴스는 변화하는 상태를 보유하지 않으며 성공 호출은 관리 메모리를 할당하지 않습니다. + +## 유효 범위 + +양의 기준 체적, 컴플라이언스, 액체 밀도 및 최대 벽 압력을 선언합니다. 압력 한계는 전체 공존 곡선을 포함하며 `rho_l R T_min`보다 작습니다. 최저 온도의 공존 벽 팽창은 기준 체적의 최소 `128 * epsilon`이며 `epsilon = 2^-52`입니다. 분해할 수 없는 벽 변형과 선언한 모델 범위 밖의 고밀도 증기 분기를 제외하지만 임계점을 예측하지는 않습니다. + +물성 온도 구간과 `0 < M <= rho_l (V_0 + C p_max)`를 지킵니다. 진공, 운반 기체, 실제 혼합물, 열팽창, 유한 벽 관성, 표면 장력 및 유한 속도 상변화는 범위 밖입니다. 물성과 벽 매개변수는 `unverified`로 축 구동 펌프 충전, 인젝터 연결, 운동량 해석 및 초킹에는 추가 결합과 독립 근거가 필요합니다. + +`AdiabaticReferenceVolume`는 질량과 엔트로피를 고정한 채 동일한 불변 물성을 명시적 기준 체적 사이로 옮깁니다. 반환 에너지 변화는 탄성 저장을 포함한 기계 일입니다. 가변 체적 평가, 플래시, 유한 열욕은 선언된 물성 및 벽 한계를 지킵니다. [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + +## 독립 근거 + +화학 퍼텐셜, Clapeyron 기울기, 열량 및 엔트로피 도함수, 탄성 저장을 포함한 Gibbs 관계를 비교합니다. 독립 구속 엔트로피 최대화는 포화 솔버를 사용하지 않습니다. 강체 용기, 이상 기체 및 광역성 비례 극한과 유한 열욕 RK4 세분화가 독립 참조입니다. 열교환은 총에너지를 보존하며 총엔트로피 비감소 조건에서 1차 수렴합니다. 실측 연료 유효성이나 Unity 승인을 뜻하지 않습니다. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.ko.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.md b/docs/COMPLIANT_FUEL_VOLUME.md new file mode 100644 index 0000000..c98f5ba --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.md @@ -0,0 +1,43 @@ +# Compliant fuel volume reference + +**English** · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Constitutive scope + +`CompliantFuelVolume` supplies the constitutive closure used by the equilibrium fuel network. It resolves liquid, vapor and coexistence with elastic storage from total mass and temperature or stored energy. The pump-fed injector path remains separate until its coupling is extended. [Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + +## Thermodynamics + +Liquid has constant density and heat capacity; vapor is an ideal pseudo-species. Both share the existing film material reference. The liquid chemical potential includes `p/rho_l`. Consequently `p_0(T)` is the negligible-displacement material reference, not the finite-density pure-fluid saturation pressure. The elastic wall has zero external pressure and stores pressure work once. + +`StoredEnergyJoules` contains caloric and elastic energy; chemical heating-value energy remains a separate ledger when this closure is connected to the graph. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +Coexistence selects the low-density vapor root. Its latent enthalpy is `L_u + R T - p/rho_l`; the pressure derivative satisfies the Clapeyron relation. At fixed mass the reported heat capacity differentiates fluid plus elastic energy, including phase transfer. The wall carries no entropy. + +## Core API + +`Evaluate` takes temperature and total mass. `Flash` takes total mass and fluid-plus-elastic stored energy. `AdvanceHeat` exchanges heat with a finite bath through a declared conductance and local duration in seconds, using backward Euler. SI units appear in property names. These local calls do not replace the bounded integer clock of `Simulation`. + +`FuelVolumeStatus` distinguishes invalid input, temperature, mass and energy bounds, and solver failure; rejected outputs are default. `Flash` retains the requested energy and reports floating-point caloric reconstruction error as `CaloricResidualJoules`. Instances hold no evolving state and successful calls allocate no managed memory. + +## Validity + +Declare positive reference volume, compliance, liquid density and maximum wall pressure. The pressure limit covers the entire coexistence curve and stays below `rho_l R T_min`. The minimum-temperature coexistence wall expansion must be at least `128 * epsilon` of the reference volume, where `epsilon = 2^-52`. This excludes unresolved wall deformation and the dense-vapor branch outside the declared model; it does not predict a critical point. + +Use the material temperature interval and `0 < M <= rho_l (V_0 + C p_max)`. Vacuum, carrier gas, real mixtures, thermal expansion, finite wall inertia, surface tension and finite-rate phase kinetics are outside this reference. Material and wall parameters remain `unverified`. Shaft-driven pump filling, injector handoff, resolved momentum and choking require further coupling and independent evidence. + +`AdiabaticReferenceVolume` moves the same immutable material between explicit reference volumes at fixed total mass and entropy. Its returned energy change includes elastic storage and is the mechanical work. Variable-volume evaluation, flash and finite-bath heat remain bounded by the declared material and wall limits. [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + +## Independent evidence + +Checks compare chemical potentials, Clapeyron slopes, caloric and entropy derivatives, and the Gibbs relation with elastic storage. An independent constrained entropy maximization does not use the saturation solve. Rigid-vessel, ideal-gas and extensive-scaling limits and finite-bath RK4 refinement provide independent references. Heat exchange conserves total energy and has first-order refinement with nondecreasing total entropy. This evidence does not establish measured fuel validity or Unity acceptance. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.pt-BR.md b/docs/COMPLIANT_FUEL_VOLUME.pt-BR.md new file mode 100644 index 0000000..c8bf667 --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.pt-BR.md @@ -0,0 +1,43 @@ +# Referência de volume de combustível complacente + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · **Português** + +## Escopo constitutivo + +`CompliantFuelVolume` fornece o fechamento constitutivo da rede de combustível em equilíbrio. Resolve líquido, vapor e coexistência com armazenamento elástico por massa total e temperatura ou energia. O caminho de injetor alimentado por bomba ainda exige ampliar o acoplamento. [Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Termodinâmica + +Densidade e calor específico do líquido são constantes; o vapor é uma pseudoespécie ideal. As fases compartilham a referência material do filme existente. O potencial químico líquido inclui `p/rho_l`. Portanto, `p_0(T)` é a referência com deslocamento desprezível, não a pressão de saturação do fluido puro com densidade líquida finita. A parede tem pressão externa zero e armazena o trabalho de pressão uma vez. + +`StoredEnergyJoules` contém energia calórica e elástica; a energia química do poder calorífico mantém um balanço separado na conexão ao grafo. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +A coexistência seleciona a raiz de vapor de baixa densidade. Sua entalpia latente é `L_u + R T - p/rho_l`; a derivada da pressão satisfaz Clapeyron. Com massa fixa, a capacidade térmica deriva energia do fluido mais elasticidade, incluindo transferência de fase. A parede não carrega entropia. + +## API Core + +`Evaluate` recebe temperatura e massa total. `Flash` recebe massa e energia armazenada do fluido mais elasticidade. `AdvanceHeat` troca calor com banho finito por condutância declarada e duração local em segundos, usando Euler implícito. Os nomes indicam unidades SI. Essas chamadas locais não substituem o relógio inteiro limitado de `Simulation`. + +`FuelVolumeStatus` distingue entrada inválida, limites de temperatura, massa e energia e falha do solver; saídas rejeitadas têm valor padrão. `Flash` preserva a energia pedida e informa o erro calórico de reconstrução em ponto flutuante em `CaloricResidualJoules`. As instâncias não guardam estado evolutivo e chamadas bem-sucedidas não alocam memória gerenciada. + +## Validade + +Declarar volume de referência, complacência, densidade líquida e pressão máxima positivos. O limite cobre toda a curva de coexistência e fica abaixo de `rho_l R T_min`. A expansão de coexistência na temperatura mínima deve ser ao menos `128 * epsilon` do volume de referência, com `epsilon = 2^-52`. Exclui deformação não resolvida e o ramo de vapor denso fora do modelo declarado; não prevê um ponto crítico. + +Respeitar o intervalo térmico material e `0 < M <= rho_l (V_0 + C p_max)`. Vácuo, gás portador, misturas reais, expansão térmica, inércia da parede, tensão superficial e cinética de fase finita ficam fora. Parâmetros permanecem `unverified`. Enchimento de bomba por eixo, conexão de injetor, quantidade de movimento e escoamento crítico exigem mais acoplamento e evidências independentes. + +`AdiabaticReferenceVolume` move o mesmo material imutável entre volumes explícitos com massa e entropia fixas. A mudança de energia inclui elasticidade e é o trabalho mecânico. Avaliação variável, flash e banho finito respeitam os limites declarados. [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Evidências independentes + +Os testes comparam potenciais químicos, inclinações de Clapeyron, derivadas calóricas e entrópicas e Gibbs com armazenamento elástico. A maximização independente da entropia restrita não usa o solver de saturação. Limites de recipiente rígido, gás ideal e escala extensiva e refinamento RK4 do banho finito fornecem referências independentes. A troca preserva energia total e refina em primeira ordem com entropia total não decrescente. Não comprova propriedades medidas de combustível nem aceitação Unity. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.pt-BR.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.ru.md b/docs/COMPLIANT_FUEL_VOLUME.ru.md new file mode 100644 index 0000000..b2a16bb --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.ru.md @@ -0,0 +1,43 @@ +# Эталон податливого объёма топлива + +[English](COMPLIANT_FUEL_VOLUME.md) · [简体中文](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · **Русский** · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## Область определяющей модели + +`CompliantFuelVolume` задаёт определяющее замыкание сети равновесного топлива. По полной массе и температуре или энергии оно разрешает жидкость, пар и сосуществование с упругим накоплением. Насосный путь форсунки пока требует расширения сопряжения. [Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + +## Термодинамика + +Плотность и теплоёмкость жидкости постоянны, пар — идеальная псевдокомпонента. Фазы используют существующую материальную опору плёнки. Химический потенциал жидкости включает `p/rho_l`. Поэтому `p_0(T)` — опора с пренебрежимо малым вытеснением, а не давление насыщения чистой среды с конечной плотностью жидкости. Внешнее давление упругой стенки равно нулю; работа давления учитывается один раз. + +`StoredEnergyJoules` содержит калорическую и упругую энергию; химическая энергия теплоты сгорания при подключении к графу остаётся отдельной статьёй баланса. + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +Выбирается корень пара низкой плотности. Скрытая энтальпия равна `L_u + R T - p/rho_l`, производная давления удовлетворяет соотношению Клапейрона. При фиксированной массе теплоёмкость дифференцирует энергию среды и упругой стенки с учётом фазового переноса. Стенка не несёт энтропии. + +## Core API + +`Evaluate` принимает температуру и полную массу. `Flash` принимает массу и суммарную энергию среды и упругости. `AdvanceHeat` обменивается теплом с конечной ванной через заданную проводимость за локальное время в секундах методом неявного Эйлера. Единицы SI указаны в свойствах. Локальные вызовы не заменяют ограниченные целочисленные часы `Simulation`. + +`FuelVolumeStatus` различает неверный ввод, границы температуры, массы и энергии и отказ решателя; отклонённый выход равен значению по умолчанию. `Flash` сохраняет запрошенную энергию и выдаёт ошибку калорической реконструкции в `CaloricResidualJoules`. Экземпляры не хранят развивающееся состояние; успешные вызовы не выделяют управляемую память. + +## Применимость + +Явно задать положительные опорный объём, податливость, плотность жидкости и предел давления стенки. Предел покрывает всю кривую сосуществования и ниже `rho_l R T_min`. При минимальной температуре расширение стенки при сосуществовании должно быть не менее `128 * epsilon` опорного объёма, где `epsilon = 2^-52`. Исключаются неразрешимая деформация и ветвь плотного пара вне объявленной модели; критическая точка не предсказывается. + +Соблюдать температурный интервал материала и `0 < M <= rho_l (V_0 + C p_max)`. Вакуум, газ-носитель, реальные смеси, тепловое расширение, инерция стенки, поверхностное натяжение и конечная кинетика фаз вне модели. Параметры остаются `unverified`. Наполнение насоса от вала, подключение форсунки, разрешение импульса и критическое течение требуют дальнейшего сопряжения и независимых доказательств. + +`AdiabaticReferenceVolume` переносит тот же неизменяемый материал между явными опорными объёмами при постоянных массе и энтропии. Изменение энергии включает упругость и равно механической работе. Переменный объём, flash и конечная ванна ограничены объявленными свойствами и стенкой. [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + +## Независимые доказательства + +Проверки сравнивают химические потенциалы, наклоны Клапейрона, производные энергии и энтропии и соотношение Гиббса с упругим накоплением. Независимая максимизация энтропии с ограничениями не использует решатель насыщения. Пределы жёсткого сосуда, идеального газа и экстенсивного масштабирования, а также уточнение RK4 конечной ванны дают независимые опоры. Теплообмен сохраняет энергию и сходится с первым порядком при неубывании полной энтропии. Это не подтверждает измеренные свойства топлива или приёмку Unity. + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.ru.md) diff --git a/docs/COMPLIANT_FUEL_VOLUME.zh-CN.md b/docs/COMPLIANT_FUEL_VOLUME.zh-CN.md new file mode 100644 index 0000000..9d51acd --- /dev/null +++ b/docs/COMPLIANT_FUEL_VOLUME.zh-CN.md @@ -0,0 +1,43 @@ +# 柔性燃料容积参考模型 + +[English](COMPLIANT_FUEL_VOLUME.md) · **简体中文** · [Français](COMPLIANT_FUEL_VOLUME.fr.md) · [Русский](COMPLIANT_FUEL_VOLUME.ru.md) · [日本語](COMPLIANT_FUEL_VOLUME.ja.md) · [한국어](COMPLIANT_FUEL_VOLUME.ko.md) · [Deutsch](COMPLIANT_FUEL_VOLUME.de.md) · [Español](COMPLIANT_FUEL_VOLUME.es.md) · [Italiano](COMPLIANT_FUEL_VOLUME.it.md) · [Português](COMPLIANT_FUEL_VOLUME.pt-BR.md) + +## 本构范围 + +`CompliantFuelVolume` 为相平衡燃料网络提供本构闭合关系,根据总质量与温度或储能求解液态、蒸气及带弹性储能的共存。泵供油喷油器路径仍待扩展耦合。 [相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + +## 热力学 + +液体密度与比热恒定,蒸气采用理想伪组分。两相共用现有油膜物性参考。液体化学势包含 `p/rho_l`,因此 `p_0(T)` 是忽略液体排量的物性参考,并非有限密度纯流体的饱和压力。弹性壁外压为零,压力功只储存一次。 + +`StoredEnergyJoules` 包含热量与弹性储能;接入图模型时,燃料热值对应的化学能仍使用独立账本。 + +```text +V = V_0 + C p = m_l / rho_l + m_v R T / p +E = m_l (cl T + a) + m_v cv T + C p^2 / 2 +ln(p / p_0(T)) = p / (rho_l R T) [coexistence] +h = (U_fluid + p V) / M +dE = T dS + mu dM [fixed vessel parameters] +``` + +共存状态选择低密度蒸气根。汽化焓为 `L_u + R T - p/rho_l`,压力导数满足 Clapeyron 关系。固定质量下,报告热容对流体与弹性总能求导,并包含相转移贡献。弹性壁不携带熵。 + +## Core API + +`Evaluate` 接收温度和总质量。`Flash` 接收总质量与流体加弹性储能。`AdvanceHeat` 通过声明的热导和以秒表示的局部时长,采用后向 Euler 与有限热浴交换热量。属性名称明确 SI 单位。这些局部调用不替代 `Simulation` 的有界整数时钟。 + +`FuelVolumeStatus` 区分无效输入、温度、质量及能量越界和求解失败;拒绝时输出为默认值。`Flash` 保留请求的能量,并以 `CaloricResidualJoules` 报告浮点热量重构误差。实例不持有演化状态,成功调用不分配托管内存。 + +## 适用范围 + +显式声明正参考体积、顺应性、液体密度和最大壁压。压力上限覆盖完整共存曲线,并低于 `rho_l R T_min`。最低温度共存状态的壁膨胀相对参考体积至少达到 `128 * epsilon`,其中 `epsilon = 2^-52`。此限制排除无法分辨的壁变形与超出声明模型范围的高密度蒸气分支,不预测临界点。 + +使用声明的物性温度区间及 `0 < M <= rho_l (V_0 + C p_max)`。真空、载气、真实混合物、热膨胀、有限壁惯性、表面张力和有限速率相变动力学不在此参考范围内。物性与壁参数保持 `unverified`。 轴驱动泵充填、喷油器交接、动量求解和临界流仍需进一步耦合及独立证据。 + +`AdiabaticReferenceVolume` 在质量和熵不变时,将同一不可变物性移到显式参考体积。返回能量变化包含弹性储能,也就是机械功。变体积计算、闪蒸与有限热浴传热均受声明的物性及壁边界约束。 [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + +## 独立证据 + +检查比较化学势、Clapeyron 斜率、热量与熵导数,以及包含弹性储能的 Gibbs 关系。独立约束熵最大化不使用饱和求解器。刚性容器、理想气体与广延缩放极限及有限热浴 RK4 细化提供独立参考。热交换保持总能量守恒,并在总熵不减条件下呈现一阶收敛。这些证据不等于实测燃料有效性或 Unity 验收。 + +[NIST: pure-fluid equilibrium](https://pages.nist.gov/teqp-docs/en/main/algorithms/VLE.html) · [Cantera: constant-volume thermodynamics](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [VALIDATION.md](VALIDATION.zh-CN.md) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.de.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.de.md new file mode 100644 index 0000000..ee429e1 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.de.md @@ -0,0 +1,41 @@ +# Wellengetriebene kompressible Kraftstoffkammern + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · **Deutsch** · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Physikalischer Vertrag + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. + +`node_a` ist rotatorisch, `node_b` hat genau einen Geometrieeigentümer. `minimum_reference_volume`, `swept_volume` und `phase` angeben; das Anfangsvolumen muss zum Anfangswinkel passen. Der gemischte Behälter hat keine mittlere Geschwindigkeit und darf keine interne Zelle sein. Die masselose sinusförmige Mechanik ergänzt keine Kolben- oder Nockenträgheit; die Wellenträgheit ist explizit. Der äußere Gehäusedruck ist null. + +## Arbeit und Transport + +Der geschlossene Arbeitsschritt hält Masse und Entropie konstant. Kalte Kompressionsenergie und kalorische Energie verwenden dasselbe Gleichgewichtspotenzial wie der Kanal. Reine Flüssigkeit nutzt das exakte Druckintegral, idealer Dampf seine analytische Adiabate. Beim Phasenwechsel wird Entropie invertiert und der Energieendzustand geprüft. Die akzeptierte Energiedifferenz liefert das diskrete Druckmoment im gemeinsamen mechanischen Löser. Positives `hydraulic_work` bedeutet Energie von Welle zu Fluid. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +Der bewegliche Behälter verwendet halben Transport, volle Wellenarbeit und halben Transport. Der Transport bleibt erster Ordnung mit numerischer Diffusion; symmetrische Aufteilung erhöht die Ordnung nicht. Glatte geschlossene Flüssigkeitsbewegung konvergiert zweiter Ordnung. Winkeländerungen sind auf 0.25 rad je mechanischem Intervall begrenzt. CFL, Stoffgrenzen, vollständige Rücknahme, Abbruch und unabhängige Zweige gelten weiterhin. Stationärer Anschluss-/Gehäuseimpuls ist von der Kolbendruckarbeit getrennt. + +## Nutzung und Nachweise + +`compressible-fuel-chamber-duct` oder `electric-compressible-fuel-duct` ausführen. Behältermasse, Volumen, Druck, Temperatur, Entropie und Dampfanteil neben Zellzuständen und Kammermoment, Leistung und Arbeit lesen. Unabhängige Flüssigkeitsarbeit und Dampfgrenzen, separat invertierte Gleichgewichtsisentrope und Druckquadratur, Flüssigkeitswellen-ODE und RK4-Verfeinerung der idealen Dampf-Semidiskretisierung prüfen die Lösung. Erhaltung, elektrische/Zahnrad-/Hydraulik-/Kupplungskomposition, portable Wiedergabe, tatsächliches MCP und allokationsfreie Transaktionen werden getrennt geprüft. Zahlen stehen in den Validierungsnachweisen. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Gültigkeit und offene Arbeiten + +Parameter bleiben `unverified`. Das reine Gleichgewichtspseudofluid nutzt kompressible Flüssigkeit ohne thermische Ausdehnung und idealen Dampf, eine gemischte Kammer und starre Zellen. Temperatur- und Druckgrenzen gelten. Die Kammer löst keine mittlere kinetische Energie auf und enthält kein automatisches Rückschlagventil. Endliche Keimbildung, Phasenschlupf, reales kritisches Verhalten, Messkalibrierung und tatsächliche Unity-Abnahme bleiben offen. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.es.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.es.md new file mode 100644 index 0000000..433e001 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.es.md @@ -0,0 +1,41 @@ +# Cámaras de combustible compresible accionadas por eje + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · **Español** · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Contrato físico + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. + +`node_a` es rotacional y `node_b` tiene un único propietario geométrico. Declare `minimum_reference_volume`, `swept_volume` y `phase`; el volumen inicial debe coincidir con el ángulo inicial. El depósito mezclado tiene velocidad global cero y no puede ser celda interna. El mecanismo sinusoidal sin masa no añade inercia de pistón o leva; la inercia del eje es explícita. La presión exterior de carcasa es cero. + +## Trabajo y transporte + +El paso de trabajo cerrado mantiene masa y entropía. Energía de compresión fría y energía calórica usan el potencial de equilibrio del conducto. El líquido puro usa la integral exacta de presión y el vapor ideal su adiabática analítica. El cambio de fase invierte entropía y comprueba la energía final. La diferencia aceptada determina un par discreto en la resolución mecánica común. Un `hydraulic_work` positivo significa energía del eje al fluido. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +El depósito móvil usa medio transporte, trabajo completo del eje y medio transporte. El transporte sigue siendo de primer orden con difusión numérica; la separación simétrica no eleva su orden. El movimiento líquido cerrado y suave converge a segundo orden. Los incrementos angulares se limitan a 0.25 rad por intervalo mecánico. Siguen aplicándose CFL, límites materiales, reversión completa, cancelación y ramas independientes. El impulso estacionario de puertos/carcasa se separa del trabajo del pistón. + +## Uso y evidencia + +Ejecute `compressible-fuel-chamber-duct` o `electric-compressible-fuel-duct`. Lea masa, volumen, presión, temperatura, entropía y fracción de vapor junto a estados de celda, par, potencia y trabajo. Las pruebas emplean trabajo líquido y límites de vapor independientes, isentrópica de equilibrio invertida aparte y cuadratura de presión, EDO del eje líquido y refinamiento RK4 de ecuaciones semidiscretas de vapor ideal. Conservación, composición eléctrica/engranajes/hidráulica/embrague, reproducción portable, MCP real y transacciones sin asignaciones se verifican por separado. Los resultados están en la evidencia de validación. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Validez y trabajo pendiente + +Los parámetros siguen `unverified`. El pseudofluido puro en equilibrio usa líquido compresible sin expansión térmica y vapor ideal, cámara mezclada y celdas rígidas. Respete los límites de temperatura y presión. La cámara no resuelve energía cinética global ni incluye válvula antirretorno automática. Nucleación a velocidad finita, deslizamiento, comportamiento crítico real, calibración medida y aceptación real de Unity siguen pendientes. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.fr.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.fr.md new file mode 100644 index 0000000..9b9e68d --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.fr.md @@ -0,0 +1,41 @@ +# Chambres de carburant compressible entraînées par arbre + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · **Français** · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Contrat physique + +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. + +Le port `node_a` est rotatif et `node_b` possède une seule géométrie. Déclarer `minimum_reference_volume`, `swept_volume` et `phase` ; le volume initial du nœud doit correspondre à l’angle initial. Le réservoir mélangé a une vitesse globale nulle et ne peut être une cellule interne. Le mécanisme sinusoïdal sans masse n’ajoute aucune inertie de piston ou de came ; l’inertie d’arbre est explicite. La pression extérieure du carter est nulle. + +## Travail et transport + +Le travail fermé conserve masse et entropie. Énergie de compression froide et énergie calorique utilisent le potentiel d’équilibre du conduit. Le liquide seul utilise l’intégrale exacte de pression, la vapeur idéale son adiabatique analytique. Le changement de phase inverse l’entropie et vérifie l’état énergétique final. La différence acceptée produit le couple discret dans la résolution mécanique commune. Un `hydraulic_work` positif représente l’énergie de l’arbre vers le fluide. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +Le réservoir mobile utilise un demi-transport, le travail complet de l’arbre, puis un demi-transport. Le transport reste du premier ordre avec diffusion numérique ; la séparation symétrique n’augmente pas son ordre. Le mouvement liquide fermé et lisse converge au second ordre. L’incrément angulaire est limité à 0.25 rad par intervalle mécanique. CFL, limites matérielles, restauration complète, annulation et branches indépendantes s’appliquent. L’impulsion stationnaire des ports et du carter est distincte du travail du piston. + +## Utilisation et preuves + +Exécuter `compressible-fuel-chamber-duct` ou `electric-compressible-fuel-duct`. Lire masse, volume, pression, température, entropie et fraction de vapeur avec les cellules et le couple, la puissance et le travail. Les vérifications utilisent travail liquide et limites de vapeur indépendants, inversion séparée de l’isentrope et quadrature de pression, EDO d’arbre liquide et raffinement RK4 des équations semi-discrètes de vapeur idéale. Conservation, composition électrique/engrenages/hydraulique/embrayage, relecture portable, MCP réel et transactions sans allocation sont vérifiés séparément. Les résultats figurent dans les preuves de validation. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Validité et travaux restants + +Les paramètres restent `unverified`. Le pseudo-fluide pur à l’équilibre comprend un liquide compressible sans dilatation thermique et une vapeur idéale, avec chambre mélangée et cellules rigides. Respecter les limites thermiques et de pression. La chambre ne résout pas d’énergie cinétique globale et n’inclut pas de clapet automatique. Nucléation à vitesse finie, glissement, comportement critique réel, étalonnage mesuré et acceptation Unity restent ouverts. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.it.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.it.md new file mode 100644 index 0000000..0f76beb --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.it.md @@ -0,0 +1,41 @@ +# Camere di combustibile comprimibile azionate da albero + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · **Italiano** · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Contratto fisico + +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. + +`node_a` è rotazionale e `node_b` ha un solo proprietario geometrico. Dichiarare `minimum_reference_volume`, `swept_volume` e `phase`; il volume iniziale deve corrispondere all’angolo iniziale. Il serbatoio miscelato ha velocità media nulla e non può essere una cella interna. Il meccanismo sinusoidale senza massa non aggiunge inerzia di pistone o camma; l’inerzia d’albero è esplicita. La pressione esterna del carter è nulla. + +## Lavoro e trasporto + +Il passo di lavoro chiuso mantiene massa ed entropia. Compressione fredda ed energia calorica usano lo stesso potenziale d’equilibrio del condotto. Il liquido puro usa l’integrale esatto della pressione, il vapore ideale l’adiabatica analitica. Il cambiamento di fase inverte l’entropia e verifica l’energia finale. La differenza accettata fornisce una coppia discreta nel solutore meccanico comune. `hydraulic_work` positivo significa energia dall’albero al fluido. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +Il serbatoio mobile usa mezzo trasporto, lavoro completo d’albero e mezzo trasporto. Il trasporto resta al primo ordine con diffusione numerica; la separazione simmetrica non alza l’ordine. Il moto liquido chiuso e regolare converge al secondo ordine. Gli incrementi angolari sono limitati a 0.25 rad per intervallo meccanico. Restano validi CFL, limiti materiali, rollback completo, annullamento e rami indipendenti. L’impulso stazionario di porte/carter è distinto dal lavoro del pistone. + +## Uso e verifiche + +Eseguire `compressible-fuel-chamber-duct` o `electric-compressible-fuel-duct`. Leggere massa, volume, pressione, temperatura, entropia e frazione di vapore insieme a celle, coppia, potenza e lavoro. Le prove usano lavoro liquido e limiti del vapore indipendenti, isentropica d’equilibrio invertita separatamente e quadratura della pressione, ODE dell’albero liquido e raffinamento RK4 delle equazioni semidiscrete del vapore ideale. Conservazione, composizione elettrica/ingranaggi/idraulica/frizione, riproduzione portabile, MCP reale e transazioni senza allocazioni sono verificati separatamente. I risultati sono nelle prove di validazione. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Validità e lavoro restante + +I parametri restano `unverified`. Il puro pseudofluido d’equilibrio comprende liquido comprimibile senza dilatazione termica e vapore ideale, camera miscelata e celle rigide. Rispettare i limiti termici e di pressione. La camera non risolve energia cinetica media e non include una valvola di ritegno automatica. Nucleazione a velocità finita, scorrimento tra fasi, comportamento critico reale, calibrazione misurata e accettazione Unity effettiva restano aperti. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.ja.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.ja.md new file mode 100644 index 0000000..f0b8424 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.ja.md @@ -0,0 +1,41 @@ +# 軸駆動の圧縮性燃料室 + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · **日本語** · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## 物理契約 + +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 + +`node_a` は回転ポート、`node_b` の幾何所有者は一つです。`minimum_reference_volume`、`swept_volume`、`phase` を指定し、初期容積を初期軸角の幾何に合わせます。混合貯槽のバルク速度はゼロで、内部セルを兼用できません。質量のない正弦機構はピストンやカムの慣性を加えず、軸慣性を明示します。外部ケース圧力はゼロです。 + +## 仕事と輸送 + +閉じた仕事ステップは質量とエントロピーを一定にします。液体の冷圧縮エネルギーと熱内部エネルギーはダクトと同じ平衡ポテンシャルを使います。純液体は厳密な圧力積分、理想蒸気は解析的断熱線を使用します。相変化時はエントロピーを反転し最終エネルギーを確認します。採用したエネルギー差から共同機械解法の離散圧力トルクを求めます。正の `hydraulic_work` は軸から流体へのエネルギーです。 + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +可動貯槽は半輸送、軸仕事全体、半輸送の順に更新します。輸送は数値拡散を伴う一次精度のままで、対称分割でも次数は上がりません。滑らかな閉液体の軸運動は二次収束します。機械区間の角度増分は 0.25 rad 以下です。CFL、物性境界、完全ロールバック、取消、独立分岐が適用されます。静止ポート/筐体への力積とピストン圧力仕事を分けて扱います。 + +## 利用と検証 + +`compressible-fuel-chamber-duct` または `electric-compressible-fuel-duct` を実行します。セル状態に加え、貯槽の質量、容積、圧力、温度、エントロピー、蒸気分率、室のトルク、動力、仕事を読みます。独立した液体仕事と理想蒸気極限、別途反転した平衡等エントロピー線と圧力求積、液体軸 ODE、理想蒸気半離散方程式の RK4 細分化を検証します。保存、電気/歯車/油圧/クラッチ合成、可搬再生、実 MCP、割り当てのない取引は別々に確認します。数値結果は検証証拠に記録します。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## 適用範囲と残作業 + +パラメータは `unverified` です。圧縮性で熱膨張ゼロの液体と理想蒸気からなる平衡純疑似流体、混合室、剛体セルを仮定します。温度・圧力範囲を守ってください。室のバルク運動エネルギーは解かず、逆止弁も自動では付きません。有限速度の核生成、相間滑り、実流体臨界挙動、実測校正、実 Unity 受入検証は残っています。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.ko.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.ko.md new file mode 100644 index 0000000..bc588d5 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.ko.md @@ -0,0 +1,41 @@ +# 축 구동 압축성 연료 챔버 + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · **한국어** · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## 물리 계약 + +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. + +`node_a`는 회전 포트이고 `node_b`의 기하 소유자는 하나입니다. `minimum_reference_volume`, `swept_volume`, `phase`를 선언하고 초기 체적을 초기 축각의 기하와 맞춥니다. 혼합 저장조의 벌크 속도는 0이며 내부 셀을 겸할 수 없습니다. 질량 없는 정현파 기구는 피스톤이나 캠 관성을 추가하지 않으며 축 관성은 명시합니다. 외부 케이스 압력은 0입니다. + +## 일과 수송 + +닫힌 일 단계는 질량과 엔트로피를 유지합니다. 액체 냉압축 에너지와 열 내부에너지는 덕트와 동일한 평형 퍼텐셜을 사용합니다. 순수 액체에는 정확한 압력 적분을, 이상증기에는 해석적 단열선을 사용합니다. 상변화에서는 엔트로피를 역산하고 최종 에너지를 확인합니다. 채택된 에너지 차이가 공동 기계 해법에서 이산 압력 토크를 제공합니다. 양의 `hydraulic_work`는 축에서 유체로 전달되는 에너지입니다. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +가변 체적 저장조는 반 수송, 전체 축 일, 반 수송 순서로 계산합니다. 수송은 수치 확산을 가진 1차이며 대칭 분할이 차수를 높이지 않습니다. 매끄러운 닫힌 액체 축 운동은 2차 수렴합니다. 기계 구간의 각 증가량은 0.25 rad로 제한합니다. CFL, 물성 범위, 전체 롤백, 취소, 독립 분기는 그대로 적용됩니다. 정지 포트/하우징 충격량은 피스톤 압력 일과 구분합니다. + +## 사용과 검증 + +`compressible-fuel-chamber-duct` 또는 `electric-compressible-fuel-duct`를 실행합니다. 셀 상태와 함께 저장조 질량, 체적, 압력, 온도, 엔트로피, 증기분율 및 챔버 토크, 동력, 일을 읽습니다. 독립 액체 일과 이상증기 극한, 별도 역산 평형 등엔트로피선과 압력 구적, 액체 축 ODE, 이상증기 반이산 방정식 RK4 세분화를 검사합니다. 보존, 전기/기어/유압/클러치 조합, 이식 재생, 실제 MCP, 할당 없는 트랜잭션은 별도로 확인합니다. 수치 결과는 검증 증거에 기록합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 적용 범위와 남은 작업 + +매개변수는 `unverified`입니다. 압축성이고 열팽창이 0인 액체와 이상증기의 평형 순수 의사유체, 혼합 챔버, 강체 셀을 가정합니다. 온도와 압력 범위를 지켜야 합니다. 챔버 벌크 운동에너지는 해석하지 않으며 자동 체크 밸브가 없습니다. 유한 속도 핵생성, 상간 미끄럼, 실제 유체 임계 거동, 실측 보정, 실제 Unity 인수 검증은 남아 있습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.md new file mode 100644 index 0000000..8a32c09 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.md @@ -0,0 +1,41 @@ +# Shaft-driven compressible fuel chambers + +**English** · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Physical contract + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. + +Port `node_a` is rotational and `node_b` owns one chamber geometry. Declare `minimum_reference_volume`, `swept_volume` and `phase`; initial node storage must match volume at the initial shaft angle. The mixed reservoir has zero bulk velocity and cannot be an internal duct cell. The massless sinusoidal mechanism adds no piston or cam inertia; shaft inertia is explicit. External case pressure is zero. + +## Work and transport + +The closed work step holds mass and entropy fixed. Liquid cold compression energy and caloric energy use the same equilibrium potential as the duct. Liquid-only motion uses the exact pressure integral; ideal-vapor motion uses its analytic adiabat. Phase-changing motion inverts entropy and checks the final energy state. The accepted energy difference supplies a discrete pressure torque in the joint mechanical solve. Positive `hydraulic_work` means energy from shaft to fluid. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +A moving reservoir uses half duct transport, full shaft work, then half transport. Transport remains first order with numerical diffusion; symmetric splitting does not raise its order. Closed smooth liquid shaft motion has second-order refinement. Angular increments are limited to 0.25 rad per mechanical interval. Duct CFL, material bounds, full rollback, cancellation and independent branches still apply. Stationary port/housing impulse is separate from piston pressure work. + +## Use and evidence + +Run `compressible-fuel-chamber-duct` or `electric-compressible-fuel-duct`. Read reservoir mass, volume, pressure, temperature, entropy and vapor fraction alongside cell states and chamber torque, power and work. Checks use independent liquid work and ideal-vapor limits, a separately inverted equilibrium isentrope and pressure quadrature, a liquid shaft ODE and ideal-vapor method-of-lines RK4 refinement. Conservation, electrical/gear/hydraulic/clutch composition, exact portable replay, actual MCP and allocation-free transactions have separate checks. Detailed numerical results are in validation evidence. + +[VALIDATION.md](VALIDATION.md) + +## Validity and remaining work + +Parameters remain `unverified`. This is an equilibrium pure pseudo-fluid with a compressible zero-thermal-expansion liquid and ideal vapor, a mixed chamber and rigid duct cells. Enforce declared temperature and pressure bounds. The chamber has no resolved bulk kinetic energy or automatic check valve. Finite-rate nucleation, phase slip, real-fluid critical behavior, measured calibration and actual Unity acceptance remain open. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md new file mode 100644 index 0000000..0dd6dbe --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md @@ -0,0 +1,41 @@ +# Câmaras de combustível compressível acionadas por eixo + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · **Português** + +## Contrato físico + +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. + +`node_a` é rotacional e `node_b` tem um único proprietário geométrico. Declare `minimum_reference_volume`, `swept_volume` e `phase`; o volume inicial deve corresponder ao ângulo inicial. O reservatório misturado tem velocidade média zero e não pode ser célula interna. O mecanismo senoidal sem massa não acrescenta inércia de pistão ou came; a inércia do eixo é explícita. A pressão externa da carcaça é zero. + +## Trabalho e transporte + +O passo fechado de trabalho mantém massa e entropia. Energia de compressão fria e energia calórica usam o potencial de equilíbrio do duto. O líquido puro usa a integral exata da pressão e o vapor ideal sua adiabática analítica. A mudança de fase inverte entropia e verifica a energia final. A diferença aceita fornece torque discreto na solução mecânica conjunta. `hydraulic_work` positivo significa energia do eixo para o fluido. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +O reservatório móvel usa meio transporte, trabalho completo do eixo e meio transporte. O transporte continua de primeira ordem com difusão numérica; a separação simétrica não eleva a ordem. O movimento líquido fechado e suave converge em segunda ordem. Incrementos angulares são limitados a 0.25 rad por intervalo mecânico. CFL, limites materiais, reversão completa, cancelamento e ramificações independentes continuam válidos. O impulso estacionário das portas/carcaça é separado do trabalho do pistão. + +## Uso e evidências + +Execute `compressible-fuel-chamber-duct` ou `electric-compressible-fuel-duct`. Leia massa, volume, pressão, temperatura, entropia e fração de vapor junto a células, torque, potência e trabalho. As verificações usam trabalho líquido e limites de vapor independentes, isentrópica de equilíbrio invertida separadamente e quadratura da pressão, EDO do eixo líquido e refinamento RK4 das equações semidiscretas do vapor ideal. Conservação, composição elétrica/engrenagens/hidráulica/embreagem, reprodução portável, MCP real e transações sem alocação são verificados separadamente. Os resultados estão nas evidências de validação. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Validade e trabalho restante + +Os parâmetros continuam `unverified`. O pseudofluido puro em equilíbrio usa líquido compressível sem expansão térmica e vapor ideal, câmara misturada e células rígidas. Respeite limites térmicos e de pressão. A câmara não resolve energia cinética média nem inclui válvula de retenção automática. Nucleação com taxa finita, deslizamento, comportamento crítico real, calibração medida e aceitação real no Unity permanecem abertos. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.ru.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.ru.md new file mode 100644 index 0000000..e160951 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.ru.md @@ -0,0 +1,41 @@ +# Топливные камеры сжимаемой среды с приводом от вала + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · [简体中文](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · **Русский** · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## Физический контракт + +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. + +Порт `node_a` вращательный, а `node_b` имеет одного владельца геометрии. Задайте `minimum_reference_volume`, `swept_volume` и `phase`; начальный объём узла должен совпадать с геометрией при начальном угле. Средняя скорость перемешанного резервуара нулевая; он не может быть внутренней ячейкой. Безмассовый синусоидальный механизм не добавляет инерции поршня или кулачка; инерция вала явная. Внешнее давление корпуса нулевое. + +## Работа и перенос + +Закрытый шаг работы сохраняет массу и энтропию. Холодное сжатие и тепловая энергия используют потенциал канала. Для жидкости применяется точный интеграл давления, для идеального пара — аналитическая адиабата. При фазовом переходе обращается энтропия и проверяется конечная энергия. Принятая разность энергии задаёт дискретный момент в общем механическом решении. Положительный `hydraulic_work` означает передачу энергии от вала среде. + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +Подвижный резервуар использует половину переноса, полную работу вала и вторую половину переноса. Перенос остаётся первого порядка с численной диффузией; симметричное расщепление не повышает порядок. Гладкое движение замкнутой жидкости имеет второй порядок. Приращение угла ограничено 0.25 rad за механический интервал. Сохраняются CFL, материальные границы, полный откат, отмена и независимые ветви. Стационарный импульс портов/корпуса отделён от работы давления поршня. + +## Применение и проверка + +Запустите `compressible-fuel-chamber-duct` или `electric-compressible-fuel-duct`. Сопоставляйте массу, объём, давление, температуру, энтропию и долю пара резервуара с состояниями ячеек, моментом, мощностью и работой камеры. Независимы проверки работы жидкости и предела идеального пара, обращение равновесной изоэнтропы и квадратура давления, ОДУ жидкостного вала и уточнение RK4 полудискретных уравнений идеального пара. Сохранение, электрическая/зубчатая/гидравлическая/фрикционная композиция, переносимое воспроизведение, реальный MCP и транзакции без выделений проверяются отдельно. Численные результаты находятся в доказательствах валидации. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Применимость и оставшаяся работа + +Параметры остаются `unverified`. Это равновесная чистая псевдосреда: сжимаемая жидкость без теплового расширения и идеальный пар, перемешанная камера и жёсткие ячейки. Соблюдайте границы температуры и давления. Камера не разрешает кинетическую энергию среднего движения и не включает автоматический обратный клапан. Конечная скорость зародышеобразования, скольжение, реальная критическая область, измеренная калибровка и фактическая проверка Unity остаются открытыми. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md b/docs/COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md new file mode 100644 index 0000000..01652e5 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md @@ -0,0 +1,41 @@ +# 轴驱动可压缩燃料腔室 + +[English](COMPRESSIBLE_FUEL_CHAMBER.md) · **简体中文** · [Français](COMPRESSIBLE_FUEL_CHAMBER.fr.md) · [Русский](COMPRESSIBLE_FUEL_CHAMBER.ru.md) · [日本語](COMPRESSIBLE_FUEL_CHAMBER.ja.md) · [한국어](COMPRESSIBLE_FUEL_CHAMBER.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_CHAMBER.de.md) · [Español](COMPRESSIBLE_FUEL_CHAMBER.es.md) · [Italiano](COMPRESSIBLE_FUEL_CHAMBER.it.md) · [Português](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +## 物理契约 + +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 + +`node_a` 为转动端口,`node_b` 只能有一个腔室几何所有者。声明 `minimum_reference_volume`、`swept_volume` 和 `phase`;节点初始容积须匹配初始轴角处的几何容积。混合储腔主体速度为零,不能兼作管路内部单元。无质量的正弦机构不增加活塞或凸轮惯量,轴惯量显式给定。外部壳体压力为零。 + +## 功与输运 + +闭腔做功步骤保持质量与熵不变。液体冷压缩能和热内能使用与管路一致的平衡势函数。纯液体运动使用精确压力积分,理想蒸气使用解析绝热线;相变运动反演熵并检查最终能量状态。接受的能量差在联合机械求解中产生离散压力转矩。`hydraulic_work` 为正表示轴向流体输入能量。 + +```text +V(theta) = Vmin + Vs sin^2((theta-phase)/2) +dE_fluid = -p dV; dM = 0; dS = 0 +tau_pressure = -Delta_E_fluid / Delta_theta +tau_pressure(Delta_theta=0) = p dV/dtheta +Delta_E_shaft + Delta_E_fluid = 0 +p_liquid = K (M/(rho0 V)-1) +Delta_E_liquid = K [Delta_V - (M/rho0) ln(V_next/V_old)] +T_vapor_next = T_old (V_old/V_next)^(R/cv) +Delta_E_vapor = M cv (T_next-T_old) +``` + +可变容积储腔依次使用半步管路输运、整步轴功、半步输运。输运仍具有一阶数值扩散,对称分裂不会提高其阶数。光滑的纯液体闭腔轴运动呈二阶收敛。每个机械区间的角增量限制为 0.25 rad。管路 CFL、材料边界、完整回滚、取消与独立分支仍适用。静止端口/壳体冲量与活塞压力功分别核算。 + +## 使用与证据 + +运行 `compressible-fuel-chamber-duct` 或 `electric-compressible-fuel-duct`。结合各单元状态读取储腔质量、容积、压力、温度、熵、蒸气分数,以及腔室转矩、功率和功。检查采用独立液体功与理想蒸气极限、另行反演的平衡等熵线及压力积分、液体轴运动 ODE 和理想蒸气半离散方程 RK4 细化。守恒、电气/齿轮/液压/离合器组合、精确资产回放、实际 MCP 和无分配事务分别验证。详细数值结果见验证证据。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 适用范围与剩余工作 + +参数仍为 `unverified`。模型采用平衡纯伪流体:可压缩且零热膨胀的液体、理想蒸气、混合储腔和刚性管路单元。须遵守声明的温压边界。腔室不解析主体动能,也不自动附带止回阀。有限速率成核、相间滑移、真实流体临界行为、实测标定与实际 Unity 验收仍待完成。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[Modelica: swept volume and pressure work](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [NIST: consistent thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.de.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.de.md new file mode 100644 index 0000000..e498840 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.de.md @@ -0,0 +1,46 @@ +# Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · **Deutsch** · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Physikalischer Vertrag + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. + +Fläche, effektiven Flächenkoeffizienten und `wall_kinetic_fraction` mit endlicher thermischer Wand angeben. `initial_input` ist die Öffnung in [0,1], optional per Kanal veränderbar. Optionale `needle_node`, `closed_position` und `full_open_position` multiplizieren den Befehl mit der tatsächlichen translatorischen Nadelöffnung. Ports haben keine mittlere Geschwindigkeit, gleiche Stoffdaten und Heizwerte und dürfen keine internen Zellen sein. Gegendruck schließt diese ideale Grenze ohne Öffnungsdruckschwelle. + +## Energie und kritische Strömung + +Beide Phasen teilen Druck, Temperatur und Geschwindigkeit; Phasenmassenübertragung ist unterdrückt. Entropiebeziehung und kalte Kompressionsenergie bestimmen den isentropen Enthalpieabfall. Das eindeutige Flussmaximum nutzt eingefrorene statt Gleichgewichtsschallgeschwindigkeit. Der Koeffizient skaliert die effektive Fläche. Bei kritischer Strömung beschreibt die Austrittsenergie einen ideal bis zum Empfängerdruck expandierten Strahl. Stagnationsenthalpie versorgt Empfänger und explizite Wandwärme genau einmal. Der Impuls bezeichnet stationäre Thermalisierung, nicht den gesamten Gehäuseschub oder axiale Nadelkraft. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Konservative Teilschritte erster Ordnung übertragen dieselbe Masse und Enthalpie; Strahlenergie verteilt sich auf Fluid und Wand. Stoffzustände und gesamte Paarentropie werden geprüft. Grenzen: 4096 Teilschritte, 64 Halbierungen je Kandidat, anfänglich höchstens 0.1 der kleineren Behältermasse. Die Schließgrenze erlaubt 128 binary64 epsilon mal maximalen Kompressionsmodul oder Portdruck, ohne Ausgabedruck zu begrenzen. Fehler nehmen den ganzen Stapel zurück. Schritt, Bestand, Stoffgrenzen, Nadelhub und Fläche prüfen. + +## Nutzung und Nachweise + +`compressible-fuel-nozzle` prüft endlichen Dampfaustritt, `compressible-pump-needle` Leitung, Welle, gerichteten Einlass und Magnetnadel. Masse, Enthalpie, Strahlenergie, Wandwärme, Impuls und Entropie sind kumulativ. Mittlere Strömung und Kraft gelten für den ganzen Tick; Hals, Austritt und Anteil behalten den letzten akzeptierten Durchgang. Exakte Flüssigkeitsarbeit, analytische Gas-/Flüssigkeitskritik, unabhängige Druckquadratur, eingefrorene Entropie und Schallableitung, dichter Flussscan und analytische Ausblasverfeinerung werden verglichen. Erhaltung, reale Bewegung, Wiedergabe, Zweige, Rücknahme, Abbruch, Allokationen, Assets und MCP werden separat geprüft. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Gültigkeit und nächste Schritte + +Parameter bleiben `unverified`. Das reine Pseudofluid nutzt idealen Dampf und kompressible Flüssigkeit ohne thermische Ausdehnung. Druck- und Temperaturgrenzen gelten einschließlich idealer Strahltemperatur. Eingefrorener Durchgang kann überhitzte Flüssigkeit erhalten, prognostiziert aber keine gemessene Keimbildungs- oder Metastabilitätsgrenze. Endliche Relaxation, Schlupf, aufgelöster Spray, nichtkondensierendes Trägergas, brennender Empfänger, Messkarten und tatsächliche Unity-Abnahme bleiben offen. Erhaltung und Wiedergabe belegen keine Hardwaregültigkeit. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.es.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.es.md new file mode 100644 index 0000000..9da03df --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.es.md @@ -0,0 +1,46 @@ +# Toberas de combustible compresible de calidad congelada + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · **Español** · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Contrato físico + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. + +Declare área, coeficiente de área efectiva y `wall_kinetic_fraction`, con pared térmica finita. `initial_input` es apertura en [0,1], modificable por canal opcional. Los opcionales `needle_node`, `closed_position` y `full_open_position` multiplican el mando por la apertura real de la aguja translacional. Los puertos tienen velocidad global cero, material y poder calorífico iguales y no pueden ser celdas internas. La contrapresión cierra esta frontera ideal de umbral cero. + +## Energía y bloqueo sónico + +Las fases comparten presión, temperatura y velocidad; se suprime transferencia másica de fase. Entropía y compresión fría determinan la caída isentrópica de entalpía. El máximo único usa velocidad del sonido congelada, distinta de la de equilibrio. El coeficiente escala área efectiva. En bloqueo, la energía de salida describe un chorro ideal totalmente expandido a la presión receptora. La entalpía de remanso paga una vez energía receptora y calor explícito de pared. El impulso es de termalización estacionaria, no empuje total de carcasa ni fuerza axial de aguja. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Subpasos conservativos de primer orden transfieren igual masa y entalpía y reparten energía cinética entre fluido y pared. Se comprueban estados y entropía total de la pareja. Límites: 4096 subpasos, 64 reducciones a la mitad por candidato y transferencia inicial de hasta 0.1 de la menor masa. El cierre tolera 128 epsilon binary64 por el mayor módulo volumétrico o presión, sin recortar presiones informadas. Un fallo revierte todo el lote. Revise paso, inventario, límites, carrera y área. + +## Uso y evidencia + +Ejecute `compressible-fuel-nozzle` para descarga finita o `compressible-pump-needle` para conducto, eje, entrada unidireccional y aguja solenoide. Lea masa, entalpía, energía cinética, calor, impulso y entropía acumulados. Caudal y fuerza medios cubren todo el tick; garganta, salida y calidad retienen el último tránsito aceptado. Se comparan trabajo líquido exacto, bloqueo analítico de gas/líquido, cuadratura independiente, entropía y derivada acústica congeladas, barrido denso y refinamiento de vaciado crítico analítico. Conservación, movimiento real, reproducción, ramas, reversión, cancelación, asignaciones, assets y MCP se verifican aparte. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Validez y próximos pasos + +Los parámetros siguen `unverified`. El pseudofluido puro combina vapor ideal y líquido compresible sin expansión térmica. Respete límites de presión y temperatura, incluida la del chorro ideal. El tránsito congelado puede conservar líquido sobrecalentado, sin predecir un límite medido de nucleación o metaestabilidad. Relajación finita, deslizamiento, pulverización resuelta, gas portador no condensable, receptor con combustión, mapas medidos y Unity real siguen pendientes. Conservación y reproducción no demuestran validez de hardware. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.fr.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.fr.md new file mode 100644 index 0000000..ba99d9f --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.fr.md @@ -0,0 +1,46 @@ +# Buses de carburant compressible à qualité figée + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · **Français** · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Contrat physique + +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. + +Déclarer section, coefficient de section effective et `wall_kinetic_fraction`, avec une paroi thermique finie. `initial_input` est l’ouverture dans [0,1], modifiable par un canal optionnel. `needle_node`, `closed_position` et `full_open_position` optionnels multiplient la commande par l’ouverture réelle de l’aiguille en translation. Les ports ont une vitesse globale nulle, les mêmes matériau et pouvoir calorifique, et ne sont pas des cellules internes. Une pression inverse ferme cette frontière idéale sans seuil d’ouverture. + +## Énergie et blocage sonique + +Les phases figées partagent pression, température et vitesse ; le transfert massique entre phases est supprimé. Entropie et compression froide donnent la chute d’enthalpie isentropique. Le maximum unique de flux utilise le son figé, distinct du son d’équilibre. Le coefficient réduit la section effective. En régime critique, l’énergie de sortie décrit un jet idéal complètement détendu à la pression réceptrice. L’enthalpie d’arrêt alimente une seule fois récepteur et chaleur explicite de paroi. L’impulsion décrit la thermalisation stationnaire, pas la poussée totale du carter ni la force axiale de l’aiguille. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Des sous-pas conservatifs du premier ordre échangent la même masse et enthalpie ; l’énergie cinétique du jet se répartit entre récepteur et paroi. Chaque acceptation vérifie les états et l’entropie totale de la paire. Limites : 4096 sous-pas, 64 réductions de moitié par candidat, transfert initial borné à 0.1 fois la plus petite masse. La fermeture tolère 128 fois epsilon binary64 multiplié par le plus grand module volumique ou la pression des ports, sans écrêter les pressions. Un échec restaure tout le lot. Réduire le pas et examiner inventaire, limites, course et section. + +## Utilisation et preuves + +Exécuter `compressible-fuel-nozzle` pour la décharge finie ou `compressible-pump-needle` pour conduite, arbre, admission unidirectionnelle et aiguille électromagnétique. Lire masse, enthalpie, énergie cinétique, chaleur de paroi, impulsion et entropie cumulées. Débit et force sont moyennés sur le tick entier ; gorge, sortie et qualité gardent le dernier transit accepté. Les comparaisons couvrent travail liquide exact, blocage analytique gaz/liquide, quadrature indépendante, entropie et dérivée acoustique figées, balayage dense et raffinement de vidange critique analytique. Conservation, mouvement réel, relecture, branches, restauration, annulation, allocations, assets et MCP sont vérifiés séparément. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Validité et suite + +Les paramètres restent `unverified`. Le pseudo-fluide pur associe vapeur idéale et liquide compressible sans dilatation thermique. Respecter pression et température déclarées, y compris celles du jet idéal. Le transit figé peut conserver du liquide surchauffé sans prédire une limite mesurée de nucléation ou métastabilité. Relaxation finie, glissement, pulvérisation résolue, gaz porteur non condensable, récepteur avec combustion, cartes mesurées et acceptation Unity réelle restent ouverts. Conservation et relecture ne prouvent pas la validité matérielle. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.it.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.it.md new file mode 100644 index 0000000..cef1881 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.it.md @@ -0,0 +1,46 @@ +# Ugelli di combustibile comprimibile a titolo congelato + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · **Italiano** · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Contratto fisico + +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. + +Dichiarare area, coefficiente di area efficace e `wall_kinetic_fraction`, con parete termica finita. `initial_input` è apertura in [0,1], modificabile da un canale opzionale. Gli opzionali `needle_node`, `closed_position` e `full_open_position` moltiplicano il comando per l’apertura reale dell’ago traslazionale. Le porte hanno velocità media nulla, materiale e potere calorifico uguali e non sono celle interne. La pressione inversa chiude il confine ideale a soglia nulla. + +## Energia e blocco sonico + +Le fasi condividono pressione, temperatura e velocità; il trasferimento massico di fase è soppresso. Entropia ed energia di compressione fredda danno il salto isentropico d’entalpia. Il massimo unico di flusso usa il suono congelato, diverso da quello d’equilibrio. Il coefficiente scala l’area efficace. Al blocco, l’energia d’uscita descrive un getto ideale completamente espanso alla pressione ricevente. L’entalpia di ristagno paga una sola volta energia ricevente e calore esplicito di parete. L’impulso misura la termalizzazione stazionaria, non la spinta totale del carter né la forza assiale dell’ago. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Sottopassi conservativi del primo ordine trasferiscono la stessa massa ed entalpia e dividono l’energia cinetica fra fluido e parete. Si verificano stati ed entropia totale della coppia. Limiti: 4096 sottopassi, 64 dimezzamenti per candidato, trasferimento iniziale entro 0.1 della massa minore. La chiusura tollera 128 epsilon binary64 per il massimo modulo volumetrico o pressione senza limitare i valori riportati. Un errore annulla l’intero lotto. Controllare passo, inventario, limiti, corsa e area. + +## Uso e verifiche + +Eseguire `compressible-fuel-nozzle` per lo scarico finito o `compressible-pump-needle` per condotto, albero, ingresso unidirezionale e ago a solenoide. Leggere massa, entalpia, energia cinetica, calore, impulso ed entropia cumulati. Portata e forza medie coprono il tick intero; gola, uscita e titolo mantengono l’ultimo transito accettato. Si confrontano lavoro liquido esatto, blocco analitico gas/liquido, quadratura indipendente, entropia e derivata sonora congelate, scansione densa e raffinamento dello svuotamento critico analitico. Conservazione, moto reale, riproduzione, rami, rollback, annullamento, allocazioni, asset e MCP sono verificati separatamente. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Validità e prossimi passi + +I parametri restano `unverified`. Il puro pseudofluido usa vapore ideale e liquido comprimibile senza dilatazione termica. Rispettare limiti di pressione e temperatura, incluso il getto ideale. Il transito congelato può mantenere liquido surriscaldato senza predire limiti misurati di nucleazione o metastabilità. Rilassamento finito, scorrimento, spray risolto, gas portante non condensabile, ricevitore con combustione, mappe misurate e Unity reale restano aperti. Conservazione e riproduzione non dimostrano validità hardware. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.ja.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.ja.md new file mode 100644 index 0000000..96ed3b0 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.ja.md @@ -0,0 +1,46 @@ +# 相分率を凍結した圧縮性燃料ノズル + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · **日本語** · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## 物理契約 + +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 + +面積、有効面積の流量係数、`wall_kinetic_fraction` と有限熱壁を指定します。`initial_input` は [0,1] の開度で、任意の入力チャンネルで変更します。任意の `needle_node`、`closed_position`、`full_open_position` は指令に実際の並進ニードル開度を掛けます。両ポートのバルク速度はゼロで、物性と発熱量は一致し、内部セルには接続できません。逆圧差では理想的な開弁圧差ゼロの境界が閉じます。 + +## エネルギーとチョーク + +両相は圧力、温度、速度を共有し、相間質量移動を抑制します。エントロピー関係と冷圧縮エネルギーから等エントロピーのエンタルピー差を求めます。唯一の質量流束最大値は平衡音速とは異なる凍結音速を使います。係数は有効面積を調整します。チョーク時の出口エネルギーは受入圧力まで完全膨張した理想噴流です。供給側の全エンタルピーが流体と壁の熱を一度だけ賄います。力積は静止した熱化を表し、筐体全推力やニードル軸力を表しません。 + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +保存的な一次サブステップが同じ質量とエンタルピーを移し、噴流運動エネルギーを流体と壁に配分します。物性状態と対全体のエントロピーを確認します。区間当たり最大 4096 ステップ、候補当たり 64 回の半減、初期移動量は小さい貯槽質量の 0.1 倍以下です。閉鎖判定には最大体積弾性率またはポート圧力の 128 binary64 epsilon 倍の丸め幅を許容し、出力圧力は切り詰めません。失敗はバッチ全体をロールバックします。刻み、在庫、物性範囲、行程、面積を確認してください。 + +## 利用と検証 + +`compressible-fuel-nozzle` は有限蒸気排出、`compressible-pump-needle` は管供給、軸、一方向入口、電磁ニードルを確認します。累積質量、エンタルピー、噴流運動エネルギー、壁熱、力積、エントロピーを読みます。平均流量と力は完全な刻みを覆い、喉部・出口・分率は最後に採用した通過状態です。厳密液体仕事、気体/液体の解析的チョーク、独立圧力求積、凍結エントロピーと音速微分、密な流束走査、解析的チョーク排出の細分化を比較します。保存、実運動、再生、分岐、取消、ロールバック、割り当て、asset と MCP は別々に検証します。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## 適用範囲と次の作業 + +パラメータは `unverified` です。理想蒸気と熱膨張ゼロの圧縮性液体からなる純疑似流体です。理想噴流温度を含む指定温圧範囲を守ってください。凍結通過は過熱液体を保持できますが、実測の核生成や準安定限界は予測しません。有限速度緩和、相間滑り、解像した噴霧、不凝縮キャリアガス、燃焼受入室、実測マップ、実 Unity 受入検証は残っています。保存と再生は機器の妥当性を証明しません。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.ko.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.ko.md new file mode 100644 index 0000000..27d98e9 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.ko.md @@ -0,0 +1,46 @@ +# 상분율을 동결한 압축성 연료 노즐 + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · **한국어** · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## 물리 계약 + +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. + +면적, 유효면적 유량계수, `wall_kinetic_fraction`, 유한 열벽을 선언합니다. `initial_input`은 [0,1] 개도이며 선택 입력 채널로 변경합니다. 선택적인 `needle_node`, `closed_position`, `full_open_position`은 명령에 실제 병진 니들 개도를 곱합니다. 두 포트의 벌크 속도는 0이고 물성과 발열량이 같으며 내부 셀은 사용할 수 없습니다. 역압은 이상적인 개방 차압 0의 경계를 닫습니다. + +## 에너지와 초킹 + +두 상은 압력, 온도, 속도를 공유하고 상간 질량전달을 억제합니다. 엔트로피 관계와 냉압축 에너지가 등엔트로피 엔탈피 강하를 결정합니다. 유일한 질량유속 최대값에는 평형 음속과 다른 동결 음속을 사용합니다. 계수는 유효면적을 조정합니다. 초킹 시 출구 에너지는 수신 압력까지 완전히 팽창한 이상 제트입니다. 공급 정체 엔탈피는 수신 유체와 명시적 벽열을 한 번만 지불합니다. 충격량은 정지 열화를 뜻하며 전체 하우징 추력이나 니들 축력이 아닙니다. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +보존형 1차 하위 스텝이 같은 질량과 엔탈피를 전달하고 제트 운동에너지를 수신 유체와 벽에 배분합니다. 물성 상태와 쌍 전체 엔트로피를 확인합니다. 구간당 최대 4096 스텝, 후보당 최대 64회 반감, 초기 전달량은 작은 저장조 질량의 0.1배 이하입니다. 닫힘 판단은 최대 체적탄성률 또는 포트 압력의 128 binary64 epsilon배 반올림을 허용하며 출력 압력을 클램프하지 않습니다. 실패하면 전체 배치를 롤백합니다. 시간 간격, 재고, 물성 범위, 니들 행정과 면적을 확인하십시오. + +## 사용과 검증 + +`compressible-fuel-nozzle`는 유한 증기 배출을, `compressible-pump-needle`는 관 공급, 축 펌핑, 단방향 입구, 솔레노이드 니들을 검사합니다. 누적 질량, 엔탈피, 제트 운동에너지, 벽열, 충격량, 엔트로피를 읽습니다. 평균 유량과 힘은 전체 틱에 해당하며 목·출구·상분율은 마지막 채택 통과 상태입니다. 정확한 액체 일, 기체/액체 해석 초킹, 독립 압력 구적, 동결 엔트로피와 음속 미분, 조밀 유속 탐색, 해석 초킹 배출 세분화를 비교합니다. 보존, 실제 운동, 재생, 분기, 롤백, 취소, 할당, asset과 MCP를 별도로 검증합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 적용 범위와 다음 작업 + +매개변수는 `unverified`입니다. 이상증기와 압축성·열팽창 0의 액체로 구성된 순수 의사유체입니다. 이상 제트 온도를 포함한 선언 범위를 지켜야 합니다. 동결 통과는 과열 액체를 유지할 수 있지만 실측 핵생성이나 준안정 한계는 예측하지 않습니다. 유한 속도 완화, 상간 미끄럼, 해상된 분무, 비응축 운반기체, 연소 수신 챔버, 실측 맵, 실제 Unity 인수 검증은 남아 있습니다. 보존과 재생은 하드웨어 타당성을 입증하지 않습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.md new file mode 100644 index 0000000..394565b --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.md @@ -0,0 +1,46 @@ +# Frozen compressible fuel nozzles + +**English** · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Physical contract + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. + +Declare area, effective-area discharge coefficient and `wall_kinetic_fraction`, with a finite thermal wall. `initial_input` is opening in [0,1]; an optional input channel changes it. Optional `needle_node`, `closed_position` and `full_open_position` multiply the command by actual translational needle opening. Both ports have zero bulk velocity, matching material and heating value, and cannot be internal duct cells. Reverse pressure closes this ideal zero-cracking-pressure boundary. + +## Energy and choking + +The frozen phases share pressure, temperature and velocity; phase mass transfer is suppressed. Their entropy relation and liquid cold energy give the isentropic enthalpy drop. The unique mass-flux maximum uses frozen sound speed, which differs from equilibrium sound speed. The coefficient scales effective area. At choking, reported exit energy describes an ideal jet fully expanded to receiver pressure. Donor stagnation enthalpy supplies receiver energy and explicit finite-wall jet heat once. Jet impulse measures stationary thermalization, not total housing thrust or axial needle force. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Conservative first-order substeps transfer the same mass and enthalpy between reservoirs. Jet kinetic energy is divided between receiver and wall. Accepted substeps check both material states and total pair entropy. Each interval permits 4096 substeps with at most 64 halvings per candidate; the initial transfer bound is 0.1 times the smaller reservoir mass. Pressure closure allows 128 times binary64 epsilon times the largest bulk modulus or port pressure; reported pressures are not clamped. A failed interval rolls back the whole batch. Reduce the tick and inspect inventory, material bounds, needle travel and valve area. + +## Use and evidence + +Run `compressible-fuel-nozzle` for finite vapor discharge or `compressible-pump-needle` for duct supply, shaft pumping, one-way inlet and solenoid needle delivery. Read cumulative mass, enthalpy, jet kinetic energy, wall heat, impulse and pair entropy. Mean flow and force cover the complete tick; throat, exit and quality channels retain the last accepted transit. Checks compare exact liquid work, analytic gas/liquid choking, independent pressure quadrature, frozen entropy and sonic derivatives, a dense flux scan and analytic choked blowdown refinement. Conservation, actual needle motion, replay, branches, rollback, cancellation, allocations and portable/MCP operation are checked separately. + +[VALIDATION.md](VALIDATION.md) + +## Validity and next work + +Parameters remain `unverified`. This is a pure pseudo-fluid with ideal vapor and a compressible zero-thermal-expansion liquid. Stay within declared pressure and temperature bounds, including ideal jet temperature. Frozen transit can retain superheated liquid; the model does not predict a measured nucleation or metastability limit. Finite-rate relaxation, phase slip, resolved spray, noncondensable carrier gas, fired receiver coupling, measured maps and actual Unity acceptance remain open. Conservation and replay do not establish hardware validity. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md new file mode 100644 index 0000000..c413506 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md @@ -0,0 +1,46 @@ +# Bocais de combustível compressível com título congelado + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · **Português** + +## Contrato físico + +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. + +Declare área, coeficiente de área efetiva e `wall_kinetic_fraction`, com parede térmica finita. `initial_input` é abertura em [0,1], alterável por canal opcional. Os opcionais `needle_node`, `closed_position` e `full_open_position` multiplicam o comando pela abertura real da agulha translacional. As portas têm velocidade média zero, mesmo material e poder calorífico e não podem ser células internas. Pressão reversa fecha a fronteira ideal sem limiar de abertura. + +## Energia e bloqueio sônico + +As fases compartilham pressão, temperatura e velocidade; a transferência mássica de fase é suprimida. Entropia e energia de compressão fria determinam a queda isentrópica de entalpia. O máximo único de fluxo usa som congelado, diferente do som de equilíbrio. O coeficiente escala área efetiva. No bloqueio, a energia de saída descreve um jato ideal totalmente expandido à pressão receptora. A entalpia de estagnação paga uma vez a energia receptora e o calor explícito da parede. O impulso mede termalização estacionária, não empuxo total da carcaça ou força axial na agulha. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Subpassos conservativos de primeira ordem transferem igual massa e entalpia e dividem a energia cinética entre fluido e parede. Verificam-se estados e entropia total do par. Limites: 4096 subpassos, 64 reduções à metade por candidato e transferência inicial de até 0.1 da menor massa. O fechamento permite 128 epsilon binary64 vezes o maior módulo volumétrico ou pressão, sem limitar pressões informadas. Falhas revertem todo o lote. Examine passo, inventário, limites, curso e área. + +## Uso e evidências + +Execute `compressible-fuel-nozzle` para descarga finita ou `compressible-pump-needle` para duto, eixo, entrada unidirecional e agulha solenoide. Leia massa, entalpia, energia cinética, calor, impulso e entropia acumulados. Fluxo e força médios abrangem o tick inteiro; garganta, saída e título retêm o último trânsito aceito. Comparam-se trabalho líquido exato, bloqueio analítico de gás/líquido, quadratura independente, entropia e derivada sonora congeladas, varredura densa e refinamento do esvaziamento crítico analítico. Conservação, movimento real, reprodução, ramos, reversão, cancelamento, alocações, assets e MCP são verificados separadamente. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Validade e próximos passos + +Os parâmetros continuam `unverified`. O pseudofluido puro usa vapor ideal e líquido compressível sem expansão térmica. Respeite pressão e temperatura declaradas, incluindo o jato ideal. O trânsito congelado pode manter líquido superaquecido sem prever limites medidos de nucleação ou metaestabilidade. Relaxação finita, deslizamento, spray resolvido, gás portador não condensável, receptor com combustão, mapas medidos e Unity real permanecem abertos. Conservação e reprodução não demonstram validade de hardware. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.ru.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.ru.md new file mode 100644 index 0000000..f11afa3 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.ru.md @@ -0,0 +1,46 @@ +# Сжимаемые топливные сопла с замороженным составом + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · [简体中文](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · **Русский** · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## Физический контракт + +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. + +Задайте площадь, коэффициент эффективной площади и `wall_kinetic_fraction` с конечной тепловой стенкой. `initial_input` — открытие в [0,1], изменяемое необязательным каналом. Необязательные `needle_node`, `closed_position`, `full_open_position` умножают команду на реальное открытие поступательной иглы. Порты имеют нулевую среднюю скорость, одинаковые материал и теплотворность и не являются внутренними ячейками. Обратное давление закрывает идеальную границу с нулевым порогом открытия. + +## Энергия и критическое течение + +Фазы разделяют давление, температуру и скорость; межфазный массоперенос подавлен. Энтропия и холодное сжатие задают изоэнтропный перепад энтальпии. Единственный максимум потока использует замороженную скорость звука, отличную от равновесной. Коэффициент масштабирует площадь. При запирании выходная энергия относится к идеальной струе, полностью расширенной до давления приёмника. Энтальпия торможения однократно покрывает энергию приёмника и тепло стенки. Импульс относится к стационарной термализации, а не полной тяге корпуса или осевой силе иглы. + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +Консервативные подшаги первого порядка переносят одинаковую массу и энтальпию; кинетическая энергия делится между средой и стенкой. Проверяются состояния и полная энтропия пары. Пределы: 4096 подшагов, 64 деления пополам на кандидат, начальный перенос не больше 0.1 меньшей массы. Закрытие допускает 128 epsilon binary64, умноженных на наибольший модуль упругости или давление; выдаваемые давления не обрезаются. Ошибка откатывает весь пакет. Уменьшите шаг и проверьте запасы, границы, ход иглы и площадь. + +## Применение и проверка + +Запустите `compressible-fuel-nozzle` для конечного истечения или `compressible-pump-needle` для канала, вала, одностороннего входа и электромагнитной иглы. Наблюдаемы накопленные масса, энтальпия, кинетическая энергия, тепло стенки, импульс и энтропия. Расход и сила усредняются за полный такт; горло, выход и паросодержание сохраняют последний принятый переход. Проверяются точная работа жидкости, аналитическое запирание газа/жидкости, независимая квадратура, замороженные энтропия и акустическая производная, плотный поиск максимума и уточнение аналитического критического опорожнения. Сохранение, реальное движение, воспроизведение, ветви, откат, отмена, выделения, assets и MCP проверяются отдельно. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Применимость и дальнейшая работа + +Параметры остаются `unverified`. Чистая псевдосреда сочетает идеальный пар и сжимаемую жидкость без теплового расширения. Соблюдайте пределы, включая температуру идеальной струи. Замороженный переход может сохранять перегретую жидкость, но не предсказывает измеренную границу зародышеобразования или метастабильности. Конечная релаксация, скольжение, разрешённый распыл, неконденсируемый газ, приёмник с горением, измеренные карты и фактическая проверка Unity остаются открытыми. Сохранение и воспроизведение не доказывают аппаратную достоверность. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md b/docs/COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md new file mode 100644 index 0000000..02058d0 --- /dev/null +++ b/docs/COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md @@ -0,0 +1,46 @@ +# 冻结相态可压缩燃料喷嘴 + +[English](COMPRESSIBLE_FUEL_NOZZLE.md) · **简体中文** · [Français](COMPRESSIBLE_FUEL_NOZZLE.fr.md) · [Русский](COMPRESSIBLE_FUEL_NOZZLE.ru.md) · [日本語](COMPRESSIBLE_FUEL_NOZZLE.ja.md) · [한국어](COMPRESSIBLE_FUEL_NOZZLE.ko.md) · [Deutsch](COMPRESSIBLE_FUEL_NOZZLE.de.md) · [Español](COMPRESSIBLE_FUEL_NOZZLE.es.md) · [Italiano](COMPRESSIBLE_FUEL_NOZZLE.it.md) · [Português](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) + +## 物理契约 + +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 + +声明截面积、有效面积流量系数和 `wall_kinetic_fraction`,并连接有限热壁面。`initial_input` 是 [0,1] 内的开度,可选输入通道用于改变它。可选的 `needle_node`、`closed_position` 和 `full_open_position` 将指令乘以实际平动针阀开度。两端主体速度为零,材料与热值一致,且不能是管路内部单元。反向压差会关闭这个理想零开启压差边界。 + +## 能量与阻塞 + +冻结两相共享压力、温度和速度,相间质量转移受到抑制。熵关系与液体冷压缩能共同确定等熵焓降。质量通量存在唯一最大值,其条件使用冻结声速,区别于平衡声速。流量系数缩放有效面积。阻塞时,出口能量描述理想喷流完全膨胀到接收腔压力的状态。供给端滞止焓一次性支付接收腔能量和显式壁面喷流热。喷流冲量只表示静止热化过程,不代表完整壳体推力或针阀轴向力。 + +```text +cp_f = (1-x) cl + x (cv+R); alpha = x R/cp_f +T(p) = T0 (p/p0)^alpha +v(p) = (1-x)/[rho0 (1+p/K)] + x R T(p)/p +Delta_s = cp_f ln(T/T0) - x R ln(p/p0) = 0 +D(p) = h0-h(p) + = cp_f T0 [1-(p/p0)^alpha] + (1-x) K/rho0 ln[(K+p0)/(K+p)] +G(p) = sqrt(2 D(p))/v(p) +c_frozen^2 = -v(p)^2 / (dv/dp at fixed s,x) +F(p) = v(p)^2 + 2 D(p) v'(p); F'(p) = 2 D(p) v''(p) > 0 +G_throat = max(G(p), p_receiver <= p <= p0) +mass_flow = opening Cd A G_throat +Delta_E_A = -Delta_m h0 +Delta_E_B = Delta_m h0 - xi Delta_m D(p_receiver) +Delta_E_wall = xi Delta_m D(p_receiver) +``` + +守恒的一阶子步在储腔之间转移相同的质量和焓,并在接收流体与壁面之间分配喷流动能。接受子步前检查两端材料状态与总熵变。每个区间最多 4096 个子步,每个候选最多减半 64 次;初始转移量上限是较小储腔质量的 0.1 倍。闭阀压差允许 128 倍 binary64 epsilon 乘以最大体积模量或端口压力的舍入量,报告压力不作钳制。失败区间会回滚整个批次。应减小时间步并检查库存、材料边界、针阀行程及阀口面积。 + +## 使用与证据 + +运行 `compressible-fuel-nozzle` 检查有限蒸气排放,或运行 `compressible-pump-needle` 检查管路供给、轴驱动泵、单向入口和电磁针阀输送。可读取累计质量、焓、喷流动能、壁面热、冲量和成对熵变。平均流量与力覆盖完整时间步,喉部、出口和相分数通道保留最近接受的穿越状态。检查对比精确液体功、气体/液体解析阻塞、独立压力积分、冻结熵和声速导数、稠密通量扫描及解析阻塞排空细化。守恒、实际针阀运动、回放、分支、回滚、取消、内存分配和资产/MCP 操作分别验证。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 适用范围与后续工作 + +参数仍为 `unverified`。模型采用理想蒸气及可压缩、零热膨胀液体组成的纯伪流体。须遵守声明的温压范围,包括理想喷流温度。冻结穿越可保留过热液体,但不预测实测成核或亚稳态极限。有限速率弛豫、相间滑移、解析喷雾、不凝载气、燃烧接收腔耦合、实测特性图及实际 Unity 验收仍待完成。守恒与回放不能证明硬件有效性。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/DEVELOPMENT_STATUS.de.md b/docs/DEVELOPMENT_STATUS.de.md index 970137f..cd7b34a 100644 --- a/docs/DEVELOPMENT_STATUS.de.md +++ b/docs/DEVELOPMENT_STATUS.de.md @@ -14,12 +14,12 @@ abgenommene Unity-Desktop-Anwendung bleiben unfertig. |---|---|---| | Kern | Explizite Einheiten und stabile IDs; unveränderliche Kompilierung; begrenzte Ganzzahlzeit; beobachtbare Bilanzen; Replay, Abbruch, unabhängige Abzweigungen und Rollback des gesamten Batches | Nachweise für Langzeit und vollständigen Antriebsstrang | | Motor | Abgeschlossene und offene Zylinder, Schubkurbel-Druckarbeit, bidirektionaler Gasstrom, kurbelzeitgesteuerte Ventile, Wandwärme und vorgeschriebene Vormischverbrennung | Detaillierte Saug- und Auslassseite, Zündung, mechanische Verluste, reichere Thermochemie und gemessenes Motorverhalten | -| Kraftstoff | Verfolgter Kraftstoff, Luft und Produkte, endliche gasförmige Leitungen mit Zyklusdosierung, endliche nachgiebige Flüssigkeitsleitungen, die Filme speisen, von der Wand bezahlte Verdampfung und reine Dampfreaktion | Leitungspumpe und Nachfüllung, nichtlineares magnetisches, elektronisches und Spray-Verhalten, druckabhängiges Phasengleichgewicht und gemessene Kraftstoffeigenschaften | +| Kraftstoff | Zyklusdosierung, pumpengespeiste nachgiebige Rails, endliche Tanks, erhaltende Rückläufe, Filmverdampfung, physische Nadeln und begrenzte Schließvorhersage; [Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md); [Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md); [Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md); [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md); [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md); [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md); [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md); [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md); [Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md); [Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md); [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) | Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. | | Getriebe | Haft- und Gleitkupplungen, Kontaktbetätigung, vorzeichenbehaftete Zahnräder und Planetensätze, tabellierter Wandler und Überbrückung sowie DCT-Pfade mit sieben Vorwärtsgängen und Rückwärtsgang und Ravigneaux-Pfade mit vier Vorwärtsgängen und Rückwärtsgang bei aufgelöster Planetendrehung und Bahnträgheit | Nachgiebigkeit, Verluste und Lastverteilung der Verzahnung, DCT-Ansteuerung, vollständige AT-Druck- und Schaltregelung und gemessene Führung, abgestimmte Schaltungen, gemessene Verluste und reicheres Wandlerverhalten | | Hydraulik | Nachgiebige Volumina, Drosseln, Pumpen mit expliziter Leckage und Schlepp, Druckbegrenzung, dynamische Kolben, dosierte Schieber und Gasakkumulatoren endlicher Energie | Gemessene Ventil-, Akkumulator- und Pumpenkennfelder, Dichtungsreibung, Kavitation und vollständige Getriebehydraulik | | Elektrik | RL-Motoren, reziproke Solenoide variabler Induktivität, Batterie endlicher Ladung, Widerstands- und RC-Polarisation, gemittelte Wandlung des Tastverhältnisses und Zusatzverbraucher | Gemessenes chemisches und thermisches Verhalten, BMS, Stromregelung und vollständige Versorgungsintegration | -| Regelungen | Abgetasteter Druck-PI, Nadelrückführung und Schließvorhersage sowie sensorbestätigte gestaffelte DCT-Regelung mit Stellgliedbesitz, ganzzahligen Uhren und transaktionalem Gedächtnis | ECU-/TCU-Momentenabstimmung, Sensoren, Stellglieder und Fehlerbehandlung | -| Dokumente und Assets | Vierunddreißig JSON-/CLI-Laboratorien, dreiunddreißig MCP-Beispiele, Asset v24 mit Lesern für v1-v23 | Werkbank-Bearbeitung und -Speichern sowie kalibrierte Modellsammlungen | +| Regelungen | Abgetasteter Druck-PI, Nadeldosierung/Schließregelung, gestufte DCT-Übergabe und AT-Druckrückkopplung mit physischer Verriegelungsbestätigung | ECU-/TCU-Momentenabstimmung, Sensoren, Stellglieder und Fehlerbehandlung | +| Dokumente und Assets | 68 JSON/CLI-Labore, 67 MCP-Beispiele, Asset v41 und Leser für v1-v40 | Workbench-Bearbeitung/Speicherung und kalibrierte Modellsammlungen | | Agenten | Zwölf schema-definierte MCP-Werkzeuge; kompakte Nachweise, Revisionsprüfungen und handlungsfähige Diagnosen | Vollständige Abläufe für den verbleibenden physikalischen und Regelumfang | | Unity | Modellimport, Wiedergabe auf exakten Ticks, schematische 3D-Komponenten, Steuerungen, Zurücksetzen und vorbereitete Lebenszyklustests | Tatsächliche Editor-/Play-Abnahme, wählbare Diagramme, Graphbearbeitung und -Speichern sowie Player/IL2CPP | | Natives Archiv | Forschungsprototypen in Zig 0.15.2, erhaltenes ABI und ursprüngliche Quellenherkunft | Historische Referenz; die verwaltete Migration bleibt von der vollen Funktionalität getrennt | @@ -29,101 +29,44 @@ Transport, einem Modellanbieter oder Drittanbietern. Skripte in Unity Assets ver C# 9. Unity lädt die Standard-Assemblies, die das externe SDK baut; es kompiliert keinen Quelltext für .NET 10 oder C# 14. +`LiquidColumn` ist eine eigenständige C#-Referenz für ein waagerechtes starres Rohr mit konstantem Querschnitt, gleichförmiger Geschwindigkeit, Flüssigkeitsdichte und Temperatur. Absolute Portdrücke sind je Intervall vorgegeben. Lineare und quadratische Widerstände sind explizite Forschungswerte. Es ist keine Graphkomponente; Netzwerk und Düsen bleiben unverändert. [Referenz für den Impuls am Flüssigkeitseinlass](LIQUID_COLUMN.de.md) + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. [Impuls einer endlichen Flüssigkraftstoffleitung](FUEL_INERTIAL_PIPE.de.md) + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. [Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. [Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) + ## Nachweise und Grenzen -Der [Graph der AT-Hydraulikbetätigung](AT_HYDRAULIC_ACTUATION.de.md) versorgt alle fünf -Bereichselemente und die optionale Wandlerüberbrückung aus einer gemeinsamen wellengetriebenen Pumpe. -Explizite Füll- und Ablasspfade, endliche Kolbenbewegung, Rückstellfedern und vom Belag abgeleitete -Kapazität erhalten hydraulische Verdrängungsarbeit und tatsächliches Erfassungs- und Löseverhalten. -Vorgeschriebene Ventile sind keine sensorbestätigte AT-Regelung und keine gemessene Ventilkörperabnahme. Vollständiges Antriebsstrangverhalten und gemessene Abnahme bleiben -unfertig. - - -Das erforderliche serielle `dotnet run --file tools/Build.cs -- verify` besteht lokal auf -Windows x64. Es deckt beide Assembly-Ziele ab, gehostet auf .NET 10, einen echten MCP-Kindprozess, alle Laborberichte, das Zig-Archiv und das C#-ABI. Aktuelle Zählungen, -Protokollpfade, Schemaprüfungen, numerische Ergebnisse und erhaltene CI-Herkunft stehen in -[VALIDATION.de.md](VALIDATION.de.md). Tests der Standard-Assemblies auf .NET 10 begründen -keine Unity-Laufzeitkompatibilität. - -Der [Kraftstofffilm-Schritt](FUEL_FILM.de.md) hat jetzt analytische Prüfungen für Heizung, Sättigung und Austrocknung, -unabhängige gleichzeitige ODE-Referenzen, Massen-, chemische und thermische Erhaltung, -portables Replay und vollständige Sitzungstransaktionen. Symmetrische Filmreihenfolge gibt -glatte Verfeinerung zweiter Ordnung für Filme, die eine Wand teilen. Die Kopplung an andere Wandwärmequellen behält die bestehende explizite Wandgrenze erster Ordnung. Exaktes Replay -ist getrennt von Zeitschrittgenauigkeit, bestandenen KPIs und kalibrierter Physik. - -Der [Ravigneaux-Forschungsgraph](RAVIGNEAUX_TRANSMISSION.de.md) ergänzt Einzel- und Doppelritzelbedingungen, fünf Reibpfade, vier Vorwärtsbereiche und Rückwärtsgang. -Unabhängige Referenzen für freie Masse, gespiegelte Trägheit und Bremserfassung prüfen -Portreaktionen und Wärme. Gemeinsame Momenten- und gezündete Wandler-Experimente bewahren -volles Replay und explizite Forschungsgrenzen. Der reduzierte Pfad lässt die Planetendrehung weg; detaillierte Hydraulik, -AT-Regelung und OEM-Topologie sowie Kalibrierung bleiben unfertig. Die [aufgelöste Variante](RESOLVED_PLANETS.de.md) -ergänzt vier tatsächliche Verzahnungen, zwei Rotoren absoluter Drehung und explizite Bahnträgheit; -unabhängige Referenzen für Sechs-Rotor-Masse, Drehimpuls und Erfassung behalten diese -Energien. Detailliertes Zahn-, Schmierungs- und Lastverteilungsverhalten braucht weiterhin Nachweise. - -Der [abgetastete DCT-Regler](DCT_CONTROL.de.md) besitzt jetzt Antriebs- und Wählerbefehle, -wählt unbelastete Pfade voraus, wartet auf physische Synchronisation und Verriegelung und führt -exklusive gestaffelte Lösung und Eingriff aus. Ganzzahlige Ganganforderungen, Abbruch in Neutral, -Fehler für Richtung, Zeitüberschreitung und dauerhaften Verriegelungsverlust sowie Erholung bei neuer Anforderung sind beobachtbar. -Der bestätigte Gang kann während vorübergehenden Schlupfes vorübergehend null sein, auch nach einer früheren -Bestätigung. Geregelte lange Gangläufe verwenden transaktional kompensierte Koordinaten, -bei unveränderten strengen Phasentoleranzen. Die explizite Zustandsgrenze ist 128; Knoten- und -Komponentengrenzen bleiben 32/64 und erlauben die Zusammensetzung aus 70 Zuständen für Zündung und Regler. -Vollständig momentengemischte Schaltungen, Stellglieder und umfassende ECU-/TCU-Fehler bleiben offen. - -Der [Doppelkupplungs-Schritt](DUAL_CLUTCH_TRANSMISSION.de.md) setzt jetzt sieben -Vorwärtspfade, ein Zwischenrad für den geraden Rückwärtspfad, drei Abgangs- und Achsantriebszweige und -explizite Reibungswähler zusammen. Unabhängige Referenzen für vorzeichenbehaftete und gespiegelte Trägheit sowie für den Impuls und die Wärme der Vorauswahl -prüfen die Leistungspfade. Momenten- und Zündexperimente spielen -durch alle gewöhnlichen Graph-, Asset- und Agentenschichten. Ein begrenzter normierter linearer Verriegelungsrückfall löst die zuvor fehlschlagende Übergabe sechs/sieben und behält bestehende -Trajektorien als Regressionen. Vorgeschriebene Wahl und Übergabe sind keine vollständige TCU und kein -detailliertes Klauen-, Sperrring- oder Stellgliedverhalten; Parameter und OEM-Beispiele bleiben ungeprüft. - -Der [Schritt der Schließkompensation](CLOSURE_PREDICTION.de.md) spielt eine begrenzte -Streckenzukunft mit gehaltenen Eingaben ab, ohne Zustand festzuschreiben. Er sagt den verbleibenden Nadelstrom voraus und plant die Spannungsabschaltung auf dem physischen Tickraster. Die isolierte Dosisverfolgung verbessert sich, während echtes Schließen, Abprall und Kraftstoff- sowie Energiehistorien -unveränderte physikalische Mechanismen bleiben. Nur-Lese-Vorhersagen, ganzzahlige Grenzen, Horizontverfeinerung, null Allokationen und vollständige Transaktionen sind geprüft. Die Vorhersage -hält andere Befehle und lässt künftige externe Eingabeereignisse weg; ihr Modell und der endliche -Horizont sind explizite Grenzen, keine Kalibrierung und keine vollständige ECU-Abnahme. - -Der [Nadelschritt](NEEDLE_ACTUATION.de.md) koppelt magnetische Flussenergie und -reziproke Kraft an die tatsächliche Nadelmasse, Feder und Dämpfung sowie elastische Anschläge. Ganzzahlige -Abtastung besitzt die Spulenspannung aus der Rückführung der gelieferten Dosis. Das Fluid bleibt durch -den physischen Hub über Schließverzögerung und Abprall bestimmt; es wird nicht auf das Ziel beschnitten. -Unabhängige magnetische, RL- und Bewegungsreferenzen, Bilanzen von Quelle, Phase, Elektrik und Wärme, -portables Replay und MCP-Replay sowie volle Reglertransaktionen bestehen. Mehrlieferung und -verbleibende Flüssigkeit an der Experimentgrenze bleiben beobachtbar; diese Ergebnisse begründen -keine kalibrierte Dosisverfolgung und keine vollständige Injektor-Elektronik oder -Magnetik. - -Der [Schritt der Flüssigeinspritzung](LIQUID_FUEL_INJECTION.de.md) startet jetzt von einem trockenen -Film und entnimmt aus einer endlichen nachgiebigen Quelle. Analytischer Leitungsdruck und Leitungsarbeit, -unabhängige gleichzeitige Verfeinerung, vollständige Bilanzen von Quelle, Film, Chemie und Wärme, -tatsächliches MCP-Replay und spekulatives Kupplungs-Rollback bestehen. Die Druckenergie der Leitung ist -gespeichert; Düsenwärme und exportierte Empfängerdruckarbeit bleiben verschieden. Die -Empfängerreduktion bei vernachlässigbarem Flüssigkeitsvolumen ist explizit und wird nicht als -zusätzliche Gasvolumen- oder Kurbelarbeit gutgeschrieben. Verfeinertes magnetisches, elektronisches und Spray-Verhalten, Pumpe und Nachfüllung sowie gemessene Hardware -bleiben offen. - -`film-fired-cylinder` enthält anfangs einen erklärten Flüssigkeitsvorrat. Es heizt -diesen Vorrat und verdampft ihn vor der vorgeschriebenen Reaktion; es setzt keinen -Flüssigeinspritzer um. Vorbereitete Studio-Markierungen und Tests verbrauchen dieselben Definitionen. -`POWER_UNITY_EDITOR` ist nicht gesetzt, daher bleiben tatsächlicher Editor und Play, Rendering und Player/IL2CPP -ungeprüft. - -Alle Forschungsparameter bleiben `unverified`. EA211 DJS + DQ200 und PSA EC5 + AT8 -behalten ihre vollständigen Antriebsstranggrenzen und Nachweislisten in -[assets/samples](../assets/samples). Fehlende OEM-Messungen bleiben fehlend. -Lizenzen und historische Quellenherkunft bleiben erhalten. +Der vorgeschriebene serielle Befehl `dotnet run --file tools/Build.cs -- verify` prüft beide Assembly-Ziele, einen echten MCP-Prozess, alle Labore, das Zig-Archiv und die C#-ABI. Zählwerte, Ergebnisse und Logpfade stehen in [VALIDATION.md](VALIDATION.md). Standard-Assembly-Prüfungen unter .NET 10 belegen keine Unity-Laufzeitabnahme. + +Die Kraftstoffversorgung umfasst [endliche Tanks](LIQUID_FUEL_TANK.de.md) und [verfolgte Entlastungsrückläufe](LIQUID_FUEL_RETURN.de.md) mit Massen-, kalorischen, chemischen und Druckarbeitsbilanzen. Der [hydraulische AT-Regler](AT_CONTROL.de.md) regelt Aktuatordruck und bestätigt den physischen Gang/Lockup. Unabhängige Referenzen und vollständige Transaktionen stützen diese Forschungsmodelle; vollständige ECU/TCU-Koordination und gemessenes Hardwareverhalten bleiben offen. + +`POWER_UNITY_EDITOR` ist in der aktuellen Umgebung nicht gesetzt. Studio-Import, Wiedergabe und vorbereitete Tests benötigen noch echte Editor/Play-, Rendering- und Player/IL2CPP-Nachweise. + +Alle Parameter bleiben `unverified`. EA211 DJS + DQ200 und PSA EC5 + AT8 bewahren vollständige Grenzen und Nachweismanifeste in [assets/samples](../assets/samples). Fehlende OEM-Messwerte bleiben fehlend. Lizenzen und historische Quellherkunft bleiben erhalten. + +CLI `list-labs`, MCP-Beispieldiscovery und serielle Prüfung nutzen [einen Laborkatalog](../assets/labs/catalog.json). Die Prüfung verlangt die Abdeckung jeder Laborquelldatei. + +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) ## Nächste Entwicklungsfolge -1. Erhaltende Leitungspumpe und Nachfüllung sowie gemessene magnetische und elektronische Ansteuerung auf - [endlicher nachgiebiger Flüssigkeitszufuhr](LIQUID_FUEL_INJECTION.de.md) ergänzen. Die erklärte - exportierte Verdrängungsarbeitsgrenze ersetzen, wenn endliches Flüssigkeitsvolumen und Sprayimpuls aufgelöst sind. Gelieferte Flüssigkeit, verdampften Kraftstoff und Reaktion - getrennt beobachtbar halten und unabhängige Referenzen behalten. +1. Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. 2. Den Motor um Zündungsregelung, Saug- und Auslassdynamik, mechanische Verluste und reichere Thermochemie erweitern. Das vollständige Motorziel bewahren. -3. Die geprüften DCT-Forschungspfade um detaillierte Ansteuerung, gemessene Planeteneigenschaften und Verluste sowie vollständige AT-Hydraulik und Regelung erweitern und danach ECU-/TCU-Schalt- und Momentenabstimmung aus - den geprüften Zahnrad-, Kupplungs-, Wandler- und Hydraulikprimitiven bauen. Begrenzten - Reglerzustand, Sensor- und Stellgliedverhalten sowie Fehlererholung ergänzen. +3. DCT-Aktuierung sowie gemessene Planeten-/AT-Hydraulik erweitern, dann ECU/TCU-Drehmomentanforderungen und Schaltungen mit den bestehenden abgetasteten DCT- und AT-Reglern koordinieren. Gemessene Sensoren, Aktuatoren und behebbare Fehler hinzufügen. 4. `unity-test` mit dem gepinnten Editor ausführen und danach Player-/IL2CPP-Nachweise holen. Kanalwahl, Graphbearbeitung und Speichern als getrennte Funktionen abschließen. 5. Gemessene Kennfelder, OEM-Daten und Unsicherheitsbudgets für die beiden Zielantriebsstränge holen, bevor kalibrierte Beispiele oder Veröffentlichungsreife erklärt werden. + +[Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) diff --git a/docs/DEVELOPMENT_STATUS.es.md b/docs/DEVELOPMENT_STATUS.es.md index a589355..b9eb7aa 100644 --- a/docs/DEVELOPMENT_STATUS.es.md +++ b/docs/DEVELOPMENT_STATUS.es.md @@ -14,12 +14,12 @@ aplicación de escritorio de Unity aceptada. |---|---|---| | Núcleo | Unidades explícitas e IDs estables; compilación inmutable; tiempo entero acotado; libros observables; repetición, cancelación, bifurcaciones independientes y reversión del lote entero | Evidencia de larga duración y del grupo motopropulsor completo | | Motor | Cilindros cerrados y abiertos, trabajo de presión de biela-manivela, flujo de gas bidireccional, válvulas temporizadas por cigüeñal, calor de pared y combustión premmezclada prescrita | Admisión y escape detallados, encendido, pérdidas mecánicas, termoquímica más rica y comportamiento medido del motor | -| Combustible | Combustible, aire y productos rastreados, raíles gaseosos finitos con dosificación por ciclo, raíles líquidos flexibles y finitos que alimentan películas, evaporación pagada por la pared y reacción solo de vapor | Bomba de raíl y repostaje, comportamiento magnético, electrónico y de pulverización no lineal, equilibrio de fases dependiente de la presión y propiedades de combustible medidas | +| Combustible | Dosificación por ciclo, rieles flexibles con bomba, tanques finitos, retornos de alivio conservativos, evaporación de película, agujas físicas y predicción acotada de cierre; [Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md); [Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md); [Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md); [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md); [Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md); [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md); [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md); [Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md); [Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md); [Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md); [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) | Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. | | Transmisión | Embragues estáticos y deslizantes, actuación por contacto, engranajes y planetarios con signo, convertidor y bloqueo mapeados, y caminos DCT de siete marchas adelante y marcha atrás y Ravigneaux de cuatro adelante y marcha atrás, con giro de satélite e inercia orbital resueltos | Flexibilidad, pérdidas y reparto de carga del engrane, actuación DCT, control completo de presión y cambio de la AT y encaminamiento medido, cambios coordinados, pérdidas medidas y comportamiento de convertidor más rico | | Hidráulica | Volúmenes flexibles, restricciones, bombas con fugas y arrastre explícitos, alivio, pistones dinámicos, correderas dosificadas y acumuladores de gas de energía finita | Mapas medidos de válvulas, acumuladores y bombas, fricción de juntas, cavitación e hidráulica completa de transmisión | | Eléctrica | Motores RL, solenoides recíprocos de inductancia variable, batería de carga finita, polarización por resistencia y RC, conversión de ciclo de trabajo promediada y accesorios | Comportamiento químico y térmico medido, BMS, control de corriente e integración completa de la alimentación | -| Controles | PI de presión muestreado, realimentación y predicción de cierre de la aguja, y control DCT escalonado confirmado por sensor, con propiedad de los actuadores, relojes enteros y memoria transaccional | Coordinación de par de ECU/TCU, sensores, actuadores y tratamiento de fallos | -| Documentos y assets | Treinta y cuatro laboratorios JSON/CLI, treinta y tres ejemplos MCP, asset v24 con lectores v1-v23 | Edición y guardado en el banco de trabajo, y colecciones de modelos calibradas | +| Controles | PI de presión muestreado, dosis/cierre de aguja, relevo DCT escalonado y cambios AT por realimentación de presión con confirmación física de bloqueo | Coordinación de par de ECU/TCU, sensores, actuadores y tratamiento de fallos | +| Documentos y assets | 68 laboratorios JSON/CLI, 67 ejemplos MCP, asset v41 y lectores v1-v40 | Edición/guardado y colecciones de modelos calibrados | | Agentes | Doce herramientas MCP definidas por esquema; evidencia compacta, comprobaciones de revisión y diagnósticos accionables | Flujos completos para el alcance físico y de control restante | | Unity | Importación de modelos, reproducción en ticks exactos, componentes 3D esquemáticos, controles, reinicio y pruebas de ciclo de vida preparadas | Aceptación real de Editor/Play, gráficas seleccionables, edición y guardado de grafos, y Player/IL2CPP | | Archivo nativo | Prototipos de investigación en Zig 0.15.2, ABI conservado y procedencia original de las fuentes | Referencia histórica; la migración gestionada sigue separada de la funcionalidad completa | @@ -29,111 +29,45 @@ de transporte, de proveedor de modelos ni de terceros. Los scripts de Unity Asse C# 9. Unity carga los ensamblados Standard compilados por el SDK externo; no compila fuente de .NET 10 ni de C# 14. +`LiquidColumn` es una referencia C# independiente de un tubo horizontal rígido con sección, velocidad uniforme, densidad líquida y temperatura constantes. Las presiones absolutas se prescriben por intervalo. Las resistencias lineal y cuadrática son entradas de investigación explícitas. No es un componente del grafo ni cambia las ecuaciones de red o tobera. [Referencia de cantidad de movimiento en la entrada líquida](LIQUID_COLUMN.es.md) + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. [Cantidad de movimiento en una línea finita de combustible líquido](FUEL_INERTIAL_PIPE.es.md) + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. [Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. [Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. [Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) + ## Evidencia y límites -El [grafo de actuación hidráulica de la AT](AT_HYDRAULIC_ACTUATION.es.md) suministra los cinco -elementos de rango y el bloqueo opcional del convertidor desde una bomba compartida accionada por eje. -Los caminos explícitos de llenado y drenaje, el movimiento finito del pistón, los resortes de retorno y la capacidad -derivada de la pastilla conservan el trabajo de desplazamiento hidráulico y el comportamiento real de captura y liberación. -Las válvulas prescritas no son un control AT confirmado por sensor ni una aceptación medida del cuerpo -de válvulas. El comportamiento completo del grupo motopropulsor y la aceptación medida siguen -inconclusos. - - -La `dotnet run --file tools/Build.cs -- verify` en serie exigida pasa en local en -Windows x64. Cubre los dos destinos de ensamblado alojados en .NET 10, un proceso hijo MCP -real, todos los informes de laboratorio, el archivo Zig y el ABI de C#. Los recuentos actuales, -las rutas de registro, las comprobaciones de esquema, los resultados numéricos y la procedencia de CI conservada están en -[VALIDATION.es.md](VALIDATION.es.md). Las pruebas de ensamblados Standard en .NET 10 no establecen -compatibilidad con el runtime de Unity. - -El [incremento de película líquida](FUEL_FILM.es.md) tiene ahora comprobaciones analíticas de calentamiento, saturación y secado, -referencias ODE simultáneas independientes, conservación de masa, química y térmica, -repetición portátil y transacciones de sesión completas. El orden simétrico de las películas da -un refinamiento suave de segundo orden a las películas que comparten pared. El acoplamiento con otras fuentes de calor -de pared conserva el límite explícito de pared de primer orden existente. La repetición exacta -es independiente de la precisión del paso temporal, de los KPI aprobados y de la física calibrada. - -El [grafo de investigación Ravigneaux](RAVIGNEAUX_TRANSMISSION.es.md) añade restricciones de piñón -simple y doble, cinco caminos de fricción, cuatro rangos adelante y marcha atrás. -Referencias independientes de masa libre, inercia reflejada y captura con freno comprueban -las reacciones de puerto y el calor. Los experimentos de par compartido y de convertidor encendido conservan -la repetición completa y los límites de investigación explícitos. El camino reducido omite el giro de los satélites; la hidráulica detallada, -el control AT y la topología y calibración OEM siguen inconclusos. La [opción resuelta](RESOLVED_PLANETS.es.md) -añade cuatro engranes reales, dos rotores de giro absoluto e inercia orbital explícita; -referencias independientes de masa de seis rotores, de momento angular y de captura conservan esas -energías. El comportamiento detallado de dientes, lubricación y reparto de carga aún necesita evidencia. - -El [controlador DCT muestreado](DCT_CONTROL.es.md) posee ahora los comandos de tracción y de selector, -preselecciona caminos descargados, espera la sincronización y el bloqueo físicos, y realiza -una liberación y un acoplamiento exclusivos y escalonados. Son observables las solicitudes de marcha enteras, el aborto a -punto muerto, los fallos de dirección, de tiempo de espera y de pérdida persistente de bloqueo, y la recuperación por una solicitud nueva. -La marcha confirmada puede ser temporalmente cero durante un deslizamiento transitorio incluso después de una -confirmación previa. Las marchas largas controladas usan coordenadas compensadas transaccionales, -con las tolerancias de fase estrictas sin cambios. El límite explícito de estado es 128; los límites de nodos y -de componentes siguen en 32/64, lo que permite la composición encendido/controlador de 70 estados. -Siguen pendientes los cambios con mezcla de par completa, los actuadores y los fallos exhaustivos de ECU/TCU. - -El [incremento de doble embrague](DUAL_CLUTCH_TRANSMISSION.es.md) ensambla ahora siete -caminos adelante, un piñón loco de marcha atrás en el camino par, tres ramas de salida y de transmisión final, y -selectores de fricción explícitos. Referencias independientes de inercia con signo y reflejada, y de impulso -y calor de preselección, verifican los caminos de potencia. Los experimentos de par y encendidos se repiten -a través de todas las capas ordinarias de grafo, asset y agente. Una reserva de bloqueo lineal normalizado -y acotado resuelve la entrega seis/siete que antes fallaba, y conserva las trayectorias -existentes como regresiones. La selección y la entrega prescritas no son una TCU completa ni -el comportamiento detallado de garras, anillo de bloqueo y actuador; los parámetros y las muestras OEM siguen sin verificar. - -El [incremento de compensación de cierre](CLOSURE_PREDICTION.es.md) repite un futuro acotado -de la planta con entradas retenidas sin confirmar estado. Predice el caudal residual de la aguja -y planifica la retirada de voltaje en la rejilla de ticks físicos. El seguimiento aislado de la dosis -mejora, mientras el cierre y el rebote reales y los historiales de combustible y energía siguen siendo -mecanismos físicos sin cambios. Están verificados las predicciones de solo lectura, los límites enteros, el refinamiento -del horizonte, las cero asignaciones y las transacciones completas. La predicción -retiene los demás comandos y omite los eventos de entrada externos futuros; su modelo y su horizonte -finito son límites explícitos, no una calibración ni la aceptación completa de la ECU. - -El [incremento de la aguja](NEEDLE_ACTUATION.es.md) acopla la energía de flujo magnético y la -fuerza recíproca a la masa real de la aguja, al resorte y la amortiguación, y a los topes elásticos. El muestreo -entero posee el voltaje de bobina a partir de la realimentación de la dosis entregada. El fluido sigue gobernado por -la elevación física a través del retardo de cierre y del rebote; no se recorta al objetivo. -Pasan las referencias independientes magnéticas, de RL y de movimiento, los libros de fuente, fase, electricidad y térmica, -la repetición portátil y por MCP, y las transacciones completas del controlador. El exceso de entrega y -el líquido restante en el límite del experimento siguen siendo observables; estos resultados no -establecen un seguimiento de dosis calibrado ni una electrónica o magnética completa del inyector. - -El [incremento de inyección líquida](LIQUID_FUEL_INJECTION.es.md) parte ahora de una película -seca y toma de una fuente flexible y finita. Pasan la presión y el trabajo analíticos del raíl, -el refinamiento simultáneo independiente, los libros completos de fuente, película, química y térmica, -la repetición MCP real y la reversión especulativa del embrague. La energía de presión del raíl está -almacenada; el calor de la tobera y el trabajo de presión del receptor exportado siguen siendo distintos. La -reducción del receptor de volumen líquido despreciable es explícita y no se contabiliza como -volumen de gas adicional ni como trabajo de cigüeñal. Siguen pendientes el comportamiento magnético, electrónico y de pulverización refinado, la bomba y el repostaje, y el hardware medido. - -`film-fired-cylinder` contiene al principio un inventario líquido declarado. Calienta -y evapora ese inventario antes de la reacción prescrita; no implementa un -inyector líquido. Los marcadores y las pruebas preparados de Studio consumen las mismas definiciones. -`POWER_UNITY_EDITOR` no está definido, así que Editor/Play real, el renderizado y Player/IL2CPP -siguen sin verificar. - -Todos los parámetros de investigación siguen siendo `unverified`. EA211 DJS + DQ200 y PSA EC5 + AT8 -conservan sus límites completos de grupo motopropulsor y sus manifiestos de evidencia en -[assets/samples](../assets/samples). Las mediciones OEM que faltan siguen faltando. -Se conservan las licencias y la procedencia histórica de las fuentes. +El comando serie requerido `dotnet run --file tools/Build.cs -- verify` cubre ambos destinos de ensamblado, un proceso MCP real, todos los laboratorios, el archivo Zig y la ABI C#. Los recuentos, resultados y rutas de registros están en [VALIDATION.md](VALIDATION.md). Las comprobaciones Standard en .NET 10 no establecen aceptación del runtime Unity. + +El suministro incluye [tanques finitos](LIQUID_FUEL_TANK.es.md) y [retornos de alivio rastreados](LIQUID_FUEL_RETURN.es.md), con balances de masa, energía calórica/química y trabajo de presión. El [controlador AT hidráulico](AT_CONTROL.es.md) regula la presión de actuadores y confirma marcha/bloqueo físicos. Referencias independientes y transacciones completas respaldan estos modelos de investigación; la coordinación ECU/TCU completa y el comportamiento medido de hardware siguen pendientes. + +`POWER_UNITY_EDITOR` no está definido en el entorno actual. La importación Studio, la reproducción y las pruebas preparadas aún necesitan evidencia real de Editor/Play, renderizado y Player/IL2CPP. + +Todos los parámetros siguen `unverified`. EA211 DJS + DQ200 y PSA EC5 + AT8 conservan límites completos y manifiestos de evidencia en [assets/samples](../assets/samples). Las mediciones OEM ausentes siguen ausentes. Se conservan las licencias y la procedencia histórica del código. + +CLI `list-labs`, el descubrimiento de ejemplos MCP y la verificación serie comparten [un catálogo de laboratorios](../assets/labs/catalog.json). La verificación comprueba que cubra cada fuente de laboratorio. + +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) ## Siguiente secuencia de desarrollo -1. Añade bomba de raíl y repostaje conservativos, y actuación magnética y electrónica medida, sobre la - [entrega de líquido flexible y finita](LIQUID_FUEL_INJECTION.es.md). Sustituye el límite declarado - de trabajo de desplazamiento exportado cuando se resuelvan el volumen líquido finito y la cantidad de movimiento - de la pulverización. Mantén observables por separado el líquido entregado, el combustible evaporado y la reacción, - y conserva referencias independientes. +1. Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. 2. Amplía el motor con control de encendido, dinámica de admisión y escape, pérdidas mecánicas y termoquímica más rica. Conserva el objetivo del motor completo. -3. Amplía los caminos de investigación DCT verificados con actuación detallada, propiedades y pérdidas de satélite medidas e hidráulica - y control AT completos, y después construye la coordinación de cambio y de par de ECU/TCU a partir de - los primitivos verificados de engranaje, embrague, convertidor e hidráulica. Añade estado de - controlador acotado, comportamiento de sensores y actuadores, y recuperación de fallos. +3. Extender el accionamiento DCT y la hidráulica planetaria/AT medida, y coordinar solicitudes de par y cambios ECU/TCU con los controladores DCT y AT muestreados existentes. Añadir sensores/actuadores medidos y fallos recuperables. 4. Ejecuta `unity-test` con el Editor fijado y después obtén evidencia de Player/IL2CPP. Completa la selección de canales, la edición de grafos y el guardado como funciones distintas. 5. Obtén mapas medidos, datos OEM y presupuestos de incertidumbre para los dos grupos motopropulsores objetivo antes de declarar muestras calibradas o preparación para la publicación. + +[Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) diff --git a/docs/DEVELOPMENT_STATUS.fr.md b/docs/DEVELOPMENT_STATUS.fr.md index 4e126dc..efcd94c 100644 --- a/docs/DEVELOPMENT_STATUS.fr.md +++ b/docs/DEVELOPMENT_STATUS.fr.md @@ -10,46 +10,54 @@ Power! a un cœur de simulation managé, des documents de modèle partagés et d |---|---|---| | Cœur | Unités explicites et ID stables ; compilation immuable ; temps entier borné ; registres observables ; rejeu, annulation, dérivations indépendantes et rollback de lot entier | Preuves de longue durée et de groupe motopropulseur complet | | Moteur | Cylindres fermés/ouverts, travail de pression bielle-manivelle, écoulement gazeux bidirectionnel, soupapes calées sur le vilebrequin, chaleur de paroi et combustion prémélangée prescrite | Admission/échappement détaillés, allumage, pertes mécaniques, thermochimie plus riche et comportement moteur mesuré | -| Carburant | Carburant/air/produits suivis, rampes gazeuses finies avec dosage par cycle, rampes liquides souples finies alimentant des films, évaporation payée par la paroi et réaction vapeur seule | Pompage/ravitaillement de rampe, comportement magnétique/électronique/pulvérisation non linéaire, équilibre de phase dépendant de la pression et propriétés de carburant mesurées | +| Carburant | Dosage par cycle, rampes souples alimentées par pompe, réservoirs finis, retours de décharge conservatifs, évaporation de film, aiguilles physiques et prédiction bornée de fermeture; [Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md); [Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md); [Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md); [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md); [Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md); [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md); [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md); [Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md); [Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md); [Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md); [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) | Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. | | Transmission | Embrayages statique/glissant, actionnement par contact, engrenages/planétaires signés, convertisseur/verrouillage cartographié, et chemins DCT à sept rapports avant/marche arrière et Ravigneaux à quatre plages avant/marche arrière avec rotation des planétaires et inertie orbitale résolues | Compliance/pertes d'engrènement et partage de charge, actionnement DCT, contrôle complet de pression/passage AT et routage mesuré, passages coordonnés, pertes mesurées et comportement de convertisseur plus riche | | Hydraulique | Volumes souples, restrictions, pompes avec fuites/traînée explicites, décharge, pistons dynamiques, coulisseaux dosés et accumulateurs à gaz à énergie finie | Cartes mesurées de vanne/accumulateur/pompe, frottement de joint, cavitation et hydraulique de transmission complète | | Électrique | Moteurs RL, solénoïdes à inductance variable réciproques, batterie à charge finie, polarisation résistance/RC, conversion de rapport cyclique moyennée et accessoires | Comportement chimique/thermique mesuré, BMS, contrôle de courant et intégration complète de l'alimentation | -| Contrôles | PI de pression échantillonné, retour d'aiguille/prédiction de fermeture et contrôle DCT étagé confirmé par capteur, avec propriété des actionneurs, horloges entières et mémoire transactionnelle | Coordination de couple ECU/TCU, capteurs, actionneurs et traitement des défauts | -| Documents et assets | Trente-quatre laboratoires JSON/CLI, trente-trois exemples MCP, asset v24 avec lecteurs v1-v23 | Édition/enregistrement d'établi et collections de modèles calibrés | +| Contrôles | PI de pression échantillonné, dosage/fermeture d'aiguille, transfert DCT étagé et changements AT par retour de pression avec confirmation physique du verrouillage | Coordination de couple ECU/TCU, capteurs, actionneurs et traitement des défauts | +| Documents et assets | 68 laboratoires JSON/CLI, 67 exemples MCP, asset v41 et lecteurs v1-v40 | Édition/enregistrement et collections de modèles calibrés | | Agents | Douze outils MCP définis par schéma ; preuves compactes, contrôles de révision et diagnostics actionnables | Flux complets pour le périmètre physique/contrôle restant | | Unity | Import de modèle, rejeu à tick exact, composants 3D schématiques, contrôles, réinitialisation et tests de cycle de vie préparés | Acceptation réelle Editor/Play, tracés sélectionnables, édition/enregistrement de graphe et Player/IL2CPP | | Archive native | Prototypes de recherche Zig 0.15.2, ABI préservée et provenance des sources d'origine | Référence historique ; la migration managée reste séparée de la fonctionnalité complète | Core et Assets ciblent à la fois `net10.0` et `netstandard2.1` ; le Core n'a aucune dépendance Unity, de transport, de fournisseur de modèle ou tierce. Les scripts Unity Assets utilisent C# 9. Unity charge les assemblys Standard construits par le SDK externe ; il ne compile pas de source .NET 10/C# 14. -## Preuves et limites +`LiquidColumn` est une référence C# autonome pour un tube horizontal rigide à section, vitesse uniforme, masse volumique liquide et température constantes. Les pressions absolues aux ports sont prescrites pendant chaque intervalle. Les résistances linéaire et quadratique sont des entrées de recherche explicites. Ce n'est pas un composant du graphe ; les équations du réseau et de la tuyère restent inchangées. [Référence de quantité de mouvement à l'entrée liquide](LIQUID_COLUMN.fr.md) + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. [Quantité de mouvement d'une ligne finie de carburant liquide](FUEL_INERTIAL_PIPE.fr.md) + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) -Le [graphe d'actionnement hydraulique AT](AT_HYDRAULIC_ACTUATION.fr.md) fournit les cinq éléments de plage et le verrouillage de convertisseur facultatif depuis une pompe partagée entraînée par arbre. Des chemins explicites de remplissage/vidange, un mouvement de piston fini, des ressorts de rappel et une capacité dérivée des garnitures conservent le travail de déplacement hydraulique et le comportement réel de capture/libération. Les vannes prescrites ne sont ni un contrôle AT confirmé par capteur ni une acceptation de corps de vanne mesurée. Le comportement de groupe motopropulseur complet et l'acceptation mesurée restent inachevés. +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) -Le `dotnet run --file tools/Build.cs -- verify` en série requis passe localement sous Windows x64. Il couvre les deux cibles d'assembly hébergées sur .NET 10, un vrai processus enfant MCP, tous les rapports de laboratoire, l'archive Zig et l'ABI C#. Les comptes actuels, les chemins de journaux, les contrôles de schéma, les résultats numériques et la provenance CI conservée se trouvent dans [VALIDATION.fr.md](VALIDATION.fr.md). Les tests d'assemblys Standard sur .NET 10 n'établissent pas la compatibilité du runtime Unity. +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. [Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) -L'[incrément de film liquide](FUEL_FILM.fr.md) a maintenant des contrôles analytiques de chauffage/saturation/assèchement, des références EDO simultanées indépendantes, la conservation masse/chimique/thermique, le rejeu portable et des transactions de session complètes. L'ordre symétrique des films donne un raffinement lisse du second ordre pour des films qui partagent une paroi. Le couplage aux autres sources de chaleur de paroi conserve la limite existante de paroi explicite du premier ordre. Le rejeu exact est séparé de la précision du pas de temps, des KPI réussis et d'une physique calibrée. +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. [Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) -Le [graphe de recherche Ravigneaux](RAVIGNEAUX_TRANSMISSION.fr.md) ajoute des contraintes à simple/double satellite, cinq chemins de frottement, quatre plages avant et la marche arrière. Des références indépendantes de masse libre, d'inertie réfléchie et de capture au frein contrôlent les réactions de port et la chaleur. Les expériences de couple partagé et allumées/convertisseur conservent le rejeu complet et des frontières de recherche explicites. Le chemin réduit omet la rotation des planétaires ; l'hydraulique détaillée, le contrôle AT et la topologie/calibration OEM restent inachevés. L'[option résolue](RESOLVED_PLANETS.fr.md) ajoute quatre engrènements réels, deux rotors de rotation absolue et une inertie orbitale explicite ; des références indépendantes de masse à six rotors, de moment cinétique et de capture conservent ces énergies. Le comportement détaillé de denture/lubrification/partage de charge a encore besoin de preuves. +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. [Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) -Le [contrôleur DCT échantillonné](DCT_CONTROL.fr.md) possède maintenant les commandes d'entraînement/sélecteur, présélectionne les chemins non chargés, attend la synchronisation/le verrouillage physiques, et effectue un relâchement/engagement exclusif étagé. Les demandes de rapport entières, l'abandon au point mort, les défauts de direction/délai/verrouillage persistant et la récupération sur nouvelle demande sont observables. Le rapport confirmé peut être temporairement zéro pendant un glissement transitoire, même après une confirmation antérieure. Les longues marches de rapport contrôlées utilisent des coordonnées compensées transactionnelles, avec des tolérances de phase strictes inchangées. La borne d'état explicite est 128 ; les bornes de nœuds et de composants restent 32/64, ce qui permet la composition allumée/contrôleur à 70 états. Les passages à mélange de couple complet, les actionneurs et les défauts ECU/TCU complets restent ouverts. +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) -L'[incrément double embrayage](DUAL_CLUTCH_TRANSMISSION.fr.md) assemble maintenant sept chemins avant, un pignon de renvoi de marche arrière sur le chemin pair, trois branches de sortie/démultiplication finale et des sélecteurs de frottement explicites. Des références indépendantes d'inertie signée/réfléchie et d'impulsion/chaleur de présélection vérifient les chemins de puissance. Les expériences de couple et allumées se rejouent à travers toutes les couches ordinaires de graphe/asset/agent. Un repli de verrouillage linéaire normalisé et borné résout la passation six/sept qui échouait auparavant, tout en gardant les trajectoires existantes comme régressions. La sélection/passation prescrite n'est pas un TCU complet ni un comportement détaillé de crabot/bague de synchronisation/actionneur ; les paramètres et les échantillons OEM restent non vérifiés. +## Preuves et limites + +La commande série requise `dotnet run --file tools/Build.cs -- verify` couvre les deux cibles d'assemblage, un processus MCP réel, tous les laboratoires, l'archive Zig et l'ABI C#. Les comptes, résultats et chemins de journaux figurent dans [VALIDATION.md](VALIDATION.md). Les contrôles des assemblages Standard sous .NET 10 ne constituent pas une acceptation du runtime Unity. -L'[incrément de compensation de fermeture](CLOSURE_PREDICTION.fr.md) rejoue un futur de plant à entrées tenues, borné, sans valider l'état. Il prédit le débit résiduel d'aiguille et planifie la coupure de tension sur la grille de ticks physiques. Le suivi de dose isolé s'améliore, tandis que la fermeture/le rebond réels et les historiques carburant/énergie restent des mécanismes physiques inchangés. Les prédictions en lecture seule, les bornes entières, le raffinement d'horizon, zéro allocation et les transactions complètes sont vérifiés. La prédiction tient les autres commandes et omet les événements d'entrée externes futurs ; son modèle et son horizon fini sont des limites explicites, plutôt qu'une calibration ou une acceptation ECU complète. +L'alimentation comprend des [réservoirs finis](LIQUID_FUEL_TANK.fr.md) et des [retours de décharge suivis](LIQUID_FUEL_RETURN.fr.md), avec bilans de masse, d'énergie calorique/chimique et de travail de pression. Le [contrôleur AT hydraulique](AT_CONTROL.fr.md) régule la pression des actionneurs et confirme le rapport/verrouillage physique. Des références indépendantes et des transactions complètes étayent ces modèles de recherche ; la coordination ECU/TCU complète et le comportement matériel mesuré restent ouverts. -L'[incrément d'aiguille](NEEDLE_ACTUATION.fr.md) couple l'énergie de flux magnétique et la force réciproque à la masse réelle de l'aiguille, au ressort/amortissement et aux butées élastiques. L'échantillonnage entier possède la tension de bobine à partir du retour de dose délivrée. Le fluide reste gouverné par la levée physique à travers le retard de fermeture et le rebond ; il n'est pas tronqué sur la cible. Des références magnétiques/RL/mouvement indépendantes, des registres source/phase/électrique/thermique, le rejeu portable/MCP et les transactions complètes du contrôleur passent. L'excès de livraison et le liquide restant à la frontière de l'expérience restent observables ; ces résultats n'établissent pas un suivi de dose calibré ni une électronique/magnétique d'injecteur complète. +`POWER_UNITY_EDITOR` n'est pas défini dans l'environnement actuel. L'import Studio, le rejeu et les tests préparés nécessitent encore des preuves réelles Editor/Play, de rendu et Player/IL2CPP. -L'[incrément d'injection liquide](LIQUID_FUEL_INJECTION.fr.md) part maintenant d'un film sec et puise dans une source souple finie. La pression/le travail de rampe analytiques, le raffinement simultané indépendant, les registres complets source/film/chimique/thermique, le rejeu MCP réel et le rollback spéculatif d'embrayage passent. L'énergie de pression de rampe est stockée ; la chaleur de buse et le travail de pression exporté vers le récepteur restent distincts. La réduction du récepteur à volume liquide négligeable est explicite et n'est pas créditée comme un travail supplémentaire de volume gazeux ou de vilebrequin. Le comportement magnétique/électronique/pulvérisation affiné, le pompage/ravitaillement et le matériel mesuré restent ouverts. +Tous les paramètres restent `unverified`. EA211 DJS + DQ200 et PSA EC5 + AT8 conservent leurs frontières complètes et manifestes de preuve dans [assets/samples](../assets/samples). Les mesures OEM manquantes restent manquantes. Les licences et la provenance historique du code sont préservées. -`film-fired-cylinder` contient initialement un inventaire liquide déclaré. Il chauffe et évapore cet inventaire avant la réaction prescrite ; il n'implémente pas un injecteur liquide. Les marqueurs et tests Studio préparés consomment les mêmes définitions. `POWER_UNITY_EDITOR` n'est pas défini, donc l'Editor/Play réel, le rendu et le Player/IL2CPP restent non vérifiés. +CLI `list-labs`, la découverte des exemples MCP et la vérification série partagent [un catalogue de laboratoires](../assets/labs/catalog.json). La vérification contrôle qu'il couvre chaque source de laboratoire. -Tous les paramètres de recherche restent `unverified`. EA211 DJS + DQ200 et PSA EC5 + AT8 conservent leurs frontières complètes de groupe motopropulseur et leurs manifestes de preuve dans [assets/samples](../assets/samples). Les mesures OEM manquantes restent manquantes. Les licences et la provenance historique des sources sont préservées. +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) ## Prochaine séquence de développement -1. Ajouter un pompage/ravitaillement de rampe conservatif et un actionnement magnétique/électronique mesuré par-dessus la [livraison liquide souple finie](LIQUID_FUEL_INJECTION.fr.md). Remplacer la frontière déclarée de travail de déplacement exporté lorsque le volume liquide fini et la quantité de mouvement de pulvérisation sont résolus. Garder le liquide délivré, le carburant évaporé et la réaction séparément observables, et conserver des références indépendantes. +1. Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. 2. Étendre le moteur avec le contrôle d'allumage, la dynamique d'admission/échappement, les pertes mécaniques et une thermochimie plus riche. Préserver l'objectif moteur complet. -3. Étendre les chemins de recherche DCT vérifiés avec un actionnement détaillé, des propriétés/pertes de planétaires mesurées et une hydraulique/un contrôle AT complets, puis construire la coordination de passage/couple ECU/TCU à partir des primitives vérifiées d'engrenage, d'embrayage, de convertisseur et d'hydraulique. Ajouter un état de contrôleur borné, un comportement capteur/actionneur et une récupération de défaut. +3. Étendre l'actionnement DCT et l'hydraulique planétaire/AT mesurée, puis coordonner les demandes de couple et changements ECU/TCU avec les contrôleurs DCT et AT échantillonnés existants. Ajouter des capteurs/actionneurs mesurés et des défauts récupérables. 4. Exécuter `unity-test` avec l'éditeur épinglé, puis obtenir des preuves Player/IL2CPP. Achever la sélection de canaux, l'édition de graphe et l'enregistrement comme fonctions distinctes. 5. Obtenir des cartes mesurées, des données OEM et des budgets d'incertitude pour les deux groupes motopropulseurs cibles avant de déclarer des échantillons calibrés ou une aptitude à la publication. + +[Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) diff --git a/docs/DEVELOPMENT_STATUS.it.md b/docs/DEVELOPMENT_STATUS.it.md index 3ee53d8..2f1cb95 100644 --- a/docs/DEVELOPMENT_STATUS.it.md +++ b/docs/DEVELOPMENT_STATUS.it.md @@ -10,47 +10,54 @@ Power! ha un nucleo di simulazione gestito, documenti di modello condivisi e ass |---|---|---| | Nucleo | Unità esplicite e ID stabili; compilazione immutabile; tempo intero limitato; registri osservabili; replay, annullamento, fork indipendenti e rollback dell'intero batch | Evidenza di lungo periodo e del gruppo motopropulsore completo | | Motore | Cilindri chiusi/aperti, lavoro di pressione biella-manovella, flusso di gas bidirezionale, valvole fasate sull'albero a gomiti, calore di parete e combustione premiscelata prescritta | Aspirazione/scarico dettagliati, accensione, perdite meccaniche, termochimica più ricca e comportamento misurato del motore | -| Carburante | Carburante/aria/prodotti tracciati, binari gassosi finiti con dosatura per ciclo, binari liquidi finiti e cedevoli che alimentano i film, evaporazione pagata dalla parete e reazione solo del vapore | Pompa/rabbocco del binario, comportamento magnetico/elettronico/a spruzzo non lineare, equilibrio di fase dipendente dalla pressione e proprietà misurate del carburante | +| Carburante | Dosaggio per ciclo, rail cedevoli alimentati da pompa, serbatoi finiti, ritorni conservativi, evaporazione del film, aghi fisici e previsione limitata di chiusura; [Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md); [Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md); [Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md); [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md); [Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md); [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md); [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md); [Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md); [Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md); [Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md); [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) | Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. | | Trasmissione | Frizioni statiche/striscianti, azionamento a contatto, ingranaggi/planetari con segno, convertitore/blocco mappato e percorsi DCT a sette avanti/retromarcia e Ravigneaux a quattro avanti/retromarcia con rotazione dei satelliti e inerzia orbitale risolte | Cedevolezza/perdite di ingranamento e ripartizione del carico, azionamento DCT, controllo completo di pressione/cambio AT e instradamento misurato, cambi coordinati, perdite misurate e comportamento più ricco del convertitore | | Idraulica | Volumi cedevoli, restrizioni, pompe con trafilamento/trascinamento espliciti, scarico, stantuffi dinamici, cursori dosati e accumulatori a gas a energia finita | Mappe misurate di valvole/accumulatori/pompe, attrito delle tenute, cavitazione e idraulica completa della trasmissione | | Elettrica | Motori RL, solenoidi a induttanza variabile reciproca, batteria a carica finita, polarizzazione resistiva/RC, conversione di duty mediata e accessori | Comportamento chimico/termico misurato, BMS, controllo di corrente e integrazione completa dell'alimentazione | -| Controlli | PI di pressione campionato, retroazione dell'ago/predizione di chiusura e controllo DCT graduale confermato dai sensori, con proprietà degli attuatori, orologi interi e memoria transazionale | Coordinamento di coppia ECU/TCU, sensori, attuatori e gestione dei guasti | -| Documenti e asset | Trentaquattro laboratori JSON/CLI, trentatré esempi MCP, asset v24 con lettori v1-v23 | Modifica/salvataggio del banco e collezioni di modelli calibrati | +| Controlli | PI di pressione campionato, dosaggio/chiusura dell'ago, passaggio DCT a stadi e cambi AT con retroazione di pressione e conferma fisica del blocco | Coordinamento di coppia ECU/TCU, sensori, attuatori e gestione dei guasti | +| Documenti e asset | 68 laboratori JSON/CLI, 67 esempi MCP, asset v41 e lettori v1-v40 | Modifica/salvataggio e raccolte di modelli calibrati | | Agenti | Dodici strumenti MCP definiti da schema; evidenza compatta, controlli di revisione e diagnostica azionabile | Flussi completi per l'ambito fisico/di controllo restante | | Unity | Importazione dei modelli, riproduzione a tick esatti, componenti schematici 3D, controlli, reset e test del ciclo di vita preparati | Accettazione reale di Editor/Play, grafici selezionabili, modifica/salvataggio del grafo e Player/IL2CPP | | Archivio nativo | Prototipi di ricerca Zig 0.15.2, ABI conservata e provenienza dei sorgenti originali | Riferimento storico; la migrazione gestita resta separata dalla funzionalità completa | Core e Assets puntano sia a `net10.0` sia a `netstandard2.1`; il Core non ha dipendenze da Unity, trasporto, fornitore di modelli o terze parti. Gli script in Unity Assets usano C# 9. Unity carica gli assembly Standard compilati dall'SDK esterno; non compila sorgenti .NET 10/C# 14. -## Evidenza e limiti +`LiquidColumn` è un riferimento C# autonomo per tubo orizzontale rigido con sezione, velocità uniforme, densità liquida e temperatura costanti. Le pressioni assolute sono prescritte nell'intervallo. Resistenze lineari e quadratiche sono input di ricerca espliciti. Non è un componente del grafo e non cambia rete o ugello. [Riferimento della quantità di moto all'ingresso liquido](LIQUID_COLUMN.it.md) + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. [Quantità di moto della linea finita di carburante liquido](FUEL_INERTIAL_PIPE.it.md) -Il [grafo di azionamento idraulico AT](AT_HYDRAULIC_ACTUATION.it.md) alimenta tutti e cinque gli elementi di gamma e il blocco opzionale del convertitore da una pompa condivisa comandata dall'albero. Percorsi espliciti di riempimento/scarico, moto finito dello stantuffo, molle di richiamo e capacità ricavata dalle pastiglie conservano il lavoro di spostamento idraulico e il comportamento reale di cattura/rilascio. Le valvole prescritte non sono un controllo AT confermato dai sensori né un'accettazione misurata del corpo valvole. Il comportamento completo del gruppo motopropulsore e l'accettazione misurata restano incompiuti. +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) -Il `dotnet run --file tools/Build.cs -- verify` seriale richiesto passa in locale su Windows x64. Copre entrambi i target di assembly ospitati su .NET 10, un processo figlio MCP reale, tutti i report dei laboratori, l'archivio Zig e l'ABI C#. Conteggi attuali, percorsi dei log, controlli degli schemi, risultati numerici e provenienza CI conservata stanno in [VALIDATION.it.md](VALIDATION.it.md). I test degli assembly Standard su .NET 10 non stabiliscono la compatibilità con il runtime Unity. +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. [Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) -L'[incremento del film liquido](FUEL_FILM.it.md) ha ora controlli analitici di riscaldamento/saturazione/essiccamento, riferimenti ODE simultanei indipendenti, conservazione di massa/chimica/termica, replay portabile e transazioni di sessione complete. L'ordinamento simmetrico dei film dà un raffinamento regolare del secondo ordine per i film che condividono una parete. L'accoppiamento ad altre sorgenti di calore di parete conserva il limite esistente di parete esplicita del primo ordine. Il replay esatto è separato dall'accuratezza del passo, dal superamento dei KPI e dalla fisica calibrata. +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. [Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) -Il [grafo di ricerca Ravigneaux](RAVIGNEAUX_TRANSMISSION.it.md) aggiunge vincoli a pignone singolo/doppio, cinque percorsi di attrito, quattro gamme avanti e la retromarcia. Riferimenti indipendenti di massa libera, inerzia riflessa e cattura del freno controllano le reazioni alle porte e il calore. Gli esperimenti di coppia condivisa e di convertitore acceso conservano il replay completo e confini di ricerca espliciti. Il percorso ridotto omette la rotazione dei satelliti; idraulica dettagliata, controllo AT e topologia/calibrazione OEM restano incompiuti. L'[opzione risolta](RESOLVED_PLANETS.it.md) aggiunge quattro ingranamenti reali, due rotori di rotazione assoluta e inerzia orbitale esplicita; riferimenti indipendenti di massa a sei rotori, momento angolare e cattura conservano quelle energie. Il comportamento dettagliato di denti/lubrificazione/ripartizione del carico ha ancora bisogno di evidenza. +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. [Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) -Il [regolatore DCT campionato](DCT_CONTROL.it.md) ora possiede i comandi di trazione/selettore, preseleziona i percorsi scarichi, attende la sincronizzazione/il blocco fisici ed esegue un passaggio esclusivo graduale di rilascio/innesto. Richieste di marcia intere, interruzione in folle, guasti di direzione/timeout/blocco persistente e recupero su nuova richiesta sono osservabili. La marcia confermata può essere temporaneamente zero durante uno slittamento transitorio anche dopo una conferma precedente. Le corse lunghe di marcia controllate usano coordinate compensate transazionali, con le tolleranze di fase strette invariate. Il limite esplicito di stato è 128; i limiti di nodi e componenti restano 32/64, e consentono la composizione accesa/regolatore da 70 stati. I passaggi completi con coppia miscelata, gli attuatori e i guasti ECU/TCU completi restano aperti. +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) -L'[incremento a doppia frizione](DUAL_CLUTCH_TRANSMISSION.it.md) ora assembla sette percorsi avanti, una ruota folle di retromarcia sul percorso pari, tre rami di uscita/riduzione finale e selettori di attrito espliciti. Riferimenti indipendenti di inerzia con segno/riflessa e di impulso/calore di preselezione verificano i percorsi di potenza. Gli esperimenti di coppia e accesi fanno replay attraverso tutti i livelli ordinari di grafo/asset/agente. Un ripiego di blocco lineare normalizzato e limitato risolve il passaggio sei/sette che prima falliva, mantenendo le traiettorie esistenti come regressioni. Selezione/passaggio prescritti non sono una TCU completa né il comportamento dettagliato di denti/anello sincronizzatore/attuatore; parametri e campioni OEM restano `unverified`. +## Evidenza e limiti -L'[incremento di compensazione della chiusura](CLOSURE_PREDICTION.it.md) esegue il replay di un futuro dell'impianto a input tenuti, limitato, senza commettere stato. Predice il flusso residuo dell'ago e pianifica la rimozione della tensione sulla griglia dei tick fisici. L'inseguimento isolato della dose migliora, mentre la chiusura/il rimbalzo reali e le storie di carburante/energia restano meccanismi fisici invariati. Predizioni in sola lettura, limiti interi, raffinamento dell'orizzonte, zero allocazioni e transazioni complete sono verificati. La predizione tiene gli altri comandi e omette gli eventi di input esterni futuri; il suo modello e l'orizzonte finito sono limiti espliciti, non una calibrazione né un'accettazione ECU completa. +Il comando seriale richiesto `dotnet run --file tools/Build.cs -- verify` copre entrambi i target assembly, un processo MCP reale, tutti i laboratori, l'archivio Zig e l'ABI C#. Conteggi, risultati e percorsi dei log sono in [VALIDATION.md](VALIDATION.md). Le verifiche Standard su .NET 10 non attestano l'accettazione del runtime Unity. -L'[incremento dell'ago](NEEDLE_ACTUATION.it.md) accoppia l'energia del flusso magnetico e la forza reciproca alla massa reale dell'ago, a molla/smorzamento e agli arresti elastici. Il campionamento intero possiede la tensione della bobina dalla retroazione della dose erogata. Il fluido resta governato dall'alzata fisica attraverso il ritardo di chiusura e il rimbalzo; non è tagliato sul bersaglio. Passano riferimenti indipendenti magnetici/RL/di moto, registri di sorgente/fase/elettrici/termici, replay portabile/MCP e transazioni complete del regolatore. L'erogazione in eccesso e il liquido restante al confine dell'esperimento restano osservabili; questi risultati non stabiliscono un inseguimento di dose calibrato né un'elettronica/magnetica completa dell'iniettore. +L'alimentazione comprende [serbatoi finiti](LIQUID_FUEL_TANK.it.md) e [ritorni di scarico tracciati](LIQUID_FUEL_RETURN.it.md), con bilanci di massa, energia calorica/chimica e lavoro di pressione. Il [controllore AT idraulico](AT_CONTROL.it.md) regola la pressione degli attuatori e conferma rapporto/blocco fisici. Riferimenti indipendenti e transazioni complete sostengono questi modelli di ricerca; coordinamento ECU/TCU completo e comportamento hardware misurato restano aperti. -L'[incremento di iniezione liquida](LIQUID_FUEL_INJECTION.it.md) ora parte da un film asciutto e preleva da una sorgente finita e cedevole. Passano pressione/lavoro analitici del binario, raffinamento simultaneo indipendente, registri completi di sorgente/film/chimici/termici, replay MCP reale e rollback speculativo della frizione. L'energia di pressione del binario è immagazzinata; il calore dell'ugello e il lavoro di pressione esportato del ricevitore restano distinti. La riduzione del ricevitore a volume liquido trascurabile è esplicita e non è accreditata come volume di gas aggiuntivo o lavoro all'albero a gomiti. Comportamento magnetico/elettronico/a spruzzo raffinato, pompa/rabbocco e hardware misurato restano aperti. +`POWER_UNITY_EDITOR` non è impostato nell'ambiente corrente. Import Studio, replay e test predisposti richiedono ancora prove reali Editor/Play, rendering e Player/IL2CPP. -`film-fired-cylinder` contiene inizialmente un inventario liquido dichiarato. Riscalda ed evapora quell'inventario prima della reazione prescritta; non implementa un iniettore liquido. Marcatori e test dello Studio preparati consumano le stesse definizioni. `POWER_UNITY_EDITOR` non è impostato, quindi Editor/Play reali, il rendering e Player/IL2CPP restano non verificati. +Tutti i parametri restano `unverified`. EA211 DJS + DQ200 e PSA EC5 + AT8 conservano confini completi e manifesti di evidenza in [assets/samples](../assets/samples). Le misure OEM mancanti restano mancanti. Licenze e provenienza storica del codice sono preservate. -Tutti i parametri di ricerca restano `unverified`. EA211 DJS + DQ200 e PSA EC5 + AT8 conservano i confini completi del gruppo motopropulsore e i manifest di evidenza in [assets/samples](../assets/samples). Le misure OEM mancanti restano mancanti. Licenze e provenienza storica dei sorgenti sono conservate. +CLI `list-labs`, scoperta degli esempi MCP e verifica seriale condividono [un catalogo dei laboratori](../assets/labs/catalog.json). La verifica controlla che copra ogni sorgente di laboratorio. + +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) ## Prossima sequenza di sviluppo -1. Aggiungi pompa/rabbocco del binario conservativi e azionamento magnetico/elettronico misurato sopra la [erogazione liquida finita e cedevole](LIQUID_FUEL_INJECTION.it.md). Sostituisci il confine dichiarato di lavoro di spostamento esportato quando volume liquido finito e quantità di moto dello spray sono risolti. Tieni separatamente osservabili il liquido erogato, il carburante evaporato e la reazione, e conserva riferimenti indipendenti. +1. Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. 2. Estendi il motore con controllo dell'accensione, dinamica di aspirazione/scarico, perdite meccaniche e termochimica più ricca. Conserva l'obiettivo completo del motore. -3. Estendi i percorsi di ricerca DCT verificati con azionamento dettagliato, proprietà/perdite misurate dei satelliti e idraulica/controllo AT completi, poi costruisci il coordinamento di cambio/coppia ECU/TCU dai primitivi verificati di ingranaggi, frizione, convertitore e idraulica. Aggiungi stato del regolatore limitato, comportamento di sensori/attuatori e recupero dai guasti. +3. Estendere attuazione DCT e idraulica planetaria/AT misurata, poi coordinare richieste di coppia e cambi ECU/TCU con i controllori DCT e AT campionati esistenti. Aggiungere sensori/attuatori misurati e guasti recuperabili. 4. Esegui `unity-test` con l'Editor fissato, poi ottieni evidenza Player/IL2CPP. Completa selezione dei canali, modifica del grafo e salvataggio come funzionalità distinte. 5. Ottieni mappe misurate, dati OEM e budget di incertezza per i due gruppi motopropulsori obiettivo prima di dichiarare campioni calibrati o prontezza al rilascio. + +[Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) diff --git a/docs/DEVELOPMENT_STATUS.ja.md b/docs/DEVELOPMENT_STATUS.ja.md index 851c0e7..bb3ae97 100644 --- a/docs/DEVELOPMENT_STATUS.ja.md +++ b/docs/DEVELOPMENT_STATUS.ja.md @@ -10,46 +10,54 @@ Power! には、マネージドのシミュレーションコア、共有モデ |---|---|---| | コア | 明示的な単位と安定した ID。不変のコンパイル。有界整数時間。観測可能な台帳。リプレイ、キャンセル、独立した分岐、バッチ全体のロールバック | 長時間および完全なパワートレインのエビデンス | | エンジン | 密閉/開放気筒、スライダークランクの圧力仕事、双方向ガス流、クランク同期バルブ、壁面熱、規定予混合燃焼 | 詳細な吸排気、点火、機械損失、より豊富な熱化学、実測のエンジン挙動 | -| 燃料 | 追跡される燃料/空気/生成物、サイクルドーズ計量を持つ有限の気体レール、フィルムへ供給する有限で柔軟な液体レール、壁面支払い蒸発、蒸気のみの反応 | レールポンプ/補給、非線形の磁気/電子/噴霧挙動、圧力依存の相平衡、実測の燃料物性 | +| 燃料 | サイクル計量、ポンプ供給の柔軟レール、有限タンク、保存的リリーフ戻り、液膜蒸発、物理ニードルと有界閉鎖予測; [タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md); [燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md); [有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md); [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md); [蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md); [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md); [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md); [相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md); [燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md); [有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md); [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) | 材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 | | トランスミッション | 静止/滑りクラッチ、接触駆動、符号付き歯車/遊星、マップ化されたコンバーター/ロックアップ、7 前進/リバースの DCT、分解された遊星自転/軌道慣性を持つ 4 前進/リバースの Ravigneaux 経路 | 噛み合いのコンプライアンス/損失と荷重分担、DCT のアクチュエーション、完全な AT の圧力/変速制御と実測の動力経路、協調変速、実測損失、より豊富なコンバーター挙動 | | 油圧 | 柔軟な容積、絞り、明示的な漏れ/抵抗を持つポンプ、リリーフ、動的ピストン、計量スプール、有限エネルギーのガスアキュムレーター | 実測のバルブ/アキュムレーター/ポンプのマップ、シール摩擦、キャビテーション、完全なトランスミッション油圧 | | 電気 | RL モーター、相反な可変インダクタンスのソレノイド、有限充電量の電池、抵抗/RC 分極、平均化デューティー変換、アクセサリー | 実測の化学/熱挙動、BMS、電流制御、完全な供給の統合 | -| 制御 | サンプリング圧力 PI、ニードルフィードバック/クロージャ予測、アクチュエーター所有権・整数クロック・トランザクションメモリを持つセンサー確認済みの段階的 DCT 制御 | ECU/TCU のトルク協調、センサー、アクチュエーター、故障処理 | -| ドキュメントとアセット | 34 の JSON/CLI ラボラトリー、33 の MCP 例、v1-v23 リーダーを持つアセット v24 | ワークベンチの編集/保存と、キャリブレーション済みモデル集 | +| 制御 | サンプル圧力 PI、ニードル投与/閉鎖制御、段階的 DCT 引継ぎと物理ロック確認付き圧力フィードバック AT 変速 | ECU/TCU のトルク協調、センサー、アクチュエーター、故障処理 | +| 文書とアセット | 68 の JSON/CLI 実験、67 の MCP 例、アセット v41 と v1-v40 の読み取り | ワークベンチの編集/保存と校正済みモデル集 | | エージェント | スキーマ定義された 12 個の MCP ツール。コンパクトなエビデンス、リビジョン検査、対処可能な診断 | 残る物理/制御範囲向けの完全なワークフロー | | Unity | モデルのインポート、正確なティック再生、模式的な 3D コンポーネント、コントロール、リセット、準備済みのライフサイクルテスト | 実際の Editor/Play 受け入れ、選択可能なプロット、グラフ編集/保存、Player/IL2CPP | | ネイティブアーカイブ | Zig 0.15.2 の研究プロトタイプ、保持された ABI、元のソース来歴 | 歴史的参照。マネージド移行は、全機能とは別のまま | コアと Assets は `net10.0` と `netstandard2.1` の両方を対象にします。コアに Unity、トランスポート、モデルプロバイダー、サードパーティの依存はありません。Unity Assets のスクリプトは C# 9 を使います。Unity がロードするのは、外部 SDK がビルドした .NET Standard アセンブリです。.NET 10/C# 14 のソースをコンパイルすることはありません。 -## エビデンスと限界 +`LiquidColumn` は水平剛体管の独立 C# 参照です。断面積、均一速度、液体密度、温度を一定とし、各局所区間の絶対ポート圧力を指定します。線形・二次抵抗は明示した研究入力です。グラフコンポーネントではなく、燃料ネットワークやノズル方程式を変更しません。 [液体入口の運動量参照](LIQUID_COLUMN.ja.md) + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 [有限液体燃料管路の運動量](FUEL_INERTIAL_PIPE.ja.md) + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) -[AT 油圧駆動グラフ](AT_HYDRAULIC_ACTUATION.ja.md) は、共有のシャフト駆動ポンプから、5 つのレンジ要素すべてと、任意のコンバーターロックアップへ供給します。明示的な充填/排出経路、有限なピストン運動、戻しばね、パッドから導かれる容量は、油圧の押しのけ仕事と、実際の捕捉/解放の挙動を保持します。規定バルブは、センサー確認済みの AT 制御でも、実測のバルブボディ受け入れでもありません。完全なパワートレイン挙動と実測の受け入れは、未完成のままです。 +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) -必要な逐次コマンド `dotnet run --file tools/Build.cs -- verify` は、Windows x64 でローカルに合格しています。対象は、.NET 10 上でホストされる両方のアセンブリターゲット、実際の MCP 子プロセス、すべてのラボラトリーレポート、Zig アーカイブ、C# ABI です。現在の件数、ログパス、スキーマ検査、数値結果、保持された CI 来歴は [VALIDATION.md](VALIDATION.ja.md) にあります。.NET 10 上の .NET Standard アセンブリテストは、Unity ランタイム互換を確立しません。 +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 [相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) -[液体フィルムの増分](FUEL_FILM.ja.md) には、加熱/飽和/ドライアウトの解析検査、独立した同時 ODE 参照、質量/化学/熱の保存、移植可能なリプレイ、完全なセッショントランザクションがあります。対称なフィルム順序は、壁を共有するフィルムに 2 次の滑らかな精細化を与えます。他の壁面熱源への結合は、既存の 1 次の明示壁限界を保持します。厳密なリプレイは、時間刻みの精度、KPI の合格、キャリブレーション済み物理とは別です。 +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 [燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) -[Ravigneaux 研究グラフ](RAVIGNEAUX_TRANSMISSION.ja.md) は、単一/二重ピニオン拘束、5 つの摩擦経路、4 つの前進レンジ、リバースを追加します。独立した自由質量、反映慣性、ブレーキ捕捉の参照が、ポート反力と熱を検査します。共有トルクと燃焼/コンバーターの実験は、完全なリプレイと明示的な研究境界を保ちます。縮小経路は遊星自転を省きます。詳細な油圧、AT 制御、OEM トポロジー/キャリブレーションは未完成のままです。[分解オプション](RESOLVED_PLANETS.ja.md) は、4 つの実際の噛み合い、2 つの絶対自転ローター、明示的な軌道慣性を追加します。独立した 6 ローターの質量、角運動量、捕捉の参照が、それらのエネルギーを保持します。詳細な歯/潤滑/荷重分担の挙動には、まだエビデンスが必要です。 +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 [有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) -[サンプリング DCT コントローラー](DCT_CONTROL.ja.md) は、駆動/セレクター指令を所有し、無負荷経路をプリセレクトし、物理的な同期/ロックを待ち、排他的で段階的な解放/係合を行います。整数の段要求、ニュートラル中断、方向/タイムアウト/持続ロックの故障、新しい要求による回復は、観測できます。確認済みの段は、以前の確認のあとでも、過渡滑りのあいだ一時的にゼロになり得ます。制御された長い歯車運転は、トランザクションな補償座標を使い、厳密な位相許容差は変わりません。明示的な状態上限は 128 です。ノードとコンポーネントの上限は 32/64 のままで、70 状態の燃焼/コントローラー構成を許せます。トルクを完全にブレンドする変速、アクチュエーター、包括的な ECU/TCU 故障は、まだ開いています。 +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) -[デュアルクラッチの増分](DUAL_CLUTCH_TRANSMISSION.ja.md) は、7 つの前進経路、偶数経路のリバースアイドラー、3 つの出力/ファイナルドライブ分岐、明示的な摩擦セレクターを組み立てるようになりました。独立した符号付き/反映慣性と、プリセレクトの力積/熱の参照が、動力経路を検証します。トルク実験と燃焼実験は、通常のグラフ/アセット/エージェントの各層を通じてリプレイします。有界で正規化された線形ロックのフォールバックが、以前失敗していた 6/7 の引き継ぎを解き、既存の軌跡を回帰として残します。規定された選択/引き継ぎは、完全な TCU でも、詳細なドッグ/ボルクリング/アクチュエーター挙動でもありません。パラメーターと OEM サンプルは未検証のままです。 +## エビデンスと限界 + +必須の直列コマンド `dotnet run --file tools/Build.cs -- verify` は両アセンブリ対象、実際の MCP プロセス、全ラボ、Zig アーカイブと C# ABI を検証します。件数、結果とログのパスは [VALIDATION.md](VALIDATION.md) にあります。.NET 10 上の Standard アセンブリ検証は Unity ランタイムの受け入れ証拠にはなりません。 -[クロージャ補償の増分](CLOSURE_PREDICTION.ja.md) は、状態を確定せずに、入力を保持した有界なプラントの未来をリプレイします。残るニードル流量を予測し、物理ティック格子の上で電圧除去を計画します。孤立したドーズ追従は改善しますが、実際の閉じ/反発と、燃料/エネルギーの履歴は、変わらない物理機構のままです。読み取り専用の予測、整数境界、ホライズンの精細化、ゼロ割り当て、完全なトランザクションは検証済みです。予測は他の指令を保持し、将来の外部入力イベントを省きます。そのモデルと有限ホライズンは明示的な限界であり、キャリブレーションや完全な ECU 受け入れではありません。 +燃料供給には[有限タンク](LIQUID_FUEL_TANK.ja.md)と[追跡可能なリリーフ戻り](LIQUID_FUEL_RETURN.ja.md)が含まれ、質量、熱/化学エネルギーと圧力仕事の収支を保持します。[油圧 AT コントローラー](AT_CONTROL.ja.md)はアクチュエーター圧力を調整し、物理的な変速段/ロックアップを確認します。独立参照と完全なトランザクションが研究モデルを支えます。完全な ECU/TCU 協調と実測ハードウェア挙動は未完成です。 -[ニードルの増分](NEEDLE_ACTUATION.ja.md) は、磁束エネルギーと相反力を、実際のニードル質量、ばね/減衰、弾性ストッパへ結合します。整数サンプリングは、供給ドーズのフィードバックからコイル電圧を所有します。流体は、閉じ遅れと反発を通る物理的なリフトに支配されたままで、目標へ切り取られることはありません。独立した磁気/RL/運動の参照、源/相/電気/熱の台帳、移植可能/MCP のリプレイ、完全なコントローラートランザクションは合格しています。過剰供給と、実験境界に残る液体は観測できます。これらの結果は、キャリブレーション済みのドーズ追従や、完全なインジェクター電子/磁気を確立しません。 +現在の環境では `POWER_UNITY_EDITOR` が未設定です。Studio のインポート、再生と準備済みテストには、実際の Editor/Play、描画と Player/IL2CPP の証拠が必要です。 -[液体噴射の増分](LIQUID_FUEL_INJECTION.ja.md) は、乾いたフィルムから始まり、有限で柔軟な源から引きます。レール圧力/仕事の解析、独立した同時精細化、完全な源/フィルム/化学/熱の台帳、実際の MCP リプレイ、投機的なクラッチロールバックは合格しています。レール圧力エネルギーは蓄えられます。ノズル熱と、書き出された受け側圧力仕事は、別のままです。液体容積を無視できる受け側の縮小は明示であり、追加のガス容積仕事やクランク仕事として数えません。精密化した磁気/電子/噴霧挙動、ポンプ/補給、実測ハードウェアは、まだ開いています。 +全パラメーターは引き続き `unverified` です。EA211 DJS + DQ200 と PSA EC5 + AT8 は [assets/samples](../assets/samples) に完全な境界と証拠マニフェストを保持します。欠落した OEM 測定値は補完しません。ライセンスと歴史的ソース来歴を保持しています。 -`film-fired-cylinder` は、最初に宣言された液体在庫を含みます。規定反応の前に、その在庫を加熱して蒸発させます。液体インジェクターは実装しません。準備済みのスタジオマーカーとテストは、同じ定義を使います。`POWER_UNITY_EDITOR` は未設定なので、実際の Editor/Play、レンダリング、Player/IL2CPP は未検証のままです。 +CLI `list-labs`、MCP サンプル検出と直列検証は[共通ラボカタログ](../assets/labs/catalog.json)を使用します。検証は全ラボのソースが含まれることを確認します。 -研究パラメーターはすべて `unverified` のままです。EA211 DJS + DQ200 と PSA EC5 + AT8 は、完全なパワートレイン境界とエビデンスマニフェストを [assets/samples](../assets/samples) に保持します。欠けている OEM 計測は、欠けたままです。ライセンスと歴史的なソース来歴は保持されます。 +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) ## 次の開発順序 -1. [有限で柔軟な液体供給](LIQUID_FUEL_INJECTION.ja.md) の上に、保存的なレールポンプ/補給と、実測の磁気/電子駆動を追加します。有限な液体容積と噴霧運動量が分解されたら、宣言された書き出し押しのけ仕事の境界を置き換えます。供給された液体、蒸発した燃料、反応は別々に観測できるままにし、独立した参照を残します。 +1. 材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 2. 点火制御、吸排気の動特性、機械損失、より豊富な熱化学でエンジンを拡張します。完全なエンジン目標を保ちます。 -3. 検証済みの DCT 研究経路を、詳細なアクチュエーション、実測の遊星物性/損失、完全な AT 油圧/制御で拡張し、検証済みの歯車、クラッチ、コンバーター、油圧原始素から ECU/TCU の変速/トルク協調を築きます。有界なコントローラー状態、センサー/アクチュエーター挙動、故障回復を追加します。 +3. DCT 駆動と実測の遊星歯車/AT 油圧を拡張し、既存のサンプル DCT・AT 制御で ECU/TCU のトルク要求と変速を協調させます。実測センサー、アクチュエーターと回復可能な故障を追加します。 4. ピン留めされたエディターで `unity-test` を実行し、Player/IL2CPP のエビデンスを取得します。チャンネル選択、グラフ編集、保存は、別の機能として完成させます。 5. キャリブレーション済みサンプルやリリース準備を宣言する前に、2 つの対象パワートレインについて、実測マップ、OEM データ、不確かさバジェットを取得します。 + +[蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) diff --git a/docs/DEVELOPMENT_STATUS.ko.md b/docs/DEVELOPMENT_STATUS.ko.md index 2fb8d17..8438ccc 100644 --- a/docs/DEVELOPMENT_STATUS.ko.md +++ b/docs/DEVELOPMENT_STATUS.ko.md @@ -10,47 +10,54 @@ Power!에는 관리형 시뮬레이션 코어, 공유 모델 문서와 이식 |---|---|---| | 코어 | 명시 단위와 안정 ID, 불변 컴파일, 유계 정수 시간, 관측 가능한 장부, 리플레이, 취소, 독립 분기, 배치 전체 롤백 | 장기 실행과 완전한 파워트레인 증거 | | 엔진 | 밀폐/개방 실린더, 슬라이더-크랭크 압력 일, 양방향 가스 흐름, 크랭크 타이밍 밸브, 벽 열, 규정 예혼합 연소 | 상세 흡기/배기, 점화, 기계 손실, 더 풍부한 열화학, 실측 엔진 거동 | -| 연료 | 추적되는 연료/공기/생성물, 사이클 도즈 계량이 있는 유한 기체 레일, 필름에 공급하는 유한 컴플라이언트 액체 레일, 벽 부담 증발, 증기 전용 반응 | 레일 펌프/보충, 비선형 자기/전자/분무 동작, 압력 의존 상평형, 실측 연료 물성 | +| 연료 | 사이클 계량, 펌프 공급 유연 레일, 유한 탱크, 보존적 릴리프 반환, 막 증발, 물리 니들과 유계 폐쇄 예측; [탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md); [연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md); [유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md); [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md); [증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md); [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md); [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md); [상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md); [연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md); [유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md); [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) | 재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. | | 변속기 | 정지/슬립 클러치, 접촉 구동, 부호 있는 기어/유성, 맵 기반 컨버터/록업, 그리고 분해된 유성 자전/궤도 관성을 갖춘 일곱 전진/후진 DCT와 네 전진/후진 Ravigneaux 경로 | 물림 컴플라이언스/손실과 하중 분담, DCT 구동, 완전한 AT 압력/변속 제어와 실측 유로, 조율된 변속, 실측 손실, 더 풍부한 컨버터 거동 | | 유압 | 컴플라이언트 체적, 유동 제한, 명시적 누출/항력이 있는 펌프, 릴리프, 동적 피스톤, 계량 스풀, 유한 에너지 가스 어큐뮬레이터 | 실측 밸브/어큐뮬레이터/펌프 맵, 씰 마찰, 캐비테이션, 완전한 변속기 유압 | | 전기 | RL 모터, 상반 가변 인덕턴스 솔레노이드, 유한 충전량 배터리, 저항/RC 분극, 평균 듀티 변환, 보기 | 실측 화학/열 거동, BMS, 전류 제어, 완전한 공급 통합 | -| 제어 | 샘플링 압력 PI, 니들 피드백/폐쇄 예측, 액추에이터 소유권·정수 시계·트랜잭션 기억을 갖춘 센서 확인 단계적 DCT 제어 | ECU/TCU 토크 조율, 센서, 액추에이터, 결함 처리 | -| 문서와 자산 | JSON/CLI 실험실 34개, MCP 예제 33개, v1–v23 판독기가 있는 자산 v24 | 작업대 편집/저장과 교정된 모델 모음 | +| 제어 | 샘플 압력 PI, 니들 용량/폐쇄 제어, 단계별 DCT 인계와 물리 잠금 확인을 통한 압력 피드백 AT 변속 | ECU/TCU 토크 조율, 센서, 액추에이터, 결함 처리 | +| 문서와 자산 | 48개 JSON/CLI 실험, 47개 MCP 예제, 자산 v41 및 v1-v40 읽기 | 워크벤치 편집/저장 및 보정 모델 모음 | | 에이전트 | 스키마가 정의된 MCP 도구 12개, 간결한 증거, 개정 검사, 실행 가능한 진단 | 남은 물리/제어 범위를 위한 완전한 작업 흐름 | | Unity | 모델 가져오기, 정확한 틱 재생, 개략 3D 컴포넌트, 컨트롤, 재설정, 준비된 수명 주기 테스트 | 실제 편집기/Play 수용, 선택 가능한 플롯, 그래프 편집/저장, Player/IL2CPP | | 네이티브 아카이브 | Zig 0.15.2 연구 프로토타입, 보존된 ABI, 원래 소스 출처 | 역사적 참고. 관리형 이식은 전체 기능과 별개로 남습니다 | 코어와 Assets는 `net10.0`과 `netstandard2.1`을 모두 대상으로 합니다. 코어에는 Unity, 전송, 모델 공급자, 제3자 의존성이 없습니다. Unity Assets 스크립트는 C# 9를 사용합니다. Unity는 외부 SDK가 빌드한 Standard 어셈블리를 로드합니다. .NET 10/C# 14 소스를 컴파일하지는 않습니다. -## 증거와 한계 +`LiquidColumn`은 단면적, 균일 속도, 액체 밀도와 온도가 일정한 수평 강체 관의 독립 C# 기준입니다. 각 국소 구간의 절대 포트 압력이 주어집니다. 선형·이차 저항은 명시적 연구 입력입니다. 그래프 컴포넌트가 아니며 기존 연료 네트워크와 노즐 방정식을 바꾸지 않습니다. [액체 입구 운동량 기준 모델](LIQUID_COLUMN.ko.md) + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. [유한 액체 연료 관로 운동량](FUEL_INERTIAL_PIPE.ko.md) -[AT 유압 구동 그래프](AT_HYDRAULIC_ACTUATION.ko.md)는 공유 축 구동 펌프에서 다섯 레인지 요소 전부와 선택적 컨버터 록업을 공급합니다. 명시적 충전/배출 경로, 유한 피스톤 운동, 복귀 스프링, 패드에서 유도된 용량은 유압 변위 일과 실제 포획/해제 거동을 유지합니다. 규정 밸브는 센서로 확인된 AT 제어도, 실측 밸브 바디 수용도 아닙니다. 완전한 파워트레인 거동과 실측 수용은 아직 끝나지 않았습니다. +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) -필요한 직렬 `dotnet run --file tools/Build.cs -- verify`는 Windows x64에서 로컬로 통과합니다. .NET 10에서 호스트되는 두 어셈블리 대상, 실제 MCP 자식 프로세스, 모든 실험실 보고서, Zig 아카이브, C# ABI를 다룹니다. 현재 개수, 로그 경로, 스키마 검사, 수치 결과, 유지된 CI 출처는 [VALIDATION.ko.md](VALIDATION.ko.md)에 있습니다. .NET 10에서의 Standard 어셈블리 테스트가 Unity 런타임 호환을 확립하지는 않습니다. +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. [상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) -[액체 필름 증분](FUEL_FILM.ko.md)에는 이제 해석적 가열/포화/건조 검사, 독립적인 동시 ODE 기준, 질량/화학/열 보존, 이식 가능한 리플레이, 완전한 세션 트랜잭션이 있습니다. 대칭 필름 순서는 벽을 공유하는 필름에 2차의 매끄러운 세분화를 줍니다. 다른 벽 열원과의 결합은 기존의 1차 명시적 벽 한계를 유지합니다. 정확한 리플레이는 시간 스텝 정확도, KPI 통과, 교정된 물리와 별개입니다. +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. [연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) -[Ravigneaux 연구 그래프](RAVIGNEAUX_TRANSMISSION.ko.md)는 단일/이중 피니언 제약, 다섯 마찰 경로, 네 전진 레인지, 후진을 더합니다. 독립적인 자유 질량, 반사 관성, 브레이크 포획 기준이 포트 반력과 열을 검사합니다. 공유 토크와 점화/컨버터 실험은 완전한 리플레이와 명시적 연구 경계를 보존합니다. 축소 경로는 유성 자전을 생략합니다. 상세 유압, AT 제어, OEM 토폴로지/교정은 아직 끝나지 않았습니다. [분해 옵션](RESOLVED_PLANETS.ko.md)은 네 개의 실제 물림, 두 개의 절대 자전 로터, 명시적 궤도 관성을 더합니다. 독립적인 여섯 로터 질량, 각운동량, 포획 기준이 그 에너지를 유지합니다. 상세 이빨/윤활/하중 분담 거동에는 여전히 증거가 필요합니다. +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. [유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) -[샘플링 DCT 제어기](DCT_CONTROL.ko.md)는 이제 구동/셀렉터 명령을 소유하고, 무부하 경로를 사전 선택하고, 물리적 동기화/잠금을 기다리며, 배타적인 단계적 해제/체결을 수행합니다. 정수 기어 요청, 중립 중단, 방향/시간 초과/지속 잠금 결함, 새 요청 회복을 관측할 수 있습니다. 확인된 기어는 이전 확인 뒤에도 과도 슬립 동안 일시적으로 0일 수 있습니다. 제어되는 긴 기어 주행은 트랜잭션 보정 좌표를 사용하며, 엄격한 위상 허용 오차는 변하지 않습니다. 명시적 상태 한계는 128입니다. 노드와 컴포넌트 한계는 32/64로 남아, 70상태의 점화/제어기 구성을 허용합니다. 완전한 토크 블렌딩 변속, 액추에이터, 포괄적인 ECU/TCU 결함은 열려 있습니다. +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) -[듀얼 클러치 증분](DUAL_CLUTCH_TRANSMISSION.ko.md)은 이제 일곱 전진 경로, 짝수 경로 후진 아이들러, 세 개의 출력/종감속 분기, 명시적 마찰 셀렉터를 조립합니다. 독립적인 부호/반사 관성과 사전 선택 충격량/열 기준이 동력 경로를 검증합니다. 토크와 점화 실험은 모든 보통 그래프/자산/에이전트 계층을 통해 리플레이됩니다. 유계 정규화 선형 잠금 대체가 이전에 실패하던 6/7단 인계를 풀면서, 기존 궤적은 회귀로 유지합니다. 규정된 선택/인계는 완전한 TCU도, 상세 도그/보크 링/액추에이터 거동도 아닙니다. 매개변수와 OEM 샘플은 검증되지 않은 상태로 남습니다. +## 증거와 한계 -[폐쇄 보상 증분](CLOSURE_PREDICTION.ko.md)은 상태를 커밋하지 않고 유계의 유지 입력 플랜트 미래를 리플레이합니다. 잔여 니들 흐름을 예측하고 물리 틱 격자에서 전압 제거를 계획합니다. 고립된 도즈 추적은 개선되고, 실제 닫힘/반발과 연료/에너지 이력은 변하지 않은 물리 기구로 남습니다. 읽기 전용 예측, 정수 한계, 지평 세분화, 할당 0, 완전한 트랜잭션이 검증되었습니다. 예측은 다른 명령을 유지하고 미래의 외부 입력 이벤트를 생략합니다. 그 모델과 유한 지평은 교정이나 완전한 ECU 수용이 아니라 명시적 한계입니다. +필수 직렬 명령 `dotnet run --file tools/Build.cs -- verify`는 두 어셈블리 대상, 실제 MCP 프로세스, 모든 실험실, Zig 보관 코드와 C# ABI를 검사합니다. 수치, 결과와 로그 경로는 [VALIDATION.md](VALIDATION.md)에 있습니다. .NET 10에서 실행한 Standard 어셈블리 검사는 Unity 런타임 인수를 입증하지 않습니다. -[니들 증분](NEEDLE_ACTUATION.ko.md)은 자속 에너지와 상반력을 실제 니들 질량, 스프링/감쇠, 탄성 정지에 결합합니다. 정수 샘플링은 공급된 도즈 피드백에서 코일 전압을 소유합니다. 유체는 닫힘 지연과 반발을 지나는 물리적 양정에 의해 지배됩니다. 목표에 잘리지 않습니다. 독립적인 자기/RL/운동 기준, 공급/상/전기/열 장부, 이식 가능/MCP 리플레이, 완전한 제어기 트랜잭션이 통과합니다. 실험 경계의 과잉 공급과 남은 액체는 관측 가능한 상태로 남습니다. 이 결과가 교정된 도즈 추적이나 완전한 인젝터 전자/자기를 확립하지는 않습니다. +연료 공급에는 [유한 탱크](LIQUID_FUEL_TANK.ko.md)와 [추적 가능한 릴리프 반환](LIQUID_FUEL_RETURN.ko.md)이 포함되며 질량, 열/화학 에너지와 압력 일 수지를 보존합니다. [유압 AT 제어기](AT_CONTROL.ko.md)는 액추에이터 압력을 조절하고 실제 기어/록업을 확인합니다. 독립 참조와 전체 트랜잭션이 연구 모델을 뒷받침합니다. 전체 ECU/TCU 조정과 실측 하드웨어 동작은 아직 미완성입니다. -[액체 분사 증분](LIQUID_FUEL_INJECTION.ko.md)은 이제 마른 필름에서 시작해 유한 컴플라이언트 공급원에서 끌어옵니다. 해석적 레일 압력/일, 독립적인 동시 세분화, 완전한 공급/필름/화학/열 장부, 실제 MCP 리플레이, 시험적 클러치 롤백이 통과합니다. 레일 압력 에너지는 저장됩니다. 노즐 열과 내보내진 수신기 압력 일은 구분된 상태로 남습니다. 무시할 수 있는 액체 체적 수신기 축소는 명시적이며, 추가 가스 체적이나 크랭크 일로 인정되지 않습니다. 정밀화된 자기/전자/분무 동작, 펌프/보충, 실측 하드웨어는 열려 있습니다. +현재 환경에서 `POWER_UNITY_EDITOR`는 설정되지 않았습니다. Studio 가져오기, 재현과 준비된 테스트는 실제 Editor/Play, 렌더링과 Player/IL2CPP 증거가 필요합니다. -`film-fired-cylinder`는 처음에 선언된 액체 재고를 담습니다. 규정 반응 전에 그 재고를 가열하고 증발시킵니다. 액체 인젝터를 구현하지는 않습니다. 준비된 스튜디오 표식과 테스트는 같은 정의를 소비합니다. `POWER_UNITY_EDITOR`가 설정되어 있지 않으므로, 실제 편집기/Play, 렌더링, Player/IL2CPP는 검증되지 않은 상태로 남습니다. +모든 매개변수는 계속 `unverified`입니다. EA211 DJS + DQ200과 PSA EC5 + AT8은 [assets/samples](../assets/samples)에 전체 경계와 증거 목록을 유지합니다. 누락된 OEM 측정값은 누락 상태로 둡니다. 라이선스와 역사적 소스 출처는 보존됩니다. -모든 연구 매개변수는 `unverified`로 남습니다. EA211 DJS + DQ200과 PSA EC5 + AT8은 [assets/samples](../assets/samples)에 완전한 파워트레인 경계와 증거 매니페스트를 유지합니다. 누락된 OEM 측정은 누락된 상태로 남습니다. 라이선스와 역사적 소스 출처는 보존됩니다. +CLI `list-labs`, MCP 예제 검색과 직렬 검증은 [하나의 실험실 목록](../assets/labs/catalog.json)을 공유합니다. 검증은 모든 실험실 소스가 포함되는지 검사합니다. + +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) ## 다음 개발 순서 -1. [유한 컴플라이언트 액체 공급](LIQUID_FUEL_INJECTION.ko.md) 위에 보존적인 레일 펌프/보충과 실측 자기/전자 구동을 더합니다. 유한 액체 체적과 분무 운동량이 분해되면, 선언된 내보내기 변위 일 경계를 대체합니다. 공급된 액체, 증발된 연료, 반응을 따로 관측할 수 있게 유지하고, 독립 기준을 유지합니다. +1. 재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. 2. 점화 제어, 흡기/배기 동역학, 기계 손실, 더 풍부한 열화학으로 엔진을 확장합니다. 완전한 엔진 목표를 유지합니다. -3. 검증된 DCT 연구 경로를 상세 구동, 실측 유성 물성/손실, 완전한 AT 유압/제어로 확장한 뒤, 검증된 기어, 클러치, 컨버터, 유압 원시 요소에서 ECU/TCU 변속/토크 조율을 구성합니다. 유계 제어기 상태, 센서/액추에이터 거동, 결함 회복을 더합니다. +3. DCT 구동과 실측 유성기어/AT 유압을 확장한 다음 기존 샘플 DCT 및 AT 제어기로 ECU/TCU 토크 요청과 변속을 조정합니다. 실측 센서, 액추에이터와 복구 가능한 결함을 추가합니다. 4. 고정된 편집기로 `unity-test`를 실행한 뒤 Player/IL2CPP 증거를 얻습니다. 채널 선택, 그래프 편집, 저장을 별도 기능으로 완성합니다. 5. 교정된 샘플이나 릴리스 준비를 선언하기 전에, 두 목표 파워트레인에 대한 실측 맵, OEM 데이터, 불확실성 예산을 얻습니다. + +[증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) diff --git a/docs/DEVELOPMENT_STATUS.md b/docs/DEVELOPMENT_STATUS.md index 63eaca8..dc53759 100644 --- a/docs/DEVELOPMENT_STATUS.md +++ b/docs/DEVELOPMENT_STATUS.md @@ -14,12 +14,12 @@ accepted Unity desktop application remain unfinished. |---|---|---| | Core | Explicit units and stable IDs; immutable compilation; bounded integer time; observable ledgers; replay, cancellation, independent forks and whole-batch rollback | Long-run and complete powertrain evidence | | Engine | Sealed/open cylinders, slider-crank pressure work, bidirectional gas flow, crank-timed valves, wall heat and prescribed premixed combustion | Detailed intake/exhaust, ignition, mechanical losses, richer thermochemistry and measured engine behavior | -| Fuel | Tracked fuel/air/products, finite gaseous rails with cycle-dose metering, finite compliant liquid rails feeding films, wall-paid evaporation and vapor-only reaction | Rail pump/refill, nonlinear magnetic/electronic/spray behavior, pressure-dependent phase equilibrium and measured fuel properties | +| Fuel | Cycle metering, pump-fed compliant rails, finite tanks, conserving relief returns, film evaporation, physical needles and bounded closure prediction; [Geometric tank and finite headspace](TANK_HEADSPACE.md); [Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md); [Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md); [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md); [Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md); [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md); [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md); [Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md); [Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md); [Finite-rate fuel phase relaxation](RELAXING_FUEL.md); [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) | Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. | | Transmission | Static/sliding clutches, contact actuation, signed gears/planetaries, mapped converter/lockup and seven-forward/reverse DCT and four-forward/reverse Ravigneaux paths with resolved planet spin/orbital inertia | Mesh compliance/losses and load sharing, DCT actuation, complete AT pressure/shift control and measured routing, coordinated shifts, measured losses and richer converter behavior | | Hydraulics | Compliant volumes, restrictions, pumps with explicit leakage/drag, relief, dynamic pistons, metered spools and finite-energy gas accumulators | Measured valve/accumulator/pump maps, seal friction, cavitation and complete transmission hydraulics | | Electrical | RL motors, reciprocal variable-inductance solenoids, finite-charge battery, resistance/RC polarization, averaged duty conversion and accessories | Measured chemistry/thermal behavior, BMS, current control and complete supply integration | -| Controls | Sampled pressure PI, needle feedback/closure prediction and sensor-confirmed staged DCT control with actuator ownership, integer clocks and transactional memory | ECU/TCU torque coordination, sensors, actuators and fault handling | -| Documents and assets | Thirty-four JSON/CLI laboratories, thirty-three MCP examples, asset v24 with v1-v23 readers | Workbench editing/saving and calibrated model collections | +| Controls | Sampled pressure PI, needle dose/closure control, staged DCT handoff and pressure-feedback AT shifts with physical lock confirmation | ECU/TCU torque coordination, sensors, actuators and fault handling | +| Documents and assets | 68 JSON/CLI laboratories, 67 MCP examples, asset v41 with v1-v40 readers | Workbench editing/saving and calibrated model collections | | Agents | Twelve schema-defined MCP tools; compact evidence, revision checks and actionable diagnostics | Complete workflows for the remaining physical/control scope | | Unity | Model import, exact-tick playback, schematic 3D components, controls, reset and prepared lifecycle tests | Actual Editor/Play acceptance, selectable plots, graph editing/saving and Player/IL2CPP | | Native archive | Zig 0.15.2 research prototypes, preserved ABI and original source provenance | Historical reference; managed migration remains separate from full functionality | @@ -29,112 +29,45 @@ transport, model-provider or third-party dependencies. Unity Assets scripts use C# 9. Unity loads the Standard assemblies built by the external SDK; it doesn't compile .NET 10/C# 14 source. +`LiquidColumn` is a standalone C# reference for a horizontal rigid pipe with constant area, uniform velocity, constant liquid density and constant temperature. Absolute port pressures are prescribed during each local interval. Linear and quadratic resistance coefficients are explicit research inputs. It is not a graph component, and it does not change the existing fuel network or nozzle equations. [Liquid inlet momentum reference](LIQUID_COLUMN.md) + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. [Finite liquid fuel line momentum](FUEL_INERTIAL_PIPE.md) + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. [Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. [Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. [Finite-rate fuel phase relaxation](RELAXING_FUEL.md) + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) + ## Evidence and limits -The [AT hydraulic actuation graph](AT_HYDRAULIC_ACTUATION.md) supplies all five -range elements and optional converter lockup from a shared shaft-driven pump. -Explicit fill/drain paths, finite piston motion, return springs and pad-derived -capacity retain hydraulic displacement work and actual capture/release behavior. -Prescribed valves are not sensor-confirmed AT control or measured valve-body -acceptance. Complete powertrain behavior and measured acceptance remain -unfinished. - - -The required serial `dotnet run --file tools/Build.cs -- verify` passes locally on -Windows x64. It covers both assembly targets hosted on .NET 10, an actual MCP child -process, all laboratory reports, the Zig archive and the C# ABI. Current counts, -log paths, schema checks, numerical results and retained CI provenance live in -[VALIDATION.md](VALIDATION.md). Standard-assembly tests on .NET 10 don't establish -Unity runtime compatibility. - -The [liquid film increment](FUEL_FILM.md) now has analytic heating/saturation/dryout -checks, independent simultaneous ODE references, mass/chemical/thermal conservation, -portable replay and complete session transactions. Symmetric film ordering gives -second-order smooth refinement for films sharing a wall. Coupling to other wall -heat sources retains the existing first-order explicit-wall limit. Exact replay -is separate from timestep accuracy, passing KPIs and calibrated physics. - -The [Ravigneaux research graph](RAVIGNEAUX_TRANSMISSION.md) adds single/double -pinion constraints, five friction paths, four forward ranges and reverse. -Independent free-mass, reflected-inertia and brake-capture references check -port reactions and heat. Shared torque and fired/converter experiments preserve -full replay and explicit research boundaries. The reduced path omits planet spin; detailed hydraulics, -AT control and OEM topology/calibration remain unfinished. The [resolved option](RESOLVED_PLANETS.md) -adds four actual meshes, two absolute spin rotors and explicit orbital inertia; -independent six-rotor mass, angular-momentum and capture references retain those -energies. Detailed tooth/lubrication/load-sharing behavior still needs evidence. - -The [sampled DCT controller](DCT_CONTROL.md) now owns drive/selector commands, -preselects unloaded paths, waits for physical synchronization/lock, and performs -exclusive staged release/engagement. Integral gear requests, neutral abort, -direction/timeout/persistent-lock faults and new-request recovery are observable. -Confirmed gear can be temporarily zero during transient slip even after a prior -confirmation. Controlled long gear runs use transactional compensated coordinates, -with strict phase tolerances unchanged. The explicit state bound is 128; node and -component bounds remain 32/64, allowing the 70-state fired/controller composition. -Full torque-blended shifts, actuators and comprehensive ECU/TCU faults remain open. - -The [dual-clutch increment](DUAL_CLUTCH_TRANSMISSION.md) now assembles seven -forward paths, an even-path reverse idler, three output/final-drive branches and -explicit friction selectors. Independent signed/reflected-inertia and preselection -impulse/heat references verify the power paths. Torque and fired experiments replay -through all ordinary graph/asset/agent layers. A bounded normalized linear lock -fallback resolves the previously failing six/seven handoff while keeping existing -trajectories as regressions. Prescribed selection/handoff isn't complete TCU or -detailed dog/baulk-ring/actuator behavior; parameters and OEM samples remain unverified. - -The [closure-compensation increment](CLOSURE_PREDICTION.md) replays a bounded -held-input plant future without committing state. It predicts residual needle -flow and schedules voltage removal on the physical tick grid. The isolated dose -tracking improves while real closing/rebound and fuel/energy histories remain -unchanged physical mechanisms. Read-only predictions, integer bounds, horizon -refinement, zero allocations and complete transactions are verified. Prediction -holds other commands and omits future external input events; its model and finite -horizon are explicit limits, rather than calibration or complete ECU acceptance. - -The [needle increment](NEEDLE_ACTUATION.md) couples magnetic flux energy and -reciprocal force to actual needle mass, spring/damping and elastic stops. Integer -sampling owns coil voltage from delivered-dose feedback. Fluid remains governed by -physical lift through closing delay and rebound; it isn't clipped to the target. -Independent magnetic/RL/motion references, source/phase/electrical/thermal ledgers, -portable/MCP replay and full controller transactions pass. Excess delivery and -remaining liquid at the experiment boundary remain observable; these results don't -establish calibrated dose tracking or complete injector electronics/magnetics. - -The [liquid injection increment](LIQUID_FUEL_INJECTION.md) now starts from a dry -film and draws from a finite compliant source. Analytic rail pressure/work, -independent simultaneous refinement, complete source/film/chemical/thermal ledgers, -actual MCP replay and speculative clutch rollback pass. Rail pressure energy is -stored; nozzle heat and exported receiver pressure work remain distinct. The -negligible-liquid-volume receiver reduction is explicit and isn't credited as -additional gas-volume or crank work. Refined magnetic/electronic/spray behavior, pump/refill and measured hardware -remain open. - -The `film-fired-cylinder` initially contains a declared liquid inventory. It heats -and evaporates that inventory before prescribed reaction; it doesn't implement a -liquid injector. Prepared Studio markers and tests consume the same definitions. -`POWER_UNITY_EDITOR` is unset, so actual Editor/Play, rendering and Player/IL2CPP -remain unverified. - -All research parameters remain `unverified`. EA211 DJS + DQ200 and PSA EC5 + AT8 -retain their complete powertrain boundaries and evidence manifests in -[assets/samples](../assets/samples). Missing OEM measurements stay missing. -Licenses and historical source provenance are preserved. +The required serial `dotnet run --file tools/Build.cs -- verify` covers both assembly targets, an actual MCP process, all laboratories, the Zig archive and the C# ABI. Counts, results and log paths live in [VALIDATION.md](VALIDATION.md). Standard-assembly checks hosted on .NET 10 don't establish Unity runtime acceptance. + +Fuel supply includes [finite tanks](LIQUID_FUEL_TANK.md) and [tracked relief returns](LIQUID_FUEL_RETURN.md), with mass, caloric, chemical and pressure-work ledgers. The [hydraulic AT controller](AT_CONTROL.md) regulates actuator pressure and confirms physical range/lockup. Independent references and complete transactions support these research models; complete ECU/TCU coordination and measured hardware behavior remain open. + +`POWER_UNITY_EDITOR` is unset in the current environment. Studio import, playback and prepared tests still need actual Editor/Play, rendering and Player/IL2CPP evidence. + +All parameters remain `unverified`. EA211 DJS + DQ200 and PSA EC5 + AT8 retain complete boundaries and evidence manifests in [assets/samples](../assets/samples). Missing OEM measurements stay missing. Licenses and historical source provenance are preserved. + +CLI `list-labs`, MCP example discovery and serial verification share [one laboratory catalog](../assets/labs/catalog.json). Verification checks that it covers every laboratory source. + +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) ## Next development sequence -1. Add conserving rail pump/refill and measured magnetic/electronic actuation on top of - [finite compliant liquid delivery](LIQUID_FUEL_INJECTION.md). Replace the declared - exported displacement-work boundary when finite liquid volume and spray - momentum are resolved. Keep delivered liquid, evaporated fuel and reaction - separately observable and retain independent references. +1. Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. 2. Extend the engine with ignition control, intake/exhaust dynamics, mechanical losses and richer thermochemistry. Preserve the complete engine objective. -3. Extend the verified DCT research paths with detailed actuation, measured planet properties/losses and complete AT - hydraulics/control, then build ECU/TCU shift/torque coordination from - the verified gear, clutch, converter and hydraulic primitives. Add bounded - controller state, sensor/actuator behavior and fault recovery. +3. Extend DCT actuation and measured planetary/AT hydraulics, then coordinate ECU/TCU torque requests and shifts using the existing sampled DCT and AT controllers. Add measured sensors, actuators and recoverable faults. 4. Run `unity-test` with the pinned Editor, then obtain Player/IL2CPP evidence. Complete channel selection, graph editing and saving as distinct features. 5. Obtain measured maps, OEM data and uncertainty budgets for the two target powertrains before declaring calibrated samples or release readiness. + +[Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) diff --git a/docs/DEVELOPMENT_STATUS.pt-BR.md b/docs/DEVELOPMENT_STATUS.pt-BR.md index 5d48e28..1d93659 100644 --- a/docs/DEVELOPMENT_STATUS.pt-BR.md +++ b/docs/DEVELOPMENT_STATUS.pt-BR.md @@ -10,46 +10,54 @@ O Power! tem um núcleo de simulação gerenciado, documentos de modelo comparti |---|---|---| | Núcleo | Unidades explícitas e IDs estáveis; compilação imutável; tempo inteiro limitado; balanços observáveis; replay, cancelamento, ramificações independentes e rollback do lote inteiro | Evidência de longa duração e de powertrain completo | | Motor | Cilindros fechados/abertos, trabalho de pressão da biela-manivela, escoamento de gás bidirecional, válvulas cronometradas pelo virabrequim, calor de parede e combustão premisturada prescrita | Admissão/escape detalhados, ignição, perdas mecânicas, termoquímica mais rica e comportamento medido do motor | -| Combustível | Combustível/ar/produtos rastreados, trilhos gasosos finitos com medição de dose por ciclo, trilhos líquidos finitos e flexíveis que alimentam filmes, evaporação paga pela parede e reação apenas do vapor | Bomba/reabastecimento do trilho, comportamento magnético/eletrônico/de pulverização não linear, equilíbrio de fases dependente da pressão e propriedades de combustível medidas | +| Combustível | Dosagem por ciclo, trilhos flexíveis com bomba, tanques finitos, retornos conservativos de alívio, evaporação de filme, agulhas físicas e previsão limitada de fechamento; [Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md); [Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md); [Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md); [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md); [Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md); [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md); [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md); [Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md); [Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md); [Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md); [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) | Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. | | Transmissão | Embreagens estática/deslizante, acionamento por contato, engrenagens/planetárias com sinal, conversor/trava mapeados e caminhos DCT de sete marchas à frente/ré e Ravigneaux de quatro faixas à frente/ré com giro/inércia orbital dos planetas resolvidos | Flexibilidade/perdas de engrenamento e divisão de carga, acionamento DCT, controle completo de pressão/troca da AT e roteamento medido, trocas coordenadas, perdas medidas e comportamento mais rico do conversor | | Hidráulica | Volumes flexíveis, restrições, bombas com vazamento/arrasto explícitos, alívio, pistões dinâmicos, carretéis dosados e acumuladores de gás de energia finita | Mapas medidos de válvula/acumulador/bomba, atrito de vedação, cavitação e hidráulica completa da transmissão | | Elétrica | Motores RL, solenoides recíprocos de indutância variável, bateria de carga finita, polarização por resistência/RC, conversão de duty médio e acessórios | Comportamento químico/térmico medido, BMS, controle de corrente e integração completa da alimentação | -| Controles | PI de pressão amostrado, realimentação da agulha/predição de fechamento e controle DCT escalonado confirmado por sensor, com posse do atuador, relógios inteiros e memória transacional | Coordenação de torque ECU/TCU, sensores, atuadores e tratamento de falhas | -| Documentos e assets | Trinta e quatro laboratórios JSON/CLI, trinta e três exemplos MCP, asset v24 com leitores v1-v23 | Edição/gravação na bancada e coleções de modelos calibrados | +| Controles | PI de pressão amostrado, dose/fechamento da agulha, transição DCT escalonada e trocas AT por realimentação de pressão com confirmação física da trava | Coordenação de torque ECU/TCU, sensores, atuadores e tratamento de falhas | +| Documentos e assets | 68 laboratórios JSON/CLI, 67 exemplos MCP, asset v41 e leitores v1-v40 | Edição/salvamento e coleções de modelos calibrados | | Agentes | Doze ferramentas MCP definidas por esquema; evidência compacta, verificações de revisão e diagnósticos acionáveis | Fluxos de trabalho completos para o escopo físico/de controle restante | | Unity | Importação de modelo, reprodução em ticks exatos, componentes 3D esquemáticos, controles, reinício e testes de ciclo de vida preparados | Aceitação real de Editor/Play, gráficos selecionáveis, edição/gravação de grafo e Player/IL2CPP | | Acervo nativo | Protótipos de pesquisa Zig 0.15.2, ABI preservado e procedência original das fontes | Referência histórica; a migração gerenciada continua separada da funcionalidade completa | Core e Assets visam tanto `net10.0` quanto `netstandard2.1`; o Core não tem dependência de Unity, transporte, provedor de modelos nem de terceiros. Os scripts de Assets do Unity usam C# 9. O Unity carrega os assemblies Standard compilados pelo SDK externo; ele não compila código-fonte .NET 10/C# 14. -## Evidência e limites +`LiquidColumn` é uma referência C# independente para tubo horizontal rígido com seção, velocidade uniforme, densidade líquida e temperatura constantes. As pressões absolutas são prescritas por intervalo. Resistências linear e quadrática são entradas de pesquisa explícitas. Não é componente do grafo e não altera rede ou bocal. [Referência de quantidade de movimento na entrada líquida](LIQUID_COLUMN.pt-BR.md) + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. [Quantidade de movimento da linha finita de combustível líquido](FUEL_INERTIAL_PIPE.pt-BR.md) + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) -O [grafo de acionamento hidráulico da AT](AT_HYDRAULIC_ACTUATION.pt-BR.md) alimenta os cinco elementos de faixa e a trava opcional do conversor a partir de uma bomba compartilhada acionada pelo eixo. Caminhos explícitos de enchimento/drenagem, movimento finito do pistão, molas de retorno e capacidade derivada da pastilha conservam o trabalho de deslocamento hidráulico e o comportamento real de captura/liberação. Válvulas prescritas não são controle AT confirmado por sensor nem aceitação medida do corpo de válvulas. O comportamento completo do powertrain e a aceitação medida continuam inacabados. +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) -O `dotnet run --file tools/Build.cs -- verify` em série exigido passa localmente no Windows x64. Ele cobre os dois alvos de assembly hospedados no .NET 10, um processo filho MCP real, todos os relatórios de laboratório, o acervo Zig e o ABI C#. Contagens atuais, caminhos de log, conferências de esquema, resultados numéricos e a procedência de CI retida estão em [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md). Testes de assembly Standard no .NET 10 não estabelecem compatibilidade com o runtime do Unity. +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. [Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) -O [incremento do filme líquido](FUEL_FILM.pt-BR.md) agora tem verificações analíticas de aquecimento/saturação/secagem, referências independentes de EDO simultânea, conservação de massa/química/térmica, replay portátil e transações completas de sessão. A ordenação simétrica do filme dá refinamento suave de segunda ordem para filmes que compartilham uma parede. O acoplamento a outras fontes de calor de parede conserva o limite existente de parede explícita de primeira ordem. O replay exato é separado da precisão do passo de tempo, dos KPIs aprovados e da física calibrada. +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. [Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) -O [grafo de pesquisa Ravigneaux](RAVIGNEAUX_TRANSMISSION.pt-BR.md) acrescenta restrições de pinhão simples/duplo, cinco caminhos de atrito, quatro faixas à frente e ré. Referências independentes de massa livre, inércia refletida e captura de freio conferem reações de porta e calor. Experimentos de torque compartilhado e de combustão/conversor conservam o replay completo e fronteiras explícitas de pesquisa. O caminho reduzido omite o giro dos planetas; hidráulica detalhada, controle AT e topologia/calibração OEM continuam inacabados. A [opção resolvida](RESOLVED_PLANETS.pt-BR.md) acrescenta quatro engrenamentos reais, dois rotores de giro absoluto e inércia orbital explícita; referências independentes de massa de seis rotores, momento angular e captura conservam essas energias. Comportamento detalhado de dente/lubrificação/divisão de carga ainda precisa de evidência. +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. [Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) -O [controlador DCT amostrado](DCT_CONTROL.pt-BR.md) agora é dono dos comandos de tração/seletor, pré-seleciona caminhos sem carga, espera a sincronização/travamento físicos e faz liberação/engate exclusivos e escalonados. Solicitações inteiras de marcha, aborto para ponto morto, falhas de direção/tempo esgotado/perda persistente de travamento e recuperação por nova solicitação são observáveis. A marcha confirmada pode ficar temporariamente em zero durante um deslizamento transitório, mesmo depois de uma confirmação anterior. Corridas longas de marcha controlada usam coordenadas compensadas transacionais, com as tolerâncias estritas de fase inalteradas. O limite explícito de estado é 128; os limites de nó e de componente continuam 32/64, o que permite a composição de 70 estados de combustão/controlador. Trocas completas com mistura de torque, atuadores e falhas abrangentes de ECU/TCU continuam abertos. +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) -O [incremento de embreagem dupla](DUAL_CLUTCH_TRANSMISSION.pt-BR.md) agora monta sete caminhos à frente, uma intermediária de ré no caminho par, três ramos de saída/redução final e seletores de atrito explícitos. Referências independentes de inércia com sinal/refletida e de impulso/calor de pré-seleção verificam os caminhos de potência. Experimentos de torque e de combustão fazem replay por todas as camadas ordinárias de grafo/asset/agente. Uma alternativa limitada de travamento linear normalizado resolve a entrega seis/sete que falhava antes, mantendo as trajetórias existentes como regressões. Seleção/entrega prescritas não são uma TCU completa nem comportamento detalhado de garras/anel de bloqueio/atuador; parâmetros e amostras OEM continuam não verificados. +## Evidência e limites + +O comando serial exigido `dotnet run --file tools/Build.cs -- verify` cobre ambos os alvos de assembly, um processo MCP real, todos os laboratórios, o arquivo Zig e a ABI C#. Contagens, resultados e caminhos dos logs estão em [VALIDATION.md](VALIDATION.md). Verificações Standard no .NET 10 não estabelecem aceitação do runtime Unity. -O [incremento de compensação de fechamento](CLOSURE_PREDICTION.pt-BR.md) reproduz um futuro limitado da planta com entradas mantidas, sem confirmar estado. Ele prevê o escoamento residual da agulha e agenda a remoção da tensão na grade de ticks físicos. O rastreamento isolado da dose melhora, enquanto o fechamento/ricochete reais e os históricos de combustível/energia continuam os mesmos mecanismos físicos. Predições somente leitura, limites inteiros, refinamento de horizonte, zero alocações e transações completas estão verificados. A predição mantém os outros comandos e omite eventos futuros de entrada externa; seu modelo e o horizonte finito são limites explícitos, e não calibração nem aceitação completa de ECU. +O suprimento inclui [tanques finitos](LIQUID_FUEL_TANK.pt-BR.md) e [retornos de alívio rastreados](LIQUID_FUEL_RETURN.pt-BR.md), com balanços de massa, energia calórica/química e trabalho de pressão. O [controlador AT hidráulico](AT_CONTROL.pt-BR.md) regula pressão dos atuadores e confirma marcha/trava físicas. Referências independentes e transações completas sustentam esses modelos de pesquisa; coordenação ECU/TCU completa e comportamento medido do hardware seguem pendentes. -O [incremento da agulha](NEEDLE_ACTUATION.pt-BR.md) acopla a energia do fluxo magnético e a força recíproca à massa real da agulha, mola/amortecimento e batentes elásticos. A amostragem inteira é dona da tensão da bobina a partir da realimentação da dose entregue. O fluido continua governado pelo levantamento físico através do atraso de fechamento e do ricochete; não é cortado no valor alvo. Referências independentes de magnético/RL/movimento, balanços de fonte/fase/elétrico/térmico, replay portátil/MCP e transações completas do controlador passam. A entrega em excesso e o líquido restante na fronteira do experimento continuam observáveis; esses resultados não estabelecem rastreamento calibrado de dose nem eletrônica/magnética completas do injetor. +`POWER_UNITY_EDITOR` não está definido no ambiente atual. Importação Studio, reprodução e testes preparados ainda precisam de evidência real de Editor/Play, renderização e Player/IL2CPP. -O [incremento de injeção líquida](LIQUID_FUEL_INJECTION.pt-BR.md) agora parte de um filme seco e retira de uma fonte flexível finita. Pressão/trabalho analíticos do trilho, refinamento simultâneo independente, balanços completos de fonte/filme/químico/térmico, replay MCP real e rollback especulativo de embreagem passam. A energia de pressão do trilho é armazenada; o calor do bico e o trabalho de pressão exportado do receptor continuam distintos. A redução do receptor de volume líquido desprezível é explícita e não é creditada como volume de gás adicional nem como trabalho de virabrequim. Comportamento magnético/eletrônico/de pulverização refinado, bomba/reabastecimento e hardware medido continuam abertos. +Todos os parâmetros permanecem `unverified`. EA211 DJS + DQ200 e PSA EC5 + AT8 mantêm limites completos e manifestos de evidência em [assets/samples](../assets/samples). Medições OEM ausentes continuam ausentes. Licenças e procedência histórica do código são preservadas. -O `film-fired-cylinder` contém inicialmente um inventário líquido declarado. Ele aquece e evapora esse inventário antes da reação prescrita; não implementa um injetor líquido. Marcadores e testes preparados do Studio consomem as mesmas definições. `POWER_UNITY_EDITOR` não está definido, então Editor/Play reais, renderização e Player/IL2CPP continuam não verificados. +CLI `list-labs`, descoberta de exemplos MCP e verificação serial compartilham [um catálogo de laboratórios](../assets/labs/catalog.json). A verificação exige a cobertura de cada fonte de laboratório. -Todos os parâmetros de pesquisa continuam `unverified`. EA211 DJS + DQ200 e PSA EC5 + AT8 conservam suas fronteiras completas de powertrain e os manifestos de evidência em [assets/samples](../assets/samples). Medições OEM ausentes continuam ausentes. Licenças e a procedência histórica das fontes são preservadas. +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) ## Próxima sequência de desenvolvimento -1. Acrescente bomba/reabastecimento conservativos do trilho e acionamento magnético/eletrônico medido sobre a [entrega líquida flexível e finita](LIQUID_FUEL_INJECTION.pt-BR.md). Substitua a fronteira declarada de trabalho de deslocamento exportado quando o volume líquido finito e o momento da pulverização estiverem resolvidos. Mantenha o líquido entregue, o combustível evaporado e a reação observáveis em separado e conserve referências independentes. +1. Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. 2. Estenda o motor com controle de ignição, dinâmica de admissão/escape, perdas mecânicas e termoquímica mais rica. Conserve o objetivo completo do motor. -3. Estenda os caminhos de pesquisa DCT verificados com acionamento detalhado, propriedades/perdas medidas dos planetas e hidráulica/controle completos da AT, e então construa a coordenação de troca/torque de ECU/TCU a partir dos primitivos verificados de engrenagem, embreagem, conversor e hidráulica. Acrescente estado limitado de controlador, comportamento de sensor/atuador e recuperação de falha. +3. Estender acionamento DCT e hidráulica planetária/AT medida, depois coordenar solicitações de torque e trocas ECU/TCU com os controladores DCT e AT amostrados existentes. Acrescentar sensores/atuadores medidos e falhas recuperáveis. 4. Execute `unity-test` com o Editor fixado e depois obtenha evidência de Player/IL2CPP. Complete a seleção de canais, a edição de grafo e a gravação como recursos distintos. 5. Obtenha mapas medidos, dados OEM e orçamentos de incerteza para os dois powertrains alvo antes de declarar amostras calibradas ou prontidão de lançamento. + +[Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) diff --git a/docs/DEVELOPMENT_STATUS.ru.md b/docs/DEVELOPMENT_STATUS.ru.md index af7278b..3383432 100644 --- a/docs/DEVELOPMENT_STATUS.ru.md +++ b/docs/DEVELOPMENT_STATUS.ru.md @@ -10,47 +10,54 @@ |---|---|---| | Ядро | Явные единицы и устойчивые ID; неизменяемая компиляция; ограниченное целочисленное время; наблюдаемые журналы учёта; повтор, отмена, независимые ветвления и полный откат пакета | Свидетельства длительного прогона и полного силового агрегата | | Двигатель | Закрытые и открытые цилиндры, работа давления кривошипно-шатунного механизма, двунаправленный поток газа, клапаны по углу коленвала, теплота стенки и предписанное предварительно смешанное сгорание | Подробные впуск и выпуск, зажигание, механические потери, более богатая термохимия и измеренное поведение двигателя | -| Топливо | Отслеживаемые топливо, воздух и продукты, конечные газовые рейки с дозированием за цикл, конечные податливые жидкостные рейки, питающие плёнки, оплаченное стенкой испарение и реакция только пара | Насос и заправка рейки, нелинейное магнитное, электронное и распыляющее поведение, зависящее от давления фазовое равновесие и измеренные свойства топлива | +| Топливо | Дозирование по циклу, податливые рампы с насосом, конечные баки, консервативный возврат через клапан, испарение плёнки, физические иглы и ограниченный прогноз закрытия; [Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md); [Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md); [Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md); [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md); [Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md); [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md); [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md); [Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md); [Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md); [Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md); [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) | Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. | | Трансмиссия | Статические и скользящие сцепления, контактный привод, шестерни и планетарные ряды со знаком, гидротрансформатор с картой и блокировкой, пути DCT на семь передних и задний ход и пути Ravigneaux на четыре передних и задний ход с разрешённым вращением сателлитов и орбитальной инерцией | Податливость, потери и распределение нагрузки в зацеплении, привод DCT, полное управление давлением и переключением AT и измеренная маршрутизация, согласованные переключения, измеренные потери и более богатое поведение гидротрансформатора | | Гидравлика | Податливые объёмы, сужения, насосы с явными утечками и сопротивлением, предохранительный клапан, динамические поршни, дозирующие золотники и газовые аккумуляторы с конечной энергией | Измеренные карты клапанов, аккумуляторов и насоса, трение уплотнений, кавитация и полная гидравлика трансмиссии | | Электрика | Двигатели RL, взаимные соленоиды с переменной индуктивностью, батарея конечного заряда, сопротивление и RC-поляризация, усреднённое преобразование скважности и вспомогательные нагрузки | Измеренные химия и тепловое поведение, BMS, регулирование тока и полная интеграция питания | -| Управление | Дискретный ПИ по давлению, обратная связь иглы и предсказание закрытия, поэтапное управление DCT с подтверждением датчиком, владение исполнительными механизмами, целочисленные часы и транзакционная память | Согласование момента ECU/TCU, датчики, исполнительные механизмы и обработка неисправностей | -| Документы и активы | Тридцать четыре лаборатории JSON/CLI, тридцать три примера MCP, актив v24 с читателями v1-v23 | Редактирование и сохранение на верстаке и коллекции калиброванных моделей | +| Управление | Дискретный PI давления, дозирование/закрытие иглы, поэтапная передача DCT и переключения AT по давлению с подтверждением физической блокировки | Согласование момента ECU/TCU, датчики, исполнительные механизмы и обработка неисправностей | +| Документы и ресурсы | 68 лабораторий JSON/CLI, 67 примеров MCP, формат v41 и чтение v1-v40 | Редактирование/сохранение и наборы калиброванных моделей | | Агенты | Двенадцать инструментов MCP со схемами; компактные свидетельства, проверки ревизий и действенная диагностика | Полные рабочие процессы для оставшегося объёма физики и управления | | Unity | Импорт модели, воспроизведение в точных тиках, схематичные 3D-компоненты, элементы управления, сброс и подготовленные тесты жизненного цикла | Фактическая приёмка Editor/Play, выбираемые графики, редактирование и сохранение графа, Player/IL2CPP | | Нативный архив | Исследовательские прототипы Zig 0.15.2, сохранённый ABI и исходное происхождение исходников | Историческая справка; управляемый перенос остаётся отдельным от полной функциональности | Ядро и Assets нацелены и на `net10.0`, и на `netstandard2.1`; у ядра нет зависимостей Unity, транспорта, поставщика моделей или сторонних пакетов. Скрипты Unity Assets используют C# 9. Unity загружает сборки Standard, собранные внешним SDK; исходники .NET 10 и C# 14 он не компилирует. -## Свидетельства и пределы +`LiquidColumn` — самостоятельная C#-опора горизонтальной жёсткой трубы с постоянными сечением, равномерной скоростью, плотностью жидкости и температурой. Абсолютные давления портов заданы на локальном интервале. Линейное и квадратичное сопротивления — явные исследовательские параметры. Это не компонент графа; уравнения топливной сети и сопла не меняются. [Опорная модель импульса жидкостного входа](LIQUID_COLUMN.ru.md) + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. [Импульс конечной линии жидкого топлива](FUEL_INERTIAL_PIPE.ru.md) -[Граф гидравлического привода AT](AT_HYDRAULIC_ACTUATION.ru.md) питает все пять элементов диапазона и необязательную блокировку гидротрансформатора от общего насоса с приводом от вала. Явные пути заполнения и слива, конечное движение поршня, возвратные пружины и ёмкость от накладки сохраняют гидравлическую работу вытеснения и фактическое поведение захвата и освобождения. Предписанные клапаны — это не управление AT с подтверждением датчиком и не измеренная приёмка гидроблока. Полное поведение силового агрегата и измеренная приёмка остаются незавершёнными. +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) -Нужная последовательная команда `dotnet run --file tools/Build.cs -- verify` локально проходит на Windows x64. Она охватывает обе целевые сборки, размещённые на .NET 10, фактический дочерний процесс MCP, все отчёты лабораторий, архив Zig и ABI C#. Текущие счётчики, пути журналов, проверки схем, численные результаты и сохранённое происхождение CI — в [журнале валидации](VALIDATION.ru.md). Тесты сборки Standard на .NET 10 не устанавливают совместимость со средой выполнения Unity. +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. [Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) -У [шага жидкостной плёнки](FUEL_FILM.ru.md) теперь есть аналитические проверки нагрева, насыщения и осушения, независимые эталоны одновременных ОДУ, сохранение массы, химической и тепловой энергии, переносимый повтор и полные транзакции сессии. Симметричный порядок плёнок даёт гладкое уточнение второго порядка для плёнок с общей стенкой. Связь с другими источниками теплоты стенки сохраняет существующий явный предел стенки первого порядка. Точный повтор отделён от точности шага, прохождения KPI и калиброванной физики. +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. [Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) -[Исследовательский граф Ravigneaux](RAVIGNEAUX_TRANSMISSION.ru.md) добавляет ограничения одно- и двухсателлитного ряда, пять путей трения, четыре передних диапазона и задний ход. Независимые эталоны свободной массы, приведённой инерции и захвата тормозом проверяют реакции портов и теплоту. Эксперименты с общим моментом и со сгоранием и гидротрансформатором сохраняют полный повтор и явные исследовательские границы. Редуцированный путь опускает вращение сателлитов; подробная гидравлика, управление AT и топология и калибровка OEM остаются незавершёнными. [Разрешённый вариант](RESOLVED_PLANETS.ru.md) добавляет четыре фактических зацепления, два ротора абсолютного вращения и явную орбитальную инерцию; независимые эталоны массы шести роторов, момента импульса и захвата сохраняют эти энергии. Подробное поведение зуба, смазки и распределения нагрузки всё ещё нуждается в свидетельствах. +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. [Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) -[Дискретный регулятор DCT](DCT_CONTROL.ru.md) теперь владеет командами тяги и селекторов, предвыбирает ненагруженные пути, ждёт физической синхронизации и блокировки и выполняет исключительные поэтапные отпускание и замыкание. Целочисленные запросы передачи, прерывание в нейтраль, неисправности направления, таймаута и устойчивой потери блокировки и восстановление по новому запросу наблюдаемы. Подтверждённая передача может временно быть нулём во время переходного скольжения даже после прежнего подтверждения. Управляемые длительные прогоны передач используют транзакционные компенсированные координаты; строгие допуски фазы не меняются. Явный предел состояния — 128; пределы узлов и компонентов остаются 32/64, что позволяет композицию со сгоранием и регулятором на 70 состояний. Полные переключения со смешением момента, исполнительные механизмы и исчерпывающие неисправности ECU/TCU остаются открытыми. +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) -[Шаг трансмиссии с двумя сцеплениями](DUAL_CLUTCH_TRANSMISSION.ru.md) теперь собирает семь передних путей, промежуточную шестерню заднего хода чётного пути, три выходные ветви и главные передачи и явные фрикционные селекторы. Независимые эталоны знаковой и приведённой инерции и импульса и теплоты предвыбора проверяют пути мощности. Эксперименты момента и со сгоранием повторяются через все обычные слои графа, актива и агента. Ограниченный нормированный линейный запасной путь блокировки разрешает ранее отказывавшую передачу шесть/семь и сохраняет прежние траектории как регрессии. Предписанные выбор и передача — это не полный TCU и не подробное поведение кулачковой муфты, блокирующего кольца и привода; параметры и образцы OEM остаются непроверенными. +## Свидетельства и пределы -[Шаг компенсации закрытия](CLOSURE_PREDICTION.ru.md) повторяет ограниченное будущее объекта при удерживаемых входах, не фиксируя состояние. Он предсказывает остаточный поток через иглу и планирует снятие напряжения на сетке физических тиков. Отслеживание изолированной дозы улучшается, а реальное закрытие, отскок и истории топлива и энергии остаются прежними физическими механизмами. Предсказания только для чтения, целочисленные границы, уточнение горизонта, нулевые выделения и полные транзакции проверены. Предсказание удерживает другие команды и опускает будущие внешние входные события; его модель и конечный горизонт — явные пределы, а не калибровка и не полная приёмка ECU. +Обязательная последовательная команда `dotnet run --file tools/Build.cs -- verify` охватывает обе цели сборок, реальный процесс MCP, все лаборатории, архив Zig и ABI C#. Числа, результаты и пути журналов находятся в [VALIDATION.md](VALIDATION.md). Проверки сборок Standard на .NET 10 не подтверждают приёмку среды Unity. -[Шаг иглы](NEEDLE_ACTUATION.ru.md) связывает энергию магнитного потока и взаимную силу с фактической массой иглы, пружиной, демпфированием и упругими упорами. Целочисленная дискретизация владеет напряжением катушки по обратной связи отданной дозы. Жидкость по-прежнему определяется физическим подъёмом через задержку закрытия и отскок; к цели она не обрезается. Независимые магнитные, RL и кинематические эталоны, журналы учёта источника, фазы, электрики и теплоты, переносимый повтор и повтор MCP и полные транзакции регулятора проходят. Избыточная подача и оставшаяся жидкость на границе эксперимента остаются наблюдаемыми; эти результаты не устанавливают калиброванное отслеживание дозы или полную электронику и магнитику форсунки. +Подача топлива включает [конечные баки](LIQUID_FUEL_TANK.ru.md) и [отслеживаемый возврат через клапан](LIQUID_FUEL_RETURN.ru.md) с балансами массы, тепловой/химической энергии и работы давления. [Гидравлический контроллер AT](AT_CONTROL.ru.md) регулирует давление приводов и подтверждает физическую передачу/блокировку. Независимые эталоны и полные транзакции подтверждают эти исследовательские модели; полная координация ECU/TCU и измеренное поведение оборудования остаются открытыми. -[Шаг жидкостного впрыска](LIQUID_FUEL_INJECTION.ru.md) теперь начинается с сухой плёнки и берёт жидкость из конечного податливого источника. Аналитические давление и работа рейки, независимое одновременное уточнение, полные журналы учёта источника, плёнки, химии и теплоты, фактический повтор MCP и откат пробного сцепления проходят. Энергия давления рейки хранится; теплота сопла и отданная работа давления приёмника остаются различными. Редукция приёмника с пренебрежимо малым объёмом жидкости явна и не засчитывается как дополнительный газовый объём или работа коленвала. Уточнённые магнитное, электронное и распыляющее поведение, насос и заправка и измеренное оборудование остаются открытыми. +`POWER_UNITY_EDITOR` не задан в текущей среде. Импорт Studio, воспроизведение и подготовленные тесты всё ещё требуют реальных доказательств Editor/Play, рендеринга и Player/IL2CPP. -`film-fired-cylinder` изначально содержит объявленный запас жидкости. Он нагревает и испаряет этот запас до предписанной реакции; жидкостную форсунку он не реализует. Подготовленные маркеры и тесты студии потребляют те же определения. `POWER_UNITY_EDITOR` не задан, поэтому фактические Editor/Play, рендеринг и Player/IL2CPP остаются непроверенными. +Все параметры остаются `unverified`. EA211 DJS + DQ200 и PSA EC5 + AT8 сохраняют полные границы и манифесты доказательств в [assets/samples](../assets/samples). Отсутствующие измерения OEM остаются отсутствующими. Лицензии и историческое происхождение кода сохранены. -Все исследовательские параметры остаются `unverified`. EA211 DJS + DQ200 и PSA EC5 + AT8 сохраняют полные границы силового агрегата и манифесты свидетельств в [assets/samples](../assets/samples). Отсутствующие измерения OEM остаются отсутствующими. Лицензии и историческое происхождение исходников сохранены. +CLI `list-labs`, обнаружение примеров MCP и последовательная проверка используют [единый каталог лабораторий](../assets/labs/catalog.json). Проверка требует покрытия каждого исходного файла лаборатории. + +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) ## Следующая последовательность разработки -1. Добавить сохраняющие насос и заправку рейки и измеренный магнитный и электронный привод поверх [конечной податливой жидкостной подачи](LIQUID_FUEL_INJECTION.ru.md). Заменить объявленную границу отданной работы вытеснения, когда будут разрешены конечный объём жидкости и импульс распыла. Оставленную жидкость, испарённое топливо и реакцию держите наблюдаемыми раздельно и сохраняйте независимые эталоны. +1. Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. 2. Расширить двигатель управлением зажиганием, динамикой впуска и выпуска, механическими потерями и более богатой термохимией. Сохраните полную цель по двигателю. -3. Расширить проверенные исследовательские пути DCT подробным приводом, измеренными свойствами и потерями сателлитов и полной гидравликой и управлением AT, затем построить согласование переключения и момента ECU/TCU из проверенных примитивов шестерён, сцепления, гидротрансформатора и гидравлики. Добавить ограниченное состояние регулятора, поведение датчиков и исполнительных механизмов и восстановление после неисправностей. +3. Расширить приводы DCT и измеренную планетарную/AT гидравлику, затем координировать запросы момента и переключения ECU/TCU на существующих дискретных контроллерах DCT и AT. Добавить измеренные датчики/приводы и восстанавливаемые неисправности. 4. Выполнить `unity-test` с закреплённым редактором, затем получить свидетельства Player/IL2CPP. Выбор каналов, редактирование графа и сохранение завершить как отдельные возможности. 5. Получить измеренные карты, данные OEM и бюджеты неопределённости для двух целевых силовых агрегатов, прежде чем объявлять калиброванные образцы или готовность к выпуску. + +[Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) diff --git a/docs/DEVELOPMENT_STATUS.zh-CN.md b/docs/DEVELOPMENT_STATUS.zh-CN.md index ec154e1..fc4adab 100644 --- a/docs/DEVELOPMENT_STATUS.zh-CN.md +++ b/docs/DEVELOPMENT_STATUS.zh-CN.md @@ -10,46 +10,54 @@ Power! 已有托管仿真核心、共享模型文档与可移植资产、无头 |---|---|---| | 核心 | 显式单位与稳定 ID;不可变编译;有界整数时间;可观察账本;回放、取消、独立分支与整批回滚 | 长期运行与完整动力总成证据 | | 发动机 | 封闭/开放气缸、滑块—曲柄压力功、双向气体流动、曲轴定时气门、壁面传热与预设预混燃烧 | 详细进/排气、点火、机械损失、更丰富的热化学与实测发动机行为 | -| 燃油 | 被追踪的燃油/空气/产物、带循环剂量计量的有限气体油轨、为油膜供油的有限柔性液轨、壁面支付蒸发与仅蒸气反应 | 油轨泵送/加注、非线性电磁/电子/喷雾行为、压力相关相平衡与实测燃油属性 | +| 燃油 | 循环计量、泵供柔性油轨、有限油箱、守恒泄压回流、油膜蒸发、物理针阀与有界闭合预测; [油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md); [燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md); [有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md); [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md); [冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md); [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md); [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md); [冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md); [平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md); [有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md); [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) | 在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 | | 变速器 | 静摩擦/滑摩离合器、接触驱动、有符号齿轮/行星排、映射式变矩器/锁止,以及带已分解行星自转/轨道惯量的七前进/倒挡 DCT 与四前进/倒挡 Ravigneaux 路径 | 啮合柔性/损失与载荷分配、DCT 执行、完整 AT 压力/换挡控制与实测油路、协调换挡、实测损失与更丰富的变矩器行为 | | 液压 | 柔性容积、节流、带显式泄漏/黏性阻力的泵、泄压、动态活塞、计量滑阀与有限能量气体蓄能器 | 实测阀门/蓄能器/泵图谱、密封摩擦、空化与完整变速器液压 | | 电气 | RL 电机、互易变电感电磁铁、有限电量电池、电阻/RC 极化、平均占空比变换与附件 | 实测化学/热行为、BMS、电流控制与完整供电集成 | -| 控制 | 采样压力 PI、针阀反馈/闭合预测,以及带执行器所有权、整数时钟与事务性记忆的传感器确认分阶段 DCT 控制 | ECU/TCU 扭矩协调、传感器、执行器与故障处理 | -| 文档与资产 | 34 个 JSON/CLI 实验室、33 个 MCP 示例、带 v1-v23 读取器的资产 v24 | 工作台编辑/保存与标定模型集合 | +| 控制 | 采样压力 PI、针阀剂量/闭合控制、分阶段 DCT 交接与通过实际锁止确认的压力反馈 AT 换挡 | ECU/TCU 扭矩协调、传感器、执行器与故障处理 | +| 文档与资产 | 68 个 JSON/CLI 实验、67 个 MCP 示例,资产 v41 及 v1-v40 读取支持 | 工作台编辑/保存与标定模型集合 | | 智能体 | 十二个由 schema 定义的 MCP 工具;紧凑证据、修订检查与可操作诊断 | 面向剩余物理/控制范围的完整工作流 | | Unity | 模型导入、精确节拍回放、示意 3D 元件、控件、重置与已准备的生命周期测试 | 真实的编辑器/Play 验收、可选曲线、图编辑/保存与 Player/IL2CPP | | 原生存档 | Zig 0.15.2 研究原型、保留的 ABI 与原始源码溯源 | 历史参考;托管迁移与完整功能保持分离 | 核心与 Assets 同时面向 `net10.0` 与 `netstandard2.1`;核心没有 Unity、传输、模型提供商或第三方依赖。Unity Assets 脚本使用 C# 9。Unity 加载由外部 SDK 构建的 Standard 程序集;它不编译 .NET 10/C# 14 源码。 -## 证据与限制 +`LiquidColumn` 是独立 C# 参考模型,描述水平刚性管中的恒定截面、均匀流速、恒定液体密度与恒定温度。每个局部区间内给定绝对端口压力。线性和二次阻力系数是显式研究输入。它不是图元件,不改变现有燃油网络或喷嘴方程。 [液体入口动量参考](LIQUID_COLUMN.zh-CN.md) + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 [有限液体燃油管路动量](FUEL_INERTIAL_PIPE.zh-CN.md) + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) -[AT 液压驱动图](AT_HYDRAULIC_ACTUATION.zh-CN.md) 由共享的轴驱动泵为全部五个挡域元件与可选的变矩器锁止供能。显式充/放路径、有限活塞运动、回位弹簧与由衬片导出的容量保留液压位移功与真实的捕获/释放行为。预设阀门不是传感器确认的 AT 控制,也不是实测阀体验收。完整动力总成行为与实测验收仍未完成。 +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) -所需的串行 `dotnet run --file tools/Build.cs -- verify` 在本地 Windows x64 上通过。它覆盖托管在 .NET 10 上的两个程序集目标、一个真实的 MCP 子进程、全部实验室报告、Zig 存档与 C# ABI。当前计数、日志路径、schema 检查、数值结果与保留的 CI 溯源见 [验证记录](VALIDATION.zh-CN.md)。在 .NET 10 上对 Standard 程序集的测试并不确立 Unity 运行时兼容性。 +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 [冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) -[液体油膜增量](FUEL_FILM.zh-CN.md) 现已有解析加热/饱和/蒸干检查、独立的联立 ODE 参考、质量/化学/热守恒、可移植回放与完整会话事务。对称油膜顺序使共用壁面的油膜在光滑细化下达到二阶。与其他壁面热源的耦合保留现有的一阶显式壁面限制。精确回放独立于步长时间精度、通过的 KPI 与已标定物理。 +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 [平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) -[Ravigneaux 研究图](RAVIGNEAUX_TRANSMISSION.zh-CN.md) 增加单/双行星轮约束、五条摩擦路径、四个前进挡域与倒挡。独立的自由质量、反射惯量与制动捕获参考检查端口反作用与热量。共享扭矩与点火/变矩器实验保留完整回放与显式研究边界。简化路径省略行星自转;详细液压、AT 控制与 OEM 拓扑/标定仍未完成。[分解选项](RESOLVED_PLANETS.zh-CN.md) 增加四个真实啮合、两个绝对自转转子与显式轨道惯量;独立的六转子质量、角动量与捕获参考保留这些能量。详细的轮齿/润滑/载荷分配行为仍需要证据。 +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 [有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) -[采样 DCT 控制器](DCT_CONTROL.zh-CN.md) 现拥有驱动/选挡指令,预选无载路径,等待物理同步/锁止,并执行互斥的分阶段分离/接合。整数挡位请求、空挡中止、方向/超时/持续失锁故障与新请求恢复都可观察。即使先前已确认,瞬态滑差期间确认挡位也可以暂时为零。受控的长齿轮运转使用事务性补偿坐标,严格相位容差不变。显式状态上界是 128;节点与元件上界仍为 32/64,从而允许 70 状态的点火/控制器组合。完整的扭矩混合换挡、执行器与全面的 ECU/TCU 故障仍未完成。 +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) -[双离合增量](DUAL_CLUTCH_TRANSMISSION.zh-CN.md) 现组装七条前进路径、偶数路径倒挡惰轮、三个输出/主减速分支与显式摩擦选挡器。独立的有符号/反射惯量与预选冲量/热量参考验证动力路径。扭矩与点火实验经全部普通图/资产/智能体层回放。有界归一化线性锁止回退解决了先前失败的六/七挡交接,同时把现有轨迹保留为回归。预设的选挡/交接不是完整 TCU,也不是详细的接合齿/锁环/执行器行为;参数与 OEM 样本仍为未核实。 +## 证据与限制 + +规定的串行 `dotnet run --file tools/Build.cs -- verify` 覆盖两个程序集目标、实际 MCP 进程、全部实验室、Zig 存档和 C# ABI。计数、结果和日志路径见 [VALIDATION.md](VALIDATION.md)。在 .NET 10 上运行的 Standard 程序集检查不代表 Unity 运行时验收。 -[闭合补偿增量](CLOSURE_PREDICTION.zh-CN.md) 回放一段有界的、输入保持不变的对象未来,而不提交状态。它预测残余针阀流量,并在物理节拍网格上安排断电。孤立的剂量跟踪有所改善,而真实的关闭/回弹与燃油/能量历史仍是不变的物理机制。只读预测、整数界限、预测时程细化、零分配与完整事务已经验证。预测保持其他指令,并省略未来的外部输入事件;其模型与有限预测时程是显式限制,而不是标定或完整 ECU 验收。 +燃油供给包含[有限油箱](LIQUID_FUEL_TANK.zh-CN.md)和[可追踪的泄压回流](LIQUID_FUEL_RETURN.zh-CN.md),保留质量、热能、化学能和压力功账本。[液压 AT 控制器](AT_CONTROL.zh-CN.md)调节执行器压力并确认实际挡域/锁止。独立参考与完整事务为这些研究模型提供证据;完整 ECU/TCU 协调和实测硬件行为仍待完成。 -[针阀增量](NEEDLE_ACTUATION.zh-CN.md) 把磁通能量与互易力耦合到真实针阀质量、弹簧/阻尼与弹性止挡。整数采样根据已供给剂量反馈拥有线圈电压。流体仍由物理升程控制,经过关闭延迟与回弹;它不会被裁剪到目标。独立的磁/RL/运动参考、源/相/电/热账本、可移植/MCP 回放与完整控制器事务均通过。实验边界处的过量供给与剩余液体仍可观察;这些结果并不确立已标定的剂量跟踪或完整的喷油器电子/磁路。 +当前环境未设置 `POWER_UNITY_EDITOR`。工作室导入、回放和已准备的测试仍需实际 Editor/Play、渲染及 Player/IL2CPP 证据。 -[液体喷射增量](LIQUID_FUEL_INJECTION.zh-CN.md) 现在从干燥油膜出发,并从有限柔性源抽取。解析油轨压力/功、独立联立细化、完整的源/油膜/化学/热账本、真实 MCP 回放与试探离合器回滚均通过。油轨压力能被存储;喷嘴热量与导出的接收端压力功保持区分。可忽略液体体积的接收端简化是显式的,不会被记成额外的气体容积或曲轴功。更精细的电磁/电子/喷雾行为、泵送/加注与实测硬件仍未完成。 +全部参数仍为 `unverified`。EA211 DJS + DQ200 和 PSA EC5 + AT8 在 [assets/samples](../assets/samples) 中保留完整边界和证据清单。缺失的 OEM 测量仍保持缺失。许可证和历史源码出处保持完整。 -`film-fired-cylinder` 最初含有声明的液体存量。它在预设反应之前加热并蒸发该存量;它并不实现液体喷油器。准备好的工作室标记与测试使用相同定义。`POWER_UNITY_EDITOR` 未设置,因此真实的编辑器/Play、渲染与 Player/IL2CPP 仍未核实。 +CLI `list-labs`、MCP 示例发现和串行验证共用[一份实验室目录](../assets/labs/catalog.json)。验证会检查目录是否覆盖每个实验室源文件。 -全部研究参数仍为 `unverified`。EA211 DJS + DQ200 与 PSA EC5 + AT8 在 [assets/samples](../assets/samples) 中保留完整的动力总成边界与证据清单。缺失的 OEM 测量仍然缺失。许可与历史源码溯源予以保留。 +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) ## 下一步开发顺序 -1. 在 [有限柔性液体供给](LIQUID_FUEL_INJECTION.zh-CN.md) 之上加入守恒的油轨泵送/加注与实测电磁/电子驱动。当有限液体体积与喷雾动量被分解后,替换所声明的导出位移功边界。保持已供给液体、已蒸发燃油与反应分别可观察,并保留独立参考。 +1. 在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 2. 用点火控制、进/排气动力学、机械损失与更丰富的热化学扩展发动机。保留完整的发动机目标。 -3. 用详细执行、实测行星属性/损失与完整 AT 液压/控制扩展已验证的 DCT 研究路径,再从已验证的齿轮、离合器、变矩器与液压原语构建 ECU/TCU 换挡/扭矩协调。加入有界控制器状态、传感器/执行器行为与故障恢复。 +3. 扩展 DCT 驱动及实测行星排/AT 液压,再基于现有采样 DCT 和 AT 控制器协调 ECU/TCU 扭矩请求与换挡。加入实测传感器、执行器和可恢复故障。 4. 用锁定的编辑器运行 `unity-test`,然后取得 Player/IL2CPP 证据。把通道选择、图编辑与保存作为彼此独立的功能完成。 5. 在声明标定样本或发布就绪之前,为两套目标动力总成取得实测图谱、OEM 数据与不确定度预算。 + +[冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.de.md b/docs/EQUILIBRIUM_FUEL_DUCT.de.md new file mode 100644 index 0000000..bc30328 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.de.md @@ -0,0 +1,54 @@ +# Kompressible Kraftstoffkanäle im Gleichgewicht + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · **Deutsch** · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Modell und Stoffdaten + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. + +Eine `compressible_fuel_chamber` kann das Volumen beider gemischter Behälter durch Wellenarbeit ändern. Die mittlere Geschwindigkeit bleibt null, interne Zellen bleiben starr. Stationärer Anschluss-/Gehäuseimpuls leistet keine Arbeit; Kolbendruckarbeit ist ein eigener mechanischer Austausch. [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) + +Die Flüssigkeit hat keine thermische Ausdehnung und eine konstante Wärmekapazität. `K` ist ihr Kompressionsmodul bei Nulldruck; tatsächlich gilt `K+p`. Kalte Kompressionsenergie, chemische Potenziale, Entropie und Gleichgewichtsschallgeschwindigkeit stammen aus demselben Potenzial. `a` ist der bestehende Flüssigkeitsenergieversatz, `p0(T)` die Sättigungskurve bei vernachlässigtem Flüssigkeitsvolumen, `x` der Dampfmassenanteil und `Cv_eq` die Ableitung der inneren Gemischenergie bei festem spezifischem Volumen. `Tr`, `Pref` und `Lu_ref` sind Referenztemperatur, Referenzdruck und latente innere Energie. Es gelten SI-Einheiten. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Transport und Randbedingungen + +`liquid_bulk_modulus` angeben, `compliance` weglassen und `initial_velocity` für jeden Knoten explizit setzen. 1–24 geordnete, unterschiedliche interne `cells` gehören jeweils genau einem Kanal. Die Zelllänge ist Volumen geteilt durch `area`. Behälter ruhen und dürfen keine internen Zellen sein. Alle Anschlüsse verwenden dasselbe Material. `linear_resistance` und `quadratic_resistance` beschreiben den gesamten Leitungswiderstand, verteilt nach Zellvolumen; `fluid_heat_fraction` verteilt Reibungswärme auf Fluid und Wand. Es gibt keinen direkten Öffnungseingang. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +Der konservative Rusanov-Fluss aktualisiert alle Flächen aus demselben Teilschrittzustand. Die Geschwindigkeitsgrenze addiert maximale Absolutgeschwindigkeit und akustische Stoffgrenze. Die CFL-Grenze beträgt 0.2 mal minimales Anschlussvolumen geteilt durch Fläche und Geschwindigkeit; höchstens 4096 Teilschritte je Intervall. Transport und lokal exakter Reibungsabfall werden in erster Ordnung aufgeteilt. Numerische Diffusion trägt zur gesamten Entropieänderung bei, getrennt von ausgewiesener Reibungswärme. Ruhende Grenzen absorbieren Behälterimpuls ohne mechanische Arbeit; einströmende kinetische Energie wird im endlichen Bestand thermalisiert. Ungültige Zustände oder Entropieabnahme über Rundung hinaus verwerfen den ganzen Stapel. Zeitschritt verkleinern und Stoffgrenzen sowie Zellauflösung prüfen. + +## Nutzung und Nachweise + +`equilibrium-fuel-condensing-duct` oder `equilibrium-fuel-flashing-duct` ausführen. Jede Zelle zeigt Dichte, Geschwindigkeit, Phasenanteil, Schallgeschwindigkeit, Temperatur und Energie. Anschlussmasse/-energie, Wandimpuls und vollständige Bestände sind beobachtbar. Unabhängige Prüfungen umfassen Kompressionsarbeit, idealen Dampf, gleiche chemische Potenziale, Clapeyron- und Gibbs-Beziehungen, Schallgeschwindigkeit durch Entropieinversion, Masse-Energie-Inversion, Erhaltung und Reibung an endlicher Wand. Akustische Zellmittelwertfehler sinken bei 8, 16 und 24 Zellen. Exakte Wiedergabe, Rücknahme, Abbruch, Zweige, allokationsfreie Schritte, portable Assets und tatsächliches MCP werden gesondert geprüft; Einzelheiten stehen in den Validierungsnachweisen. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Gültigkeit und nächste Schritte + +Parameter bleiben `unverified`. Temperatur- und Druckgrenzen, positive latente Enthalpie, getrennte Koexistenzvolumina und verdünnter Dampf sind einzuhalten. Der Kanal ist starr, horizontal und querschnittskonstant mit sofortigem homogenem Gleichgewicht. Endliche Keimbildungsrate, Phasenschlupf, Oberflächenspannung, Schwerkraft, Rohrelastizität und reales kritisches Verhalten fehlen. Diffusion erster Ordnung kann Fronten verschmieren; Erhaltung und Wiedergabe belegen weder räumliche Genauigkeit noch gemessene Hardwaregültigkeit. Tatsächliche Unity-Abnahme steht aus. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.es.md b/docs/EQUILIBRIUM_FUEL_DUCT.es.md new file mode 100644 index 0000000..81741bb --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.es.md @@ -0,0 +1,54 @@ +# Conductos de combustible compresible en equilibrio + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · **Español** · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Modelo y material + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. + +Una `compressible_fuel_chamber` puede cambiar por trabajo del eje el volumen de cualquiera de los depósitos mezclados. La velocidad global permanece en cero y las celdas internas siguen rígidas. El impulso estacionario de puertos/carcasa no realiza trabajo; el trabajo del pistón es un intercambio mecánico separado. [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) + +El líquido tiene expansión térmica nula y calor específico constante. `K` es su módulo volumétrico a presión cero; el valor real es `K+p`. Energía de compresión fría, potenciales químicos, entropía y velocidad del sonido en equilibrio proceden del mismo potencial. `a` es el desplazamiento energético líquido existente, `p0(T)` la curva de saturación que desprecia el volumen líquido, `x` la fracción másica de vapor y `Cv_eq` la derivada de energía interna de la mezcla a volumen específico fijo. `Tr`, `Pref` y `Lu_ref` son temperatura, presión y energía interna latente de referencia. Se usan unidades SI. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Transporte y fronteras + +Declare `liquid_bulk_modulus`, omita `compliance` y especifique `initial_velocity` en cada nodo. Declare 1–24 `cells` internas distintas y ordenadas; cada una pertenece a un conducto. Su longitud es volumen dividido por `area`. Los depósitos tienen velocidad cero y no pueden ser celdas internas. Todos los puertos comparten material. `linear_resistance` y `quadratic_resistance` representan la resistencia total, distribuida por volumen; `fluid_heat_fraction` reparte calor de fricción entre fluido y pared. No hay entrada directa de apertura. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +El flujo conservativo de Rusanov avanza todas las caras desde el mismo estado de subpaso. La cota de velocidad suma la máxima velocidad absoluta y la cota acústica del material. El límite CFL es 0.2 veces el volumen mínimo de puerto dividido por área y velocidad; cada intervalo admite hasta 4096 subpasos. Transporte y decaimiento local exacto por resistencia se separan a primer orden. La difusión numérica contribuye al cambio total de entropía, aparte del calor de fricción informado. Las fronteras estacionarias absorben impulso sin trabajo mecánico; la energía cinética entrante se termaliza en el inventario finito. Estados inválidos o una disminución de entropía superior al redondeo rechazan todo el lote. Reduzca el paso y revise límites materiales y resolución. + +## Uso y evidencia + +Ejecute `equilibrium-fuel-condensing-duct` o `equilibrium-fuel-flashing-duct`. Cada celda expone densidad, velocidad, fracción de fase, velocidad del sonido, temperatura y energía. Masa/energía en puertos, impulso de pared e inventarios completos son observables. Las pruebas independientes cubren trabajo de compresión, límite de vapor ideal, igualdad de potenciales químicos, relaciones de Clapeyron y Gibbs, sonido por inversión de entropía, inversión masa-energía, conservación y fricción con pared finita. Los errores acústicos medios de celda disminuyen con 8, 16 y 24 celdas. Reproducción exacta, reversión, cancelación, ramas, pasos sin asignaciones, assets portables y MCP real se verifican por separado; los resultados detallados están en la evidencia de validación. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Validez y próximos pasos + +Los parámetros siguen `unverified`. Respete los rangos declarados de temperatura y presión, entalpía latente positiva, volúmenes de coexistencia separados y vapor diluido. Es un conducto horizontal rígido de sección constante y equilibrio homogéneo instantáneo. Omite nucleación a velocidad finita, deslizamiento, tensión superficial, gravedad, elasticidad y comportamiento crítico real. La difusión de primer orden puede ensanchar frentes; conservación y reproducción no demuestran precisión espacial ni validez de hardware medido. La aceptación real de Unity está pendiente. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.fr.md b/docs/EQUILIBRIUM_FUEL_DUCT.fr.md new file mode 100644 index 0000000..fac6c42 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.fr.md @@ -0,0 +1,54 @@ +# Conduites de carburant compressible à l’équilibre + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · **Français** · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Modèle et matériau + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. + +Un `compressible_fuel_chamber` peut modifier le volume de chaque réservoir mélangé par travail d’arbre. Sa vitesse globale reste nulle et les cellules internes restent rigides. L’impulsion stationnaire des ports et du carter ne travaille pas ; le travail du piston est un échange mécanique distinct. [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) + +Le liquide possède une dilatation thermique nulle et une capacité thermique constante. `K` est son module volumique à pression nulle ; le module réel vaut `K+p`. Énergie de compression froide, potentiels chimiques, entropie et vitesse du son à l’équilibre dérivent du même potentiel. `a` est le décalage énergétique liquide existant, `p0(T)` la courbe de saturation négligeant le volume liquide, `x` la fraction massique de vapeur et `Cv_eq` la dérivée de l’énergie interne du mélange à volume spécifique constant. `Tr`, `Pref` et `Lu_ref` sont la température, la pression et l’énergie interne latente de référence. Les unités sont SI. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Transport et frontières + +Déclarer `liquid_bulk_modulus`, omettre `compliance` et fournir explicitement `initial_velocity` sur chaque nœud. Déclarer 1–24 `cells` internes ordonnées et distinctes, chacune appartenant à une seule conduite. La longueur est le volume divisé par `area`. Les réservoirs ont une vitesse nulle et ne peuvent être des cellules internes. Tous les ports partagent le matériau. `linear_resistance` et `quadratic_resistance` décrivent la résistance totale, répartie par volume ; `fluid_heat_fraction` répartit la chaleur de frottement entre fluide et paroi. Aucune entrée directe d’ouverture. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +Le flux conservatif de Rusanov avance toutes les faces depuis le même état de sous-pas. Sa borne de vitesse combine la plus grande vitesse absolue et la borne acoustique du matériau. La limite CFL vaut 0.2 fois le volume minimal des ports divisé par section et vitesse ; chaque intervalle autorise au plus 4096 sous-pas. Transport et décroissance locale exacte par frottement sont séparés au premier ordre. La diffusion numérique contribue à la variation totale d’entropie, distincte de la chaleur de frottement rapportée. Les frontières stationnaires absorbent la quantité de mouvement sans travail mécanique ; l’énergie cinétique entrante se thermalise dans les réservoirs finis. Un état invalide ou une baisse d’entropie dépassant l’arrondi rejette tout le lot. Réduire le pas et examiner les limites du matériau et la résolution. + +## Utilisation et preuves + +Exécuter `equilibrium-fuel-condensing-duct` ou `equilibrium-fuel-flashing-duct`. Chaque cellule expose densité, vitesse, fraction de phase, vitesse du son, température et énergie. Masse et énergie aux ports, impulsion de paroi et inventaires complets sont observables. Les vérifications indépendantes couvrent travail de compression, limite de vapeur idéale, égalité des potentiels chimiques, relations de Clapeyron et Gibbs, vitesse acoustique par inversion d’entropie, inversion masse-énergie, conservation et frottement avec paroi finie. Les erreurs acoustiques moyennes diminuent sur 8, 16 et 24 cellules. Relecture exacte, annulation, restauration, branches, pas sans allocation, assets portables et MCP réel sont vérifiés séparément ; les résultats détaillés figurent dans les preuves de validation. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Validité et suite + +Les paramètres restent `unverified`. Respecter les bornes de température et pression, une enthalpie latente positive, des volumes de coexistence séparés et une vapeur diluée. La conduite est horizontale, rigide, de section constante et à équilibre homogène instantané. Nucléation à vitesse finie, glissement, tension superficielle, gravité, élasticité et comportement critique réel sont omis. La diffusion du premier ordre peut étaler les fronts ; conservation et relecture ne prouvent ni précision spatiale ni validité matérielle mesurée. L’acceptation Unity réelle reste à réaliser. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.it.md b/docs/EQUILIBRIUM_FUEL_DUCT.it.md new file mode 100644 index 0000000..488f586 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.it.md @@ -0,0 +1,54 @@ +# Condotti di combustibile comprimibile in equilibrio + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · **Italiano** · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Modello e materiale + +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. + +Una `compressible_fuel_chamber` può cambiare il volume di entrambi i serbatoi miscelati tramite lavoro d’albero. La velocità media resta nulla e le celle interne rigide. L’impulso stazionario di porte/carter non compie lavoro; il lavoro del pistone è uno scambio meccanico separato. [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) + +Il liquido ha dilatazione termica nulla e calore specifico costante. `K` è il modulo volumetrico a pressione zero; il valore effettivo è `K+p`. Energia di compressione fredda, potenziali chimici, entropia e velocità del suono all’equilibrio derivano dallo stesso potenziale. `a` è lo scostamento energetico liquido esistente, `p0(T)` la curva di saturazione che trascura il volume liquido, `x` la frazione massica di vapore e `Cv_eq` la derivata dell’energia interna della miscela a volume specifico costante. `Tr`, `Pref` e `Lu_ref` sono temperatura, pressione ed energia interna latente di riferimento. Si usano unità SI. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Trasporto e confini + +Dichiarare `liquid_bulk_modulus`, omettere `compliance` e fornire esplicitamente `initial_velocity` per ogni nodo. Dichiarare 1–24 `cells` interne ordinate e distinte, ciascuna appartenente a un solo condotto. La lunghezza è il volume diviso per `area`. I serbatoi hanno velocità nulla e non possono essere celle interne. Tutte le porte condividono il materiale. `linear_resistance` e `quadratic_resistance` descrivono la resistenza totale, distribuita per volume; `fluid_heat_fraction` ripartisce il calore d’attrito tra fluido e parete. Non esiste un ingresso diretto di apertura. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +Il flusso conservativo di Rusanov aggiorna tutte le facce dallo stesso stato di sottopasso. Il limite di velocità somma la massima velocità assoluta e il limite acustico del materiale. Il vincolo CFL è 0.2 volte il volume minimo delle porte diviso per area e velocità; ogni intervallo ammette al massimo 4096 sottopassi. Trasporto e decadimento locale esatto per attrito sono separati al primo ordine. La diffusione numerica contribuisce alla variazione totale di entropia, distinta dal calore d’attrito riportato. I confini fermi assorbono quantità di moto senza lavoro meccanico; l’energia cinetica entrante si termalizza nell’inventario finito. Stati invalidi o diminuzione d’entropia oltre l’arrotondamento rifiutano l’intero lotto. Ridurre il passo e controllare limiti del materiale e risoluzione. + +## Uso e verifiche + +Eseguire `equilibrium-fuel-condensing-duct` o `equilibrium-fuel-flashing-duct`. Ogni cella espone densità, velocità, frazione di fase, velocità del suono, temperatura ed energia. Sono osservabili massa/energia alle porte, impulso della parete e inventari completi. Le verifiche indipendenti coprono lavoro di compressione, limite del vapore ideale, uguaglianza dei potenziali chimici, relazioni di Clapeyron e Gibbs, suono tramite inversione dell’entropia, inversione massa-energia, conservazione e attrito con parete finita. Gli errori acustici medi di cella diminuiscono con 8, 16 e 24 celle. Riproduzione esatta, rollback, annullamento, rami, passi senza allocazioni, asset portabili e MCP reale sono verificati separatamente; i risultati dettagliati sono nelle prove di validazione. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Validità e prossimi passi + +I parametri restano `unverified`. Rispettare gli intervalli dichiarati di temperatura e pressione, entalpia latente positiva, volumi di coesistenza separati e vapore diluito. Il condotto è rigido, orizzontale, a sezione costante e con equilibrio omogeneo istantaneo. Esclude nucleazione a velocità finita, scorrimento tra fasi, tensione superficiale, gravità, elasticità e comportamento critico reale. La diffusione di primo ordine può allargare i fronti; conservazione e riproduzione non dimostrano accuratezza spaziale o validità hardware misurata. L’accettazione Unity effettiva è ancora aperta. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.ja.md b/docs/EQUILIBRIUM_FUEL_DUCT.ja.md new file mode 100644 index 0000000..d049e74 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.ja.md @@ -0,0 +1,54 @@ +# 圧縮性平衡燃料ダクト + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · **日本語** · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## モデルと物性 + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 + +`compressible_fuel_chamber` は軸仕事でどちらの混合貯槽の容積も変更できます。バルク速度はゼロ、内部セルは剛体のままです。静止ポート/筐体への力積は仕事をせず、ピストン圧力仕事は別の機械交換です。 [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) + +液体は熱膨張ゼロ、比熱一定です。`K` は圧力ゼロでの体積弾性率で、実際の値は `K+p` です。冷圧縮エネルギー、化学ポテンシャル、エントロピー、平衡音速は同じポテンシャルから導きます。`a` は既存の液相エネルギーオフセット、`p0(T)` は液体体積を無視した飽和曲線、`x` は蒸気質量分率、`Cv_eq` は比体積一定での混合物内部エネルギーの温度微分です。`Tr`、`Pref`、`Lu_ref` は基準温度、圧力、潜内部エネルギーです。単位は SI です。 + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## 輸送と境界 + +`liquid_bulk_modulus` を指定し、`compliance` を省略して、各ノードの `initial_velocity` を明示します。順序付きで重複しない内部 `cells` を 1–24 個指定し、各セルは一つのダクトに所属します。セル長は体積を `area` で割った値です。貯槽の速度はゼロで、内部セルを兼用できません。全ポートで同じ物性を使用します。`linear_resistance` と `quadratic_resistance` は管全体の抵抗を表し、セル体積に応じて配分します。`fluid_heat_fraction` は摩擦熱を流体と壁に配分します。直接の開度入力はありません。 + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +保存形 Rusanov フラックスは同じサブステップ状態から全界面を更新します。速度上限は最大絶対速度と物性の音速上限の和です。CFL 制限は最小ポート体積の 0.2 倍を断面積と速度で割った値で、区間当たり最大 4096 サブステップです。輸送と局所的な厳密抵抗減衰は一次分割です。数値拡散は全エントロピー変化に含まれ、報告する摩擦熱とは区別します。静止境界が機械仕事ゼロで貯槽の運動量を受け、流入運動エネルギーは有限貯槽内で内部エネルギーになります。不正状態または丸め誤差を超えるエントロピー減少はバッチ全体を拒否します。刻みを小さくし、物性範囲とセル解像度を確認してください。 + +## 利用と検証 + +`equilibrium-fuel-condensing-duct` または `equilibrium-fuel-flashing-duct` を実行します。各セルの密度、速度、相分率、音速、温度、エネルギーを取得できます。ポートの質量・エネルギー、壁への力積、全在庫も観測可能です。独立検証は液体圧縮仕事、理想蒸気極限、化学ポテンシャル一致、Clapeyron と Gibbs の関係、エントロピー反転による音速、質量エネルギー反転、保存、有限壁の摩擦を扱います。セル平均の音響誤差は 8、16、24 セルで減少します。完全再生、ロールバック、取消、分岐、割り当てなしのステップ、可搬 asset、実 MCP は別々に検証し、詳細は検証証拠に記録します。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## 適用範囲と次の作業 + +パラメータは `unverified` のままです。指定温度・圧力範囲、正の潜エンタルピー、分離した共存比体積、希薄蒸気の条件を守ってください。剛体・等断面・水平管で瞬時均質平衡を仮定します。有限速度の核生成、相間滑り、表面張力、重力、管弾性、実流体の臨界挙動は含みません。一次数値拡散は相変化と音響の前線をぼかします。保存と再生だけでは空間精度や実測機器への妥当性を証明できません。実 Unity の受入検証は未完了です。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.ko.md b/docs/EQUILIBRIUM_FUEL_DUCT.ko.md new file mode 100644 index 0000000..f6f62b0 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.ko.md @@ -0,0 +1,54 @@ +# 압축성 평형 연료 덕트 + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · **한국어** · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## 모델과 물성 + +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. + +`compressible_fuel_chamber`는 축 일로 양쪽 혼합 저장조의 체적을 바꿀 수 있습니다. 벌크 속도는 0이고 내부 셀은 강체로 유지됩니다. 정지 포트/하우징 충격량은 일을 하지 않으며 피스톤 압력 일은 별도 기계 교환입니다. [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) + +액체의 열팽창은 0이고 비열은 일정합니다. `K`는 압력 0에서의 체적탄성률이며 실제 값은 `K+p`입니다. 냉압축 에너지, 화학 퍼텐셜, 엔트로피, 평형 음속은 동일한 퍼텐셜에서 도출합니다. `a`는 기존 액체 에너지 오프셋, `p0(T)`는 액체 체적을 무시한 포화 곡선, `x`는 증기 질량분율, `Cv_eq`는 비체적이 일정할 때 혼합물 내부에너지의 온도 미분입니다. `Tr`, `Pref`, `Lu_ref`는 기준 온도, 압력, 잠재 내부에너지입니다. SI 단위를 사용합니다. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## 수송과 경계 + +`liquid_bulk_modulus`를 선언하고 `compliance`는 생략하며 각 노드의 `initial_velocity`를 명시합니다. 순서가 있고 중복되지 않는 내부 `cells`를 1–24개 선언하며 각 셀은 덕트 하나에 속합니다. 셀 길이는 체적을 `area`로 나눈 값입니다. 저장조 속도는 0이고 내부 셀을 겸할 수 없습니다. 모든 포트는 동일한 물성을 사용합니다. `linear_resistance`와 `quadratic_resistance`는 전체 관의 저항이며 셀 체적에 따라 배분합니다. `fluid_heat_fraction`은 마찰열을 유체와 벽에 배분합니다. 직접 개도 입력은 없습니다. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +보존형 Rusanov 플럭스는 동일한 하위 스텝 상태에서 모든 면을 갱신합니다. 속도 상한은 최대 절대속도와 물성 음속 상한의 합입니다. CFL 한계는 최소 포트 체적의 0.2배를 면적과 속도로 나눈 값이며 구간당 최대 4096 하위 스텝입니다. 수송과 국소 정확 저항 감쇠는 1차 분할을 사용합니다. 수치 확산은 총 엔트로피 변화에 포함하며 보고된 마찰열과 구분합니다. 정지 경계는 기계적 일 없이 저장조 운동량을 흡수하고 유입 운동에너지는 유한 저장조의 내부에너지로 바뀝니다. 잘못된 상태나 반올림 오차를 넘는 엔트로피 감소는 전체 배치를 거부합니다. 시간 간격을 줄이고 물성 범위와 셀 해상도를 확인하십시오. + +## 사용과 검증 + +`equilibrium-fuel-condensing-duct` 또는 `equilibrium-fuel-flashing-duct`를 실행합니다. 각 셀은 밀도, 속도, 상분율, 음속, 온도, 에너지를 제공합니다. 포트 질량과 에너지, 벽 충격량, 전체 재고도 관측합니다. 독립 검사는 액체 압축 일, 이상증기 극한, 화학 퍼텐셜 일치, Clapeyron 및 Gibbs 관계, 엔트로피 역산 음속, 질량에너지 역산, 보존, 유한 벽 마찰을 다룹니다. 셀 평균 음향 오차는 8, 16, 24개 셀에서 감소합니다. 정확한 재생, 롤백, 취소, 분기, 할당 없는 스텝, 이식 가능한 asset, 실제 MCP는 따로 검증하며 자세한 결과는 검증 증거에 기록합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 적용 범위와 다음 작업 + +매개변수는 `unverified` 상태입니다. 선언된 온도와 압력 범위, 양의 잠재 엔탈피, 분리된 공존 비체적, 희박 증기 조건을 지켜야 합니다. 순간 균질 평형을 가정한 강체 등단면 수평 덕트입니다. 유한 속도 핵생성, 상간 미끄럼, 표면장력, 중력, 관 탄성, 실제 유체 임계 거동은 제외합니다. 1차 수치 확산은 상변화와 음향 전면을 흐리게 할 수 있습니다. 보존과 재생은 공간 정확도나 실측 하드웨어 타당성을 입증하지 않습니다. 실제 Unity 인수 검증은 남아 있습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.md b/docs/EQUILIBRIUM_FUEL_DUCT.md new file mode 100644 index 0000000..d634439 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.md @@ -0,0 +1,54 @@ +# Compressible equilibrium fuel ducts + +**English** · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Model and material + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. + +A `compressible_fuel_chamber` may change either mixed reservoir volume through shaft work. Its bulk velocity stays zero and internal duct cells stay rigid. Stationary port/housing impulse performs no work; piston pressure work is a separate mechanical exchange. [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) + +The liquid has zero thermal expansion and constant heat capacity. `K` is its bulk modulus at zero pressure; the actual modulus is `K+p`. The cold compression energy, chemical potentials, entropy and equilibrium sound speed come from the same potential. `a` is the existing liquid energy offset, `p0(T)` the negligible-liquid-volume saturation curve, `x` vapor mass fraction and `Cv_eq` the derivative of mixture internal energy at fixed specific volume. `Tr`, `Pref` and `Lu_ref` are the material reference temperature, pressure and latent internal energy. All quantities use SI units. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Transport and boundaries + +Declare `liquid_bulk_modulus`, omit `compliance`, and explicitly supply `initial_velocity` on each node. Declare 1–24 ordered, distinct internal `cells`; each belongs to one duct. Cell length is volume divided by `area`. Reservoirs have zero velocity and cannot also be internal cells. All ports share the same material. `linear_resistance` and `quadratic_resistance` describe total line resistance and are distributed by cell volume; `fluid_heat_fraction` routes friction heat between fluid and wall. There is no direct opening input. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +The conservative Rusanov flux advances all faces from the same substep state. Its speed bound uses the largest absolute velocity plus the material acoustic bound. The CFL limit is 0.2 times minimum port volume divided by area and speed; each interval permits at most 4096 substeps. Transport and local exact drag decay are split at first order. Numerical diffusion contributes to total entropy change, separately from reported friction heat. Reservoir momentum is absorbed by stationary boundaries with zero mechanical work; incoming kinetic energy thermalizes in their finite inventory. Invalid states or an entropy decrease beyond roundoff reject the complete batch. Reduce the tick and inspect material bounds and cell resolution after rejection. + +## Use and evidence + +Run `equilibrium-fuel-condensing-duct` or `equilibrium-fuel-flashing-duct`. Every cell exposes density, velocity, phase fraction, sound speed, temperature and energy. Port mass/energy, wall impulse and full inventories are observable. Independent checks cover liquid compression work, ideal-vapor limits, chemical-potential equality, Clapeyron and Gibbs relations, entropy-inverted sound speed, mass-energy inversion, conservation and finite-wall friction. Cell-average acoustic errors decrease on 8, 16 and 24 cells. Exact replay, rollback, cancellation, branches, allocation-free stepping, portable assets and actual MCP are checked separately; detailed results are in validation evidence. + +[VALIDATION.md](VALIDATION.md) + +## Validity and next work + +Parameters remain `unverified`. Stay inside the declared temperature and pressure range, with positive latent enthalpy, separated coexistence volumes and dilute vapor. This is a rigid constant-area horizontal duct with instantaneous homogeneous equilibrium. It omits finite-rate nucleation, phase slip, surface tension, gravity, pipe elasticity and real-fluid critical behavior. First-order numerical diffusion can smear phase and acoustic fronts; conservation and replay do not establish spatial accuracy or measured hardware validity. Actual Unity acceptance remains pending. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.pt-BR.md b/docs/EQUILIBRIUM_FUEL_DUCT.pt-BR.md new file mode 100644 index 0000000..bf7796d --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.pt-BR.md @@ -0,0 +1,54 @@ +# Dutos de combustível compressível em equilíbrio + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · **Português** + +## Modelo e material + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. + +Uma `compressible_fuel_chamber` pode mudar pelo trabalho do eixo o volume de qualquer reservatório misturado. A velocidade média permanece zero e as células internas rígidas. O impulso estacionário das portas/carcaça não realiza trabalho; o trabalho do pistão é uma troca mecânica separada. [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) + +O líquido tem expansão térmica nula e calor específico constante. `K` é o módulo volumétrico na pressão zero; o valor real é `K+p`. Energia de compressão fria, potenciais químicos, entropia e velocidade do som em equilíbrio derivam do mesmo potencial. `a` é o deslocamento energético líquido existente, `p0(T)` a curva de saturação que despreza o volume líquido, `x` a fração mássica de vapor e `Cv_eq` a derivada da energia interna da mistura a volume específico fixo. `Tr`, `Pref` e `Lu_ref` são temperatura, pressão e energia interna latente de referência. Usam-se unidades SI. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Transporte e fronteiras + +Declare `liquid_bulk_modulus`, omita `compliance` e forneça `initial_velocity` explicitamente em cada nó. Declare 1–24 `cells` internas ordenadas e distintas, cada uma pertencente a um duto. O comprimento é o volume dividido por `area`. Reservatórios têm velocidade zero e não podem ser células internas. Todas as portas compartilham material. `linear_resistance` e `quadratic_resistance` representam a resistência total, distribuída por volume; `fluid_heat_fraction` divide o calor de atrito entre fluido e parede. Não existe entrada direta de abertura. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +O fluxo conservativo de Rusanov avança todas as faces a partir do mesmo estado de subpasso. O limite de velocidade soma a maior velocidade absoluta e o limite acústico do material. O limite CFL é 0.2 vezes o menor volume de porta dividido por área e velocidade; cada intervalo permite até 4096 subpassos. Transporte e decaimento local exato por arrasto são separados em primeira ordem. A difusão numérica contribui para a variação total de entropia, distinta do calor de atrito informado. Fronteiras estacionárias absorvem impulso sem trabalho mecânico; a energia cinética que entra se termaliza no inventário finito. Estados inválidos ou queda de entropia além do arredondamento rejeitam todo o lote. Reduza o passo e examine limites do material e resolução. + +## Uso e evidências + +Execute `equilibrium-fuel-condensing-duct` ou `equilibrium-fuel-flashing-duct`. Cada célula expõe densidade, velocidade, fração de fase, velocidade do som, temperatura e energia. Massa/energia nas portas, impulso da parede e inventários completos são observáveis. Verificações independentes abrangem trabalho de compressão, limite do vapor ideal, igualdade dos potenciais químicos, relações de Clapeyron e Gibbs, som por inversão da entropia, inversão massa-energia, conservação e atrito com parede finita. Os erros acústicos médios de célula diminuem com 8, 16 e 24 células. Reprodução exata, reversão, cancelamento, ramificações, passos sem alocação, assets portáveis e MCP real são verificados separadamente; detalhes constam nas evidências de validação. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Validade e próximos passos + +Os parâmetros continuam `unverified`. Respeite as faixas declaradas de temperatura e pressão, entalpia latente positiva, volumes de coexistência separados e vapor diluído. O duto é rígido, horizontal, de seção constante e equilíbrio homogêneo instantâneo. Não inclui nucleação com taxa finita, deslizamento, tensão superficial, gravidade, elasticidade ou comportamento crítico real. A difusão de primeira ordem pode alargar frentes; conservação e reprodução não demonstram precisão espacial nem validade de hardware medido. A aceitação real no Unity permanece pendente. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.ru.md b/docs/EQUILIBRIUM_FUEL_DUCT.ru.md new file mode 100644 index 0000000..fff0c83 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.ru.md @@ -0,0 +1,54 @@ +# Сжимаемые равновесные топливные каналы + +[English](EQUILIBRIUM_FUEL_DUCT.md) · [简体中文](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · **Русский** · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Модель и материал + +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. + +`compressible_fuel_chamber` может изменять объём любого перемешанного резервуара работой вала. Средняя скорость остаётся нулевой, внутренние ячейки жёсткими. Стационарный импульс портов/корпуса не совершает работы; работа поршня является отдельным механическим обменом. [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) + +У жидкости нулевое тепловое расширение и постоянная теплоёмкость. `K` — модуль объёмной упругости при нулевом давлении; фактический модуль равен `K+p`. Энергия холодного сжатия, химические потенциалы, энтропия и равновесная скорость звука получаются из одного потенциала. `a` — существующее смещение энергии жидкости, `p0(T)` — кривая насыщения без учёта объёма жидкости, `x` — массовая доля пара, `Cv_eq` — производная внутренней энергии смеси при постоянном удельном объёме. `Tr`, `Pref` и `Lu_ref` — опорные температура, давление и скрытая внутренняя энергия. Используется СИ. + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## Перенос и границы + +Задайте `liquid_bulk_modulus`, исключите `compliance` и явно задайте `initial_velocity` каждого узла. Укажите 1–24 упорядоченных различных внутренних `cells`, каждая принадлежит одному каналу. Длина ячейки равна объёму, делённому на `area`. Скорость резервуаров нулевая; они не могут быть внутренними ячейками. Материал всех портов одинаков. `linear_resistance` и `quadratic_resistance` задают полное сопротивление с распределением по объёму; `fluid_heat_fraction` распределяет тепло трения между средой и стенкой. Прямого входа открытия нет. + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +Консервативный поток Русанова обновляет все грани из одного состояния подшага. Верхняя оценка скорости складывает максимальную абсолютную скорость и акустическую границу материала. Ограничение CFL равно 0.2 минимального объёма портов, делённого на площадь и скорость; допускается до 4096 подшагов на интервал. Перенос и точное локальное затухание от сопротивления расщеплены с первым порядком. Численная диффузия входит в изменение полной энтропии отдельно от тепла трения. Неподвижные границы поглощают импульс без механической работы; входящая кинетическая энергия переходит во внутреннюю энергию конечного резервуара. Недопустимое состояние или уменьшение энтропии сверх округления отклоняет весь пакет. Уменьшите шаг и проверьте границы материала и разрешение сетки. + +## Применение и проверка + +Запустите `equilibrium-fuel-condensing-duct` или `equilibrium-fuel-flashing-duct`. Каждая ячейка выдаёт плотность, скорость, долю фазы, скорость звука, температуру и энергию. Наблюдаемы масса и энергия портов, импульс стенки и полные запасы. Независимые проверки охватывают работу сжатия, предел идеального пара, равенство химических потенциалов, соотношения Клапейрона и Гиббса, звук через обращение энтропии, обращение массы и энергии, сохранение и трение с конечной стенкой. Ошибки средних акустических значений уменьшаются на 8, 16 и 24 ячейках. Точное воспроизведение, откат, отмена, ветви, шаги без выделений, переносимые assets и реальный MCP проверяются отдельно; подробности находятся в доказательствах валидации. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Область применимости и дальнейшая работа + +Параметры остаются `unverified`. Соблюдайте пределы температуры и давления, положительную скрытую энтальпию, раздельные объёмы сосуществования и разреженный пар. Это жёсткий горизонтальный канал постоянного сечения с мгновенным однородным равновесием. Не учитываются конечная скорость зародышеобразования, скольжение фаз, поверхностное натяжение, тяжесть, упругость стенки и реальная критическая область. Диффузия первого порядка размывает фронты; сохранение и воспроизведение не доказывают пространственную точность или соответствие измеренному оборудованию. Проверка в Unity ещё требуется. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_DUCT.zh-CN.md b/docs/EQUILIBRIUM_FUEL_DUCT.zh-CN.md new file mode 100644 index 0000000..93d1d1b --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_DUCT.zh-CN.md @@ -0,0 +1,54 @@ +# 可压缩平衡燃料管路 + +[English](EQUILIBRIUM_FUEL_DUCT.md) · **简体中文** · [Français](EQUILIBRIUM_FUEL_DUCT.fr.md) · [Русский](EQUILIBRIUM_FUEL_DUCT.ru.md) · [日本語](EQUILIBRIUM_FUEL_DUCT.ja.md) · [한국어](EQUILIBRIUM_FUEL_DUCT.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_DUCT.de.md) · [Español](EQUILIBRIUM_FUEL_DUCT.es.md) · [Italiano](EQUILIBRIUM_FUEL_DUCT.it.md) · [Português](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## 模型与材料 + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 + +`compressible_fuel_chamber` 可通过轴功改变任一混合储腔的容积。储腔主体速度保持为零,管路内部单元保持刚性。静止端口/壳体冲量不做功,活塞压力功作为独立机械交换核算。 [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) + +液体采用零热膨胀和恒定比热。`K` 是零压参考体积模量,实际模量为 `K+p`。冷压缩能、化学势、熵和平衡声速来自同一势函数。`a` 为已有液相能量偏置,`p0(T)` 为忽略液体体积的饱和曲线,`x` 为蒸气质量分数,`Cv_eq` 为混合物内能对温度在定比容下的导数。`Tr`、`Pref` 和 `Lu_ref` 分别是材料参考温度、压力和潜内能。所有量使用 SI 单位。 + +```text +p_l = K (rho_l/rho0 - 1); y = p/K +v_l = 1/[rho0 (1+y)] +u_cold = (K/rho0) [ln(1+y) - y/(1+y)] +u_l = cl T + a + u_cold +h_l = cl T + a + (K/rho0) ln(1+y) +s_l = cl ln(T/Tr) +u_v = cv T; v_v = R T/p; h_v = (cv+R) T +s_v = (cv+R) ln(T/Tr) - R ln(p/Pref) + Lu_ref/Tr + R +R T ln[p_sat/p0(T)] = (K/rho0) ln(1+p_sat/K) +v = (1-x) v_l + x v_v; u = (1-x) u_l + x u_v +dp_sat/dT = (h_v-h_l)/[T(v_v-v_l)] +c_eq^2 = v^2 T (dp_sat/dT)^2 / Cv_eq +c_l^2 = K/rho0; c_v^2 = (1+R/cv) R T +``` + +## 输运与边界 + +声明 `liquid_bulk_modulus`,省略 `compliance`,并为每个节点显式给出 `initial_velocity`。声明 1–24 个有序且不重复的内部 `cells`,每个单元只能属于一个管路。单元长度等于体积除以 `area`。储罐速度为零,且不能兼作内部单元。所有端口使用相同材料。`linear_resistance` 和 `quadratic_resistance` 表示整条管路的阻力,按单元体积分配;`fluid_heat_fraction` 在流体与壁面之间分配摩擦热。没有直接开度输入。 + +```text +U = [rho, rho velocity, rho (u + velocity^2/2)] +F = [rho velocity, rho velocity^2+p, (rho (u+velocity^2/2)+p) velocity] +F_Rusanov = (F_left+F_right)/2 - a_max (U_right-U_left)/2 +a_max = max_ports(abs(velocity)) + sqrt(max(K/rho0, (1+R/cv) R Tmax)) +``` + +守恒 Rusanov 通量使用同一子步状态推进所有界面。速度上界取最大速度绝对值加材料声速上界。CFL 限制为 0.2 乘最小端口体积再除以截面积和速度,每个积分区间最多 4096 个子步。输运与局部精确阻力衰减采用一阶分裂。数值扩散计入总熵变,与单独报告的摩擦热区分。静止边界吸收储罐动量,机械功为零;流入动能在有限储罐内转化为内能。无效状态或超过舍入误差的熵减会拒绝整个批次。拒绝后应减小时间步,并检查材料边界与单元分辨率。 + +## 使用与证据 + +运行 `equilibrium-fuel-condensing-duct` 或 `equilibrium-fuel-flashing-duct`。每个单元提供密度、速度、相分数、声速、温度和能量通道,可观测端口质量与能量、壁面冲量及完整库存。独立检查覆盖液体压缩功、理想蒸气极限、化学势相等、Clapeyron 与 Gibbs 关系、通过熵反演得到的声速、质量能量反演、守恒与有限壁面摩擦。声波单元平均误差在 8、16、24 个单元上依次减小。精确回放、回滚、取消、分支、无分配步进、可移植资产与实际 MCP 分别验证;详细结果保存在验证证据中。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 适用范围与后续工作 + +参数仍为 `unverified`。须处于声明的温压范围内,并满足潜焓为正、两相共存比容分离及稀薄蒸气条件。这是采用瞬时均相平衡的刚性等截面水平管路,未包含有限速率成核、相间滑移、表面张力、重力、管壁弹性或真实流体临界行为。一阶数值扩散会抹平相变及声波前沿;守恒与回放不能证明空间精度或实测硬件有效性。实际 Unity 验收仍待完成。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) · [MFEM: Rusanov flux](https://docs.mfem.org/html/classmfem_1_1RusanovFlux.html) · [Modelica: conservation balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.de.md b/docs/EQUILIBRIUM_FUEL_NETWORK.de.md new file mode 100644 index 0000000..1f254f2 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.de.md @@ -0,0 +1,41 @@ +# Transportnetz für Kraftstoff im Gleichgewicht + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · **Deutsch** · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Modellumfang + +Die Domäne `fuel` transportiert reine Flüssigkeit und Dampf gemeinsam in endlichen elastischen Behältern. Jeder Behälter hält Gesamtmasse und kalorische plus elastische Energie unabhängig; der Phasenflash bestimmt Temperatur, Druck und Dampfanteile. `fuel_restriction` tauscht homogenes Spenderfluid aus, `fuel_heat_link` tauscht Wärme mit einem endlichen thermischen Knoten. Chemische Heizwertenergie bleibt separat bilanziert. + +Ein Kraftstoffknoten verwendet `storage` als Referenzvolumen in `m3` oder `l`, `initial` als Temperatur in `k`, `position` als Gesamtmasse in `kg`. Sein `fuel`-Objekt erklärt Stoffdaten, Nachgiebigkeit sowie Druck-/Temperaturgrenzen. Verbundene Behälter teilen Dichte, kalorische und Phasenreferenz, Temperaturgrenzen und Heizwert. Beide Widerstandsports sind endlich; Wärme verbindet Kraftstoff und thermischen Knoten. Öffnung ist ein Anteil in [0,1], optional mit Eingangskanal. + +## Konservativer Fluss + +Der Widerstand nutzt ein quasistatisches dissipatives Referenzvolumengesetz mit explizitem Leitwert K in `m3_s_pa`. Leitungsträgheit, kinetische Speicherung und Phasenschlupf werden vernachlässigt. Spenderdichte wandelt Referenzvolumenstrom in Gesamtmassenstrom um; Spenderenthalpie trägt beide Phasen. Es gibt keine zusätzliche äußere Druckarbeitsquelle und keinen extra Wärmeterm für den Druckabfall. Elastische Arbeit ist bereits im Behälter gespeichert. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Zeitintegration und Entropie + +Ein begrenzter impliziter Euler löst dieselbe angenommene Masse q und Enthalpie H für beide Behälter. Verbindungen laufen nach stabiler Komponenten-ID; endliche Bäder nutzen einen weiteren konservativen Teilschritt. Die Kopplung ist erster Ordnung. Massen-, Temperatur- oder Druckgrenzen und Solverfehler verwerfen den ganzen Batch einschließlich Eingaben, kompensierter Historien und spekulativer Kupplungsintervalle. + +Kompatible Thermodynamik und positiver druckgetriebener Leitwert ergeben nichtnegative kontinuierliche Paarentropieproduktion. Impliziter Euler fügt numerische Entropie hinzu. `entropy_produced` meldet die gesamte angenommene Paaränderung einschließlich Mischung und Zeitdiskretisierung; dies ist kein gemessenes Verlustkennfeld. Unabhängige Entropieprüfungen ergänzen Erhaltung und Verfeinerung. + +## Nutzung und Nachweise + +`equilibrium-fuel-network` oder `electrothermal-fuel-network` per MCP anfordern oder dasselbe JSON per CLI ausführen. Pro Behälter `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` und `specific_enthalpy` lesen. `internal_energy` enthält die elastische Wand; chemische Energie bleibt separat. Verbindungen zeigen vorzeichenbehaftete Flüsse, kumulierte Masse, `transport_energy` und Paarentropieänderung. + +Die Labore prüfen Flüssigkeitsaustrag in Koexistenz, Rückfluss, Öffnungswechsel und endliche Wand-/elektromechanische Wärme. Unabhängige Flüssigkeitsdruckexponentiallösung, gleichzeitige Zweiphasen-Massen-/Enthalpie-/Wärme-ODE, wärmegetriebene Umkehr und spekulativer Kupplungsfang prüfen Genauigkeit und Zusammensetzung. Assets und tatsächliches MCP bewahren jeden Abtastwert und Hash. Asset v41 speichert Stoffdaten und liest v1-v40. Tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +## Verbleibende Arbeit + +Kraftstofftransport komponiert jetzt mit wellengetriebenem `fuel_chamber` und idealem `fuel_check_valve`. Injektor, lokale Trägheit/kritische Strömung und gemessene reale Gemische bleiben gesondert. Parameter bleiben `unverified`. [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.de.md) · [VALIDATION.md](VALIDATION.de.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.es.md b/docs/EQUILIBRIUM_FUEL_NETWORK.es.md new file mode 100644 index 0000000..8bb2f9c --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.es.md @@ -0,0 +1,41 @@ +# Red de transporte de combustible en equilibrio + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · **Español** · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Alcance del modelo + +El dominio `fuel` transporta líquido puro y vapor juntos en recipientes elásticos finitos. Cada recipiente mantiene masa total y energía calórica más elástica independientes; el flash determina temperatura, presión y fracciones de vapor. `fuel_restriction` intercambia fluido donante homogéneo y `fuel_heat_link` intercambia calor con un nodo térmico finito. La energía química del poder calorífico mantiene un balance separado. + +El nodo usa `storage` para volumen de referencia en `m3` o `l`, `initial` para temperatura en `k`, y `position` para masa total en `kg`. El objeto `fuel` declara propiedades, flexibilidad y límites de presión/temperatura. Los recipientes conectados comparten densidad, referencias calórica y de fase, límites térmicos y poder calorífico. Ambos puertos de restricción son finitos; el enlace térmico une combustible y nodo térmico. La apertura es una fracción [0,1] con canal opcional. + +## Flujo conservativo + +La restricción usa una ley disipativa cuasiestática de volumen de referencia con conductancia K explícita en `m3_s_pa`. Omite inercia del enlace, energía cinética almacenada y deslizamiento de fases. La densidad donante convierte flujo volumétrico en masa total; la entalpía donante lleva ambas fases. No hay fuente extra de trabajo de presión ni calor adicional por la caída. El trabajo elástico ya está almacenado en el recipiente. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Integración temporal y entropía + +Euler implícito acotado resuelve las mismas masa q y entalpía H aceptadas en ambos recipientes. Los enlaces avanzan por ID estable; el baño finito usa otro subpaso conservativo. El acoplamiento es de primer orden. Masa, temperatura o presión fuera de límites y fallos rechazan todo el lote, incluidas entradas, historias compensadas e intervalos especulativos del embrague. + +Termodinámica compatible y conductancia positiva impulsada por presión producen entropía continua de pareja no negativa. Euler implícito añade entropía numérica. `entropy_produced` registra el cambio completo aceptado, incluyendo mezcla y discretización; no es un mapa de pérdidas medido. Controles independientes complementan conservación y refinamiento. + +## Uso y evidencia + +Pedir `equilibrium-fuel-network` o `electrothermal-fuel-network` por MCP o ejecutar el mismo JSON con CLI. Leer `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Aquí `internal_energy` incluye pared elástica y la energía química es aparte. Los enlaces exponen flujos con signo, masa acumulada, `transport_energy` y cambio de entropía de pareja. + +Los laboratorios cubren descarga líquida a coexistencia, flujo inverso, cambios de apertura y calor finito/electromecánico. Exponencial independiente de presión líquida, EDO bifásica simultánea de masa/entalpía/calor, inversión térmica y captura especulativa del embrague verifican precisión y composición. Assets y MCP real conservan todos los valores y hashes. Asset v41 guarda propiedades y lee v1-v40. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +## Trabajo restante + +El transporte se combina ahora con `fuel_chamber` por eje y `fuel_check_valve` ideal. Inyector, inercia/flujo crítico y mezclas reales medidas siguen separados. Los parámetros son `unverified`. [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.es.md) · [VALIDATION.md](VALIDATION.es.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.fr.md b/docs/EQUILIBRIUM_FUEL_NETWORK.fr.md new file mode 100644 index 0000000..3c86d38 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.fr.md @@ -0,0 +1,41 @@ +# Réseau de transport de carburant en équilibre + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · **Français** · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Portée du modèle + +Le domaine `fuel` transporte ensemble liquide pur et vapeur dans des récipients élastiques finis. Chaque récipient conserve indépendamment masse totale et énergie calorique plus élastique ; le flash détermine température, pression et fractions de vapeur. `fuel_restriction` échange le fluide donneur homogène et `fuel_heat_link` échange avec un nœud thermique fini. L'énergie chimique du pouvoir calorifique garde son bilan séparé. + +Un nœud carburant utilise `storage` pour le volume de référence en `m3` ou `l`, `initial` pour la température en `k`, et `position` pour la masse totale en `kg`. Son objet `fuel` déclare propriétés, compliance et limites de pression/température. Les récipients connectés partagent densité, références calorique et de phase, limites thermiques et pouvoir calorifique. Les deux ports de restriction sont finis ; le lien thermique joint carburant et nœud thermique. L'ouverture est une fraction dans [0,1], avec canal facultatif. + +## Écoulement conservatif + +La restriction suit une loi dissipative quasi statique de volume de référence avec conductance K explicite en `m3_s_pa`. Elle néglige inertie du lien, énergie cinétique stockée et glissement de phase. La densité donneuse convertit le débit volumique en masse totale ; l'enthalpie donneuse transporte les deux phases. Aucune source extérieure de travail de pression ni chaleur supplémentaire de perte de charge n'est ajoutée. Le travail élastique est déjà stocké dans le récipient. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Intégration temporelle et entropie + +Un Euler implicite borné trouve les mêmes masse q et enthalpie H acceptées pour les deux récipients. Les liens avancent par ID de composant stable ; le bain fini utilise un autre sous-pas conservatif. Le couplage est d'ordre un. Masse, température ou pression hors limites et échecs rejettent tout le lot, entrées, historiques compensés et intervalles spéculatifs d'embrayage compris. + +La thermodynamique compatible et une conductance positive entraînée par la pression donnent une production continue d'entropie de paire non négative. Euler implicite ajoute de l'entropie numérique. `entropy_produced` conserve la variation complète acceptée, mélange et discrétisation compris ; ce n'est pas une carte mesurée de pertes. Des contrôles indépendants complètent conservation et raffinement. + +## Utilisation et preuves + +Demander `equilibrium-fuel-network` ou `electrothermal-fuel-network` par MCP, ou exécuter le même JSON par CLI. Lire `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` et `specific_enthalpy` par récipient. Ici `internal_energy` comprend la paroi élastique ; l'énergie chimique est séparée. Les liens exposent débits signés, masse cumulée, `transport_energy` et variation d'entropie de paire. + +Les laboratoires couvrent décharge liquide vers coexistence, inversion, changements d'ouverture et couplage thermique fini/électromécanique. Une exponentielle indépendante de pression liquide, une EDO simultanée diphasique masse/enthalpie/chaleur, l'inversion par chauffage et la capture spéculative d'embrayage vérifient précision et composition. Assets et MCP réel conservent chaque valeur et hash échantillonnés. L'asset v41 conserve les propriétés et lit v1-v40. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +## Travail restant + +Le transport carburant compose maintenant avec `fuel_chamber` entraîné par arbre et `fuel_check_valve` idéal. Injecteur physique, inertie/blocage sonique et mélanges réels mesurés restent séparés. Les paramètres restent `unverified`. [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.fr.md) · [VALIDATION.md](VALIDATION.fr.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.it.md b/docs/EQUILIBRIUM_FUEL_NETWORK.it.md new file mode 100644 index 0000000..628b141 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.it.md @@ -0,0 +1,41 @@ +# Rete di trasporto del carburante in equilibrio + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · **Italiano** · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Ambito del modello + +Il dominio `fuel` trasporta insieme liquido puro e vapore in recipienti elastici finiti. Ogni recipiente conserva massa totale ed energia calorica più elastica indipendenti; il flash determina temperatura, pressione e frazioni di vapore. `fuel_restriction` scambia fluido donatore omogeneo, `fuel_heat_link` scambia calore con un nodo termico finito. L’energia chimica del potere calorifico resta separata. + +Il nodo usa `storage` per volume di riferimento in `m3` o `l`, `initial` per temperatura in `k`, `position` per massa totale in `kg`. L’oggetto `fuel` dichiara proprietà, cedevolezza e limiti di pressione/temperatura. Recipienti collegati condividono densità, riferimenti calorico e di fase, limiti termici e potere calorifico. Entrambi i porti della restrizione sono finiti; il collegamento termico unisce carburante e nodo termico. Apertura in [0,1] con canale opzionale. + +## Flusso conservativo + +La restrizione usa una legge dissipativa quasi statica del volume di riferimento con conduttanza K esplicita in `m3_s_pa`. Trascura inerzia del collegamento, accumulo cinetico e scorrimento tra fasi. La densità donatrice converte flusso volumetrico in massa totale; l’entalpia donatrice porta entrambe le fasi. Non ci sono lavoro di pressione esterno aggiuntivo né un termine termico separato per il salto di pressione. Il lavoro elastico è già nel recipiente. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Integrazione temporale ed entropia + +Euler implicito limitato risolve le stesse massa q ed entalpia H accettate per entrambi i recipienti. I collegamenti avanzano secondo ID stabili; il bagno finito usa un altro sottopasso conservativo. L’accoppiamento è del primo ordine. Violazioni dei limiti di massa, temperatura e pressione e fallimenti rifiutano l’intero batch con ingressi, storie compensate e intervalli speculativi della frizione. + +Termodinamica compatibile e conduttanza positiva guidata dalla pressione danno produzione continua di entropia della coppia non negativa. Euler implicito aggiunge entropia numerica. `entropy_produced` registra la variazione completa accettata, miscela e discretizzazione incluse; non è una mappa misurata delle perdite. Verifiche indipendenti completano conservazione e raffinamento. + +## Uso ed evidenze + +Richiedere `equilibrium-fuel-network` o `electrothermal-fuel-network` via MCP oppure eseguire lo stesso JSON con CLI. Leggere `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Qui `internal_energy` include la parete elastica e l’energia chimica è separata. I collegamenti mostrano portate con segno, massa cumulativa, `transport_energy` e variazione di entropia della coppia. + +I laboratori coprono scarico liquido in coesistenza, flusso inverso, aperture e calore finito/elettromeccanico. Esponenziale indipendente della pressione liquida, ODE bifase simultanea massa/entalpia/calore, inversione termica e cattura speculativa della frizione verificano accuratezza e composizione. Asset e MCP effettivo mantengono tutti i campioni e gli hash. Asset v41 conserva proprietà e legge v1-v40. Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +## Lavoro rimanente + +Il trasporto compone ora con `fuel_chamber` azionato da albero e `fuel_check_valve` ideale. Iniettore, inerzia/flusso critico e miscele reali misurate restano separati. I parametri sono `unverified`. [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.it.md) · [VALIDATION.md](VALIDATION.it.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.ja.md b/docs/EQUILIBRIUM_FUEL_NETWORK.ja.md new file mode 100644 index 0000000..75ff5de --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.ja.md @@ -0,0 +1,41 @@ +# 相平衡燃料輸送ネットワーク + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · **日本語** · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## モデル範囲 + +`fuel` ドメインは有限弾性容器内で純燃料の液体と蒸気を共に輸送します。各容器は総質量と熱量・弾性の合計エネルギーを独立に保持し、相平衡フラッシュが温度、圧力、蒸気割合を決定します。`fuel_restriction` は均質な供給側流体を交換し、`fuel_heat_link` は有限熱ノードと熱交換します。発熱量に対応する化学エネルギーは別台帳です。 + +燃料ノードの `storage` は `m3` または `l` 単位の基準体積、`initial` は `k` 単位の温度、`position` は `kg` 単位の総質量です。`fuel` オブジェクトに物性、コンプライアンス、圧力・温度限界を明示します。接続容器は密度、熱量・相基準、温度限界、発熱量を共有します。流動抵抗の両端は有限燃料ノードで、熱リンクは燃料と熱ノードを結びます。開度は [0,1] で入力チャネルは任意です。 + +## 保存的な流れ + +抵抗は `m3_s_pa` 単位の明示したコンダクタンス K による準静的散逸基準体積則です。リンク慣性、運動エネルギー蓄積、相間滑りを無視します。供給側密度で基準体積流を総質量流へ変換し、供給側エンタルピーが両相を運びます。追加の外部圧力仕事源や圧力損失の別熱項はありません。弾性仕事は容器内に蓄積済みです。 + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## 時間積分とエントロピー + +有界後退 Euler が両容器に同じ採用質量 q とエンタルピー H を求めます。リンクは安定したコンポーネント ID 順に進み、有限熱浴は別の保存的部分ステップを使います。結合は一次精度です。質量・温度・圧力範囲外や求解失敗は入力、補償履歴、クラッチ試行区間を含むバッチ全体を拒否します。 + +整合した物性と正の圧力駆動コンダクタンスは連続系の対エントロピー生成を非負にします。後退 Euler は数値エントロピーを加えます。`entropy_produced` は混合と時間離散化を含む採用済み対エントロピー変化で、実測損失マップではありません。保存と細分化に加えて独立したエントロピー検証を行います。 + +## 使用と証拠 + +MCP で `equilibrium-fuel-network` または `electrothermal-fuel-network` を要求するか、同じ JSON を CLI で実行します。各容器の `mass`、`internal_energy`、`elastic_energy`、`vapor_mass`、`vapor_mass_fraction`、`vapor_volume_fraction`、`entropy`、`specific_enthalpy` を確認します。`internal_energy` は弾性壁を含み、化学エネルギーは別です。リンクは符号付き流量、累積質量、`transport_energy`、対エントロピー変化を公開します。 + +実験は共存への液体排出、逆流、開度変更、有限壁と機電系の熱結合を扱います。独立した液体圧力指数解、同時二相質量・エンタルピー・熱 ODE、熱駆動逆流、クラッチ試行捕捉で精度と組合せを検証します。資産と実 MCP は全サンプル値とハッシュを保持します。資産 v41 は物性を保持し v1-v40 を読みます。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +## 残る作業 + +燃料輸送は軸駆動 `fuel_chamber` と理想 `fuel_check_valve` に接続できます。物理噴射器、局所慣性・チョーク流、実測混合物は別作業です。パラメーターは `unverified` です。 [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.ja.md) · [VALIDATION.md](VALIDATION.ja.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.ko.md b/docs/EQUILIBRIUM_FUEL_NETWORK.ko.md new file mode 100644 index 0000000..e058f5c --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.ko.md @@ -0,0 +1,41 @@ +# 상평형 연료 수송 네트워크 + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · **한국어** · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## 모델 범위 + +`fuel` 도메인은 유한 탄성 용기에서 순수 연료 액체와 증기를 함께 수송합니다. 각 용기는 총질량과 열량·탄성 총에너지를 독립적으로 유지하며 상평형 플래시가 온도, 압력, 증기 비율을 결정합니다. `fuel_restriction`은 균질 공급 유체를 교환하고 `fuel_heat_link`는 유한 열 노드와 열을 교환합니다. 발열량에 해당하는 화학 에너지는 별도 장부입니다. + +연료 노드의 `storage`는 `m3` 또는 `l` 단위 기준 체적, `initial`은 `k` 단위 온도, `position`은 `kg` 단위 총질량입니다. `fuel` 객체에 물성, 컴플라이언스, 압력/온도 한계를 명시합니다. 연결 용기는 밀도, 열량 및 상 기준, 온도 한계, 발열량을 공유합니다. 저항 양단은 유한 연료 노드이며 열 링크는 연료와 열 노드를 연결합니다. 개도는 [0,1] 비율이고 입력 채널은 선택 사항입니다. + +## 보존적 흐름 + +저항은 `m3_s_pa` 단위의 명시적 전도도 K를 갖는 준정적 소산 기준 체적 법칙입니다. 링크 관성, 운동에너지 저장, 상간 미끄럼을 무시합니다. 공급 측 밀도가 기준 체적 흐름을 총질량 흐름으로 바꾸며 공급 측 엔탈피가 두 상을 운반합니다. 추가 외부 압력 일이나 압력 손실에 대한 별도 열 항은 없습니다. 탄성 일은 이미 용기에 저장됩니다. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## 시간 적분과 엔트로피 + +제한된 후진 Euler가 두 용기에 동일한 승인 질량 q와 엔탈피 H를 구합니다. 링크는 안정된 구성요소 ID 순서로 진행하며 유한 열욕은 별도 보존 부분 단계를 사용합니다. 결합은 1차입니다. 질량·온도·압력 한계 위반이나 해 실패는 입력, 보상 이력, 클러치 시험 구간을 포함한 전체 배치를 거부합니다. + +호환 물성과 양의 압력 구동 전도도는 연속 쌍 엔트로피 생성을 비음수로 만듭니다. 후진 Euler는 수치 엔트로피를 더합니다. `entropy_produced`는 혼합과 시간 이산화를 포함한 승인된 전체 쌍 엔트로피 변화이며 실측 손실 맵이 아닙니다. 보존 및 세분화와 함께 독립 엔트로피 검사를 수행합니다. + +## 사용과 근거 + +MCP에서 `equilibrium-fuel-network` 또는 `electrothermal-fuel-network`를 요청하거나 동일 JSON을 CLI로 실행합니다. 용기별 `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`를 읽습니다. 여기서 `internal_energy`는 탄성 벽을 포함하며 화학 에너지는 별도입니다. 링크는 부호 있는 흐름, 누적 질량, `transport_energy`, 쌍 엔트로피 변화를 공개합니다. + +실험은 공존 상태로 이동하는 액체 배출, 역류, 개도 변경, 유한 벽/전기기계 열 결합을 다룹니다. 독립 액체 압력 지수해, 동시 2상 질량/엔탈피/열 ODE, 열 구동 역류, 클러치 시험 포착으로 정확도와 조합을 검사합니다. 자산과 실제 MCP가 모든 샘플 값과 해시를 유지합니다. 자산 v41는 물성을 저장하고 v1-v40을 읽습니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +## 남은 작업 + +연료 수송은 축 구동 `fuel_chamber` 및 이상 `fuel_check_valve`와 결합합니다. 물리 인젝터, 국소 관성/초킹, 실측 혼합물은 별도 작업입니다. 매개변수는 `unverified`입니다. [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.ko.md) · [VALIDATION.md](VALIDATION.ko.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.md b/docs/EQUILIBRIUM_FUEL_NETWORK.md new file mode 100644 index 0000000..0deb2f5 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.md @@ -0,0 +1,41 @@ +# Equilibrium fuel transport network + +**English** · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Model scope + +The `fuel` domain carries pure liquid and vapor together in finite elastic vessels. Each vessel owns independent total mass and caloric-plus-elastic energy; its phase flash determines temperature, pressure and vapor fractions. `fuel_restriction` exchanges homogeneous donor fluid and `fuel_heat_link` exchanges heat with a finite thermal node. Chemical heating-value energy stays in a separate ledger. + +A fuel node uses `storage` for reference volume in `m3` or `l`, `initial` for temperature in `k`, and `position` for total mass in `kg`. Its `fuel` object declares the material, compliance and pressure/temperature limits explicitly. Connected vessels share density, caloric and phase reference, temperature limits and heating value. Both restriction ports are finite fuel nodes; a heat link joins fuel to a thermal node. Restriction opening is a fraction in [0,1], with an optional input channel. + +## Conservative flow + +The restriction is a quasi-static dissipative reference-volume law with explicit conductance K in `m3_s_pa`. It neglects link inertia, kinetic-energy storage and phase slip. Donor density converts reference volume flow to total fuel mass flow; donor enthalpy carries both phases. There is no extra external pressure-work source and no separate heat term added for the pressure drop. Elastic work is already stored in the vessel energy. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Time integration and entropy + +A bounded backward-Euler solve finds the same accepted mass q and enthalpy H for both vessels. Links advance in stable component-ID order; finite-bath heat uses another conservative substep. The coupled method is first order. Out-of-range mass, temperature or pressure and failed solves reject the complete batch, including inputs, compensated histories and speculative clutch intervals. + +Compatible material thermodynamics and positive pressure-driven conductance give nonnegative continuous pair entropy production. Backward Euler adds numerical entropy. The `entropy_produced` channel records the complete accepted pair entropy change, including mixing and time discretization; it is not a measured loss map. Independent entropy checks accompany conservation and refinement. + +## Use and evidence + +Request `equilibrium-fuel-network` or `electrothermal-fuel-network` through MCP, or run the same JSON through CLI. Read `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy` and `specific_enthalpy` on each vessel. Here `internal_energy` includes the elastic wall; chemical energy is reported separately. Links expose signed mass/volume flow, cumulative transferred mass, `transport_energy` and pair entropy change. + +The laboratories exercise liquid discharge into coexistence, reverse flow, opening changes and finite-wall/electromechanical heat coupling. An independent liquid-pressure exponential, simultaneous two-phase mass/enthalpy/heat ODE, heat-driven reversal and speculative clutch capture check accuracy and composition. Portable assets and actual MCP preserve every sampled value and hash. Asset v41 retains the new material records and reads v1-v40. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +## Remaining work + +Fuel-domain transport now composes with shaft-driven `fuel_chamber` components and ideal `fuel_check_valve` links. Physical injector handoff, local inertia/choking and measured real-mixture behavior remain separate work. Parameters remain `unverified`. [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.md) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.pt-BR.md b/docs/EQUILIBRIUM_FUEL_NETWORK.pt-BR.md new file mode 100644 index 0000000..6b6751b --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.pt-BR.md @@ -0,0 +1,41 @@ +# Rede de transporte de combustível em equilíbrio + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · **Português** + +## Escopo do modelo + +O domínio `fuel` transporta líquido puro e vapor juntos em recipientes elásticos finitos. Cada recipiente mantém massa total e energia calórica mais elástica independentes; o flash determina temperatura, pressão e frações de vapor. `fuel_restriction` troca fluido doador homogêneo e `fuel_heat_link` troca calor com um nó térmico finito. A energia química do poder calorífico mantém um balanço separado. + +O nó usa `storage` para volume de referência em `m3` ou `l`, `initial` para temperatura em `k` e `position` para massa total em `kg`. O objeto `fuel` declara propriedades, complacência e limites de pressão/temperatura. Recipientes conectados compartilham densidade, referências calórica e de fase, limites térmicos e poder calorífico. Ambos os portos da restrição são finitos; o elo térmico une combustível e nó térmico. Abertura em [0,1] com canal opcional. + +## Escoamento conservativo + +A restrição usa uma lei dissipativa quase estática de volume de referência com condutância K explícita em `m3_s_pa`. Despreza inércia do elo, armazenamento cinético e deslizamento entre fases. A densidade doadora converte vazão volumétrica em massa total; a entalpia doadora leva ambas as fases. Não há trabalho externo adicional de pressão nem calor separado para a queda de pressão. O trabalho elástico já está no recipiente. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Integração temporal e entropia + +Euler implícito limitado resolve as mesmas massa q e entalpia H aceitas nos dois recipientes. Elos avançam por ID estável; o banho finito usa outro subpasso conservativo. O acoplamento é de primeira ordem. Massa, temperatura ou pressão fora dos limites e falhas rejeitam todo o lote, incluindo entradas, históricos compensados e intervalos especulativos de embreagem. + +Termodinâmica compatível e condutância positiva movida por pressão dão produção contínua de entropia do par não negativa. Euler implícito acrescenta entropia numérica. `entropy_produced` registra a mudança completa aceita, incluindo mistura e discretização; não é um mapa medido de perdas. Testes independentes complementam conservação e refinamento. + +## Uso e evidências + +Pedir `equilibrium-fuel-network` ou `electrothermal-fuel-network` pelo MCP ou executar o mesmo JSON pela CLI. Ler `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Aqui `internal_energy` inclui parede elástica e a energia química é separada. Os elos mostram vazões com sinal, massa acumulada, `transport_energy` e mudança de entropia do par. + +Os laboratórios cobrem descarga líquida em coexistência, fluxo reverso, abertura e calor finito/eletromecânico. Exponencial independente de pressão líquida, EDO bifásica simultânea massa/entalpia/calor, reversão térmica e captura especulativa da embreagem verificam precisão e composição. Artefatos e MCP real preservam todos os valores e hashes. Asset v41 guarda propriedades e lê v1-v40. Unity Editor/Play/Player/IL2CPP real segue não verificado. + +## Trabalho restante + +O transporte agora compõe com `fuel_chamber` por eixo e `fuel_check_valve` ideal. Injetor, inércia/escoamento crítico e misturas reais medidas seguem separados. Os parâmetros são `unverified`. [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.pt-BR.md) · [VALIDATION.md](VALIDATION.pt-BR.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.ru.md b/docs/EQUILIBRIUM_FUEL_NETWORK.ru.md new file mode 100644 index 0000000..f5da0d4 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.ru.md @@ -0,0 +1,41 @@ +# Сеть переноса равновесного топлива + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · [简体中文](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · **Русский** · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## Область модели + +Домен `fuel` переносит чистую жидкость и пар вместе в конечных упругих сосудах. Каждый сосуд независимо хранит полную массу и калорическую плюс упругую энергию; фазовый flash определяет температуру, давление и доли пара. `fuel_restriction` обменивает однородную среду донора, `fuel_heat_link` обменивается теплом с конечным тепловым узлом. Химическая энергия теплоты сгорания учитывается отдельно. + +В узле топлива `storage` задаёт опорный объём в `m3` или `l`, `initial` — температуру в `k`, `position` — полную массу в `kg`. Объект `fuel` явно задаёт свойства, податливость и границы давления/температуры. Связанные сосуды имеют одинаковые плотность, калорическую и фазовую опору, температурные границы и теплоту сгорания. Оба порта сопротивления конечные; тепловой элемент связывает топливный и тепловой узлы. Открытие — доля [0,1] с необязательным каналом. + +## Консервативный поток + +Сопротивление следует квазистатическому диссипативному закону опорного объёма с явной проводимостью K в `m3_s_pa`. Инерция элемента, запас кинетической энергии и скольжение фаз не разрешены. Плотность донора переводит опорный объёмный поток в полную массу; энтальпия донора переносит обе фазы. Дополнительный внешний источник работы давления и отдельное тепло перепада не добавляются. Упругая работа уже хранится в сосуде. + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## Интегрирование и энтропия + +Ограниченный неявный Эйлер находит одинаковые принятые массу q и энтальпию H для двух сосудов. Элементы идут по стабильным ID; конечная ванна использует другой консервативный подшаг. Порядок сопряжения — первый. Нарушение границ массы, температуры, давления и отказ решателя отклоняют весь пакет, включая входы, компенсированные истории и пробные интервалы сцепления. + +Совместимая термодинамика и положительная проводимость потока по давлению дают неотрицательное непрерывное производство энтропии пары. Неявный Эйлер добавляет численную энтропию. `entropy_produced` хранит полное принятое изменение, включая смешение и дискретизацию; это не измеренная карта потерь. Независимые проверки дополняют сохранение и уточнение шага. + +## Использование и доказательства + +Запросить `equilibrium-fuel-network` или `electrothermal-fuel-network` через MCP либо запустить тот же JSON в CLI. Читать `mass`, `internal_energy`, `elastic_energy`, `vapor_mass`, `vapor_mass_fraction`, `vapor_volume_fraction`, `entropy`, `specific_enthalpy`. Здесь `internal_energy` включает упругую стенку, химическая энергия отдельна. Элементы показывают знаковые потоки, накопленную массу, `transport_energy` и изменение энтропии пары. + +Лаборатории проверяют выход жидкости в сосуществование, обратный поток, открытие и конечный тепловой/электромеханический обмен. Независимые экспонента жидкостного давления, совместная двухфазная ОДУ массы/энтальпии/тепла, тепловая инверсия и пробный захват сцепления проверяют точность и композицию. Ассеты и фактический MCP сохраняют все значения и хэши. Asset v41 хранит свойства и читает v1-v40. Фактический Unity Editor/Play/Player/IL2CPP не проверен. + +## Оставшаяся работа + +Топливный перенос теперь сочетается с приводным `fuel_chamber` и идеальным `fuel_check_valve`. Форсунка, местная инерция/критический поток и измеренные реальные смеси остаются отдельными. Параметры — `unverified`. [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.ru.md) · [VALIDATION.md](VALIDATION.ru.md) diff --git a/docs/EQUILIBRIUM_FUEL_NETWORK.zh-CN.md b/docs/EQUILIBRIUM_FUEL_NETWORK.zh-CN.md new file mode 100644 index 0000000..746ebd5 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NETWORK.zh-CN.md @@ -0,0 +1,41 @@ +# 相平衡燃料输运网络 + +[English](EQUILIBRIUM_FUEL_NETWORK.md) · **简体中文** · [Français](EQUILIBRIUM_FUEL_NETWORK.fr.md) · [Русский](EQUILIBRIUM_FUEL_NETWORK.ru.md) · [日本語](EQUILIBRIUM_FUEL_NETWORK.ja.md) · [한국어](EQUILIBRIUM_FUEL_NETWORK.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NETWORK.de.md) · [Español](EQUILIBRIUM_FUEL_NETWORK.es.md) · [Italiano](EQUILIBRIUM_FUEL_NETWORK.it.md) · [Português](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + +## 模型范围 + +`fuel` 域在有限弹性容器中共同输送纯燃料液体与蒸气。每个容器独立保存总质量及热量加弹性储能,相平衡闪蒸据此确定温度、压力和蒸气比例。`fuel_restriction` 交换均匀混合的供体流体,`fuel_heat_link` 与有限热节点换热。燃料热值对应的化学能使用独立账本。 + +燃料节点的 `storage` 为参考体积,单位 `m3` 或 `l`;`initial` 为温度,单位 `k`;`position` 为总质量,单位 `kg`。`fuel` 对象显式声明物性、顺应性以及压力/温度边界。相连容器共用密度、热量与相参考、温度边界及热值。流阻两端均为有限燃料节点,热链接连接燃料与热节点。流阻开度为 [0,1] 比例,可配置输入通道。 + +## 守恒流动 + +流阻采用准静态耗散参考体积定律,显式体积流导 K 的单位为 `m3_s_pa`。模型忽略链接惯性、动能储存与相间滑移。供体密度将参考体积流转换为燃料总质量流,供体焓携带两相能量。不添加额外外部压力功源,也不为压降单独再加一项热量;弹性功已储存在容器能量内。 + +```text +Q_ref = K opening (p_s - p_r) +mdot = Q_ref / v_s +q = dt K opening (p_s' - p_r') / v_s' +H = q h_s' +M_s' = M_s - q; E_s' = E_s - H +M_r' = M_r + q; E_r' = E_r + H +h = (E - E_elastic + p V) / M +``` + +## 时间积分与熵 + +有界后向 Euler 求解为两个容器确定同一组已接受质量 q 与焓 H。链接按稳定组件 ID 顺序推进,有限热浴换热使用另一守恒子步。耦合方法为一阶。质量、温度或压力越界及求解失败均拒绝整批,包括输入、补偿历史和离合器试探区间。 + +兼容物性与正的压差流导使连续成对熵产生非负。后向 Euler 还会增加数值熵。`entropy_produced` 通道记录已接受的完整成对熵变化,包括混合与时间离散效应,不代表实测损失图。守恒与细化之外还进行独立熵检查。 + +## 使用与证据 + +通过 MCP 请求 `equilibrium-fuel-network` 或 `electrothermal-fuel-network`,也可用 CLI 运行同一 JSON。读取各容器的 `mass`、`internal_energy`、`elastic_energy`、`vapor_mass`、`vapor_mass_fraction`、`vapor_volume_fraction`、`entropy` 和 `specific_enthalpy`。这里 `internal_energy` 包含弹性壁储能,化学能单独报告。链接公开有符号质量/体积流、累计转移质量、`transport_energy` 和成对熵变化。 + +实验覆盖液体排出并进入共存区、反向流、开度变化及有限壁/机电热耦合。独立液体压力指数解、同时求解两相质量/焓/传热的 ODE、热驱动反流及离合器试探捕获检查精度与组合。资产和实际 MCP 保持每个采样值及哈希一致。资产 v41 保存新物性记录并读取 v1-v40。实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +## 后续工作 + +燃料域输运现可与轴驱动 `fuel_chamber` 及理想 `fuel_check_valve` 链接组合。物理喷油器交接、局部惯性/临界流及实测真实混合物行为仍需单独推进。参数保持 `unverified`。 [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + +[Modelica: two-port transport](https://doc.modelica.org/om/Modelica.Fluid.Interfaces.PartialTwoPortTransport.html) · [CompliantFuelVolume](COMPLIANT_FUEL_VOLUME.zh-CN.md) · [VALIDATION.md](VALIDATION.zh-CN.md) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.de.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.de.md new file mode 100644 index 0000000..f44f255 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.de.md @@ -0,0 +1,42 @@ +# Kraftstoffdüsentransit im Phasengleichgewicht + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · **Deutsch** · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Physikalisches Modell + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. + +Druck und spezifische Entropie bestimmen stabile Flüssigkeit, Dampf oder Koexistenz. Die Schließung nutzt gleiche chemische Potenziale und bestehende Temperatur-/Druckgrenzen. Temperaturendpunkte erlauben nur binary64-Rundungsnachbarschaften. Fläche, Wandwärme, Öffnung und reale Nadel folgen dem gemeinsamen Vertrag. Der ideale Strahl expandiert vollständig zum Empfänger; stationärer Impuls fügt weder axiale Nadelkraft noch mechanische Arbeit hinzu. + +## Globale Flusseinschließung + +Positive Gleichgewichtsschallgeschwindigkeit im Quadrat liefert steigende Dichte mit Druck bei fester Entropie; der Enthalpieabfall sinkt. Diese monotonen Faktoren begrenzen den Intervallfluss einschließlich Phasengrenzen und mehrerer Extrema. Verzweigen und Begrenzen liefert abgetastete Untergrenze und verbleibende Obergrenze mit relativer Breite höchstens 1e-4. Grenzen sind 512 Stackintervalle und 8192 Teilungen. Kalorische Differenzen nutzen Rundungsspielraum und monotone Integralgrenzen mit bis zu 256 Riemann-Feldern und 80 Schließungsiterationen. Ungelöste Fälle verwerfen den Stapel. Ein glattes inneres Maximum ist sonisch; ein Phasengrenzenmaximum kann nicht glatt sein. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Konservative Teilschritte erster Ordnung übertragen dieselbe Masse und Enthalpie; Strahlenergie verteilt sich auf Fluid und Wand. Stoffzustände und gesamte Paarentropie werden geprüft. Grenzen: 4096 Teilschritte, 64 Halbierungen je Kandidat, anfänglich höchstens 0.1 der kleineren Behältermasse. Die Schließgrenze erlaubt 128 binary64 epsilon mal maximalen Kompressionsmodul oder Portdruck, ohne Ausgabedruck zu begrenzen. Fehler nehmen den ganzen Stapel zurück. Schritt, Bestand, Stoffgrenzen, Nadelhub und Fläche prüfen. + +## Nutzung und Nachweise + +`equilibrium-flashing-nozzle` oder `equilibrium-pump-needle` ausführen. `flux_relative_uncertainty` beschreibt die letzte akzeptierte lokale Stoffgesetz-Flusseinschließung, nicht mittlere Strömung, Liefermasse, Zeitintegration erster Ordnung oder Kalibrierfehler. Unabhängige Sättigungs-/Entropieinversion, analytische Gas-/Flüssigkeitskritik, separater dichter globaler Suchlauf, Energie-/Entropieidentitäten und analytische Dampfausblasverfeinerung werden verglichen. Bestände, Welle/Leitung/Nadel, Rücknahme, Abbruch, Zweige, Allokationen, portable Assets und tatsächliches MCP werden getrennt geprüft. Zahlen und ältere Grenzen stehen in den Validierungsnachweisen. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Gültigkeit und nächste Schritte + +Parameter bleiben `unverified`. Die Gleichgewichtsgrenze verwendet ein reines Pseudofluid, idealen Dampf, keine Flüssigkeitswärmeausdehnung und gemeinsame Geschwindigkeit. Endliche Keimbildungs-/Relaxationszeiten, Schlupf, Spray, Trägergas und brennender Empfänger fehlen. Die Einschließung verwendet deklarierte binary64-Spielräume, keinen formalen Intervallbeweis mit gerichteter Rundung. Halsklassifikation nahe kritischer Übergänge ist mit der Flusseinschließung zu lesen. Messgültigkeit und tatsächliche Unity-Abnahme bleiben offen. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.es.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.es.md new file mode 100644 index 0000000..dc8fb43 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.es.md @@ -0,0 +1,42 @@ +# Tránsito de combustible en equilibrio por toberas + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · **Español** · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Modelo físico + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. + +Presión y entropía específica determinan líquido estable, vapor o coexistencia. El cierre usa igualdad de potenciales químicos y límites térmicos/barométricos existentes. Los extremos térmicos solo admiten vecindades de redondeo binary64. Área, calor de pared, apertura y aguja real siguen el contrato común. El chorro se expande idealmente hasta el receptor; su impulso estacionario no añade fuerza axial ni trabajo mecánico. + +## Envolvente global de flujo + +La velocidad del sonido de equilibrio al cuadrado positiva implica densidad creciente con presión a entropía fija; la caída de entalpía disminuye. Estos factores monótonos acotan el flujo en intervalos, incluidas fronteras de fase y varios extremos. Ramificación y acotación devuelve cota inferior muestreada y superior restante con ancho relativo máximo 1e-4. Límites: 512 intervalos en pila y 8192 divisiones. Diferencias calóricas usan márgenes de redondeo y cotas integrales monótonas con hasta 256 paneles Riemann y 80 iteraciones. Lo no resuelto rechaza el lote. Un máximo interior suave es sónico; uno de frontera puede no ser suave. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Subpasos conservativos de primer orden transfieren igual masa y entalpía y reparten energía cinética entre fluido y pared. Se comprueban estados y entropía total de la pareja. Límites: 4096 subpasos, 64 reducciones a la mitad por candidato y transferencia inicial de hasta 0.1 de la menor masa. El cierre tolera 128 epsilon binary64 por el mayor módulo volumétrico o presión, sin recortar presiones informadas. Un fallo revierte todo el lote. Revise paso, inventario, límites, carrera y área. + +## Uso y evidencia + +Ejecute `equilibrium-flashing-nozzle` o `equilibrium-pump-needle`. `flux_relative_uncertainty` describe la última envolvente constitutiva local aceptada; no limita caudal medio, masa entregada, integración temporal de primer orden ni calibración. Se comparan inversión independiente de saturación/entropía, bloqueo analítico gas/líquido, búsqueda global densa separada, identidades de energía/entropía y refinamiento analítico de vaciado de vapor. Inventarios, eje/conducto/aguja, reversión, cancelación, ramas, asignaciones, assets y MCP real se verifican aparte. Números y fronteras anteriores están en la evidencia de validación. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Validez y próximos pasos + +Los parámetros siguen `unverified`. El límite de equilibrio supone pseudofluido puro, vapor ideal, expansión térmica líquida nula y velocidad común. Omite tiempos finitos de nucleación/relajación, deslizamiento, pulverización, gas portador y receptor con combustión. La envolvente usa márgenes binary64 declarados; no es una prueba formal de intervalos con redondeo dirigido. La clasificación de garganta cerca de transiciones debe leerse con la envolvente. Validez medida y Unity real siguen pendientes. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.fr.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.fr.md new file mode 100644 index 0000000..8092242 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.fr.md @@ -0,0 +1,42 @@ +# Transit de carburant à l’équilibre dans les buses + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · **Français** · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Modèle physique + +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. + +Pression et entropie spécifique déterminent liquide stable, vapeur ou coexistence. La fermeture utilise l’égalité des potentiels chimiques et les bornes thermiques et de pression existantes. Les extrémités de température n’admettent que le voisinage d’arrondi binary64. Section, chaleur de paroi, commande et aiguille suivent le contrat commun. Le jet est idéalement détendu jusqu’au récepteur ; son impulsion stationnaire n’ajoute ni force axiale d’aiguille ni travail mécanique. + +## Encadrement global du flux + +Le carré positif de la vitesse du son d’équilibre donne une densité croissante avec la pression à entropie fixe. La chute d’enthalpie décroît. Ces facteurs monotones bornent le flux sur chaque intervalle, y compris frontières de phase et extrema multiples. La séparation-évaluation renvoie débit inférieur échantillonné et borne supérieure restante à largeur relative au plus 1e-4. Limites : 512 intervalles sur pile et 8192 divisions. Différences caloriques, marges d’arrondi et bornes d’intégrales monotones utilisent jusqu’à 256 panneaux de Riemann et 80 itérations de fermeture. Un cas non résolu rejette le lot. Un maximum intérieur lisse est sonique ; une frontière de phase peut être non lisse. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Des sous-pas conservatifs du premier ordre échangent la même masse et enthalpie ; l’énergie cinétique du jet se répartit entre récepteur et paroi. Chaque acceptation vérifie les états et l’entropie totale de la paire. Limites : 4096 sous-pas, 64 réductions de moitié par candidat, transfert initial borné à 0.1 fois la plus petite masse. La fermeture tolère 128 fois epsilon binary64 multiplié par le plus grand module volumique ou la pression des ports, sans écrêter les pressions. Un échec restaure tout le lot. Réduire le pas et examiner inventaire, limites, course et section. + +## Utilisation et preuves + +Exécuter `equilibrium-flashing-nozzle` ou `equilibrium-pump-needle`. `flux_relative_uncertainty` décrit le dernier encadrement constitutif local accepté ; il ne borne ni débit moyen, ni masse livrée, ni intégration temporelle du premier ordre, ni étalonnage. Les vérifications emploient inversion indépendante de saturation/entropie, blocage analytique gaz/liquide, recherche globale dense distincte, identités d’énergie/entropie et raffinement analytique de vidange vapeur. Inventaires, arbre/conduite/aiguille, restauration, annulation, branches, allocations, assets et MCP réel sont vérifiés séparément. Résultats et anciennes frontières figurent dans les preuves de validation. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Validité et suite + +Les paramètres restent `unverified`. Cette limite suppose un pseudo-fluide pur, vapeur idéale, dilatation liquide nulle et vitesse commune. Temps finis de nucléation/relaxation, glissement, pulvérisation, gaz porteur et récepteur avec combustion sont omis. L’encadrement utilise des marges binary64 déclarées, sans preuve formelle par arrondis dirigés. Près des transitions critiques, interpréter la gorge avec l’enveloppe de flux. Validité mesurée et acceptation Unity réelle restent ouvertes. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.it.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.it.md new file mode 100644 index 0000000..6e42455 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.it.md @@ -0,0 +1,42 @@ +# Transito di combustibile all’equilibrio negli ugelli + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · **Italiano** · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Modello fisico + +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. + +Pressione ed entropia specifica determinano liquido stabile, vapore o coesistenza. La chiusura usa uguaglianza dei potenziali chimici e limiti termici e di pressione esistenti. Gli estremi termici ammettono solo vicinati d’arrotondamento binary64. Area, calore, comando e ago reale seguono il contratto comune. Il getto si espande idealmente al ricevitore; l’impulso stazionario non aggiunge forza assiale o lavoro meccanico. + +## Involucro globale del flusso + +Il quadrato positivo del suono d’equilibrio dà densità crescente con pressione a entropia fissa; il salto d’entalpia diminuisce. I fattori monotoni limitano il flusso di ogni intervallo, incluse frontiere di fase ed estremi multipli. La separazione e valutazione restituisce limite inferiore campionato e superiore residuo con ampiezza relativa massima 1e-4. Limiti: 512 intervalli sullo stack e 8192 divisioni. Differenze caloriche usano margini d’arrotondamento e limiti integrali monotoni fino a 256 pannelli Riemann e 80 iterazioni. Casi irrisolti rifiutano il lotto. Un massimo interno regolare è sonico; uno alla frontiera può essere non regolare. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Sottopassi conservativi del primo ordine trasferiscono la stessa massa ed entalpia e dividono l’energia cinetica fra fluido e parete. Si verificano stati ed entropia totale della coppia. Limiti: 4096 sottopassi, 64 dimezzamenti per candidato, trasferimento iniziale entro 0.1 della massa minore. La chiusura tollera 128 epsilon binary64 per il massimo modulo volumetrico o pressione senza limitare i valori riportati. Un errore annulla l’intero lotto. Controllare passo, inventario, limiti, corsa e area. + +## Uso e verifiche + +Eseguire `equilibrium-flashing-nozzle` o `equilibrium-pump-needle`. `flux_relative_uncertainty` descrive l’ultimo involucro costitutivo locale accettato e non limita portata media, massa consegnata, integrazione temporale del primo ordine o calibrazione. Si confrontano inversione indipendente di saturazione/entropia, blocco analitico gas/liquido, ricerca globale densa separata, identità energetiche/entropiche e raffinamento analitico dello svuotamento di vapore. Inventari, albero/condotto/ago, rollback, annullamento, rami, allocazioni, asset e MCP reale sono verificati separatamente. Numeri e vecchi confini restano nelle prove di validazione. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Validità e prossimi passi + +I parametri restano `unverified`. Il limite d’equilibrio usa pseudofluido puro, vapore ideale, dilatazione liquida nulla e velocità comune. Esclude tempi finiti di nucleazione/rilassamento, scorrimento, spray, gas portante e ricevitore con combustione. L’involucro usa margini binary64 dichiarati, non una prova formale d’intervalli con arrotondamento diretto. Interpretare la gola vicino alle transizioni insieme all’involucro. Validità misurata e Unity effettivo restano aperti. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.ja.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.ja.md new file mode 100644 index 0000000..f56f2f3 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.ja.md @@ -0,0 +1,42 @@ +# 燃料ノズルの平衡相変化輸送 + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · **日本語** · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## 物理モデル + +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 + +圧力と比エントロピーから安定な液体、蒸気、共存状態を求めます。化学ポテンシャル一致と既存の温圧範囲を使い、温度端点では binary64 の丸め近傍だけを許容します。面積、壁熱配分、開度、実ニードルは共通契約に従います。噴流は受入圧力まで理想完全膨張し、静止力積はニードル軸力や機械仕事を追加しません。 + +## 流束の大域的包絡 + +平衡音速の二乗が正なので、等エントロピー密度は圧力とともに増え、エンタルピー降下は減ります。この単調性から相境界や複数極値を含む各区間の流束上限を求めます。分枝限定法は標本下限と残存上限の相対幅を 1e-4 以下にします。最大 512 個のスタック区間と 8192 分割です。熱量差の丸め余裕と単調圧力積分の界を用い、最大 256 Riemann 区間、80 回の閉合反復を行います。解決できなければバッチを拒否します。滑らかな内部最大値は音速条件を満たし、相境界最大値は非平滑になり得ます。 + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +保存的な一次サブステップが同じ質量とエンタルピーを移し、噴流運動エネルギーを流体と壁に配分します。物性状態と対全体のエントロピーを確認します。区間当たり最大 4096 ステップ、候補当たり 64 回の半減、初期移動量は小さい貯槽質量の 0.1 倍以下です。閉鎖判定には最大体積弾性率またはポート圧力の 128 binary64 epsilon 倍の丸め幅を許容し、出力圧力は切り詰めません。失敗はバッチ全体をロールバックします。刻み、在庫、物性範囲、行程、面積を確認してください。 + +## 利用と検証 + +`equilibrium-flashing-nozzle` または `equilibrium-pump-needle` を実行します。`flux_relative_uncertainty` は最後に採用した局所構成則の流束包絡で、平均流量、送出質量、一次時間積分、校正誤差の界ではありません。独立した飽和/エントロピー反転、気体・液体の解析的チョーク、別実装の密な大域探索、エネルギー/エントロピー恒等式、解析蒸気排出の細分化を比較します。在庫、軸/管/ニードル、ロールバック、取消、分岐、割り当て、可搬 asset、実 MCP は別々に検証します。数値と旧境界は検証証拠に残します。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## 適用範囲と次の作業 + +パラメータは `unverified` です。純疑似流体、理想蒸気、液体熱膨張ゼロ、共通速度を仮定します。有限の核生成・緩和時間、相間滑り、噴霧、キャリアガス、燃焼受入室は含みません。包絡は宣言した binary64 余裕を用い、方向付き丸めによる形式的区間証明ではありません。臨界遷移付近の喉部分類は流束包絡と併せて読みます。実測妥当性と実 Unity 受入検証は未完了です。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.ko.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.ko.md new file mode 100644 index 0000000..5ca7ab6 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.ko.md @@ -0,0 +1,42 @@ +# 연료 노즐의 평형 상변화 수송 + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · **한국어** · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## 물리 모델 + +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. + +압력과 비엔트로피가 안정 액체, 증기 또는 공존 상태를 결정합니다. 화학 퍼텐셜 일치와 기존 온압 범위를 사용하며 온도 끝점은 binary64 반올림 근방만 허용합니다. 면적, 벽열 배분, 개도, 실제 니들은 공통 노즐 계약을 따릅니다. 제트는 수신 압력까지 이상 완전 팽창하며 정지 충격량은 니들 축력이나 기계적 일을 추가하지 않습니다. + +## 전역 유속 포락 + +평형 음속 제곱이 양수이므로 등엔트로피 밀도는 압력과 함께 증가하고 엔탈피 강하는 감소합니다. 이 단조 인자로 상경계와 여러 극값을 포함한 구간 유속 상한을 구합니다. 분기 한정은 표본 하한과 잔여 상한의 상대 폭을 1e-4 이하로 만듭니다. 스택 구간 최대 512개, 분할 8192회입니다. 열량 차이의 반올림 여유와 단조 압력 적분 경계를 사용하며 최대 256 Riemann 구간과 80회 폐쇄 반복을 수행합니다. 해결할 수 없으면 배치를 거부합니다. 매끄러운 내부 최대값은 음속 조건을 만족하지만 상경계 최대값은 비매끄러울 수 있습니다. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +보존형 1차 하위 스텝이 같은 질량과 엔탈피를 전달하고 제트 운동에너지를 수신 유체와 벽에 배분합니다. 물성 상태와 쌍 전체 엔트로피를 확인합니다. 구간당 최대 4096 스텝, 후보당 최대 64회 반감, 초기 전달량은 작은 저장조 질량의 0.1배 이하입니다. 닫힘 판단은 최대 체적탄성률 또는 포트 압력의 128 binary64 epsilon배 반올림을 허용하며 출력 압력을 클램프하지 않습니다. 실패하면 전체 배치를 롤백합니다. 시간 간격, 재고, 물성 범위, 니들 행정과 면적을 확인하십시오. + +## 사용과 검증 + +`equilibrium-flashing-nozzle` 또는 `equilibrium-pump-needle`를 실행합니다. `flux_relative_uncertainty`는 마지막 채택 국소 구성식 유속 포락이며 평균 유량, 전달 질량, 1차 시간 적분, 보정 오차를 제한하지 않습니다. 독립 포화/엔트로피 역산, 기체·액체 해석 초킹, 별도 조밀 전역 탐색, 에너지·엔트로피 항등식, 해석 증기 배출 세분화를 비교합니다. 재고, 축/관/니들, 롤백, 취소, 분기, 할당, 이식 asset, 실제 MCP는 별도로 검증합니다. 수치와 이전 경계는 검증 증거에 보존합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 적용 범위와 다음 작업 + +매개변수는 `unverified`입니다. 순수 의사유체, 이상증기, 액체 열팽창 0, 공통 속도를 가정합니다. 유한 핵생성·완화 시간, 상간 미끄럼, 분무, 운반기체, 연소 수신 챔버는 포함하지 않습니다. 포락은 선언한 binary64 여유를 사용하며 방향 반올림에 의한 형식 구간 증명은 아닙니다. 임계 전이 부근 목 분류는 유속 포락과 함께 해석해야 합니다. 실측 타당성과 실제 Unity 검증은 남아 있습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.md new file mode 100644 index 0000000..d3aef26 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.md @@ -0,0 +1,42 @@ +# Equilibrium fuel nozzle transit + +**English** · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Physical model + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. + +Pressure and specific entropy determine the stable liquid, vapor or coexistence state. The closure uses chemical-potential equality and the existing temperature/pressure bounds. Inclusive temperature endpoints permit only binary64 rounding neighbourhoods. Area, wall heat routing, opening commands and physical needles follow the common nozzle contract. Jet energy describes ideal complete expansion to receiver pressure; stationary jet impulse adds no axial needle force or mechanical work. + +## Global flux enclosure + +Positive equilibrium sound-speed squared gives increasing density along an isentrope. Enthalpy drop decreases with pressure. These monotone factors bound flux on each pressure interval, including phase boundaries and multiple extrema. Branch-and-bound returns a sampled lower rate and remaining upper bound within 1e-4 relative width. There are at most 512 stack intervals and 8192 splits. Caloric endpoint differences use roundoff allowances and monotone pressure-integral bounds, with up to 256 Riemann panels and 80 closure iterations. Unresolved cases reject the batch. A smooth interior maximum is sonic; a phase-boundary maximum can be nonsmooth. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Conservative first-order substeps transfer the same mass and enthalpy between reservoirs. Jet kinetic energy is divided between receiver and wall. Accepted substeps check both material states and total pair entropy. Each interval permits 4096 substeps with at most 64 halvings per candidate; the initial transfer bound is 0.1 times the smaller reservoir mass. Pressure closure allows 128 times binary64 epsilon times the largest bulk modulus or port pressure; reported pressures are not clamped. A failed interval rolls back the whole batch. Reduce the tick and inspect inventory, material bounds, needle travel and valve area. + +## Use and evidence + +Run `equilibrium-flashing-nozzle` or `equilibrium-pump-needle`. The additional `flux_relative_uncertainty` channel describes the last accepted local constitutive flux enclosure. It does not bound mean flow, delivered mass, first-order time integration or calibration error. Checks use independent saturation/entropy inversion, analytical gas and liquid choking, a separate dense global pressure search, energy and entropy identities, and analytic vapor-blowdown refinement. Complete inventories, shaft/duct/needle composition, rollback, cancellation, independent branches, allocations, portable assets and actual MCP are verified separately. Numerical values and preserved earlier boundaries are in validation evidence. + +[VALIDATION.md](VALIDATION.md) + +## Validity and next work + +Parameters remain `unverified`. This equilibrium limit assumes one pure pseudo-fluid, ideal vapor, zero liquid thermal expansion and common phase velocity. It omits finite nucleation and relaxation times, phase slip, spray, carrier gas and fired receiver coupling. The numerical enclosure uses declared binary64 allowances; it is not a formal directed-rounding interval proof. Selected throat classification near critical transitions must be read with the flux envelope. Measured hardware validity and actual Unity acceptance remain open. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md new file mode 100644 index 0000000..9f90278 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md @@ -0,0 +1,42 @@ +# Trânsito de combustível em equilíbrio nos bocais + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · **Português** + +## Modelo físico + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. + +Pressão e entropia específica determinam líquido estável, vapor ou coexistência. O fechamento usa igualdade dos potenciais químicos e limites térmicos e de pressão existentes. Extremos térmicos permitem somente vizinhanças de arredondamento binary64. Área, calor, comando e agulha real seguem o contrato comum. O jato expande idealmente até o receptor; o impulso estacionário não acrescenta força axial nem trabalho mecânico. + +## Envoltória global de fluxo + +O quadrado positivo do som de equilíbrio implica densidade crescente com pressão a entropia fixa; a queda de entalpia diminui. Os fatores monótonos limitam o fluxo de cada intervalo, incluindo fronteiras de fase e vários extremos. Ramificação e limitação retornam limite inferior amostrado e superior restante com largura relativa até 1e-4. Limites: 512 intervalos na pilha e 8192 divisões. Diferenças calóricas usam margens de arredondamento e limites integrais monótonos com até 256 painéis Riemann e 80 iterações. Casos não resolvidos rejeitam o lote. Máximo interior suave é sônico; na fronteira pode não ser suave. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Subpassos conservativos de primeira ordem transferem igual massa e entalpia e dividem a energia cinética entre fluido e parede. Verificam-se estados e entropia total do par. Limites: 4096 subpassos, 64 reduções à metade por candidato e transferência inicial de até 0.1 da menor massa. O fechamento permite 128 epsilon binary64 vezes o maior módulo volumétrico ou pressão, sem limitar pressões informadas. Falhas revertem todo o lote. Examine passo, inventário, limites, curso e área. + +## Uso e evidências + +Execute `equilibrium-flashing-nozzle` ou `equilibrium-pump-needle`. `flux_relative_uncertainty` descreve a última envoltória constitutiva local aceita e não limita fluxo médio, massa entregue, integração temporal de primeira ordem ou calibração. Comparam-se inversão independente de saturação/entropia, bloqueio analítico gás/líquido, busca global densa separada, identidades de energia/entropia e refinamento analítico de esvaziamento de vapor. Inventários, eixo/duto/agulha, reversão, cancelamento, ramos, alocações, assets e MCP real são verificados separadamente. Números e fronteiras anteriores ficam nas evidências de validação. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Validade e próximos passos + +Os parâmetros continuam `unverified`. O limite de equilíbrio supõe pseudofluido puro, vapor ideal, expansão líquida nula e velocidade comum. Omite tempos finitos de nucleação/relaxação, deslizamento, spray, gás portador e receptor com combustão. A envoltória usa margens binary64 declaradas, não uma prova formal de intervalos por arredondamento dirigido. A classificação da garganta perto de transições deve ser lida com a envoltória. Validade medida e Unity real permanecem abertos. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.ru.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.ru.md new file mode 100644 index 0000000..abc0c7e --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.ru.md @@ -0,0 +1,42 @@ +# Равновесное прохождение топлива через сопло + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · [简体中文](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · **Русский** · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## Физическая модель + +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. + +Давление и удельная энтропия определяют устойчивую жидкость, пар или сосуществование. Замыкание использует равенство химических потенциалов и действующие температурные и барические границы. Концы температурного интервала допускают лишь округление binary64. Площадь, тепло стенки, команда и игла следуют общему контракту. Струя идеально расширена до давления приёмника; стационарный импульс не добавляет осевой силы иглы или механической работы. + +## Глобальное ограничение потока + +Положительный квадрат равновесной скорости звука даёт рост плотности с давлением при фиксированной энтропии. Перепад энтальпии уменьшается. Монотонные множители ограничивают поток на каждом интервале, включая фазовые границы и несколько экстремумов. Метод ветвей и границ возвращает выборочную нижнюю и оставшуюся верхнюю границы с относительной шириной не более 1e-4. Пределы: 512 интервалов в стеке и 8192 разбиения. Калорические разности, поправки округления и монотонные интегральные границы используют до 256 панелей Римана и 80 итераций. Неразрешённый случай отклоняет пакет. Гладкий внутренний максимум звуковой; фазовая граница может быть негладкой. + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +Консервативные подшаги первого порядка переносят одинаковую массу и энтальпию; кинетическая энергия делится между средой и стенкой. Проверяются состояния и полная энтропия пары. Пределы: 4096 подшагов, 64 деления пополам на кандидат, начальный перенос не больше 0.1 меньшей массы. Закрытие допускает 128 epsilon binary64, умноженных на наибольший модуль упругости или давление; выдаваемые давления не обрезаются. Ошибка откатывает весь пакет. Уменьшите шаг и проверьте запасы, границы, ход иглы и площадь. + +## Применение и проверка + +Запустите `equilibrium-flashing-nozzle` или `equilibrium-pump-needle`. `flux_relative_uncertainty` описывает последнюю принятую локальную определяющую границу потока, а не средний расход, поданную массу, временную интеграцию первого порядка или калибровку. Проверки включают независимое обращение насыщения/энтропии, аналитическое запирание газа/жидкости, отдельный плотный глобальный поиск, энергетические и энтропийные тождества и аналитическое уточнение опорожнения пара. Запасы, вал/канал/игла, откат, отмена, ветви, выделения, assets и реальный MCP проверяются отдельно. Числа и старые границы сохранены в доказательствах валидации. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Применимость и дальнейшая работа + +Параметры остаются `unverified`. Эта равновесная модель предполагает чистую псевдосреду, идеальный пар, отсутствие теплового расширения жидкости и общую скорость. Конечные времена зародышеобразования и релаксации, скольжение, распыл, газ-носитель и приёмник с горением не включены. Численные границы используют заявленные поправки binary64, а не формальное доказательство направленным округлением. Классификацию горла вблизи критического перехода следует читать с границами потока. Измеренная достоверность и фактическая проверка Unity открыты. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md b/docs/EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md new file mode 100644 index 0000000..81a8076 --- /dev/null +++ b/docs/EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md @@ -0,0 +1,42 @@ +# 平衡燃料喷嘴输运 + +[English](EQUILIBRIUM_FUEL_NOZZLE.md) · **简体中文** · [Français](EQUILIBRIUM_FUEL_NOZZLE.fr.md) · [Русский](EQUILIBRIUM_FUEL_NOZZLE.ru.md) · [日本語](EQUILIBRIUM_FUEL_NOZZLE.ja.md) · [한국어](EQUILIBRIUM_FUEL_NOZZLE.ko.md) · [Deutsch](EQUILIBRIUM_FUEL_NOZZLE.de.md) · [Español](EQUILIBRIUM_FUEL_NOZZLE.es.md) · [Italiano](EQUILIBRIUM_FUEL_NOZZLE.it.md) · [Português](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) + +## 物理模型 + +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 + +压力与比熵共同确定稳定液体、蒸气或两相共存状态。闭合关系使用化学势相等条件及既有温压边界;温度端点只允许 binary64 舍入邻域。面积、壁面热分配、开度指令和实际针阀沿用共同喷嘴契约。喷流能量表示完全膨胀到接收腔压力的理想状态;静止喷流冲量不额外产生针阀轴向力或机械功。 + +## 全局通量包络 + +平衡声速平方为正,使密度沿等熵线随压力增加;焓降则随压力增加而减小。利用这两个单调因子,可对各压力区间的通量给出上界,覆盖相边界和多个极值。分支定界返回采样流量下界及剩余上界,相对宽度不超过 1e-4。最多使用 512 个栈上区间和 8192 次分裂。热力学端点差使用舍入裕量和单调压力积分界,最多细化 256 个 Riemann 区间及 80 次闭合迭代。无法满足包络时拒绝整个批次。光滑内部极值满足声速条件,相边界极值则可能不光滑。 + +```text +g_liquid(T,p) = g_vapor(T,p) +s(p,rho,T,x) = s_source +D(p) = h_source - h(p,s_source) = integral(p,p_source) v(q,s_source) dq +G(p) = rho(p,s_source) sqrt(2 D(p)) +drho/dp at fixed s = 1/c_equilibrium^2 > 0 +G_upper([p_low,p_high]) = rho(p_high) sqrt(2 D_upper(p_low)) +G_lower = max(sampled rho(p) sqrt(2 D_lower(p))) +flux_relative_uncertainty = G_upper/G_lower - 1 <= 1e-4 +mass_flow_local = opening Cd A G_lower +velocity_throat = c_equilibrium (smooth interior maximum only) +``` + +守恒的一阶子步在储腔之间转移相同的质量和焓,并在接收流体与壁面之间分配喷流动能。接受子步前检查两端材料状态与总熵变。每个区间最多 4096 个子步,每个候选最多减半 64 次;初始转移量上限是较小储腔质量的 0.1 倍。闭阀压差允许 128 倍 binary64 epsilon 乘以最大体积模量或端口压力的舍入量,报告压力不作钳制。失败区间会回滚整个批次。应减小时间步并检查库存、材料边界、针阀行程及阀口面积。 + +## 使用与证据 + +运行 `equilibrium-flashing-nozzle` 或 `equilibrium-pump-needle`。新增 `flux_relative_uncertainty` 通道描述最近接受的局部本构通量包络,不约束平均流量、累计输送量、一阶时间积分或标定误差。检查采用独立饱和/熵反演、气体和液体解析阻塞、另行实现的稠密全局压力搜索、能量与熵恒等式,以及解析蒸气排空细化。完整库存、轴/管路/针阀组合、回滚、取消、独立分支、内存分配、可移植资产和实际 MCP 分别验证。数值结果及保留的旧边界见验证证据。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 适用范围与后续工作 + +参数仍为 `unverified`。这一平衡极限采用单一纯伪流体、理想蒸气、零液体热膨胀和共同相速度,未包含有限成核与弛豫时间、相间滑移、喷雾、载气及燃烧接收腔耦合。数值包络使用声明的 binary64 裕量,不是形式化的定向舍入区间证明。临界过渡附近的喉部分类须结合通量包络解释。实测硬件有效性和实际 Unity 验收仍待完成。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[NASA: injector flow and finite phase-transfer times](https://ntrs.nasa.gov/api/citations/20190001326/downloads/20190001326.pdf) · [NIST: thermodynamic derivatives](https://pages.nist.gov/teqp-docs/en/latest/derivs/derivs.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) diff --git a/docs/FUEL_CHAMBER_PUMP.de.md b/docs/FUEL_CHAMBER_PUMP.de.md new file mode 100644 index 0000000..7b8f862 --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.de.md @@ -0,0 +1,37 @@ +# Wellengetriebene phasenauflösende Kraftstoffpumpe + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · **Deutsch** · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Physikalischer Vertrag + +`fuel_chamber` koppelt eine tatsächliche Welle an eine endliche Kraftstoffkammer. Einlass- und Auslass-`fuel_check_valve` liefern druckgetrieben Füllung und Förderung. Flüssigkeit, Dampf und elastische Wandenergie teilen einen Abschluss. Bei Einlassmangel kann die Kammer beim Ansaugen verdampfen; Förderung folgt berechnetem Bestand und Druck. + +`node_a` ist rotatorisch, `node_b` ein Kraftstoffknoten mit genau einem Geometrieeigner. `minimum_reference_volume`, `swept_volume` in `m3` oder `l`, `phase` in `rad` oder `deg` erklären. Knotenspeicher und Geometrie beim Anfangswinkel stimmen innerhalb binary64-Rundung überein. Die Sinusmechanik fügt keine Kolben-/Nockenträgheit hinzu; Wellenträgheit ist explizit. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Arbeit und Ports + +Der geschlossene mechanische Teilschritt hält Masse und Entropie fest. Speicherenergie umfasst Fluid und elastische Wand, daher bezieht sich Wellenarbeit auf geometrisches Referenzvolumen. Dieselbe angenommene Energieänderung bestimmt Druckmoment im gemeinsamen Solver mit Getrieben, Wandlern, Hydraulik und spekulativen Kupplungsintervallen. Expansion treibt die Welle; positives `hydraulic_work` geht in die Kammer. Keine zusätzliche äußere Druckquelle wird eingeführt. + +`fuel_check_valve` nutzt erklärten Leitwert in `m3_s_pa` und optionalen Öffnungsanteil. Homogenes Spenderfluid passiert nur A nach B bei höherem A-Druck. Das ist ein ideales masseloses Rückschlaggesetz mit Öffnungsdruck null. Konservativer Enthalpiestrom und endliche Wandwärme folgen dem Kraftstoffnetzvertrag. + +## Nutzung und Nachweise + +`equilibrium-fuel-pump` oder `electric-equilibrium-fuel-pump` per MCP anfordern oder JSON per CLI ausführen. Kammermasse, Temperatur, Druck, Dampfanteile und Energie neben Ventilförderung und Wellendrehzahl lesen. Komponenten-`volume` ist geometrisch; Knoten-`volume` enthält Wandausdehnung. `torque`, `hydraulic_power` und `hydraulic_work` zeigen den inneren Wellenaustausch. + +Unabhängige Flüssigkeitsdruck-/Arbeitsreferenz, Idealdampfadiabaten und Zweiphasen-Entropieinversion prüfen den Abschluss. Geschlossene Flüssigkeitsmechanik verfeinert zweiter Ordnung; phasenwechselnde Füllung/Förderung erster Ordnung gegen unabhängig invertierte RK4-Referenz. Einlassmangel, volle Flüssigkeitszufuhr, Elektroantrieb, Getriebe-/Hydraulik-/Kupplungskomposition, Replay, Rollback und Allokationen prüfen die Integration. Asset v41 speichert Geometrie und liest v1-v40. Tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +## Verbleibende Arbeit + +Parameter bleiben `unverified`. Temperatur-, Druck- und darstellbare Volumengrenzen gelten über den Zyklus. Annahmen sind inkompressible Flüssigkeit, idealer Pseudospeziesdampf, sofortiges gemeinsames Temperaturgleichgewicht und äußerer Gehäusedruck null. Lokale Einlassträgheit/NPSH, kritische Strömung, Keimbildungsverzug, Ventilträgheit/-hysterese, reale Gemische und Messkalibrierung bleiben offen. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.de.md) + +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) diff --git a/docs/FUEL_CHAMBER_PUMP.es.md b/docs/FUEL_CHAMBER_PUMP.es.md new file mode 100644 index 0000000..e53921c --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.es.md @@ -0,0 +1,37 @@ +# Bomba de combustible con cambio de fase impulsada por eje + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · **Español** · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Contrato físico + +`fuel_chamber` acopla un eje real a una cámara finita de combustible. `fuel_check_valve` de entrada y salida permiten llenado y entrega por presión. Líquido, vapor y energía elástica comparten cierre. Con entrada insuficiente la cámara puede vaporizar en aspiración; la entrega sigue inventario y presión calculados. + +`node_a` es rotacional, `node_b` un nodo de combustible con un propietario geométrico. Declarar `minimum_reference_volume`, `swept_volume` en `m3` o `l`, y `phase` en `rad` o `deg`. El volumen inicial coincide con la geometría dentro del redondeo binary64. El mecanismo sinusoidal no añade inercia de pistón/leva; la inercia del eje es explícita. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Trabajo y puertos + +El subpaso mecánico cerrado conserva masa y entropía. La energía incluye fluido y pared elástica, así que el trabajo del eje usa el volumen geométrico de referencia. El mismo cambio aceptado determina el par en el solver mecánico conjunto con engranajes, convertidores, hidráulica e intervalos especulativos del embrague. La expansión impulsa el eje; `hydraulic_work` positivo entra a la cámara. No se añade otra fuente externa de presión. + +`fuel_check_valve` usa conductancia explícita en `m3_s_pa` y apertura fraccionaria opcional. El fluido donante homogéneo pasa solo A→B cuando A tiene mayor presión. Es una válvula ideal sin masa ni presión mínima de apertura. Rigen los contratos de entalpía conservativa y calor de pared finita de la red. + +## Uso y evidencia + +Pedir `equilibrium-fuel-pump` o `electric-equilibrium-fuel-pump` por MCP o ejecutar su JSON en CLI. Leer masa, temperatura, presión, vapor y energía junto a entrega de válvulas y velocidad del eje. `volume` del componente es geométrico; `volume` del nodo incluye expansión de pared. `torque`, `hydraulic_power` y `hydraulic_work` muestran el intercambio interno del eje. + +Trabajo/presión líquidos, adiabáticas de vapor ideal e inversión independiente de entropía bifásica verifican el cierre. El movimiento líquido cerrado refina a segundo orden; el llenado/entrega con fase a primer orden frente a RK4 invertido independientemente. Falta y suministro completo de entrada, accionamiento eléctrico, engranajes/hidráulica/embrague, replay, rollback y asignaciones verifican integración. Asset v41 guarda geometría y lee v1-v40. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +## Trabajo restante + +Los parámetros siguen `unverified`. Temperatura, presión y volumen representable están limitados durante todo el ciclo. Se asumen líquido incompresible, vapor de pseudoespecie ideal, equilibrio instantáneo a temperatura común y presión exterior de carcasa cero. Inercia local/NPSH, flujo crítico, retraso de nucleación, inercia/histéresis de válvula, mezclas reales y calibración medida siguen abiertos. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.es.md) + +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. [Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) diff --git a/docs/FUEL_CHAMBER_PUMP.fr.md b/docs/FUEL_CHAMBER_PUMP.fr.md new file mode 100644 index 0000000..e6c603b --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.fr.md @@ -0,0 +1,37 @@ +# Pompe carburant diphasique entraînée par arbre + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · **Français** · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Contrat physique + +`fuel_chamber` couple un arbre réel à une chambre finie du domaine carburant. Des `fuel_check_valve` d'entrée et de sortie assurent remplissage et livraison par pression. Liquide, vapeur et énergie élastique partagent la même fermeture. Une chambre sous-alimentée peut vaporiser à l'aspiration ; la livraison suit l'inventaire et la pression calculés. + +`node_a` est rotationnel et `node_b` est un nœud carburant avec un seul propriétaire géométrique. Déclarer `minimum_reference_volume`, `swept_volume` en `m3` ou `l`, et `phase` en `rad` ou `deg`. Le stockage du nœud correspond au volume initial à l'arrondi binary64 près. Le mécanisme sinusoïdal n'ajoute pas d'inertie de piston ou de came ; l'inertie d'arbre est explicite. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Travail et ports + +Le sous-pas mécanique fermé conserve masse et entropie. L'énergie comprend fluide et paroi élastique ; le travail d'arbre porte donc sur le volume géométrique de référence. La même variation acceptée fournit le couple dans le solveur mécanique joint, engrenages, convertisseurs, hydraulique et intervalles spéculatifs d'embrayage compris. La détente pousse l'arbre ; `hydraulic_work` positif entre dans la chambre. Aucune source de pression extérieure supplémentaire n'est ajoutée. + +`fuel_check_valve` utilise une conductance déclarée en `m3_s_pa` et une ouverture fractionnaire facultative. Le fluide donneur homogène passe seulement de A vers B lorsque A est à pression supérieure. C'est un clapet idéal sans masse et à pression d'ouverture nulle. Les contrats d'enthalpie conservative et de chaleur de paroi finie restent ceux du réseau carburant. + +## Utilisation et preuves + +Demander `equilibrium-fuel-pump` ou `electric-equilibrium-fuel-pump` par MCP, ou exécuter leur JSON par CLI. Lire masse, température, pression, vapeur et énergie avec livraison des clapets et vitesse d'arbre. Le `volume` du composant est géométrique ; le `volume` du nœud inclut la dilatation de paroi. `torque`, `hydraulic_power` et `hydraulic_work` exposent l'échange interne d'arbre. + +Pression/travail du liquide, adiabates de vapeur idéale et inversion indépendante de l'entropie diphasique vérifient la fermeture. Le mouvement liquide fermé montre l'ordre deux ; remplissage/livraison avec changement de phase montre l'ordre un face à une référence RK4 inversée indépendamment. Sous-alimentation, apport liquide complet, moteur électrique, composition engrenages/hydraulique/embrayage, rejeu, rollback et allocations couvrent l'intégration. L'asset v41 stocke la géométrie et lit v1-v40. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +## Travail restant + +Les paramètres restent `unverified`. Les limites de température, pression et volume représentable s'appliquent sur tout le cycle. Hypothèses : liquide incompressible, vapeur idéale pseudo-espèce, équilibre instantané à température commune et pression extérieure de carter nulle. Inertie d'entrée/NPSH, blocage sonique, nucléation retardée, inertie/hystérésis de clapet, mélanges réels et calibration mesurée restent ouverts. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.fr.md) + +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. [Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) diff --git a/docs/FUEL_CHAMBER_PUMP.it.md b/docs/FUEL_CHAMBER_PUMP.it.md new file mode 100644 index 0000000..de0bd8b --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.it.md @@ -0,0 +1,37 @@ +# Pompa carburante a cambio di fase azionata da albero + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · **Italiano** · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Contratto fisico + +`fuel_chamber` accoppia un albero reale a una camera carburante finita. `fuel_check_valve` di ingresso e uscita forniscono riempimento ed erogazione per pressione. Liquido, vapore ed energia elastica usano la stessa chiusura. Con ingresso insufficiente la camera può evaporare in aspirazione; l’erogazione segue inventario e pressione calcolati. + +`node_a` è rotazionale, `node_b` un nodo carburante con un solo proprietario geometrico. Dichiarare `minimum_reference_volume`, `swept_volume` in `m3` o `l`, `phase` in `rad` o `deg`. Il volume iniziale coincide con la geometria entro arrotondamento binary64. Il meccanismo sinusoidale non aggiunge inerzia di pistone/camma; l’inerzia d’albero è esplicita. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Lavoro e porte + +Il sottopasso meccanico chiuso conserva massa ed entropia. L’energia include fluido e parete elastica, quindi il lavoro d’albero usa il volume geometrico di riferimento. La stessa variazione accettata determina la coppia nel solver meccanico con ingranaggi, convertitori, idraulica e intervalli speculativi della frizione. L’espansione spinge l’albero; `hydraulic_work` positivo entra nella camera. Nessuna fonte esterna aggiuntiva di pressione. + +`fuel_check_valve` usa conduttanza esplicita in `m3_s_pa` e apertura frazionaria opzionale. Il fluido donatore omogeneo passa solo A→B quando A ha pressione maggiore. È una valvola ideale senza massa e con pressione di apertura nulla. Restano i contratti di entalpia conservativa e calore di parete finita della rete. + +## Uso ed evidenze + +Richiedere `equilibrium-fuel-pump` o `electric-equilibrium-fuel-pump` tramite MCP o eseguire JSON in CLI. Leggere massa, temperatura, pressione, vapore ed energia insieme a erogazione valvole e velocità dell’albero. `volume` del componente è geometrico; `volume` del nodo include dilatazione della parete. `torque`, `hydraulic_power`, `hydraulic_work` espongono lo scambio interno. + +Pressione/lavoro liquidi, adiabatiche di vapore ideale e inversione indipendente dell’entropia bifase verificano la chiusura. Il moto liquido chiuso raffina al secondo ordine; riempimento/erogazione con fase al primo contro RK4 invertito indipendentemente. Ingresso insufficiente e pieno, motore elettrico, ingranaggi/idraulica/frizione, replay, rollback e allocazioni coprono l’integrazione. Asset v41 salva geometria e legge v1-v40. Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +## Lavoro rimanente + +I parametri restano `unverified`. Limiti di temperatura, pressione e volume rappresentabile valgono per tutto il ciclo. Si assumono liquido incomprimibile, vapore ideale pseudo-specie, equilibrio istantaneo a temperatura comune e pressione esterna del carter nulla. Inerzia locale/NPSH, flusso critico, ritardo di nucleazione, inerzia/isteresi valvole, miscele reali e calibrazione misurata restano aperti. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.it.md) + +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. [Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) diff --git a/docs/FUEL_CHAMBER_PUMP.ja.md b/docs/FUEL_CHAMBER_PUMP.ja.md new file mode 100644 index 0000000..27bf915 --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.ja.md @@ -0,0 +1,37 @@ +# 軸駆動の相変化燃料ポンプ + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · **日本語** · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## 物理契約 + +`fuel_chamber` は実際の軸と有限燃料室を結合します。入口・出口の `fuel_check_valve` が圧力差で充填と供給を行います。液体、蒸気、弾性壁エネルギーは同じ閉包を使います。入口不足では吸入中にフラッシュ蒸発でき、供給量は計算した在庫と圧力に従います。 + +`node_a` は回転軸、`node_b` は幾何所有者が一つの燃料ノードです。`minimum_reference_volume`、`swept_volume` を `m3` または `l`、`phase` を `rad` または `deg` で宣言します。初期体積は binary64 丸め内で初期軸角の幾何と一致します。正弦機構にはピストン・カム慣性を追加せず、軸慣性は明示します。 + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## 仕事とポート + +閉じた機械部分ステップは質量とエントロピーを保ちます。流体と弾性壁を含む蓄積エネルギーのため、軸仕事には幾何基準体積変化を使います。同じ採用エネルギー変化が歯車、コンバーター、油圧、クラッチ試行を含む連成解のトルクを決めます。膨張は軸を押し、正の `hydraulic_work` は軸から室への仕事です。外部圧力源は追加しません。 + +`fuel_check_valve` は `m3_s_pa` 単位の明示したコンダクタンスと任意の割合開度を使います。A が高圧のときだけ均質供給流体を A から B へ通します。質量なし・開弁圧差ゼロの理想逆止弁です。保存的エンタルピー輸送と有限壁熱交換は燃料ネットワーク契約に従います。 + +## 使用と証拠 + +MCP で `equilibrium-fuel-pump` または `electric-equilibrium-fuel-pump` を要求するか JSON を CLI で実行します。室の質量、温度、圧力、蒸気割合、エネルギーを弁供給と軸速度に並べて確認します。コンポーネント `volume` は幾何基準、ノード `volume` は壁膨張込みです。`torque`、`hydraulic_power`、`hydraulic_work` が内部軸交換を示します。 + +独立した液体圧力・仕事、理想蒸気断熱線、二相エントロピー反転で閉包を検証します。閉液体の軸運動は二次、相変化を伴う充填・排出は独立反転 RK4 参照に対して一次収束します。入口不足、十分な液体、電動、歯車・油圧・クラッチ組合せ、厳密再生、ロールバック、割当検証で統合を確認します。資産 v41 は幾何を保存し v1-v40 を読みます。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +## 残る作業 + +パラメーターは `unverified` です。温度、圧力、分解可能な体積限界は全サイクルで適用します。非圧縮液体、理想擬似成分蒸気、瞬時共通温度平衡、外部ケース圧力ゼロを仮定します。局所入口慣性/NPSH、チョーク流、核生成遅延、弁慣性・ヒステリシス、実混合燃料、実測校正は残ります。 + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ja.md) + +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 [蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) diff --git a/docs/FUEL_CHAMBER_PUMP.ko.md b/docs/FUEL_CHAMBER_PUMP.ko.md new file mode 100644 index 0000000..74ddb54 --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.ko.md @@ -0,0 +1,37 @@ +# 축 구동 상변화 연료 펌프 + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · **한국어** · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## 물리 계약 + +`fuel_chamber`는 실제 축과 유한 연료 챔버를 결합합니다. 입출구 `fuel_check_valve`가 압력차로 충전과 공급을 수행합니다. 액체, 증기, 탄성 벽 에너지는 같은 폐쇄 관계를 씁니다. 입구 공급 부족 시 흡입 중 플래시 증발이 가능하며 공급량은 계산한 재고와 압력에 따릅니다. + +`node_a`는 회전축이고 `node_b`는 기하 소유자가 하나인 연료 노드입니다. `minimum_reference_volume`, `swept_volume`를 `m3` 또는 `l`, `phase`를 `rad` 또는 `deg`로 선언합니다. 초기 체적은 binary64 반올림 안에서 초기 축 각도 기하와 일치합니다. 사인 기구에 피스톤/캠 관성을 추가하지 않으며 축 관성은 명시합니다. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## 일과 포트 + +닫힌 기계 부분 단계는 질량과 엔트로피를 유지합니다. 저장 에너지는 유체와 탄성 벽을 포함하므로 축 일은 기하 기준 체적 변화에 해당합니다. 동일한 승인 에너지 변화가 기어, 컨버터, 유압, 클러치 시험을 포함한 연성 해의 토크를 결정합니다. 팽창은 축을 밀며 양의 `hydraulic_work`는 축에서 챔버로 향합니다. 외부 압력원을 추가하지 않습니다. + +`fuel_check_valve`는 `m3_s_pa` 단위 전도도와 선택적 비율 개도를 사용합니다. A가 고압일 때만 균질 공급 유체를 A에서 B로 통과시킵니다. 질량과 개방 압력차가 없는 이상 체크 밸브입니다. 보존 엔탈피 수송과 유한 벽 열교환 계약은 연료 네트워크를 따릅니다. + +## 사용과 근거 + +MCP에서 `equilibrium-fuel-pump` 또는 `electric-equilibrium-fuel-pump`를 요청하거나 JSON을 CLI로 실행합니다. 챔버 질량, 온도, 압력, 증기 비율, 에너지를 밸브 공급과 축 속도와 함께 읽습니다. 구성요소 `volume`는 기하 기준이며 노드 `volume`는 벽 팽창을 포함합니다. `torque`, `hydraulic_power`, `hydraulic_work`가 내부 축 교환을 보여 줍니다. + +독립 액체 압력/일, 이상 증기 단열선, 2상 엔트로피 반전으로 폐쇄 관계를 검증합니다. 닫힌 액체 축 운동은 2차, 상변화 충전/공급은 독립 반전 RK4 참조에 대해 1차 세분화를 보입니다. 입구 부족, 충분한 액체 공급, 전기 구동, 기어/유압/클러치 조합, 정확한 재생, 롤백, 메모리 검사가 통합을 다룹니다. 자산 v41은 기하를 저장하고 v1-v40를 읽습니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +## 남은 작업 + +매개변수는 `unverified`입니다. 온도, 압력, 분해 가능한 체적 한계가 전체 주기에 적용됩니다. 비압축 액체, 이상 의사 성분 증기, 순간 공통 온도 평형 및 외부 케이스 압력 0을 가정합니다. 국소 입구 관성/NPSH, 초킹, 핵생성 지연, 밸브 관성/이력, 실제 혼합 연료 및 실측 보정은 남습니다. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ko.md) + +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. [증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) diff --git a/docs/FUEL_CHAMBER_PUMP.md b/docs/FUEL_CHAMBER_PUMP.md new file mode 100644 index 0000000..e56c726 --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.md @@ -0,0 +1,37 @@ +# Shaft-driven phase-resolving fuel pump + +**English** · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Physical contract + +A `fuel_chamber` couples an actual shaft to a finite fuel-domain chamber. Inlet and outlet `fuel_check_valve` components provide pressure-driven filling and delivery. Liquid, vapor and elastic wall energy share the same material closure. An inlet-starved chamber can flash during suction; delivered fuel follows the computed inventory and pressure. + +Port `node_a` is rotational and `node_b` is a fuel node with one geometry owner. Declare `minimum_reference_volume`, `swept_volume` in `m3` or `l`, and `phase` in `rad` or `deg`. The fuel node storage matches the reference volume at the initial shaft angle within binary64 rounding. The sinusoidal mechanism has no added piston or cam inertia; shaft inertia is explicit. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Work and ports + +Closed mechanical work holds mass and entropy fixed. Stored energy includes the fluid and elastic wall, so shaft work uses the geometric reference-volume change. The same accepted energy change determines pressure torque in the joint mechanical solve, including gears, converters, hydraulics and speculative clutch intervals. Expansion pushes the shaft; positive `hydraulic_work` means work from shaft to chamber. No extra external pressure source is added. + +A `fuel_check_valve` uses declared conductance in `m3_s_pa` and optional fractional opening. It passes homogeneous donor fluid only from A to B when A has higher pressure. This is an ideal massless, zero-cracking-pressure check law. The conservative enthalpy flow and finite-wall heat contracts remain those of the fuel network. + +## Use and evidence + +Request `equilibrium-fuel-pump` or `electric-equilibrium-fuel-pump` through MCP, or run their JSON through CLI. Read chamber-node mass, temperature, pressure, vapor fractions and energy beside valve delivery and shaft speed. Component `volume` is geometric reference volume; node `volume` includes wall expansion. Chamber `torque`, `hydraulic_power` and `hydraulic_work` expose the internal shaft exchange. + +Independent liquid pressure/work, ideal-vapor adiabats and two-phase entropy inversion check the constitutive relation. Closed-liquid shaft motion demonstrates second-order refinement; the complete phase-changing filling/delivery experiment demonstrates first-order refinement against an independently inverted RK4 reference. Inlet starvation, full liquid supply, electric drive, gear/hydraulic/clutch composition, exact replay, rollback and allocation checks cover the integration. Asset v41 stores geometry and reads v1-v40. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +## Remaining work + +Parameters remain `unverified`. The material temperature, pressure and representable-volume limits apply throughout the cycle. The model assumes incompressible liquid, ideal pseudo-species vapor, instantaneous common-temperature equilibrium and zero external case pressure. Local inlet inertia/NPSH, sonic choking, nucleation delay, valve inertia/hysteresis, real fuel mixtures and measured calibration remain open. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.md) + +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. [Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) diff --git a/docs/FUEL_CHAMBER_PUMP.pt-BR.md b/docs/FUEL_CHAMBER_PUMP.pt-BR.md new file mode 100644 index 0000000..e09645f --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.pt-BR.md @@ -0,0 +1,37 @@ +# Bomba de combustível com mudança de fase acionada por eixo + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · **Português** + +## Contrato físico + +`fuel_chamber` acopla um eixo real a uma câmara finita de combustível. `fuel_check_valve` de entrada e saída fornecem enchimento e entrega por pressão. Líquido, vapor e energia elástica usam o mesmo fechamento. Com entrada insuficiente a câmara pode vaporizar na sucção; a entrega segue inventário e pressão calculados. + +`node_a` é rotacional, `node_b` um nó de combustível com um único proprietário geométrico. Declarar `minimum_reference_volume`, `swept_volume` em `m3` ou `l` e `phase` em `rad` ou `deg`. O volume inicial coincide com a geometria dentro do arredondamento binary64. O mecanismo senoidal não adiciona inércia de pistão/came; a inércia do eixo é explícita. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Trabalho e portas + +O subpasso mecânico fechado mantém massa e entropia. A energia inclui fluido e parede elástica, então o trabalho do eixo usa o volume geométrico de referência. A mesma mudança aceita determina torque no solver mecânico conjunto com engrenagens, conversores, hidráulica e intervalos especulativos da embreagem. A expansão empurra o eixo; `hydraulic_work` positivo entra na câmara. Nenhuma fonte externa adicional de pressão é incluída. + +`fuel_check_valve` usa condutância declarada em `m3_s_pa` e abertura fracionária opcional. Fluido doador homogêneo passa somente A→B quando A tem pressão maior. É uma válvula ideal sem massa e com pressão de abertura zero. Mantêm-se os contratos de entalpia conservativa e calor de parede finita da rede. + +## Uso e evidências + +Pedir `equilibrium-fuel-pump` ou `electric-equilibrium-fuel-pump` pelo MCP ou executar JSON na CLI. Ler massa, temperatura, pressão, vapor e energia junto à entrega de válvulas e velocidade do eixo. `volume` do componente é geométrico; `volume` do nó inclui expansão da parede. `torque`, `hydraulic_power`, `hydraulic_work` mostram a troca interna. + +Pressão/trabalho líquidos, adiabáticas de vapor ideal e inversão independente de entropia bifásica verificam o fechamento. O movimento líquido fechado refina em segunda ordem; enchimento/entrega com fase em primeira contra RK4 invertido independentemente. Falta e suprimento completo de entrada, acionamento elétrico, engrenagens/hidráulica/embreagem, replay, rollback e alocações cobrem integração. Asset v41 guarda geometria e lê v1-v40. Unity Editor/Play/Player/IL2CPP real segue não verificado. + +## Trabalho restante + +Parâmetros permanecem `unverified`. Temperatura, pressão e volume representável são limitados durante todo o ciclo. Assume-se líquido incompressível, vapor ideal de pseudoespécie, equilíbrio instantâneo em temperatura comum e pressão externa de carcaça zero. Inércia local/NPSH, escoamento crítico, atraso de nucleação, inércia/histerese de válvula, misturas reais e calibração medida seguem abertos. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.pt-BR.md) + +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. [Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) diff --git a/docs/FUEL_CHAMBER_PUMP.ru.md b/docs/FUEL_CHAMBER_PUMP.ru.md new file mode 100644 index 0000000..bc832f7 --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.ru.md @@ -0,0 +1,37 @@ +# Фазоразрешающий топливный насос с приводом от вала + +[English](FUEL_CHAMBER_PUMP.md) · [简体中文](FUEL_CHAMBER_PUMP.zh-CN.md) · [Français](FUEL_CHAMBER_PUMP.fr.md) · **Русский** · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## Физический контракт + +`fuel_chamber` связывает фактический вал с конечной камерой топлива. Входной и выходной `fuel_check_valve` обеспечивают наполнение и подачу по перепаду давления. Жидкость, пар и упругая энергия используют одно замыкание. При недостаточном притоке камера может испарять топливо на всасывании; подача следует рассчитанным массе и давлению. + +`node_a` вращательный, `node_b` — топливный узел с единственным владельцем геометрии. Задать `minimum_reference_volume`, `swept_volume` в `m3` или `l`, `phase` в `rad` или `deg`. Начальный объём узла совпадает с геометрией в пределах округления binary64. Синусоидальный механизм не добавляет инерции поршня или кулачка; инерция вала явная. + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## Работа и порты + +Закрытый механический подшаг сохраняет массу и энтропию. Запас энергии включает среду и упругую стенку, поэтому работа вала относится к геометрическому опорному объёму. То же принятое изменение энергии задаёт момент в совместном решателе, включая передачи, конвертеры, гидравлику и пробные интервалы сцепления. Расширение движет вал; положительный `hydraulic_work` направлен в камеру. Дополнительный внешний источник давления не вводится. + +`fuel_check_valve` использует явную проводимость в `m3_s_pa` и необязательное долевое открытие. Однородная среда идёт только A→B при более высоком давлении A. Клапан идеальный, без массы и ненулевого порога открытия. Сохраняются контракты консервативного переноса энтальпии и конечного теплообмена сети. + +## Использование и доказательства + +Запросить `equilibrium-fuel-pump` или `electric-equilibrium-fuel-pump` через MCP либо запустить JSON в CLI. Читать массу, температуру, давление, пар и энергию рядом с подачей клапанов и скоростью вала. `volume` компонента геометрический; `volume` узла включает упругость. `torque`, `hydraulic_power`, `hydraulic_work` показывают внутренний обмен с валом. + +Независимые работа/давление жидкости, адиабаты идеального пара и обращение двухфазной энтропии проверяют замыкание. Закрытая жидкостная механика показывает второй порядок; полное фазовое наполнение/подача — первый порядок относительно независимо обращённой RK4-опоры. Недостаточный и полный приток, электропривод, передачи/гидравлика/сцепления, воспроизведение, откат и выделения памяти проверяют интеграцию. Asset v41 хранит геометрию и читает v1-v40. Фактический Unity Editor/Play/Player/IL2CPP не проверен. + +## Оставшаяся работа + +Параметры остаются `unverified`. Границы температуры, давления и представимого объёма действуют весь цикл. Приняты несжимаемая жидкость, идеальная псевдокомпонента пара, мгновенное равновесие при общей температуре и нулевое внешнее давление корпуса. Местная инерция/NPSH, критический поток, задержка нуклеации, инерция/гистерезис клапанов, реальные смеси и измеренная калибровка открыты. + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ru.md) + +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. [Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) diff --git a/docs/FUEL_CHAMBER_PUMP.zh-CN.md b/docs/FUEL_CHAMBER_PUMP.zh-CN.md new file mode 100644 index 0000000..373febb --- /dev/null +++ b/docs/FUEL_CHAMBER_PUMP.zh-CN.md @@ -0,0 +1,37 @@ +# 轴驱动相变燃料泵 + +[English](FUEL_CHAMBER_PUMP.md) · **简体中文** · [Français](FUEL_CHAMBER_PUMP.fr.md) · [Русский](FUEL_CHAMBER_PUMP.ru.md) · [日本語](FUEL_CHAMBER_PUMP.ja.md) · [한국어](FUEL_CHAMBER_PUMP.ko.md) · [Deutsch](FUEL_CHAMBER_PUMP.de.md) · [Español](FUEL_CHAMBER_PUMP.es.md) · [Italiano](FUEL_CHAMBER_PUMP.it.md) · [Português](FUEL_CHAMBER_PUMP.pt-BR.md) + +## 物理契约 + +`fuel_chamber` 将实际转轴与有限燃料域腔体耦合。进出口 `fuel_check_valve` 通过压差完成充填与排出。液体、蒸气和弹性壁储能使用同一物性闭合关系。入口供给不足时,腔体可在吸入期间闪蒸;交付燃料由实际库存和压力决定。 + +`node_a` 为转动节点,`node_b` 为仅有一个几何所有者的燃料节点。显式声明以 `m3` 或 `l` 表示的 `minimum_reference_volume`、`swept_volume`,以及以 `rad` 或 `deg` 表示的 `phase`。燃料节点储存的参考体积在 binary64 舍入范围内匹配初始轴角几何。正弦机构不增加活塞或凸轮惯性,轴惯性显式给出。 + +```text +V0(theta) = Vmin + Vs sin^2((theta - phase) / 2) +V = V0(theta) + C p +E = U_fluid + C p^2 / 2 +dE = T dS + mu dM - p dV0 +torque_pressure = -delta_E_adiabatic / delta_theta +``` + +## 功与端口 + +封闭机械子步保持质量与熵不变。储能包含流体和弹性壁,因此轴功使用几何参考体积的变化。同一组已接受能量变化在联合机械求解中确定压力转矩,并包含齿轮、变矩器、液压和离合器试探区间。膨胀推动轴;正 `hydraulic_work` 表示轴向腔体做功。不添加额外外部压力源。 + +`fuel_check_valve` 使用以 `m3_s_pa` 表示的显式流导及可选比例开度。仅当 A 压力较高时,均匀供体流体才从 A 流向 B。这是无质量、零开启压差的理想单向阀。守恒焓流与有限壁传热沿用燃料网络契约。 + +## 使用与证据 + +通过 MCP 请求 `equilibrium-fuel-pump` 或 `electric-equilibrium-fuel-pump`,也可用 CLI 运行其 JSON。联合读取腔体质量、温度、压力、蒸气比例、能量、阀交付量与轴速。组件 `volume` 是几何参考体积,节点 `volume` 包含壁膨胀。腔体 `torque`、`hydraulic_power`、`hydraulic_work` 公开内部轴功交换。 + +独立液体压力/功、理想蒸气绝热关系和两相熵反演检查本构关系。封闭液体轴运动验证二阶细化;完整相变充填/排出实验相对独立反演的 RK4 参考验证一阶细化。入口不足、充分液体供给、电驱动、齿轮/液压/离合器组合、精确回放、回滚和分配检查覆盖集成。资产 v41 保存几何并读取 v1-v40。实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +## 后续工作 + +参数保持 `unverified`。整个循环均遵守物性温度、压力及可分辨体积边界。模型假设不可压缩液体、理想伪组分蒸气、瞬时共同温度平衡及零外部壳体压力。局部入口惯性/NPSH、临界流、成核延迟、阀惯性/滞回、真实燃料混合物及实测标定仍待实现。 + +[Modelica: swept volume](https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Fluid.Machines.SweptVolume.html) · [Cantera: reactor walls](https://cantera.org/dev/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.zh-CN.md) + +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 [冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) diff --git a/docs/FUEL_DISCHARGE.de.md b/docs/FUEL_DISCHARGE.de.md new file mode 100644 index 0000000..c66c34c --- /dev/null +++ b/docs/FUEL_DISCHARGE.de.md @@ -0,0 +1,39 @@ +# Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · **Deutsch** · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Physikalisches Modell + +Ein `fuel_discharge` verbindet eine endliche Kraftstoffquelle mit dem Gasknoten eines `finite_fuel_film`. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Düsendurchgang konstant, beide Endvolumina stellen sich erneut ins Gleichgewicht. Die homogenen Phasen teilen Temperatur und Geschwindigkeit; Flüssigkeit ist inkompressibel, Dampf eine ideale Pseudospezies. Stoffdaten und Flüssigkeitsdichte müssen übereinstimmen. + +Für stromaufwärtigen Ruhedruck und Ruhetemperatur wird dieser Massenfluss zwischen Empfänger- und Quelldruck maximiert. Das einzige innere Maximum begrenzt die kritische Strömung. Reine Flüssigkeit ergibt Bernoulli, reiner Dampf die ideale Schallbedingung. Der Durchflusskoeffizient skaliert die wirksame Halsfläche. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Energie, Volumen und Impuls + +Die Quelle verliert transportierte Ruheenthalpie. `wall_kinetic_fraction` weist einen Teil der ideal vollständig expandierten Strahlenergie der endlichen ruhenden Filmwand zu; der Rest gelangt ins Fluid. Die Referenzgeschwindigkeit setzt ideale Expansion auf Empfängerdruck voraus und sagt keine gemessene Austrittsgeschwindigkeit voraus. Strahlimpuls wirkt auf den ruhenden Empfänger, mit Gegenreaktion am Gehäuse. Diese Reaktionen leisten keine Arbeit und erzeugen keine zusätzliche Kolben- oder Nadelkraft. + +`finite_volume_density` ist explizit. Gas-`volume` ist Hohlraumvolumen minus Flüssigkeitsmasse/Dichte; Film-`volume` ist verdrängtes Flüssigkeitsvolumen. Ein bewegter Zylinder berechnet Druckarbeit bei konstanter Masse und Entropie des gesamten Empfängers. Verdrängungsarbeit bleibt intern. Feste Hohlräume und Kurbelzylinder werden unterstützt, lineare Gaskolben nicht. + +## Nutzung und Nachweise + +`finite-volume-fuel-discharge` zeigt kritische Zweiphasenströmung, `pump-fed-finite-volume-cylinder` elektrische Pumpe, physische Magnetnadel und vorgegebene Verbrennung. Optionale `needle` und `valve_timing` multiplizieren die Öffnung. Explizite Spannungspulse treiben das Beispiel ohne Zyklusmassenanforderung oder abgetasteten Dosisregler. `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` und `choked` zusammen mit vollständigen Inventaren lesen. Die letzten vier Werte behalten bei Stillstand den letzten akzeptierten Strömungszustand. + +Unabhängige Bernoulli- und Idealgasgrenzen, separate Gemischflussmaximierung, Energie-/Entropieprüfungen und unabhängig integrierte Düsen-/Empfänger-ODE prüfen die Gleichungen. Zeitverfeinerung ist erster Ordnung. Portable Wiedergabe, echter MCP, Rücknahme, Abbruch, unabhängige Zweige und Allokationsprüfungen decken die Integration ab. Tatsächlicher Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +## Gültigkeit und nächste Arbeit + +Parameter bleiben `unverified`. Temperaturgrenzen, positives Gasvolumen und verdünnter Dampf gelten. Lokale Einlassträgheit, endliche Keimbildung, Phasenschlupf, aufgelöster Spray, reales kritisches Verhalten und Messkalibrierung fehlen. Vorgegebene Verbrennung bestätigt weder chemisches Gleichgewicht noch Reaktionsentropie. Weiter mit Einlassdynamik, Zündung, Gaswechsel, Verlusten und ECU/TCU-Koordination. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.es.md b/docs/FUEL_DISCHARGE.es.md new file mode 100644 index 0000000..81298d1 --- /dev/null +++ b/docs/FUEL_DISCHARGE.es.md @@ -0,0 +1,39 @@ +# Descarga de combustible con calidad congelada y receptores finitos + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · **Español** · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Modelo físico + +Un `fuel_discharge` conecta una fuente finita del dominio de combustible al nodo gaseoso de un `finite_fuel_film`. Declare `phase_mode` como `frozen`: la fracción másica de vapor queda fija durante el paso por la tobera y ambos volúmenes vuelven al equilibrio. Las fases homogéneas comparten temperatura y velocidad; el líquido es incompresible y el vapor una pseudoespecie ideal. Propiedades y densidad deben coincidir. + +Para presión y temperatura de remanso aguas arriba, maximice este flujo másico entre presión receptora y de origen. El único máximo interior limita el flujo estrangulado. Los límites de líquido y vapor puros dan Bernoulli y la relación sónica del gas ideal. El coeficiente de descarga escala el área efectiva de garganta. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Energía, volumen y cantidad de movimiento + +La fuente pierde la entalpía de remanso transportada. `wall_kinetic_fraction` asigna parte de la energía cinética del chorro ideal totalmente expandido a la pared finita inmóvil; el resto entra en el fluido receptor. La velocidad de referencia supone expansión ideal hasta la presión receptora y no predice una velocidad de salida medida. El impulso llega al receptor estacionario con reacción opuesta de la carcasa; estas reacciones no realizan trabajo ni añaden fuerza al pistón o aguja. + +Declare `finite_volume_density`. El `volume` gaseoso es la cavidad menos masa líquida/densidad; el `volume` de película es el desplazamiento líquido. El cilindro móvil calcula trabajo a masa y entropía constantes del receptor completo. El trabajo de desplazamiento es interno. Se admiten cavidades fijas y cilindros de cigüeñal, no pistones gaseosos lineales. + +## Uso y evidencia + +Ejecute `finite-volume-fuel-discharge` para estrangulamiento de fuente bifásica, o `pump-fed-finite-volume-cylinder` para bomba eléctrica, aguja electromagnética física y combustión prescrita. `needle` y `valve_timing` opcionales multiplican la apertura. El ejemplo usa pulsos explícitos de tensión sin masa solicitada por ciclo ni controlador de dosis muestreado. Lea `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` y `choked` con inventarios completos. Los cuatro últimos conservan el último estado de flujo aceptado al detenerse el caudal. + +Límites independientes de Bernoulli y gas ideal, maximización separada del flujo de mezcla, energía/entropía y ODE independiente de tobera/receptor verifican las ecuaciones. El refinamiento temporal es de primer orden. Reproducción portable, MCP real, reversión, cancelación, ramas independientes y asignaciones verifican la integración. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +## Validez y trabajo siguiente + +Los parámetros siguen `unverified`. Se aplican temperaturas declaradas, volumen gaseoso positivo y dominio de vapor diluido. Se omiten inercia local de entrada, nucleación finita, deslizamiento, spray resuelto, comportamiento crítico real y calibración medida. La combustión prescrita no acredita equilibrio químico ni entropía de reacción. Continúe entrada, encendido, admisión/escape, pérdidas y coordinación ECU/TCU. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.fr.md b/docs/FUEL_DISCHARGE.fr.md new file mode 100644 index 0000000..7112342 --- /dev/null +++ b/docs/FUEL_DISCHARGE.fr.md @@ -0,0 +1,39 @@ +# Décharge de carburant à titre figé et récepteurs finis + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · **Français** · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Modèle physique + +Un `fuel_discharge` relie une source finie du domaine carburant au nœud gazeux d'un `finite_fuel_film`. Déclarer `phase_mode` à `frozen` : le titre massique vapeur reste figé dans la tuyère, tandis que les deux volumes retrouvent leur équilibre. Les phases homogènes partagent température et vitesse ; le liquide est incompressible et la vapeur une pseudo-espèce idéale. Propriétés et masse volumique doivent correspondre. + +Pour la pression et la température d'arrêt amont, maximiser ce flux massique entre pression réceptrice et pression amont. L'unique maximum intérieur limite le débit étranglé. Les limites liquide pur et vapeur pure donnent Bernoulli et la relation sonique du gaz idéal. Le coefficient de débit module l'aire efficace du col. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Énergie, volume et quantité de mouvement + +La source perd l'enthalpie d'arrêt transportée. `wall_kinetic_fraction` affecte une part de l'énergie cinétique du jet idéal complètement détendu à la paroi finie immobile ; le reste entre dans le fluide. Cette vitesse de référence suppose une détente idéale jusqu'à la pression réceptrice, sans prédire une vitesse de sortie mesurée. L'impulsion atteint le récepteur immobile, avec réaction opposée du carter ; ces réactions ne travaillent pas et n'ajoutent aucune force au piston ou à l'aiguille. + +Déclarer `finite_volume_density`. Le `volume` gazeux est celui de la cavité moins masse liquide/masse volumique ; le `volume` du film est le déplacement liquide. Le cylindre mobile applique un travail à masse et entropie constantes au récepteur entier. Ce travail reste interne. Cavités fixes et cylindres à manivelle sont pris en charge ; un piston gazeux linéaire ne peut posséder ce récepteur. + +## Utilisation et preuves + +Exécuter `finite-volume-fuel-discharge` pour l'étranglement d'une source diphasique, ou `pump-fed-finite-volume-cylinder` pour pompe électrique, aiguille électromagnétique physique et combustion prescrite. `needle` et `valve_timing` multiplient l'ouverture. Des impulsions de tension explicites commandent l'exemple, sans masse demandée par cycle ni régulateur de dose échantillonné. Lire `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` et `choked` avec les inventaires complets. Les quatre dernières valeurs conservent le dernier état accepté en écoulement à l'arrêt du débit. + +Limites indépendantes de Bernoulli et du gaz idéal, maximisation séparée du flux diphasique, bilans d'énergie/entropie et ODE indépendante tuyère/récepteur vérifient les équations. Le raffinement temporel est du premier ordre. Relecture portable, MCP réel, annulation, rollback, branches indépendantes et allocations couvrent l'intégration. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +## Validité et suite + +Les paramètres restent `unverified`. Respecter températures déclarées, volume gazeux positif et domaine vapeur diluée. Inertie locale d'entrée, nucléation à vitesse finie, glissement, spray résolu, comportement critique réel et calibration mesurée sont omis. La combustion prescrite ne valide pas l'équilibre chimique ni l'entropie réactionnelle. Poursuivre entrée, allumage, admission/échappement, pertes et coordination ECU/TCU. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.it.md b/docs/FUEL_DISCHARGE.it.md new file mode 100644 index 0000000..6a334c5 --- /dev/null +++ b/docs/FUEL_DISCHARGE.it.md @@ -0,0 +1,39 @@ +# Scarico carburante a titolo congelato e ricevitori finiti + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · **Italiano** · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Modello fisico + +Un `fuel_discharge` collega una sorgente finita del dominio carburante al nodo gas di un `finite_fuel_film`. Dichiarare `phase_mode` come `frozen`: il titolo massico del vapore resta fisso nell'ugello mentre i volumi alle estremità tornano in equilibrio. Le fasi omogenee condividono temperatura e velocità; liquido incomprimibile e vapore come pseudospecie ideale. Proprietà e densità devono coincidere. + +Per pressione e temperatura di ristagno a monte, massimizzare questo flusso massico tra pressione ricevente e sorgente. L'unico massimo interno limita il flusso strozzato. Liquido e vapore puri danno Bernoulli e la relazione sonica del gas ideale. Il coefficiente di efflusso scala l'area efficace di gola. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Energia, volume e quantità di moto + +La sorgente perde l'entalpia di ristagno trasportata. `wall_kinetic_fraction` assegna parte dell'energia cinetica del getto ideale completamente espanso alla parete finita ferma; il resto entra nel fluido. La velocità di riferimento assume espansione ideale alla pressione ricevente e non predice una velocità d'uscita misurata. L'impulso raggiunge il ricevitore fermo con reazione opposta della carcassa; queste reazioni non compiono lavoro né aggiungono forza a pistone o ago. + +Dichiarare `finite_volume_density`. Il `volume` del gas è la cavità meno massa liquida/densità; il `volume` del film è il volume liquido spostato. Il cilindro mobile calcola lavoro a massa ed entropia costanti dell'intero ricevitore. Il lavoro di spostamento è interno. Sono supportati cavità fisse e cilindri a manovella, non pistoni gas lineari. + +## Uso e prove + +Eseguire `finite-volume-fuel-discharge` per strozzamento da sorgente bifase, o `pump-fed-finite-volume-cylinder` per pompa elettrica, ago elettromagnetico fisico e combustione prescritta. `needle` e `valve_timing` opzionali moltiplicano l'apertura. L'esempio usa impulsi espliciti di tensione senza massa richiesta per ciclo o controllo dose campionato. Leggere `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` e `choked` insieme agli inventari completi. Gli ultimi quattro valori mantengono l'ultimo stato di flusso accettato dopo l'arresto. + +Limiti indipendenti di Bernoulli e gas ideale, massimizzazione separata del flusso bifase, energia/entropia e ODE ugello/ricevitore integrata indipendentemente verificano le equazioni. Il raffinamento temporale è del primo ordine. Replay portabile, MCP reale, rollback, annullamento, rami indipendenti e allocazioni coprono l'integrazione. Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +## Validità e lavoro successivo + +I parametri restano `unverified`. Valgono temperature dichiarate, volume gas positivo e dominio di vapore diluito. Mancano inerzia locale d'ingresso, nucleazione finita, scorrimento delle fasi, spray risolto, criticità reale e calibrazione misurata. La combustione prescritta non prova equilibrio chimico o entropia di reazione. Proseguire ingresso, accensione, aspirazione/scarico, perdite e ECU/TCU coordinati. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.ja.md b/docs/FUEL_DISCHARGE.ja.md new file mode 100644 index 0000000..f471fb9 --- /dev/null +++ b/docs/FUEL_DISCHARGE.ja.md @@ -0,0 +1,39 @@ +# 蒸気質量分率を凍結した燃料流出と有限受容室 + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · **日本語** · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## 物理モデル + +`fuel_discharge` は有限燃料源を `finite_fuel_film` の気体ノードへ接続します。`phase_mode` を `frozen` と宣言し、ノズル通過中の蒸気質量分率を固定します。両端のバルクは再平衡化します。均質な両相は温度と速度を共有し、液体は非圧縮、蒸気は理想擬似種です。材料特性と液体密度は一致する必要があります。 + +上流よどみ圧力と温度に対し、受容圧力から上流圧力まで次の質量流束を最大化します。唯一の内部極大がチョーク流量を制限します。純液体極限はベルヌーイ、純蒸気極限は理想気体の音速関係です。流量係数は有効スロート面積を調整します。 + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## エネルギー、体積、運動量 + +供給源は輸送するよどみエンタルピーを失います。`wall_kinetic_fraction` が理想完全膨張噴流の運動エネルギーの一部を有限静止壁へ配分し、残りは受容流体へ入ります。この参考速度は受容圧力までの理想膨張を仮定し、実測出口速度を予測しません。噴流力積は静止受容壁へ、逆反力は筐体へ伝わります。静止反力は仕事をせず、ピストンやニードル力を追加しません。 + +`finite_volume_density` を明示します。気体 `volume` は空洞体積から液体質量/密度を引いた値、膜 `volume` は液体排除体積です。移動シリンダーは受容系全体の質量・エントロピーを保って圧力仕事を計算します。排除仕事は内部に留まります。固定空洞とクランクシリンダーを支持し、直動気体ピストンには対応しません。 + +## 使用と証拠 + +`finite-volume-fuel-discharge` で混相源のチョーク、`pump-fed-finite-volume-cylinder` で電動ポンプ、実際のソレノイドニードル、規定燃焼を実行します。任意の `needle` と `valve_timing` は開度に乗算されます。新例は明示電圧パルスを使い、要求サイクル質量やサンプル式投与制御はありません。`jet_kinetic_energy`、`jet_impulse`、`force`、`throat_pressure`、`exit_temperature`、`exit_velocity`、`choked` を全在庫と読みます。最後の四値は停止時も最後に採用された流動状態を保持します。 + +独立したベルヌーイ・理想気体極限、別の混相流束最大化、エネルギー/エントロピー、独立積分したノズル/受容室 ODE で検証します。時間収束は一次です。可搬再生、実 MCP、ロールバック、キャンセル、独立分岐、割り当て検査が統合を確認します。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +## 適用範囲と次の作業 + +パラメーターは `unverified` です。宣言温度、正の気体体積、希薄蒸気領域を守ります。入口局所慣性、有限速度核生成、相間滑り、解像噴霧、実流体臨界挙動、実測校正を含みません。規定燃焼は化学平衡や反応エントロピーの精度を示しません。入口動特性、点火、吸排気、損失、ECU/TCU 協調へ進みます。 + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.ko.md b/docs/FUEL_DISCHARGE.ko.md new file mode 100644 index 0000000..9e0375d --- /dev/null +++ b/docs/FUEL_DISCHARGE.ko.md @@ -0,0 +1,39 @@ +# 증기 질량분율 동결 연료 토출과 유한 수용실 + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · **한국어** · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## 물리 모델 + +`fuel_discharge`는 유한 연료 도메인 공급원을 `finite_fuel_film`의 기체 노드에 연결합니다. `phase_mode`를 `frozen`으로 선언하면 노즐 통과 중 증기 질량분율은 고정되고 양쪽 벌크는 다시 평형화됩니다. 균질 두 상은 온도와 속도를 공유합니다. 액체는 비압축성이고 증기는 이상 의사 종입니다. 재료 특성과 액체 밀도가 같아야 합니다. + +상류 정체 압력과 온도에서 수용 압력과 상류 압력 사이의 다음 질량 유속을 최대화합니다. 유일한 내부 최대가 초크 유량을 제한합니다. 순수 액체는 베르누이, 순수 증기는 이상기체 음속 관계로 수렴합니다. 유량 계수는 유효 목 면적을 조절합니다. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## 에너지, 체적 및 운동량 + +공급원은 운반된 정체 엔탈피를 잃습니다. `wall_kinetic_fraction`은 이상 완전 팽창 제트 운동에너지 일부를 유한 정지 벽에 배분하고 나머지는 수용 유체에 들어갑니다. 이 기준 속도는 수용 압력까지 이상 팽창을 가정하며 실측 출구 속도를 예측하지 않습니다. 충격량은 정지 수용 벽에 전달되고 하우징은 반대 반력을 받습니다. 정지 반력은 일을 하지 않으며 피스톤이나 니들 힘을 추가하지 않습니다. + +`finite_volume_density`를 명시합니다. 기체 `volume`은 공동 체적에서 액체 질량/밀도를 뺀 값이고 막 `volume`은 액체 배제 체적입니다. 움직이는 실린더는 수용계 전체의 질량과 엔트로피를 보존해 압력 일을 구합니다. 배제 일은 내부에 남습니다. 고정 공동과 크랭크 실린더를 지원하며 선형 기체 피스톤은 지원하지 않습니다. + +## 사용 및 증거 + +`finite-volume-fuel-discharge`로 혼합 공급원 초크를, `pump-fed-finite-volume-cylinder`로 전동 펌프, 물리 솔레노이드 니들 및 규정 연소를 실행합니다. 선택적 `needle`과 `valve_timing`은 개도에 곱해집니다. 새 예제는 명시적 전압 펄스를 사용하며 사이클 질량 요구나 샘플 투여 제어기가 없습니다. `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity`, `choked`를 전체 재고와 읽습니다. 마지막 네 값은 정지 후 마지막으로 수용된 유동 상태를 유지합니다. + +독립 베르누이·이상기체 극한, 별도 혼합 유속 최대화, 에너지/엔트로피 및 독립 적분 노즐/수용실 ODE로 방정식을 검사합니다. 시간 수렴은 1차입니다. 이식 자산 재생, 실제 MCP, 롤백, 취소, 독립 분기 및 할당 검사가 통합을 확인합니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +## 유효 범위와 후속 작업 + +매개변수는 `unverified`입니다. 선언 온도 경계, 양의 기체 체적, 희박 증기 영역을 지킵니다. 입구 국소 관성, 유한 속도 핵생성, 상간 미끄럼, 분무 해상, 실제 유체 임계 거동 및 실측 보정은 빠져 있습니다. 규정 연소는 화학평형이나 반응 엔트로피 정확도를 입증하지 않습니다. 입구 동역학, 점화, 흡배기, 손실 및 ECU/TCU 협조로 진행합니다. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.md b/docs/FUEL_DISCHARGE.md new file mode 100644 index 0000000..f5d66ac --- /dev/null +++ b/docs/FUEL_DISCHARGE.md @@ -0,0 +1,39 @@ +# Frozen-quality fuel discharge and finite receivers + +**English** · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Physical model + +A `fuel_discharge` connects a finite fuel-domain source to the gas node of a `finite_fuel_film`. Declare `phase_mode` as `frozen`: vapor mass quality stays fixed during nozzle transit, while both bulk endpoints re-equilibrate. The homogeneous phases share temperature and velocity; liquid is incompressible and vapor is an ideal pseudo-species. Source and receiver material properties and liquid density must agree. + +For upstream stagnation pressure and temperature, maximize the following mass flux between receiver and upstream pressure. The unique interior maximum limits choked flow. The pure-liquid limit is Bernoulli and the pure-vapor limit is the ideal-gas sonic relation. The discharge coefficient scales effective throat area. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Energy, volume and momentum + +The source loses transported stagnation enthalpy. `wall_kinetic_fraction` assigns part of the ideal fully expanded jet kinetic energy to the finite stationary film wall; the remaining energy enters receiver fluid. This reference speed assumes ideal expansion to receiver pressure and does not predict a measured nozzle exit speed. Jet impulse goes to the stationary receiver, with the opposite housing reaction; these stationary reactions do no work and add no piston or needle force. + +Declare `finite_volume_density` explicitly. Gas `volume` is cavity volume minus liquid mass/density; film `volume` is displaced liquid volume. A moving cylinder uses closed mass/entropy pressure work on the entire receiver. Displacement work stays internal. Fixed cavities and crank cylinders are supported; a linear gas piston cannot own this receiver. + +## Use and evidence + +Run `finite-volume-fuel-discharge` for mixed-source choking, or `pump-fed-finite-volume-cylinder` for electric pump, physical solenoid needle and prescribed firing. Optional `needle` motion and `valve_timing` multiply opening. Explicit voltage pulses drive the new example; it has no requested cycle mass or sampled dose controller. Read `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` and `choked` alongside the complete inventories. The last four values retain the last accepted flowing nozzle state when flow stops. + +Independent Bernoulli and ideal-gas limits, a separate mixture flux maximization, energy/entropy checks and an independently integrated liquid-nozzle/receiver ODE test the equations. Time refinement is first order. Portable asset replay, actual MCP, rollback, cancellation, independent branches and allocation checks cover integration. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +## Validity and next work + +Parameters remain `unverified`. Enforce declared temperature bounds, positive gas volume and the dilute-vapor material domain. The model omits local inlet inertia, finite-rate nucleation, phase slip, resolved spray, real-fluid critical behavior and measured hardware calibration. Prescribed combustion does not establish chemical-equilibrium or reaction-entropy accuracy. Continue inlet dynamics, ignition, intake/exhaust, mechanical losses and coordinated ECU/TCU control. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.pt-BR.md b/docs/FUEL_DISCHARGE.pt-BR.md new file mode 100644 index 0000000..91e8359 --- /dev/null +++ b/docs/FUEL_DISCHARGE.pt-BR.md @@ -0,0 +1,39 @@ +# Descarga de combustível com título congelado e receptores finitos + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · **Português** + +## Modelo físico + +Um `fuel_discharge` conecta uma fonte finita do domínio de combustível ao nó gasoso de um `finite_fuel_film`. Declare `phase_mode` como `frozen`: o título mássico de vapor fica fixo na passagem pelo bocal, enquanto os volumes das extremidades voltam ao equilíbrio. As fases homogêneas compartilham temperatura e velocidade; líquido incompressível e vapor como pseudoespécie ideal. Propriedades e densidade devem coincidir. + +Para pressão e temperatura de estagnação a montante, maximize este fluxo mássico entre pressão receptora e da fonte. O único máximo interno limita o escoamento estrangulado. Líquido e vapor puros resultam em Bernoulli e na relação sônica do gás ideal. O coeficiente de descarga escala a área efetiva da garganta. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Energia, volume e quantidade de movimento + +A fonte perde a entalpia de estagnação transportada. `wall_kinetic_fraction` atribui parte da energia cinética do jato ideal totalmente expandido à parede finita imóvel; o restante entra no fluido receptor. A velocidade de referência supõe expansão ideal até a pressão receptora e não prevê uma velocidade de saída medida. O impulso chega ao receptor estacionário, com reação oposta na carcaça; essas reações não fazem trabalho nem acrescentam força ao pistão ou agulha. + +Declare `finite_volume_density`. O `volume` gasoso é a cavidade menos massa líquida/densidade; o `volume` do filme é o deslocamento líquido. O cilindro móvel calcula trabalho com massa e entropia constantes do receptor inteiro. O trabalho de deslocamento é interno. Cavidades fixas e cilindros de manivela são suportados; pistões gasosos lineares não. + +## Uso e evidências + +Execute `finite-volume-fuel-discharge` para estrangulamento de fonte bifásica, ou `pump-fed-finite-volume-cylinder` para bomba elétrica, agulha eletromagnética física e combustão prescrita. `needle` e `valve_timing` opcionais multiplicam a abertura. O exemplo usa pulsos explícitos de tensão sem massa solicitada por ciclo ou controle de dose amostrado. Leia `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` e `choked` com os inventários completos. Os quatro últimos mantêm o último estado de fluxo aceito quando a vazão para. + +Limites independentes de Bernoulli e gás ideal, maximização separada do fluxo bifásico, energia/entropia e ODE independente bocal/receptor verificam as equações. O refinamento temporal é de primeira ordem. Replay portátil, MCP real, rollback, cancelamento, ramos independentes e alocações verificam a integração. Unity Editor/Play/Player/IL2CPP real segue sem verificação. + +## Validade e próximos trabalhos + +Os parâmetros seguem `unverified`. Respeite temperaturas declaradas, volume gasoso positivo e domínio de vapor diluído. Faltam inércia local de entrada, nucleação finita, deslizamento de fases, spray resolvido, comportamento crítico real e calibração medida. Combustão prescrita não comprova equilíbrio químico ou entropia de reação. Continue entrada, ignição, admissão/escape, perdas e coordenação ECU/TCU. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.ru.md b/docs/FUEL_DISCHARGE.ru.md new file mode 100644 index 0000000..c40d9c1 --- /dev/null +++ b/docs/FUEL_DISCHARGE.ru.md @@ -0,0 +1,39 @@ +# Подача топлива с замороженным паросодержанием в конечный приёмник + +[English](FUEL_DISCHARGE.md) · [简体中文](FUEL_DISCHARGE.zh-CN.md) · [Français](FUEL_DISCHARGE.fr.md) · **Русский** · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## Физическая модель + +`fuel_discharge` связывает конечный источник топливного домена с газовым узлом `finite_fuel_film`. Задайте `phase_mode` как `frozen`: массовая доля пара постоянна в сопле, а объёмы на концах вновь уравновешиваются. Однородные фазы имеют общие температуру и скорость; жидкость несжимаема, пар — идеальная псевдокомпонента. Свойства и плотность жидкости должны совпадать. + +Для давления и температуры торможения источника максимизируется этот массовый поток между давлением приёмника и источника. Единственный внутренний максимум ограничивает критический расход. Пределы чистой жидкости и пара дают Бернулли и звуковую формулу идеального газа. Коэффициент расхода масштабирует эффективную площадь горла. + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## Энергия, объём и импульс + +Источник теряет переносимую энтальпию торможения. `wall_kinetic_fraction` направляет часть кинетической энергии идеально расширенного потока к конечной неподвижной стенке; остальное получает жидкость приёмника. Опорная скорость предполагает идеальное расширение до давления приёмника и не предсказывает измеренную скорость выхода. Импульс передаётся неподвижному приёмнику с противоположной реакцией корпуса; эти реакции не совершают работы и не добавляют силы поршню или игле. + +Явно задайте `finite_volume_density`. Газовый `volume` равен объёму полости минус масса жидкости/плотность; `volume` плёнки — вытесненный объём. Движущийся цилиндр выполняет работу при постоянных массе и энтропии всего приёмника. Работа вытеснения внутренняя. Поддерживаются неподвижные полости и кривошипные цилиндры; линейный газовый поршень несовместим. + +## Использование и доказательства + +Запустите `finite-volume-fuel-discharge` для критического двухфазного потока или `pump-fed-finite-volume-cylinder` для электронасоса, физической электромагнитной иглы и предписанного горения. `needle` и `valve_timing` умножают открытие. Пример использует явные импульсы напряжения без запроса массы за цикл и регулятора дозы. Читайте `jet_kinetic_energy`, `jet_impulse`, `force`, `throat_pressure`, `exit_temperature`, `exit_velocity` и `choked` вместе с полным запасом. Последние четыре величины сохраняют последнее принятое проточное состояние после остановки расхода. + +Независимые пределы Бернулли и идеального газа, отдельная максимизация потока смеси, энергия/энтропия и независимо интегрированная ODE сопла/приёмника проверяют уравнения. Временная сходимость первого порядка. Переносимое воспроизведение, реальный MCP, откат, отмена, независимые ветви и память проверяют интеграцию. Unity Editor/Play/Player/IL2CPP фактически не проверен. + +## Область применимости и дальнейшая работа + +Параметры остаются `unverified`. Действуют заданные температуры, положительный газовый объём и разреженный пар. Не учтены местная входная инерция, конечная нуклеация, скольжение фаз, разрешённый распыл, реальная критическая область и измеренная калибровка. Предписанное горение не подтверждает химическое равновесие и энтропию реакции. Далее — вход, зажигание, впуск/выпуск, потери и ECU/TCU. + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_DISCHARGE.zh-CN.md b/docs/FUEL_DISCHARGE.zh-CN.md new file mode 100644 index 0000000..f63f624 --- /dev/null +++ b/docs/FUEL_DISCHARGE.zh-CN.md @@ -0,0 +1,39 @@ +# 冻结汽相质量分数的燃油喷流与有限体积接收腔 + +[English](FUEL_DISCHARGE.md) · **简体中文** · [Français](FUEL_DISCHARGE.fr.md) · [Русский](FUEL_DISCHARGE.ru.md) · [日本語](FUEL_DISCHARGE.ja.md) · [한국어](FUEL_DISCHARGE.ko.md) · [Deutsch](FUEL_DISCHARGE.de.md) · [Español](FUEL_DISCHARGE.es.md) · [Italiano](FUEL_DISCHARGE.it.md) · [Português](FUEL_DISCHARGE.pt-BR.md) + +## 物理模型 + +`fuel_discharge` 将有限燃油域源连接到 `finite_fuel_film` 的气体节点。将 `phase_mode` 声明为 `frozen`:喷嘴输运过程中汽相质量分数保持不变,两端主体重新达到平衡。均相两相具有共同温度和速度;液体不可压缩,蒸汽是理想伪组分。源与接收腔的材料属性和液体密度必须一致。 + +给定上游滞止压力和温度,在接收压力与上游压力之间求以下质量通量的最大值。唯一的内部极大值限制阻塞流量。纯液体极限为伯努利关系,纯蒸汽极限为理想气体声速关系。流量系数缩放有效喉部面积。 + +```text +x = upstream vapor mass fraction; r = p/p0 +cp = (1-x) cl + x (cv+R); k = x R/cp; b = (1-x)/rho_l +T(p) = T0 r^k +h0-h(p) = cp T0 (1-r^k) + b p0 (1-r) +v(p) = b + x R T(p)/p +G(p) = sqrt(2 (h0-h(p))) / v(p) +mass_rate = opening Cd A max(G) +jet_kinetic_energy_per_kg = h0-h(p_receiver) +gas_volume = cavity_volume - liquid_mass/rho_l +``` + +## 能量、体积与动量 + +源失去输运的滞止焓。`wall_kinetic_fraction` 指定理想完全膨胀射流动能中传给有限静止液膜壁面的比例,其余能量进入接收流体。该参考速度假定理想膨胀到接收压力,不预测实测喷嘴出口速度。射流冲量传给静止接收壁,壳体承受反向反力;这些静止反力不做功,也不增加活塞或针阀力。 + +显式声明 `finite_volume_density`。气体 `volume` 等于腔体体积减去液体质量/密度;液膜 `volume` 为液体排开体积。运动气缸对整个接收腔执行封闭质量、等熵压力功。排量功留在内部。支持固定腔体和曲柄气缸;线性气体活塞不能拥有此接收腔。 + +## 使用与证据 + +运行 `finite-volume-fuel-discharge` 检查混合源阻塞,或运行 `pump-fed-finite-volume-cylinder` 检查电动泵、物理电磁针阀和规定燃烧。可选的 `needle` 运动和 `valve_timing` 与开度相乘。新示例用显式电压脉冲驱动,没有循环目标质量或采样剂量控制器。将 `jet_kinetic_energy`、`jet_impulse`、`force`、`throat_pressure`、`exit_temperature`、`exit_velocity` 和 `choked` 与完整库存一起读取。最后四个值在停流后保留最后接受的流动喷嘴状态。 + +独立伯努利和理想气体极限、单独的混合物通量极值求解、能量/熵检查及独立积分的液体喷嘴/接收腔 ODE 验证方程。时间细化为一阶。便携资产重放、实际 MCP、回滚、取消、独立分支和分配检查覆盖集成。实际 Unity Editor/Play/Player/IL2CPP 尚未验证。 + +## 有效范围与后续工作 + +参数保持 `unverified`。执行声明的温度边界、正气体体积和稀薄蒸汽材料域。模型省略局部入口惯性、有限速率成核、相间滑移、解析喷雾、真实流体临界行为和实测硬件标定。规定燃烧不能证明化学平衡或反应熵准确性。继续入口动力学、点火、进排气、机械损失及 ECU/TCU 协调控制。 + +[NASA: ideal-gas mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) · [NASA-CR-64098: two-phase mass-limiting experiments](https://ntrs.nasa.gov/citations/19650020869) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_FILM.de.md b/docs/FUEL_FILM.de.md index 288f4a4..ddc600b 100644 --- a/docs/FUEL_FILM.de.md +++ b/docs/FUEL_FILM.de.md @@ -8,10 +8,7 @@ Kraftstoff tritt zur Masse, zur inneren Energie und zur Kraftstoffkonstituente d Vormischreaktion verbraucht nur Dampf. Das Flüssigkeitsinventar ist anfängliche Benetzung, kein eingespritzter Kraftstoff, und bleibt Teil der Gesamtbilanz von Masse und chemischer Energie. -Das ist ein Forschungsmodell mit konstanten Eigenschaften, vernachlässigbarem Flüssigkeitsverdrängungsvolumen -und vorgeschriebener Sättigungstemperatur. Es bildet keine flüssige Leitung, -keine Nadel- oder Spraydynamik, kein druckabhängiges Phasengleichgewicht, keine Kondensation, -keine mehrkomponentigen Kraftstoffeigenschaften und kein kalibriertes Benzinverhalten ab. +Der folgende Vertrag beschreibt den Standardfilm mit vorgeschriebener Sättigung. Optionales [Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) ergänzt reversible Verdampfung/Kondensation und druckabhängiges Phasenverhalten mit derselben kalorischen Referenz. ## Phasenenergie und endliche Wärmequelle @@ -106,8 +103,8 @@ Ausgabe-IDs und Einheiten über Validierung oder Sitzungserzeugung auffinden. Gl Beobachtungsgrößen für Masse, Kraftstoff und chemische Energie schließen das Filminventar ein. Interne Dampfförderung erhöht weder die Reservoir-Kraftstoffenergie noch die externe Enthalpie. -Asset v19 speichert alle Phaseneigenschaften und behält Leser für v1-v18. Jeder Film braucht -einen typisierten Phasendatensatz von 64 Byte. Begrenzte Längen und Anzahlen, Digest, vollständige Abdeckung, +Asset v41 speichert alle Phaseneigenschaften und behält Leser für v1-v40. Jeder Film braucht +einen typisierten Phasendatensatz von 100 Byte. Begrenzte Längen und Anzahlen, Digest, vollständige Abdeckung, doppelte oder fehlende Datensätze, Einheiten, physikalische Kompilierung und Schutz vor Herabstufung werden geprüft. Das authentische Fixture v17 der Kraftstoffdosierung behält seinen Fingerabdruck und das aufgewertete Replay derselben Laufzeit. Siehe [ASSET_FORMAT.de.md](ASSET_FORMAT.de.md). @@ -126,3 +123,11 @@ Der getrennte [Flüssigeinspritzer](LIQUID_FUEL_INJECTION.de.md) füllt Filme nu einer endlichen nachgiebigen Quelle nach. Pumpe und Nachfüllung, Nadel und Spray, gemessene Kraftstoffeigenschaften, Zündung und ECU, vollständiges Einlass- und Auslassverhalten, Getrieberegelung und kalibrierte Antriebsstränge bleiben getrennte Anforderungen. + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +`mass_flow` ist der vorzeichenbehaftete Nettophasentransfer des vollständigen Physikschritts. `evaporated_fuel_mass` und `condensed_fuel_mass` summieren positive und negative Massen, ohne sich aufhebende Teilprojektionen doppelt zu zählen. `vapor_partial_pressure` zeigt den Kraftstoffpartialdruck. Wärme-, Masse- und Chemiebilanzen enthalten beide Phasen. + +Eine begrenzte skalare Lösung nutzt die monotone Gleichgewichtsenergie. Endliche Wandwärme verwendet impliziten Euler. Transport- und Zylinderarbeitskopplung besitzen Verfeinerungsnachweise erster Ordnung. Flüssige Koexistenz bleibt im Temperaturintervall. Nach vollständiger Verdampfung darin kann Gas überhitzen, ohne die Sättigungskurve zu extrapolieren. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) diff --git a/docs/FUEL_FILM.es.md b/docs/FUEL_FILM.es.md index 6ca800f..c9904b3 100644 --- a/docs/FUEL_FILM.es.md +++ b/docs/FUEL_FILM.es.md @@ -8,10 +8,7 @@ evaporado se une a la masa, la energía interna y el constituyente de combustibl premmezclada existente solo consume vapor. El inventario líquido es un mojado inicial, no combustible inyectado, y sigue formando parte del libro de masa total y de energía química. -Es un modelo de investigación de propiedades constantes, con un volumen de desplazamiento líquido -despreciable y una temperatura de saturación prescrita. No implementa dinámica de raíl -líquido, de aguja ni de pulverización, equilibrio de fases dependiente de la presión, condensación, -propiedades de combustible multicomponente ni un comportamiento de gasolina calibrado. +El contrato siguiente describe la película de saturación prescrita predeterminada. La opción [Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) añade evaporación/condensación reversibles y dependencia de la presión con la misma referencia calórica. ## Energía de fase y fuente de calor finita @@ -109,8 +106,8 @@ Descubre los identificadores y las unidades de salida mediante la validación o de masa, de combustible y de energía química incluyen el inventario de la película. La entrega interna de vapor no incrementa la energía de combustible del depósito ni la entalpía externa. -El asset v19 almacena todas las propiedades de fase y conserva los lectores v1-v18. Cada película necesita -un registro de fase tipado de 64 bytes. Se comprueban longitudes y cuentas acotadas, el resumen, la cobertura completa, +El asset v41 almacena todas las propiedades de fase y conserva los lectores v1-v40. Cada película necesita +un registro de fase tipado de 100 bytes. Se comprueban longitudes y cuentas acotadas, el resumen, la cobertura completa, los registros duplicados o ausentes, las unidades, la compilación física y la protección contra degradación. El fixture auténtico de dosificación de combustible v17 conserva su huella y la repetición actualizada en el mismo runtime. Consulta [ASSET_FORMAT.es.md](ASSET_FORMAT.es.md). @@ -129,3 +126,11 @@ El [inyector líquido](LIQUID_FUEL_INJECTION.es.md) aparte repone ahora las pel una fuente flexible finita. La bomba y el repostaje, la aguja y la pulverización, las propiedades de combustible medidas, el encendido y la ECU, el comportamiento completo de admisión y escape, los controles de transmisión y los grupos motopropulsores calibrados siguen siendo requisitos aparte. + +## Equilibrio de fases del combustible y límites de suministro + +`mass_flow` es la transferencia neta con signo del paso físico completo. `evaporated_fuel_mass` y `condensed_fuel_mass` acumulan sus masas positiva y negativa sin duplicar proyecciones que se cancelan. `vapor_partial_pressure` muestra la presión parcial de combustible. Los balances térmico, másico y químico incluyen ambas fases. + +Una solución escalar acotada usa la energía de equilibrio monótona. El calor de pared usa Euler implícito. Transporte y trabajo del cilindro móvil tienen evidencia de refinamiento de primer orden. La coexistencia líquida queda en el intervalo declarado. Tras evaporarse completamente dentro de él, el gas puede sobrecalentarse sin extrapolar la curva. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) diff --git a/docs/FUEL_FILM.fr.md b/docs/FUEL_FILM.fr.md index 5eece77..4169db4 100644 --- a/docs/FUEL_FILM.fr.md +++ b/docs/FUEL_FILM.fr.md @@ -8,10 +8,7 @@ suivi. Un nœud thermique fini fournit la chaleur sensible et la chaleur de chan prémélangée existante ne consomme que la vapeur. L'inventaire liquide est un mouillage initial, pas du carburant injecté, et reste dans le bilan de masse totale et d'énergie chimique. -C'est un modèle de recherche à propriétés constantes, avec un volume de déplacement liquide -négligeable et une température de saturation prescrite. Il n'implémente pas la dynamique de rampe liquide, -d'aiguille ou de pulvérisation, l'équilibre de phase dépendant de la pression, la condensation, -les propriétés de carburant multicomposant ni un comportement d'essence calibré. +Le contrat ci-dessous décrit le film à saturation prescrite par défaut. L’option [Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) ajoute évaporation/condensation réversibles et comportement dépendant de la pression avec la même référence calorique. ## Énergie de phase et source de chaleur finie @@ -109,8 +106,8 @@ Découvrez les identifiants et les unités de sortie par la validation ou la cr globaux de masse, de carburant et d'énergie chimique incluent l'inventaire du film. La livraison interne de vapeur n'incrémente ni l'énergie de carburant du réservoir ni l'enthalpie externe. -L'asset v19 stocke toutes les propriétés de phase et conserve les lecteurs v1-v18. Chaque film exige -un enregistrement de phase typé de 64 octets. Les longueurs et comptes bornés, le condensé, la couverture complète, +L'asset v41 stocke toutes les propriétés de phase et conserve les lecteurs v1-v40. Chaque film exige +un enregistrement de phase typé de 100 octets. Les longueurs et comptes bornés, le condensé, la couverture complète, les enregistrements dupliqués ou manquants, les unités, la compilation physique et la protection contre la rétrogradation sont contrôlés. La fixture authentique de dosage v17 conserve son empreinte et son rejeu mis à niveau au même runtime. Voir [ASSET_FORMAT.fr.md](ASSET_FORMAT.fr.md). @@ -129,3 +126,11 @@ L'[injecteur liquide](LIQUID_FUEL_INJECTION.fr.md) distinct réalimente maintena une source finie et souple. La pompe et la réalimentation, l'aiguille et la pulvérisation, les propriétés de carburant mesurées, l'allumage et l'ECU, le comportement complet d'admission et d'échappement, les contrôles de transmission et les groupes motopropulseurs calibrés restent des exigences distinctes. + +## Équilibre des phases du carburant et limites d'alimentation + +`mass_flow` est le transfert net signé sur le pas physique complet. `evaporated_fuel_mass` et `condensed_fuel_mass` cumulent ses masses positive et négative, sans compter deux fois les projections qui s'annulent. `vapor_partial_pressure` donne la pression partielle du carburant. Les bilans thermiques, massiques et chimiques comprennent les deux phases. + +Un solveur scalaire borné utilise l'énergie d'équilibre monotone. La chaleur de paroi suit Euler implicite. Le couplage au transport et au travail du cylindre présente une convergence du premier ordre. La coexistence liquide reste dans l'intervalle déclaré. Le gaz peut surchauffer après évaporation complète dans cet intervalle, sans extrapoler la courbe de saturation. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) diff --git a/docs/FUEL_FILM.it.md b/docs/FUEL_FILM.it.md index 8370989..8c47b6f 100644 --- a/docs/FUEL_FILM.it.md +++ b/docs/FUEL_FILM.it.md @@ -8,10 +8,7 @@ evaporato si unisce a massa, energia interna e costituente carburante del ricevi premiscelata esistente consuma solo il vapore. L'inventario liquido è bagnatura iniziale, non carburante iniettato, e resta parte del registro di massa totale ed energia chimica. -È un modello di ricerca a proprietà costanti, con volume di spostamento del liquido trascurabile -e una temperatura di saturazione prescritta. Non implementa dinamica di binario liquido, -ago o spruzzo, equilibrio di fase dipendente dalla pressione, condensazione, -proprietà multicomponente del carburante o comportamento della benzina calibrato. +Il contratto seguente descrive il film a saturazione prescritta predefinito. L’opzione [Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) aggiunge evaporazione/condensazione reversibili e dipendenza dalla pressione con lo stesso riferimento calorico. ## Energia di fase e sorgente di calore finita @@ -109,8 +106,8 @@ Scopri ID e unità di uscita attraverso la validazione o la creazione della sess globali di massa, carburante ed energia chimica includono l'inventario del film. L'erogazione interna di vapore non incrementa l'energia di carburante del serbatoio né l'entalpia esterna. -L'asset v19 memorizza tutte le proprietà di fase e conserva i lettori v1-v18. Ogni film richiede -un record di fase tipizzato da 64 byte. Lunghezze/conteggi limitati, digest, copertura completa, +L'asset v41 memorizza tutte le proprietà di fase e conserva i lettori v1-v40. Ogni film richiede +un record di fase tipizzato da 100 byte. Lunghezze/conteggi limitati, digest, copertura completa, record duplicati/mancanti, unità, compilazione fisica e protezione dal declassamento sono controllati. La fixture autentica di dosatura carburante v17 conserva la sua impronta e il replay aggiornato nello stesso runtime. Vedi [ASSET_FORMAT.it.md](ASSET_FORMAT.it.md). @@ -129,3 +126,11 @@ L'[iniettore liquido](LIQUID_FUEL_INJECTION.it.md) separato reintegra ora i film una sorgente finita e cedevole. Pompa/rabbocco, ago/spruzzo, proprietà del carburante misurate, accensione/ECU, comportamento completo di aspirazione/scarico, controlli della trasmissione e gruppi motopropulsori calibrati restano requisiti separati. + +## Equilibrio di fase del carburante e limiti di alimentazione + +`mass_flow` è il trasferimento netto con segno del passo fisico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` accumulano masse positive e negative senza contare due volte proiezioni che si annullano. `vapor_partial_pressure` indica la pressione parziale del carburante. I bilanci termici, di massa e chimici includono entrambe le fasi. + +Una soluzione scalare limitata usa l'energia di equilibrio monotona. Il calore della parete usa Euler implicito. Trasporto e lavoro del cilindro mobile hanno evidenza di convergenza del primo ordine. La coesistenza liquida resta nell'intervallo dichiarato. Dopo completa evaporazione al suo interno il gas può surriscaldarsi senza estrapolare la curva. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) diff --git a/docs/FUEL_FILM.ja.md b/docs/FUEL_FILM.ja.md index 768b377..e70bb4d 100644 --- a/docs/FUEL_FILM.ja.md +++ b/docs/FUEL_FILM.ja.md @@ -4,7 +4,7 @@ `fuel_film` は、追跡されたガス受け側のそばに、明示的な初期液体在庫を格納します。有限な熱ノードが、顕熱と相変化の熱を供給します。蒸発した燃料は、受け側の質量、内部エネルギー、燃料成分に加わります。既存の予混合反応が消費するのは蒸気だけです。液体在庫は初期の濡れであり、噴射された燃料ではなく、総質量と化学エネルギーの台帳の一部のままです。 -これは、液体の排除体積が無視でき、飽和温度が規定された、一定物性の研究モデルです。液体レール、ニードル、噴霧の動力学、圧力依存の相平衡、凝縮、多成分燃料物性、キャリブレーション済みのガソリン挙動は実装しません。 +以下は既定の指定飽和温度の膜の契約です。任意の [燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) は同じ熱エネルギー基準で可逆蒸発/凝縮と圧力依存の相挙動を追加します。 ## 相エネルギーと有限な熱源 @@ -62,10 +62,18 @@ JSON は 6 つのパラメーターをすべて必要とします。フィルム 出力 ID と単位は、検証またはセッション作成を通して発見してください。大域の質量、燃料、化学エネルギーの観測量は、フィルム在庫を含みます。内部の蒸気供給は、リザーバーの燃料エネルギーや外部エンタルピーを増やしません。 -アセット v19 はすべての相物性を格納し、v1-v18 リーダーを保持します。各フィルムは、型付きの 64 バイト相レコードを一つ必要とします。有界な長さ/個数、ダイジェスト、完全な被覆、重複/欠落レコード、単位、物理コンパイル、ダウングレード保護が検査されます。本物の v17 燃料計量フィクスチャは、フィンガープリントと、同じランタイムでのアップグレードされたリプレイを保ちます。[ASSET_FORMAT.ja.md](ASSET_FORMAT.ja.md) を参照してください。 +アセット v41 はすべての相物性を格納し、v1-v40 リーダーを保持します。各フィルムは、型付きの 100 バイト相レコードを一つ必要とします。有界な長さ/個数、ダイジェスト、完全な被覆、重複/欠落レコード、単位、物理コンパイル、ダウングレード保護が検査されます。本物の v17 燃料計量フィクスチャは、フィンガープリントと、同じランタイムでのアップグレードされたリプレイを保ちます。[ASSET_FORMAT.ja.md](ASSET_FORMAT.ja.md) を参照してください。 ## ラボラトリーと残る作業 `film-fired-cylinder` は、初期に濡れたフィルムを加熱し、空気を別に導入し、その後、利用できる蒸気を規定 Wiebe 燃焼で消費します。有限な高温壁が相熱を支払います。液体は直接燃焼しません。JSON、CLI、移植可能なリプレイ、実際の MCP サーバーは、すべてのレポート境界で一致します。ソース、スキーマ、セッションの契約は共有されたままです。パラメーターは `unverified` です。 測定された数値エビデンスは [VALIDATION.ja.md](VALIDATION.ja.md) を参照してください。用意された Unity のフィルムマーカーとライフサイクル検査は、なお実際のエディター/Play 検証を必要とします。別の[液体インジェクター](LIQUID_FUEL_INJECTION.ja.md)が、有限で柔軟な源からフィルムを補給するようになりました。ポンプ/補給、ニードル/噴霧、実測の燃料物性、点火/ECU、完全な吸気/排気挙動、トランスミッション制御、キャリブレーション済みパワートレインは、別の要件のままです。 + +## 燃料の相平衡と液体供給の境界 + +`mass_flow` は完全な物理刻みの符号付き正味相移動です。`evaporated_fuel_mass` と `condensed_fuel_mass` は正負の質量を別々に累積し、相殺する分割演算を二重計上しません。`vapor_partial_pressure` は受け側の燃料分圧です。熱・質量・化学エネルギー収支は両相を含みます。 + +有界スカラー解法は単調な平衡エネルギーを使います。有限壁の伝熱は後退 Euler です。輸送と移動シリンダー仕事との連成には一次収束の証拠があります。液体共存は指定温度区間内に限り、その区間で完全蒸発した気体は過熱できます。飽和曲線は外挿しません。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) diff --git a/docs/FUEL_FILM.ko.md b/docs/FUEL_FILM.ko.md index 08bfaf7..2da28ab 100644 --- a/docs/FUEL_FILM.ko.md +++ b/docs/FUEL_FILM.ko.md @@ -4,7 +4,7 @@ `fuel_film`은 추적되는 가스 수신기 옆에 명시적 초기 액체 재고를 저장합니다. 유한 열 노드가 현열과 상변화 열을 공급합니다. 증발한 연료는 수신기의 질량, 내부 에너지, 연료 구성 성분에 합류합니다. 기존의 예혼합 반응은 증기만 소비합니다. 액체 재고는 분사된 연료가 아니라 초기 습윤이며, 총질량과 화학 에너지 장부의 일부로 남습니다. -이것은 액체 변위 체적이 무시할 만하고 포화 온도가 규정된, 일정 물성 연구 모델입니다. 액체 레일, 니들 또는 분무 동역학, 압력 의존 상평형, 응축, 다성분 연료 물성, 교정된 가솔린 거동은 구현하지 않습니다. +아래 계약은 기본 지정 포화 온도 막을 설명합니다. 선택적 [연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md)는 같은 열에너지 기준에서 가역 증발/응축과 압력 의존 상 거동을 추가합니다. ## 상 에너지와 유한 열원 @@ -62,10 +62,18 @@ JSON은 여섯 매개변수를 모두 요구합니다. 필름에는 입력 채 출력 ID와 단위는 검증 또는 세션 생성으로 탐색하세요. 전역 질량, 연료, 화학 에너지 관측량에는 필름 재고가 포함됩니다. 내부 증기 공급은 저장소 연료 에너지나 외부 엔탈피를 늘리지 않습니다. -자산 v19는 모든 상 물성을 저장하고 v1-v18 판독기를 유지합니다. 필름마다 형식이 있는 64바이트 상 기록 하나가 필요합니다. 유계 길이/개수, 다이제스트, 완전한 적용 범위, 중복/누락 기록, 단위, 물리 컴파일, 다운그레이드 보호가 검사됩니다. 진본 v17 연료 계량 픽스처는 지문과, 같은 런타임의 업그레이드된 리플레이를 유지합니다. [ASSET_FORMAT.ko.md](ASSET_FORMAT.ko.md)를 참고하세요. +자산 v41는 모든 상 물성을 저장하고 v1-v40 판독기를 유지합니다. 필름마다 형식이 있는 100바이트 상 기록 하나가 필요합니다. 유계 길이/개수, 다이제스트, 완전한 적용 범위, 중복/누락 기록, 단위, 물리 컴파일, 다운그레이드 보호가 검사됩니다. 진본 v17 연료 계량 픽스처는 지문과, 같은 런타임의 업그레이드된 리플레이를 유지합니다. [ASSET_FORMAT.ko.md](ASSET_FORMAT.ko.md)를 참고하세요. ## 실험실과 남은 작업 `film-fired-cylinder`는 처음에 젖은 필름을 가열하고, 공기를 따로 들이며, 쓸 수 있는 증기를 규정 Wiebe 연소로 소비합니다. 유한한 뜨거운 벽이 상 열을 부담합니다. 액체는 직접 타지 않습니다. JSON, CLI, 이식 가능한 리플레이, 실제 MCP 서버가 모든 보고서 경계에서 일치합니다. 소스, 스키마, 세션 계약은 공유된 채로 남습니다. 매개변수는 `unverified`입니다. 측정된 수치 증거는 [VALIDATION.ko.md](VALIDATION.ko.md)를 참고하세요. 준비된 Unity 필름 표식과 수명 주기 검사는 여전히 실제 편집기/Play 검증이 필요합니다. 별도의 [액체 인젝터](LIQUID_FUEL_INJECTION.ko.md)가 이제 유한 컴플라이언트 공급원에서 필름을 보충합니다. 펌프/보충, 니들/분무, 실측 연료 물성, 점화/ECU, 완전한 흡기/배기 동작, 변속기 제어, 교정된 파워트레인은 별도 요건으로 남아 있습니다. + +## 연료 상평형과 액체 공급 경계 + +`mass_flow`는 완전한 물리 시간 단계의 부호 있는 순 상변화입니다. `evaporated_fuel_mass`와 `condensed_fuel_mass`는 양·음 질량을 각각 누적하여 상쇄되는 분할 계산을 중복 집계하지 않습니다. `vapor_partial_pressure`는 수용부 연료 분압입니다. 열, 질량과 화학 에너지 수지는 두 상을 포함합니다. + +유계 스칼라 풀이가 단조 평형 에너지를 사용합니다. 유한 벽 열전달은 후진 Euler입니다. 수송 및 이동 실린더 일과의 연성에 1차 수렴 증거가 있습니다. 액체 공존은 지정 온도 구간 안에 있어야 합니다. 구간 안에서 완전히 증발한 기체는 과열될 수 있으며 포화 곡선을 외삽하지 않습니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) diff --git a/docs/FUEL_FILM.md b/docs/FUEL_FILM.md index 0b74649..20f42e1 100644 --- a/docs/FUEL_FILM.md +++ b/docs/FUEL_FILM.md @@ -8,10 +8,7 @@ fuel joins the receiver's mass, internal energy and fuel constituent; the existi premixed reaction consumes vapor only. The liquid inventory is initial wetting, not injected fuel, and remains part of the total mass and chemical-energy ledger. -This is a constant-property research model with negligible liquid displacement -volume and a prescribed saturation temperature. It doesn't implement liquid rail, -needle or spray dynamics, pressure-dependent phase equilibrium, condensation, -multicomponent fuel properties or calibrated gasoline behavior. +The contract below describes the default prescribed-saturation film. Optional [Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) adds reversible evaporation/condensation and pressure-dependent phase behavior while retaining the same caloric reference. ## Phase energy and finite heat source @@ -109,8 +106,8 @@ Discover output IDs and units through validation or session creation. Global mass, fuel and chemical-energy observables include the film inventory. Internal vapor delivery doesn't increment reservoir fuel energy or external enthalpy. -Asset v19 stores all phase properties and retains v1-v18 readers. Every film needs -one typed 64-byte phase record. Bounded lengths/counts, digest, complete coverage, +Asset v41 stores all phase properties and retains v1-v40 readers. Every film needs +one typed 100-byte phase record. Bounded lengths/counts, digest, complete coverage, duplicate/missing records, units, physical compilation and downgrade protection are checked. The authentic v17 fuel-metering fixture retains its fingerprint and same-runtime upgraded replay. See [ASSET_FORMAT.md](ASSET_FORMAT.md). @@ -129,3 +126,11 @@ The separate [liquid injector](LIQUID_FUEL_INJECTION.md) now replenishes films f a finite compliant source. Pump/refill, needle/spray, measured fuel properties, ignition/ECU, complete intake/exhaust behavior, transmission controls and calibrated powertrains remain separate requirements. + +## Fuel phase equilibrium and liquid supply limits + +`mass_flow` is the signed net phase transfer over the complete physical tick. `evaporated_fuel_mass` and `condensed_fuel_mass` accumulate its positive and negative mass amounts, so canceling split-operator projections are not counted twice. `vapor_partial_pressure` reports the receiver fuel partial pressure. Thermal, mass and chemical ledgers include both phases. + +A bounded scalar solve uses the monotone equilibrium energy relation. Finite-wall heat uses backward Euler. Coupling to transport and moving-cylinder work has first-order refinement evidence. Liquid coexistence stays within the declared temperature interval. Completely evaporated gas can superheat after dryout within that interval; the saturation curve is not extrapolated. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) diff --git a/docs/FUEL_FILM.pt-BR.md b/docs/FUEL_FILM.pt-BR.md index 93b8052..f5d058e 100644 --- a/docs/FUEL_FILM.pt-BR.md +++ b/docs/FUEL_FILM.pt-BR.md @@ -8,10 +8,7 @@ evaporado entra na massa, na energia interna e no constituinte de combustível d premisturada existente consome só vapor. O inventário líquido é molhagem inicial, não combustível injetado, e continua fazendo parte do livro de massa total e de energia química. -É um modelo de pesquisa de propriedades constantes, com volume de deslocamento líquido -desprezível e temperatura de saturação prescrita. Não implementa dinâmica de trilho -líquido, de agulha nem de pulverização, equilíbrio de fases dependente da pressão, condensação, -propriedades de combustível multicomponente nem comportamento de gasolina calibrado. +O contrato abaixo descreve o filme padrão com saturação prescrita. A opção [Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) acrescenta evaporação/condensação reversíveis e dependência da pressão com a mesma referência calórica. ## Energia de fase e fonte de calor finita @@ -109,8 +106,8 @@ Descubra IDs e unidades de saída pela validação ou pela criação da sessão. de massa, de combustível e de energia química incluem o inventário do filme. A entrega interna de vapor não incrementa a energia de combustível de reservatório nem a entalpia externa. -O asset v19 guarda todas as propriedades de fase e conserva os leitores v1-v18. Cada filme precisa -de um registro de fase tipado de 64 bytes. Comprimentos e contagens limitados, digest, cobertura completa, +O asset v41 guarda todas as propriedades de fase e conserva os leitores v1-v40. Cada filme precisa +de um registro de fase tipado de 100 bytes. Comprimentos e contagens limitados, digest, cobertura completa, registros duplicados ou ausentes, unidades, compilação física e proteção contra rebaixamento são verificados. O fixture autêntico de medição de combustível v17 conserva a impressão digital e o replay atualizado no mesmo runtime. Veja [ASSET_FORMAT.pt-BR.md](ASSET_FORMAT.pt-BR.md). @@ -129,3 +126,11 @@ O [injetor líquido](LIQUID_FUEL_INJECTION.pt-BR.md) separado agora repõe filme uma fonte flexível finita. Bomba e reabastecimento, agulha e pulverização, propriedades medidas de combustível, ignição e ECU, comportamento completo de admissão e escape, controles de transmissão e powertrains calibrados continuam como requisitos separados. + +## Equilíbrio de fases do combustível e limites de suprimento + +`mass_flow` é a transferência líquida com sinal do passo físico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` acumulam suas massas positiva e negativa sem duplicar projeções que se cancelam. `vapor_partial_pressure` mostra a pressão parcial do combustível. Balanços térmicos, de massa e químicos incluem ambas as fases. + +Uma solução escalar limitada usa energia de equilíbrio monótona. Calor da parede usa Euler implícito. Transporte e trabalho do cilindro móvel têm evidência de refinamento de primeira ordem. A coexistência líquida fica no intervalo declarado. Após evaporação completa dentro dele, o gás pode superaquecer sem extrapolar a curva. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) diff --git a/docs/FUEL_FILM.ru.md b/docs/FUEL_FILM.ru.md index 84be1d0..e9520f1 100644 --- a/docs/FUEL_FILM.ru.md +++ b/docs/FUEL_FILM.ru.md @@ -8,10 +8,7 @@ premixed-реакция потребляет только пар. Запас жидкости — начальное смачивание, а не впрыснутое топливо, и остаётся частью полного баланса массы и химической энергии. -Это исследовательская модель с постоянными свойствами, пренебрежимо малым объёмом, -вытесняемым жидкостью, и предписанной температурой насыщения. Жидкостную рейку, -динамику иглы или распыла, фазовое равновесие, зависящее от давления, конденсацию, -многокомпонентные свойства топлива или калиброванное поведение бензина она не реализует. +Контракт ниже описывает плёнку с заданным насыщением по умолчанию. Опция [Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) добавляет обратимые испарение/конденсацию и зависимость от давления с той же калорической основой. ## Энергия фазы и конечный источник теплоты @@ -109,8 +106,8 @@ JSON требует все шесть параметров. У плёнки не наблюдаемые массы, топлива и химической энергии включают запас плёнки. Внутренняя подача пара не увеличивает энергию топлива резервуара или внешнюю энтальпию. -Актив v19 хранит все свойства фазы и сохраняет читатели v1-v18. Каждой плёнке нужна -одна типизированная 64-байтовая запись фазы. Ограниченные длины и счётчики, дайджест, полное покрытие, +Актив v41 хранит все свойства фазы и сохраняет читатели v1-v40. Каждой плёнке нужна +одна типизированная 100-байтовая запись фазы. Ограниченные длины и счётчики, дайджест, полное покрытие, повторяющиеся и отсутствующие записи, единицы, физическая компиляция и защита от понижения версии проверяются. Подлинная фикстура дозирования топлива v17 сохраняет свой отпечаток и повтор после обновления в той же среде выполнения. См. [ASSET_FORMAT.ru.md](ASSET_FORMAT.ru.md). @@ -129,3 +126,11 @@ JSON требует все шесть параметров. У плёнки не конечного податливого источника. Насос и заправка, игла и распыл, измеренные свойства топлива, зажигание и ECU, полное поведение впуска и выпуска, управление трансмиссией и калиброванные силовые агрегаты остаются отдельными требованиями. + +## Фазовое равновесие топлива и границы жидкой подачи + +`mass_flow` — знаковый нетто-перенос за полный физический шаг. `evaporated_fuel_mass` и `condensed_fuel_mass` накапливают положительную и отрицательную массы без двойного счёта компенсирующих проекций. `vapor_partial_pressure` показывает парциальное давление топлива. Тепловой, массовый и химический балансы включают обе фазы. + +Ограниченный скалярный решатель использует монотонную равновесную энергию. Тепло стенки вычисляется неявным Эйлером. Для переноса и работы движущегося цилиндра показана сходимость первого порядка. Сосуществование жидкости ограничено заданными температурами. После полного испарения внутри интервала газ может перегреваться без экстраполяции кривой насыщения. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) diff --git a/docs/FUEL_FILM.zh-CN.md b/docs/FUEL_FILM.zh-CN.md index 7354fe1..832a62a 100644 --- a/docs/FUEL_FILM.zh-CN.md +++ b/docs/FUEL_FILM.zh-CN.md @@ -4,7 +4,7 @@ `fuel_film` 在被追踪的气体接收端旁储存一份显式的初始液体存量。有限热节点提供显热与相变热。蒸发的燃油加入接收端的质量、内能与燃油组分;既有的预混反应只消耗蒸气。液体存量是初始润湿,不是喷入的燃油,并且仍属于总质量与化学能账本。 -这是常物性的研究模型,液体排开容积可忽略,饱和温度是预设的。它不实现液轨、针阀或喷雾动力学、依赖压力的相平衡、冷凝、多组分燃油物性或已标定的汽油行为。 +下述契约描述默认的预设饱和温度油膜。可选的 [燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) 在同一热能参考下加入可逆蒸发/冷凝与压力相关相变。 ## 相变能量与有限热源 @@ -62,10 +62,18 @@ JSON 要求全部六个参数。油膜没有输入通道、曲轴定时或单独 通过校验或创建会话来发现输出 ID 与单位。全局质量、燃油与化学能可观测量包含油膜存量。内部蒸气供给不会增加储气库燃料能量或外部焓。 -资产 v19 储存全部相变物性,并保留 v1-v18 读取器。每片油膜需要一条带类型的 64 字节相变记录。有界的长度/计数、摘要、完整覆盖、重复/缺失记录、单位、物理编译与降级防护都会检查。真实的 v17 燃油计量夹具保留其指纹,以及同一运行时的升级回放。参见 [ASSET_FORMAT.md](ASSET_FORMAT.zh-CN.md)。 +资产 v41 储存全部相变物性,并保留 v1-v40 读取器。每片油膜需要一条带类型的 100 字节相变记录。有界的长度/计数、摘要、完整覆盖、重复/缺失记录、单位、物理编译与降级防护都会检查。真实的 v17 燃油计量夹具保留其指纹,以及同一运行时的升级回放。参见 [ASSET_FORMAT.md](ASSET_FORMAT.zh-CN.md)。 ## 实验室与剩余工作 `film-fired-cylinder` 加热初始润湿的油膜,单独进气,再通过预设的 Wiebe 燃烧消耗可用蒸气。有限热壁支付相变热;液体不直接燃烧。JSON、CLI、可移植回放与真实的 MCP 服务器在每个报告边界上一致。源、schema 与会话契约仍然共享;参数为 `unverified`。 测得的数值证据见 [VALIDATION.md](VALIDATION.zh-CN.md)。已准备的 Unity 油膜标记与生命周期检查仍需要真实的 Editor/Play 验证。单独的[液体喷油器](LIQUID_FUEL_INJECTION.zh-CN.md)现在从有限柔性源补充油膜。泵/回充、针阀/喷雾、实测燃油物性、点火/ECU、完整的进/排气行为、变速器控制以及标定动力总成仍是各自独立的要求。 + +## 燃油相平衡与液体供给边界 + +`mass_flow` 是完整物理时间步的带符号净相变流量。`evaporated_fuel_mass` 与 `condensed_fuel_mass` 分别累计正、负净相变量,避免重复计算分步求解中互相抵消的调整。`vapor_partial_pressure` 给出接收端燃料分压。热能、质量和化学能账本包含两相。 + +有界标量求解利用单调的平衡能量关系。有限壁面传热采用后向欧拉。与输运、运动气缸功耦合的一阶细化检查通过。液体共存状态保持在声明的温度区间内;在区间内完全蒸发后,干燥气体可以继续过热,饱和曲线不作外推。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) diff --git a/docs/FUEL_INERTIAL_PIPE.de.md b/docs/FUEL_INERTIAL_PIPE.de.md new file mode 100644 index 0000000..2603550 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.de.md @@ -0,0 +1,41 @@ +# Impuls einer endlichen Flüssigkraftstoffleitung + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · **Deutsch** · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Physikalischer Vertrag + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. + +Länge, Fläche, linearen/quadratischen Widerstand, Anfangsfluss, Anfangstemperatur und `fluid_heat_fraction` deklarieren. Widerstandseinheiten sind `pa_s_m3` und `pa_s2_m6`. Stoffdaten und Dichte müssen übereinstimmen. Es gibt keinen direkten Öffnungsbefehl; ein anderes Ventil löscht keinen Leitungsimpuls. Stoff- und Chemiebezug stammen aus den Ports. + +## Energie und Ports + +Donorenthalpie verlässt das vorgeschaltete Gefäß. Die Leitung mischt eingehende sensible Energie mit ihrem Inventar und liefert Mischenthalpie bei nachgeschaltetem Druck. Druckarbeit ändert Bewegungsenergie und liefert Reibungswärme einmal. Der deklarierte Anteil wärmt Flüssigkeit, der Rest die endliche Wand. Umkehr tauscht Donor und Empfänger bei gleichen Bilanzen. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +Impuls nutzt mittleren Fluss und akzeptierte Enddrücke. Portenergie und Mischung verwenden Rückwärts-Euler; die Gesamtkopplung ist erster Ordnung. Auch ohne Reibung wandelt die Druckdiskretisierung Schwingungsenergie in numerische Wärme, die keine physische Reibung ist. Paarentropie enthält Mischung und Zeitdiskretisierung. Nulldurchflussereignisse trennen Vorwärts- und Rückwärtsverläufe. + +## Nutzung und Nachweise + +`inertial-fuel-line` für Umkehr/Mischung oder `inertial-pump-fed-cylinder` für Einlassleitung, Pumpe, physische Magnetnadel und vorgeschriebene Verbrennung ausführen. `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, Wärmespeicher und Bilanzen lesen. Volumenfluss ist momentan, Massenfluss letztes Taktmittel. Eigene Masse und chemische Energie kommen hinzu. + +Eine unabhängige harmonische Lösung mit endlicher Nachgiebigkeit und separate nichtlineare Impuls-/Temperatur-RK4 prüfen Genauigkeit und erste Ordnung. Geprüft werden Wärmeaufteilung, Entropie, Umkehr, volle Bilanzen, Kupplungsversuche, Allokationen, Rücknahme, Abbruch und Zweige. Portable Assets und echter MCP prüfen alle Grenzen. Das belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +## Gültigkeit und nächste Arbeit + +Parameter bleiben `unverified`. Stoffliche Temperatur-/Druckbereiche und druckkorrigierte Flüssigkeitsstabilität gelten. Fehler rollen das ganze Intervall zurück; Takt verringern und Versorgung, Druck und Phase prüfen. Veränderliche Zweiphasendichte, Kavitation, Akustik, Schwerkraft, bewegte Geometrie und thermische Fronten fehlen. Vorgegebene Verbrennung bestätigt keine detaillierte Chemie- oder Reaktionsentropiegenauigkeit. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.es.md b/docs/FUEL_INERTIAL_PIPE.es.md new file mode 100644 index 0000000..575de97 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.es.md @@ -0,0 +1,41 @@ +# Cantidad de movimiento en una línea finita de combustible líquido + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · **Español** · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Contrato físico + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. + +Declare longitud, área, resistencia lineal/cuadrática, caudal inicial, temperatura inicial y `fluid_heat_fraction`. Las unidades son `pa_s_m3` y `pa_s2_m6`. Material y densidad coinciden. No hay apertura directa: cerrar otra válvula no borra la cantidad de movimiento. Las referencias material y química se heredan de los puertos. + +## Energía y puertos + +La entalpía donante sale del recipiente aguas arriba. La línea mezcla energía sensible con su inventario y entrega entalpía mezclada a presión aguas abajo. El trabajo cambia energía cinética y aporta calor de fricción una sola vez. La fracción declarada calienta el líquido; el resto la pared finita. La inversión intercambia donante y receptor con iguales balances. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +El movimiento usa caudal medio y presiones finales aceptadas. Energía y mezcla usan Euler hacia atrás; el acoplamiento converge a primer orden. Incluso sin fricción, la discretización transforma parte de la oscilación en calor numérico, no registrado como fricción física. La entropía incluye mezcla y discretización. Los eventos de caudal cero separan transferencias directas e inversas. + +## Uso y evidencia + +Ejecute `inertial-fuel-line` para inversión/mezcla, o `inertial-pump-fed-cylinder` para entrada, bomba, aguja electromagnética física y combustión prescrita. Lea `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, inventarios y balances. Caudal volumétrico instantáneo y másico medio del último paso. La línea añade masa y energía química propias. + +Solución armónica independiente de flexibilidad finita y RK4 independiente de movimiento/temperatura no lineales verifican exactitud y primer orden. Se verifican calor, entropía, inversión, balances, intervalos especulativos de embrague, asignaciones, reversión, cancelación y ramas. Assets portables y MCP real comprueban cada frontera. Esto no acredita calibración ni Unity real. + +## Validez y siguiente trabajo + +Los parámetros siguen `unverified`. Respete rangos materiales y estabilidad líquida corregida por presión. El fallo revierte todo el intervalo; reduzca paso e inspeccione agotamiento, presión y fase. Se omiten movimiento bifásico de densidad variable, cavitación, acústica, gravedad, geometría móvil y frentes térmicos. La combustión prescrita no prueba equilibrio químico ni entropía de reacción detallados. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.fr.md b/docs/FUEL_INERTIAL_PIPE.fr.md new file mode 100644 index 0000000..ae36fe7 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.fr.md @@ -0,0 +1,41 @@ +# Quantité de mouvement d'une ligne finie de carburant liquide + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · **Français** · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Contrat physique + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. + +Déclarer longueur, aire, résistances linéaire/quadratique, débit initial, température initiale et `fluid_heat_fraction`. Les unités sont `pa_s_m3` et `pa_s2_m6`. Propriétés et densité correspondent aux deux ports. Aucune commande directe d'ouverture : fermer une autre vanne n'efface pas l'impulsion. La référence matérielle et chimique vient des ports. + +## Énergie et ports + +L'enthalpie du donneur quitte le volume amont. La ligne mélange l'énergie sensible entrante avec son inventaire, puis livre son enthalpie mélangée à la pression aval. Le travail de pression modifie l'énergie cinétique et fournit une seule fois la chaleur de friction. La fraction déclarée chauffe la ligne ; le reste chauffe sa paroi finie. Une inversion échange donneur et récepteur avec les mêmes bilans. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +La quantité de mouvement utilise le débit médian et les pressions finales acceptées. Énergie des ports et mélange utilisent Euler implicite ; le couplage complet converge au premier ordre. Même sans friction, la discrétisation des pressions transforme une partie de l'oscillation en chaleur numérique, non comptée comme friction physique. L'entropie inclut mélange et discrétisation. Les événements de débit nul séparent les historiques directs et inverses. + +## Utilisation et preuves + +Exécuter `inertial-fuel-line` pour inversion/mélange, ou `inertial-pump-fed-cylinder` pour entrée, pompe, aiguille électromagnétique et combustion prescrite. Lire `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, inventaires thermiques et bilans. Le débit volumique est instantané ; le débit massique est la moyenne du dernier pas. La ligne ajoute masse et énergie chimique propres. + +Une solution harmonique indépendante à compliance finie et une RK4 indépendante du mouvement/température non linéaires vérifient exactitude et premier ordre. Les contrôles couvrent chaleur, entropie, inversion, bilans complets, intervalles spéculatifs d'embrayage, allocations, rollback, annulation et branches indépendantes. Assets portables et MCP réel vérifient chaque frontière. Cela ne valide ni matériel calibré ni Unity réel. + +## Validité et suite + +Les paramètres restent `unverified`. Respecter les plages de température/pression et la stabilité liquide corrigée en pression. Un intervalle échoué est entièrement annulé ; réduire le pas et vérifier épuisement, pression et phase. Densité variable diphasique, cavitation, acoustique, gravité, géométrie mobile et fronts thermiques résolus sont omis. La combustion prescrite ne valide pas chimie d'équilibre ni entropie réactionnelle détaillées. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.it.md b/docs/FUEL_INERTIAL_PIPE.it.md new file mode 100644 index 0000000..41bc9bd --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.it.md @@ -0,0 +1,41 @@ +# Quantità di moto della linea finita di carburante liquido + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · **Italiano** · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Contratto fisico + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. + +Dichiarare lunghezza, area, resistenze lineare/quadratica, portata e temperatura iniziali e `fluid_heat_fraction`. Le unità sono `pa_s_m3` e `pa_s2_m6`. Materiale e densità coincidono. Non c'è comando diretto d'apertura: chiudere un'altra valvola non cancella il moto. Riferimenti materiale e chimico sono ereditati dalle porte. + +## Energia e porte + +L'entalpia donatrice lascia il recipiente a monte. La linea miscela energia sensibile e inventario proprio, poi fornisce entalpia miscelata alla pressione a valle. Il lavoro cambia energia cinetica e fornisce calore d'attrito una sola volta. La frazione dichiarata scalda il liquido, il resto la parete finita. L'inversione scambia donatore/ricevitore con gli stessi bilanci. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +Il moto usa portata media e pressioni finali accettate. Energia e miscela usano Eulero implicito; l'accoppiamento completo converge al primo ordine. Anche senza attrito, la discretizzazione trasforma parte dell'oscillazione in calore numerico, non registrato come attrito fisico. L'entropia comprende miscela e discretizzazione. Gli eventi di portata nulla separano i trasferimenti diretti e inversi. + +## Uso e prove + +Eseguire `inertial-fuel-line` per inversione/miscela o `inertial-pump-fed-cylinder` per ingresso, pompa, ago elettromagnetico fisico e combustione prescritta. Leggere `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, inventari e bilanci. Portata volumetrica istantanea e massica media dell'ultimo passo. La linea aggiunge massa ed energia chimica proprie. + +Soluzione armonica indipendente a cedevolezza finita e RK4 indipendente del moto/temperature non lineari verificano accuratezza e primo ordine. Coperti calore, entropia, inversione, bilanci, intervalli speculativi frizione, allocazioni, rollback, annullamento e rami. Assets portabili e MCP reale verificano ogni confine. Non sono calibrazione misurata o accettazione Unity reale. + +## Validità e lavoro successivo + +I parametri restano `unverified`. Valgono intervalli materiali e stabilità liquida corretta in pressione. Un fallimento ripristina l'intero intervallo; ridurre passo e controllare esaurimento, pressione e fase. Mancano moto bifase a densità variabile, cavitazione, acustica, gravità, geometria mobile e fronti termici. La combustione prescritta non prova chimica d'equilibrio o entropia di reazione dettagliate. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.ja.md b/docs/FUEL_INERTIAL_PIPE.ja.md new file mode 100644 index 0000000..e0e8237 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.ja.md @@ -0,0 +1,41 @@ +# 有限液体燃料管路の運動量 + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · **日本語** · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## 物理契約 + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 + +長さ、面積、線形・二次抵抗、初期流量、初期温度、`fluid_heat_fraction` を宣言します。抵抗単位は `pa_s_m3` と `pa_s2_m6` です。両端材料と密度は一致します。直接開度入力はなく、他弁の閉鎖で管路運動量を消去しません。材料・化学参照はポートから継承します。 + +## エネルギーとポート + +上流容器から供給エンタルピーが出ます。管路は流入顕熱と自身の液体を混合し、下流圧力で混合エンタルピーを送り出します。圧力仕事は運動エネルギーを変え、摩擦熱を一度だけ供給します。宣言割合が液体を、残りが有限壁を加熱します。逆流では供給・受容を交換して同じ収支を使います。 + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +運動量は中点流量と採用終端圧力を使います。ポートエネルギーと混合は後退オイラーなので連成全体は一次収束です。無摩擦でも終端圧力離散化が振動の一部を数値熱に変えますが、物理摩擦には計上しません。対エントロピーは混合と時間離散化を含みます。ゼロ流量イベントで正逆輸送履歴を分離します。 + +## 使用と証拠 + +`inertial-fuel-line` で逆流と熱混合、`inertial-pump-fed-cylinder` で入口管路、ポンプ、物理ソレノイド針、規定燃焼を実行します。`volume_flow`、`mass_flow`、`forward_volume`、`reverse_volume`、`kinetic_energy`、`energy_at_a`、`energy_at_b`、熱在庫、全収支を読みます。体積流量は瞬時、質量流量は前刻み平均です。独自の質量と化学在庫が加わります。 + +独立した有限コンプライアンス調和解と非線形運動量・温度 RK4 で精度と一次収束を検査します。熱配分、対エントロピー、逆流、全収支、クラッチ試行区間、無割り当て、巻戻し、取消、独立分岐を確認します。可搬資産と実 MCP が全標本境界を確認します。実測校正や実 Unity 合格ではありません。 + +## 適用範囲と次の作業 + +パラメーターは `unverified` です。材料の温度・圧力範囲と圧力補正した液相安定性を守ります。失敗区間は全て戻り、刻みを減らして供給枯渇・圧力・相を確認します。変密度二相運動量、キャビテーション、音波、重力、移動管形、解像熱前線は含みません。規定燃焼は詳細な化学平衡や反応エントロピー精度を示しません。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.ko.md b/docs/FUEL_INERTIAL_PIPE.ko.md new file mode 100644 index 0000000..fd7de8f --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.ko.md @@ -0,0 +1,41 @@ +# 유한 액체 연료 관로 운동량 + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · **한국어** · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## 물리 계약 + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. + +길이, 면적, 선형·이차 저항, 초기 유량, 초기 온도와 `fluid_heat_fraction`을 선언합니다. 저항 단위는 `pa_s_m3`, `pa_s2_m6`입니다. 양 포트 재료와 밀도가 같아야 합니다. 직접 개도 입력이 없으며 다른 밸브를 닫아도 관로 운동량을 지우지 않습니다. 재료·화학 기준은 포트에서 상속합니다. + +## 에너지와 포트 + +공급 엔탈피가 상류 용기를 나옵니다. 관로는 유입 현열과 자체 액체를 혼합해 하류 압력에서 혼합 엔탈피를 보냅니다. 압력 일은 운동에너지를 바꾸고 마찰열을 한 번만 공급합니다. 선언 비율은 액체를, 나머지는 유한 벽을 가열합니다. 역전에서는 공급·수용 역할을 바꾸어 같은 균형을 씁니다. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +운동량은 중점 유량과 수용된 최종 압력을 사용합니다. 포트 에너지와 혼합은 후진 오일러이므로 전체 결합은 1차입니다. 무마찰에서도 최종 압력 이산화가 진동 일부를 수치 열로 바꾸지만 물리 마찰에는 포함하지 않습니다. 쌍 엔트로피는 혼합·시간 이산화를 포함합니다. 영유량 이벤트는 정·역방향 이력을 분리합니다. + +## 사용 및 증거 + +`inertial-fuel-line`으로 역전·열 혼합을, `inertial-pump-fed-cylinder`로 입구 관로, 펌프, 물리 솔레노이드 니들과 규정 연소를 실행합니다. `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, 열 재고와 전체 원장을 읽습니다. 체적 유량은 순간값, 질량 유량은 이전 틱 평균입니다. 자체 질량과 화학 재고가 추가됩니다. + +독립 유한 컴플라이언스 조화해와 별도 비선형 운동량·온도 RK4로 정확도와 1차 세분화를 확인합니다. 열 분배, 쌍 엔트로피, 역전, 전체 원장, 클러치 시험 구간, 무할당, 롤백, 취소와 독립 분기를 검사합니다. 이식 자산과 실제 MCP가 모든 경계를 검사합니다. 실측 보정이나 실제 Unity 합격은 아닙니다. + +## 유효 범위와 후속 작업 + +매개변수는 `unverified`입니다. 재료 온도·압력 범위와 압력 보정 액상 안정성을 지킵니다. 실패 구간은 전체 롤백되며 틱을 줄이고 공급 고갈·압력·상을 확인합니다. 변밀도 2상 운동량, 공동현상, 음파, 중력, 이동 관 형상과 열 전선 해상은 제외합니다. 규정 연소는 상세 화학평형·반응 엔트로피 정확도를 입증하지 않습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.md b/docs/FUEL_INERTIAL_PIPE.md new file mode 100644 index 0000000..2259bcd --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.md @@ -0,0 +1,41 @@ +# Finite liquid fuel line momentum + +**English** · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Physical contract + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. + +Declare length, area, linear and quadratic resistance, initial flow, initial temperature and `fluid_heat_fraction`. Use `pa_s_m3` and `pa_s2_m6` for resistance. Material properties and density must match at both fuel ports. There is no direct opening input: closing another valve does not erase line momentum. The line's material and chemical reference is inherited from the ports. + +## Energy and ports + +Donor enthalpy leaves the upstream vessel. The line mixes incoming sensible energy with its own liquid inventory, and its mixed enthalpy enters the downstream vessel at downstream pressure. Pressure work changes kinetic energy and supplies friction heat once. The declared fraction of friction heat warms the line; the remainder warms its finite wall. Direction reversal uses the same balances with exchanged donor/receiver roles. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +The momentum equation uses midpoint flow and accepted end pressures. Port energy and line mixing use backward Euler, so the complete coupling converges at first order. Even without friction, endpoint pressure discretization converts part of the pressure/kinetic oscillation into numerical caloric heating. That contribution is not reported as physical friction. Pair entropy includes mixing and time discretization. Zero-flow events preserve separate forward and reverse transfer histories. + +## Use and evidence + +Run `inertial-fuel-line` for reversal and thermal mixing, or `inertial-pump-fed-cylinder` for the inlet line, pump, physical solenoid needle and prescribed firing. Read `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, thermal inventories and full ledgers. Volume flow is instantaneous; mass flow is the last tick mean. The line adds its own mass and chemical inventory to the model. + +An independent finite-compliance harmonic solution and a separate nonlinear momentum/temperature RK4 integration check accuracy and first-order refinement. Checks cover friction routing, pair entropy, physical reversal, complete energy/mass/fuel ledgers, speculative clutch intervals, allocation-free stepping, rollback, cancellation and independent branches. Portable assets and actual MCP check every sampled boundary. This does not establish calibrated hardware or actual Unity acceptance. + +## Validity and next work + +Parameters remain `unverified`. Use the declared material temperature/pressure ranges and pressure-corrected liquid stability. A failed interval rolls back completely; reduce the tick and inspect source depletion, pressure and phase limits. The model omits variable-density two-phase momentum, cavitation, acoustic waves, gravity, moving pipe geometry and resolved thermal fronts. Prescribed combustion does not establish detailed chemical-equilibrium or reaction-entropy accuracy. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.pt-BR.md b/docs/FUEL_INERTIAL_PIPE.pt-BR.md new file mode 100644 index 0000000..b285104 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.pt-BR.md @@ -0,0 +1,41 @@ +# Quantidade de movimento da linha finita de combustível líquido + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · **Português** + +## Contrato físico + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. + +Declare comprimento, área, resistências linear/quadrática, vazão inicial, temperatura inicial e `fluid_heat_fraction`. As unidades são `pa_s_m3` e `pa_s2_m6`. Material e densidade coincidem. Não existe abertura direta: fechar outra válvula não apaga o movimento. Referências material e química vêm das portas. + +## Energia e portas + +A entalpia doadora sai do vaso a montante. A linha mistura energia sensível com inventário próprio e fornece entalpia misturada à pressão a jusante. O trabalho muda energia cinética e fornece calor de atrito uma única vez. A fração declarada aquece líquido, o resto a parede finita. A reversão troca doador/receptor com os mesmos balanços. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +O movimento usa vazão média e pressões finais aceitas. Energia e mistura usam Euler implícito; o acoplamento completo converge em primeira ordem. Mesmo sem atrito, a discretização transforma parte da oscilação em calor numérico, não registrado como atrito físico. Entropia inclui mistura e discretização. Eventos de vazão zero separam transferências diretas e reversas. + +## Uso e evidências + +Execute `inertial-fuel-line` para reversão/mistura, ou `inertial-pump-fed-cylinder` para entrada, bomba, agulha eletromagnética física e combustão prescrita. Leia `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, inventários e balanços. Vazão volumétrica instantânea e mássica média do último passo. A linha adiciona massa e energia química próprias. + +Solução harmônica independente com flexibilidade finita e RK4 independente de movimento/temperaturas não lineares verificam exatidão e primeira ordem. Cobrem calor, entropia, reversão, balanços, intervalos especulativos de embreagem, alocações, rollback, cancelamento e ramos. Assets portáteis e MCP real verificam cada fronteira. Isso não comprova calibração ou Unity real. + +## Validade e próximos trabalhos + +Os parâmetros seguem `unverified`. Respeite intervalos materiais e estabilidade líquida corrigida pela pressão. Falhas revertem todo o intervalo; reduza passo e confira esgotamento, pressão e fase. Faltam movimento bifásico com densidade variável, cavitação, acústica, gravidade, geometria móvel e frentes térmicas. Combustão prescrita não prova química de equilíbrio ou entropia de reação detalhadas. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.ru.md b/docs/FUEL_INERTIAL_PIPE.ru.md new file mode 100644 index 0000000..14915fc --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.ru.md @@ -0,0 +1,41 @@ +# Импульс конечной линии жидкого топлива + +[English](FUEL_INERTIAL_PIPE.md) · [简体中文](FUEL_INERTIAL_PIPE.zh-CN.md) · [Français](FUEL_INERTIAL_PIPE.fr.md) · **Русский** · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## Физический контракт + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. + +Задайте длину, площадь, линейное/квадратичное сопротивления, начальный расход, температуру и `fluid_heat_fraction`. Единицы — `pa_s_m3` и `pa_s2_m6`. Материал и плотность портов совпадают. Прямого открытия нет: закрытие другого клапана не уничтожает импульс. Материальная и химическая опора наследуется от портов. + +## Энергия и порты + +Донорская энтальпия уходит из верхнего сосуда. Линия смешивает входящую теплоту со своим запасом и отдаёт смешанную энтальпию при нижнем давлении. Работа давления меняет кинетическую энергию и однократно обеспечивает тепло трения. Заданная доля греет жидкость, остаток — конечную стенку. Реверс меняет роли донора/приёмника с теми же балансами. + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +Импульс использует средний расход и принятые конечные давления. Энергия портов и смешение — обратный Эйлер, поэтому порядок всего сопряжения первый. Даже без трения дискретизация давлений превращает часть колебаний в численную теплоту; она не записывается как физическое трение. Энтропия учитывает смешение и дискретизацию. События нулевого расхода сохраняют прямой и обратный перенос отдельно. + +## Использование и доказательства + +Запустите `inertial-fuel-line` для реверса/смешения или `inertial-pump-fed-cylinder` для входной линии, насоса, физической электромагнитной иглы и предписанного горения. Читайте `volume_flow`, `mass_flow`, `forward_volume`, `reverse_volume`, `kinetic_energy`, `energy_at_a`, `energy_at_b`, тепловые запасы и балансы. Объёмный расход мгновенный, массовый усреднён за шаг. Линия добавляет собственную массу и химический запас. + +Независимое гармоническое решение с конечной податливостью и отдельная RK4 нелинейного импульса/температур проверяют точность и первый порядок. Проверены тепло, энтропия, реверс, полные балансы, пробные интервалы сцепления, выделения памяти, откат, отмена и ветви. Переносимые assets и реальный MCP проверяют все границы. Это не калибровка оборудования и не фактический Unity. + +## Применимость и дальнейшая работа + +Параметры — `unverified`. Действуют материальные температурные/давленческие пределы и жидкая устойчивость с поправкой давления. Ошибка откатывает весь интервал; уменьшите шаг и проверьте истощение, давление и фазу. Не учтены переменная плотность двухфазного потока, кавитация, акустика, тяжесть, подвижная геометрия и тепловые фронты. Предписанное горение не подтверждает подробное химическое равновесие или энтропию реакции. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_INERTIAL_PIPE.zh-CN.md b/docs/FUEL_INERTIAL_PIPE.zh-CN.md new file mode 100644 index 0000000..9de4783 --- /dev/null +++ b/docs/FUEL_INERTIAL_PIPE.zh-CN.md @@ -0,0 +1,41 @@ +# 有限液体燃油管路动量 + +[English](FUEL_INERTIAL_PIPE.md) · **简体中文** · [Français](FUEL_INERTIAL_PIPE.fr.md) · [Русский](FUEL_INERTIAL_PIPE.ru.md) · [日本語](FUEL_INERTIAL_PIPE.ja.md) · [한국어](FUEL_INERTIAL_PIPE.ko.md) · [Deutsch](FUEL_INERTIAL_PIPE.de.md) · [Español](FUEL_INERTIAL_PIPE.es.md) · [Italiano](FUEL_INERTIAL_PIPE.it.md) · [Português](FUEL_INERTIAL_PIPE.pt-BR.md) + +## 物理契约 + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 + +声明长度、面积、线性及二次阻力、初始流量、初始温度与 `fluid_heat_fraction`。阻力单位为 `pa_s_m3` 和 `pa_s2_m6`。两端燃油材料属性与密度必须匹配。没有直接开度输入:关闭其他阀门不会抹去管路动量。材料及化学能参考继承自端口。 + +## 能量与端口 + +上游容器输出供给焓。管路将输入显热与自身液体库存混合,再以接收端压力向下游输出混合焓。压力功改变动能并且只计一次摩擦热。声明比例的摩擦热加热管内液体,其余加热有限壁面。流向反转时交换供给端与接收端,仍采用相同平衡。 + +```text +M_line = rho L A; I = rho L / A +E_line = U_line + I Q^2/2 + M_line LHV +D = R Q^2 + K abs(Q)^3 +dM_A/dt = -rho Q; dM_B/dt = rho Q +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +dU_line/dt = rho abs(Q) (u_donor-u_line) + xi D +dE_kinetic/dt = (p_A-p_B) Q - D +dE_wall/dt = (1-xi) D +h_port = u + p/rho +``` + +动量方程采用中点流量及接受的末态压力;端口能量与管内混合采用后向欧拉,因此完整耦合为一阶收敛。即使没有摩擦,末态压力离散也会将部分压力/动能振荡转为数值显热;该部分不记作物理摩擦。成对熵变化包含混合与时间离散。零流量事件分别保留正反向输运历史。 + +## 使用与证据 + +运行 `inertial-fuel-line` 检查反向流及热混合,或运行 `inertial-pump-fed-cylinder` 检查入口管路、泵、物理电磁针阀及规定燃烧。读取 `volume_flow`、`mass_flow`、`forward_volume`、`reverse_volume`、`kinetic_energy`、`energy_at_a`、`energy_at_b`、热库存及完整账本。体积流量为瞬时值,质量流量为上一节拍均值。管路具有额外质量及化学能库存。 + +独立有限柔性谐振解及单独的非线性动量/温度 RK4 积分验证精度与一阶细化。检查覆盖摩擦热分配、成对熵、物理反转、完整能量/质量/燃油账本、离合器试探区间、无分配步进、回滚、取消及独立分支。便携资产和实际 MCP 检查每个采样边界。这不证明硬件标定或实际 Unity 验收。 + +## 有效范围与后续工作 + +参数保持 `unverified`。遵守材料温压区间与压力修正的液态稳定条件。失败区间完整回滚;减小节拍并检查源耗尽、压力及相态边界。模型不包含变密度两相动量、空化、声波、重力、运动管形及解析热前沿。规定燃烧不证明详细化学平衡或反应熵准确性。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: dynamic pipe boundaries](https://doc.modelica.org/om/Modelica.Fluid.Pipes.DynamicPipe.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.de.md b/docs/FUEL_PHASE_EQUILIBRIUM.de.md new file mode 100644 index 0000000..4579aba --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.de.md @@ -0,0 +1,48 @@ +# Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · **Deutsch** · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Vertrag + +Optionales `fuel_film.parameters.phase_equilibrium` deklariert `reference_pressure` in `pa` oder `bar` und `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` ist die Referenztemperatur; `latent_internal_energy` die Dampf-minus-Flüssigkeits-Innenenergie dort. Jeder Gleichgewichtsempfänger besitzt einen Film. Der erklärte Anfangssnapshot bleibt erhalten; akzeptierte Intervalle gleichen Gas und Flüssigkeit mit endlicher Wandwärme aus. + +`mass_flow` ist der vorzeichenbehaftete Nettophasentransfer des vollständigen Physikschritts. `evaporated_fuel_mass` und `condensed_fuel_mass` summieren positive und negative Massen, ohne sich aufhebende Teilprojektionen doppelt zu zählen. `vapor_partial_pressure` zeigt den Kraftstoffpartialdruck. Wärme-, Masse- und Chemiebilanzen enthalten beide Phasen. + +## Thermodynamische Referenz + +Das Modell nutzt eine ideale Pseudospezies, die gemeinsame Gaskonstante, konstante Wärmekapazitäten und vernachlässigbare Flüssigkeitsverdrängung. Gleiche chemische Potenziale ergeben die Sättigungsbeziehung unten. Bei festem Volumen bestimmen Gesamtkraftstoff und Innenenergie Temperatur und Dampfmasse. Chemisches Inventar wird intern übertragen; die Reaktion verbraucht nur Dampf. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Versorgungs- und numerische Grenzen + +Eine begrenzte skalare Lösung nutzt die monotone Gleichgewichtsenergie. Endliche Wandwärme verwendet impliziten Euler. Transport- und Zylinderarbeitskopplung besitzen Verfeinerungsnachweise erster Ordnung. Flüssige Koexistenz bleibt im Temperaturintervall. Nach vollständiger Verdampfung darin kann Gas überhitzen, ohne die Sättigungskurve zu extrapolieren. + +Die Standardversorgung verwirft Flüssigkeit unter Sättigung. Optionales endliches Tankgleichgewicht löst Quellendampftransfer mit druckkorrigierten Potenzialen. Rail und Ansaugung führen weiter getrennte Flüssigkeit; Blasenmitnahme und kavitierende Strömung benötigen weitere Physik. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +## Nachweise + +`equilibrium-fuel-cell` zeigt Kondensation, Entlüftungsverdampfung und erneute Kondensation. `equilibrium-injected-cylinder` ergänzt den belüfteten Tankmotor um reversibles Empfängergleichgewicht und Versorgungsreserven. Unabhängige Entropiemaximierung, analytische Grenzen, simultane ODE-Verfeinerung, vollständiges Replay, Rollback und Allokationen werden geprüft. Asset v41 erhält Eigenschaften und liest v1-v40. + +Parameter bleiben `unverified`. Gemessene Benzineigenschaften, Mehrkomponenten- oder endliche Phasenkinetik, aufgelöste Flüssigkeitsverdrängung/Spray und OEM-Kalibrierung werden nicht geliefert. Echte Unity Editor/Play/Player/IL2CPP-Abnahme bleibt ausstehend. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.de.md](VALIDATION.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.es.md b/docs/FUEL_PHASE_EQUILIBRIUM.es.md new file mode 100644 index 0000000..d2eb8c9 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.es.md @@ -0,0 +1,48 @@ +# Equilibrio de fases del combustible y límites de suministro + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · **Español** · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contrato + +La opción `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` en `pa` o `bar`, y `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` es la temperatura de referencia; `latent_internal_energy` es la diferencia de energía interna vapor-líquido allí. Cada receptor en equilibrio tiene una película. La instantánea inicial se conserva; los intervalos aceptados equilibran gas y líquido e intercambian calor con la pared finita. + +`mass_flow` es la transferencia neta con signo del paso físico completo. `evaporated_fuel_mass` y `condensed_fuel_mass` acumulan sus masas positiva y negativa sin duplicar proyecciones que se cancelan. `vapor_partial_pressure` muestra la presión parcial de combustible. Los balances térmico, másico y químico incluyen ambas fases. + +## Referencia termodinámica + +El modelo usa una pseudoespecie ideal, la constante gaseosa común del receptor, capacidades constantes y desplazamiento líquido despreciable. La igualdad de potenciales químicos da la saturación siguiente. A volumen fijo, combustible total y energía interna determinan temperatura y masa de vapor. El inventario químico se transfiere internamente; la reacción solo consume vapor. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Límites de suministro y numéricos + +Una solución escalar acotada usa la energía de equilibrio monótona. El calor de pared usa Euler implícito. Transporte y trabajo del cilindro móvil tienen evidencia de refinamiento de primer orden. La coexistencia líquida queda en el intervalo declarado. Tras evaporarse completamente dentro de él, el gas puede sobrecalentarse sin extrapolar la curva. + +El suministro predeterminado rechaza líquido bajo saturación. La opción de tanque finito resuelve vapor fuente con potenciales corregidos por presión. Riel y aspiración aún llevan líquido separado; burbujas y flujo cavitante requieren más física. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +## Evidencia + +`equilibrium-fuel-cell` muestra condensación, evaporación por venteo y nueva condensación. `equilibrium-injected-cylinder` añade equilibrio reversible del receptor y márgenes al motor con tanque ventilado. Se comprueban máximo de entropía independiente, límites analíticos, refinamiento ODE simultáneo, replay completo, rollback y asignaciones. Asset v41 conserva propiedades y lee v1-v40. + +Parámetros `unverified`. No se aportan propiedades medidas de gasolina, cinética multicomponente o de velocidad finita, desplazamiento líquido/pulverización resueltos ni calibración OEM. La aceptación real Unity Editor/Play/Player/IL2CPP sigue pendiente. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.es.md](VALIDATION.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.fr.md b/docs/FUEL_PHASE_EQUILIBRIUM.fr.md new file mode 100644 index 0000000..1dd9c33 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.fr.md @@ -0,0 +1,48 @@ +# Équilibre des phases du carburant et limites d'alimentation + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · **Français** · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contrat + +L'option `fuel_film.parameters.phase_equilibrium` déclare `reference_pressure` en `pa` ou `bar` et `minimum_temperature` / `maximum_temperature` en `k`. `saturation_temperature` est la température de référence ; `latent_internal_energy` est la différence d'énergie interne vapeur-liquide à cette température. Un film possède chaque récepteur en équilibre. L'état initial déclaré est conservé ; les intervalles acceptés équilibrent gaz et liquide avec échange thermique vers la paroi finie. + +`mass_flow` est le transfert net signé sur le pas physique complet. `evaporated_fuel_mass` et `condensed_fuel_mass` cumulent ses masses positive et négative, sans compter deux fois les projections qui s'annulent. `vapor_partial_pressure` donne la pression partielle du carburant. Les bilans thermiques, massiques et chimiques comprennent les deux phases. + +## Référence thermodynamique + +Le modèle utilise une pseudo-espèce idéale, la constante gazeuse commune du récepteur, des capacités thermiques constantes et un déplacement liquide négligeable. L'égalité des potentiels chimiques donne la relation de saturation ci-dessous. À volume fixé, carburant total et énergie interne déterminent température et masse de vapeur. Le transfert chimique reste interne ; la réaction consomme uniquement la vapeur. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Limites d'alimentation et numériques + +Un solveur scalaire borné utilise l'énergie d'équilibre monotone. La chaleur de paroi suit Euler implicite. Le couplage au transport et au travail du cylindre présente une convergence du premier ordre. La coexistence liquide reste dans l'intervalle déclaré. Le gaz peut surchauffer après évaporation complète dans cet intervalle, sans extrapoler la courbe de saturation. + +L'alimentation liquide par défaut rejette les états humides sous saturation. L'option de réservoir à volume fini résout le transfert vapeur source avec potentiels chimiques corrigés. Rail et aspiration restent liquides séparés ; entraînement de bulles et écoulement cavitant demandent une physique supplémentaire. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +## Preuves + +`equilibrium-fuel-cell` montre condensation, évaporation par ventilation puis nouvelle condensation. `equilibrium-injected-cylinder` ajoute l'équilibre réversible du récepteur et les marges d'alimentation au moteur à réservoir ventilé. Maximisation indépendante d'entropie, limites analytiques, raffinement ODE simultané, rejeu complet, retour arrière et allocations sont vérifiés. Asset v41 conserve ces propriétés et lit v1-v40. + +Paramètres `unverified`. Propriétés d'essence mesurées, cinétique multiphase multicomposant ou à vitesse finie, déplacement liquide/pulvérisation résolus et calibration OEM ne sont pas fournis. L'acceptation réelle Unity Editor/Play/Player/IL2CPP reste en attente. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.fr.md](VALIDATION.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.it.md b/docs/FUEL_PHASE_EQUILIBRIUM.it.md new file mode 100644 index 0000000..0b67694 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.it.md @@ -0,0 +1,48 @@ +# Equilibrio di fase del carburante e limiti di alimentazione + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · **Italiano** · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contratto + +L'opzione `fuel_film.parameters.phase_equilibrium` dichiara `reference_pressure` in `pa` o `bar` e `minimum_temperature` / `maximum_temperature` in `k`. `saturation_temperature` è la temperatura di riferimento; `latent_internal_energy` la differenza di energia interna vapore-liquido a tale temperatura. Ogni ricevitore in equilibrio ha un film. Lo snapshot iniziale resta dichiarato; gli intervalli accettati equilibrano gas e liquido con scambio verso la parete finita. + +`mass_flow` è il trasferimento netto con segno del passo fisico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` accumulano masse positive e negative senza contare due volte proiezioni che si annullano. `vapor_partial_pressure` indica la pressione parziale del carburante. I bilanci termici, di massa e chimici includono entrambe le fasi. + +## Riferimento termodinamico + +Il modello usa una pseudospecie ideale, la costante gassosa comune, calori specifici costanti e spostamento liquido trascurabile. L'uguaglianza dei potenziali chimici dà la saturazione seguente. A volume fisso, combustibile totale ed energia interna determinano temperatura e massa di vapore. L'inventario chimico si trasferisce internamente; la reazione consuma solo vapore. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Limiti di alimentazione e numerici + +Una soluzione scalare limitata usa l'energia di equilibrio monotona. Il calore della parete usa Euler implicito. Trasporto e lavoro del cilindro mobile hanno evidenza di convergenza del primo ordine. La coesistenza liquida resta nell'intervallo dichiarato. Dopo completa evaporazione al suo interno il gas può surriscaldarsi senza estrapolare la curva. + +L'alimentazione predefinita respinge liquido sotto saturazione. Il serbatoio finito opzionale risolve il vapore sorgente con potenziali corretti. Rail e aspirazione trasportano ancora liquido separato; bolle e flusso cavitante richiedono altra fisica. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +## Evidenza + +`equilibrium-fuel-cell` mostra condensazione, evaporazione da sfiato e nuova condensazione. `equilibrium-injected-cylinder` aggiunge equilibrio reversibile del ricevitore e margini al motore con serbatoio ventilato. Si verificano massimo d'entropia indipendente, limiti analitici, raffinamento ODE simultaneo, replay completo, rollback e allocazioni. Asset v41 conserva le proprietà e legge v1-v40. + +Parametri `unverified`. Non sono fornite proprietà misurate della benzina, cinetica multicomponente o a velocità finita, spostamento liquido/spray risolti o calibrazione OEM. L'accettazione reale Unity Editor/Play/Player/IL2CPP resta in attesa. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.it.md](VALIDATION.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.ja.md b/docs/FUEL_PHASE_EQUILIBRIUM.ja.md new file mode 100644 index 0000000..90a6f4d --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.ja.md @@ -0,0 +1,48 @@ +# 燃料の相平衡と液体供給の境界 + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · **日本語** · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## 契約 + +任意の `fuel_film.parameters.phase_equilibrium` は `pa` または `bar` の `reference_pressure` と、`k` の `minimum_temperature` / `maximum_temperature` を指定します。既存の `saturation_temperature` は基準温度、`latent_internal_energy` はそこでの蒸気と液体の比内部エネルギー差です。平衡受け側は一つの膜が所有します。初期スナップショットを保持し、受理した区間で気液平衡と有限壁の熱交換を計算します。 + +`mass_flow` は完全な物理刻みの符号付き正味相移動です。`evaporated_fuel_mass` と `condensed_fuel_mass` は正負の質量を別々に累積し、相殺する分割演算を二重計上しません。`vapor_partial_pressure` は受け側の燃料分圧です。熱・質量・化学エネルギー収支は両相を含みます。 + +## 熱力学的基準 + +一つの理想擬似成分、受け側の共通気体定数、一定比熱を用い、液体押しのけ容積を無視します。相の化学ポテンシャルの一致から下の飽和関係を得ます。固定体積では総燃料と内部エネルギーから共通温度と蒸気質量が決まります。化学エネルギーは内部で移動し、反応は蒸気のみを消費します。 + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## 供給と数値計算の制限 + +有界スカラー解法は単調な平衡エネルギーを使います。有限壁の伝熱は後退 Euler です。輸送と移動シリンダー仕事との連成には一次収束の証拠があります。液体共存は指定温度区間内に限り、その区間で完全蒸発した気体は過熱できます。飽和曲線は外挿しません。 + +既定の液体供給は飽和未満の湿潤状態を拒否します。任意の有限タンク平衡は補正化学ポテンシャルで供給蒸気移動を解きます。レールと吸入口は分離液体のままで、気泡巻込みとキャビテーション輸送には追加物理が必要です。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +## 証拠 + +`equilibrium-fuel-cell` は凝縮、通気による蒸発、再凝縮を示します。`equilibrium-injected-cylinder` は通気タンクエンジンに可逆相平衡と供給余裕を加えます。独立したエントロピー最大化、解析的極限、連立 ODE 収束、完全再生、ロールバックと割当を検証します。アセット v41 は物性を保持し v1-v40 を読みます。 + +パラメーターは `unverified` です。実測ガソリン物性、多成分または有限速度の相変化、分解液体押しのけ/噴霧、OEM 較正は提供しません。実際の Unity Editor/Play/Player/IL2CPP 受け入れは未完了です。 + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.ja.md](VALIDATION.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.ko.md b/docs/FUEL_PHASE_EQUILIBRIUM.ko.md new file mode 100644 index 0000000..3b22955 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.ko.md @@ -0,0 +1,48 @@ +# 연료 상평형과 액체 공급 경계 + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · **한국어** · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## 계약 + +선택 항목 `fuel_film.parameters.phase_equilibrium`은 `pa` 또는 `bar`의 `reference_pressure`와 `k`의 `minimum_temperature` / `maximum_temperature`를 지정합니다. 기존 `saturation_temperature`는 기준 온도이고 `latent_internal_energy`는 그 온도에서 증기와 액체의 비내부에너지 차이입니다. 평형 수용부마다 하나의 막을 사용합니다. 초기 스냅샷을 보존하고 수용된 구간에서 기액 평형과 유한 벽 열교환을 계산합니다. + +`mass_flow`는 완전한 물리 시간 단계의 부호 있는 순 상변화입니다. `evaporated_fuel_mass`와 `condensed_fuel_mass`는 양·음 질량을 각각 누적하여 상쇄되는 분할 계산을 중복 집계하지 않습니다. `vapor_partial_pressure`는 수용부 연료 분압입니다. 열, 질량과 화학 에너지 수지는 두 상을 포함합니다. + +## 열역학 기준 + +하나의 이상 의사 성분, 수용부의 공통 기체 상수, 일정 비열을 쓰며 액체 변위 체적은 무시합니다. 상의 화학 퍼텐셜 일치로 아래 포화 관계를 얻습니다. 고정 체적에서 총연료와 내부에너지가 공통 온도와 증기 질량을 결정합니다. 화학 에너지는 내부 이동하며 반응은 증기만 소비합니다. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## 공급과 수치적 제한 + +유계 스칼라 풀이가 단조 평형 에너지를 사용합니다. 유한 벽 열전달은 후진 Euler입니다. 수송 및 이동 실린더 일과의 연성에 1차 수렴 증거가 있습니다. 액체 공존은 지정 온도 구간 안에 있어야 합니다. 구간 안에서 완전히 증발한 기체는 과열될 수 있으며 포화 곡선을 외삽하지 않습니다. + +기본 액체 공급은 포화 이하 젖은 상태를 거부합니다. 선택 유한 탱크 평형은 압력 보정 화학 퍼텐셜로 공급 증기 이동을 풉니다. 레일과 흡입구는 여전히 분리 액체이며 기포 동반과 캐비테이션 수송은 추가 물리가 필요합니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +## 증거 + +`equilibrium-fuel-cell`은 응축, 통기 증발과 재응축을 보여 줍니다. `equilibrium-injected-cylinder`는 통기 탱크 엔진에 가역 수용부 상평형과 공급 여유를 추가합니다. 독립 엔트로피 최대화, 해석적 극한, 연립 ODE 수렴, 완전 재현, 롤백과 할당 검사를 수행합니다. 자산 v41은 물성을 보존하고 v1-v40를 읽습니다. + +매개변수는 `unverified`입니다. 실측 가솔린 물성, 다성분 또는 유한 속도 상변화, 해상된 액체 변위/분무와 OEM 보정은 제공하지 않습니다. 실제 Unity Editor/Play/Player/IL2CPP 수용은 미완성입니다. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.ko.md](VALIDATION.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.md b/docs/FUEL_PHASE_EQUILIBRIUM.md new file mode 100644 index 0000000..72a3f97 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.md @@ -0,0 +1,48 @@ +# Fuel phase equilibrium and liquid supply limits + +**English** · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contract + +Optional `fuel_film.parameters.phase_equilibrium` declares `reference_pressure` in `pa` or `bar`, and `minimum_temperature` / `maximum_temperature` in `k`. Existing `saturation_temperature` is the reference temperature; `latent_internal_energy` is the vapor-minus-liquid internal energy there. One film owns each equilibrium receiver. The authored initial snapshot is retained; accepted intervals equilibrate gas and liquid and exchange heat with the finite wall. + +`mass_flow` is the signed net phase transfer over the complete physical tick. `evaporated_fuel_mass` and `condensed_fuel_mass` accumulate its positive and negative mass amounts, so canceling split-operator projections are not counted twice. `vapor_partial_pressure` reports the receiver fuel partial pressure. Thermal, mass and chemical ledgers include both phases. + +## Thermodynamic reference + +The model uses one ideal pseudo-species, the receiver's common gas constant and constant heat capacities, and negligible liquid displacement. Equality of phase chemical potentials gives the saturation relation below. At fixed volume, total fuel and internal energy determine the common temperature and vapor mass. Evaporation and condensation transfer chemical inventory internally; reaction still consumes vapor only. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Supply and numerical limits + +A bounded scalar solve uses the monotone equilibrium energy relation. Finite-wall heat uses backward Euler. Coupling to transport and moving-cylinder work has first-order refinement evidence. Liquid coexistence stays within the declared temperature interval. Completely evaporated gas can superheat after dryout within that interval; the saturation curve is not extrapolated. + +The default liquid-supply model rejects wet states below saturation. Optional finite-volume tank equilibrium instead resolves source vapor transfer with pressure-corrected chemical potentials. The rail and pump pickup still carry separated liquid; bubble entrainment and cavitating pump/rail flow require further physics. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +## Evidence + +`equilibrium-fuel-cell` demonstrates condensation, vent-driven evaporation and renewed condensation. `equilibrium-injected-cylinder` adds reversible receiver phase behavior and observable supply margins to the vented-tank engine. Independent entropy maximization, analytic saturation/heat limits, simultaneous ODE refinement, complete replay, rollback and allocation checks cover the implementation. Asset v41 retains these properties and reads v1-v40. + +Parameters remain `unverified`. The model does not supply measured gasoline properties, multicomponent or finite-rate phase kinetics, resolved liquid displacement/spray, or OEM calibration. Actual Unity Editor/Play/Player/IL2CPP acceptance remains pending. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.md](VALIDATION.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.pt-BR.md b/docs/FUEL_PHASE_EQUILIBRIUM.pt-BR.md new file mode 100644 index 0000000..267f5a9 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.pt-BR.md @@ -0,0 +1,48 @@ +# Equilíbrio de fases do combustível e limites de suprimento + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · **Português** + +## Contrato + +A opção `fuel_film.parameters.phase_equilibrium` declara `reference_pressure` em `pa` ou `bar` e `minimum_temperature` / `maximum_temperature` em `k`. `saturation_temperature` é a temperatura de referência; `latent_internal_energy` é a diferença de energia interna vapor-líquido nela. Cada receptor em equilíbrio possui um filme. O snapshot inicial é mantido; intervalos aceitos equilibram gás e líquido com troca de calor com a parede finita. + +`mass_flow` é a transferência líquida com sinal do passo físico completo. `evaporated_fuel_mass` e `condensed_fuel_mass` acumulam suas massas positiva e negativa sem duplicar projeções que se cancelam. `vapor_partial_pressure` mostra a pressão parcial do combustível. Balanços térmicos, de massa e químicos incluem ambas as fases. + +## Referência termodinâmica + +O modelo usa uma pseudoespécie ideal, a constante gasosa comum, calores específicos constantes e deslocamento líquido desprezível. Potenciais químicos iguais fornecem a saturação abaixo. A volume fixo, combustível total e energia interna determinam temperatura e massa de vapor. O inventário químico é transferido internamente; a reação consome só vapor. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Limites de suprimento e numéricos + +Uma solução escalar limitada usa energia de equilíbrio monótona. Calor da parede usa Euler implícito. Transporte e trabalho do cilindro móvel têm evidência de refinamento de primeira ordem. A coexistência líquida fica no intervalo declarado. Após evaporação completa dentro dele, o gás pode superaquecer sem extrapolar a curva. + +O suprimento padrão rejeita líquido sob saturação. O tanque finito opcional resolve vapor da fonte com potenciais corrigidos por pressão. Trilho e captação ainda levam líquido separado; bolhas e fluxo cavitante precisam de mais física. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +## Evidência + +`equilibrium-fuel-cell` mostra condensação, evaporação por ventilação e nova condensação. `equilibrium-injected-cylinder` acrescenta equilíbrio reversível do receptor e margens ao motor com tanque ventilado. Verificam-se máximo independente de entropia, limites analíticos, refinamento ODE simultâneo, replay completo, rollback e alocações. Asset v41 preserva propriedades e lê v1-v40. + +Parâmetros `unverified`. Não são fornecidas propriedades medidas de gasolina, cinética multicomponente ou de velocidade finita, deslocamento líquido/spray resolvidos ou calibração OEM. A aceitação real Unity Editor/Play/Player/IL2CPP continua pendente. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.ru.md b/docs/FUEL_PHASE_EQUILIBRIUM.ru.md new file mode 100644 index 0000000..0370914 --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.ru.md @@ -0,0 +1,48 @@ +# Фазовое равновесие топлива и границы жидкой подачи + +[English](FUEL_PHASE_EQUILIBRIUM.md) · [简体中文](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · **Русский** · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Контракт + +Необязательный `fuel_film.parameters.phase_equilibrium` задаёт `reference_pressure` в `pa` или `bar`, а `minimum_temperature` / `maximum_temperature` в `k`. `saturation_temperature` обозначает опорную температуру; `latent_internal_energy` — разность удельной внутренней энергии пара и жидкости при ней. Каждый равновесный приёмник имеет одну плёнку. Начальный снимок сохраняется; принятые интервалы уравновешивают газ и жидкость с теплообменом с конечной стенкой. + +`mass_flow` — знаковый нетто-перенос за полный физический шаг. `evaporated_fuel_mass` и `condensed_fuel_mass` накапливают положительную и отрицательную массы без двойного счёта компенсирующих проекций. `vapor_partial_pressure` показывает парциальное давление топлива. Тепловой, массовый и химический балансы включают обе фазы. + +## Термодинамическая основа + +Модель использует идеальный псевдокомпонент, общую газовую постоянную приёмника, постоянные теплоёмкости и пренебрежимо малое вытеснение жидкости. Равенство химических потенциалов даёт приведённое ниже насыщение. При фиксированном объёме общее топливо и внутренняя энергия определяют температуру и массу пара. Химический запас переносится внутри; реакция расходует только пар. + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## Границы подачи и численного метода + +Ограниченный скалярный решатель использует монотонную равновесную энергию. Тепло стенки вычисляется неявным Эйлером. Для переноса и работы движущегося цилиндра показана сходимость первого порядка. Сосуществование жидкости ограничено заданными температурами. После полного испарения внутри интервала газ может перегреваться без экстраполяции кривой насыщения. + +Однофазная подача по умолчанию отклоняет жидкость ниже насыщения. Опциональный конечный бак разрешает парообмен источника с поправкой химического потенциала. Рампа и забор остаются жидкими; пузырьки и кавитирующий поток требуют дальнейшей физики. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +## Доказательства + +`equilibrium-fuel-cell` демонстрирует конденсацию, испарение при вентиляции и повторную конденсацию. `equilibrium-injected-cylinder` добавляет обратимое равновесие приёмника и запасы подачи в двигатель с вентилируемым баком. Проверены независимый максимум энтропии, аналитические пределы, совместное уточнение ODE, полное воспроизведение, откат и аллокации. Asset v41 хранит свойства и читает v1-v40. + +Параметры `unverified`. Измеренные свойства бензина, многокомпонентная или конечная кинетика фаз, разрешённые вытеснение/распыл и OEM-калибровка не предоставлены. Реальная приёмка Unity Editor/Play/Player/IL2CPP остаётся открытой. + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.ru.md](VALIDATION.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) diff --git a/docs/FUEL_PHASE_EQUILIBRIUM.zh-CN.md b/docs/FUEL_PHASE_EQUILIBRIUM.zh-CN.md new file mode 100644 index 0000000..14fd1ed --- /dev/null +++ b/docs/FUEL_PHASE_EQUILIBRIUM.zh-CN.md @@ -0,0 +1,48 @@ +# 燃油相平衡与液体供给边界 + +[English](FUEL_PHASE_EQUILIBRIUM.md) · **简体中文** · [Français](FUEL_PHASE_EQUILIBRIUM.fr.md) · [Русский](FUEL_PHASE_EQUILIBRIUM.ru.md) · [日本語](FUEL_PHASE_EQUILIBRIUM.ja.md) · [한국어](FUEL_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](FUEL_PHASE_EQUILIBRIUM.de.md) · [Español](FUEL_PHASE_EQUILIBRIUM.es.md) · [Italiano](FUEL_PHASE_EQUILIBRIUM.it.md) · [Português](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## 契约 + +可选的 `fuel_film.parameters.phase_equilibrium` 声明单位为 `pa` 或 `bar` 的 `reference_pressure`,以及单位为 `k` 的 `minimum_temperature` / `maximum_temperature`。已有 `saturation_temperature` 指参考温度,`latent_internal_energy` 指该温度下蒸气与液体的比内能差。每个平衡接收端由一个油膜拥有。初始快照保留输入状态;接受的推进区间使气液达到平衡,并与有限热容量壁面交换热量。 + +`mass_flow` 是完整物理时间步的带符号净相变流量。`evaporated_fuel_mass` 与 `condensed_fuel_mass` 分别累计正、负净相变量,避免重复计算分步求解中互相抵消的调整。`vapor_partial_pressure` 给出接收端燃料分压。热能、质量和化学能账本包含两相。 + +## 热力学参考 + +模型采用一种理想拟组分、接收端共用气体常数和常比热,并忽略液体位移体积。由两相化学势相等得到下述饱和关系。在固定体积下,总燃料量与内能确定共同温度及蒸气质量。蒸发和冷凝在内部转移化学能库存,反应仍只消耗蒸气。 + +```text +a = (cv - cl) T_ref - L_u,ref +u_l(T) = cl T + a +u_v(T) = cv T +L_u(T) = (cv - cl) T - a +ln(p_sat(T) / p_ref) = (cv + R - cl) / R * ln(T / T_ref) + + a / R * (1/T - 1/T_ref) +m_v(T) = min(M_f, p_sat(T) V / (R T)) +U_eq(T) = (M_c + m_v) cv T + (M_f - m_v) u_l(T) +``` + +## 供给与数值限制 + +有界标量求解利用单调的平衡能量关系。有限壁面传热采用后向欧拉。与输运、运动气缸功耦合的一阶细化检查通过。液体共存状态保持在声明的温度区间内;在区间内完全蒸发后,干燥气体可以继续过热,饱和曲线不作外推。 + +默认液体供给模型拒绝低于饱和压力的湿状态。可选有限体积油箱相平衡使用压力修正化学势求解供给端蒸气转移。燃轨和泵吸口仍只输送已分离液体;气泡夹带与空化泵/燃轨流动还需要后续物理模型。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +## 证据 + +`equilibrium-fuel-cell` 展示冷凝、通气引起的蒸发及再次冷凝。`equilibrium-injected-cylinder` 在通气油箱发动机中加入接收端可逆相变与供给裕量。验证涵盖独立熵最大化、解析饱和及传热极限、联立 ODE 细化、完整回放、回滚和分配检查。资产 v41 保留这些属性,并读取 v1-v40。 + +参数仍为 `unverified`。模型未提供实测汽油属性、多组分或有限速率相变动力学、分解液体位移/喷雾及 OEM 标定。实际 Unity Editor/Play/Player/IL2CPP 验收仍待完成。 + +[Cantera: species thermodynamics](https://www.cantera.org/stable/reference/thermo/species-thermo.html) · [Cantera: equilibrium](https://www.cantera.org/stable/python/thermo.html) · [VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) diff --git a/docs/LIQUID_COLUMN.de.md b/docs/LIQUID_COLUMN.de.md new file mode 100644 index 0000000..0be9a55 --- /dev/null +++ b/docs/LIQUID_COLUMN.de.md @@ -0,0 +1,42 @@ +# Referenz für den Impuls am Flüssigkeitseinlass + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · **Deutsch** · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## Physikalische Grenze + +`LiquidColumn` ist eine eigenständige C#-Referenz für ein waagerechtes starres Rohr mit konstantem Querschnitt, gleichförmiger Geschwindigkeit, Flüssigkeitsdichte und Temperatur. Absolute Portdrücke sind je Intervall vorgegeben. Lineare und quadratische Widerstände sind explizite Forschungswerte. Es ist keine Graphkomponente; Netzwerk und Düsen bleiben unverändert. + +## Impuls und Energie + +Beide Ports haben gleichen Durchfluss und gleiche Geschwindigkeit; transportierte kinetische Flüsse heben sich auf. Druckarbeit ändert gespeicherte Bewegungsenergie und erzeugt Reibungswärme. Ein isothermes Bad nimmt Wärme auf; Fluidtemperatur und innere Energie bleiben konstant. Entropieproduktion ist Wärme geteilt durch deklarierte Temperatur. Ein endlicher Wärmevorrat wird nicht modelliert. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +Der implizite Mittelpunkt löst die monotone skalare Impulsgleichung. Umkehr wird mit derselben Gleichung am Nulldurchfluss geteilt; Vorwärts-/Rückwärtsvolumen und Wärme bleiben getrennt. Ein akzeptierter Aufruf nutzt höchstens zwei Intervalle. Überschwingen des stationären Gleichgewichts liefert `StepTooLarge`; Dauer verringern. Energie- und Impulsresiduen werden auf binary64-Rundung geprüft. Auch ein akzeptierter grober Schritt braucht eine Genauigkeitsprüfung. + +## Kern-API und numerische Nachweise + +`LiquidColumn` mit expliziter SI-Geometrie, Dichte, Widerständen, Temperatur und Mindest-Absolutdruck erstellen. `LiquidColumnState` und Sekunden an `Advance` übergeben. Eigenschaftsnamen enthalten SI-Einheiten. Ergebnisse enthalten vorzeichenbehafteten und gerichteten Transport, Druckarbeit, Änderung der Bewegungsenergie, Wärme und Entropie. Ablehnung lässt Standardausgabe und unveränderte Eingabe; keine verwalteten Allokationen. Lokale Dauer ersetzt nicht die ganzzahlige Simulationsuhr. + +Unabhängige verlustfreie Beschleunigung, exponentielle lineare und hyperbolische quadratische Widerstandslösungen prüfen Grenzfälle. Eine unabhängige RK4 bei variablem Druck prüft zweite Ordnung mit Umkehr. Passive Abnahme, stationärer Fluss, volle Energiebilanz, nichtnegative Entropie, Ablehnungen, unveränderliche Nutzung und Allokationen werden auf beiden Zielen geprüft. + +## Nächste Kopplung + +Parameter bleiben `unverified`. Die Druckuntergrenze ist eine deklarierte Flüssigkeitsgrenze des Aufrufers, keine Dampfdrück- oder NPSH-Vorhersage. Kompressibilität, Akustik, Schwerkraft, bewegte Geometrie, Wärmespeicherung, Kavitation, Phasenschlupf und Relaxation fehlen. Zweiphasige Kraftstoffverbindungen bleiben quasistatisch. Tatsächliche Unity-Abnahme und Messkalibrierung sind separat. + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. [Impuls einer endlichen Flüssigkraftstoffleitung](FUEL_INERTIAL_PIPE.de.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.es.md b/docs/LIQUID_COLUMN.es.md new file mode 100644 index 0000000..4a8ad36 --- /dev/null +++ b/docs/LIQUID_COLUMN.es.md @@ -0,0 +1,42 @@ +# Referencia de cantidad de movimiento en la entrada líquida + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · **Español** · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## Frontera física + +`LiquidColumn` es una referencia C# independiente de un tubo horizontal rígido con sección, velocidad uniforme, densidad líquida y temperatura constantes. Las presiones absolutas se prescriben por intervalo. Las resistencias lineal y cuadrática son entradas de investigación explícitas. No es un componente del grafo ni cambia las ecuaciones de red o tobera. + +## Cantidad de movimiento y energía + +Ambos puertos tienen igual caudal y velocidad; los flujos cinéticos advectados se cancelan. El trabajo de presión cambia la energía cinética almacenada y genera calor de fricción. Un baño isotermo recibe calor; temperatura y energía interna permanecen constantes. La producción de entropía es calor dividido por temperatura declarada. No representa inventario térmico finito. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +El punto medio implícito resuelve la ecuación escalar monótona. La inversión se divide en caudal cero mediante la misma ecuación, reteniendo volúmenes directo/inverso y calor. Una llamada aceptada usa como máximo dos intervalos. Sobrepasar el equilibrio estacionario devuelve `StepTooLarge`; reduzca duración. Energía e impulso se comprueban al redondeo binary64. Un paso grueso aceptado aún necesita comprobar exactitud. + +## API del núcleo y evidencia numérica + +Construya `LiquidColumn` con geometría SI, densidad, resistencias, temperatura y presión absoluta mínima explícitas. Pase `LiquidColumnState` y segundos a `Advance`. Las propiedades incluyen unidades SI. El resultado contiene transporte con signo y direccional, trabajo, cambio cinético, calor y entropía. El rechazo deja resultado predeterminado y entrada intacta, sin asignaciones administradas. La duración local no sustituye el reloj entero de simulación. + +Aceleración sin pérdidas, exponencial lineal y tangente hiperbólica cuadrática independientes verifican límites. Una RK4 independiente con presión variable comprueba segundo orden con inversión. Se verifican decaimiento pasivo, equilibrio, energía completa, entropía no negativa, rechazos, uso inmutable y asignaciones en ambas compilaciones. + +## Siguiente acoplamiento + +Los parámetros siguen `unverified`. El mínimo de presión es un límite líquido declarado por el usuario, no predicción de presión de vapor o NPSH. Compresibilidad, acústica, gravedad, geometría móvil, almacenamiento térmico, cavitación, deslizamiento y relajación quedan fuera. Los enlaces bifásicos siguen cuasiestáticos. Unity real y calibración medida son independientes. + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. [Cantidad de movimiento en una línea finita de combustible líquido](FUEL_INERTIAL_PIPE.es.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.fr.md b/docs/LIQUID_COLUMN.fr.md new file mode 100644 index 0000000..ebc4e58 --- /dev/null +++ b/docs/LIQUID_COLUMN.fr.md @@ -0,0 +1,42 @@ +# Référence de quantité de mouvement à l'entrée liquide + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · **Français** · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## Frontière physique + +`LiquidColumn` est une référence C# autonome pour un tube horizontal rigide à section, vitesse uniforme, masse volumique liquide et température constantes. Les pressions absolues aux ports sont prescrites pendant chaque intervalle. Les résistances linéaire et quadratique sont des entrées de recherche explicites. Ce n'est pas un composant du graphe ; les équations du réseau et de la tuyère restent inchangées. + +## Quantité de mouvement et énergie + +Les ports ont le même débit et la même vitesse ; les flux cinétiques advectés se compensent. Le travail de pression modifie l'énergie cinétique stockée et produit la chaleur de friction. Un bain isotherme reçoit cette chaleur ; température et énergie interne du fluide restent constantes. La production d'entropie vaut chaleur divisée par température déclarée. Cette frontière ne représente pas un stock thermique fini. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +Le point milieu implicite résout l'équation scalaire monotone. Une inversion est divisée à débit nul avec la même équation, conservant volumes directs/inverses et chaleur. Un appel accepté emploie au plus deux intervalles. Un dépassement de l'équilibre stationnaire renvoie `StepTooLarge` ; réduire la durée. Résidus d'énergie et d'impulsion sont contrôlés à l'arrondi binary64. Un pas grossier accepté demande encore un contrôle d'exactitude. + +## API du cœur et preuves numériques + +Construire `LiquidColumn` avec géométrie SI, masse volumique, résistances, température et pression absolue minimale explicites. Passer `LiquidColumnState` et une durée en secondes à `Advance`. Les propriétés portent les unités SI. Le résultat comprend transferts signés et directionnels, travail, variation cinétique, chaleur et entropie. Un rejet laisse résultat par défaut et entrée intacte ; aucun appel n'alloue de mémoire gérée. La durée locale ne remplace pas l'horloge entière de simulation. + +Accélération sans pertes, solution exponentielle linéaire et tangente hyperbolique quadratique indépendantes vérifient les limites. Une RK4 indépendante à pression variable vérifie le second ordre, inversion comprise. Décroissance passive, équilibre, bilan énergétique complet, entropie non négative, rejets, partage immuable et allocations sont testés sur les deux cibles. + +## Couplage suivant + +Les paramètres restent `unverified`. Le plancher de pression est déclaré par l'appelant pour la validité liquide ; il ne prédit ni pression de vapeur ni marge NPSH. Compressibilité, acoustique, gravité, géométrie mobile, stockage thermique, cavitation, glissement et relaxation de phase sont hors référence. Les liens diphasiques restent quasi statiques. Acceptation Unity réelle et calibration mesurée sont séparées. + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. [Quantité de mouvement d'une ligne finie de carburant liquide](FUEL_INERTIAL_PIPE.fr.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.it.md b/docs/LIQUID_COLUMN.it.md new file mode 100644 index 0000000..297193f --- /dev/null +++ b/docs/LIQUID_COLUMN.it.md @@ -0,0 +1,42 @@ +# Riferimento della quantità di moto all'ingresso liquido + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · **Italiano** · [Português](LIQUID_COLUMN.pt-BR.md) + +## Confine fisico + +`LiquidColumn` è un riferimento C# autonomo per tubo orizzontale rigido con sezione, velocità uniforme, densità liquida e temperatura costanti. Le pressioni assolute sono prescritte nell'intervallo. Resistenze lineari e quadratiche sono input di ricerca espliciti. Non è un componente del grafo e non cambia rete o ugello. + +## Quantità di moto ed energia + +Le porte hanno uguale portata e velocità; i flussi cinetici convettivi si cancellano. Il lavoro di pressione cambia l'energia cinetica accumulata e produce calore d'attrito. Un bagno isotermo riceve calore; temperatura ed energia interna restano costanti. L'entropia prodotta è calore diviso temperatura dichiarata. Non rappresenta inventario termico finito. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +Il punto medio implicito risolve l'equazione scalare monotona. L'inversione si divide a portata zero con la stessa equazione, conservando volumi diretti/inversi e calore. Una chiamata accettata usa al massimo due intervalli. Superare l'equilibrio stazionario restituisce `StepTooLarge`; ridurre durata. Energia e impulso sono controllati all'arrotondamento binary64. Anche un passo grossolano accettato richiede verifica d'accuratezza. + +## API del nucleo e prove numeriche + +Costruire `LiquidColumn` con geometria SI, densità, resistenze, temperatura e pressione assoluta minima esplicite. Passare `LiquidColumnState` e secondi a `Advance`. I nomi contengono unità SI. Il risultato include trasporto con segno e direzionale, lavoro, variazione cinetica, calore ed entropia. Un rifiuto lascia risultato predefinito e ingresso intatto, senza allocazioni gestite. La durata locale non sostituisce l'orologio intero della simulazione. + +Accelerazione senza perdite, esponenziale lineare e tangente iperbolica quadratica indipendenti verificano i limiti. Una RK4 indipendente a pressione variabile verifica il secondo ordine con inversione. Decadimento passivo, equilibrio, energia completa, entropia non negativa, rifiuti, condivisione immutabile e allocazioni sono testati su entrambi gli obiettivi. + +## Prossimo accoppiamento + +I parametri restano `unverified`. La pressione minima è un confine liquido dichiarato dal chiamante, non una previsione di tensione di vapore o NPSH. Comprimibilità, acustica, gravità, geometria mobile, accumulo termico, cavitazione, scorrimento e rilassamento sono esclusi. I collegamenti bifase restano quasi statici. Unity reale e calibrazione misurata sono separati. + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. [Quantità di moto della linea finita di carburante liquido](FUEL_INERTIAL_PIPE.it.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.ja.md b/docs/LIQUID_COLUMN.ja.md new file mode 100644 index 0000000..5333814 --- /dev/null +++ b/docs/LIQUID_COLUMN.ja.md @@ -0,0 +1,42 @@ +# 液体入口の運動量参照 + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · **日本語** · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## 物理境界 + +`LiquidColumn` は水平剛体管の独立 C# 参照です。断面積、均一速度、液体密度、温度を一定とし、各局所区間の絶対ポート圧力を指定します。線形・二次抵抗は明示した研究入力です。グラフコンポーネントではなく、燃料ネットワークやノズル方程式を変更しません。 + +## 運動量とエネルギー + +両ポートは同じ流量と速度を持ち、移流運動エネルギー流束が相殺されます。圧力仕事は蓄積運動エネルギーを変え、摩擦熱を生みます。等温浴が熱を受け取り、流体温度と内部エネルギーは一定です。エントロピー生成は摩擦熱を宣言温度で割った値です。有限熱在庫は表しません。 + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +陰的中点法で単調なスカラー運動量式を解きます。逆流は同じ式でゼロ流量イベントに分割し、正逆の体積と熱を別々に保持します。成功呼出しは最大二つの内部区間を使います。定常平衡を行き過ぎると `StepTooLarge` を返すため時間を短縮します。エネルギーと力積残差は binary64 丸めで検査します。受理された粗い刻みも精度検査が必要です。 + +## コア API と数値証拠 + +SI の形状、密度、抵抗、温度、最小絶対圧力を明示して `LiquidColumn` を構築します。`LiquidColumnState` と秒単位時間を `Advance` に渡します。単位はプロパティ名に含まれます。結果は符号付き・方向別輸送、圧力仕事、運動エネルギー変化、摩擦熱、エントロピーです。拒否時は既定結果で入力不変、管理メモリ割り当てはありません。局所時間は整数シミュレーション時計を置き換えません。 + +独立した無損失加速、線形抵抗の指数解、二次抵抗の双曲正接解で極限を確認します。変動圧力の独立 RK4 は逆流を含む滑らかな二次収束を検証します。受動減衰、定常流、完全エネルギー収支、非負エントロピー、拒否、不変共有、割り当てを両アセンブリで検査します。 + +## 次の結合 + +パラメーターは `unverified` です。最低圧力は呼出側が宣言する液相有効境界で、蒸気圧や NPSH を予測しません。圧縮性、音波、重力、移動形状、熱蓄積、キャビテーション、相間滑り、相緩和は対象外です。二相燃料リンクは準静的のままです。実 Unity 受け入れと実測校正は別です。 + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 [有限液体燃料管路の運動量](FUEL_INERTIAL_PIPE.ja.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.ko.md b/docs/LIQUID_COLUMN.ko.md new file mode 100644 index 0000000..7e93a84 --- /dev/null +++ b/docs/LIQUID_COLUMN.ko.md @@ -0,0 +1,42 @@ +# 액체 입구 운동량 기준 모델 + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · **한국어** · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## 물리 경계 + +`LiquidColumn`은 단면적, 균일 속도, 액체 밀도와 온도가 일정한 수평 강체 관의 독립 C# 기준입니다. 각 국소 구간의 절대 포트 압력이 주어집니다. 선형·이차 저항은 명시적 연구 입력입니다. 그래프 컴포넌트가 아니며 기존 연료 네트워크와 노즐 방정식을 바꾸지 않습니다. + +## 운동량과 에너지 + +양 포트의 유량과 속도가 같아 이류 운동에너지 유속이 상쇄됩니다. 압력 일은 저장 운동에너지를 바꾸고 마찰열을 만듭니다. 등온 열조가 열을 받으며 유체 온도와 내부에너지는 일정합니다. 반환 엔트로피 생성은 마찰열을 선언 온도로 나눈 값입니다. 유한 열 재고를 나타내지 않습니다. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +음적 중점법으로 단조 스칼라 운동량 식을 풉니다. 역전은 같은 식의 영유량 이벤트에서 분할하여 정·역방향 체적과 열을 별도 보존합니다. 성공 호출은 내부 구간을 최대 두 개 사용합니다. 정상 평형을 넘는 단계는 `StepTooLarge`를 반환하므로 시간을 줄입니다. 에너지와 충격량 잔차는 binary64 반올림 규모로 검사합니다. 수용된 거친 간격도 정확도 검사가 필요합니다. + +## 코어 API와 수치 증거 + +명시적 SI 형상, 밀도, 저항, 온도와 최소 절대 압력으로 `LiquidColumn`을 구성합니다. `LiquidColumnState`와 초 단위 시간을 `Advance`에 전달합니다. 속성 이름에 SI 단위가 있습니다. 결과는 부호 및 방향별 전달, 압력 일, 운동에너지 변화, 마찰열과 엔트로피입니다. 거부 시 결과는 기본값이며 입력은 불변이고 관리 메모리를 할당하지 않습니다. 국소 시간은 시뮬레이션 정수 시계를 대체하지 않습니다. + +독립 무손실 가속, 선형 저항 지수해와 이차 저항 쌍곡 탄젠트 해로 극한을 확인합니다. 독립 변압 RK4는 역전을 포함한 매끄러운 2차 세분화를 검사합니다. 수동 감쇠, 정상 흐름, 전체 에너지 균형, 비음 엔트로피, 거부, 불변 공유와 할당을 두 어셈블리에서 검사합니다. + +## 다음 결합 + +매개변수는 `unverified`입니다. 압력 하한은 호출자가 선언한 액상 유효 경계이며 증기압이나 NPSH 예측이 아닙니다. 압축성, 음파, 중력, 이동 형상, 열 저장, 공동현상, 상간 미끄럼과 상 완화는 범위 밖입니다. 2상 연료 연결은 준정적입니다. 실제 Unity 수용과 실측 보정은 별도입니다. + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. [유한 액체 연료 관로 운동량](FUEL_INERTIAL_PIPE.ko.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.md b/docs/LIQUID_COLUMN.md new file mode 100644 index 0000000..95e6ec8 --- /dev/null +++ b/docs/LIQUID_COLUMN.md @@ -0,0 +1,42 @@ +# Liquid inlet momentum reference + +**English** · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## Physical boundary + +`LiquidColumn` is a standalone C# reference for a horizontal rigid pipe with constant area, uniform velocity, constant liquid density and constant temperature. Absolute port pressures are prescribed during each local interval. Linear and quadratic resistance coefficients are explicit research inputs. It is not a graph component, and it does not change the existing fuel network or nozzle equations. + +## Momentum and energy + +The two ports have equal flow and velocity. Advected kinetic-energy flux cancels, while pressure work changes the column's stored kinetic energy and produces friction heat. An isothermal bath receives that heat; fluid temperature and internal energy remain constant. The returned entropy production is friction heat divided by the declared temperature. This boundary does not represent a finite thermal inventory. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +Implicit midpoint solves the monotone scalar momentum equation. A reversal is split at the zero-flow event using that same equation, preserving separate forward and reverse volumes and their heat. Accepted calls use at most two internal intervals. A step that overshoots the steady-flow equilibrium returns `StepTooLarge`; reduce the duration. Energy and impulse residuals are checked at binary64 rounding scale. A coarse accepted step still needs an accuracy check. + +## Core API and numerical evidence + +Construct `LiquidColumn` with explicit SI geometry, density, resistance, temperature and minimum absolute pressure. Pass `LiquidColumnState` and a duration in seconds to `Advance`. SI units appear in property names. The result contains signed and directional transfer, pressure work, kinetic-energy change, friction heat and entropy production. Rejections leave the output default and input unchanged; calls allocate no managed memory. This local duration does not replace the integer clock of the simulation. + +Independent lossless acceleration, exponential linear-drag and hyperbolic-tangent quadratic-drag solutions check the limits. An independently integrated changing-pressure RK4 reference checks smooth second-order refinement, including reversal. Tests also cover passive decay, steady flow, complete energy balance, nonnegative entropy, rejected pressure/coarse-step inputs, immutable shared use and allocations on both assembly targets. + +## Next coupling + +Parameters remain `unverified`. The pressure floor is a caller-declared liquid-validity bound, not a predicted vapor pressure or NPSH margin. Compressibility, acoustic waves, gravity, moving geometry, thermal storage, cavitation, phase slip and phase-relaxation kinetics are outside this reference. The existing two-phase fuel links remain quasi-static. Actual Unity acceptance and measured hardware calibration remain separate. + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. [Finite liquid fuel line momentum](FUEL_INERTIAL_PIPE.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.pt-BR.md b/docs/LIQUID_COLUMN.pt-BR.md new file mode 100644 index 0000000..f43836c --- /dev/null +++ b/docs/LIQUID_COLUMN.pt-BR.md @@ -0,0 +1,42 @@ +# Referência de quantidade de movimento na entrada líquida + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · **Português** + +## Fronteira física + +`LiquidColumn` é uma referência C# independente para tubo horizontal rígido com seção, velocidade uniforme, densidade líquida e temperatura constantes. As pressões absolutas são prescritas por intervalo. Resistências linear e quadrática são entradas de pesquisa explícitas. Não é componente do grafo e não altera rede ou bocal. + +## Quantidade de movimento e energia + +Ambas as portas têm mesma vazão e velocidade; fluxos cinéticos advectados se cancelam. O trabalho de pressão muda a energia cinética armazenada e produz calor de atrito. Um banho isotérmico recebe o calor; temperatura e energia interna ficam constantes. A produção de entropia é calor dividido pela temperatura declarada. Não representa inventário térmico finito. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +O ponto médio implícito resolve a equação escalar monótona. A reversão se divide no evento de vazão zero com a mesma equação, preservando volumes direto/inverso e calor. A chamada aceita usa até dois intervalos. Ultrapassar o equilíbrio estacionário retorna `StepTooLarge`; reduza duração. Energia e impulso são verificados na escala de arredondamento binary64. Um passo grosso aceito ainda exige verificar exatidão. + +## API do núcleo e evidências numéricas + +Construa `LiquidColumn` com geometria SI, densidade, resistências, temperatura e pressão absoluta mínima explícitas. Passe `LiquidColumnState` e segundos para `Advance`. As propriedades incluem unidades SI. O resultado contém transporte com sinal e direcional, trabalho, variação cinética, calor e entropia. A rejeição deixa resultado padrão e entrada intacta, sem alocações gerenciadas. A duração local não substitui o relógio inteiro da simulação. + +Aceleração sem perdas, exponencial linear e tangente hiperbólica quadrática independentes verificam limites. Uma RK4 independente com pressão variável verifica segunda ordem com reversão. Decaimento passivo, equilíbrio, energia completa, entropia não negativa, rejeições, uso imutável e alocações são testados nos dois alvos. + +## Próximo acoplamento + +Os parâmetros seguem `unverified`. A pressão mínima é um limite líquido declarado pelo chamador, não previsão de pressão de vapor ou NPSH. Compressibilidade, acústica, gravidade, geometria móvel, armazenamento térmico, cavitação, deslizamento e relaxação ficam fora. Os enlaces bifásicos seguem quase estáticos. Unity real e calibração medida são separados. + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. [Quantidade de movimento da linha finita de combustível líquido](FUEL_INERTIAL_PIPE.pt-BR.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.ru.md b/docs/LIQUID_COLUMN.ru.md new file mode 100644 index 0000000..acc966d --- /dev/null +++ b/docs/LIQUID_COLUMN.ru.md @@ -0,0 +1,42 @@ +# Опорная модель импульса жидкостного входа + +[English](LIQUID_COLUMN.md) · [简体中文](LIQUID_COLUMN.zh-CN.md) · [Français](LIQUID_COLUMN.fr.md) · **Русский** · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## Физическая граница + +`LiquidColumn` — самостоятельная C#-опора горизонтальной жёсткой трубы с постоянными сечением, равномерной скоростью, плотностью жидкости и температурой. Абсолютные давления портов заданы на локальном интервале. Линейное и квадратичное сопротивления — явные исследовательские параметры. Это не компонент графа; уравнения топливной сети и сопла не меняются. + +## Импульс и энергия + +Расходы и скорости портов равны, конвективные кинетические потоки сокращаются. Работа давления меняет запас кинетической энергии и выделяет тепло трения. Изотермический резервуар получает тепло; температура и внутренняя энергия жидкости постоянны. Производство энтропии равно теплу, делённому на заданную температуру. Конечный тепловой запас не моделируется. + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +Неявная средняя точка решает монотонное скалярное уравнение. Реверс делится в событии нулевого расхода тем же уравнением, сохраняя прямой/обратный объём и тепло. Принятый вызов имеет не более двух интервалов. Перелёт стационарного равновесия даёт `StepTooLarge`; уменьшите длительность. Энергия и импульс проверяются на масштабе округления binary64. Принятый крупный шаг всё равно требует проверки точности. + +## API ядра и численные доказательства + +Создайте `LiquidColumn` с явными SI-геометрией, плотностью, сопротивлениями, температурой и минимальным абсолютным давлением. Передайте `LiquidColumnState` и секунды в `Advance`. Названия свойств содержат SI-единицы. Результат включает знаковый и направленные переносы, работу, изменение кинетической энергии, тепло и энтропию. При отказе результат по умолчанию, вход неизменен; управляемая память не выделяется. Локальная длительность не заменяет целочисленные часы симуляции. + +Независимые решения без потерь, экспонента линейного и гиперболический тангенс квадратичного сопротивления проверяют пределы. Независимая RK4 при переменном давлении проверяет второй порядок с реверсом. На обеих сборках проверены пассивное затухание, стационарность, энергия, неотрицательная энтропия, отказы, неизменяемость и выделения памяти. + +## Следующее сопряжение + +Параметры остаются `unverified`. Нижнее давление задаёт пользователь как область жидкости; оно не предсказывает давление пара или NPSH. Сжимаемость, акустика, тяжесть, подвижная геометрия, тепловой запас, кавитация, скольжение и релаксация фаз исключены. Двухфазные связи остаются квазистатическими. Фактический Unity и измеренная калибровка проверяются отдельно. + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. [Импульс конечной линии жидкого топлива](FUEL_INERTIAL_PIPE.ru.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_COLUMN.zh-CN.md b/docs/LIQUID_COLUMN.zh-CN.md new file mode 100644 index 0000000..b035c59 --- /dev/null +++ b/docs/LIQUID_COLUMN.zh-CN.md @@ -0,0 +1,42 @@ +# 液体入口动量参考 + +[English](LIQUID_COLUMN.md) · **简体中文** · [Français](LIQUID_COLUMN.fr.md) · [Русский](LIQUID_COLUMN.ru.md) · [日本語](LIQUID_COLUMN.ja.md) · [한국어](LIQUID_COLUMN.ko.md) · [Deutsch](LIQUID_COLUMN.de.md) · [Español](LIQUID_COLUMN.es.md) · [Italiano](LIQUID_COLUMN.it.md) · [Português](LIQUID_COLUMN.pt-BR.md) + +## 物理边界 + +`LiquidColumn` 是独立 C# 参考模型,描述水平刚性管中的恒定截面、均匀流速、恒定液体密度与恒定温度。每个局部区间内给定绝对端口压力。线性和二次阻力系数是显式研究输入。它不是图元件,不改变现有燃油网络或喷嘴方程。 + +## 动量与能量 + +两端口具有相同流量与流速,对流动能通量抵消;压力功改变液柱储存的动能并产生摩擦热。等温热浴接收该热量,流体温度和内能保持不变。返回的熵产等于摩擦热除以声明温度。该边界不表示有限热库存。 + +```text +I = rho L / A [Pa s^2 / m3] +R [Pa s / m3] +K [Pa s^2 / m6] +I dQ/dt = p_A - p_B - R Q - K Q abs(Q) +E_kinetic = I Q^2 / 2 +Q_mean = (Q_before + Q_after) / 2 +I (Q_after-Q_before) = dt (p_A-p_B-R Q_mean-K Q_mean abs(Q_mean)) +delta_V = dt Q_mean +W_pressure = (p_A-p_B) delta_V +H_friction = dt (R Q_mean^2 + K abs(Q_mean)^3) +W_pressure = delta_E_kinetic + H_friction +S_produced = H_friction / T +``` + +隐式中点法求解单调标量动量方程。反向流动按同一方程在零流量事件处分段,分别保留正反向体积及热量。每次成功调用最多使用两个内部区间。若步长越过稳态流量平衡点,则返回 `StepTooLarge`,应缩短时长。能量和冲量残差按 binary64 舍入尺度检查。粗步长即使被接受,仍需检查精度。 + +## 核心 API 与数值证据 + +以显式 SI 几何、密度、阻力、温度和最小绝对压力构造 `LiquidColumn`。向 `Advance` 传入 `LiquidColumnState` 及以秒为单位的时长。属性名包含 SI 单位。结果包含有符号及分向输运、压力功、动能变化、摩擦热与熵产。拒绝时输出为默认值、输入不变;调用不分配托管内存。局部时长不替代仿真的整数时钟。 + +独立的无损加速、线性阻力指数解与二次阻力双曲正切解检查极限。独立积分的变压 RK4 参考验证包含反转的平滑二阶细化。测试还覆盖被动衰减、稳态流动、完整能量平衡、非负熵产、压力及粗步长拒绝、不可变共享使用,以及两个程序集目标上的分配。 + +## 后续耦合 + +参数保持 `unverified`。压力下限是调用方声明的液态有效边界,不是预测的蒸汽压或 NPSH 裕量。可压缩性、声波、重力、运动几何、热储存、空化、相间滑移和相变弛豫动力学不在本参考范围。现有两相燃油连接仍为准静态。实际 Unity 验收与实测硬件标定分别进行。 + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 [有限液体燃油管路动量](FUEL_INERTIAL_PIPE.zh-CN.md) + +[Modelica: momentum and energy balances](https://doc.modelica.org/Modelica%203.2.3/Resources/helpWSM/Modelica/Modelica.Fluid.UsersGuide.ComponentDefinition.BalanceEquations.html) · [Modelica: pipe flow models](https://doc.modelica.org/om/Modelica.Fluid.Pipes.BaseClasses.FlowModels.html) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/LIQUID_FUEL_INJECTION.de.md b/docs/LIQUID_FUEL_INJECTION.de.md index fbf523a..e1dae17 100644 --- a/docs/LIQUID_FUEL_INJECTION.de.md +++ b/docs/LIQUID_FUEL_INJECTION.de.md @@ -9,10 +9,7 @@ und Druckenergie bestimmen die Förderung. Der Film heizt und verdampft die Flüssigkeit anschließend; die bestehende vorgeschriebene Reaktion verbraucht nur Dampf. Das verbindet Förderung, Phasenwechsel und Reaktion und hält jedes Inventar -und jeden Energietransfer beobachtbar. Es ist ein Forschungsmodell mit konstanter Dichte und Nachgiebigkeit. -Pumpe und Nachfüllung der Leitung, gemessene Eigenschaften, verfeinerte magnetische und elektronische Ansteuerung, -Spray und Mitreißen, Kavitation, Zündung und ECU sowie kalibrierte Benzinhardware -bleiben erforderliche Arbeit auf dem Weg zum vollständigen Antriebsstrangziel. +und jeden Energietransfer beobachtbar. Es ist ein Forschungsmodell mit konstanter Dichte und Nachgiebigkeit. Die optionale Pumpenspeisung nutzt eine explizite äußere Stoff-/Wärmegrenze. Geometrische Kapazität, Belüftung/Gasraum/Schwappen, Kavitation, gemessene Füllung/Wirkungsgrad/Regelung und aufgelöster Spray bleiben offen. Parameter sind `unverified`; tatsächliches Unity Editor/Play/Player/IL2CPP und OEM-Kalibrierung bleiben ungeprüft. ```mermaid flowchart LR @@ -29,6 +26,8 @@ Die Leitung hat eine konstante Flüssigkeitsdichte `rho`, eine positive Nachgieb eine Anfangsmasse `m0` und einen absoluten Anfangsdruck `P0`. Ihr Referenzvolumen beim Druck null muss nichtnegativ sein: +Ohne Pumpenspeisung folgt die Schiene diesen Gleichungen und behält ihre vorgegebene Temperatur. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -180,13 +179,7 @@ vorgeschriebene Reaktion treiben dasselbe Kurbel- und Lastmodell wie andere Labo CLI, portable Assets und der tatsächliche MCP-Server teilen seine Definitionen und Replay- Grenzen. Alle Parameter bleiben `unverified`. -Analytischer Druckabbau und Arbeit, Dosis, Umkehr und Erschöpfung, unabhängige gekoppelte -Verfeinerung, vollständige Bilanzen von Quelle, Film, Konstituenten und Energie, aktive Allokationsgrenzen -und Rollback spekulativer Kupplungen werden geprüft. [VALIDATION.de.md](VALIDATION.de.md) -hält die beobachteten Ergebnisse fest. Vorbereitete Unity-Ansichten von Leitung und Düse sowie Lebenszyklusprüfungen -verlangen weiterhin tatsächlichen Nachweis für Editor, Play und Player. Nachfüllung und Pumpen der Leitung, Nadeldynamik, -aufgelöstes Spray und Verdrängung, Zündung und ECU, vollständiges Getriebe und Regelung sowie gemessene -Antriebsstränge bleiben unfertig. +Wellenarbeit, Schienendruck und gemischte Wärmespeicherung haben Erhaltungs- und unabhängige ODE-Prüfungen; tatsächliche Unity-Abnahme steht aus. [VALIDATION.de.md](VALIDATION.de.md) Geometrische Kapazität, Belüftung/Gasraum/Schwappen, Kavitation, gemessene Füllung/Wirkungsgrad/Regelung und aufgelöster Spray bleiben offen. Parameter sind `unverified`; tatsächliches Unity Editor/Play/Player/IL2CPP und OEM-Kalibrierung bleiben ungeprüft. ## Erweiterung um die physische Nadel @@ -196,3 +189,13 @@ Bewegung nun. In diesem Modus ist die angeforderte Dosis ein Reglerziel; sie beg Strom während Schließverzug, Abprall oder Umkehr nicht. Der ideale kontingentbegrenzte Pfad bleibt getrennt und unverändert. Verfeinertes magnetisches, Treiber- und Sprayverhalten sowie die Kalibrierung bleiben offen. + +## Pumpengespeiste Flüssigkraftstoffschiene + +`liquid_rail_feed` verbindet einen Flüssiginjektor mit einer bestehenden Verdrängerpumpe und expliziter Stoff-/Wärmegrenze. Der hydraulische Auslassknoten muss Schienenkompliance und anfänglichem Absolutdruck entsprechen. Pumpe und Injektor besitzen diesen Knoten; andere unbilanzierte Fluidpfade werden abgelehnt. + +v27 speichert Speiseverknüpfungen und Quellentemperatur und liest v1-v26. Analytischer Wellen-/Druckaustausch, unabhängige simultane ODE-Verfeinerung, Wärmemischung, Masse/Kraftstoff/Energie/Volumenbilanzen, Rückstrom und vollständiges rollback haben eigene Prüfungen. + +Geometrische Kapazität, Belüftung/Gasraum/Schwappen, Kavitation, gemessene Füllung/Wirkungsgrad/Regelung und aufgelöster Spray bleiben offen. Parameter sind `unverified`; tatsächliches Unity Editor/Play/Player/IL2CPP und OEM-Kalibrierung bleiben ungeprüft. + +[PUMP_FED_FUEL.de.md](PUMP_FED_FUEL.de.md) diff --git a/docs/LIQUID_FUEL_INJECTION.es.md b/docs/LIQUID_FUEL_INJECTION.es.md index 6ebb5ac..02ce1e8 100644 --- a/docs/LIQUID_FUEL_INJECTION.es.md +++ b/docs/LIQUID_FUEL_INJECTION.es.md @@ -9,10 +9,7 @@ del raíl y la energía de presión determinan la entrega. La película calienta evapora el líquido; la reacción prescrita existente solo consume vapor. Esto conecta la entrega, el cambio de fase y la reacción, y mantiene observable cada inventario -y cada transferencia de energía. Es un modelo de investigación de densidad y flexibilidad constantes. -La bomba y el repostaje del raíl, las propiedades medidas, el accionamiento magnético y electrónico refinado, -la pulverización y la incorporación, la cavitación, el encendido y la ECU, y el hardware de gasolina calibrado -siguen siendo trabajo necesario hacia el objetivo del grupo motopropulsor completo. +y cada transferencia de energía. Es un modelo de investigación de densidad y flexibilidad constantes. La alimentación opcional por bomba usa una frontera externa explícita de materia/calor. Capacidad geométrica, ventilación/espacio gaseoso/oleaje, cavitación, llenado/eficiencia/regulación medidos y spray resuelto siguen abiertos. Parámetros `unverified`; Unity Editor/Play/Player/IL2CPP real y calibración OEM siguen sin verificar. ```mermaid flowchart LR @@ -29,6 +26,8 @@ El raíl tiene densidad líquida constante `rho`, flexibilidad positiva `C` en m masa inicial `m0` y presión absoluta inicial `P0`. Su volumen de referencia a presión nula debe ser no negativo: +Sin alimentación por bomba, el raíl sigue estas ecuaciones y conserva la temperatura suministrada. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +180,7 @@ la reacción prescrita accionan el mismo modelo de cigüeñal y carga que los de la CLI, los assets portátiles y el servidor MCP real comparten sus definiciones y sus límites de repetición. Todos los parámetros siguen siendo `unverified`. -Se comprueban el decaimiento analítico de presión y el trabajo, la dosis, la inversión y el agotamiento, el refinamiento acoplado -independiente, los libros completos de fuente, película, constituyentes y energía, los límites de asignación -activa y la reversión especulativa del embrague. [VALIDATION.es.md](VALIDATION.es.md) -registra los resultados observados. Las vistas de raíl y tobera y las pruebas de ciclo de vida preparadas en Unity -siguen exigiendo evidencia real de Editor, Play y Player. El repostaje y las bombas del raíl, la dinámica de la aguja, -la pulverización y el desplazamiento resueltos, el encendido y la ECU, la transmisión y el control completos, y los grupos -motopropulsores medidos siguen sin terminar. +Trabajo de eje, presión y almacenamiento térmico mezclado tienen pruebas de conservación y ODE independientes; la aceptación Unity real sigue pendiente. [VALIDATION.es.md](VALIDATION.es.md) Capacidad geométrica, ventilación/espacio gaseoso/oleaje, cavitación, llenado/eficiencia/regulación medidos y spray resuelto siguen abiertos. Parámetros `unverified`; Unity Editor/Play/Player/IL2CPP real y calibración OEM siguen sin verificar. ## Extensión de aguja física @@ -197,3 +190,13 @@ movimiento. En este modo, la dosis solicitada es un objetivo del controlador; no durante el retardo de cierre, el rebote ni la inversión. El camino ideal limitado por cuota permanece aparte y sin cambios. El comportamiento magnético, de controlador y de pulverización refinado, y la calibración, siguen abiertos. + +## Raíl de combustible líquido alimentado por bomba + +`liquid_rail_feed` asocia un inyector líquido con una bomba de desplazamiento existente y una frontera explícita de materia/calor. El nodo de salida hidráulica debe coincidir con la compliancia y presión absoluta inicial del raíl. Bomba e inyector poseen ese nodo; otras rutas fluidas no contabilizadas se rechazan. + +v27 conserva enlaces y temperatura de fuente y lee v1-v26. Intercambio analítico eje/presión, refinamiento ODE simultáneo independiente, mezcla térmica, balances masa/combustible/energía/volumen, retorno y rollback completo tienen verificaciones separadas. + +Capacidad geométrica, ventilación/espacio gaseoso/oleaje, cavitación, llenado/eficiencia/regulación medidos y spray resuelto siguen abiertos. Parámetros `unverified`; Unity Editor/Play/Player/IL2CPP real y calibración OEM siguen sin verificar. + +[PUMP_FED_FUEL.es.md](PUMP_FED_FUEL.es.md) diff --git a/docs/LIQUID_FUEL_INJECTION.fr.md b/docs/LIQUID_FUEL_INJECTION.fr.md index 14f8216..cbedd0f 100644 --- a/docs/LIQUID_FUEL_INJECTION.fr.md +++ b/docs/LIQUID_FUEL_INJECTION.fr.md @@ -10,9 +10,7 @@ restant et l'énergie de pression déterminent la livraison. Le film chauffe ens Cela relie la livraison, le changement de phase et la réaction, tout en gardant chaque inventaire et transfert d'énergie observable. C'est un modèle de recherche à masse volumique et compliance -constantes. La pompe et la réalimentation de rampe, les propriétés mesurées, l'actionnement magnétique et électronique affiné, -la pulvérisation et l'entraînement, la cavitation, l'allumage et l'ECU, ainsi que le matériel essence calibré, -restent des travaux requis vers l'objectif de groupe motopropulseur complet. +constantes. L'alimentation facultative par pompe utilise une frontière externe explicite de matière/chaleur. Capacité géométrique, évent/espace gazeux/ballottement, cavitation, remplissage/efficacité/régulation mesurés et spray résolu restent ouverts. Paramètres `unverified` ; Unity Editor/Play/Player/IL2CPP réel et calibration OEM restent non vérifiés. ```mermaid flowchart LR @@ -29,6 +27,8 @@ La rampe a une masse volumique liquide constante `rho`, une compliance positive une masse initiale `m0` et une pression absolue initiale `P0`. Son volume de référence à pression nulle doit être non négatif : +Sans alimentation par pompe, la rampe suit ces équations et conserve sa température fournie. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +181,7 @@ la réaction prescrite entraînent le même modèle vilebrequin/charge que les a la CLI, les assets portables et le serveur MCP réel partagent ses définitions et ses bornes de rejeu. Tous les paramètres restent `unverified`. -La décroissance et le travail de pression analytiques, la dose, l'inversion et l'épuisement, le raffinement couplé -indépendant, les bilans complets source/film/constituants/énergie, les bornes d'allocation -active et le rollback d'embrayage spéculatif sont contrôlés. [VALIDATION.fr.md](VALIDATION.fr.md) -consigne les résultats observés. Les vues de rampe et de buse Unity préparées et les tests de cycle de vie -exigent encore une preuve réelle d'Editor, de Play et de Player. La réalimentation et les pompes de rampe, la dynamique d'aiguille, -la pulvérisation et le déplacement résolus, l'allumage et l'ECU, la transmission et le contrôle complets, ainsi que les -groupes motopropulseurs mesurés, restent inachevés. +Travail d'arbre, pression et stockage calorique mélangé ont des contrôles de conservation et ODE indépendants ; l'acceptation Unity réelle reste en attente. [VALIDATION.fr.md](VALIDATION.fr.md) Capacité géométrique, évent/espace gazeux/ballottement, cavitation, remplissage/efficacité/régulation mesurés et spray résolu restent ouverts. Paramètres `unverified` ; Unity Editor/Play/Player/IL2CPP réel et calibration OEM restent non vérifiés. ## Extension d'aiguille physique @@ -197,3 +191,13 @@ mouvement. Dans ce mode, la dose demandée est une cible de contrôleur ; elle n pendant le retard de fermeture, le rebond ou l'inversion. Le chemin idéal limité par quota reste distinct et inchangé. Le comportement magnétique, de pilote et de pulvérisation affiné, ainsi que la calibration, restent ouverts. + +## Rampe de carburant liquide alimentée par pompe + +`liquid_rail_feed` associe un injecteur liquide à une pompe volumétrique existante et à une frontière matière/thermique explicite. Le nœud de sortie hydraulique doit correspondre à la compliance et à la pression absolue initiale de la rampe. Pompe et injecteur possèdent ce nœud ; les autres chemins fluides non suivis sont rejetés. + +Le format v27 conserve les liens et la température source et lit v1-v26. Échange analytique arbre/pression, raffinement ODE simultané indépendant, mélange calorique, bilans masse/carburant/énergie/volume, retour inverse et rollback complet ont des contrôles séparés. + +Capacité géométrique, évent/espace gazeux/ballottement, cavitation, remplissage/efficacité/régulation mesurés et spray résolu restent ouverts. Paramètres `unverified` ; Unity Editor/Play/Player/IL2CPP réel et calibration OEM restent non vérifiés. + +[PUMP_FED_FUEL.fr.md](PUMP_FED_FUEL.fr.md) diff --git a/docs/LIQUID_FUEL_INJECTION.it.md b/docs/LIQUID_FUEL_INJECTION.it.md index 464e123..050ac6c 100644 --- a/docs/LIQUID_FUEL_INJECTION.it.md +++ b/docs/LIQUID_FUEL_INJECTION.it.md @@ -9,10 +9,7 @@ restante del binario ed energia di pressione determinano l'erogazione. Il film p evapora il liquido; la reazione prescritta esistente consuma solo il vapore. Questo collega erogazione, cambiamento di fase e reazione mantenendo osservabili ogni inventario -e ogni trasferimento di energia. È un modello di ricerca a densità/cedevolezza costanti. -Pompa/rabbocco del binario, proprietà misurate, azionamento magnetico/elettronico raffinato, -spruzzo/trascinamento, cavitazione, accensione/ECU e hardware a benzina calibrato -restano lavoro richiesto verso l'obiettivo del gruppo motopropulsore completo. +e ogni trasferimento di energia. È un modello di ricerca a densità/cedevolezza costanti. L'alimentazione opzionale da pompa usa un confine esterno esplicito di materia/calore. Capacità geometrica, ventilazione/spazio gas/oscillazione, cavitazione, riempimento/efficienza/regolazione misurati e spray risolto restano aperti. Parametri `unverified`; Unity Editor/Play/Player/IL2CPP reale e calibrazione OEM non sono verificati. ```mermaid flowchart LR @@ -29,6 +26,8 @@ Il binario ha densità liquida costante `rho`, cedevolezza positiva `C` in m3/Pa massa iniziale `m0` e pressione assoluta iniziale `P0`. Il suo volume di riferimento a pressione nulla deve essere non negativo: +Senza alimentazione da pompa, il rail segue queste equazioni e mantiene la temperatura fornita. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +180,7 @@ reazione prescritta azionano lo stesso modello albero/carico degli altri laborat CLI, asset portatili e il server MCP reale condividono le sue definizioni e i confini di replay. Tutti i parametri restano `unverified`. -Sono controllati il decadimento analitico di pressione e lavoro, dose/inversione/esaurimento, il raffinamento -accoppiato indipendente, i registri completi di sorgente/film/costituenti/energia, i limiti di allocazione -attiva e il rollback della frizione speculativa. [VALIDATION.it.md](VALIDATION.it.md) -registra i risultati osservati. Le viste Unity di binario/ugello preparate e i test del ciclo di vita -richiedono ancora evidenza reale di Editor/Play/Player. Rabbocco/pompe del binario, dinamica dell'ago, -spruzzo/spostamento risolti, accensione/ECU, trasmissione/controllo completi e gruppi -motopropulsori misurati restano incompiuti. +Lavoro d'albero, pressione e stoccaggio termico miscelato hanno controlli di conservazione e ODE indipendenti; l'accettazione Unity reale resta aperta. [VALIDATION.it.md](VALIDATION.it.md) Capacità geometrica, ventilazione/spazio gas/oscillazione, cavitazione, riempimento/efficienza/regolazione misurati e spray risolto restano aperti. Parametri `unverified`; Unity Editor/Play/Player/IL2CPP reale e calibrazione OEM non sono verificati. ## Estensione dell'ago fisico @@ -197,3 +190,13 @@ moto. In questa modalità la dose richiesta è un obiettivo del controllore; non durante il ritardo di chiusura, il rimbalzo o l'inversione. Il percorso ideale limitato dalla quota resta separato e invariato. Comportamento magnetico/driver/spruzzo raffinato e calibrazione restano aperti. + +## Rail di combustibile liquido alimentato da pompa + +`liquid_rail_feed` associa un iniettore liquido a una pompa volumetrica esistente e a un confine esplicito di materia/calore. Il nodo di uscita idraulica deve corrispondere alla cedevolezza e alla pressione assoluta iniziale del rail. Pompa e iniettore possiedono questo nodo; altri percorsi fluidi non contabilizzati sono rifiutati. + +v27 conserva collegamenti e temperatura sorgente e legge v1-v26. Scambio analitico albero/pressione, raffinamento ODE simultaneo indipendente, miscelazione termica, bilanci massa/combustibile/energia/volume, ritorno e rollback completo hanno verifiche separate. + +Capacità geometrica, ventilazione/spazio gas/oscillazione, cavitazione, riempimento/efficienza/regolazione misurati e spray risolto restano aperti. Parametri `unverified`; Unity Editor/Play/Player/IL2CPP reale e calibrazione OEM non sono verificati. + +[PUMP_FED_FUEL.it.md](PUMP_FED_FUEL.it.md) diff --git a/docs/LIQUID_FUEL_INJECTION.ja.md b/docs/LIQUID_FUEL_INJECTION.ja.md index 58ab392..41c23e0 100644 --- a/docs/LIQUID_FUEL_INJECTION.ja.md +++ b/docs/LIQUID_FUEL_INJECTION.ja.md @@ -4,7 +4,7 @@ `liquid_fuel_injector` は、有限で柔軟なレールから、別の[燃料フィルム](FUEL_FILM.ja.md)へ液体を供給します。前進クランクのウィンドウは、サイクルあたり要求された質量をラッチします。実際の受け側圧力、ノズル幾何、残るレール在庫、圧力エネルギーが供給を決めます。フィルムは続いて液体を加熱して蒸発させます。既存の規定反応が消費するのは蒸気だけです。 -これは、供給、相変化、反応をつなぎつつ、各在庫とエネルギー輸送を観測可能なままにします。一定密度/コンプライアンスの研究モデルです。レールのポンプ/補給、実測の物性、精密化した磁気/電子駆動、噴霧/エントレインメント、キャビテーション、点火/ECU、キャリブレーション済みのガソリンハードウェアは、完全なパワートレイン目標へ向けて必要な作業のままです。 +これは、供給、相変化、反応をつなぎつつ、各在庫とエネルギー輸送を観測可能なままにします。一定密度/コンプライアンスの研究モデルです。 任意のポンプ補給は明示的な外部物質/熱境界を使います。 形状容量、通気/気相空間/揺動、キャビテーション、実測充液/効率/調圧、解像噴霧は未完了です。パラメーターは `unverified` で、実際の Unity Editor/Play/Player/IL2CPP と OEM 校正は未検証です。 ```mermaid flowchart LR @@ -19,6 +19,8 @@ flowchart LR レールは、一定の液体密度 `rho`、m3/Pa の正のコンプライアンス `C`、初期質量 `m0`、初期絶対圧力 `P0` を持ちます。圧力ゼロの基準容積は非負でなければなりません。 +ポンプ補給がない場合、レールは次の式に従い、指定された供給温度を維持します。 + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -106,8 +108,18 @@ ID と単位は、検証またはセッション作成を通して発見して `liquid-injected-cylinder` は、乾いたフィルムと有限な加圧源から始まります。別の空気導入、サイクルドーズ要求、壁で制限された蒸気の利用可能性、規定反応が、他のラボラトリーと同じクランク/負荷モデルを駆動します。JSON、CLI、移植可能アセット、実際の MCP サーバーは、その定義とリプレイ境界を共有します。すべてのパラメーターは `unverified` のままです。 -解析的な圧力減衰と仕事、ドーズ/逆転/枯渇、独立した連成細分化、源/フィルム/成分/エネルギーの完全な台帳、アクティブ時の割り当て境界、投機的クラッチのロールバックが検査されます。[VALIDATION.ja.md](VALIDATION.ja.md) が観測された結果を記録します。用意された Unity のレール/ノズル表示とライフサイクルテストは、なお実際のエディター/Play/Player のエビデンスを必要とします。レールの補給/ポンプ、ニードル動力学、解像された噴霧/排除、点火/ECU、完全なトランスミッション/制御、実測のパワートレインは未完了のままです。 +ポンプ軸仕事、レール圧、混合熱貯蔵には保存則と独立 ODE の検査があり、実際の Unity 受入は未完了です。 [VALIDATION.ja.md](VALIDATION.ja.md) 形状容量、通気/気相空間/揺動、キャビテーション、実測充液/効率/調圧、解像噴霧は未完了です。パラメーターは `unverified` で、実際の Unity Editor/Play/Player/IL2CPP と OEM 校正は未検証です。 ## 物理ニードルの拡張 任意のニードル定義は、供給を実際の並進リフトへ接続します。[ソレノイド、弾性ストッパ、サンプリングドライバー](NEEDLE_ACTUATION.ja.md)が、その運動を供給するようになりました。このモードでは、要求ドーズは制御器の目標です。閉じ遅れ、反発、逆転の間、物理的な流れに上限を掛けません。理想的な、割当で制限された経路は別のまま、変わりません。精密化した磁気/ドライバー/噴霧の挙動とキャリブレーションは、未解決のままです。 + +## ポンプ供給の液体燃料レール + +`liquid_rail_feed` は液体噴射器を既存の容積ポンプと明示的な物質/熱境界に結びます。油圧出口ノードはレールのコンプライアンスと初期絶対圧に一致する必要があります。ポンプと噴射器がこの圧力ノードを所有し、未追跡の他の流体経路は拒否されます。 + +v27 は補給接続と源温度を保存し v1-v26 を読みます。軸/圧力の解析交換、独立した同時 ODE 細化、熱混合、質量/燃料/エネルギー/体積台帳、逆流と完全 rollback は別々に検査します。 + +形状容量、通気/気相空間/揺動、キャビテーション、実測充液/効率/調圧、解像噴霧は未完了です。パラメーターは `unverified` で、実際の Unity Editor/Play/Player/IL2CPP と OEM 校正は未検証です。 + +[PUMP_FED_FUEL.ja.md](PUMP_FED_FUEL.ja.md) diff --git a/docs/LIQUID_FUEL_INJECTION.ko.md b/docs/LIQUID_FUEL_INJECTION.ko.md index faf45b5..2375861 100644 --- a/docs/LIQUID_FUEL_INJECTION.ko.md +++ b/docs/LIQUID_FUEL_INJECTION.ko.md @@ -4,7 +4,7 @@ `liquid_fuel_injector`는 유한 컴플라이언트 레일의 액체를 별도의 [연료 필름](FUEL_FILM.ko.md)으로 공급합니다. 전진 크랭크 창이 사이클마다 요청 질량을 래치합니다. 실제 수신기 압력, 노즐 기하, 남은 레일 재고, 압력 에너지가 공급을 정합니다. 그다음 필름이 액체를 가열하고 증발시킵니다. 기존의 규정 반응은 증기만 소비합니다. -이것은 공급, 상변화, 반응을 연결하면서 각 재고와 에너지 전달을 관측할 수 있게 둡니다. 일정 밀도/컴플라이언스 연구 모델입니다. 레일 펌프/보충, 실측 물성, 정밀화된 자기/전자 구동, 분무/혼입, 캐비테이션, 점화/ECU, 교정된 가솔린 하드웨어는 완전한 파워트레인 목표를 향해 아직 필요한 작업입니다. +이것은 공급, 상변화, 반응을 연결하면서 각 재고와 에너지 전달을 관측할 수 있게 둡니다. 일정 밀도/컴플라이언스 연구 모델입니다. 선택적 펌프 공급은 명시적 외부 물질/열 경계를 사용합니다. 기하학적 용량, 통기/기체 공간/슬로싱, 캐비테이션, 실측 충액/효율/조압과 분해 분무는 미완성입니다. 매개변수는 `unverified`이며 실제 Unity Editor/Play/Player/IL2CPP와 OEM 보정은 미검증입니다. ```mermaid flowchart LR @@ -19,6 +19,8 @@ flowchart LR 레일은 일정한 액체 밀도 `rho`, m3/Pa의 양의 컴플라이언스 `C`, 초기 질량 `m0`, 초기 절대 압력 `P0`를 가집니다. 영압 기준 체적은 음이 아니어야 합니다. +펌프 공급이 없으면 레일은 다음 방정식을 따르고 지정된 공급 온도를 유지합니다. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -106,8 +108,18 @@ ID와 단위는 검증/세션 생성으로 탐색하세요. 인젝터 출력은 `liquid-injected-cylinder`는 마른 필름과 유한한 가압 공급원에서 시작합니다. 별도의 공기 유입, 사이클 도즈 요청, 벽이 제한하는 증기 가용성, 규정 반응이 다른 실험실과 같은 크랭크/부하 모델을 구동합니다. JSON, CLI, 이식 가능한 자산, 실제 MCP 서버가 그 정의와 리플레이 경계를 공유합니다. 모든 매개변수는 `unverified`로 남습니다. -해석적 압력 감쇠와 일, 도즈/역전/고갈, 독립적인 결합 세분화, 완전한 공급원/필름/구성 성분/에너지 장부, 활성 할당 한계, 투기적 클러치 롤백이 검사됩니다. [VALIDATION.ko.md](VALIDATION.ko.md)가 관측된 결과를 기록합니다. 준비된 Unity 레일/노즐 뷰와 수명 주기 테스트는 여전히 실제 편집기/Play/Player 증거가 필요합니다. 레일 보충/펌프, 니들 동역학, 분해된 분무/변위, 점화/ECU, 완전한 변속기/제어, 실측 파워트레인은 아직 끝나지 않았습니다. +펌프 축 일, 레일 압력과 혼합 열 저장에는 보존 및 독립 ODE 검사가 있으며 실제 Unity 검증은 미완성입니다. [VALIDATION.ko.md](VALIDATION.ko.md) 기하학적 용량, 통기/기체 공간/슬로싱, 캐비테이션, 실측 충액/효율/조압과 분해 분무는 미완성입니다. 매개변수는 `unverified`이며 실제 Unity Editor/Play/Player/IL2CPP와 OEM 보정은 미검증입니다. ## 물리적 니들 확장 선택적 니들 정의는 공급을 실제 병진 양정에 연결합니다. [솔레노이드, 탄성 스토퍼, 샘플링 드라이버](NEEDLE_ACTUATION.ko.md)가 이제 그 운동을 공급합니다. 이 모드에서 요청 도즈는 제어기 목표입니다. 닫힘 지체, 반발, 역전 동안 물리적 흐름에 상한을 두지 않습니다. 이상적인 할당량 제한 경로는 별도로, 변하지 않고 남습니다. 정밀화된 자기/드라이버/분무 동작과 교정은 아직 열려 있습니다. + +## 펌프 공급 액체 연료 레일 + +`liquid_rail_feed`는 액체 인젝터를 기존 용적 펌프와 명시적인 물질/열 경계에 연결합니다. 유압 출구 노드는 레일 컴플라이언스와 초기 절대압에 일치해야 합니다. 펌프와 인젝터가 이 압력 노드를 소유하고 다른 미추적 유체 경로는 거부됩니다. + +v27은 공급 연결과 원천 온도를 저장하고 v1-v26를 읽습니다. 축/압력 해석 교환, 독립 동시 ODE 세분화, 열 혼합, 질량/연료/에너지/체적 원장, 역류와 완전 rollback을 각각 확인합니다. + +기하학적 용량, 통기/기체 공간/슬로싱, 캐비테이션, 실측 충액/효율/조압과 분해 분무는 미완성입니다. 매개변수는 `unverified`이며 실제 Unity Editor/Play/Player/IL2CPP와 OEM 보정은 미검증입니다. + +[PUMP_FED_FUEL.ko.md](PUMP_FED_FUEL.ko.md) diff --git a/docs/LIQUID_FUEL_INJECTION.md b/docs/LIQUID_FUEL_INJECTION.md index c7fa4ad..3a5d6b7 100644 --- a/docs/LIQUID_FUEL_INJECTION.md +++ b/docs/LIQUID_FUEL_INJECTION.md @@ -10,9 +10,7 @@ evaporates liquid; the existing prescribed reaction consumes vapor only. This connects delivery, phase change and reaction while keeping each inventory and energy transfer observable. It is a constant-density/compliance research -model. Rail pump/refill, measured properties, refined magnetic/electronic actuation, -spray/entrainment, cavitation, ignition/ECU and calibrated gasoline hardware -remain required work toward the full powertrain objective. +model. The optional pump feed uses an explicit external material/thermal boundary. Geometric capacity, vent/headspace/slosh, cavitation, measured pump filling/efficiency/regulation and resolved spray remain open. Parameters are `unverified`; actual Unity Editor/Play/Player/IL2CPP and OEM calibration remain unverified. ```mermaid flowchart LR @@ -29,6 +27,8 @@ The rail has constant liquid density `rho`, positive compliance `C` in m3/Pa, initial mass `m0` and initial absolute pressure `P0`. Its zero-pressure reference volume must be nonnegative: +Without pump feed, the rail follows these equations and retains its supplied temperature. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +181,7 @@ prescribed reaction drive the same crank/load model as other laboratories. JSON, CLI, portable assets and the actual MCP server share its definitions and replay boundaries. All parameters remain `unverified`. -Analytic pressure decay and work, dose/reversal/starvation, independent coupled -refinement, complete source/film/constituent/energy ledgers, active allocation -bounds and speculative clutch rollback are checked. [VALIDATION.md](VALIDATION.md) -records the observed results. Prepared Unity rail/nozzle views and lifecycle tests -still require actual Editor/Play/Player evidence. Rail refill/pumps, needle dynamics, -resolved spray/displacement, ignition/ECU, complete transmission/control and measured -powertrains remain unfinished. +Pump shaft work, rail pressure and mixed caloric storage have conservation and independent ODE checks; actual Unity acceptance remains pending. [VALIDATION.md](VALIDATION.md) Geometric capacity, vent/headspace/slosh, cavitation, measured pump filling/efficiency/regulation and resolved spray remain open. Parameters are `unverified`; actual Unity Editor/Play/Player/IL2CPP and OEM calibration remain unverified. ## Physical needle extension @@ -197,3 +191,13 @@ motion. In this mode requested dose is a controller target; it does not cap phys flow during closing lag, rebound or reversal. The ideal quota-limited path remains separate and unchanged. Refined magnetic/driver/spray behavior and calibration remain open. + +## Pump-fed liquid fuel rail + +`liquid_rail_feed` pairs a liquid injector with an existing displacement pump and explicit material/thermal boundary. The hydraulic outlet node must match the rail compliance and initial absolute pressure. The paired pump and injector own this pressure node; other untracked fluid paths are rejected. + +Asset v27 retains feed links and source temperature and reads v1-v26. Analytic shaft/pressure exchange, independent simultaneous ODE refinement, caloric mixing, mass/fuel/energy/volume ledgers, reverse return and complete rollback have separate checks. + +Geometric capacity, vent/headspace/slosh, cavitation, measured pump filling/efficiency/regulation and resolved spray remain open. Parameters are `unverified`; actual Unity Editor/Play/Player/IL2CPP and OEM calibration remain unverified. + +[PUMP_FED_FUEL.md](PUMP_FED_FUEL.md) diff --git a/docs/LIQUID_FUEL_INJECTION.pt-BR.md b/docs/LIQUID_FUEL_INJECTION.pt-BR.md index 0ab210b..b7f0de8 100644 --- a/docs/LIQUID_FUEL_INJECTION.pt-BR.md +++ b/docs/LIQUID_FUEL_INJECTION.pt-BR.md @@ -10,9 +10,7 @@ evapora o líquido; a reação prescrita existente consome só vapor. Isto liga entrega, mudança de fase e reação e mantém cada inventário e cada transferência de energia observáveis. É um modelo de pesquisa de densidade e flexibilidade -constantes. Bomba e reabastecimento do trilho, propriedades medidas, acionamento magnético e eletrônico refinado, -pulverização e arraste, cavitação, ignição e ECU, e hardware de gasolina calibrado -continuam sendo trabalho necessário rumo ao objetivo do powertrain completo. +constantes. A alimentação opcional por bomba usa uma fronteira externa explícita de matéria/calor. Capacidade geométrica, ventilação/espaço gasoso/oscilação, cavitação, enchimento/eficiência/regulação medidos e spray resolvido seguem abertos. Parâmetros `unverified`; Unity Editor/Play/Player/IL2CPP real e calibração OEM seguem não verificados. ```mermaid flowchart LR @@ -29,6 +27,8 @@ O trilho tem densidade líquida constante `rho`, flexibilidade positiva `C` em m massa inicial `m0` e pressão absoluta inicial `P0`. O volume de referência à pressão zero deve ser não negativo: +Sem alimentação por bomba, o rail segue estas equações e mantém a temperatura fornecida. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +181,7 @@ reação prescrita acionam o mesmo modelo de virabrequim e carga dos outros labo CLI, assets portáteis e o servidor MCP real compartilham as definições e os limites de replay. Todos os parâmetros permanecem `unverified`. -Decaimento analítico de pressão e trabalho, dose, reversão e esgotamento, refinamento acoplado -independente, livros completos de fonte, filme, constituintes e energia, limites de alocação -ativa e rollback especulativo de embreagem são verificados. [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) -registra os resultados observados. Vistas de trilho e de bocal e testes de ciclo de vida preparados no Unity -ainda exigem evidência real de Editor, Play e Player. Reabastecimento e bombas do trilho, dinâmica da agulha, -pulverização e deslocamento resolvidos, ignição e ECU, transmissão e controle completos e powertrains -medidos continuam inacabados. +Trabalho do eixo, pressão e armazenamento térmico misturado têm verificações de conservação e ODE independentes; aceitação Unity real segue pendente. [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) Capacidade geométrica, ventilação/espaço gasoso/oscilação, cavitação, enchimento/eficiência/regulação medidos e spray resolvido seguem abertos. Parâmetros `unverified`; Unity Editor/Play/Player/IL2CPP real e calibração OEM seguem não verificados. ## Extensão da agulha física @@ -197,3 +191,13 @@ movimento. Neste modo, a dose solicitada é um alvo do controlador; não limita durante o atraso de fechamento, o ricochete ou a reversão. O caminho ideal limitado por cota permanece separado e inalterado. Comportamento magnético, de driver e de pulverização refinado, e a calibração, continuam em aberto. + +## Rail de combustível líquido alimentado por bomba + +`liquid_rail_feed` associa um injetor líquido a uma bomba volumétrica existente e a uma fronteira explícita de matéria/calor. O nó de saída hidráulica deve corresponder à complacência e pressão absoluta inicial do rail. Bomba e injetor possuem esse nó; outras rotas fluidas não contabilizadas são rejeitadas. + +v27 preserva conexões e temperatura da fonte e lê v1-v26. Troca analítica eixo/pressão, refinamento ODE simultâneo independente, mistura térmica, balanços massa/combustível/energia/volume, retorno e rollback completo têm verificações separadas. + +Capacidade geométrica, ventilação/espaço gasoso/oscilação, cavitação, enchimento/eficiência/regulação medidos e spray resolvido seguem abertos. Parâmetros `unverified`; Unity Editor/Play/Player/IL2CPP real e calibração OEM seguem não verificados. + +[PUMP_FED_FUEL.pt-BR.md](PUMP_FED_FUEL.pt-BR.md) diff --git a/docs/LIQUID_FUEL_INJECTION.ru.md b/docs/LIQUID_FUEL_INJECTION.ru.md index 6c1e1dc..3427779 100644 --- a/docs/LIQUID_FUEL_INJECTION.ru.md +++ b/docs/LIQUID_FUEL_INJECTION.ru.md @@ -9,10 +9,7 @@ испаряет жидкость; существующая предписанная реакция потребляет только пар. Это связывает подачу, фазовый переход и реакцию и оставляет каждый запас -и перенос энергии наблюдаемым. Это исследовательская модель постоянной плотности и податливости. -Насос и заправка рейки, измеренные свойства, уточнённый магнитный и электронный привод, -распыл и увлечение, кавитация, зажигание и ECU и калиброванная бензиновая аппаратура -остаются необходимой работой к полной цели силового агрегата. +и перенос энергии наблюдаемым. Это исследовательская модель постоянной плотности и податливости. Необязательная насосная подача использует явную внешнюю материальную/тепловую границу. Геометрическая вместимость, вентиляция/газовая полость/плескание, кавитация, измеренные заполнение/КПД/регулирование и разрешённый распыл остаются открытыми. Параметры `unverified`; реальные Unity Editor/Play/Player/IL2CPP и OEM-калибровка не проверены. ```mermaid flowchart LR @@ -29,6 +26,8 @@ flowchart LR начальная масса `m0` и начальное абсолютное давление `P0`. Её опорный объём при нулевом давлении должен быть неотрицательным: +Без насосной подачи рампа следует этим уравнениям и сохраняет заданную температуру. + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -181,13 +180,7 @@ Q_nozzle = W_rail - W_receiver CLI, переносимые активы и фактический сервер MCP разделяют её определения и границы повтора. Все параметры остаются `unverified`. -Проверяются аналитический спад давления и работа, доза, реверс и нехватка, независимое связанное -уточнение, полные балансы источника, плёнки, составляющих и энергии, пределы активных выделений -и откат пробного сцепления. [VALIDATION.ru.md](VALIDATION.ru.md) -записывает наблюдаемые результаты. Подготовленные виды рейки и сопла Unity и тесты жизненного цикла -всё ещё требуют фактических свидетельств Editor/Play/Player. Заправка и насосы рейки, динамика иглы, -разрешённые распыл и вытеснение, зажигание и ECU, полные трансмиссия и управление и измеренные -силовые агрегаты остаются незавершёнными. +Работа вала, давление рампы и смешанная тепловая энергия имеют проверки сохранения и независимые ODE; реальная приёмка Unity ожидается. [VALIDATION.ru.md](VALIDATION.ru.md) Геометрическая вместимость, вентиляция/газовая полость/плескание, кавитация, измеренные заполнение/КПД/регулирование и разрешённый распыл остаются открытыми. Параметры `unverified`; реальные Unity Editor/Play/Player/IL2CPP и OEM-калибровка не проверены. ## Расширение с физической иглой @@ -197,3 +190,13 @@ CLI, переносимые активы и фактический сервер поток при запаздывании закрытия, отскоке или реверсе она не ограничивает. Идеальный путь с ограничением квотой остаётся отдельным и неизменным. Уточнённое магнитное поведение, поведение драйвера и распыла и калибровка остаются открытыми. + +## Жидкая топливная рампа с насосной подачей + +`liquid_rail_feed` связывает жидкий инжектор с существующим объёмным насосом и явной материальной/тепловой границей. Выходной гидравлический узел должен совпадать с податливостью и начальным абсолютным давлением рампы. Насос и инжектор владеют этим узлом; другие неучтённые жидкостные пути отклоняются. + +Формат v27 хранит связи подачи и температуру источника и читает v1-v26. Аналитический обмен вал/давление, независимое совместное уточнение ODE, смешение тепла, балансы массы/топлива/энергии/объёма, обратный поток и полный rollback проверяются отдельно. + +Геометрическая вместимость, вентиляция/газовая полость/плескание, кавитация, измеренные заполнение/КПД/регулирование и разрешённый распыл остаются открытыми. Параметры `unverified`; реальные Unity Editor/Play/Player/IL2CPP и OEM-калибровка не проверены. + +[PUMP_FED_FUEL.ru.md](PUMP_FED_FUEL.ru.md) diff --git a/docs/LIQUID_FUEL_INJECTION.zh-CN.md b/docs/LIQUID_FUEL_INJECTION.zh-CN.md index 361586c..fce543d 100644 --- a/docs/LIQUID_FUEL_INJECTION.zh-CN.md +++ b/docs/LIQUID_FUEL_INJECTION.zh-CN.md @@ -4,7 +4,7 @@ `liquid_fuel_injector` 把液体从有限柔性液轨送入单独的[油膜](FUEL_FILM.zh-CN.md)。正向曲轴窗口每个循环锁存一份请求质量。实际接收侧压力、喷嘴几何、剩余轨内存量与压力能决定供给。油膜随后加热并蒸发液体;既有的预设反应只消耗蒸气。 -这把供给、相变与反应连接起来,同时使每项存量与能量转移都可观测。它是定密度/柔度的研究模型。油轨泵/回充、实测物性、更精细的电磁/电子驱动、喷雾/卷吸、空化、点火/ECU 以及标定的汽油硬件,仍是通向完整动力总成目标所必需的工作。 +这把供给、相变与反应连接起来,同时使每项存量与能量转移都可观测。它是定密度/柔度的研究模型。 可选的泵补给使用显式外部质量/热边界。 几何容量、通气/顶部气体/晃动、气蚀、实测泵充液/效率/调压和分解喷雾仍待完成。参数为 `unverified`;实际 Unity Editor/Play/Player/IL2CPP 与 OEM 标定仍未验证。 ```mermaid flowchart LR @@ -19,6 +19,8 @@ flowchart LR 液轨具有恒定液体密度 `rho`、正的柔度 `C`(单位 m3/Pa)、初始质量 `m0` 与初始绝对压力 `P0`。其零压参考容积必须非负: +没有泵补给时,燃轨按以下方程运行并保持设定的供给温度。 + ```text V_reference = m0 / rho - C P0 m_rail = m0 - total_delivered_mass @@ -106,8 +108,18 @@ Q_nozzle = W_rail - W_receiver `liquid-injected-cylinder` 从干燥油膜与有限带压源开始。单独进气、循环剂量请求、受壁面限制的蒸气可用量与预设反应,驱动与其他实验室相同的曲轴/负载模型。JSON、CLI、可移植资产与真实的 MCP 服务器共享其定义与回放边界。全部参数仍为 `unverified`。 -解析压力衰减与功、剂量/反转/存量耗尽、独立耦合细化、完整的源/油膜/组分/能量账本、活动分配界限以及推测离合器回滚都会检查。[VALIDATION.md](VALIDATION.zh-CN.md)记载观测到的结果。已准备的 Unity 油轨/喷嘴视图与生命周期测试仍需要真实的 Editor/Play/Player 证据。油轨回充/泵、针阀动力学、已分辨的喷雾/排开、点火/ECU、完整的变速器/控制以及实测动力总成仍未完成。 +泵轴功、燃轨压力和混合热储能已有守恒与独立 ODE 检查;实际 Unity 验收仍待完成。 [VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) 几何容量、通气/顶部气体/晃动、气蚀、实测泵充液/效率/调压和分解喷雾仍待完成。参数为 `unverified`;实际 Unity Editor/Play/Player/IL2CPP 与 OEM 标定仍未验证。 ## 物理针阀扩展 可选的针阀定义把供给连接到实际的平动升程。[电磁铁、弹性止挡与采样驱动器](NEEDLE_ACTUATION.zh-CN.md)现在提供该运动。在此模式下,请求剂量是控制器目标;它不在关闭滞后、回弹或反转期间限制物理流量。理想的配额限制路径仍然分开且不变。更精细的电磁/驱动器/喷雾行为与标定仍未完成。 + +## 泵送液体燃油轨 + +`liquid_rail_feed` 将液体喷射器与现有排量泵及显式质量/热边界配对。液压出口节点必须与燃轨的顺应性和初始绝对压力一致。配对泵和喷射器管理该压力节点;其他未计入的流体路径会被拒绝。 + +资产 v27 保留补给连接和源温度,并读取 v1-v26。泵轴/压力解析交换、独立联立 ODE 细化、热混合、质量/燃料/能量/体积账本、反向回输与完整回滚各有独立检查。 + +几何容量、通气/顶部气体/晃动、气蚀、实测泵充液/效率/调压和分解喷雾仍待完成。参数为 `unverified`;实际 Unity Editor/Play/Player/IL2CPP 与 OEM 标定仍未验证。 + +[PUMP_FED_FUEL.zh-CN.md](PUMP_FED_FUEL.zh-CN.md) diff --git a/docs/LIQUID_FUEL_RETURN.de.md b/docs/LIQUID_FUEL_RETURN.de.md new file mode 100644 index 0000000..53f7689 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.de.md @@ -0,0 +1,43 @@ +# Verfolgter Kraftstoff-Entlastungsrücklauf + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · **Deutsch** · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Vertrag + +`liquid_rail_return` verbindet eine Speisung mit exklusivem einseitigem `hydraulic_relief`. Das Ventil führt die Schiene zum gleichen vorgegebenen Pumpeneinlassdruck. Alle Fluidpfade registrieren; unpassende Ports, doppelte Eigentümer und unbilanzierte Pfade werden abgelehnt. + +`fluid_heat_fraction` wählt ausdrücklich den Anteil [0,1] des Ventilverlusts im Rückkraftstoff. Restwärme folgt dem erklärten Ventilwärmepfad. Gleichzeitige Schienen-/Tankmischung erhält Masse-, Chemie-, Druckarbeits- und Wärmebilanzen. Rückfluss zur Außenquelle führt Masse/Energie über die Grenze hinaus. + +`total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` und `mass_flow` auf Rücklauf-ID 1515 lesen. Speise-ID 1511 meldet Brutto-Pumpentransfer. Bruttozirkulation kann Anfangsinventar übersteigen; aktuelles Inventar ist Anfang minus Pumpentransfer plus Rücklauf. + +## Nachweise und Grenzen + +`recirculating-liquid-cylinder` und `recirculating-needle-cylinder` behalten endlichen Kraftstoff, tatsächliche Einspritzung, Verdampfung und optionale Nadeldynamik. v41 speichert Verknüpfung/Wärmeanteil und liest v1-v40. Jeder Rücklauf fügt 8 Zustände innerhalb gleicher Grenzen hinzu. + +Unabhängiger Abfall/Druckarbeit, simultane Mechanik-/Druck-/Wärmeverfeinerung, Anteile, mehrere Pfade, Außengrenzen, replay, rollback und Allokationen bestehen. Sieden oder unaufgelöstes Transportintervall lässt den gesamten Batch scheitern. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Tankgeometrie und endlicher Gasraum + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Die Standardversorgung verwirft Flüssigkeit unter Sättigung. Optionales endliches Tankgleichgewicht löst Quellendampftransfer mit druckkorrigierten Potenzialen. Rail und Ansaugung führen weiter getrennte Flüssigkeit; Blasenmitnahme und kavitierende Strömung benötigen weitere Physik. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) diff --git a/docs/LIQUID_FUEL_RETURN.es.md b/docs/LIQUID_FUEL_RETURN.es.md new file mode 100644 index 0000000..3faf9af --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.es.md @@ -0,0 +1,43 @@ +# Retorno de alivio de combustible trazado + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · **Español** · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Contrato + +`liquid_rail_return` une una alimentación con un `hydraulic_relief` unidireccional exclusivo. La válvula conecta el raíl a la misma presión de entrada prescrita de la bomba. Registrar toda ruta fluida; puertos incompatibles, propiedad duplicada y rutas no seguidas se rechazan. + +`fluid_heat_fraction` elige explícitamente la fracción [0,1] de pérdida transportada por combustible retornado. El resto sigue la ruta térmica declarada. Mezcla simultánea raíl/tanque conserva masa, química, trabajo de presión y calor. El retorno a fuente externa saca masa/energía por la frontera. + +Leer `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` y `mass_flow` en retorno ID 1515. Alimentación ID 1511 informa transferencia bruta de bomba. Circulación bruta puede superar inventario inicial; inventario actual es inicial menos bombeo más retorno. + +## Evidencia y límites + +`recirculating-liquid-cylinder` y `recirculating-needle-cylinder` conservan combustible finito, inyección real, evaporación y aguja opcional. v41 guarda enlaces/fracción y lee v1-v40. Cada retorno añade 8 estados en los mismos límites. + +Pasan decaimiento/trabajo independiente, refinamiento mecánico/presión/térmico simultáneo, fracciones, rutas, fronteras externas, replay, rollback y asignaciones. Ebullición o intervalo sin resolver falla todo el lote. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Geometría del tanque y espacio gaseoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Equilibrio de fases del combustible y límites de suministro + +El suministro predeterminado rechaza líquido bajo saturación. La opción de tanque finito resuelve vapor fuente con potenciales corregidos por presión. Riel y aspiración aún llevan líquido separado; burbujas y flujo cavitante requieren más física. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) diff --git a/docs/LIQUID_FUEL_RETURN.fr.md b/docs/LIQUID_FUEL_RETURN.fr.md new file mode 100644 index 0000000..8980a45 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.fr.md @@ -0,0 +1,43 @@ +# Retour suivi de décharge de carburant + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · **Français** · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Contrat + +`liquid_rail_return` associe une alimentation à un `hydraulic_relief` unidirectionnel exclusif. La soupape relie la rampe à la même pression d'entrée prescrite que la pompe. Toute voie doit être enregistrée ; ports incompatibles, propriété dupliquée et voies non suivies sont rejetés. + +`fluid_heat_fraction` choisit explicitement la part [0,1] des pertes transportée par le carburant de retour. Le reste suit le chemin thermique déclaré. Le mélange simultané rampe/réservoir conserve les bilans matière, chimie, travail de pression et chaleur. Les retours à source externe sortent matière et énergie par la frontière. + +Lire `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` et `mass_flow` sur retour ID 1515. Alimentation ID 1511 rapporte le transfert brut de pompe. La circulation brute peut dépasser le stock initial ; stock actuel égale stock initial moins pompage plus retour. + +## Preuves et limites + +`recirculating-liquid-cylinder` et `recirculating-needle-cylinder` gardent carburant fini, injection réelle, évaporation et aiguille facultative. v41 conserve liens et fraction et lit v1-v40. Chaque retour ajoute 8 états dans les mêmes bornes. + +Décroissance/travail indépendants, raffinement mécanique/pression/thermique simultané, fractions, voies multiples, frontières externes, replay, rollback et allocations passent. Ébullition ou intervalle de transport non résolu fait échouer tout le lot. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Géométrie du réservoir et espace gazeux fini + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Équilibre des phases du carburant et limites d'alimentation + +L'alimentation liquide par défaut rejette les états humides sous saturation. L'option de réservoir à volume fini résout le transfert vapeur source avec potentiels chimiques corrigés. Rail et aspiration restent liquides séparés ; entraînement de bulles et écoulement cavitant demandent une physique supplémentaire. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) diff --git a/docs/LIQUID_FUEL_RETURN.it.md b/docs/LIQUID_FUEL_RETURN.it.md new file mode 100644 index 0000000..14c5277 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.it.md @@ -0,0 +1,43 @@ +# Ritorno di scarico carburante tracciato + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · **Italiano** · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Contratto + +`liquid_rail_return` collega un'alimentazione a un `hydraulic_relief` unidirezionale esclusivo. La valvola collega il rail alla stessa pressione d'ingresso prescritta della pompa. Registrare ogni percorso; porte incompatibili, proprietà duplicate e percorsi non tracciati sono rifiutati. + +`fluid_heat_fraction` sceglie esplicitamente la quota [0,1] delle perdite portata dal carburante di ritorno. Il resto segue il percorso termico dichiarato. Miscelazione simultanea rail/serbatoio conserva massa, chimica, lavoro di pressione e calore. Il ritorno a sorgente esterna porta massa/energia oltre confine. + +Leggere `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` e `mass_flow` su ritorno ID 1515. Alimentazione ID 1511 riporta trasferimento lordo della pompa. La circolazione può superare l'inventario iniziale; inventario attuale è iniziale meno pompa più ritorno. + +## Evidenze e limiti + +`recirculating-liquid-cylinder` e `recirculating-needle-cylinder` conservano combustibile finito, iniezione reale, evaporazione e ago opzionale. v41 salva collegamenti/quota e legge v1-v40. Ogni ritorno aggiunge 8 stati nei limiti invariati. + +Decadimento/lavoro indipendenti, raffinamento meccanica/pressione/termica simultaneo, quote, percorsi, confini esterni, replay, rollback e allocazioni passano. Ebollizione o intervallo non risolto fa fallire l'intero lotto. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Geometria del serbatoio e spazio gassoso finito + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Equilibrio di fase del carburante e limiti di alimentazione + +L'alimentazione predefinita respinge liquido sotto saturazione. Il serbatoio finito opzionale risolve il vapore sorgente con potenziali corretti. Rail e aspirazione trasportano ancora liquido separato; bolle e flusso cavitante richiedono altra fisica. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) diff --git a/docs/LIQUID_FUEL_RETURN.ja.md b/docs/LIQUID_FUEL_RETURN.ja.md new file mode 100644 index 0000000..edddc2c --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.ja.md @@ -0,0 +1,43 @@ +# 追跡可能な燃料リリーフ戻り流れ + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · **日本語** · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## 契約 + +`liquid_rail_return` は補給を排他的な一方向 `hydraulic_relief` に結びます。弁はレールをポンプと同じ規定入口圧へ接続します。すべての流体経路を登録し、不適合ポート、重複所有、未追跡経路は拒否します。 + +`fluid_heat_fraction` は戻り燃料が運ぶ弁損失の割合 [0,1] を明示します。残る熱は宣言した弁熱経路へ流れます。レール/タンク同時熱混合は質量、化学、圧力仕事、熱台帳を保存し、外部源への戻りは境界から質量/エネルギーを出します。 + +戻り ID 1515 の `total_fuel_delivered`、`reservoir_enthalpy`、`fuel_energy_in`、`fluid_heat`、`mass_flow` を読みます。補給 ID 1511 はポンプ総移送を示します。総循環は初期在庫を超えられ、現在在庫は初期在庫からポンプ移送を引き戻りを足した量です。 + +## 証拠と制限 + +`recirculating-liquid-cylinder` と `recirculating-needle-cylinder` は有限燃料、実噴射、蒸発、任意のニードル動特性を保持します。v41 は接続/熱割合を保存し v1-v40 を読みます。各戻りは既存上限内で 8 状態を追加します。 + +独立リリーフ減衰/仕事、機械/圧力/熱同時細化、熱割合、複数経路、外部境界、replay、rollback、割り当て検査は合格します。 沸騰や未解像移送区間は全バッチを失敗させます。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## タンク形状と有限ヘッドスペース + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 燃料の相平衡と液体供給の境界 + +既定の液体供給は飽和未満の湿潤状態を拒否します。任意の有限タンク平衡は補正化学ポテンシャルで供給蒸気移動を解きます。レールと吸入口は分離液体のままで、気泡巻込みとキャビテーション輸送には追加物理が必要です。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) diff --git a/docs/LIQUID_FUEL_RETURN.ko.md b/docs/LIQUID_FUEL_RETURN.ko.md new file mode 100644 index 0000000..ab1c6c7 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.ko.md @@ -0,0 +1,43 @@ +# 추적 가능한 연료 릴리프 반환 + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · **한국어** · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## 계약 + +`liquid_rail_return`는 공급을 독점 단방향 `hydraulic_relief`에 연결합니다. 밸브는 레일을 펌프와 같은 지정 입구 압력에 연결합니다. 모든 유체 경로를 등록하며 비호환 포트, 중복 소유와 미추적 경로는 거부됩니다. + +`fluid_heat_fraction`는 반환 연료가 운반하는 밸브 손실 비율 [0,1]을 명시합니다. 나머지 열은 선언된 밸브 열 경로를 따릅니다. 레일/탱크 동시 열 혼합은 질량, 화학, 압력 일과 열 원장을 보존하며 외부 원천 반환은 경계를 통해 질량/에너지를 내보냅니다. + +반환 ID 1515에서 `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat`, `mass_flow`를 읽습니다. 공급 ID 1511은 펌프 총 전달을 보고합니다. 총 순환량은 초기 재고를 넘을 수 있고 현재 재고는 초기 재고에서 펌프 전달을 빼고 반환을 더한 값입니다. + +## 증거와 한계 + +`recirculating-liquid-cylinder`와 `recirculating-needle-cylinder`는 유한 연료, 실제 분사, 증발과 선택적 니들 동역학을 보존합니다. v41은 연결/열 비율을 저장하고 v1-v40을 읽습니다. 각 반환은 기존 상한 내 8개 상태를 추가합니다. + +독립 릴리프 감쇠/일, 기계/압력/열 동시 세분화, 열 비율, 다중 경로, 외부 경계, replay, rollback과 할당 검사가 통과합니다. 비등이나 미해상 전달 구간은 전체 배치를 실패시킵니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 탱크 형상과 유한 헤드스페이스 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 연료 상평형과 액체 공급 경계 + +기본 액체 공급은 포화 이하 젖은 상태를 거부합니다. 선택 유한 탱크 평형은 압력 보정 화학 퍼텐셜로 공급 증기 이동을 풉니다. 레일과 흡입구는 여전히 분리 액체이며 기포 동반과 캐비테이션 수송은 추가 물리가 필요합니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) diff --git a/docs/LIQUID_FUEL_RETURN.md b/docs/LIQUID_FUEL_RETURN.md new file mode 100644 index 0000000..0ef4ea9 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.md @@ -0,0 +1,43 @@ +# Tracked fuel relief return + +**English** · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Contract + +`liquid_rail_return` pairs a feed with an exclusively owned one-way `hydraulic_relief`. The valve connects the rail to the pump's same prescribed inlet pressure. Register every fluid path; incompatible ports, duplicate valve ownership and untracked paths reject. + +`fluid_heat_fraction` explicitly selects the fraction in [0,1] of valve loss carried with returned fuel. The remaining heat follows the valve's declared heat path. Simultaneous rail/tank caloric mixing preserves the full mass, chemical, pressure-work and thermal ledgers. External-source returns instead carry mass and energy out through the boundary. + +Read `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` and `mass_flow` on return ID 1515. Feed ID 1511 reports gross pump transfer. Gross circulation can exceed initial tank inventory; current inventory equals initial inventory minus pump transfer plus return. + +## Evidence and limits + +`recirculating-liquid-cylinder` and `recirculating-needle-cylinder` retain finite fuel, actual injection, evaporation and optional needle dynamics. Asset v41 retains return links and heat fraction and reads v1-v40. Each return adds 8 states within the unchanged model bounds. + +Independent relief decay/pressure work and simultaneous mechanical, pressure and thermal refinement, heat fractions, multiple routes, external boundaries, every-boundary replay, rollback and allocation checks pass. Liquid boiling and unresolved transport intervals fail the entire batch. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[VALIDATION.md](VALIDATION.md) + +## Geometric tank and finite headspace + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Fuel phase equilibrium and liquid supply limits + +The default liquid-supply model rejects wet states below saturation. Optional finite-volume tank equilibrium instead resolves source vapor transfer with pressure-corrected chemical potentials. The rail and pump pickup still carry separated liquid; bubble entrainment and cavitating pump/rail flow require further physics. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) diff --git a/docs/LIQUID_FUEL_RETURN.pt-BR.md b/docs/LIQUID_FUEL_RETURN.pt-BR.md new file mode 100644 index 0000000..b44a891 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.pt-BR.md @@ -0,0 +1,43 @@ +# Retorno de alívio de combustível rastreado + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · **Português** + +## Contrato + +`liquid_rail_return` associa alimentação a um `hydraulic_relief` unidirecional exclusivo. A válvula liga o rail à mesma pressão de entrada prescrita da bomba. Registrar cada rota; portas incompatíveis, propriedade duplicada e rotas não rastreadas são rejeitadas. + +`fluid_heat_fraction` escolhe explicitamente a fração [0,1] da perda transportada pelo combustível retornado. O restante segue a rota térmica declarada. Mistura simultânea rail/tanque conserva massa, química, trabalho de pressão e calor. Retorno à fonte externa leva massa/energia pela fronteira. + +Leia `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` e `mass_flow` no retorno ID 1515. Alimentação ID 1511 informa transferência bruta da bomba. Circulação bruta pode exceder estoque inicial; estoque atual é inicial menos bombeamento mais retorno. + +## Evidências e limites + +`recirculating-liquid-cylinder` e `recirculating-needle-cylinder` mantêm combustível finito, injeção real, evaporação e agulha opcional. v41 guarda conexões/fração e lê v1-v40. Cada retorno acrescenta 8 estados nos mesmos limites. + +Passam decaimento/trabalho independentes, refinamento mecânica/pressão/térmico simultâneo, frações, rotas, fronteiras externas, replay, rollback e alocações. Ebulição ou intervalo não resolvido falha o lote inteiro. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Geometria do tanque e espaço gasoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Equilíbrio de fases do combustível e limites de suprimento + +O suprimento padrão rejeita líquido sob saturação. O tanque finito opcional resolve vapor da fonte com potenciais corrigidos por pressão. Trilho e captação ainda levam líquido separado; bolhas e fluxo cavitante precisam de mais física. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) diff --git a/docs/LIQUID_FUEL_RETURN.ru.md b/docs/LIQUID_FUEL_RETURN.ru.md new file mode 100644 index 0000000..48552da --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.ru.md @@ -0,0 +1,43 @@ +# Отслеживаемый возврат через сброс топлива + +[English](LIQUID_FUEL_RETURN.md) · [简体中文](LIQUID_FUEL_RETURN.zh-CN.md) · [Français](LIQUID_FUEL_RETURN.fr.md) · **Русский** · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## Контракт + +`liquid_rail_return` связывает подачу с исключительно принадлежащим ей однонаправленным `hydraulic_relief`. Клапан соединяет рампу с тем же заданным входным давлением насоса. Все жидкостные пути регистрируются; несовместимые порты, повторное владение и неучтённые пути отклоняются. + +`fluid_heat_fraction` явно выбирает долю [0,1] потерь, переносимую обратным топливом. Остальное тепло следует объявленному пути. Совместное смешение рампы/бака сохраняет массу, химию, работу давления и тепло. Возврат внешнему источнику выводит массу и энергию через границу. + +Читать `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`, `fluid_heat` и `mass_flow` на возврате ID 1515. Подача ID 1511 показывает валовый насосный перенос. Циркуляция может превышать начальный запас; текущий запас равен начальному минус насосный перенос плюс возврат. + +## Доказательства и ограничения + +`recirculating-liquid-cylinder` и `recirculating-needle-cylinder` сохраняют конечное топливо, фактическую инжекцию, испарение и необязательную иглу. v41 хранит связи/долю и читает v1-v40. Каждый возврат добавляет 8 состояний в прежних границах. + +Независимые спад/работа давления, совместное уточнение механики/давления/тепла, доли, пути, внешние границы, replay, rollback и выделения проходят проверки. Кипение или неразрешённый интервал переноса отклоняет всю партию. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Геометрия бака и конечное газовое пространство + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Фазовое равновесие топлива и границы жидкой подачи + +Однофазная подача по умолчанию отклоняет жидкость ниже насыщения. Опциональный конечный бак разрешает парообмен источника с поправкой химического потенциала. Рампа и забор остаются жидкими; пузырьки и кавитирующий поток требуют дальнейшей физики. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) diff --git a/docs/LIQUID_FUEL_RETURN.zh-CN.md b/docs/LIQUID_FUEL_RETURN.zh-CN.md new file mode 100644 index 0000000..7852ae3 --- /dev/null +++ b/docs/LIQUID_FUEL_RETURN.zh-CN.md @@ -0,0 +1,43 @@ +# 可追踪的燃油泄压回流 + +[English](LIQUID_FUEL_RETURN.md) · **简体中文** · [Français](LIQUID_FUEL_RETURN.fr.md) · [Русский](LIQUID_FUEL_RETURN.ru.md) · [日本語](LIQUID_FUEL_RETURN.ja.md) · [한국어](LIQUID_FUEL_RETURN.ko.md) · [Deutsch](LIQUID_FUEL_RETURN.de.md) · [Español](LIQUID_FUEL_RETURN.es.md) · [Italiano](LIQUID_FUEL_RETURN.it.md) · [Português](LIQUID_FUEL_RETURN.pt-BR.md) + +## 接口约定 + +`liquid_rail_return` 将补给与独占的单向 `hydraulic_relief` 配对。阀连接燃轨与泵相同的设定入口压力。每条流体路径都须登记;不兼容端口、重复阀所有权和未追踪路径会被拒绝。 + +`fluid_heat_fraction` 显式选择阀损失中随回流燃油携带的比例,范围为 [0,1]。剩余热量沿阀声明的热路径传递。燃轨/油箱联立热混合保持完整质量、化学、压力功和热账本。外部源模式则由回流跨边界带出质量与能量。 + +在回流 ID 1515 上读取 `total_fuel_delivered`、`reservoir_enthalpy`、`fuel_energy_in`、`fluid_heat` 和 `mass_flow`。补给 ID 1511 报告泵累计传递量。累计循环量可超过初始油箱库存;当前库存等于初始库存减泵传递量加回流。 + +## 证据与限制 + +`recirculating-liquid-cylinder` 与 `recirculating-needle-cylinder` 保留有限燃料、真实喷射、蒸发和可选针阀动力学。资产 v41 保留回流连接与热比例,并读取 v1-v40。每条回流在原有模型边界内增加 8 个状态。 + +独立泄压衰减/压力功、机械/压力/热联立细化、热比例、多条路径、外部边界、每边界重放、回滚与分配检查均通过。 液体沸腾和未充分解析的输运区间会使整批失败。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 油箱几何与有限气相空间 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 燃油相平衡与液体供给边界 + +默认液体供给模型拒绝低于饱和压力的湿状态。可选有限体积油箱相平衡使用压力修正化学势求解供给端蒸气转移。燃轨和泵吸口仍只输送已分离液体;气泡夹带与空化泵/燃轨流动还需要后续物理模型。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) diff --git a/docs/LIQUID_FUEL_TANK.de.md b/docs/LIQUID_FUEL_TANK.de.md new file mode 100644 index 0000000..bf9ad8c --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.de.md @@ -0,0 +1,51 @@ +# Endlicher Flüssigkraftstofftank + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · **Deutsch** · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Vertrag + +`liquid_fuel_tank` speichert endliche Flüssigkeitsmasse und kalorische Energie mit Dichte, Filmwärmereferenz und Heizwert des zugehörigen Injektors. Die Speisung wählt ihn mit `tank_component` und lässt `supply_temperature` weg. Jeder Tank gehört einer stofflich passenden Speisung. + +Positiver Pumpenstrom ist durch Restinventar über das akzeptierte Intervall begrenzt. Dieselbe effektive gefüllte Verdrängung setzt Wellenreaktion und Drucktransfer und erhält Wellen-/Fluidarbeit. Leere Vorwärtsrotation liefert weder Flüssigkeit noch Fluidarbeit; vorzeichenbehafteter Rückstrom mischt aktuelle Schienenwärme in den Tank. + +Kalorische und chemische Tankenergie gehören zur gesamten Speicherung. Interner Transfer fügt keine äußere Masse oder chemische Versorgung hinzu. Der erklärte Einlassdruck behält seine Druckarbeitsgrenze. Gaseinlass/-auslass kann weiterhin chemische Grenzenergie tragen. + +`finite-tank-liquid-cylinder` und `finite-tank-needle-cylinder` verwenden Tank-ID 1513 und Speise-ID 1511. `mass`, `temperature`, `internal_energy`, `chemical_energy` und `tank_state` lesen; 0 bedeutet Flüssigkeit und 1 leer. Trockentemperatur meldet die erklärte Anfangsreferenz. + +## Tankgeometrie und endlicher Gasraum + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Nachweise und Grenzen + +v41 speichert Tank und Speisewahl und liest v1-v40. Jeder Tank fügt 4 Zustände innerhalb gleicher Grenzen hinzu. Unabhängiger Nass-Austausch, analytischer Leerdruck/Wellenenergie, Rückmischung, vollständige Bilanzen, rollback, Zweige und allokationsfreie Schritte sind geprüft. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[VALIDATION.de.md](VALIDATION.de.md) + +## Verfolgter Kraftstoff-Entlastungsrücklauf + +`liquid_rail_return` verbindet eine Speisung mit exklusivem einseitigem `hydraulic_relief`. Das Ventil führt die Schiene zum gleichen vorgegebenen Pumpeneinlassdruck. Alle Fluidpfade registrieren; unpassende Ports, doppelte Eigentümer und unbilanzierte Pfade werden abgelehnt. + +`fluid_heat_fraction` wählt ausdrücklich den Anteil [0,1] des Ventilverlusts im Rückkraftstoff. Restwärme folgt dem erklärten Ventilwärmepfad. Gleichzeitige Schienen-/Tankmischung erhält Masse-, Chemie-, Druckarbeits- und Wärmebilanzen. Rückfluss zur Außenquelle führt Masse/Energie über die Grenze hinaus. + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Die Standardversorgung verwirft Flüssigkeit unter Sättigung. Optionales endliches Tankgleichgewicht löst Quellendampftransfer mit druckkorrigierten Potenzialen. Rail und Ansaugung führen weiter getrennte Flüssigkeit; Blasenmitnahme und kavitierende Strömung benötigen weitere Physik. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) diff --git a/docs/LIQUID_FUEL_TANK.es.md b/docs/LIQUID_FUEL_TANK.es.md new file mode 100644 index 0000000..65ad737 --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.es.md @@ -0,0 +1,51 @@ +# Tanque finito de combustible líquido + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · **Español** · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Contrato + +`liquid_fuel_tank` guarda masa líquida finita y energía térmica con densidad, referencia térmica de película y poder calorífico del inyector asociado. La alimentación lo elige con `tank_component` y omite `supply_temperature`. Cada tanque pertenece a una alimentación compatible. + +El caudal positivo se limita por el inventario restante durante el intervalo aceptado. El mismo desplazamiento efectivo lleno fija reacción del eje y transferencia de presión, conservando trabajo eje/fluido. Girar adelante vacío no entrega líquido ni trabajo fluido; el retorno con signo mezcla energía térmica actual del raíl en el tanque. + +Energías térmica y química del tanque forman el almacenamiento completo. La transferencia interna no agrega masa ni suministro químico externos. La presión de entrada prescrita mantiene su frontera de trabajo de presión. Admisión/escape gaseoso aún pueden llevar energía química. + +`finite-tank-liquid-cylinder` y `finite-tank-needle-cylinder` usan tanque ID 1513 y alimentación ID 1511. Leer `mass`, `temperature`, `internal_energy`, `chemical_energy` y `tank_state`; 0 significa líquido y 1 vacío. La temperatura seca informa la referencia inicial declarada. + +## Geometría del tanque y espacio gaseoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Evidencia y límites + +v41 conserva tanque y selección y lee v1-v40. Cada tanque añade 4 estados dentro de las mismas cotas. Se verifican intercambio húmedo independiente, presión/energía de eje agotadas analíticas, mezcla de retorno, balances completos, rollback, ramas y pasos sin asignación. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[VALIDATION.es.md](VALIDATION.es.md) + +## Retorno de alivio de combustible trazado + +`liquid_rail_return` une una alimentación con un `hydraulic_relief` unidireccional exclusivo. La válvula conecta el raíl a la misma presión de entrada prescrita de la bomba. Registrar toda ruta fluida; puertos incompatibles, propiedad duplicada y rutas no seguidas se rechazan. + +`fluid_heat_fraction` elige explícitamente la fracción [0,1] de pérdida transportada por combustible retornado. El resto sigue la ruta térmica declarada. Mezcla simultánea raíl/tanque conserva masa, química, trabajo de presión y calor. El retorno a fuente externa saca masa/energía por la frontera. + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## Equilibrio de fases del combustible y límites de suministro + +El suministro predeterminado rechaza líquido bajo saturación. La opción de tanque finito resuelve vapor fuente con potenciales corregidos por presión. Riel y aspiración aún llevan líquido separado; burbujas y flujo cavitante requieren más física. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) diff --git a/docs/LIQUID_FUEL_TANK.fr.md b/docs/LIQUID_FUEL_TANK.fr.md new file mode 100644 index 0000000..08d3dad --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.fr.md @@ -0,0 +1,51 @@ +# Réservoir fini de carburant liquide + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · **Français** · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Contrat + +`liquid_fuel_tank` stocke masse liquide finie et énergie calorique avec la densité, référence thermique du film et pouvoir calorifique de l'injecteur associé. L'alimentation le choisit via `tank_component` et omet `supply_temperature`. Chaque réservoir appartient à une alimentation compatible. + +Le débit positif est borné par l'inventaire restant sur l'intervalle accepté. Le même déplacement rempli effectif fixe réaction d'arbre et transfert de pression, conservant le travail arbre/fluide. Une rotation avant à vide ne livre ni liquide ni travail fluide ; le retour signé mélange l'énergie calorique actuelle de la rampe dans le réservoir. + +Énergies calorique et chimique du réservoir entrent dans le stockage complet. Le transfert interne n'ajoute aucune matière ni énergie chimique externe. La pression d'entrée prescrite garde sa frontière de travail de pression. Admission/échappement gazeux peuvent encore transporter de l'énergie chimique. + +`finite-tank-liquid-cylinder` et `finite-tank-needle-cylinder` utilisent réservoir ID 1513 et alimentation ID 1511. Lire `mass`, `temperature`, `internal_energy`, `chemical_energy` et `tank_state` ; 0 signifie liquide présent et 1 vide. La température sèche rapporte la référence initiale déclarée. + +## Géométrie du réservoir et espace gazeux fini + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Preuves et limites + +v41 conserve les données et la sélection et lit v1-v40. Chaque réservoir ajoute 4 états dans les bornes inchangées. Échange humide indépendant, pression/énergie d'arbre après épuisement analytiques, mélange retour, bilans complets, rollback, branches et pas sans allocation sont vérifiés. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +## Retour suivi de décharge de carburant + +`liquid_rail_return` associe une alimentation à un `hydraulic_relief` unidirectionnel exclusif. La soupape relie la rampe à la même pression d'entrée prescrite que la pompe. Toute voie doit être enregistrée ; ports incompatibles, propriété dupliquée et voies non suivies sont rejetés. + +`fluid_heat_fraction` choisit explicitement la part [0,1] des pertes transportée par le carburant de retour. Le reste suit le chemin thermique déclaré. Le mélange simultané rampe/réservoir conserve les bilans matière, chimie, travail de pression et chaleur. Les retours à source externe sortent matière et énergie par la frontière. + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## Équilibre des phases du carburant et limites d'alimentation + +L'alimentation liquide par défaut rejette les états humides sous saturation. L'option de réservoir à volume fini résout le transfert vapeur source avec potentiels chimiques corrigés. Rail et aspiration restent liquides séparés ; entraînement de bulles et écoulement cavitant demandent une physique supplémentaire. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) diff --git a/docs/LIQUID_FUEL_TANK.it.md b/docs/LIQUID_FUEL_TANK.it.md new file mode 100644 index 0000000..1af1dcb --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.it.md @@ -0,0 +1,51 @@ +# Serbatoio finito di combustibile liquido + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · **Italiano** · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Contratto + +`liquid_fuel_tank` conserva massa liquida finita ed energia termica con densità, riferimento termico del film e potere calorifico dell'iniettore associato. L'alimentazione lo seleziona con `tank_component` e omette `supply_temperature`. Ogni serbatoio appartiene a un'alimentazione compatibile. + +La portata positiva è limitata dall'inventario residuo sull'intervallo accettato. La stessa cilindrata effettiva riempita determina reazione d'albero e trasferimento di pressione, conservando lavoro albero/fluido. Rotazione avanti a vuoto non eroga liquido o lavoro fluido; il ritorno con segno miscela nel serbatoio l'energia termica attuale del rail. + +Energia termica e chimica del serbatoio entrano nello stoccaggio totale. Il trasferimento interno non aggiunge massa o energia chimica esterna. La pressione prescritta all'ingresso mantiene il confine di lavoro di pressione. Aspirazione/scarico gas possono ancora trasportare energia chimica. + +`finite-tank-liquid-cylinder` e `finite-tank-needle-cylinder` usano serbatoio ID 1513 e alimentazione ID 1511. Leggere `mass`, `temperature`, `internal_energy`, `chemical_energy` e `tank_state`; 0 significa liquido e 1 vuoto. La temperatura asciutta riporta il riferimento iniziale dichiarato. + +## Geometria del serbatoio e spazio gassoso finito + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Evidenze e limiti + +v41 conserva serbatoio e selezione e legge v1-v40. Ogni serbatoio aggiunge 4 stati nei limiti invariati. Scambio umido indipendente, pressione/energia d'albero esaurite analitiche, miscela di ritorno, bilanci completi, rollback, rami e passi senza allocazioni sono verificati. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[VALIDATION.it.md](VALIDATION.it.md) + +## Ritorno di scarico carburante tracciato + +`liquid_rail_return` collega un'alimentazione a un `hydraulic_relief` unidirezionale esclusivo. La valvola collega il rail alla stessa pressione d'ingresso prescritta della pompa. Registrare ogni percorso; porte incompatibili, proprietà duplicate e percorsi non tracciati sono rifiutati. + +`fluid_heat_fraction` sceglie esplicitamente la quota [0,1] delle perdite portata dal carburante di ritorno. Il resto segue il percorso termico dichiarato. Miscelazione simultanea rail/serbatoio conserva massa, chimica, lavoro di pressione e calore. Il ritorno a sorgente esterna porta massa/energia oltre confine. + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## Equilibrio di fase del carburante e limiti di alimentazione + +L'alimentazione predefinita respinge liquido sotto saturazione. Il serbatoio finito opzionale risolve il vapore sorgente con potenziali corretti. Rail e aspirazione trasportano ancora liquido separato; bolle e flusso cavitante richiedono altra fisica. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) diff --git a/docs/LIQUID_FUEL_TANK.ja.md b/docs/LIQUID_FUEL_TANK.ja.md new file mode 100644 index 0000000..96edd1c --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.ja.md @@ -0,0 +1,51 @@ +# 有限液体燃料タンク + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · **日本語** · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## 契約 + +`liquid_fuel_tank` は対応する噴射器の密度、フィルム熱基準、発熱量を使い、有限液体質量と熱エネルギーを保存します。補給は `tank_component` で選び、`supply_temperature` を省略します。各タンクは燃料物性が一致する一つの補給に属します。 + +正のポンプ流量は受理した区間での残存量に制限されます。同じ有効充液排量が軸反力と圧力移送を決め、軸/流体仕事を保存します。空タンクでの前進回転は液体や流体仕事を供給せず、符号付き戻り流れは現在のレール熱エネルギーをタンクに混合します。 + +タンクの熱/化学エネルギーは全貯蔵台帳に入ります。内部移送は外部質量や化学供給を追加しません。明示したポンプ入口規定圧は圧力仕事境界を保持します。ガス吸排気は化学境界エネルギーを運ぶ場合があります。 + +`finite-tank-liquid-cylinder` と `finite-tank-needle-cylinder` はタンク ID 1513 と補給 ID 1511 を使います。`mass`、`temperature`、`internal_energy`、`chemical_energy`、`tank_state` を読み、0 は液あり、1 は空です。乾燥温度は宣言した初期基準を示します。 + +## タンク形状と有限ヘッドスペース + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 証拠と制限 + +v41 はタンクと補給選択を保存し v1-v40 を読みます。各タンクは既存上限内で 4 状態を追加します。独立湿潤交換、枯渇後の圧力/軸エネルギー解析解、逆流混合、全台帳、rollback、分岐、割り当てなしステップを検査します。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +## 追跡可能な燃料リリーフ戻り流れ + +`liquid_rail_return` は補給を排他的な一方向 `hydraulic_relief` に結びます。弁はレールをポンプと同じ規定入口圧へ接続します。すべての流体経路を登録し、不適合ポート、重複所有、未追跡経路は拒否します。 + +`fluid_heat_fraction` は戻り燃料が運ぶ弁損失の割合 [0,1] を明示します。残る熱は宣言した弁熱経路へ流れます。レール/タンク同時熱混合は質量、化学、圧力仕事、熱台帳を保存し、外部源への戻りは境界から質量/エネルギーを出します。 + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## 燃料の相平衡と液体供給の境界 + +既定の液体供給は飽和未満の湿潤状態を拒否します。任意の有限タンク平衡は補正化学ポテンシャルで供給蒸気移動を解きます。レールと吸入口は分離液体のままで、気泡巻込みとキャビテーション輸送には追加物理が必要です。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) diff --git a/docs/LIQUID_FUEL_TANK.ko.md b/docs/LIQUID_FUEL_TANK.ko.md new file mode 100644 index 0000000..d2df7f4 --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.ko.md @@ -0,0 +1,51 @@ +# 유한 액체 연료 탱크 + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · **한국어** · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## 계약 + +`liquid_fuel_tank`는 연결 인젝터의 밀도, 필름 열 기준과 발열량으로 유한 액체 질량과 열 에너지를 저장합니다. 공급은 `tank_component`로 선택하고 `supply_temperature`를 생략합니다. 각 탱크는 연료 물성이 같은 한 공급에 속합니다. + +양의 펌프 유량은 허용 구간의 남은 재고로 제한됩니다. 같은 유효 충액 변위가 축 반력과 압력 전달을 정해 축/유체 일을 보존합니다. 빈 탱크의 전진 회전은 액체나 유체 일을 공급하지 않으며 부호 있는 반환 흐름은 현재 레일 열 에너지를 탱크에 혼합합니다. + +탱크 열/화학 에너지는 전체 저장 원장에 포함됩니다. 내부 전달은 외부 질량이나 화학 공급을 추가하지 않습니다. 명시적 펌프 입구 지정 압력은 압력 일 경계를 유지합니다. 가스 흡배기는 화학 경계 에너지를 운반할 수 있습니다. + +`finite-tank-liquid-cylinder`와 `finite-tank-needle-cylinder`는 탱크 ID 1513과 공급 ID 1511을 사용합니다. `mass`, `temperature`, `internal_energy`, `chemical_energy`, `tank_state`를 읽으며 0은 액체 있음, 1은 비었음을 뜻합니다. 건조 온도는 선언된 초기 기준을 보고합니다. + +## 탱크 형상과 유한 헤드스페이스 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 증거와 한계 + +v41은 탱크와 공급 선택을 저장하고 v1-v40을 읽습니다. 각 탱크는 기존 상한 안에서 4개 상태를 추가합니다. 독립 습윤 교환, 고갈 압력/축 에너지 해석, 반환 혼합, 전체 원장, rollback, 분기와 무할당 스텝을 검사합니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +## 추적 가능한 연료 릴리프 반환 + +`liquid_rail_return`는 공급을 독점 단방향 `hydraulic_relief`에 연결합니다. 밸브는 레일을 펌프와 같은 지정 입구 압력에 연결합니다. 모든 유체 경로를 등록하며 비호환 포트, 중복 소유와 미추적 경로는 거부됩니다. + +`fluid_heat_fraction`는 반환 연료가 운반하는 밸브 손실 비율 [0,1]을 명시합니다. 나머지 열은 선언된 밸브 열 경로를 따릅니다. 레일/탱크 동시 열 혼합은 질량, 화학, 압력 일과 열 원장을 보존하며 외부 원천 반환은 경계를 통해 질량/에너지를 내보냅니다. + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 연료 상평형과 액체 공급 경계 + +기본 액체 공급은 포화 이하 젖은 상태를 거부합니다. 선택 유한 탱크 평형은 압력 보정 화학 퍼텐셜로 공급 증기 이동을 풉니다. 레일과 흡입구는 여전히 분리 액체이며 기포 동반과 캐비테이션 수송은 추가 물리가 필요합니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) diff --git a/docs/LIQUID_FUEL_TANK.md b/docs/LIQUID_FUEL_TANK.md new file mode 100644 index 0000000..b2eef8a --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.md @@ -0,0 +1,51 @@ +# Finite liquid fuel tank + +**English** · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Contract + +`liquid_fuel_tank` stores finite liquid mass and caloric energy using the paired injector's density, film thermal reference and heating value. A feed selects it with `tank_component` and omits `supply_temperature`. Each tank belongs to one feed with matching fuel properties. + +Positive pump flow is bounded by remaining inventory over the accepted interval. The same effective filled displacement sets shaft reaction and pressure transfer, preserving shaft/fluid work. Empty forward rotation delivers no liquid or fluid work; signed return flow mixes the current rail caloric energy into the tank. + +Tank caloric and chemical energy enter the complete stored-energy ledger. Tank-to-rail transfer adds no external mass or chemical supply. The explicit prescribed pump inlet pressure retains its pressure-work boundary. Gas inlet/exhaust can still carry chemical boundary energy. + +The examples `finite-tank-liquid-cylinder` and `finite-tank-needle-cylinder` use tank ID 1513 and feed ID 1511. Read `mass`, `temperature`, `internal_energy`, `chemical_energy` and `tank_state`; 0 means wet and 1 means empty. Dry temperature reports the declared initial reference. + +## Geometric tank and finite headspace + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Evidence and limits + +Asset v41 retains tank data and feed selection and reads v1-v40. Each tank adds 4 reported states within the unchanged bounds. Independent wet exchange, analytic exhausted pressure/shaft energy, reverse mixing, complete ledgers, rollback, forks and allocation-free stepping are checked. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[VALIDATION.md](VALIDATION.md) + +## Tracked fuel relief return + +`liquid_rail_return` pairs a feed with an exclusively owned one-way `hydraulic_relief`. The valve connects the rail to the pump's same prescribed inlet pressure. Register every fluid path; incompatible ports, duplicate valve ownership and untracked paths reject. + +`fluid_heat_fraction` explicitly selects the fraction in [0,1] of valve loss carried with returned fuel. The remaining heat follows the valve's declared heat path. Simultaneous rail/tank caloric mixing preserves the full mass, chemical, pressure-work and thermal ledgers. External-source returns instead carry mass and energy out through the boundary. + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## Fuel phase equilibrium and liquid supply limits + +The default liquid-supply model rejects wet states below saturation. Optional finite-volume tank equilibrium instead resolves source vapor transfer with pressure-corrected chemical potentials. The rail and pump pickup still carry separated liquid; bubble entrainment and cavitating pump/rail flow require further physics. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) diff --git a/docs/LIQUID_FUEL_TANK.pt-BR.md b/docs/LIQUID_FUEL_TANK.pt-BR.md new file mode 100644 index 0000000..4a19e8e --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.pt-BR.md @@ -0,0 +1,51 @@ +# Tanque finito de combustível líquido + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · **Português** + +## Contrato + +`liquid_fuel_tank` guarda massa líquida finita e energia térmica com densidade, referência térmica do filme e poder calorífico do injetor associado. A alimentação o escolhe por `tank_component` e omite `supply_temperature`. Cada tanque pertence a uma alimentação compatível. + +A vazão positiva é limitada pelo inventário restante no intervalo aceito. O mesmo deslocamento efetivo preenchido define reação do eixo e transferência de pressão, conservando trabalho eixo/fluido. Rotação adiante vazia não entrega líquido ou trabalho fluido; retorno com sinal mistura a energia térmica atual do rail no tanque. + +Energias térmica e química do tanque entram no armazenamento completo. Transferência interna não adiciona massa ou energia química externa. A pressão de entrada prescrita mantém sua fronteira de trabalho de pressão. Admissão/escape gasoso ainda podem transportar energia química. + +`finite-tank-liquid-cylinder` e `finite-tank-needle-cylinder` usam tanque ID 1513 e alimentação ID 1511. Leia `mass`, `temperature`, `internal_energy`, `chemical_energy` e `tank_state`; 0 indica líquido e 1 vazio. A temperatura seca informa a referência inicial declarada. + +## Geometria do tanque e espaço gasoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Evidências e limites + +v41 preserva tanque e seleção e lê v1-v40. Cada tanque acrescenta 4 estados dentro dos limites mantidos. Troca úmida independente, pressão/energia do eixo esgotadas analíticas, mistura de retorno, balanços completos, rollback, ramos e passos sem alocação são verificados. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +## Retorno de alívio de combustível rastreado + +`liquid_rail_return` associa alimentação a um `hydraulic_relief` unidirecional exclusivo. A válvula liga o rail à mesma pressão de entrada prescrita da bomba. Registrar cada rota; portas incompatíveis, propriedade duplicada e rotas não rastreadas são rejeitadas. + +`fluid_heat_fraction` escolhe explicitamente a fração [0,1] da perda transportada pelo combustível retornado. O restante segue a rota térmica declarada. Mistura simultânea rail/tanque conserva massa, química, trabalho de pressão e calor. Retorno à fonte externa leva massa/energia pela fronteira. + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## Equilíbrio de fases do combustível e limites de suprimento + +O suprimento padrão rejeita líquido sob saturação. O tanque finito opcional resolve vapor da fonte com potenciais corrigidos por pressão. Trilho e captação ainda levam líquido separado; bolhas e fluxo cavitante precisam de mais física. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) diff --git a/docs/LIQUID_FUEL_TANK.ru.md b/docs/LIQUID_FUEL_TANK.ru.md new file mode 100644 index 0000000..9664da1 --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.ru.md @@ -0,0 +1,51 @@ +# Конечный бак жидкого топлива + +[English](LIQUID_FUEL_TANK.md) · [简体中文](LIQUID_FUEL_TANK.zh-CN.md) · [Français](LIQUID_FUEL_TANK.fr.md) · **Русский** · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## Контракт + +`liquid_fuel_tank` хранит конечную массу жидкости и тепловую энергию с плотностью, тепловым отсчётом плёнки и теплотой сгорания связанного инжектора. Подача выбирает его через `tank_component`, исключая `supply_temperature`. Каждый бак принадлежит одной совместимой подаче. + +Положительный расход ограничен оставшимся запасом на принятом интервале. Одинаковый эффективный заполненный объём задаёт реакцию вала и перенос давления, сохраняя работу вал/жидкость. Пустое прямое вращение не подаёт жидкость или гидравлическую работу; знаковый возврат смешивает текущую тепловую энергию рампы с баком. + +Тепловая и химическая энергия бака входят в полное хранилище. Внутренний перенос не добавляет внешней массы или химической энергии. Заданное входное давление насоса сохраняет границу работы давления. Впуск/выпуск газа всё ещё может переносить химическую энергию. + +`finite-tank-liquid-cylinder` и `finite-tank-needle-cylinder` используют бак ID 1513 и подачу ID 1511. Читать `mass`, `temperature`, `internal_energy`, `chemical_energy` и `tank_state`; 0 означает жидкость, 1 пустой бак. Сухая температура показывает объявленный начальный отсчёт. + +## Геометрия бака и конечное газовое пространство + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Доказательства и ограничения + +v41 сохраняет бак и выбор подачи и читает v1-v40. Каждый бак добавляет 4 состояния в прежних границах. Независимый мокрый обмен, аналитические давление/энергия вала после опустошения, обратное смешение, полные балансы, rollback, ветви и шаги без выделений проверены. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +## Отслеживаемый возврат через сброс топлива + +`liquid_rail_return` связывает подачу с исключительно принадлежащим ей однонаправленным `hydraulic_relief`. Клапан соединяет рампу с тем же заданным входным давлением насоса. Все жидкостные пути регистрируются; несовместимые порты, повторное владение и неучтённые пути отклоняются. + +`fluid_heat_fraction` явно выбирает долю [0,1] потерь, переносимую обратным топливом. Остальное тепло следует объявленному пути. Совместное смешение рампы/бака сохраняет массу, химию, работу давления и тепло. Возврат внешнему источнику выводит массу и энергию через границу. + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## Фазовое равновесие топлива и границы жидкой подачи + +Однофазная подача по умолчанию отклоняет жидкость ниже насыщения. Опциональный конечный бак разрешает парообмен источника с поправкой химического потенциала. Рампа и забор остаются жидкими; пузырьки и кавитирующий поток требуют дальнейшей физики. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) diff --git a/docs/LIQUID_FUEL_TANK.zh-CN.md b/docs/LIQUID_FUEL_TANK.zh-CN.md new file mode 100644 index 0000000..300390c --- /dev/null +++ b/docs/LIQUID_FUEL_TANK.zh-CN.md @@ -0,0 +1,51 @@ +# 有限液体燃油箱 + +[English](LIQUID_FUEL_TANK.md) · **简体中文** · [Français](LIQUID_FUEL_TANK.fr.md) · [Русский](LIQUID_FUEL_TANK.ru.md) · [日本語](LIQUID_FUEL_TANK.ja.md) · [한국어](LIQUID_FUEL_TANK.ko.md) · [Deutsch](LIQUID_FUEL_TANK.de.md) · [Español](LIQUID_FUEL_TANK.es.md) · [Italiano](LIQUID_FUEL_TANK.it.md) · [Português](LIQUID_FUEL_TANK.pt-BR.md) + +## 接口约定 + +`liquid_fuel_tank` 使用配对喷射器的密度、油膜热参考和热值,存储有限液体质量及热能。补给通过 `tank_component` 选择它,并省略 `supply_temperature`。每个油箱属于一个燃料属性相同的补给。 + +正向泵流量受已接受时间区间内的剩余库存限制。同一有效充液排量决定轴反力和压力传递,保持轴/流体功守恒。空箱正向转动不输送液体或流体功;带符号的回流将当前燃轨热能混入油箱。 + +油箱热能和化学能进入完整储能账本。油箱到燃轨的传递不增加外部质量或化学供给。显式设定的泵入口压力保留其压力功边界。气体进气/排气仍可携带化学边界能量。 + +示例 `finite-tank-liquid-cylinder` 与 `finite-tank-needle-cylinder` 使用油箱 ID 1513 和补给 ID 1511。读取 `mass`、`temperature`、`internal_energy`、`chemical_energy` 与 `tank_state`;0 表示有液体,1 表示空箱。干态温度报告声明的初始参考。 + +## 油箱几何与有限气相空间 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 证据与限制 + +资产 v41 保留油箱数据和补给选择,并读取 v1-v40。每个油箱在原有边界内增加 4 个报告状态。独立湿态交换、耗尽压力/轴能解析解、回流混合、完整账本、回滚、独立分支与无分配步进均有检查。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +## 可追踪的燃油泄压回流 + +`liquid_rail_return` 将补给与独占的单向 `hydraulic_relief` 配对。阀连接燃轨与泵相同的设定入口压力。每条流体路径都须登记;不兼容端口、重复阀所有权和未追踪路径会被拒绝。 + +`fluid_heat_fraction` 显式选择阀损失中随回流燃油携带的比例,范围为 [0,1]。剩余热量沿阀声明的热路径传递。燃轨/油箱联立热混合保持完整质量、化学、压力功和热账本。外部源模式则由回流跨边界带出质量与能量。 + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 燃油相平衡与液体供给边界 + +默认液体供给模型拒绝低于饱和压力的湿状态。可选有限体积油箱相平衡使用压力修正化学势求解供给端蒸气转移。燃轨和泵吸口仍只输送已分离液体;气泡夹带与空化泵/燃轨流动还需要后续物理模型。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) diff --git a/docs/NEXT_ENGINE_STEP.de.md b/docs/NEXT_ENGINE_STEP.de.md index 025f644..874ef77 100644 --- a/docs/NEXT_ENGINE_STEP.de.md +++ b/docs/NEXT_ENGINE_STEP.de.md @@ -2,41 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · **Deutsch** · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -Die Entwicklung wurde auf Wunsch des Eigentümers am 2026-09-14 wieder aufgenommen. Eigenständige Gasprimitive und -das kompilierte Kernnetz sind jetzt umgesetzt. Der Integrationsprüfpunkt vom 2026-09-22 unten aktualisiert den verbleibenden Umfang. -Die vorhergehende Baseline des abgeschlossenen Zylinders hat die verwaltete Prüfung unter Windows, macOS und -Linux bestanden. Tatsächliche Unity-Editor- und Player-Nachweise stehen noch aus; siehe [Validierung](VALIDATION.de.md). +## Fortsetzungspunkt -**Folgender Prüfpunkt am 2026-09-14:** das [Gasnetz des Kerns](GAS_NETWORK.de.md) setzt jetzt -Gasknoten festen Volumens, Reservoirdrosseln, gesteuerte Öffnungen, thermische -Verbindungen, Kanäle, Bilanzen, Abzweigungen und Rollback um. Das begrenzte Heun-Verfahren hat analytische Nachweise und -Verfeinerungsnachweise für glatte Strömung, mit expliziter Wandkopplung und einem erhaltenden -Begrenzer nahe dem Gleichgewicht. Es ist nicht das vorgeschlagene implizite Verfahren. +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. -**Integration am 2026-09-22:** JSON/Schema, Asset v3, CLI-/MCP-Entdeckung und Beispiele, -portables Replay und schematische Unity-Ansichten sind umgesetzt. Leser und -Fixtures von v1/v2 vor der Änderung bleiben erhalten. Die Unity-Editor-/Play-Prüfung bleibt ausstehend. Der folgende [Schritt des bewegten Zylinders](MOVING_CYLINDER.de.md) ergänzt Gaswechsel und -Kurbelarbeit über JSON, Assets und Agenten. Der folgende [Schritt der Kurbelwinkelsteuerung](VALVE_TIMING.de.md) ergänzt explizite Profile über 360/720 Grad, -Richtungsumkehr und begrenzte Nockenauflösung über dieselben Schnittstellen. Der jüngste -Motorprüfpunkt umfasst die [Vormischverbrennung](PREMIXED_COMBUSTION.de.md), mit -transportiertem Kraftstoff, Luft und Produkten, begrenzenden Reaktanten und Bilanz der chemischen Energie. Detaillierte -Thermochemie, Kraftstoffdosierung und Zündungsregelung bleiben Motorarbeit. +[Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) -Das Kernnetz stellt jetzt explizite Zustände für Gasmasse und innere Energie bereit. Die Komponente des bewegten Zylinders koppelt sie nun an kurbelabhängige Kammern mit erhaltender Druckarbeit. Der gegenwärtige abgeschlossene Zylinder leitet den Gaszustand aus dem Winkel und einer unveränderlichen Anfangsentropie ab und kann Gaswechsel oder Wandheizung nicht darstellen. Diese Komponente bleibt ein analytischer Vergleichsmaßstab; endliche Kammern, Reservoire, Gaszylinder, gesteuerte Drosseln und Gas-Wärme-Verbindungen bestehen nun gemeinsam im kompilierten Graphen. +`LiquidColumn` ist eine eigenständige C#-Referenz für ein waagerechtes starres Rohr mit konstantem Querschnitt, gleichförmiger Geschwindigkeit, Flüssigkeitsdichte und Temperatur. Absolute Portdrücke sind je Intervall vorgegeben. Lineare und quadratische Widerstände sind explizite Forschungswerte. Es ist keine Graphkomponente; Netzwerk und Düsen bleiben unverändert. [Referenz für den Impuls am Flüssigkeitseinlass](LIQUID_COLUMN.de.md) -Ursprüngliche Schrittverträge (den Prüfpunkt oben verwenden, um abgeschlossene Kernarbeit von verbleibender Integration zu unterscheiden): +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. [Impuls einer endlichen Flüssigkraftstoffleitung](FUEL_INERTIAL_PIPE.de.md) -- Gasdrosseln verweisen auf stabile Gasknoten-IDs; ein künftiger Gaszylinder muss seinen Endpunkt beweglichen Volumens explizit definieren. Ein Gaszylinder verbindet sich außerdem mit einem rotatorischen Knoten; eine Wärmeverbindung verbindet ein endliches Gasvolumen mit einem thermischen Knoten. Gasnetze allein unterstützen, ohne einen mechanischen Platzhalterknoten zu verlangen. -- Masse und innere Energie unabhängig verfolgen, mit positiver endlicher Zustandsprüfung. Masse und stromaufwärtige Enthalpie gemeinsam übertragen. Reservoiraustausch in externen Massen- und Energiebilanzen verfolgen; interne Überträge müssen sich aufheben. Verbundene Gase auf dieselbe Gaskonstante und dasselbe Gamma beschränken, bis Mischung von Zusammensetzung und Spezies umgesetzt ist. -- Kanäle für vorzeichenbehafteten Massenstrom, Gaszustand, Wärmestrom und Massenresiduum bereitstellen. Die Drosselöffnung verwendet einen expliziten dimensionslosen Anteil in `[0,1]`, mit derselben Prüfung für direkte und geplante Eingaben. -- Eine begrenzte paarweise implizite Übertragslösung untersuchen, eingegrenzt durch den Gleichdruckzustand des verbundenen Paars. Die Druckarbeit des Gaszylinders über die bestehende Kurbellösung koppeln. Ein Splitting-Verfahren mit Rückwärts-Euler-Strömung wäre für den Gaswechsel erster Ordnung; Erhaltung allein beweist keine Genauigkeit. Dieses vorgeschlagene Verfahren prüfen, bevor es übernommen wird. -- Vollständiges Batch-Rollback, Korrekturen in Zustandshashes und Abzweigungen, Abbruch, unveränderliche kompilierte Modelle und null Allokationen während erfolgreichen Schreitens bewahren. Löserveragen muss handlungsfähige Hinweise liefern. -- JSON-Schemata, portable Assets, Fähigkeitsentdeckung, Beispiele, Berichte und Unity-Ansichten gemeinsam erweitern. Wenn eine neue Asset-Version nötig ist, Leser für v1/v2 behalten und echte Fixtures von vor der Änderung prüfen. Bestehende Modell-Fingerabdrücke bewahren, wo die Lösersemantik unverändert bleibt. +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) -Erforderliche Nachweise umfassen kritische und unterkritische Düsenströmung, analytisches adiabatisches Behälterausströmen, Füllenthalpie des Reservoirs, Massen- und Energieerhaltung im geschlossenen Netz, Druckausgleich, Wärmeübergang Gas/Wand, Schrittverfeinerung, Rückströmung, Isolation bei geschlossenem Ventil, gekoppelte Kurbelarbeit, Ablehnung fehlerhafter Topologie und Eingaben, Erholung nach fehlgeschlagenem Batch, Verzweigung und vollständiges CLI-/MCP-/Asset-Replay. +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) -Forschungsausgangspunkte: [NASA-Massenstrom bei kritischer Strömung](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) für ideale kompressible Düsenströmung und [Cantera-Reaktorwechselwirkungen](https://www.cantera.org/stable/reference/reactors/interactions.html) für Kontrollvolumen-Rand und Wandbegriffe. Diese Quellen sind keine Laufzeitabhängigkeiten und keine Validierung des von Power! vorgeschlagenen Lösers. +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) -Ein authentisches Zylinder-Asset v2 von vor der Änderung liegt jetzt in den [Kompatibilitäts-Fixtures](../tests/Power.Tests/Fixtures/README.md), mit Quell-Commit und SHA-256. Die aktiven Tests prüfen seinen Fingerabdruck und das Replay nach dem Upgrade auf v3; es nicht mit dem neuen Encoder neu erzeugen. +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. [Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) -Vollständiges Motorverhalten, vorhersagende Verbrennung und Thermochemie, mechanische Ventiltriebsdynamik, Getriebe, Regelungen und kalibrierte Fahrzeugbeispiele bleiben offen. Alle Nachweisgrenzen der Beispiele bewahren. Die archivierten nativen Prototypen sind nach **Zig** unter [der nativen Grenze](NATIVE_ZIG.de.md) portiert; die aktive C#-/Unity-Umsetzung bleibt bestehen. +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. [Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) + +## Nächster Schritt + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) + +## Abnahme + +Unabhängige analytische/Grenzreferenzen, vollständige Masse/Energie und passende Schrittverfeinerung verlangen. Batch-Rollback, Abbruch, Zweige, stabile Kanäle, portables Replay und alte Leser erhalten. Danach Zündung, Einlass/Auslass, mechanische Verluste, Getriebeaktuation und ECU/TCU-Koordination fortsetzen. + +Parameter bleiben `unverified`. Beide Ports benötigen dieselbe Domäne und dasselbe Material; relaxierende Ports lehnen Gleichgewichtstransit ab. Endliche Relaxation im Behälter löst keine Chemie oder Verweilzeit in einer volumenlosen Düse auf. Phasenschlupf, Flüssigkeitszugspannung, Keimbildungsbarriere, Spray, Trägergas und brennende Empfänger fehlen. Bewegte Behälter sind gemischt mit mittlerer Geschwindigkeit null; innere Kanalzellen bleiben starr mit einem Besitzer. Verdünnten idealen Dampf fern vom kritischen Bereich, erklärte positive Druck-/Temperaturgrenzen, positive latente Enthalpie und getrennte Koexistenzvolumina verwenden. Anfangsdampfanteile sind explizite Forschungseingaben. Numerische Übereinstimmung belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +[DEVELOPMENT_STATUS.de.md](DEVELOPMENT_STATUS.de.md) · [ROADMAP.de.md](ROADMAP.de.md) · [VALIDATION.de.md](VALIDATION.de.md) + +[Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) diff --git a/docs/NEXT_ENGINE_STEP.es.md b/docs/NEXT_ENGINE_STEP.es.md index e0bd4d7..461a25a 100644 --- a/docs/NEXT_ENGINE_STEP.es.md +++ b/docs/NEXT_ENGINE_STEP.es.md @@ -2,41 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · **Español** · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -El desarrollo se reanudó a petición del propietario el 2026-09-14. Los primitivos de gas independientes y -la red compilada del núcleo están ahora implementados. El punto de control de integración del 2026-09-22, más abajo, actualiza el alcance restante. -La línea base anterior del cilindro cerrado pasó la verificación gestionada en Windows, macOS y -Linux. La evidencia real de Unity Editor y Player sigue pendiente; consulta [validación](VALIDATION.es.md). +## Punto de continuación -**Punto de control posterior el 2026-09-14:** la [red de gas del núcleo](GAS_NETWORK.es.md) implementa ahora -nodos de gas de volumen fijo, restricciones de depósito, aperturas controladas, enlaces -térmicos, canales, libros, bifurcaciones y reversión. El método de Heun acotado tiene evidencia analítica y -de refinamiento para flujo suave, con acoplamiento de pared explícito y un limitador conservador -cerca del equilibrio. No es el método implícito propuesto. +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. -**Integración del 2026-09-22:** están implementados el JSON y el esquema, el asset v3, el descubrimiento y los ejemplos de CLI/MCP, -la repetición portátil y las vistas esquemáticas de Unity. Se conservan los lectores -y fixtures v1/v2 anteriores al cambio. La verificación de Unity Editor/Play sigue pendiente. El [incremento posterior del cilindro móvil](MOVING_CYLINDER.es.md) añade intercambio de gas y -trabajo del cigüeñal a través de JSON, assets y agentes. El [incremento posterior de temporización por ángulo de cigüeñal](VALVE_TIMING.es.md) añade perfiles explícitos de 360/720 grados, -inversión y resolución de lóbulo acotada a través de las mismas interfaces. El último -punto de control del motor incluye la [combustión premmezclada](PREMIXED_COMBUSTION.es.md), con -combustible, aire y productos transportados, reactivos limitantes y contabilidad de energía química. La termoquímica -detallada, la dosificación de combustible y el control de encendido siguen siendo trabajo del motor. +[Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) -La red del núcleo ofrece ahora estados explícitos de masa de gas y de energía interna. El componente de cilindro móvil los acopla ahora a cámaras dependientes del cigüeñal con trabajo de presión conservativo. El cilindro cerrado actual deriva el estado del gas del ángulo y de una entropía inicial inmutable, y no puede representar el intercambio de gas ni el calentamiento de pared. Ese componente sigue siendo una referencia analítica; las cámaras finitas, los depósitos, los cilindros de gas, los orificios controlados y los enlaces de gas a térmico coexisten ahora en el grafo compilado. +`LiquidColumn` es una referencia C# independiente de un tubo horizontal rígido con sección, velocidad uniforme, densidad líquida y temperatura constantes. Las presiones absolutas se prescriben por intervalo. Las resistencias lineal y cuadrática son entradas de investigación explícitas. No es un componente del grafo ni cambia las ecuaciones de red o tobera. [Referencia de cantidad de movimiento en la entrada líquida](LIQUID_COLUMN.es.md) -Contratos del incremento original (usa el punto de control de arriba para distinguir el trabajo del núcleo ya completado de la integración restante): +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. [Cantidad de movimiento en una línea finita de combustible líquido](FUEL_INERTIAL_PIPE.es.md) -- Las restricciones de gas referencian IDs estables de nodo de gas; un futuro cilindro de gas debe definir de forma explícita su extremo de volumen móvil. Un cilindro de gas se conecta también a un nodo rotacional; un enlace térmico conecta un volumen de gas finito con un nodo térmico. Admite redes solo de gas sin exigir un nodo mecánico ficticio. -- Rastrea la masa y la energía interna por separado, con validación de estado positivo y finito. Transfiere juntas la masa y la entalpía aguas arriba. Rastrea el intercambio con el depósito en libros externos de masa y energía; las transferencias internas deben cancelarse. Restringe los gases conectados a la misma constante de gas y gamma hasta que se implemente la mezcla de composición o de especies. -- Expón canales de caudal másico con signo, estado del gas, flujo de calor y residuo de masa. La apertura del orificio usa una fracción adimensional explícita dentro de `[0,1]`, con la misma validación para entradas directas y programadas. -- Investiga una resolución implícita de transferencia por pares y acotada, delimitada por el estado de igual presión del par conectado. Acopla el trabajo de presión del cilindro de gas a través de la resolución de cigüeñal existente. Un método dividido con flujo de Euler hacia atrás sería de primer orden para el intercambio de gas; la conservación por sí sola no demuestra precisión. Valida este método propuesto antes de adoptarlo. -- Conserva la reversión completa del lote, las correcciones en los hashes de estado y las bifurcaciones, la cancelación, los modelos compilados inmutables y cero asignaciones durante un avance correcto. El fallo del solver debe devolver una guía accionable. -- Amplía a la vez los esquemas JSON, los assets portátiles, el descubrimiento de capacidades, los ejemplos, los informes y las vistas de Unity. Si hace falta una versión nueva de asset, conserva los lectores v1/v2 y prueba fixtures reales anteriores al cambio. Conserva las huellas de modelo existentes donde la semántica del solver no cambie. +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) -La evidencia exigida incluye flujo de tobera bloqueado y subcrítico, vaciado adiabático analítico de un recipiente, entalpía de llenado del depósito, conservación de masa y energía en red cerrada, igualación de presión, intercambio de calor gas/pared, refinamiento del paso, flujo inverso, aislamiento con válvula cerrada, trabajo de cigüeñal acoplado, rechazo de topología o entrada mal formada, recuperación de lote fallido, bifurcación y repetición completa de CLI, MCP y asset. +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) -Puntos de partida de la investigación: [bloqueo del caudal másico de la NASA](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) para el flujo ideal de tobera compresible, y [interacciones de reactores de Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) para los conceptos de frontera de volumen de control y de pared. Estas referencias no son dependencias de runtime ni una validación del solver propuesto de Power!. +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. [Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) -Un asset auténtico de cilindro v2 anterior al cambio se conserva ahora en los [fixtures de compatibilidad](../tests/Power.Tests/Fixtures/README.md), con su commit de origen y SHA-256. Las pruebas activas verifican su huella y su repetición tras actualizarlo a v3; no lo regeneres con el codificador nuevo. +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. [Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) -Siguen pendientes el comportamiento completo del motor, la combustión y la termoquímica predictivas, la dinámica mecánica de la distribución, las transmisiones, los controles y las muestras de vehículo calibradas. Conserva todos los límites de evidencia de las muestras. Los prototipos nativos archivados se han portado a **Zig** bajo [la frontera nativa](NATIVE_ZIG.es.md); la implementación activa de C#/Unity permanece en su sitio. +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. [Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) + +## Próximo incremento + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) + +## Aceptación + +Exigir referencias analíticas o límite independientes, balances completos de masa/energía y refinamiento adecuado. Preservar rollback de lote, cancelación, ramas, canales estables, replay portable y lectores anteriores. Continuar luego encendido, admisión/escape, pérdidas mecánicas, transmisión y coordinación ECU/TCU. + +Los parámetros siguen `unverified`. Ambos puertos deben tener el mismo dominio y material; los relajantes rechazan tránsito de equilibrio. La relajación finita en depósitos no resuelve conversión química ni residencia dentro de una tobera sin volumen. Faltan deslizamiento de fases, tensión negativa del líquido, barrera de nucleación, pulverización, gas portador y receptor con combustión. Los depósitos móviles están mezclados con velocidad global nula; las celdas del conducto son rígidas con un propietario. Use vapor ideal diluido lejos de la zona crítica, límites declarados de presión positiva y temperatura, entalpía latente positiva y volúmenes de coexistencia separados. La fracción inicial es una entrada de investigación explícita. El acuerdo numérico no acredita calibración medida ni aceptación real de Unity. + +[DEVELOPMENT_STATUS.es.md](DEVELOPMENT_STATUS.es.md) · [ROADMAP.es.md](ROADMAP.es.md) · [VALIDATION.es.md](VALIDATION.es.md) + +[Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) diff --git a/docs/NEXT_ENGINE_STEP.fr.md b/docs/NEXT_ENGINE_STEP.fr.md index 32c31f3..79cd21f 100644 --- a/docs/NEXT_ENGINE_STEP.fr.md +++ b/docs/NEXT_ENGINE_STEP.fr.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · **Français** · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -Le développement a repris à la demande du propriétaire le 2026-09-14. Les primitives gazeuses autonomes et le réseau Core compilé sont maintenant implémentés. Le point de contrôle d'intégration du 2026-09-22 ci-dessous met à jour le périmètre restant. La référence antérieure du cylindre fermé a passé la vérification managée sous Windows, macOS et Linux. Les preuves réelles d'Unity Editor et de Player sont encore en attente ; voir [la validation](VALIDATION.fr.md). +## Point de reprise -**Point de contrôle suivant le 2026-09-14 :** le [réseau gazeux Core](GAS_NETWORK.fr.md) implémente maintenant des nœuds gazeux à volume fixe, des restrictions de réservoir, des ouvertures commandées, des liaisons thermiques, des canaux, des registres, des dérivations et le rollback. La méthode de Heun bornée a des preuves analytiques et de raffinement pour un écoulement lisse, avec un couplage de paroi explicite et un limiteur conservatif près de l'équilibre. Ce n'est pas la méthode implicite proposée. +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. -**Intégration du 2026-09-22 :** le JSON/schéma, l'asset v3, la découverte et les exemples CLI/MCP, le rejeu portable et les vues schématiques Unity sont implémentés. Les lecteurs et fixtures v1/v2 d'avant le changement sont conservés. La vérification Unity Editor/Play reste en attente. L'[incrément de cylindre mobile](MOVING_CYLINDER.fr.md) suivant ajoute l'échange gazeux et le travail au vilebrequin via JSON, les assets et les agents. L'[incrément de calage angulaire](VALVE_TIMING.fr.md) suivant ajoute des profils explicites à 360/720 degrés, l'inversion et une résolution de lobe bornée via les mêmes interfaces. Le dernier point de contrôle moteur inclut la [combustion prémélangée](PREMIXED_COMBUSTION.fr.md), avec transport carburant/air/produits, réactifs limitants et bilan d'énergie chimique. La thermochimie détaillée, le dosage carburant et le contrôle d'allumage restent du travail moteur. +[Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) -Le réseau Core fournit maintenant des états explicites de masse gazeuse et d'énergie interne. Le composant de cylindre mobile les couple maintenant à des chambres dépendantes du vilebrequin, avec un travail de pression conservatif. Le cylindre fermé actuel dérive l'état gazeux de l'angle et d'une entropie initiale immuable, ce qui ne peut pas représenter l'échange gazeux ni le chauffage de paroi. Ce composant reste une référence analytique ; les chambres finies, les réservoirs, les cylindres à gaz, les orifices commandés et les liaisons gaz-thermique coexistent maintenant dans le graphe compilé. +`LiquidColumn` est une référence C# autonome pour un tube horizontal rigide à section, vitesse uniforme, masse volumique liquide et température constantes. Les pressions absolues aux ports sont prescrites pendant chaque intervalle. Les résistances linéaire et quadratique sont des entrées de recherche explicites. Ce n'est pas un composant du graphe ; les équations du réseau et de la tuyère restent inchangées. [Référence de quantité de mouvement à l'entrée liquide](LIQUID_COLUMN.fr.md) -Contrats d'incrément d'origine (utiliser le point de contrôle ci-dessus pour distinguer le travail Core achevé de l'intégration restante) : +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. [Quantité de mouvement d'une ligne finie de carburant liquide](FUEL_INERTIAL_PIPE.fr.md) -- Les restrictions gazeuses référencent des ID stables de nœuds gazeux ; un futur cylindre à gaz doit définir explicitement son extrémité de volume mobile. Un cylindre à gaz se connecte aussi à un nœud en rotation ; une liaison thermique connecte un volume gazeux fini à un nœud thermique. Prendre en charge des réseaux uniquement gazeux sans exiger un nœud mécanique fictif. -- Suivre la masse et l'énergie interne indépendamment, avec une validation d'état fini positif. Transférer ensemble la masse et l'enthalpie amont. Suivre l'échange avec le réservoir dans des registres externes de masse et d'énergie ; les transferts internes doivent s'annuler. Restreindre les gaz connectés à une constante de gaz et un gamma identiques jusqu'à l'implémentation du mélange de composition/espèces. -- Exposer des canaux de débit massique signé, d'état gazeux, de flux de chaleur et de résidu de masse. L'ouverture d'orifice utilise une fraction sans dimension explicite dans `[0,1]`, avec la même validation pour les entrées directes et planifiées. -- Étudier une résolution de transfert implicite par paires bornée, encadrée par l'état d'égale pression de la paire connectée. Coupler le travail de pression du cylindre à gaz via la résolution de vilebrequin existante. Une méthode scindée avec un écoulement d'Euler arrière serait du premier ordre pour l'échange gazeux ; la conservation seule ne prouve pas la précision. Valider cette méthode proposée avant de l'adopter. -- Conserver le rollback complet de lot, les corrections dans les hachages d'état et les dérivations, l'annulation, les modèles compilés immuables, et zéro allocation pendant un pas réussi. Un échec du solveur doit renvoyer une orientation actionnable. -- Étendre ensemble les schémas JSON, les assets portables, la découverte des capacités, les exemples, les rapports et les vues Unity. Si une nouvelle version d'asset est requise, conserver les lecteurs v1/v2 et tester de vraies fixtures d'avant le changement. Conserver les empreintes de modèle existantes lorsque la sémantique du solveur reste inchangée. +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) -Les preuves requises comprennent l'écoulement de tuyère sonique et sous-critique, la vidange adiabatique analytique d'un réservoir, l'enthalpie de remplissage de réservoir, la conservation masse/énergie d'un réseau fermé, l'égalisation de pression, l'échange thermique gaz/paroi, le raffinement de pas, l'écoulement inverse, l'isolement vanne fermée, le travail au vilebrequin couplé, le rejet de topologie/d'entrée mal formée, la récupération d'un lot échoué, la dérivation, et le rejeu complet CLI/MCP/asset. +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) -Points de départ de recherche : [le blocage de débit massique NASA](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) pour l'écoulement de tuyère compressible idéale, et [les interactions de réacteurs Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) pour les notions de frontière de volume de contrôle et de paroi. Ces références ne sont ni des dépendances d'exécution ni une validation du solveur proposé de Power!. +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. [Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) -Un asset v2 de cylindre authentique d'avant le changement est maintenant conservé dans les [fixtures de compatibilité](../tests/Power.Tests/Fixtures/README.md), avec son commit source et son SHA-256. Les tests actifs vérifient son empreinte et son rejeu après mise à niveau vers v3 ; ne le régénérez pas avec le nouvel encodeur. +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. [Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) -Le comportement moteur complet, la combustion/thermochimie prédictive, la dynamique mécanique de distribution, les transmissions, les contrôles et les échantillons de véhicule calibrés restent ouverts. Conservez toutes les frontières de preuve des échantillons. Les prototypes natifs archivés ont été portés vers **Zig** sous [la frontière native](NATIVE_ZIG.fr.md) ; l'implémentation C#/Unity active reste en place. +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. [Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) + +## Prochaine étape + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) + +## Acceptation + +Exiger références analytiques ou limites indépendantes, bilans complets masse/énergie et raffinement du pas adapté. Préserver retour arrière complet, annulation, branches, canaux stables, rejeu portable et anciens lecteurs. Continuer ensuite allumage, admission/échappement, pertes mécaniques, transmission et coordination ECU/TCU. + +Les paramètres restent `unverified`. Les deux ports doivent avoir le même domaine et matériau ; les ports relaxants rejettent le transit à l’équilibre. Une relaxation finie dans les réservoirs ne résout ni conversion chimique ni séjour dans une buse de volume nul. Le modèle omet glissement, tension liquide négative, barrière de nucléation, spray, gaz porteur et récepteur en combustion. Les réservoirs mobiles sont mélangés sans vitesse moyenne ; les cellules du conduit restent rigides avec un propriétaire unique. Utiliser une vapeur idéale diluée loin du critique, dans les bornes déclarées de pression positive et température, avec enthalpie latente positive et volumes de coexistence distincts. Le titre initial est une entrée de recherche explicite. L’accord numérique n’établit ni étalonnage mesuré ni acceptation Unity réelle. + +[DEVELOPMENT_STATUS.fr.md](DEVELOPMENT_STATUS.fr.md) · [ROADMAP.fr.md](ROADMAP.fr.md) · [VALIDATION.fr.md](VALIDATION.fr.md) + +[Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) diff --git a/docs/NEXT_ENGINE_STEP.it.md b/docs/NEXT_ENGINE_STEP.it.md index 05db4d2..13fad21 100644 --- a/docs/NEXT_ENGINE_STEP.it.md +++ b/docs/NEXT_ENGINE_STEP.it.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · **Italiano** · [Português](NEXT_ENGINE_STEP.pt-BR.md) -Lo sviluppo è ripreso su richiesta del proprietario il 2026-09-14. I primitivi di gas autonomi e la rete Core compilata sono ora implementati. Il punto di controllo di integrazione del 2026-09-22 qui sotto aggiorna l'ambito restante. La baseline precedente del cilindro chiuso ha superato la verifica gestita su Windows, macOS e Linux. L'evidenza reale di Unity Editor e Player è ancora in sospeso; vedi la [validazione](VALIDATION.it.md). +## Punto di ripresa -**Punto di controllo successivo del 2026-09-14:** la [rete gas del Core](GAS_NETWORK.it.md) ora implementa nodi di gas a volume fisso, restrizioni di serbatoio, aperture controllate, legami termici, canali, registri, fork e rollback. Il metodo di Heun limitato ha evidenza analitica e di raffinamento per il flusso regolare, con accoppiamento di parete esplicito e un limitatore conservativo vicino all'equilibrio. Non è il metodo implicito proposto. +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. -**Integrazione del 2026-09-22:** sono implementati JSON/schema, asset v3, scoperta ed esempi CLI/MCP, replay portabile e viste schematiche Unity. I lettori e le fixture v1/v2 precedenti alla modifica sono conservati. La verifica Unity Editor/Play resta in sospeso. L'incremento successivo del [cilindro mobile](MOVING_CYLINDER.it.md) aggiunge scambio gas e lavoro all'albero a gomiti attraverso JSON, asset e agenti. L'incremento successivo della [fasatura sull'angolo di manovella](VALVE_TIMING.it.md) aggiunge profili espliciti a 360/720 gradi, l'inversione e la risoluzione limitata del lobo attraverso le stesse interfacce. L'ultimo punto di controllo del motore include la [combustione premiscelata](PREMIXED_COMBUSTION.it.md), con carburante/aria/prodotti trasportati, reagenti limitanti e contabilità dell'energia chimica. Termochimica dettagliata, dosatura del carburante e controllo dell'accensione restano lavoro sul motore. +[Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) -La rete Core ora fornisce stati espliciti di massa del gas e di energia interna. Il componente del cilindro mobile ora li accoppia a camere dipendenti dall'albero a gomiti con lavoro di pressione conservativo. Il cilindro chiuso attuale ricava lo stato del gas dall'angolo e dall'entropia iniziale immutabile, e non può rappresentare lo scambio gas né il riscaldamento di parete. Quel componente resta un riferimento analitico; camere finite, serbatoi, cilindri a gas, orifizi controllati e legami gas-termici ora coesistono nel grafo compilato. +`LiquidColumn` è un riferimento C# autonomo per tubo orizzontale rigido con sezione, velocità uniforme, densità liquida e temperatura costanti. Le pressioni assolute sono prescritte nell'intervallo. Resistenze lineari e quadratiche sono input di ricerca espliciti. Non è un componente del grafo e non cambia rete o ugello. [Riferimento della quantità di moto all'ingresso liquido](LIQUID_COLUMN.it.md) -Contratti dell'incremento originale (usa il punto di controllo qui sopra per distinguere il lavoro Core completato dall'integrazione restante): +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. [Quantità di moto della linea finita di carburante liquido](FUEL_INERTIAL_PIPE.it.md) -- Le restrizioni di gas riferiscono ID stabili di nodi gas; un futuro cilindro a gas deve definire in modo esplicito il suo estremo di volume mobile. Un cilindro a gas si collega anche a un nodo rotazionale; un legame termico collega un volume di gas finito a un nodo termico. Supporta reti solo gas senza richiedere un nodo meccanico fittizio. -- Traccia massa ed energia interna in modo indipendente, con validazione di stato positivo e finito. Trasferisci insieme massa ed entalpia a monte. Traccia lo scambio con il serbatoio nei registri esterni di massa e di energia; i trasferimenti interni devono annullarsi. Limita i gas collegati alla stessa costante del gas e allo stesso gamma finché non è implementata la miscelazione di composizione/specie. -- Esponi canali di portata massica con segno, stato del gas, flusso di calore e residuo di massa. L'apertura dell'orifizio usa una frazione adimensionale esplicita entro `[0,1]`, con la stessa validazione per input diretti e programmati. -- Indaga una soluzione di trasferimento implicita a coppie limitata, racchiusa dallo stato a pressioni uguali della coppia collegata. Accoppia il lavoro di pressione del cilindro a gas attraverso la soluzione di manovella esistente. Un metodo suddiviso con flusso di Eulero all'indietro sarebbe del primo ordine per lo scambio gas; la sola conservazione non dimostra l'accuratezza. Valida questo metodo proposto prima di adottarlo. -- Conserva il rollback completo dei batch, le correzioni negli hash di stato e nei fork, l'annullamento, i modelli compilati immutabili e zero allocazioni durante l'avanzamento riuscito. Un fallimento del solver deve restituire una guida azionabile. -- Estendi insieme schemi JSON, asset portabili, scoperta delle capacità, esempi, report e viste Unity. Se serve una nuova versione di asset, conserva i lettori v1/v2 e prova fixture reali precedenti alla modifica. Conserva le impronte dei modelli esistenti dove la semantica del solver resta invariata. +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) -L'evidenza richiesta include flusso d'ugello bloccato e subcritico, svuotamento adiabatico analitico di un serbatoio, entalpia di riempimento del serbatoio, conservazione di massa/energia in rete chiusa, equalizzazione della pressione, scambio termico gas/parete, raffinamento del passo, flusso inverso, isolamento a valvola chiusa, lavoro accoppiato all'albero a gomiti, rifiuto di topologia/input malformati, recupero di un batch fallito, ramificazione e replay completo CLI/MCP/asset. +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) -Punti di partenza della ricerca: [blocco del flusso di massa NASA](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) per il flusso ideale in un ugello comprimibile, e [interazioni dei reattori Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) per i concetti di confine del volume di controllo e di parete. Questi riferimenti non sono dipendenze di runtime né una validazione del solver proposto da Power!. +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. [Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) -Un asset autentico v2 del cilindro precedente alla modifica è ora conservato nelle [fixture di compatibilità](../tests/Power.Tests/Fixtures/README.md), con il commit sorgente e lo SHA-256. I test attivi ne verificano l'impronta e il replay dopo l'aggiornamento a v3; non rigenerarlo con il nuovo encoder. +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. [Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) -Il comportamento completo del motore, la combustione/termochimica predittiva, la dinamica meccanica della distribuzione, le trasmissioni, i controlli e i campioni di veicolo calibrati restano aperti. Conserva tutti i confini di evidenza dei campioni. I prototipi nativi archiviati sono stati portati in **Zig** sotto [il confine nativo](NATIVE_ZIG.it.md); l'implementazione attiva C#/Unity resta al suo posto. +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. [Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) + +## Prossimo incremento + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) + +## Accettazione + +Richiedere riferimenti analitici/limite indipendenti, bilanci completi massa/energia e raffinamento appropriato. Conservare rollback del lotto, annullamento, rami, canali stabili, replay portabile e vecchi lettori. Continuare poi accensione, aspirazione/scarico, perdite meccaniche, trasmissione e coordinamento ECU/TCU. + +I parametri restano `unverified`. Entrambe le porte richiedono stesso dominio e materiale; quelle rilassanti rifiutano il transito di equilibrio. Il rilassamento finito nei serbatoi non risolve chimica o permanenza dentro un ugello senza volume. Mancano scorrimento delle fasi, tensione liquida negativa, barriera di nucleazione, spray, gas vettore e ricevitore in combustione. I serbatoi mobili sono miscelati con velocità media nulla; le celle interne restano rigide con un proprietario. Usare vapore ideale diluito lontano dal critico, limiti dichiarati di pressione positiva e temperatura, entalpia latente positiva e volumi di coesistenza separati. La frazione iniziale è un ingresso di ricerca esplicito. L’accordo numerico non attesta calibrazione misurata né accettazione Unity reale. + +[DEVELOPMENT_STATUS.it.md](DEVELOPMENT_STATUS.it.md) · [ROADMAP.it.md](ROADMAP.it.md) · [VALIDATION.it.md](VALIDATION.it.md) + +[Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) diff --git a/docs/NEXT_ENGINE_STEP.ja.md b/docs/NEXT_ENGINE_STEP.ja.md index 420f489..3acc23c 100644 --- a/docs/NEXT_ENGINE_STEP.ja.md +++ b/docs/NEXT_ENGINE_STEP.ja.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · **日本語** · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -開発は、オーナーの依頼により 2026-09-14 に再開しました。スタンドアロンのガス原始素と、コンパイル済みのコアネットワークは、実装済みです。下の 2026-09-22 統合チェックポイントが、残る範囲を更新します。それに先立つ密閉気筒のベースラインは、Windows、macOS、Linux でマネージド検証に合格しています。実際の Unity Editor と Player のエビデンスは、まだ未了です。[検証](VALIDATION.ja.md) を参照してください。 +## 再開位置 -**2026-09-14 の後続チェックポイント:** [コアのガスネットワーク](GAS_NETWORK.ja.md) は、固定容積のガスノード、リザーバー絞り、制御された開度、熱リンク、チャンネル、台帳、分岐、ロールバックを実装しています。有界な Heun 法には、滑らかな流れについての解析エビデンスと精細化エビデンスがあり、明示的な壁面結合と、保存的な平衡近傍リミッターがあります。これは、提案されていた陰的手法ではありません。 +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 -**2026-09-22 の統合:** JSON/スキーマ、アセット v3、CLI/MCP の発見と例、移植可能なリプレイ、Unity の模式図ビューは実装済みです。変更前の v1/v2 リーダーとフィクスチャは保持されます。Unity Editor/Play の検証は未了のままです。後続の [可動気筒の増分](MOVING_CYLINDER.ja.md) は、JSON、アセット、エージェントを通じてガス交換とクランク仕事を追加します。後続の [クランク角タイミングの増分](VALVE_TIMING.ja.md) は、同じインターフェースを通じて、明示的な 360/720 度プロファイル、逆転、有界なローブ分解能を追加します。最新のエンジンチェックポイントには [予混合燃焼](PREMIXED_COMBUSTION.ja.md) が含まれ、輸送される燃料/空気/生成物、制限反応物、化学エネルギーの収支があります。詳細な熱化学、燃料計量、点火制御は、エンジン作業として残っています。 +[軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) -コアネットワークは、明示的なガス質量と内部エネルギーの状態を提供するようになりました。可動気筒コンポーネントは、それらをクランク依存の室へ、保存的な圧力仕事で結合します。現在の密閉気筒は、角度と不変の初期エントロピーからガス状態を導きます。これはガス交換や壁面加熱を表せません。そのコンポーネントは解析ベンチマークのままです。有限の室、リザーバー、ガス気筒、制御されたオリフィス、ガスから熱へのリンクは、コンパイル済みグラフの中で共存するようになりました。 +`LiquidColumn` は水平剛体管の独立 C# 参照です。断面積、均一速度、液体密度、温度を一定とし、各局所区間の絶対ポート圧力を指定します。線形・二次抵抗は明示した研究入力です。グラフコンポーネントではなく、燃料ネットワークやノズル方程式を変更しません。 [液体入口の運動量参照](LIQUID_COLUMN.ja.md) -当初の増分契約(完了したコア作業と、残る統合を区別するには、上のチェックポイントを使ってください): +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 [有限液体燃料管路の運動量](FUEL_INERTIAL_PIPE.ja.md) -- ガス絞りは、安定したガスノード ID を参照します。将来のガス気筒は、可動容積の端点を明示的に定義する必要があります。ガス気筒は回転ノードにも接続します。熱リンクは、有限ガス容積を熱ノードへ接続します。ダミーの機械ノードを要求せず、ガスだけのネットワークをサポートします。 -- 質量と内部エネルギーを独立に追跡し、正で有限な状態を検証します。質量と上流エンタルピーを一緒に輸送します。リザーバー交換は、外部の質量台帳とエネルギー台帳で追跡します。内部輸送は相殺されなければなりません。組成/化学種の混合が実装されるまで、接続されるガスは同一の気体定数と gamma に制限します。 -- 符号付き質量流量、ガス状態、熱流、質量残差のチャンネルを公開します。オリフィス開度は、`[0,1]` の中の明示的な無次元割合を使い、直接入力と予定入力で同じ検証を行います。 -- 有界なペアごとの陰的輸送求解を調べます。接続ペアの等圧状態で括ります。ガス気筒の圧力仕事は、既存のクランク求解を通じて結合します。流れに後退 Euler を使う分割法は、ガス交換について 1 次になります。保存だけでは精度を証明できません。採用する前に、この提案手法を検証します。 -- 完全なバッチロールバック、状態ハッシュと分岐における補正、キャンセル、不変のコンパイル済みモデル、成功するステップ中のゼロ割り当てを保ちます。ソルバーの失敗は、対処可能な案内を返さなければなりません。 -- JSON スキーマ、移植可能なアセット、機能の発見、例、レポート、Unity ビューを一緒に拡張します。新しいアセットバージョンが必要な場合は、v1/v2 リーダーを残し、変更前の本物のフィクスチャをテストします。ソルバーの意味論が変わらないところでは、既存のモデルフィンガープリントを保ちます。 +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) -必要なエビデンスには、チョークおよび亜臨界のノズル流、解析的な断熱容器のブローダウン、リザーバー充填のエンタルピー、閉じたネットワークの質量/エネルギー保存、圧力の均等化、ガス/壁面の熱交換、ステップ精細化、逆流、閉弁の隔離、連成したクランク仕事、不正なトポロジー/入力の拒否、失敗バッチの回復、分岐、完全な CLI/MCP/アセットのリプレイが含まれます。 +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) -研究の出発点: 理想的な圧縮性ノズル流については [NASA の質量流量チョーキング](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html)、制御体積の境界と壁の概念については [Cantera のリアクター相互作用](https://www.cantera.org/stable/reference/reactors/interactions.html)。これらの参照は、ランタイム依存ではなく、Power! が提案するソルバーの検証でもありません。 +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 [相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) -変更前の正規な気筒 v2 アセットは、[互換フィクスチャ](../tests/Power.Tests/Fixtures/README.md) に保持されています。ソースコミットと SHA-256 付きです。現行テストは、v3 へアップグレードしたあとのフィンガープリントとリプレイを検証します。新しいエンコーダーで再生成しないでください。 +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 [燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) -完全なエンジン挙動、予測的な燃焼/熱化学、機械式動弁系の動特性、トランスミッション、制御、キャリブレーション済み車両サンプルは、まだ開いています。サンプルのエビデンス境界はすべて保ってください。保管されたネイティブプロトタイプは、[ネイティブ境界](NATIVE_ZIG.ja.md) の下で **Zig** へ移植済みです。現行の C#/Unity 実装は、そのまま残ります。 +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 [有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) + +## 次の開発 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) + +## 受け入れ + +新方程式に適した独立解析/極限参照、完全な質量/エネルギー収支と刻み幅収束を求めます。全バッチのロールバック、取消、分岐、安定チャンネル、移植再生と旧リーダーを維持します。その後、点火、吸排気、機械損失、変速機駆動と ECU/TCU 協調を進めます。 + +パラメータは `unverified` です。両ポートの領域と材料は同一とし、緩和ポートでは平衡通過を拒否します。貯槽の有限緩和は、ゼロ容積ノズル内部の化学変化や滞留時間を解像しません。相間滑り、液体負圧張力、核生成障壁則、噴霧、搬送ガス、燃焼受入室は含みません。移動貯槽は一様混合で平均速度ゼロ、管路内セルは剛体で所有者は一つです。臨界挙動から離れた希薄理想蒸気、宣言された正圧・温度範囲、正の潜熱エンタルピー、分離した共存比体積が必要です。初期蒸気分率は明示的な研究入力です。数値の一致は実測校正や実 Unity 検収を証明しません。 + +[DEVELOPMENT_STATUS.ja.md](DEVELOPMENT_STATUS.ja.md) · [ROADMAP.ja.md](ROADMAP.ja.md) · [VALIDATION.ja.md](VALIDATION.ja.md) + +[蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) diff --git a/docs/NEXT_ENGINE_STEP.ko.md b/docs/NEXT_ENGINE_STEP.ko.md index b56d8f7..5b6bc93 100644 --- a/docs/NEXT_ENGINE_STEP.ko.md +++ b/docs/NEXT_ENGINE_STEP.ko.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · **한국어** · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -개발은 소유자의 요청으로 2026-09-14에 재개되었습니다. 독립 가스 원시 요소와 컴파일된 Core 네트워크는 이제 구현되어 있습니다. 아래 2026-09-22 통합 체크포인트가 남은 범위를 갱신합니다. 앞선 밀폐 실린더 기준선은 Windows, macOS, Linux에서 관리형 검증을 통과했습니다. 실제 Unity 편집기와 Player 증거는 아직 남아 있습니다. [검증](VALIDATION.ko.md)을 참고하세요. +## 재개 지점 -**2026-09-14의 후속 체크포인트:** [Core 가스 네트워크](GAS_NETWORK.ko.md)는 이제 고정 체적 가스 노드, 저장소 유동 제한, 제어되는 개방, 열 링크, 채널, 장부, 분기, 롤백을 구현합니다. 유계 Heun 방법은 매끄러운 흐름에 대한 해석적 증거와 세분화 증거를 갖추고, 명시적 벽 결합과 보존적인 평형 근처 제한기를 둡니다. 이것은 제안된 암시적 방법이 아닙니다. +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. -**2026-09-22 통합:** JSON/스키마, 자산 v3, CLI/MCP 탐색과 예제, 이식 가능한 리플레이, Unity 개략 뷰가 구현되었습니다. 변경 전 v1/v2 판독기와 픽스처는 유지됩니다. Unity 편집기/Play 검증은 아직 남아 있습니다. 이후의 [가동 실린더 증분](MOVING_CYLINDER.ko.md)은 JSON, 자산, 에이전트를 통해 가스 교환과 크랭크 일을 추가합니다. 이후의 [크랭크각 타이밍 증분](VALVE_TIMING.ko.md)은 같은 인터페이스를 통해 명시적 360/720도 프로파일, 역전, 유계 로브 분해능을 추가합니다. 최신 엔진 체크포인트는 [예혼합 연소](PREMIXED_COMBUSTION.ko.md)를 포함합니다. 수송되는 연료/공기/생성물, 제한 반응물, 화학 에너지 수지가 있습니다. 상세 열화학, 연료 계량, 점화 제어는 엔진 작업으로 남아 있습니다. +[축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) -Core 네트워크는 이제 명시적 가스 질량과 내부 에너지 상태를 제공합니다. 가동 실린더 컴포넌트는 이제 그것들을 보존적 압력 일과 함께 크랭크 의존 챔버에 결합합니다. 현재의 밀폐 실린더는 각도와 불변 초기 엔트로피에서 가스 상태를 유도하므로, 가스 교환이나 벽 가열을 나타낼 수 없습니다. 그 컴포넌트는 해석적 벤치마크로 남습니다. 유한 챔버, 저장소, 가스 실린더, 제어되는 오리피스, 가스-열 링크는 이제 컴파일된 그래프 안에 함께 있습니다. +`LiquidColumn`은 단면적, 균일 속도, 액체 밀도와 온도가 일정한 수평 강체 관의 독립 C# 기준입니다. 각 국소 구간의 절대 포트 압력이 주어집니다. 선형·이차 저항은 명시적 연구 입력입니다. 그래프 컴포넌트가 아니며 기존 연료 네트워크와 노즐 방정식을 바꾸지 않습니다. [액체 입구 운동량 기준 모델](LIQUID_COLUMN.ko.md) -원래 증분 계약(완료된 Core 작업과 남은 통합을 구분하려면 위의 체크포인트를 사용하세요): +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. [유한 액체 연료 관로 운동량](FUEL_INERTIAL_PIPE.ko.md) -- 가스 유동 제한은 안정적인 가스 노드 ID를 참조합니다. 미래의 가스 실린더는 움직이는 체적 끝점을 명시적으로 정의해야 합니다. 가스 실린더는 회전 노드에도 연결됩니다. 열 링크는 유한 가스 체적을 열 노드에 연결합니다. 더미 기계 노드를 요구하지 않는 가스 전용 네트워크를 지원합니다. -- 질량과 내부 에너지를 독립적으로 추적하고, 양수인 유한 상태를 검증합니다. 질량과 상류 엔탈피를 함께 전달합니다. 저장소 교환은 외부 질량과 에너지 장부에서 추적합니다. 내부 전달은 상쇄되어야 합니다. 조성/화학종 혼합이 구현될 때까지, 연결된 가스는 같은 기체 상수와 gamma로 제한합니다. -- 부호 있는 질량 흐름, 가스 상태, 열 흐름, 질량 잔차 채널을 노출합니다. 오리피스 개방은 `[0,1]` 안의 명시적 무차원 분율을 사용하며, 직접 입력과 예약 입력에 같은 검증을 적용합니다. -- 연결된 쌍의 등압 상태로 구간을 잡는, 유계 쌍별 암시적 전달 해석을 조사합니다. 가스 실린더 압력 일은 기존 크랭크 해석을 통해 결합합니다. 후방 오일러 흐름을 쓰는 분할 방법은 가스 교환에 대해 1차가 됩니다. 보존만으로 정확성이 증명되지는 않습니다. 이 제안된 방법을 채택하기 전에 검증합니다. -- 완전한 배치 롤백, 상태 해시와 분기의 보정항, 취소, 불변 컴파일 모델, 성공적인 스텝 동안의 할당 0을 유지합니다. 솔버 실패는 실행 가능한 안내를 반환해야 합니다. -- JSON 스키마, 이식 가능한 자산, 기능 탐색, 예제, 보고서, Unity 뷰를 함께 확장합니다. 새 자산 버전이 필요하면 v1/v2 판독기를 유지하고 실제 변경 전 픽스처를 테스트합니다. 솔버 의미론이 변하지 않는 곳에서는 기존 모델 지문을 유지합니다. +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) -필요한 증거에는 초킹 및 아임계 노즐 흐름, 해석적 단열 용기 블로다운, 저장소 충전 엔탈피, 닫힌 네트워크의 질량/에너지 보존, 압력 균등화, 가스/벽 열교환, 스텝 세분화, 역류, 닫힌 밸브 격리, 결합된 크랭크 일, 잘못된 토폴로지/입력 거부, 실패 배치 복구, 분기, 완전한 CLI/MCP/자산 리플레이가 포함됩니다. +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) -연구 출발점: 이상 압축성 노즐 흐름은 [NASA 질량 흐름 초킹](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html), 제어 체적 경계와 벽 개념은 [Cantera 반응기 상호 작용](https://www.cantera.org/stable/reference/reactors/interactions.html)입니다. 이 참고 자료는 런타임 의존성이 아니며, Power!가 제안한 솔버의 검증도 아닙니다. +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. [상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) -진본 변경 전 실린더 v2 자산은 이제 [호환 픽스처](../tests/Power.Tests/Fixtures/README.md)에 소스 커밋과 SHA-256과 함께 유지됩니다. 활성 테스트는 v3로 올린 뒤의 지문과 리플레이를 검증합니다. 새 인코더로 그것을 다시 생성하지 마세요. +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. [연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) -완전한 엔진 동작, 예측 연소/열화학, 기계식 밸브 트레인 동역학, 변속기, 제어, 교정된 차량 샘플은 열려 있습니다. 모든 샘플 증거 경계를 유지하세요. 보관된 네이티브 프로토타입은 [네이티브 경계](NATIVE_ZIG.ko.md) 아래에서 **Zig**로 포트되었습니다. 활성 C#/Unity 구현은 그대로 있습니다. +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. [유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) + +## 다음 개발 + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) + +## 수용 + +새 방정식에 맞는 독립 해석/극한 기준, 완전한 질량/에너지 수지와 시간 간격 수렴을 요구합니다. 배치 롤백, 취소, 분기, 안정 채널, 이식 재현과 이전 판독기를 보존합니다. 이후 점화, 흡기/배기, 기계 손실, 변속기 구동과 ECU/TCU 협조를 계속합니다. + +매개변수는 `unverified`입니다. 양쪽 포트는 동일한 도메인과 재료를 사용하며 완화 포트는 평형 통과를 거부합니다. 저장조의 유한 완화는 부피가 없는 노즐 내부의 화학 변화나 체류 시간을 해상하지 않습니다. 상간 미끄럼, 액체 음압 장력, 핵생성 장벽 법칙, 분무, 운반 가스와 연소 수신부는 없습니다. 이동 저장조는 균일 혼합 및 평균 속도 영이며 덕트 내부 셀은 강체이고 소유자는 하나입니다. 임계 거동에서 벗어난 희박 이상 증기, 선언된 양압·온도 범위, 양의 잠열 엔탈피와 분리된 공존 비체적이 필요합니다. 초기 증기 분율은 명시적인 연구 입력입니다. 수치 일치는 실측 보정이나 실제 Unity 인수를 입증하지 않습니다. + +[DEVELOPMENT_STATUS.ko.md](DEVELOPMENT_STATUS.ko.md) · [ROADMAP.ko.md](ROADMAP.ko.md) · [VALIDATION.ko.md](VALIDATION.ko.md) + +[증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) diff --git a/docs/NEXT_ENGINE_STEP.md b/docs/NEXT_ENGINE_STEP.md index f377044..b1549ba 100644 --- a/docs/NEXT_ENGINE_STEP.md +++ b/docs/NEXT_ENGINE_STEP.md @@ -2,41 +2,38 @@ **English** · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -Development resumed at the owner's request on 2026-09-14. Standalone gas primitives and -the compiled Core network are now implemented. The 2026-09-22 integration checkpoint below updates the remaining scope. -The preceding sealed-cylinder baseline passed managed verification on Windows, macOS and -Linux. Actual Unity Editor and Player evidence is still pending; see [validation](VALIDATION.md). +## Resume point -**Subsequent checkpoint on 2026-09-14:** the [Core gas network](GAS_NETWORK.md) now -implements fixed-volume gas nodes, reservoir restrictions, controlled openings, thermal -links, channels, ledgers, forks and rollback. The bounded Heun method has analytic and -refinement evidence for smooth flow, with explicit wall coupling and a conservative -near-equilibrium limiter. It is not the proposed implicit method. +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. -**2026-09-22 integration:** JSON/schema, asset v3, CLI/MCP discovery and examples, -portable replay and Unity schematic views are implemented. Pre-change v1/v2 readers -and fixtures are retained. Unity Editor/Play verification remains pending. The subsequent [moving-cylinder increment](MOVING_CYLINDER.md) adds gas exchange and -crank work through JSON, assets and agents. The subsequent [crank-angle timing increment](VALVE_TIMING.md) adds explicit 360/720-degree -profiles, reversal and bounded lobe resolution through the same interfaces. The latest -engine checkpoint includes [premixed combustion](PREMIXED_COMBUSTION.md), with -transported fuel/air/products, limiting reactants and chemical-energy accounting. Detailed -thermochemistry, fuel metering and ignition control remain engine work. +[Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) -The Core network now provides explicit gas mass and internal-energy states. The moving-cylinder component now couples them to crank-dependent chambers with conservative pressure work. The present sealed cylinder derives gas state from angle and immutable initial entropy, which cannot represent gas exchange or wall heating. That component remains an analytic benchmark; finite chambers, reservoirs, gas cylinders, controlled orifices and gas-to-thermal links now coexist in the compiled graph. +`LiquidColumn` is a standalone C# reference for a horizontal rigid pipe with constant area, uniform velocity, constant liquid density and constant temperature. Absolute port pressures are prescribed during each local interval. Linear and quadratic resistance coefficients are explicit research inputs. It is not a graph component, and it does not change the existing fuel network or nozzle equations. [Liquid inlet momentum reference](LIQUID_COLUMN.md) -Original increment contracts (use the checkpoint above to distinguish completed Core work from remaining integration): +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. [Finite liquid fuel line momentum](FUEL_INERTIAL_PIPE.md) -- Gas restrictions reference stable gas node IDs; a future gas cylinder must define its moving-volume endpoint explicitly. A gas cylinder also connects to a rotational node; a heat link connects a finite gas volume to a thermal node. Support gas-only networks without requiring a dummy mechanical node. -- Track mass and internal energy independently, with positive finite state validation. Transfer mass and upstream enthalpy together. Track reservoir exchange in external mass and energy ledgers; internal transfers must cancel. Restrict connected gases to identical gas constant and gamma until composition/species mixing is implemented. -- Expose signed mass flow, gas state, heat flow, and mass residual channels. Orifice opening uses an explicit dimensionless fraction within `[0,1]`, with the same validation for direct and scheduled inputs. -- Investigate a bounded pairwise implicit transfer solve, bracketed by the connected pair's equal-pressure state. Couple gas-cylinder pressure work through the existing crank solve. A split method with backward-Euler flow would be first order for gas exchange; conservation alone does not prove accuracy. Validate this proposed method before adopting it. -- Preserve complete batch rollback, corrections in state hashes and forks, cancellation, immutable compiled models, and zero allocations during successful stepping. Solver failure must return actionable guidance. -- Extend JSON schemas, portable assets, capability discovery, examples, reports and Unity views together. If a new asset version is required, retain v1/v2 readers and test real pre-change fixtures. Preserve existing model fingerprints where solver semantics remain unchanged. +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) -Required evidence includes choked and subcritical nozzle flow, analytic adiabatic vessel blowdown, reservoir filling enthalpy, closed-network mass/energy conservation, pressure equalization, gas/wall heat exchange, step refinement, reverse flow, closed-valve isolation, coupled crank work, malformed topology/input rejection, failed-batch recovery, branching, and complete CLI/MCP/asset replay. +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) -Research starting points: [NASA mass-flow choking](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) for ideal compressible nozzle flow, and [Cantera reactor interactions](https://www.cantera.org/stable/reference/reactors/interactions.html) for control-volume boundary and wall concepts. These references are not runtime dependencies or validation of Power!'s proposed solver. +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. [Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) -An authentic pre-change cylinder v2 asset is now retained in the [compatibility fixtures](../tests/Power.Tests/Fixtures/README.md), with its source commit and SHA-256. The active tests verify its fingerprint and replay after upgrading to v3; do not regenerate it with the new encoder. +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. [Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) -Complete engine behavior, predictive combustion/thermochemistry, mechanical valve-train dynamics, transmissions, controls and calibrated vehicle samples remain open. Preserve all sample evidence boundaries. The archived native prototypes have been ported to **Zig** under [the native boundary](NATIVE_ZIG.md); the active C#/Unity implementation remains in place. +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. [Finite-rate fuel phase relaxation](RELAXING_FUEL.md) + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) + +## Next increment + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) + +## Acceptance + +Require independent analytic or limiting references, full mass/energy ledgers and step refinement appropriate to the new equations. Preserve batch rollback, cancellation, forks, stable channels, portable replay and prior asset readers. Then continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. + +Parameters remain `unverified`. Both nozzle ports must use the same domain and material; relaxing ports reject equilibrium transit. Finite bulk phase relaxation does not resolve chemical conversion or residence inside a zero-volume nozzle. The model has no phase slip, liquid tension, nucleation-barrier law, spray, carrier gas or fired receiver. Moving reservoirs are mixed with zero bulk velocity; internal duct cells remain rigid and have one owner. Use dilute ideal vapor away from critical behavior, declared positive-pressure/temperature bounds, positive latent enthalpy and separated coexistence volumes. Initial vapor quality is explicit research input. Numerical agreement does not establish measured calibration or actual Unity acceptance. + +[DEVELOPMENT_STATUS.md](DEVELOPMENT_STATUS.md) · [ROADMAP.md](ROADMAP.md) · [VALIDATION.md](VALIDATION.md) + +[Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) diff --git a/docs/NEXT_ENGINE_STEP.pt-BR.md b/docs/NEXT_ENGINE_STEP.pt-BR.md index 940c27d..1783c0d 100644 --- a/docs/NEXT_ENGINE_STEP.pt-BR.md +++ b/docs/NEXT_ENGINE_STEP.pt-BR.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · **Português** -O desenvolvimento foi retomado a pedido do proprietário em 2026-09-14. Os primitivos isolados de gás e a rede compilada do Core agora estão implementados. O ponto de controle de integração de 2026-09-22 abaixo atualiza o escopo restante. A baseline anterior do cilindro fechado passou na verificação gerenciada no Windows, no macOS e no Linux. A evidência real de Unity Editor e Player continua pendente; veja [validação](VALIDATION.pt-BR.md). +## Ponto de retomada -**Ponto de controle seguinte em 2026-09-14:** a [rede de gás do Core](GAS_NETWORK.pt-BR.md) agora implementa nós de gás de volume fixo, restrições de reservatório, aberturas controladas, elos térmicos, canais, balanços, ramificações e rollback. O método de Heun limitado tem evidência analítica e de refinamento para escoamento suave, com acoplamento explícito de parede e um limitador conservativo perto do equilíbrio. Não é o método implícito proposto. +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. -**Integração de 2026-09-22:** JSON/esquema, asset v3, descoberta e exemplos de CLI/MCP, replay portátil e vistas esquemáticas do Unity estão implementados. Os leitores e as fixtures v1/v2 anteriores à mudança são conservados. A verificação de Unity Editor/Play continua pendente. O [incremento seguinte do cilindro móvel](MOVING_CYLINDER.pt-BR.md) acrescenta troca de gás e trabalho de virabrequim por JSON, assets e agentes. O [incremento seguinte de temporização por ângulo do virabrequim](VALVE_TIMING.pt-BR.md) acrescenta perfis explícitos de 360/720 graus, reversão e resolução limitada de lóbulo pelas mesmas interfaces. O ponto de controle mais recente do motor inclui a [combustão premisturada](PREMIXED_COMBUSTION.pt-BR.md), com combustível/ar/produtos transportados, reagentes limitantes e balanço de energia química. Termoquímica detalhada, medição de combustível e controle de ignição continuam trabalho de motor. +[Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) -A rede do Core agora fornece estados explícitos de massa de gás e de energia interna. O componente de cilindro móvel agora os acopla a câmaras dependentes do virabrequim, com trabalho de pressão conservativo. O cilindro fechado atual deriva o estado do gás do ângulo e da entropia inicial imutável, o que não pode representar troca de gás nem aquecimento de parede. Esse componente continua um benchmark analítico; câmaras finitas, reservatórios, cilindros de gás, orifícios controlados e elos de gás para térmico agora coexistem no grafo compilado. +`LiquidColumn` é uma referência C# independente para tubo horizontal rígido com seção, velocidade uniforme, densidade líquida e temperatura constantes. As pressões absolutas são prescritas por intervalo. Resistências linear e quadrática são entradas de pesquisa explícitas. Não é componente do grafo e não altera rede ou bocal. [Referência de quantidade de movimento na entrada líquida](LIQUID_COLUMN.pt-BR.md) -Contratos originais do incremento (use o ponto de controle acima para distinguir o trabalho de Core já concluído da integração restante): +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. [Quantidade de movimento da linha finita de combustível líquido](FUEL_INERTIAL_PIPE.pt-BR.md) -- Restrições de gás referenciam IDs estáveis de nó de gás; um futuro cilindro de gás precisa definir explicitamente sua extremidade de volume móvel. Um cilindro de gás também se conecta a um nó rotacional; um elo de calor conecta um volume finito de gás a um nó térmico. Suporte redes só de gás sem exigir um nó mecânico fictício. -- Rastreie massa e energia interna de forma independente, com validação de estado finito e positivo. Transfira massa e entalpia a montante juntas. Rastreie a troca com o reservatório em balanços externos de massa e energia; transferências internas precisam se cancelar. Restrinja gases conectados à mesma constante do gás e ao mesmo gamma até que a mistura de composição/espécies esteja implementada. -- Exponha canais de vazão mássica com sinal, estado do gás, fluxo de calor e resíduo de massa. A abertura do orifício usa uma fração adimensional explícita em `[0,1]`, com a mesma validação para entradas diretas e agendadas. -- Investigue uma solução implícita limitada de transferência aos pares, delimitada pelo estado de pressão igual do par conectado. Acople o trabalho de pressão do cilindro de gás pela solução de virabrequim existente. Um método dividido com escoamento de Euler regressivo seria de primeira ordem para a troca de gás; a conservação sozinha não prova precisão. Valide esse método proposto antes de adotá-lo. -- Conserve o rollback completo do lote, as correções nos hashes de estado e nas ramificações, o cancelamento, os modelos compilados imutáveis e zero alocações durante o avanço bem-sucedido. A falha do solver precisa retornar orientação acionável. -- Estenda juntos os esquemas JSON, os assets portáteis, a descoberta de capacidades, os exemplos, os relatórios e as vistas do Unity. Se uma nova versão de asset for necessária, conserve os leitores v1/v2 e teste fixtures reais anteriores à mudança. Conserve as impressões digitais de modelo existentes onde a semântica do solver permanecer inalterada. +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) -A evidência exigida inclui escoamento de bico bloqueado e subcrítico, descarga adiabática analítica de vaso, entalpia de enchimento do reservatório, conservação de massa/energia em rede fechada, equalização de pressão, troca de calor gás/parede, refinamento de passo, escoamento reverso, isolamento com válvula fechada, trabalho acoplado do virabrequim, rejeição de topologia/entrada malformada, recuperação de lote reprovado, ramificação e replay completo de CLI/MCP/asset. +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) -Pontos de partida da pesquisa: [bloqueio de vazão mássica da NASA](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) para escoamento ideal de bico compressível, e [interações de reatores do Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) para conceitos de fronteira de volume de controle e de parede. Essas referências não são dependências de runtime nem validação do solver proposto do Power!. +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. [Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) -Um asset autêntico v2 de cilindro anterior à mudança agora está retido nas [fixtures de compatibilidade](../tests/Power.Tests/Fixtures/README.md), com o commit de origem e o SHA-256. Os testes ativos conferem sua impressão digital e o replay depois da atualização para v3; não o regenere com o codificador novo. +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. [Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) -Comportamento completo do motor, combustão/termoquímica preditivas, dinâmica mecânica do comando de válvulas, transmissões, controles e amostras de veículo calibradas continuam abertos. Conserve todas as fronteiras de evidência das amostras. Os protótipos nativos arquivados foram portados para **Zig** sob [a fronteira nativa](NATIVE_ZIG.pt-BR.md); a implementação ativa em C#/Unity permanece no lugar. +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. [Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Próximo incremento + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) + +## Aceitação + +Exigir referências analíticas/limite independentes, balanços completos de massa/energia e refinamento apropriado. Preservar rollback do lote, cancelamento, ramos, canais estáveis, replay portável e leitores antigos. Continuar depois ignição, admissão/escape, perdas mecânicas, transmissão e coordenação ECU/TCU. + +Os parâmetros continuam `unverified`. Ambas as portas exigem mesmo domínio e material; portas relaxantes rejeitam trânsito de equilíbrio. Relaxação finita nos reservatórios não resolve química ou residência dentro de um bocal sem volume. Não há deslizamento de fases, tensão líquida negativa, barreira de nucleação, spray, gás portador ou receptor com combustão. Reservatórios móveis são misturados com velocidade média nula; células internas continuam rígidas com um proprietário. Use vapor ideal diluído longe do crítico, limites declarados de pressão positiva e temperatura, entalpia latente positiva e volumes de coexistência separados. A fração inicial é entrada explícita de pesquisa. Concordância numérica não comprova calibração medida nem aceitação real do Unity. + +[DEVELOPMENT_STATUS.pt-BR.md](DEVELOPMENT_STATUS.pt-BR.md) · [ROADMAP.pt-BR.md](ROADMAP.pt-BR.md) · [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +[Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) diff --git a/docs/NEXT_ENGINE_STEP.ru.md b/docs/NEXT_ENGINE_STEP.ru.md index 243f2b7..7ccc39c 100644 --- a/docs/NEXT_ENGINE_STEP.ru.md +++ b/docs/NEXT_ENGINE_STEP.ru.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · [简体中文](NEXT_ENGINE_STEP.zh-CN.md) · [Français](NEXT_ENGINE_STEP.fr.md) · **Русский** · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -Разработка возобновлена по просьбе владельца 2026-09-14. Отдельные газовые примитивы и скомпилированная сеть ядра теперь реализованы. Контрольная точка интеграции 2026-09-22 ниже обновляет оставшийся объём. Предшествующая база закрытого цилиндра прошла управляемую проверку на Windows, macOS и Linux. Фактические свидетельства Unity Editor и Player ещё ожидают; см. [журнал валидации](VALIDATION.ru.md). +## Точка продолжения -**Последующая контрольная точка 2026-09-14:** [газовая сеть ядра](GAS_NETWORK.ru.md) теперь реализует газовые узлы постоянного объёма, сужения резервуаров, управляемые открытия, тепловые связи, каналы, журналы учёта, ветвления и откат. У ограниченного метода Хьюна есть аналитические свидетельства и свидетельства уточнения для гладкого течения, с явной связью со стенкой и сохраняющим ограничителем вблизи равновесия. Это не предложенный неявный метод. +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. -**Интеграция 2026-09-22:** JSON и схема, актив v3, обнаружение и примеры CLI/MCP, переносимый повтор и схематичные виды Unity реализованы. Читатели и фикстуры v1/v2 до изменения сохранены. Проверка Unity Editor/Play всё ещё ожидает. Последующий [шаг подвижного цилиндра](MOVING_CYLINDER.ru.md) добавляет газообмен и работу коленвала через JSON, активы и агентов. Последующий [шаг фаз по углу коленвала](VALVE_TIMING.ru.md) добавляет явные профили 360/720 градусов, реверс и ограниченное разрешение кулачка через те же интерфейсы. Последняя контрольная точка двигателя включает [предварительно смешанное сгорание](PREMIXED_COMBUSTION.ru.md) с переносом топлива, воздуха и продуктов, лимитирующими реагентами и учётом химической энергии. Подробная термохимия, дозирование топлива и управление зажиганием остаются работой по двигателю. +[Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) -Сеть ядра теперь даёт явные состояния массы газа и внутренней энергии. Компонент подвижного цилиндра теперь связывает их с камерами, зависящими от коленвала, с сохраняющей работой давления. Нынешний закрытый цилиндр выводит состояние газа из угла и неизменяемой начальной энтропии, что не может представить газообмен или нагрев стенки. Этот компонент остаётся аналитическим эталоном; конечные камеры, резервуары, газовые цилиндры, управляемые отверстия и связи газа с тепловой сетью теперь сосуществуют в скомпилированном графе. +`LiquidColumn` — самостоятельная C#-опора горизонтальной жёсткой трубы с постоянными сечением, равномерной скоростью, плотностью жидкости и температурой. Абсолютные давления портов заданы на локальном интервале. Линейное и квадратичное сопротивления — явные исследовательские параметры. Это не компонент графа; уравнения топливной сети и сопла не меняются. [Опорная модель импульса жидкостного входа](LIQUID_COLUMN.ru.md) -Исходные контракты шага (по контрольной точке выше отличайте завершённую работу ядра от оставшейся интеграции): +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. [Импульс конечной линии жидкого топлива](FUEL_INERTIAL_PIPE.ru.md) -- Газовые сужения ссылаются на устойчивые ID газовых узлов; будущий газовый цилиндр должен явно задать свою конечную точку подвижного объёма. Газовый цилиндр также соединяется с вращательным узлом; тепловая связь соединяет конечный объём газа с тепловым узлом. Поддерживать чисто газовые сети, не требуя фиктивного механического узла. -- Отслеживать массу и внутреннюю энергию независимо, с проверкой положительного конечного состояния. Переносить массу и энтальпию набегающего потока вместе. Учитывать обмен с резервуаром во внешних журналах массы и энергии; внутренние переносы должны взаимно уничтожаться. Ограничить соединённые газы одинаковыми газовой постоянной и gamma, пока не реализовано смешение состава и видов. -- Открыть каналы знакового массового расхода, состояния газа, теплового потока и остатка массы. Открытие отверстия использует явную безразмерную долю в `[0,1]`, с той же проверкой для прямых и запланированных входов. -- Исследовать ограниченное попарное неявное решение переноса, локализованное состоянием равного давления соединённой пары. Связать работу давления газового цилиндра с существующим решением коленвала. Расщеплённый метод с потоком обратного Эйлера был бы первого порядка для газообмена; одно сохранение не доказывает точность. Проверить этот предложенный метод, прежде чем принимать его. -- Сохранять полный откат пакета, поправки в хешах состояния и ветвлениях, отмену, неизменяемые скомпилированные модели и нулевые выделения при успешном шаге. Отказ решателя должен возвращать действенное указание. -- Расширять схемы JSON, переносимые активы, обнаружение возможностей, примеры, отчёты и виды Unity вместе. Если нужна новая версия актива, сохранить читатели v1/v2 и проверить реальные фикстуры до изменения. Сохранять существующие отпечатки моделей, где семантика решателя не меняется. +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) -Нужные свидетельства включают критическое и докритическое течение в сопле, аналитическое адиабатическое опорожнение сосуда, энтальпию заполнения резервуара, сохранение массы и энергии замкнутой сети, выравнивание давления, теплообмен газа со стенкой, уточнение шага, обратный поток, изоляцию закрытым клапаном, связанную работу коленвала, отклонение неверной топологии и входа, восстановление после отказа пакета, ветвление и полный повтор CLI/MCP/актива. +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) -Исследовательские отправные точки: [запирание массового расхода NASA](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) для идеального сжимаемого течения в сопле и [взаимодействия реакторов Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) для понятий границы контрольного объёма и стенки. Эти ссылки не являются зависимостями среды выполнения и не подтверждают предложенный решатель Power!. +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. [Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) -Подлинный актив цилиндра v2 до изменения теперь хранится в [фикстурах совместимости](../tests/Power.Tests/Fixtures/README.md), с коммитом источника и SHA-256. Активные тесты проверяют его отпечаток и повтор после обновления до v3; не пересоздавайте его новым кодировщиком. +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. [Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) -Полное поведение двигателя, прогнозирующие сгорание и термохимия, динамика механического привода клапанов, трансмиссии, управление и калиброванные автомобильные образцы остаются открытыми. Сохраняйте все границы свидетельств образцов. Архивные нативные прототипы перенесены на **Zig** в пределах [нативной границы](NATIVE_ZIG.ru.md); активная реализация C#/Unity остаётся на месте. +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. [Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) + +## Следующий этап + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) + +## Приёмка + +Требовать независимые аналитические или предельные эталоны, полные балансы массы/энергии и уточнение шага для новых уравнений. Сохранять откат пакета, отмену, ветви, стабильные каналы, переносимое воспроизведение и старые читатели. Затем продолжить зажигание, впуск/выпуск, механические потери, привод трансмиссии и ECU/TCU. + +Параметры остаются `unverified`. Оба порта должны иметь одинаковые домен и материал; равновесный проход для релаксирующих портов запрещён. Конечная релаксация в резервуарах не разрешает химию или время пребывания внутри сопла нулевого объёма. Нет скольжения фаз, отрицательного натяжения жидкости, барьера зародышеобразования, распыла, несущего газа или горящего приёмника. Подвижные резервуары перемешаны с нулевой средней скоростью; внутренние ячейки жёсткие и имеют одного владельца. Нужен разреженный идеальный пар вдали от критической области, заявленные положительные давления и температуры, положительная скрытая энтальпия и различные объёмы сосуществования. Начальная доля пара задаётся явно как исследовательская. Численное совпадение не доказывает измеренную калибровку или приёмку Unity. + +[DEVELOPMENT_STATUS.ru.md](DEVELOPMENT_STATUS.ru.md) · [ROADMAP.ru.md](ROADMAP.ru.md) · [VALIDATION.ru.md](VALIDATION.ru.md) + +[Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) diff --git a/docs/NEXT_ENGINE_STEP.zh-CN.md b/docs/NEXT_ENGINE_STEP.zh-CN.md index 4757319..420b004 100644 --- a/docs/NEXT_ENGINE_STEP.zh-CN.md +++ b/docs/NEXT_ENGINE_STEP.zh-CN.md @@ -2,27 +2,38 @@ [English](NEXT_ENGINE_STEP.md) · **简体中文** · [Français](NEXT_ENGINE_STEP.fr.md) · [Русский](NEXT_ENGINE_STEP.ru.md) · [日本語](NEXT_ENGINE_STEP.ja.md) · [한국어](NEXT_ENGINE_STEP.ko.md) · [Deutsch](NEXT_ENGINE_STEP.de.md) · [Español](NEXT_ENGINE_STEP.es.md) · [Italiano](NEXT_ENGINE_STEP.it.md) · [Português](NEXT_ENGINE_STEP.pt-BR.md) -开发应所有者要求于 2026-09-14 恢复。独立气体原语与编译后的核心网络现已实现。下方 2026-09-22 集成检查点更新了剩余范围。此前的封闭气缸基线已在 Windows、macOS 与 Linux 上通过托管验证。真实的 Unity 编辑器与 Player 证据仍待完成;参见 [验证记录](VALIDATION.zh-CN.md)。 +## 接续位置 -**2026-09-14 的后续检查点:** [核心气体网络](GAS_NETWORK.zh-CN.md) 现已实现定容气体节点、储气库节流、受控开度、热链、通道、账本、分支与回滚。有界 Heun 方法对光滑流动有解析与细化证据,并带有显式壁面耦合与近平衡守恒限制器。它不是所提议的隐式方法。 +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 -**2026-09-22 集成:** JSON/schema、资产 v3、CLI/MCP 发现与示例、可移植回放以及 Unity 示意视图均已实现。变更前的 v1/v2 读取器与夹具予以保留。Unity 编辑器/Play 验证仍待完成。随后的 [运动气缸增量](MOVING_CYLINDER.zh-CN.md) 通过 JSON、资产与智能体加入换气与曲轴功。随后的 [曲轴转角定时增量](VALVE_TIMING.zh-CN.md) 通过同一批接口加入显式的 360/720 度曲线、反转与有界凸轮分辨率。最新的发动机检查点包含 [预混燃烧](PREMIXED_COMBUSTION.zh-CN.md),带有输运的燃油/空气/产物、限制反应物与化学能记账。详细热化学、燃油计量与点火控制仍是发动机工作。 +[轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) -核心网络现在提供显式的气体质量与内能状态。运动气缸元件把它们耦合到随曲轴变化的气室,并带有守恒的压力功。当前封闭气缸由转角与不可变初始熵导出气体状态,不能表示换气或壁面加热。该元件仍是解析基准;有限气室、储气库、气缸、受控孔口与气体到热节点的连接现在在编译图中并存。 +`LiquidColumn` 是独立 C# 参考模型,描述水平刚性管中的恒定截面、均匀流速、恒定液体密度与恒定温度。每个局部区间内给定绝对端口压力。线性和二次阻力系数是显式研究输入。它不是图元件,不改变现有燃油网络或喷嘴方程。 [液体入口动量参考](LIQUID_COLUMN.zh-CN.md) -原始增量契约(用上方检查点区分已完成的核心工作与剩余集成): +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 [有限液体燃油管路动量](FUEL_INERTIAL_PIPE.zh-CN.md) -- 气体节流引用稳定的气体节点 ID;未来的气缸必须显式定义其运动容积端点。气缸还连接到一个转动节点;热链把有限气体容积连到一个热节点。支持纯气体网络,不要求虚设的机械节点。 -- 独立追踪质量与内能,并做正有限状态校验。质量与上游焓一起传递。在外部质量与能量账本中追踪储气库交换;内部传递必须抵消。在实现组分/物种混合之前,把相连气体限制为相同的气体常数与 gamma。 -- 暴露有符号质量流、气体状态、热流与质量残差通道。孔口开度使用 `[0,1]` 内的显式无量纲分数,直接输入与排程输入使用同一套校验。 -- 研究一种有界的成对隐式传递求解,由相连一对的等压状态括住。通过现有曲轴求解耦合气缸压力功。带后向欧拉流动的分裂方法对换气将是一阶的;仅有守恒并不能证明精度。采用所提议的方法之前先验证它。 -- 保留完整批量回滚、状态哈希与分支中的修正项、取消、不可变编译模型,以及成功步进期间的零分配。求解器失败必须返回可操作的指导。 -- 一起扩展 JSON schema、可移植资产、能力发现、示例、报告与 Unity 视图。如果需要新的资产版本,保留 v1/v2 读取器,并测试真实的变更前夹具。求解器语义不变时,保留现有模型指纹。 +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) -所需证据包括临界与亚临界喷嘴流动、解析绝热容器放气、储气库充气焓、封闭网络的质量/能量守恒、压力均衡、气体/壁面热交换、步长细化、反向流动、关阀隔离、耦合曲轴功、畸形拓扑/输入拒绝、失败批次恢复、分支,以及完整的 CLI/MCP/资产回放。 +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) -研究起点:[NASA 质量流壅塞](https://www.grc.nasa.gov/www/k-12/BGP/mflchk.html) 说明理想可压缩喷嘴流动,[Cantera 反应器相互作用](https://www.cantera.org/stable/reference/reactors/interactions.html) 说明控制容积边界与壁面概念。这些参考文献不是运行时依赖,也不构成对 Power! 所提议求解器的验证。 +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 [冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) -一份真实的变更前气缸 v2 资产现保留在 [兼容性夹具](../tests/Power.Tests/Fixtures/README.md) 中,带有其源提交与 SHA-256。现行测试在升级到 v3 后验证其指纹与回放;不要用新编码器重新生成它。 +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 [平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) -完整发动机行为、预测燃烧/热化学、机械配气机构动力学、变速器、控制与标定车辆样本仍未完成。保留全部样本证据边界。归档的原生原型已移植到 [原生边界](NATIVE_ZIG.zh-CN.md) 下的 **Zig**;现行 C#/Unity 实现保持原位。 +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 [有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) + +## 下一步开发 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) + +## 验收 + +为新方程提供独立解析或极限参考、完整质量/能量账本及适当的步长细化。保持整批回滚、取消、分支、稳定通道、资产回放和旧资产读取。之后继续点火、进/排气、机械损失、变速器驱动与 ECU/TCU 协同控制。 + +参数仍为 `unverified`。喷嘴两端必须具有相同域和材料,弛豫端口拒绝平衡输运模式。有限速率体相弛豫不表示已解析零容积喷嘴内部的化学转化或停留时间。模型不含相间滑移、液体负压张力、成核势垒定律、喷雾、载气或燃烧接收腔。运动储腔保持均匀混合且整体流速为零;管道内部单元仍为刚性且各有一个所有者。仅适用远离临界行为的稀薄理想蒸气,并须满足材料声明的正压、温度边界、正潜焓与分离的共存比容。初始蒸气质量分数是显式研究输入。数值吻合不证明实测标定或实际 Unity 验收。 + +[DEVELOPMENT_STATUS.zh-CN.md](DEVELOPMENT_STATUS.zh-CN.md) · [ROADMAP.zh-CN.md](ROADMAP.zh-CN.md) · [VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +[冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) diff --git a/docs/PUMP_FED_FUEL.de.md b/docs/PUMP_FED_FUEL.de.md new file mode 100644 index 0000000..1f98606 --- /dev/null +++ b/docs/PUMP_FED_FUEL.de.md @@ -0,0 +1,61 @@ +# Pumpengespeiste Flüssigkraftstoffschiene + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · **Deutsch** · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Vertrag + +`liquid_rail_feed` verbindet einen Flüssiginjektor mit einer bestehenden Verdrängerpumpe und expliziter Stoff-/Wärmegrenze. Der hydraulische Auslassknoten muss Schienenkompliance und anfänglichem Absolutdruck entsprechen. Pumpe und Injektor besitzen diesen Knoten; andere unbilanzierte Fluidpfade werden abgelehnt. + +Druckenergie wird nur einmal im Hydraulikknoten gespeichert. Volumenstrom und Wellenreaktion folgen dem konservierenden gekoppelten Löser. Zulauf bringt kalorische und chemische Energie ein; kalorische Schienenspeicherung mischt die Temperatur. Vorzeichenbehafteter Rückstrom führt Kraftstoff bei aktueller Schienentemperatur zurück. Düsenabfluss, Wandheizung, Dampf und vorgeschriebene Verbrennung bleiben getrennt. + +`pump-fed-liquid-cylinder` und `pump-fed-needle-cylinder` behalten physische Einspritzung und optionale Nadelbewegung. Druck-KPIs nutzen eine deklarierte pumpenbasierte Obergrenze mit expliziten Einheiten. `total_fuel_delivered`, `reservoir_enthalpy` und `fuel_energy_in` stehen auf Speise-ID 1511; Pumpen-ID 1510 zeigt tatsächliche Wellen-Flüssigkeitsarbeit. + +## Nachweise und Grenzen + +v41 speichert Speiseverknüpfungen und Quellentemperatur und liest v1-v40. Analytischer Wellen-/Druckaustausch, unabhängige simultane ODE-Verfeinerung, Wärmemischung, Masse/Kraftstoff/Energie/Volumenbilanzen, Rückstrom und vollständiges rollback haben eigene Prüfungen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +## Endlicher Flüssigkraftstofftank + +`liquid_fuel_tank` speichert endliche Flüssigkeitsmasse und kalorische Energie mit Dichte, Filmwärmereferenz und Heizwert des zugehörigen Injektors. Die Speisung wählt ihn mit `tank_component` und lässt `supply_temperature` weg. Jeder Tank gehört einer stofflich passenden Speisung. + +Kalorische und chemische Tankenergie gehören zur gesamten Speicherung. Interner Transfer fügt keine äußere Masse oder chemische Versorgung hinzu. Der erklärte Einlassdruck behält seine Druckarbeitsgrenze. Gaseinlass/-auslass kann weiterhin chemische Grenzenergie tragen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[LIQUID_FUEL_TANK.de.md](LIQUID_FUEL_TANK.de.md) + +## Verfolgter Kraftstoff-Entlastungsrücklauf + +`liquid_rail_return` verbindet eine Speisung mit exklusivem einseitigem `hydraulic_relief`. Das Ventil führt die Schiene zum gleichen vorgegebenen Pumpeneinlassdruck. Alle Fluidpfade registrieren; unpassende Ports, doppelte Eigentümer und unbilanzierte Pfade werden abgelehnt. + +`fluid_heat_fraction` wählt ausdrücklich den Anteil [0,1] des Ventilverlusts im Rückkraftstoff. Restwärme folgt dem erklärten Ventilwärmepfad. Gleichzeitige Schienen-/Tankmischung erhält Masse-, Chemie-, Druckarbeits- und Wärmebilanzen. Rückfluss zur Außenquelle führt Masse/Energie über die Grenze hinaus. + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## Tankgeometrie und endlicher Gasraum + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +Die gekoppelte Lösung tauscht Druckarbeit zwischen Welle, Rail und Gas ohne externe Druckquelle. Gasdrosseln und Wärmeverbindungen bilden explizite Entlüftung/Wärmewege. `pressure`, `fill_fraction`, vorzeichenbehaftete kumulierte `hydraulic_work` sowie Gasmasse, Energie und Volumen lesen. Dosis, Flüssigkeit, Verdampfung und Verbrennung bleiben getrennt. + +[Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) + +## Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Die Standardversorgung verwirft Flüssigkeit unter Sättigung. Optionales endliches Tankgleichgewicht löst Quellendampftransfer mit druckkorrigierten Potenzialen. Rail und Ansaugung führen weiter getrennte Flüssigkeit; Blasenmitnahme und kavitierende Strömung benötigen weitere Physik. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) + +Kraftstofftransport komponiert jetzt mit wellengetriebenem `fuel_chamber` und idealem `fuel_check_valve`. Injektor, lokale Trägheit/kritische Strömung und gemessene reale Gemische bleiben gesondert. Parameter bleiben `unverified`. [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) diff --git a/docs/PUMP_FED_FUEL.es.md b/docs/PUMP_FED_FUEL.es.md new file mode 100644 index 0000000..d67755b --- /dev/null +++ b/docs/PUMP_FED_FUEL.es.md @@ -0,0 +1,61 @@ +# Raíl de combustible líquido alimentado por bomba + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · **Español** · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Contrato + +`liquid_rail_feed` asocia un inyector líquido con una bomba de desplazamiento existente y una frontera explícita de materia/calor. El nodo de salida hidráulica debe coincidir con la compliancia y presión absoluta inicial del raíl. Bomba e inyector poseen ese nodo; otras rutas fluidas no contabilizadas se rechazan. + +La energía de presión se almacena una sola vez en el nodo hidráulico. Caudal y reacción del eje siguen la resolución acoplada conservadora. El combustible entrante aporta energía térmica y química; el almacenamiento térmico del raíl mezcla su temperatura. El flujo inverso con signo devuelve combustible a la temperatura actual del raíl. Descarga, calentamiento de pared, vapor y combustión prescrita siguen separados. + +`pump-fed-liquid-cylinder` y `pump-fed-needle-cylinder` conservan inyección física y movimiento opcional de aguja. Los KPI de presión usan una cota declarada de bomba con unidades explícitas. Leer `total_fuel_delivered`, `reservoir_enthalpy` y `fuel_energy_in` en ID 1511; la bomba ID 1510 muestra trabajo real eje-fluido. + +## Evidencia y límites + +v41 conserva enlaces y temperatura de fuente y lee v1-v40. Intercambio analítico eje/presión, refinamiento ODE simultáneo independiente, mezcla térmica, balances masa/combustible/energía/volumen, retorno y rollback completo tienen verificaciones separadas. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +## Tanque finito de combustible líquido + +`liquid_fuel_tank` guarda masa líquida finita y energía térmica con densidad, referencia térmica de película y poder calorífico del inyector asociado. La alimentación lo elige con `tank_component` y omite `supply_temperature`. Cada tanque pertenece a una alimentación compatible. + +Energías térmica y química del tanque forman el almacenamiento completo. La transferencia interna no agrega masa ni suministro químico externos. La presión de entrada prescrita mantiene su frontera de trabajo de presión. Admisión/escape gaseoso aún pueden llevar energía química. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[LIQUID_FUEL_TANK.es.md](LIQUID_FUEL_TANK.es.md) + +## Retorno de alivio de combustible trazado + +`liquid_rail_return` une una alimentación con un `hydraulic_relief` unidireccional exclusivo. La válvula conecta el raíl a la misma presión de entrada prescrita de la bomba. Registrar toda ruta fluida; puertos incompatibles, propiedad duplicada y rutas no seguidas se rechazan. + +`fluid_heat_fraction` elige explícitamente la fracción [0,1] de pérdida transportada por combustible retornado. El resto sigue la ruta térmica declarada. Mezcla simultánea raíl/tanque conserva masa, química, trabajo de presión y calor. El retorno a fuente externa saca masa/energía por la frontera. + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## Geometría del tanque y espacio gaseoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +El solver acoplado intercambia trabajo de presión entre eje, riel y gas sin fuente externa. Orificios gaseosos y enlaces térmicos dan venteo/calor explícitos. Leer `pressure`, `fill_fraction`, `hydraulic_work` acumulado con signo y masa, energía, volumen del gas. Dosis, líquido, evaporación y combustión permanecen separados. + +[Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) + +## Equilibrio de fases del combustible y límites de suministro + +El suministro predeterminado rechaza líquido bajo saturación. La opción de tanque finito resuelve vapor fuente con potenciales corregidos por presión. Riel y aspiración aún llevan líquido separado; burbujas y flujo cavitante requieren más física. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) + +El transporte se combina ahora con `fuel_chamber` por eje y `fuel_check_valve` ideal. Inyector, inercia/flujo crítico y mezclas reales medidas siguen separados. Los parámetros son `unverified`. [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) diff --git a/docs/PUMP_FED_FUEL.fr.md b/docs/PUMP_FED_FUEL.fr.md new file mode 100644 index 0000000..63ff99a --- /dev/null +++ b/docs/PUMP_FED_FUEL.fr.md @@ -0,0 +1,61 @@ +# Rampe de carburant liquide alimentée par pompe + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · **Français** · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Contrat + +`liquid_rail_feed` associe un injecteur liquide à une pompe volumétrique existante et à une frontière matière/thermique explicite. Le nœud de sortie hydraulique doit correspondre à la compliance et à la pression absolue initiale de la rampe. Pompe et injecteur possèdent ce nœud ; les autres chemins fluides non suivis sont rejetés. + +L'énergie de pression est stockée une seule fois dans le nœud hydraulique. Débit et réaction d'arbre suivent la résolution couplée conservatrice. Le carburant entrant apporte énergie calorique et chimique ; le stockage calorique de la rampe mélange sa température. Le débit inverse signé retourne du carburant à la température actuelle de la rampe. Décharge, chauffage de paroi, vapeur et combustion prescrite restent distincts. + +`pump-fed-liquid-cylinder` et `pump-fed-needle-cylinder` conservent l'injection physique et le mouvement d'aiguille facultatif. Les KPI de pression utilisent une borne déclarée de pompe seule avec unités explicites. Lire `total_fuel_delivered`, `reservoir_enthalpy` et `fuel_energy_in` sur l'ID 1511 ; la pompe ID 1510 expose le travail réel arbre-fluide. + +## Preuves et limites + +Le format v41 conserve les liens et la température source et lit v1-v40. Échange analytique arbre/pression, raffinement ODE simultané indépendant, mélange calorique, bilans masse/carburant/énergie/volume, retour inverse et rollback complet ont des contrôles séparés. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +## Réservoir fini de carburant liquide + +`liquid_fuel_tank` stocke masse liquide finie et énergie calorique avec la densité, référence thermique du film et pouvoir calorifique de l'injecteur associé. L'alimentation le choisit via `tank_component` et omet `supply_temperature`. Chaque réservoir appartient à une alimentation compatible. + +Énergies calorique et chimique du réservoir entrent dans le stockage complet. Le transfert interne n'ajoute aucune matière ni énergie chimique externe. La pression d'entrée prescrite garde sa frontière de travail de pression. Admission/échappement gazeux peuvent encore transporter de l'énergie chimique. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[LIQUID_FUEL_TANK.fr.md](LIQUID_FUEL_TANK.fr.md) + +## Retour suivi de décharge de carburant + +`liquid_rail_return` associe une alimentation à un `hydraulic_relief` unidirectionnel exclusif. La soupape relie la rampe à la même pression d'entrée prescrite que la pompe. Toute voie doit être enregistrée ; ports incompatibles, propriété dupliquée et voies non suivies sont rejetés. + +`fluid_heat_fraction` choisit explicitement la part [0,1] des pertes transportée par le carburant de retour. Le reste suit le chemin thermique déclaré. Le mélange simultané rampe/réservoir conserve les bilans matière, chimie, travail de pression et chaleur. Les retours à source externe sortent matière et énergie par la frontière. + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## Géométrie du réservoir et espace gazeux fini + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +Le solveur couplé échange le travail de pression entre arbre, rampe et gaz sans source externe. Orifices gazeux et liens thermiques fournissent ventilation et chaleur explicites. Lire `pressure`, `fill_fraction`, `hydraulic_work` cumulé signé et masse, énergie, volume du gaz. Dose, liquide livré, évaporation et combustion restent distincts. + +[Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) + +## Équilibre des phases du carburant et limites d'alimentation + +L'alimentation liquide par défaut rejette les états humides sous saturation. L'option de réservoir à volume fini résout le transfert vapeur source avec potentiels chimiques corrigés. Rail et aspiration restent liquides séparés ; entraînement de bulles et écoulement cavitant demandent une physique supplémentaire. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) + +Le transport carburant compose maintenant avec `fuel_chamber` entraîné par arbre et `fuel_check_valve` idéal. Injecteur physique, inertie/blocage sonique et mélanges réels mesurés restent séparés. Les paramètres restent `unverified`. [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) diff --git a/docs/PUMP_FED_FUEL.it.md b/docs/PUMP_FED_FUEL.it.md new file mode 100644 index 0000000..b4f2787 --- /dev/null +++ b/docs/PUMP_FED_FUEL.it.md @@ -0,0 +1,61 @@ +# Rail di combustibile liquido alimentato da pompa + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · **Italiano** · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Contratto + +`liquid_rail_feed` associa un iniettore liquido a una pompa volumetrica esistente e a un confine esplicito di materia/calore. Il nodo di uscita idraulica deve corrispondere alla cedevolezza e alla pressione assoluta iniziale del rail. Pompa e iniettore possiedono questo nodo; altri percorsi fluidi non contabilizzati sono rifiutati. + +L'energia di pressione è memorizzata una volta nel nodo idraulico. Portata e reazione d'albero seguono la soluzione accoppiata conservativa. Il combustibile entrante porta energia termica e chimica; lo stoccaggio termico del rail miscela la temperatura. Il flusso inverso con segno restituisce combustibile alla temperatura attuale del rail. Scarico, riscaldamento parete, vapore e combustione prescritta rimangono separati. + +`pump-fed-liquid-cylinder` e `pump-fed-needle-cylinder` conservano iniezione fisica e movimento opzionale dell'ago. I KPI di pressione usano un limite dichiarato della sola pompa con unità esplicite. Leggere `total_fuel_delivered`, `reservoir_enthalpy` e `fuel_energy_in` sull'ID 1511; la pompa ID 1510 espone il lavoro reale albero-fluido. + +## Evidenze e limiti + +v41 conserva collegamenti e temperatura sorgente e legge v1-v40. Scambio analitico albero/pressione, raffinamento ODE simultaneo indipendente, miscelazione termica, bilanci massa/combustibile/energia/volume, ritorno e rollback completo hanno verifiche separate. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +## Serbatoio finito di combustibile liquido + +`liquid_fuel_tank` conserva massa liquida finita ed energia termica con densità, riferimento termico del film e potere calorifico dell'iniettore associato. L'alimentazione lo seleziona con `tank_component` e omette `supply_temperature`. Ogni serbatoio appartiene a un'alimentazione compatibile. + +Energia termica e chimica del serbatoio entrano nello stoccaggio totale. Il trasferimento interno non aggiunge massa o energia chimica esterna. La pressione prescritta all'ingresso mantiene il confine di lavoro di pressione. Aspirazione/scarico gas possono ancora trasportare energia chimica. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[LIQUID_FUEL_TANK.it.md](LIQUID_FUEL_TANK.it.md) + +## Ritorno di scarico carburante tracciato + +`liquid_rail_return` collega un'alimentazione a un `hydraulic_relief` unidirezionale esclusivo. La valvola collega il rail alla stessa pressione d'ingresso prescritta della pompa. Registrare ogni percorso; porte incompatibili, proprietà duplicate e percorsi non tracciati sono rifiutati. + +`fluid_heat_fraction` sceglie esplicitamente la quota [0,1] delle perdite portata dal carburante di ritorno. Il resto segue il percorso termico dichiarato. Miscelazione simultanea rail/serbatoio conserva massa, chimica, lavoro di pressione e calore. Il ritorno a sorgente esterna porta massa/energia oltre confine. + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## Geometria del serbatoio e spazio gassoso finito + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +Il solver accoppiato scambia lavoro di pressione fra albero, rail e gas senza fonte esterna. Orifizi gassosi e collegamenti termici forniscono sfiato/calore espliciti. Leggere `pressure`, `fill_fraction`, `hydraulic_work` cumulativo con segno e massa, energia, volume del gas. Dose, liquido, evaporazione e combustione restano separati. + +[Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) + +## Equilibrio di fase del carburante e limiti di alimentazione + +L'alimentazione predefinita respinge liquido sotto saturazione. Il serbatoio finito opzionale risolve il vapore sorgente con potenziali corretti. Rail e aspirazione trasportano ancora liquido separato; bolle e flusso cavitante richiedono altra fisica. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) + +Il trasporto compone ora con `fuel_chamber` azionato da albero e `fuel_check_valve` ideale. Iniettore, inerzia/flusso critico e miscele reali misurate restano separati. I parametri sono `unverified`. [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) diff --git a/docs/PUMP_FED_FUEL.ja.md b/docs/PUMP_FED_FUEL.ja.md new file mode 100644 index 0000000..e481a23 --- /dev/null +++ b/docs/PUMP_FED_FUEL.ja.md @@ -0,0 +1,61 @@ +# ポンプ供給の液体燃料レール + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · **日本語** · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## 契約 + +`liquid_rail_feed` は液体噴射器を既存の容積ポンプと明示的な物質/熱境界に結びます。油圧出口ノードはレールのコンプライアンスと初期絶対圧に一致する必要があります。ポンプと噴射器がこの圧力ノードを所有し、未追跡の他の流体経路は拒否されます。 + +圧力エネルギーは油圧ノードに一度だけ保存されます。流量と軸反力は保存則を満たす連成解に従います。流入燃料は熱と化学境界エネルギーを持ち込み、レールの熱貯蔵が温度を混合します。符号付き逆流は現在のレール温度で燃料を戻します。ノズル排出、壁加熱、蒸気供給、規定燃焼は別々に扱います。 + +`pump-fed-liquid-cylinder` と `pump-fed-needle-cylinder` は物理噴射と任意のニードル運動を保持します。圧力 KPI は明示的単位で宣言したポンプのみの上限を使います。補給 ID 1511 の `total_fuel_delivered`、`reservoir_enthalpy`、`fuel_energy_in` を読みます。ポンプ ID 1510 は実際の軸から流体への仕事を示します。 + +## 証拠と制限 + +v41 は補給接続と源温度を保存し v1-v40 を読みます。軸/圧力の解析交換、独立した同時 ODE 細化、熱混合、質量/燃料/エネルギー/体積台帳、逆流と完全 rollback は別々に検査します。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +## 有限液体燃料タンク + +`liquid_fuel_tank` は対応する噴射器の密度、フィルム熱基準、発熱量を使い、有限液体質量と熱エネルギーを保存します。補給は `tank_component` で選び、`supply_temperature` を省略します。各タンクは燃料物性が一致する一つの補給に属します。 + +タンクの熱/化学エネルギーは全貯蔵台帳に入ります。内部移送は外部質量や化学供給を追加しません。明示したポンプ入口規定圧は圧力仕事境界を保持します。ガス吸排気は化学境界エネルギーを運ぶ場合があります。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[LIQUID_FUEL_TANK.ja.md](LIQUID_FUEL_TANK.ja.md) + +## 追跡可能な燃料リリーフ戻り流れ + +`liquid_rail_return` は補給を排他的な一方向 `hydraulic_relief` に結びます。弁はレールをポンプと同じ規定入口圧へ接続します。すべての流体経路を登録し、不適合ポート、重複所有、未追跡経路は拒否します。 + +`fluid_heat_fraction` は戻り燃料が運ぶ弁損失の割合 [0,1] を明示します。残る熱は宣言した弁熱経路へ流れます。レール/タンク同時熱混合は質量、化学、圧力仕事、熱台帳を保存し、外部源への戻りは境界から質量/エネルギーを出します。 + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## タンク形状と有限ヘッドスペース + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +連成計算は外部圧力源を加えず、軸・レール・気体間で圧力仕事を交換します。気体オリフィスと熱接続が明示的な通気/伝熱を提供します。`pressure`、`fill_fraction`、符号付き累積 `hydraulic_work` と気体質量・エネルギー・体積を読みます。投与、液体供給、蒸発、燃焼は分離されます。 + +[タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) + +## 燃料の相平衡と液体供給の境界 + +既定の液体供給は飽和未満の湿潤状態を拒否します。任意の有限タンク平衡は補正化学ポテンシャルで供給蒸気移動を解きます。レールと吸入口は分離液体のままで、気泡巻込みとキャビテーション輸送には追加物理が必要です。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) + +燃料輸送は軸駆動 `fuel_chamber` と理想 `fuel_check_valve` に接続できます。物理噴射器、局所慣性・チョーク流、実測混合物は別作業です。パラメーターは `unverified` です。 [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) diff --git a/docs/PUMP_FED_FUEL.ko.md b/docs/PUMP_FED_FUEL.ko.md new file mode 100644 index 0000000..b35275c --- /dev/null +++ b/docs/PUMP_FED_FUEL.ko.md @@ -0,0 +1,61 @@ +# 펌프 공급 액체 연료 레일 + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · **한국어** · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## 계약 + +`liquid_rail_feed`는 액체 인젝터를 기존 용적 펌프와 명시적인 물질/열 경계에 연결합니다. 유압 출구 노드는 레일 컴플라이언스와 초기 절대압에 일치해야 합니다. 펌프와 인젝터가 이 압력 노드를 소유하고 다른 미추적 유체 경로는 거부됩니다. + +압력 에너지는 유압 노드에 한 번만 저장됩니다. 유량과 축 반력은 보존 연성 해를 따릅니다. 유입 연료는 열 및 화학 경계 에너지를 전달하며 레일 열 저장이 온도를 혼합합니다. 부호가 있는 역류는 현재 레일 온도로 연료를 반환합니다. 노즐 배출, 벽 가열, 가용 증기와 지정 연소는 분리됩니다. + +`pump-fed-liquid-cylinder`와 `pump-fed-needle-cylinder`는 물리적 분사와 선택적 니들 운동을 보존합니다. 압력 KPI는 명시적 단위의 선언된 펌프 전용 상한을 사용합니다. 공급 ID 1511에서 `total_fuel_delivered`, `reservoir_enthalpy`, `fuel_energy_in`을 읽으며 펌프 ID 1510은 실제 축-유체 일을 보여줍니다. + +## 증거와 한계 + +v41은 공급 연결과 원천 온도를 저장하고 v1-v40를 읽습니다. 축/압력 해석 교환, 독립 동시 ODE 세분화, 열 혼합, 질량/연료/에너지/체적 원장, 역류와 완전 rollback을 각각 확인합니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +## 유한 액체 연료 탱크 + +`liquid_fuel_tank`는 연결 인젝터의 밀도, 필름 열 기준과 발열량으로 유한 액체 질량과 열 에너지를 저장합니다. 공급은 `tank_component`로 선택하고 `supply_temperature`를 생략합니다. 각 탱크는 연료 물성이 같은 한 공급에 속합니다. + +탱크 열/화학 에너지는 전체 저장 원장에 포함됩니다. 내부 전달은 외부 질량이나 화학 공급을 추가하지 않습니다. 명시적 펌프 입구 지정 압력은 압력 일 경계를 유지합니다. 가스 흡배기는 화학 경계 에너지를 운반할 수 있습니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[LIQUID_FUEL_TANK.ko.md](LIQUID_FUEL_TANK.ko.md) + +## 추적 가능한 연료 릴리프 반환 + +`liquid_rail_return`는 공급을 독점 단방향 `hydraulic_relief`에 연결합니다. 밸브는 레일을 펌프와 같은 지정 입구 압력에 연결합니다. 모든 유체 경로를 등록하며 비호환 포트, 중복 소유와 미추적 경로는 거부됩니다. + +`fluid_heat_fraction`는 반환 연료가 운반하는 밸브 손실 비율 [0,1]을 명시합니다. 나머지 열은 선언된 밸브 열 경로를 따릅니다. 레일/탱크 동시 열 혼합은 질량, 화학, 압력 일과 열 원장을 보존하며 외부 원천 반환은 경계를 통해 질량/에너지를 내보냅니다. + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 탱크 형상과 유한 헤드스페이스 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +연성 계산은 외부 압력원 없이 축, 레일과 기체 사이의 압력 일을 교환합니다. 기체 오리피스와 열 연결은 명시적 통기/열전달을 제공합니다. `pressure`, `fill_fraction`, 부호 있는 누적 `hydraulic_work`와 기체 질량, 에너지, 체적을 읽습니다. 용량, 액체 공급, 증발과 연소는 구분됩니다. + +[탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) + +## 연료 상평형과 액체 공급 경계 + +기본 액체 공급은 포화 이하 젖은 상태를 거부합니다. 선택 유한 탱크 평형은 압력 보정 화학 퍼텐셜로 공급 증기 이동을 풉니다. 레일과 흡입구는 여전히 분리 액체이며 기포 동반과 캐비테이션 수송은 추가 물리가 필요합니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) + +연료 수송은 축 구동 `fuel_chamber` 및 이상 `fuel_check_valve`와 결합합니다. 물리 인젝터, 국소 관성/초킹, 실측 혼합물은 별도 작업입니다. 매개변수는 `unverified`입니다. [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) diff --git a/docs/PUMP_FED_FUEL.md b/docs/PUMP_FED_FUEL.md new file mode 100644 index 0000000..373466e --- /dev/null +++ b/docs/PUMP_FED_FUEL.md @@ -0,0 +1,61 @@ +# Pump-fed liquid fuel rail + +**English** · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Contract + +`liquid_rail_feed` pairs a liquid injector with an existing displacement pump and explicit material/thermal boundary. The hydraulic outlet node must match the rail compliance and initial absolute pressure. The paired pump and injector own this pressure node; other untracked fluid paths are rejected. + +Pressure energy is stored once in the hydraulic node. Pump flow and shaft reaction follow the conserving coupled solve. Incoming fuel contributes caloric and chemical boundary energy; rail caloric storage mixes its temperature. Signed reverse flow returns fuel at the current rail temperature. Nozzle discharge, wall heating, vapor availability and prescribed burn remain distinct. + +The examples `pump-fed-liquid-cylinder` and `pump-fed-needle-cylinder` retain physical injection and optional needle motion. Pressure KPIs use a declared pump-only upper bound, with explicit units. Read `total_fuel_delivered`, `reservoir_enthalpy` and `fuel_energy_in` on feed ID 1511; pump ID 1510 exposes actual shaft-to-fluid work. + +## Evidence and limits + +Asset v41 retains feed links and source temperature and reads v1-v40. Analytic shaft/pressure exchange, independent simultaneous ODE refinement, caloric mixing, mass/fuel/energy/volume ledgers, reverse return and complete rollback have separate checks. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +## Finite liquid fuel tank + +`liquid_fuel_tank` stores finite liquid mass and caloric energy using the paired injector's density, film thermal reference and heating value. A feed selects it with `tank_component` and omits `supply_temperature`. Each tank belongs to one feed with matching fuel properties. + +Tank caloric and chemical energy enter the complete stored-energy ledger. Tank-to-rail transfer adds no external mass or chemical supply. The explicit prescribed pump inlet pressure retains its pressure-work boundary. Gas inlet/exhaust can still carry chemical boundary energy. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[LIQUID_FUEL_TANK.md](LIQUID_FUEL_TANK.md) + +## Tracked fuel relief return + +`liquid_rail_return` pairs a feed with an exclusively owned one-way `hydraulic_relief`. The valve connects the rail to the pump's same prescribed inlet pressure. Register every fluid path; incompatible ports, duplicate valve ownership and untracked paths reject. + +`fluid_heat_fraction` explicitly selects the fraction in [0,1] of valve loss carried with returned fuel. The remaining heat follows the valve's declared heat path. Simultaneous rail/tank caloric mixing preserves the full mass, chemical, pressure-work and thermal ledgers. External-source returns instead carry mass and energy out through the boundary. + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## Geometric tank and finite headspace + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +The coupled solve exchanges shaft, rail and gas pressure work without an external pressure source. Gas orifices and heat links provide explicit vent/thermal paths. Read tank `pressure`, `fill_fraction` and signed cumulative `hydraulic_work`, plus headspace gas mass, energy and volume. Prescribed dose, delivered liquid, evaporation and burn remain separate. + +[Geometric tank and finite headspace](TANK_HEADSPACE.md) + +## Fuel phase equilibrium and liquid supply limits + +The default liquid-supply model rejects wet states below saturation. Optional finite-volume tank equilibrium instead resolves source vapor transfer with pressure-corrected chemical potentials. The rail and pump pickup still carry separated liquid; bubble entrainment and cavitating pump/rail flow require further physics. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) + +Fuel-domain transport now composes with shaft-driven `fuel_chamber` components and ideal `fuel_check_valve` links. Physical injector handoff, local inertia/choking and measured real-mixture behavior remain separate work. Parameters remain `unverified`. [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) diff --git a/docs/PUMP_FED_FUEL.pt-BR.md b/docs/PUMP_FED_FUEL.pt-BR.md new file mode 100644 index 0000000..25d8558 --- /dev/null +++ b/docs/PUMP_FED_FUEL.pt-BR.md @@ -0,0 +1,61 @@ +# Rail de combustível líquido alimentado por bomba + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · **Português** + +## Contrato + +`liquid_rail_feed` associa um injetor líquido a uma bomba volumétrica existente e a uma fronteira explícita de matéria/calor. O nó de saída hidráulica deve corresponder à complacência e pressão absoluta inicial do rail. Bomba e injetor possuem esse nó; outras rotas fluidas não contabilizadas são rejeitadas. + +A energia de pressão é armazenada uma única vez no nó hidráulico. Vazão e reação do eixo seguem a solução acoplada conservativa. Combustível entrante traz energia térmica e química; o armazenamento térmico do rail mistura a temperatura. O fluxo reverso com sinal devolve combustível à temperatura atual do rail. Descarga, aquecimento da parede, vapor e combustão prescrita permanecem separados. + +`pump-fed-liquid-cylinder` e `pump-fed-needle-cylinder` preservam injeção física e movimento opcional da agulha. Os KPI de pressão usam um limite declarado da bomba com unidades explícitas. Leia `total_fuel_delivered`, `reservoir_enthalpy` e `fuel_energy_in` no ID 1511; a bomba ID 1510 mostra o trabalho real eixo-fluido. + +## Evidências e limites + +v41 preserva conexões e temperatura da fonte e lê v1-v40. Troca analítica eixo/pressão, refinamento ODE simultâneo independente, mistura térmica, balanços massa/combustível/energia/volume, retorno e rollback completo têm verificações separadas. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +## Tanque finito de combustível líquido + +`liquid_fuel_tank` guarda massa líquida finita e energia térmica com densidade, referência térmica do filme e poder calorífico do injetor associado. A alimentação o escolhe por `tank_component` e omite `supply_temperature`. Cada tanque pertence a uma alimentação compatível. + +Energias térmica e química do tanque entram no armazenamento completo. Transferência interna não adiciona massa ou energia química externa. A pressão de entrada prescrita mantém sua fronteira de trabalho de pressão. Admissão/escape gasoso ainda podem transportar energia química. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[LIQUID_FUEL_TANK.pt-BR.md](LIQUID_FUEL_TANK.pt-BR.md) + +## Retorno de alívio de combustível rastreado + +`liquid_rail_return` associa alimentação a um `hydraulic_relief` unidirecional exclusivo. A válvula liga o rail à mesma pressão de entrada prescrita da bomba. Registrar cada rota; portas incompatíveis, propriedade duplicada e rotas não rastreadas são rejeitadas. + +`fluid_heat_fraction` escolhe explicitamente a fração [0,1] da perda transportada pelo combustível retornado. O restante segue a rota térmica declarada. Mistura simultânea rail/tanque conserva massa, química, trabalho de pressão e calor. Retorno à fonte externa leva massa/energia pela fronteira. + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## Geometria do tanque e espaço gasoso finito + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +O solver acoplado troca trabalho de pressão entre eixo, trilho e gás sem fonte externa. Orifícios gasosos e conexões térmicas fornecem ventilação/calor explícitos. Ler `pressure`, `fill_fraction`, `hydraulic_work` acumulado com sinal e massa, energia, volume do gás. Dose, líquido, evaporação e combustão continuam separados. + +[Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) + +## Equilíbrio de fases do combustível e limites de suprimento + +O suprimento padrão rejeita líquido sob saturação. O tanque finito opcional resolve vapor da fonte com potenciais corrigidos por pressão. Trilho e captação ainda levam líquido separado; bolhas e fluxo cavitante precisam de mais física. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +O transporte agora compõe com `fuel_chamber` por eixo e `fuel_check_valve` ideal. Injetor, inércia/escoamento crítico e misturas reais medidas seguem separados. Os parâmetros são `unverified`. [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) diff --git a/docs/PUMP_FED_FUEL.ru.md b/docs/PUMP_FED_FUEL.ru.md new file mode 100644 index 0000000..08c726e --- /dev/null +++ b/docs/PUMP_FED_FUEL.ru.md @@ -0,0 +1,61 @@ +# Жидкая топливная рампа с насосной подачей + +[English](PUMP_FED_FUEL.md) · [简体中文](PUMP_FED_FUEL.zh-CN.md) · [Français](PUMP_FED_FUEL.fr.md) · **Русский** · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## Контракт + +`liquid_rail_feed` связывает жидкий инжектор с существующим объёмным насосом и явной материальной/тепловой границей. Выходной гидравлический узел должен совпадать с податливостью и начальным абсолютным давлением рампы. Насос и инжектор владеют этим узлом; другие неучтённые жидкостные пути отклоняются. + +Энергия давления хранится в гидравлическом узле только один раз. Расход и реакция вала следуют совместному сохраняющему решению. Входящее топливо переносит калорическую и химическую энергию; тепловое хранение рампы смешивает температуру. Знаковый обратный поток возвращает топливо при текущей температуре рампы. Выпуск, нагрев стенки, доступность пара и заданное горение остаются раздельными. + +`pump-fed-liquid-cylinder` и `pump-fed-needle-cylinder` сохраняют физическую инжекцию и необязательное движение иглы. KPI давления используют объявленную насосную верхнюю границу с явными единицами. Читать `total_fuel_delivered`, `reservoir_enthalpy` и `fuel_energy_in` на ID 1511; насос ID 1510 показывает фактическую работу вал-жидкость. + +## Доказательства и ограничения + +Формат v41 хранит связи подачи и температуру источника и читает v1-v40. Аналитический обмен вал/давление, независимое совместное уточнение ODE, смешение тепла, балансы массы/топлива/энергии/объёма, обратный поток и полный rollback проверяются отдельно. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +## Конечный бак жидкого топлива + +`liquid_fuel_tank` хранит конечную массу жидкости и тепловую энергию с плотностью, тепловым отсчётом плёнки и теплотой сгорания связанного инжектора. Подача выбирает его через `tank_component`, исключая `supply_temperature`. Каждый бак принадлежит одной совместимой подаче. + +Тепловая и химическая энергия бака входят в полное хранилище. Внутренний перенос не добавляет внешней массы или химической энергии. Заданное входное давление насоса сохраняет границу работы давления. Впуск/выпуск газа всё ещё может переносить химическую энергию. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[LIQUID_FUEL_TANK.ru.md](LIQUID_FUEL_TANK.ru.md) + +## Отслеживаемый возврат через сброс топлива + +`liquid_rail_return` связывает подачу с исключительно принадлежащим ей однонаправленным `hydraulic_relief`. Клапан соединяет рампу с тем же заданным входным давлением насоса. Все жидкостные пути регистрируются; несовместимые порты, повторное владение и неучтённые пути отклоняются. + +`fluid_heat_fraction` явно выбирает долю [0,1] потерь, переносимую обратным топливом. Остальное тепло следует объявленному пути. Совместное смешение рампы/бака сохраняет массу, химию, работу давления и тепло. Возврат внешнему источнику выводит массу и энергию через границу. + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## Геометрия бака и конечное газовое пространство + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +Совместный решатель обменивает работу давления между валом, рампой и газом без внешнего источника давления. Газовые отверстия и тепловые связи задают явную вентиляцию/теплообмен. Читать `pressure`, `fill_fraction`, знаковую накопленную `hydraulic_work` и массу, энергию, объём газа. Доза, жидкость, испарение и горение разделены. + +[Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) + +## Фазовое равновесие топлива и границы жидкой подачи + +Однофазная подача по умолчанию отклоняет жидкость ниже насыщения. Опциональный конечный бак разрешает парообмен источника с поправкой химического потенциала. Рампа и забор остаются жидкими; пузырьки и кавитирующий поток требуют дальнейшей физики. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) + +Топливный перенос теперь сочетается с приводным `fuel_chamber` и идеальным `fuel_check_valve`. Форсунка, местная инерция/критический поток и измеренные реальные смеси остаются отдельными. Параметры — `unverified`. [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) diff --git a/docs/PUMP_FED_FUEL.zh-CN.md b/docs/PUMP_FED_FUEL.zh-CN.md new file mode 100644 index 0000000..9df7c28 --- /dev/null +++ b/docs/PUMP_FED_FUEL.zh-CN.md @@ -0,0 +1,61 @@ +# 泵送液体燃油轨 + +[English](PUMP_FED_FUEL.md) · **简体中文** · [Français](PUMP_FED_FUEL.fr.md) · [Русский](PUMP_FED_FUEL.ru.md) · [日本語](PUMP_FED_FUEL.ja.md) · [한국어](PUMP_FED_FUEL.ko.md) · [Deutsch](PUMP_FED_FUEL.de.md) · [Español](PUMP_FED_FUEL.es.md) · [Italiano](PUMP_FED_FUEL.it.md) · [Português](PUMP_FED_FUEL.pt-BR.md) + +## 接口约定 + +`liquid_rail_feed` 将液体喷射器与现有排量泵及显式质量/热边界配对。液压出口节点必须与燃轨的顺应性和初始绝对压力一致。配对泵和喷射器管理该压力节点;其他未计入的流体路径会被拒绝。 + +压力能仅存储在液压节点一次。泵流量和轴反力由守恒耦合求解决定。补入燃料携带热能与化学边界能量,燃轨热储能实现温度混合。带符号的反向流动按当前燃轨温度回输燃料。喷嘴排出、壁面加热、可用蒸气和规定燃烧仍分别记录。 + +示例 `pump-fed-liquid-cylinder` 与 `pump-fed-needle-cylinder` 保留物理喷射及可选针阀运动。压力 KPI 使用显式单位下声明的纯泵上界。在补给 ID 1511 上读取 `total_fuel_delivered`、`reservoir_enthalpy` 与 `fuel_energy_in`;泵 ID 1510 提供实际轴到流体功。 + +## 证据与限制 + +资产 v41 保留补给连接和源温度,并读取 v1-v40。泵轴/压力解析交换、独立联立 ODE 细化、热混合、质量/燃料/能量/体积账本、反向回输与完整回滚各有独立检查。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +## 有限液体燃油箱 + +`liquid_fuel_tank` 使用配对喷射器的密度、油膜热参考和热值,存储有限液体质量及热能。补给通过 `tank_component` 选择它,并省略 `supply_temperature`。每个油箱属于一个燃料属性相同的补给。 + +油箱热能和化学能进入完整储能账本。油箱到燃轨的传递不增加外部质量或化学供给。显式设定的泵入口压力保留其压力功边界。气体进气/排气仍可携带化学边界能量。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[LIQUID_FUEL_TANK.zh-CN.md](LIQUID_FUEL_TANK.zh-CN.md) + +## 可追踪的燃油泄压回流 + +`liquid_rail_return` 将补给与独占的单向 `hydraulic_relief` 配对。阀连接燃轨与泵相同的设定入口压力。每条流体路径都须登记;不兼容端口、重复阀所有权和未追踪路径会被拒绝。 + +`fluid_heat_fraction` 显式选择阀损失中随回流燃油携带的比例,范围为 [0,1]。剩余热量沿阀声明的热路径传递。燃轨/油箱联立热混合保持完整质量、化学、压力功和热账本。外部源模式则由回流跨边界带出质量与能量。 + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 油箱几何与有限气相空间 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +耦合求解在轴、燃轨和气体之间交换压力功,不引入外部压力源。气体孔口和热连接提供显式通气及传热路径。读取油箱 `pressure`、`fill_fraction`、带符号累计 `hydraulic_work`,以及气相的质量、能量和体积。请求剂量、液体供给、蒸发和燃烧保持独立。 + +[油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) + +## 燃油相平衡与液体供给边界 + +默认液体供给模型拒绝低于饱和压力的湿状态。可选有限体积油箱相平衡使用压力修正化学势求解供给端蒸气转移。燃轨和泵吸口仍只输送已分离液体;气泡夹带与空化泵/燃轨流动还需要后续物理模型。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) + +燃料域输运现可与轴驱动 `fuel_chamber` 及理想 `fuel_check_valve` 链接组合。物理喷油器交接、局部惯性/临界流及实测真实混合物行为仍需单独推进。参数保持 `unverified`。 [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) diff --git a/docs/README.de.md b/docs/README.de.md index c306e7e..4b4aa81 100644 --- a/docs/README.de.md +++ b/docs/README.de.md @@ -31,7 +31,16 @@ flowchart LR | Dokument | Worum es geht | |---|---| | [Agent-API](AGENT_API.de.md) | MCP-Werkzeuge, Revisionen, Fehler und die Operationsfolge | -| [Asset-Format](ASSET_FORMAT.de.md) | `.powerasset` v24 und die Leser für v1 bis v23 | +| [Asset-Format](ASSET_FORMAT.de.md) | `.powerasset` v41 und die Leser für v1 bis v40 | +| [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) | Kritischer Fluss mit eingefrorenem Dampfanteil, Flüssigkeitsverdrängung und physische Pumpe/Nadel | +| [Impuls einer endlichen Flüssigkraftstoffleitung](FUEL_INERTIAL_PIPE.de.md) | Endliches Flüssigkeitsinventar, dynamischer Fluss, Mischung und erhaltende Leitungsarbeit | +| [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) | Konservativer kompressibler Zweiphasentransport und Gleichgewichtsakustik | +| [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md) | Wellendruckarbeit gekoppelt an kompressiblen Kraftstofftransport | +| [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md) | Eingefrorene kritische Strömung, endlicher Austritt und reale Nadel | +| [Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md) | Gleichgewichtsverdampfung, globale kritische Flussgrenzen und reale Nadel | +| [Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md) | Unabhängiger Dampfanteil, endliche Phasenrate und konservativer Transport | +| [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) | Relaxierende Behälter, reversible Wellenarbeit und konservative eingefrorene Dampfdosierung | +| [Referenz für den Impuls am Flüssigkeitseinlass](LIQUID_COLUMN.de.md) | Einphasige Einlassträgheit, Reibungswärme und unabhängig geprüfter Impuls zweiter Ordnung | | [Native Zig-Grenze](NATIVE_ZIG.de.md) | Die archivierten Zig-Prototypen und das versionierte ABI | ## Motor und Kraftstoff @@ -49,6 +58,12 @@ flowchart LR | [Flüssigeinspritzung](LIQUID_FUEL_INJECTION.de.md) | Endliche nachgiebige Flüssigkeitsleitung, die einen Film speist | | [Nadelansteuerung](NEEDLE_ACTUATION.de.md) | Positionsabhängiges Solenoid, Nadelmasse, Schließverzögerung und Abprall | | [Schließvorhersage](CLOSURE_PREDICTION.de.md) | Begrenztes Strecken-Replay, das die Spannungsabschaltung plant | +| [Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md) | Starre Kapazität, endliche Gasdruckarbeit und explizite Entlüftung | +| [Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) | Reversible Verdampfung/Kondensation, Sättigung und Flüssigkeitsgrenzen | +| [Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) | Endliche Flüssigkeitsverdrängung, Druckkorrektur und dampfführende Entlüftung | +| [Referenz für ein nachgiebiges Kraftstoffvolumen](COMPLIANT_FUEL_VOLUME.de.md) | Flüssigkeit/Dampf-Gleichgewicht, elastischer Speicher und konservativer Wärmeaustausch mit endlichem Bad | +| [Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) | Homogener Zweiphasen-Enthalpietransport, endliche Wandwärme und vollständige Bilanzen | +| [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) | Endliche Kammerfüllung, Phasenwechsel und konservative Wellen-Druckarbeit | ## Getriebe diff --git a/docs/README.es.md b/docs/README.es.md index bc8d184..adfdf42 100644 --- a/docs/README.es.md +++ b/docs/README.es.md @@ -31,7 +31,16 @@ flowchart LR | Documento | Qué es | |---|---| | [API de agente](AGENT_API.es.md) | Herramientas MCP, revisiones, errores y la secuencia de operación | -| [Formato de asset](ASSET_FORMAT.es.md) | `.powerasset` v24 y los lectores de v1 a v23 | +| [Formato de asset](ASSET_FORMAT.es.md) | `.powerasset` v41 y los lectores de v1 a v40 | +| [Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) | Estrangulamiento de calidad congelada, desplazamiento finito y combustión con bomba/aguja físicas | +| [Cantidad de movimiento en una línea finita de combustible líquido](FUEL_INERTIAL_PIPE.es.md) | Inventario líquido finito, caudal dinámico, mezcla térmica y trabajo conservativo | +| [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) | Transporte bifásico compresible conservativo y acústica de equilibrio | +| [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md) | Trabajo de presión del eje acoplado al transporte compresible | +| [Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md) | Bloqueo compresible congelado, descarga finita y aguja real | +| [Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md) | Vaporización en equilibrio, envolvente crítica global y aguja real | +| [Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md) | Fracción de vapor independiente, fase a velocidad finita y transporte conservativo | +| [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) | Depósitos con relajación finita, trabajo reversible y dosificación conservativa de vapor congelado | +| [Referencia de cantidad de movimiento en la entrada líquida](LIQUID_COLUMN.es.md) | Inercia de entrada monofásica, calor de fricción y cantidad de movimiento de segundo orden verificada | | [Frontera Zig nativa](NATIVE_ZIG.es.md) | Los prototipos Zig archivados y el ABI versionado | ## Motor y combustible @@ -49,6 +58,12 @@ flowchart LR | [Inyección líquida](LIQUID_FUEL_INJECTION.es.md) | Raíl líquido flexible y finito que alimenta una película | | [Accionamiento de aguja](NEEDLE_ACTUATION.es.md) | Solenoide dependiente de la posición, masa de la aguja, retardo de cierre y rebote | | [Predicción de cierre](CLOSURE_PREDICTION.es.md) | Repetición acotada de la planta que planifica la retirada de voltaje | +| [Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md) | Capacidad rígida, trabajo del gas finito y venteo explícito | +| [Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) | Evaporación/condensación reversibles, saturación y límites de suministro líquido | +| [Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) | Desplazamiento líquido finito, corrección de presión y venteo con vapor | +| [Referencia de volumen de combustible flexible](COMPLIANT_FUEL_VOLUME.es.md) | Equilibrio líquido/vapor, almacenamiento elástico y calor conservativo con baño finito | +| [Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) | Transporte homogéneo bifásico de entalpía, calor de pared finita y balances completos | +| [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) | Llenado finito de cámara, cambio de fase y trabajo conservativo del eje | ## Transmisión diff --git a/docs/README.fr.md b/docs/README.fr.md index 47c3c08..d131fc8 100644 --- a/docs/README.fr.md +++ b/docs/README.fr.md @@ -31,7 +31,16 @@ flowchart LR | Document | De quoi il s'agit | |---|---| | [API agent](AGENT_API.fr.md) | Outils MCP, révisions, erreurs et la séquence d'opérations | -| [Format d'asset](ASSET_FORMAT.fr.md) | `.powerasset` v24 et les lecteurs de v1 à v23 | +| [Format d'asset](ASSET_FORMAT.fr.md) | `.powerasset` v41 et les lecteurs de v1 à v40 | +| [Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) | Étranglement à titre figé, déplacement liquide fini et combustion avec pompe/aiguille physiques | +| [Quantité de mouvement d'une ligne finie de carburant liquide](FUEL_INERTIAL_PIPE.fr.md) | Inventaire liquide fini, débit dynamique, mélange thermique et travail conservatif | +| [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) | Transport diphasique compressible conservatif et acoustique d’équilibre | +| [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md) | Travail de pression d’arbre couplé au transport compressible | +| [Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md) | Blocage compressible figé, décharge finie et aiguille réelle | +| [Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md) | Vaporisation à l’équilibre, flux critique global et aiguille réelle | +| [Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md) | Titre de vapeur indépendant, changement de phase fini et transport conservatif | +| [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) | Réservoirs à relaxation finie, travail réversible et dosage conservatif de vapeur gelée | +| [Référence de quantité de mouvement à l'entrée liquide](LIQUID_COLUMN.fr.md) | Inertie d'entrée monophasique, chaleur de friction et quantité de mouvement au second ordre vérifiée | | [Frontière Zig native](NATIVE_ZIG.fr.md) | Les prototypes Zig archivés et l'ABI versionnée | ## Moteur et carburant @@ -49,6 +58,12 @@ flowchart LR | [Injection liquide](LIQUID_FUEL_INJECTION.fr.md) | Rampe liquide finie et souple alimentant un film | | [Actionnement d'aiguille](NEEDLE_ACTUATION.fr.md) | Solénoïde dépendant de la position, masse d'aiguille, retard de fermeture et rebond | | [Prédiction de fermeture](CLOSURE_PREDICTION.fr.md) | Rejeu plant borné qui planifie la coupure de tension | +| [Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md) | Capacité rigide, travail du gaz fini et ventilation explicite | +| [Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) | Évaporation/condensation réversibles, saturation et limites d'alimentation liquide | +| [Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) | Déplacement liquide fini, phases corrigées en pression et évent avec vapeur | +| [Référence de volume de carburant déformable](COMPLIANT_FUEL_VOLUME.fr.md) | Équilibre liquide/vapeur, stockage élastique et échange conservatif avec bain fini | +| [Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) | Transport diphasique homogène d’enthalpie, chaleur de paroi finie et bilans complets | +| [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) | Remplissage fini, changement de phase et travail de pression conservatif | ## Transmission diff --git a/docs/README.it.md b/docs/README.it.md index 3e27b30..e4aa6c3 100644 --- a/docs/README.it.md +++ b/docs/README.it.md @@ -31,7 +31,16 @@ flowchart LR | Documento | Che cos'è | |---|---| | [API agente](AGENT_API.it.md) | Strumenti MCP, revisioni, errori e la sequenza delle operazioni | -| [Formato degli asset](ASSET_FORMAT.it.md) | `.powerasset` v24 e i lettori da v1 a v23 | +| [Formato degli asset](ASSET_FORMAT.it.md) | `.powerasset` v41 e i lettori da v1 a v40 | +| [Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) | Strozzamento a titolo congelato, spostamento liquido finito e pompa/ago fisici in combustione | +| [Quantità di moto della linea finita di carburante liquido](FUEL_INERTIAL_PIPE.it.md) | Inventario liquido finito, portata dinamica, miscela termica e lavoro conservativo | +| [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) | Trasporto bifase comprimibile conservativo e acustica d’equilibrio | +| [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md) | Lavoro di pressione d’albero accoppiato al trasporto comprimibile | +| [Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md) | Blocco comprimibile congelato, scarico finito e ago reale | +| [Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md) | Vaporizzazione d’equilibrio, involucro critico globale e ago reale | +| [Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md) | Frazione di vapore indipendente, fase a velocità finita e trasporto conservativo | +| [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) | Serbatoi a rilassamento finito, lavoro reversibile e dosaggio conservativo di vapore congelato | +| [Riferimento della quantità di moto all'ingresso liquido](LIQUID_COLUMN.it.md) | Inerzia d'ingresso monofase, calore d'attrito e quantità di moto del secondo ordine verificata | | [Confine Zig nativo](NATIVE_ZIG.it.md) | I prototipi Zig archiviati e l'ABI versionata | ## Motore e carburante @@ -49,6 +58,12 @@ flowchart LR | [Iniezione liquida](LIQUID_FUEL_INJECTION.it.md) | Binario liquido finito e cedevole che alimenta un film | | [Azionamento ago](NEEDLE_ACTUATION.it.md) | Solenoide dipendente dalla posizione, massa dell'ago, ritardo di chiusura e rimbalzo | | [Predizione di chiusura](CLOSURE_PREDICTION.it.md) | Replay limitato dell'impianto che pianifica la rimozione della tensione | +| [Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md) | Capacità rigida, lavoro del gas finito e sfiato esplicito | +| [Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) | Evaporazione/condensazione reversibili, saturazione e limiti del liquido | +| [Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) | Spostamento liquido finito, correzione di pressione e sfiato con vapore | +| [Riferimento del volume di carburante cedevole](COMPLIANT_FUEL_VOLUME.it.md) | Equilibrio liquido/vapore, accumulo elastico e calore conservativo con bagno finito | +| [Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) | Trasporto bifase omogeneo di entalpia, calore di parete finita e bilanci completi | +| [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) | Riempimento finito, cambio di fase e lavoro conservativo dell’albero | ## Trasmissione diff --git a/docs/README.ja.md b/docs/README.ja.md index 61a6b84..d6d5da2 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -31,7 +31,16 @@ flowchart LR | ドキュメント | 内容 | |---|---| | [エージェント API](AGENT_API.ja.md) | MCP ツール、リビジョン、エラー、操作シーケンス | -| [アセット形式](ASSET_FORMAT.ja.md) | `.powerasset` v24 と、v1 から v23 までのリーダー | +| [アセット形式](ASSET_FORMAT.ja.md) | `.powerasset` v41 と、v1 から v40 までのリーダー | +| [蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) | 凍結蒸気分率のチョーク、有限液体排除、物理ポンプ/ニードル燃焼 | +| [有限液体燃料管路の運動量](FUEL_INERTIAL_PIPE.ja.md) | 有限液体在庫、動的流量、熱混合、保存的管路仕事 | +| [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) | 保存形の圧縮性二相輸送と平衡音響 | +| [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md) | 軸の圧力仕事と圧縮性燃料輸送の結合 | +| [相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md) | 凍結圧縮性チョーク、有限排出、実ニードル制御 | +| [燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md) | 平衡フラッシュ、大域臨界流束包絡と実ニードル | +| [有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md) | 独立蒸気分率、有限速度相変化、保存型輸送 | +| [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) | 有限緩和貯槽、可逆軸仕事、保存型凍結蒸気計量 | +| [液体入口の運動量参照](LIQUID_COLUMN.ja.md) | 単相入口慣性、摩擦熱、独立検証した二次運動量 | | [ネイティブ Zig 境界](NATIVE_ZIG.ja.md) | 保管された Zig プロトタイプと、バージョン付き ABI | ## エンジンと燃料 @@ -49,6 +58,12 @@ flowchart LR | [液体噴射](LIQUID_FUEL_INJECTION.ja.md) | フィルムへ供給する、有限で柔軟な液体レール | | [ニードル駆動](NEEDLE_ACTUATION.ja.md) | 位置依存ソレノイド、ニードル質量、閉じ遅れ、反発 | | [クロージャ予測](CLOSURE_PREDICTION.ja.md) | 電圧除去を計画する、有界なプラントリプレイ | +| [タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md) | 剛体容量、有限気体の圧力仕事と明示的通気 | +| [燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) | 可逆蒸発/凝縮、飽和圧力と液体供給の境界 | +| [有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) | 有限液体押しのけ、圧力補正蒸発/凝縮と蒸気通気 | +| [弾性燃料容積の参照モデル](COMPLIANT_FUEL_VOLUME.ja.md) | 液体・蒸気平衡、弾性蓄積、保存的な有限熱浴との熱交換 | +| [相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) | 均質二相エンタルピー輸送、有限壁熱交換、完全な台帳 | +| [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) | 有限室充填、相変化、保存的な軸圧力仕事 | ## トランスミッション diff --git a/docs/README.ko.md b/docs/README.ko.md index f3c676a..b04aa6b 100644 --- a/docs/README.ko.md +++ b/docs/README.ko.md @@ -31,7 +31,16 @@ flowchart LR | 문서 | 내용 | |---|---| | [에이전트 API](AGENT_API.ko.md) | MCP 도구, 개정, 오류, 작업 순서 | -| [자산 형식](ASSET_FORMAT.ko.md) | `.powerasset` v24와 v1부터 v23까지의 판독기 | +| [자산 형식](ASSET_FORMAT.ko.md) | `.powerasset` v41와 v1부터 v40까지의 판독기 | +| [증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) | 증기 분율 동결 초크, 유한 액체 배제 및 물리 펌프/니들 연소 | +| [유한 액체 연료 관로 운동량](FUEL_INERTIAL_PIPE.ko.md) | 유한 액체 재고, 동적 유량, 열 혼합과 보존 관로 일 | +| [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) | 보존형 압축성 2상 수송과 평형 음향 | +| [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md) | 축 압력 일과 압축성 연료 수송 결합 | +| [상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md) | 동결 압축성 초킹, 유한 배출과 실제 니들 제어 | +| [연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md) | 평형 플래시, 전역 임계 유속 포락과 실제 니들 | +| [유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md) | 독립 증기 분율, 유한 속도 상변화와 보존 수송 | +| [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) | 유한 완화 저장조, 가역 축 일과 보존형 동결 증기 계량 | +| [액체 입구 운동량 기준 모델](LIQUID_COLUMN.ko.md) | 단상 입구 관성, 마찰열과 독립 검증한 2차 운동량 | | [네이티브 Zig 경계](NATIVE_ZIG.ko.md) | 보관된 Zig 프로토타입과 버전이 있는 ABI | ## 엔진과 연료 @@ -49,6 +58,12 @@ flowchart LR | [액체 분사](LIQUID_FUEL_INJECTION.ko.md) | 필름에 공급하는 유한 컴플라이언트 액체 레일 | | [니들 구동](NEEDLE_ACTUATION.ko.md) | 위치 의존 솔레노이드, 니들 질량, 닫힘 지연과 반발 | | [폐쇄 예측](CLOSURE_PREDICTION.ko.md) | 전압 제거를 계획하는 유계 플랜트 리플레이 | +| [탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md) | 강체 용량, 유한 기체 압력 일과 명시적 통기 | +| [연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) | 가역 증발/응축, 포화압과 액체 공급 경계 | +| [유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) | 유한 액체 변위, 압력 보정 증발/응축과 증기 통기 | +| [탄성 연료 체적 참조 모델](COMPLIANT_FUEL_VOLUME.ko.md) | 액체/증기 평형, 탄성 저장 및 보존적 유한 열욕 열교환 | +| [상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) | 균질 2상 엔탈피 수송, 유한 벽 열교환 및 전체 장부 | +| [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) | 유한 챔버 충전, 상변화 및 보존 축 압력 일 | ## 변속기 diff --git a/docs/README.md b/docs/README.md index 576ae4f..c8ed83a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -31,7 +31,16 @@ flowchart LR | Document | What it is | |---|---| | [Agent API](AGENT_API.md) | MCP tools, revisions, errors and the operation sequence | -| [Asset format](ASSET_FORMAT.md) | `.powerasset` v24 and the readers for v1 through v23 | +| [Asset format](ASSET_FORMAT.md) | `.powerasset` v41 and the readers for v1 through v40 | +| [Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) | Frozen-quality choking, finite liquid displacement and physical pump/needle firing | +| [Finite liquid fuel line momentum](FUEL_INERTIAL_PIPE.md) | Finite liquid inventory, dynamic flow, thermal mixing and conserving line work | +| [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) | Conservative compressible two-phase transport and equilibrium acoustics | +| [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md) | Shaft pressure work coupled to compressible fuel transport | +| [Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md) | Frozen compressible choking, finite discharge and physical needle control | +| [Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md) | Equilibrium flashing, global critical-flux enclosure and actual needle delivery | +| [Finite-rate fuel phase relaxation](RELAXING_FUEL.md) | Independent vapor quality, finite-rate phase change and conservative transport | +| [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) | Finite-rate pump reservoirs, reversible shaft work and conservative frozen vapor metering | +| [Liquid inlet momentum reference](LIQUID_COLUMN.md) | Single-phase inlet inertia, friction heat and independently checked second-order momentum | | [Native Zig boundary](NATIVE_ZIG.md) | The archived Zig prototypes and the versioned ABI | ## Engine and fuel @@ -49,6 +58,12 @@ flowchart LR | [Liquid injection](LIQUID_FUEL_INJECTION.md) | Finite compliant liquid rail feeding a film | | [Needle actuation](NEEDLE_ACTUATION.md) | Position-dependent solenoid, needle mass, closing delay and rebound | | [Closure prediction](CLOSURE_PREDICTION.md) | Bounded plant replay that schedules voltage removal | +| [Geometric tank and finite headspace](TANK_HEADSPACE.md) | Rigid tank capacity, finite gas pressure work and explicit venting | +| [Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) | Reversible evaporation/condensation, saturation pressure and liquid supply boundaries | +| [Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) | Finite liquid displacement, pressure-corrected evaporation/condensation and vapor-bearing vents | +| [Compliant fuel volume reference](COMPLIANT_FUEL_VOLUME.md) | Liquid/vapor equilibrium, elastic storage and conservative finite-bath heat | +| [Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) | Homogeneous two-phase enthalpy transport, finite-wall heat and complete ledgers | +| [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) | Finite chamber filling, phase change and conserving shaft pressure work | ## Transmission diff --git a/docs/README.pt-BR.md b/docs/README.pt-BR.md index 2a34a75..86b815d 100644 --- a/docs/README.pt-BR.md +++ b/docs/README.pt-BR.md @@ -31,7 +31,16 @@ flowchart LR | Documento | O que é | |---|---| | [API de agente](AGENT_API.pt-BR.md) | Ferramentas MCP, revisões, erros e a sequência de operação | -| [Formato de asset](ASSET_FORMAT.pt-BR.md) | `.powerasset` v24 e os leitores de v1 a v23 | +| [Formato de asset](ASSET_FORMAT.pt-BR.md) | `.powerasset` v41 e os leitores de v1 a v40 | +| [Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) | Estrangulamento com título congelado, deslocamento líquido finito e bomba/agulha físicas em combustão | +| [Quantidade de movimento da linha finita de combustível líquido](FUEL_INERTIAL_PIPE.pt-BR.md) | Inventário líquido finito, vazão dinâmica, mistura térmica e trabalho conservativo | +| [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) | Transporte bifásico compressível conservativo e acústica de equilíbrio | +| [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md) | Trabalho de pressão do eixo acoplado ao transporte compressível | +| [Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md) | Bloqueio compressível congelado, descarga finita e agulha real | +| [Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md) | Vaporização em equilíbrio, envoltória crítica global e agulha real | +| [Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md) | Fração de vapor independente, fase com taxa finita e transporte conservativo | +| [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) | Reservatórios com relaxação finita, trabalho reversível e dosagem conservativa de vapor congelado | +| [Referência de quantidade de movimento na entrada líquida](LIQUID_COLUMN.pt-BR.md) | Inércia de entrada monofásica, calor de atrito e quantidade de movimento de segunda ordem verificada | | [Fronteira Zig nativa](NATIVE_ZIG.pt-BR.md) | Os protótipos Zig arquivados e o ABI versionado | ## Motor e combustível @@ -49,6 +58,12 @@ flowchart LR | [Injeção líquida](LIQUID_FUEL_INJECTION.pt-BR.md) | Trilho líquido finito e flexível que alimenta um filme | | [Acionamento da agulha](NEEDLE_ACTUATION.pt-BR.md) | Solenoide dependente da posição, massa da agulha, atraso de fechamento e ricochete | | [Predição de fechamento](CLOSURE_PREDICTION.pt-BR.md) | Replay limitado da planta que agenda a remoção da tensão | +| [Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md) | Capacidade rígida, trabalho do gás finito e ventilação explícita | +| [Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) | Evaporação/condensação reversíveis, saturação e limites de suprimento líquido | +| [Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) | Deslocamento líquido finito, correção de pressão e ventilação com vapor | +| [Referência de volume de combustível complacente](COMPLIANT_FUEL_VOLUME.pt-BR.md) | Equilíbrio líquido/vapor, armazenamento elástico e calor conservativo com banho finito | +| [Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) | Transporte homogêneo bifásico de entalpia, calor de parede finita e balanços completos | +| [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) | Enchimento finito, mudança de fase e trabalho conservativo do eixo | ## Transmissão diff --git a/docs/README.ru.md b/docs/README.ru.md index 1bbdcd9..e765450 100644 --- a/docs/README.ru.md +++ b/docs/README.ru.md @@ -31,7 +31,16 @@ flowchart LR | Документ | Что это | |---|---| | [API агента](AGENT_API.ru.md) | Инструменты MCP, ревизии, ошибки и последовательность операций | -| [Формат активов](ASSET_FORMAT.ru.md) | `.powerasset` v24 и читатели для v1–v23 | +| [Формат активов](ASSET_FORMAT.ru.md) | `.powerasset` v41 и читатели для v1–v40 | +| [Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) | Критический поток с замороженным паросодержанием, конечное вытеснение и физический насос/игла | +| [Импульс конечной линии жидкого топлива](FUEL_INERTIAL_PIPE.ru.md) | Конечная жидкость, динамический расход, тепловое смешение и сохраняющая работа | +| [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) | Консервативный сжимаемый двухфазный перенос и равновесная акустика | +| [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md) | Работа давления вала в сжимаемом топливном переносе | +| [Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md) | Замороженное критическое течение, конечное истечение и реальная игла | +| [Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md) | Равновесное вскипание, глобальные границы потока и реальная игла | +| [Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md) | Независимая доля пара, конечная фазовая скорость и консервативный перенос | +| [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) | Релаксирующие резервуары, обратимая работа вала и консервативное дозирование пара | +| [Опорная модель импульса жидкостного входа](LIQUID_COLUMN.ru.md) | Однофазная входная инерция, тепло трения и независимо проверенный второй порядок импульса | | [Граница нативного Zig](NATIVE_ZIG.ru.md) | Архивные прототипы на Zig и версионируемый ABI | ## Двигатель и топливо @@ -49,6 +58,12 @@ flowchart LR | [Жидкостный впрыск](LIQUID_FUEL_INJECTION.ru.md) | Конечная податливая жидкостная рейка, питающая плёнку | | [Привод иглы](NEEDLE_ACTUATION.ru.md) | Соленоид, зависящий от положения, масса иглы, задержка закрытия и отскок | | [Предсказание закрытия](CLOSURE_PREDICTION.ru.md) | Ограниченный повтор объекта, который планирует снятие напряжения | +| [Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md) | Жёсткая вместимость, работа конечного газа и явная вентиляция | +| [Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) | Обратимые испарение/конденсация, насыщение и границы жидкой подачи | +| [Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) | Конечное вытеснение жидкости, поправка давления и паровая вентиляция | +| [Эталон податливого объёма топлива](COMPLIANT_FUEL_VOLUME.ru.md) | Жидкостно-паровое равновесие, упругое накопление и консервативный теплообмен с конечной ванной | +| [Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) | Однородный двухфазный перенос энтальпии, конечный теплообмен и полные балансы | +| [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) | Конечное наполнение камеры, фазовый переход и консервативная работа вала | ## Трансмиссия diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index 12f03a8..23ecfed 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -31,7 +31,16 @@ flowchart LR | 文档 | 内容 | |---|---| | [智能体 API](AGENT_API.zh-CN.md) | MCP 工具、修订号、错误与操作序列 | -| [资产格式](ASSET_FORMAT.zh-CN.md) | `.powerasset` v24,以及 v1 至 v23 的读取器 | +| [资产格式](ASSET_FORMAT.zh-CN.md) | `.powerasset` v41,以及 v1 至 v40 的读取器 | +| [冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) | 冻结汽相质量分数阻塞、有限液体排量与物理泵/针阀燃烧 | +| [有限液体燃油管路动量](FUEL_INERTIAL_PIPE.zh-CN.md) | 有限液体库存、动态流动、热混合与守恒管路功 | +| [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) | 守恒可压缩两相输运与平衡声学 | +| [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md) | 轴压力功与可压缩燃料输运耦合 | +| [冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md) | 冻结相态可压缩阻塞、有限排放与实际针阀控制 | +| [平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md) | 平衡闪蒸、全局临界通量包络与实际针阀输送 | +| [有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md) | 独立蒸气质量分数、有限速率相变与守恒输运 | +| [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) | 有限速率泵储腔、可逆轴功和守恒冻结蒸气计量 | +| [液体入口动量参考](LIQUID_COLUMN.zh-CN.md) | 单相入口惯性、摩擦热及独立验证的二阶动量 | | [原生 Zig 边界](NATIVE_ZIG.zh-CN.md) | 归档的 Zig 原型与带版本的 ABI | ## 发动机与燃油 @@ -49,6 +58,12 @@ flowchart LR | [低压喷射](LIQUID_FUEL_INJECTION.zh-CN.md) | 为油膜供油的有限柔性液轨 | | [针阀驱动](NEEDLE_ACTUATION.zh-CN.md) | 位置相关电磁铁、针阀质量、关闭延迟与回弹 | | [闭合预测](CLOSURE_PREDICTION.zh-CN.md) | 安排断电时刻的有界对象回放 | +| [油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md) | 刚性油箱容量、有限气体压力功与显式通气 | +| [燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) | 可逆蒸发/冷凝、饱和压力与液体供给边界 | +| [有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) | 有限液体位移、压力修正蒸发/冷凝与含蒸气通气 | +| [柔性燃料容积参考模型](COMPLIANT_FUEL_VOLUME.zh-CN.md) | 液/汽相平衡、弹性储能与守恒有限热浴传热 | +| [相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) | 均匀两相焓输运、有限壁传热与完整账本 | +| [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) | 有限腔体充填、相变及守恒轴压力功 | ## 变速器 diff --git a/docs/RELAXING_FUEL.de.md b/docs/RELAXING_FUEL.de.md new file mode 100644 index 0000000..058fd25 --- /dev/null +++ b/docs/RELAXING_FUEL.de.md @@ -0,0 +1,49 @@ +# Kraftstoff-Phasenrelaxation mit endlicher Rate + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · **Deutsch** · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## Physikalisches Modell + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. + +Der Abschluss übernimmt das Kaltpotential der kompressiblen Flüssigkeit und den idealen Dampf des Gleichgewichtsmodells. Der Anfangsanteil ist explizit und wird nicht auf Gleichgewicht projiziert. Bei fester Masse, festem Volumen und fester innerer Energie nähert sich der Anteil mit konstantem `phase_relaxation_time_ns` exponentiell dem Gleichgewicht. Latente Wärme bleibt in der inneren Energiebilanz. Chemische Affinität ist das Flüssigkeits- minus Dampfpotential; ihr Produkt mit dem Phasentransfer, geteilt durch Temperatur, liefert nichtnegative Entropieproduktion. Dies ist ein Forschungsgesetz, keine gemessene Keimbildungskorrelation. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Transport und numerische Methode + +Konservative Rusanov-Flüsse transportieren vier Felder. Jedes globale CFL-Intervall verwendet eine halbe lokale Phasenquelle, Transport und eine halbe Quelle. Gemeinsame Behälter erhalten jede Quelle einmal, unabhängig von der Kanalzahl. Der Quellverlauf ist für isolierte Zustände bei festem Volumen exakt; der gekoppelte Transport bleibt erster Ordnung. CFL nutzt die Schallgeschwindigkeitsgrenze bei eingefrorenem Anteil. Phasen- und Kanalentropie werden getrennt geprüft. Unzulässige Zustände setzen den gesamten Stapel zurück. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Nutzung, Nachweise und Grenzen + +`relaxing-fuel-evaporation` oder `relaxing-fuel-duct` ausführen. Beobachtbar sind tatsächlicher und Gleichgewichtsanteil, Affinität, Phasenentropie, Dampfbilanzen an Ports und globales Dampfresiduum. Verdampfungs- und Kondensationshistorien trennen den Nettoquelltransfer jedes akzeptierten Takts nach Vorzeichen; sie zählen keine mikroskopischen Bruttoströme. Prüfungen umfassen die unabhängige Exponentiallösung, Entropieableitungen, eingefrorene Akustik, den steifen Gleichgewichtsgrenzfall, zeitliche Selbstverfeinerung und unabhängige linear-akustische Gitterverfeinerung. Transaktionen, portables Replay und tatsächliches MCP werden getrennt geprüft; Zahlen stehen in den Validierungsnachweisen. + +Parameter bleiben `unverified`. Beide Ports benötigen dieselbe Domäne und dasselbe Material; relaxierende Ports lehnen Gleichgewichtstransit ab. Endliche Relaxation im Behälter löst keine Chemie oder Verweilzeit in einer volumenlosen Düse auf. Phasenschlupf, Flüssigkeitszugspannung, Keimbildungsbarriere, Spray, Trägergas und brennende Empfänger fehlen. Bewegte Behälter sind gemischt mit mittlerer Geschwindigkeit null; innere Kanalzellen bleiben starr mit einem Besitzer. Verdünnten idealen Dampf fern vom kritischen Bereich, erklärte positive Druck-/Temperaturgrenzen, positive latente Enthalpie und getrennte Koexistenzvolumina verwenden. Anfangsdampfanteile sind explizite Forschungseingaben. Numerische Übereinstimmung belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[VALIDATION.de.md](VALIDATION.de.md) + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) diff --git a/docs/RELAXING_FUEL.es.md b/docs/RELAXING_FUEL.es.md new file mode 100644 index 0000000..c9620af --- /dev/null +++ b/docs/RELAXING_FUEL.es.md @@ -0,0 +1,49 @@ +# Relajación de fase del combustible a velocidad finita + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · **Español** · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## Modelo físico + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. + +El cierre conserva el potencial frío del líquido compresible y el vapor ideal del modelo de equilibrio. La fracción inicial es explícita y no se proyecta al equilibrio. Con masa, volumen y energía interna fijos, la fracción se aproxima exponencialmente al objetivo con `phase_relaxation_time_ns` constante. El calor latente permanece en el balance interno. La afinidad química es el potencial del líquido menos el del vapor; su producto por la transferencia de fase, dividido por la temperatura, produce entropía no negativa. Es una ley de investigación, no una correlación de nucleación medida. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Transporte y método numérico + +Los flujos conservativos de Rusanov transportan cuatro campos. Cada intervalo CFL global aplica media fuente local, transporte y media fuente. Los depósitos compartidos reciben cada fuente una vez, independientemente del número de conductos. La fuente es exacta para estados aislados a volumen fijo; el transporte acoplado mantiene error de primer orden. CFL usa la cota acústica de fracción congelada. Las entropías de fase y conducto se comprueban por separado. Un estado fuera de límites revierte todo el lote. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Uso, evidencia y límites + +Ejecute `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Observe fracciones real y de equilibrio, afinidad, entropía de fase, balances de vapor en puertos y residuo global. Los historiales de evaporación y condensación separan por signo la transferencia neta de fuente de cada paso aceptado; no cuentan intercambios microscópicos brutos. Se verifican la solución exponencial independiente, derivadas de entropía, acústica congelada, límite rígido de equilibrio, autorrefinamiento temporal y refinamiento espacial acústico lineal independiente. Transacciones, reproducción portátil y MCP real se comprueban aparte; los valores están en la evidencia de validación. + +Los parámetros siguen `unverified`. Ambos puertos deben tener el mismo dominio y material; los relajantes rechazan tránsito de equilibrio. La relajación finita en depósitos no resuelve conversión química ni residencia dentro de una tobera sin volumen. Faltan deslizamiento de fases, tensión negativa del líquido, barrera de nucleación, pulverización, gas portador y receptor con combustión. Los depósitos móviles están mezclados con velocidad global nula; las celdas del conducto son rígidas con un propietario. Use vapor ideal diluido lejos de la zona crítica, límites declarados de presión positiva y temperatura, entalpía latente positiva y volúmenes de coexistencia separados. La fracción inicial es una entrada de investigación explícita. El acuerdo numérico no acredita calibración medida ni aceptación real de Unity. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[VALIDATION.es.md](VALIDATION.es.md) + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) diff --git a/docs/RELAXING_FUEL.fr.md b/docs/RELAXING_FUEL.fr.md new file mode 100644 index 0000000..451dfa5 --- /dev/null +++ b/docs/RELAXING_FUEL.fr.md @@ -0,0 +1,49 @@ +# Relaxation de phase du carburant à vitesse finie + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · **Français** · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## Modèle physique + +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. + +La fermeture conserve le potentiel froid du liquide compressible et la vapeur idéale du modèle d’équilibre. Le titre initial est explicite, sans projection à l’équilibre. À masse, volume et énergie interne fixes, le titre tend exponentiellement vers sa cible avec `phase_relaxation_time_ns` constant. La chaleur latente reste dans le bilan interne. L’affinité chimique est le potentiel du liquide moins celui de la vapeur ; son produit par le transfert de phase, divisé par la température, donne une production d’entropie non négative. Cette loi de recherche n’est pas une corrélation de nucléation mesurée. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Transport et méthode numérique + +Les flux conservatifs de Rusanov transportent quatre champs. Chaque intervalle CFL global applique une demi-source locale, le transport puis une demi-source. Un réservoir partagé reçoit chaque source une seule fois, quel que soit le nombre de conduits. La source est exacte pour un état isolé à volume fixe ; le transport couplé reste du premier ordre. Le CFL utilise une borne acoustique à titre gelé. Les entropies de phase et du conduit sont vérifiées séparément. Un état hors limites annule le lot entier. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Utilisation, preuves et limites + +Exécuter `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observer les titres réel et d’équilibre, l’affinité, l’entropie de phase, les inventaires de vapeur aux ports et le résidu global. Les historiques d’évaporation et de condensation séparent par signe le transfert net de source de chaque pas accepté ; ils ne comptent pas les échanges microscopiques bruts. Les vérifications couvrent la solution exponentielle indépendante, les dérivées d’entropie, l’acoustique gelée, la limite raide d’équilibre, l’auto-raffinement temporel et un raffinement spatial acoustique linéaire indépendant. Transactions, rejeu portable et MCP réel sont vérifiés séparément ; les valeurs figurent dans les preuves de validation. + +Les paramètres restent `unverified`. Les deux ports doivent avoir le même domaine et matériau ; les ports relaxants rejettent le transit à l’équilibre. Une relaxation finie dans les réservoirs ne résout ni conversion chimique ni séjour dans une buse de volume nul. Le modèle omet glissement, tension liquide négative, barrière de nucléation, spray, gaz porteur et récepteur en combustion. Les réservoirs mobiles sont mélangés sans vitesse moyenne ; les cellules du conduit restent rigides avec un propriétaire unique. Utiliser une vapeur idéale diluée loin du critique, dans les bornes déclarées de pression positive et température, avec enthalpie latente positive et volumes de coexistence distincts. Le titre initial est une entrée de recherche explicite. L’accord numérique n’établit ni étalonnage mesuré ni acceptation Unity réelle. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[VALIDATION.fr.md](VALIDATION.fr.md) + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) diff --git a/docs/RELAXING_FUEL.it.md b/docs/RELAXING_FUEL.it.md new file mode 100644 index 0000000..8dcf07f --- /dev/null +++ b/docs/RELAXING_FUEL.it.md @@ -0,0 +1,49 @@ +# Rilassamento di fase del combustibile a velocità finita + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · **Italiano** · [Português](RELAXING_FUEL.pt-BR.md) + +## Modello fisico + +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. + +La chiusura mantiene il potenziale freddo del liquido comprimibile e il vapore ideale del modello di equilibrio. La frazione iniziale è esplicita e non proiettata all’equilibrio. A massa, volume ed energia interna fissi, tende esponenzialmente al valore di equilibrio con `phase_relaxation_time_ns` costante. Il calore latente resta nel bilancio interno. L’affinità chimica è il potenziale del liquido meno quello del vapore; il prodotto con il trasferimento di fase, diviso per la temperatura, dà produzione entropica non negativa. È una legge di ricerca, non una correlazione di nucleazione misurata. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Trasporto e metodo numerico + +I flussi conservativi di Rusanov trasportano quattro campi. Ogni intervallo CFL globale applica mezza sorgente locale, trasporto e mezza sorgente. I serbatoi condivisi ricevono ogni sorgente una sola volta indipendentemente dal numero di condotti. La sorgente è esatta per stati isolati a volume fisso; il trasporto accoppiato mantiene errore del primo ordine. CFL usa il limite acustico a frazione congelata. Entropia di fase e del condotto sono verificate separatamente. Uno stato fuori limite annulla l’intero lotto. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Uso, prove e limiti + +Eseguire `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Osservare frazioni effettiva e di equilibrio, affinità, entropia di fase, bilanci di vapore alle porte e residuo globale. Le storie di evaporazione e condensazione separano per segno il trasferimento netto della sorgente di ogni passo accettato, senza contare i flussi microscopici lordi. Le prove includono soluzione esponenziale indipendente, derivate entropiche, acustica congelata, limite rigido di equilibrio, autoraffinamento temporale e raffinamento spaziale acustico lineare indipendente. Transazioni, riproduzione portatile e MCP reale sono verificati separatamente; i numeri sono nelle prove di validazione. + +I parametri restano `unverified`. Entrambe le porte richiedono stesso dominio e materiale; quelle rilassanti rifiutano il transito di equilibrio. Il rilassamento finito nei serbatoi non risolve chimica o permanenza dentro un ugello senza volume. Mancano scorrimento delle fasi, tensione liquida negativa, barriera di nucleazione, spray, gas vettore e ricevitore in combustione. I serbatoi mobili sono miscelati con velocità media nulla; le celle interne restano rigide con un proprietario. Usare vapore ideale diluito lontano dal critico, limiti dichiarati di pressione positiva e temperatura, entalpia latente positiva e volumi di coesistenza separati. La frazione iniziale è un ingresso di ricerca esplicito. L’accordo numerico non attesta calibrazione misurata né accettazione Unity reale. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[VALIDATION.it.md](VALIDATION.it.md) + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) diff --git a/docs/RELAXING_FUEL.ja.md b/docs/RELAXING_FUEL.ja.md new file mode 100644 index 0000000..1c48d44 --- /dev/null +++ b/docs/RELAXING_FUEL.ja.md @@ -0,0 +1,49 @@ +# 有限速度の燃料相変化緩和 + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · **日本語** · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## 物理モデル + +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 + +閉包は平衡燃料モデルの圧縮性液体の冷ポテンシャルと理想蒸気を引き継ぎます。初期質量分率は明示し、平衡状態へ投影しません。質量、体積、内部エネルギーを固定したとき、分率は一定の `phase_relaxation_time_ns` で平衡値へ指数的に近づきます。潜熱は内部のエネルギー収支に含まれます。化学親和力は液相と蒸気相の化学ポテンシャル差であり、相変化との積を温度で割ると非負のエントロピー生成になります。これは研究用緩和則で、実測核生成相関ではありません。 + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 輸送と数値手法 + +保存型 Rusanov 流束で四つの場を輸送します。各グローバル CFL 区間で局所相変化の半ステップ、輸送、半ステップを実行します。共有貯槽の源項は管路数にかかわらず一度だけ適用します。孤立定容状態の源項軌跡は厳密ですが、結合輸送は一次誤差を持ちます。CFL は質量分率凍結時の音速上限を使用し、相変化と管路のエントロピーを個別に検査します。範囲外の状態はバッチ全体をロールバックします。 + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## 使用、検証と制約 + +`relaxing-fuel-evaporation` または `relaxing-fuel-duct` を実行します。実際と平衡の分率、化学親和力、相変化エントロピー、ポートの蒸気収支、全体の蒸気残差を観測できます。蒸発・凝縮履歴は受理した各刻みの正味源項を符号で分けた値で、微視的な順逆の総流量ではありません。独立指数解、エントロピー微分、凍結音響、剛な平衡極限、時間自己細分化、独立線形音響による格子細分化を確認します。トランザクション、可搬再生、実 MCP は別々に検証し、数値は検証証拠に記録します。 + +パラメータは `unverified` です。両ポートの領域と材料は同一とし、緩和ポートでは平衡通過を拒否します。貯槽の有限緩和は、ゼロ容積ノズル内部の化学変化や滞留時間を解像しません。相間滑り、液体負圧張力、核生成障壁則、噴霧、搬送ガス、燃焼受入室は含みません。移動貯槽は一様混合で平均速度ゼロ、管路内セルは剛体で所有者は一つです。臨界挙動から離れた希薄理想蒸気、宣言された正圧・温度範囲、正の潜熱エンタルピー、分離した共存比体積が必要です。初期蒸気分率は明示的な研究入力です。数値の一致は実測校正や実 Unity 検収を証明しません。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[VALIDATION.ja.md](VALIDATION.ja.md) + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) diff --git a/docs/RELAXING_FUEL.ko.md b/docs/RELAXING_FUEL.ko.md new file mode 100644 index 0000000..d9f83c4 --- /dev/null +++ b/docs/RELAXING_FUEL.ko.md @@ -0,0 +1,49 @@ +# 유한 속도 연료 상변화 완화 + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · **한국어** · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## 물리 모델 + +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. + +폐쇄식은 평형 연료 모델의 압축성 액체 냉각 퍼텐셜과 이상 증기를 유지합니다. 초기 분율은 명시하며 평형으로 투영하지 않습니다. 질량, 부피와 내부 에너지가 일정할 때 분율은 일정한 `phase_relaxation_time_ns`로 평형값에 지수적으로 접근합니다. 잠열은 내부 에너지 수지에 남습니다. 화학 친화도는 액체와 증기의 화학 퍼텐셜 차이며, 상변화율과의 곱을 온도로 나누면 음이 아닌 엔트로피 생성이 됩니다. 이는 연구용 완화 법칙으로 실측 핵생성 상관식이 아닙니다. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 수송과 수치 방법 + +보존형 Rusanov 플럭스가 네 장을 수송합니다. 각 전역 CFL 구간에서 국소 상변화 반 단계, 수송, 반 단계를 적용합니다. 공유 저장조는 덕트 수와 무관하게 소스항을 한 번씩 받습니다. 고립된 정적 부피 상태의 소스 궤적은 정확하지만 결합 수송은 일차 오차를 가집니다. CFL은 동결 분율 음속 상한을 사용합니다. 상변화와 덕트 엔트로피를 별도로 검사하며 범위 이탈은 전체 배치를 롤백합니다. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## 사용, 증거와 한계 + +`relaxing-fuel-evaporation` 또는 `relaxing-fuel-duct`를 실행합니다. 실제 및 평형 분율, 화학 친화도, 상변화 엔트로피, 포트 증기 수지와 전역 증기 잔차를 관찰합니다. 증발·응축 이력은 수락된 각 틱의 순 소스 이동을 부호별로 나누며 미시적인 정·역방향 총 이동은 아닙니다. 독립 지수 해, 엔트로피 미분, 동결 음향, 강성 평형 극한, 시간 자체 세분화와 독립 선형 음향 격자 세분화를 확인합니다. 트랜잭션, 이식 가능한 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +매개변수는 `unverified`입니다. 양쪽 포트는 동일한 도메인과 재료를 사용하며 완화 포트는 평형 통과를 거부합니다. 저장조의 유한 완화는 부피가 없는 노즐 내부의 화학 변화나 체류 시간을 해상하지 않습니다. 상간 미끄럼, 액체 음압 장력, 핵생성 장벽 법칙, 분무, 운반 가스와 연소 수신부는 없습니다. 이동 저장조는 균일 혼합 및 평균 속도 영이며 덕트 내부 셀은 강체이고 소유자는 하나입니다. 임계 거동에서 벗어난 희박 이상 증기, 선언된 양압·온도 범위, 양의 잠열 엔탈피와 분리된 공존 비체적이 필요합니다. 초기 증기 분율은 명시적인 연구 입력입니다. 수치 일치는 실측 보정이나 실제 Unity 인수를 입증하지 않습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) diff --git a/docs/RELAXING_FUEL.md b/docs/RELAXING_FUEL.md new file mode 100644 index 0000000..adae271 --- /dev/null +++ b/docs/RELAXING_FUEL.md @@ -0,0 +1,49 @@ +# Finite-rate fuel phase relaxation + +**English** · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## Physical model + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. + +The closure retains the compressible liquid cold potential and ideal vapor of the equilibrium fuel model. Initial quality is explicit and is not projected to equilibrium. At fixed mass, volume and internal energy, quality approaches the equilibrium target exponentially with constant `phase_relaxation_time_ns`. Latent heat stays inside the energy balance. Chemical affinity is liquid minus vapor chemical potential; its product with phase transfer gives nonnegative entropy production divided by temperature. This is a research relaxation law, not a measured nucleation correlation. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Transport and numerical method + +Conservative Rusanov fluxes advect four fields. Each global CFL interval applies half a local phase source, transport, then half a source. Shared reservoirs receive each source once, regardless of duct count. The source trajectory is exact for isolated fixed-volume states; the coupled method retains first-order transport error. CFL uses the frozen-quality acoustic bound. Local phase and duct entropy changes are checked separately. Out-of-range states reject the complete batch. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Use, evidence and limits + +Run `relaxing-fuel-evaporation` or `relaxing-fuel-duct`. Observe actual and equilibrium quality, chemical affinity, phase entropy, vapor port inventories and the global vapor residual. Evaporated/condensed histories split the net source transfer of each accepted tick by sign; they are not gross microscopic forward/reverse traffic. Checks cover the independent exponential solution, entropy derivatives, frozen acoustics, stiff equilibrium limit, temporal self-refinement and independent linear-acoustic mesh refinement. Transactions, portable replay and actual MCP are checked separately; numbers are recorded in validation evidence. + +Parameters remain `unverified`. Both nozzle ports must use the same domain and material; relaxing ports reject equilibrium transit. Finite bulk phase relaxation does not resolve chemical conversion or residence inside a zero-volume nozzle. The model has no phase slip, liquid tension, nucleation-barrier law, spray, carrier gas or fired receiver. Moving reservoirs are mixed with zero bulk velocity; internal duct cells remain rigid and have one owner. Use dilute ideal vapor away from critical behavior, declared positive-pressure/temperature bounds, positive latent enthalpy and separated coexistence volumes. Initial vapor quality is explicit research input. Numerical agreement does not establish measured calibration or actual Unity acceptance. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[VALIDATION.md](VALIDATION.md) + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) diff --git a/docs/RELAXING_FUEL.pt-BR.md b/docs/RELAXING_FUEL.pt-BR.md new file mode 100644 index 0000000..28ce240 --- /dev/null +++ b/docs/RELAXING_FUEL.pt-BR.md @@ -0,0 +1,49 @@ +# Relaxação de fase do combustível com taxa finita + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · **Português** + +## Modelo físico + +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. + +O fechamento mantém o potencial frio do líquido compressível e o vapor ideal do modelo de equilíbrio. A fração inicial é explícita e não é projetada ao equilíbrio. Com massa, volume e energia interna fixos, a fração converge exponencialmente ao alvo com `phase_relaxation_time_ns` constante. O calor latente permanece no balanço interno. A afinidade química é o potencial do líquido menos o do vapor; seu produto pela transferência de fase, dividido pela temperatura, gera entropia não negativa. É uma lei de pesquisa, não uma correlação de nucleação medida. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Transporte e método numérico + +Fluxos conservativos de Rusanov transportam quatro campos. Cada intervalo CFL global aplica meia fonte local, transporte e meia fonte. Reservatórios compartilhados recebem cada fonte uma vez, independentemente do número de dutos. A fonte é exata para estados isolados de volume fixo; o transporte acoplado mantém erro de primeira ordem. CFL usa o limite acústico de fração congelada. Entropias de fase e duto são verificadas separadamente. Estados fora dos limites revertem o lote inteiro. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Uso, evidências e limites + +Execute `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observe frações real e de equilíbrio, afinidade, entropia de fase, balanços de vapor nas portas e resíduo global. Históricos de evaporação e condensação separam por sinal a transferência líquida da fonte em cada passo aceito; não contam trocas microscópicas brutas. As verificações cobrem solução exponencial independente, derivadas de entropia, acústica congelada, limite rígido de equilíbrio, autorrefinamento temporal e refinamento espacial acústico linear independente. Transações, reprodução portátil e MCP real são verificados separadamente; os números ficam nas evidências de validação. + +Os parâmetros continuam `unverified`. Ambas as portas exigem mesmo domínio e material; portas relaxantes rejeitam trânsito de equilíbrio. Relaxação finita nos reservatórios não resolve química ou residência dentro de um bocal sem volume. Não há deslizamento de fases, tensão líquida negativa, barreira de nucleação, spray, gás portador ou receptor com combustão. Reservatórios móveis são misturados com velocidade média nula; células internas continuam rígidas com um proprietário. Use vapor ideal diluído longe do crítico, limites declarados de pressão positiva e temperatura, entalpia latente positiva e volumes de coexistência separados. A fração inicial é entrada explícita de pesquisa. Concordância numérica não comprova calibração medida nem aceitação real do Unity. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) diff --git a/docs/RELAXING_FUEL.ru.md b/docs/RELAXING_FUEL.ru.md new file mode 100644 index 0000000..16941ad --- /dev/null +++ b/docs/RELAXING_FUEL.ru.md @@ -0,0 +1,49 @@ +# Фазовая релаксация топлива с конечной скоростью + +[English](RELAXING_FUEL.md) · [简体中文](RELAXING_FUEL.zh-CN.md) · [Français](RELAXING_FUEL.fr.md) · **Русский** · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## Физическая модель + +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. + +Замыкание сохраняет холодный потенциал сжимаемой жидкости и идеальный пар равновесной модели. Начальная доля задаётся явно и не проецируется на равновесие. При постоянных массе, объёме и внутренней энергии доля экспоненциально стремится к равновесной с постоянным `phase_relaxation_time_ns`. Скрытая теплота остаётся внутри энергобаланса. Химическое сродство равно разности потенциалов жидкости и пара; его произведение на фазовый перенос, делённое на температуру, даёт неотрицательное производство энтропии. Это исследовательский закон, а не измеренная корреляция зародышеобразования. + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Перенос и численный метод + +Консервативные потоки Русанова переносят четыре поля. Каждый глобальный интервал CFL включает половину локального источника, перенос и вторую половину источника. Общий резервуар получает каждый источник один раз независимо от числа каналов. Источник точен для изолированного состояния постоянного объёма; связанный перенос остаётся первого порядка. CFL использует верхнюю границу замороженной скорости звука. Энтропия фазового перехода и канала проверяется раздельно. Выход за границы откатывает весь пакет. + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## Использование, доказательства и ограничения + +Запустите `relaxing-fuel-evaporation` или `relaxing-fuel-duct`. Доступны фактическая и равновесная доли, сродство, фазовая энтропия, паровые балансы портов и глобальная невязка. Истории испарения и конденсации разделяют по знаку суммарный перенос источника за принятый шаг, а не микроскопические встречные потоки. Проверяются независимое экспоненциальное решение, производные энтропии, замороженная акустика, жёсткий равновесный предел, временное самосгущение и независимое линейно-акустическое сгущение сетки. Транзакции, переносимое воспроизведение и реальный MCP проверяются отдельно; числа приведены в доказательствах валидации. + +Параметры остаются `unverified`. Оба порта должны иметь одинаковые домен и материал; равновесный проход для релаксирующих портов запрещён. Конечная релаксация в резервуарах не разрешает химию или время пребывания внутри сопла нулевого объёма. Нет скольжения фаз, отрицательного натяжения жидкости, барьера зародышеобразования, распыла, несущего газа или горящего приёмника. Подвижные резервуары перемешаны с нулевой средней скоростью; внутренние ячейки жёсткие и имеют одного владельца. Нужен разреженный идеальный пар вдали от критической области, заявленные положительные давления и температуры, положительная скрытая энтальпия и различные объёмы сосуществования. Начальная доля пара задаётся явно как исследовательская. Численное совпадение не доказывает измеренную калибровку или приёмку Unity. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[VALIDATION.ru.md](VALIDATION.ru.md) + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) diff --git a/docs/RELAXING_FUEL.zh-CN.md b/docs/RELAXING_FUEL.zh-CN.md new file mode 100644 index 0000000..66a4d88 --- /dev/null +++ b/docs/RELAXING_FUEL.zh-CN.md @@ -0,0 +1,49 @@ +# 有限速率燃料相变弛豫 + +[English](RELAXING_FUEL.md) · **简体中文** · [Français](RELAXING_FUEL.fr.md) · [Русский](RELAXING_FUEL.ru.md) · [日本語](RELAXING_FUEL.ja.md) · [한국어](RELAXING_FUEL.ko.md) · [Deutsch](RELAXING_FUEL.de.md) · [Español](RELAXING_FUEL.es.md) · [Italiano](RELAXING_FUEL.it.md) · [Português](RELAXING_FUEL.pt-BR.md) + +## 物理模型 + +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 + +闭合关系沿用平衡燃料模型的可压缩液体冷势能与理想蒸气。初始质量分数必须显式给出,不会被投影到平衡态。在质量、体积和内能固定时,质量分数按恒定的 `phase_relaxation_time_ns` 指数趋近平衡目标;潜热保留在内部能量平衡中。化学亲和势为液相减蒸气相化学势,其与相变速率的乘积除以温度给出非负熵产生。这是研究弛豫定律,不是实测成核关联式。 + +[Lund: A hierarchy of relaxation models for two-phase flow](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 输运与数值方法 + +守恒 Rusanov 通量输运四个场。每个全局 CFL 区间依次执行半步局部相变、输运和半步相变;共享储腔每次只接受一次源项,与连接管道数无关。孤立定容状态的源项轨迹为精确解,耦合方法仍具有一阶输运误差。CFL 使用冻结质量分数声速上界,局部相变与管道熵变分别检查;越界状态会回滚整个批次。 + +```text +x = vapor_mass / total_mass; v = 1/rho +v_liquid(p) = 1 / (rho0 (1 + p/K)); v_vapor(T,p) = R T/p +v = (1-x) v_liquid + x v_vapor +u = (1-x) [c_liquid T + a + u_cold(p)] + x c_vapor T +u_cold(p) = K/rho0 [ln(1+p/K) - (p/K)/(1+p/K)] + +dx/dt = (x_equilibrium(rho,u) - x)/tau +x(t+h) = x_equilibrium + (x(t)-x_equilibrium) exp(-h/tau) +d(total_mass)/dt = d(total_internal_energy)/dt = d(volume)/dt = 0 (local source) +affinity = mu_liquid - mu_vapor +(ds/dx) at fixed u,v = affinity/T +ds/dt = affinity (x_equilibrium-x)/(T tau) >= 0 + +cp_frozen = (1-x) c_liquid + x (c_vapor+R) +alpha = x R/cp_frozen +c_frozen^2 = v^2 / [(1-x) v_liquid/(K+p) + (1-alpha) x R T/p^2] +U = (rho, rho velocity, rho total_specific_energy, rho x) +F = (rho velocity, rho velocity^2+p, + velocity (rho total_specific_energy+p), rho x velocity) +``` + +## 使用、证据与限制 + +运行 `relaxing-fuel-evaporation` 或 `relaxing-fuel-duct`。可观察实际与平衡质量分数、化学亲和势、相变熵、端口蒸气库存和全局蒸气残差。蒸发、凝结历史按每个已接受时间步的净源项转移量正负累计,不表示微观正反向总通量。检查覆盖独立指数解析解、熵导数、冻结声学、刚性平衡极限、时间自细化和独立线性声学网格细化。事务、可移植重放与真实 MCP 分别验证;数值记录在验证证据中。 + +参数仍为 `unverified`。喷嘴两端必须具有相同域和材料,弛豫端口拒绝平衡输运模式。有限速率体相弛豫不表示已解析零容积喷嘴内部的化学转化或停留时间。模型不含相间滑移、液体负压张力、成核势垒定律、喷雾、载气或燃烧接收腔。运动储腔保持均匀混合且整体流速为零;管道内部单元仍为刚性且各有一个所有者。仅适用远离临界行为的稀薄理想蒸气,并须满足材料声明的正压、温度边界、正潜焓与分离的共存比容。初始蒸气质量分数是显式研究输入。数值吻合不证明实测标定或实际 Unity 验收。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.de.md b/docs/RELAXING_FUEL_BOUNDARIES.de.md new file mode 100644 index 0000000..e1d6a04 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.de.md @@ -0,0 +1,39 @@ +# Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · **Deutsch** · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Physikalisches Modell + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Kopplung und Numerik + +Die Entropiebeziehung bei festem Anteil bestimmt Druck und Temperatur nach der Volumenänderung. Die Arbeit enthält kalte Flüssigkeitskompression und nutzt stabile Inkrementfunktionen für kleine Bewegungen. Dieselbe diskrete Arbeit treibt das Wellenmoment. Jedes globale Intervall wendet die Phasenquelle jedes Knotens einmal um den konservativen Kanal- und eingefrorenen Düsentransport an. Kanal-CFL und 0.02 des kleineren Portinventars begrenzen Intervalle; höchstens 4096 sind erlaubt. Mechanische Arbeit und Quelle bleiben getrennt. Gekoppelter Transport bleibt erster Ordnung und benötigt zeitliche Verfeinerung. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Nutzung, Nachweise und Grenzen + +`relaxing-fuel-chamber` oder `relaxing-pump-needle` ausführen. Beobachtbar sind Kammervolumen/-arbeit, tatsächlicher und Gleichgewichtsanteil, Phasenentropie, `total_vapor_delivered`, Portinventare und globales Dampfresiduum. Prüfungen vergleichen reine Adiabaten, unabhängige Druckquadratur bei festem Anteil, infinitesimale Arbeit, reversiblen Zyklus und unabhängige Wellen-ODE mit idealem Dampf. Gekoppelte Verfeinerung, Quellzeit gemeinsamer Behälter, vollständige Bilanzen, Abbruch, Rücksetzung, Zweige, Allokationen, portables Replay und tatsächliches MCP werden getrennt geprüft. Zahlen stehen in den Validierungsnachweisen. + +Parameter bleiben `unverified`. Beide Ports benötigen dieselbe Domäne und dasselbe Material; relaxierende Ports lehnen Gleichgewichtstransit ab. Endliche Relaxation im Behälter löst keine Chemie oder Verweilzeit in einer volumenlosen Düse auf. Phasenschlupf, Flüssigkeitszugspannung, Keimbildungsbarriere, Spray, Trägergas und brennende Empfänger fehlen. Bewegte Behälter sind gemischt mit mittlerer Geschwindigkeit null; innere Kanalzellen bleiben starr mit einem Besitzer. Verdünnten idealen Dampf fern vom kritischen Bereich, erklärte positive Druck-/Temperaturgrenzen, positive latente Enthalpie und getrennte Koexistenzvolumina verwenden. Anfangsdampfanteile sind explizite Forschungseingaben. Numerische Übereinstimmung belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. + +[VALIDATION.de.md](VALIDATION.de.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.es.md b/docs/RELAXING_FUEL_BOUNDARIES.es.md new file mode 100644 index 0000000..f504f38 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.es.md @@ -0,0 +1,39 @@ +# Bombas de combustible con relajación y dosificación congelada + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · **Español** · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Modelo físico + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Acoplamiento y cálculo numérico + +La relación de entropía a fracción fija determina presión y temperatura tras cambiar el volumen. El trabajo incluye compresión fría del líquido y funciones incrementales estables para movimientos pequeños. El mismo trabajo discreto genera el par del eje. Cada intervalo global aplica una vez la fuente de cada nodo alrededor del transporte conservativo por conducto y tobera congelada. CFL y 0.02 del menor inventario de puerto limitan los intervalos, con máximo de 4096. Trabajo y fuente se separan. El transporte acoplado sigue siendo de primer orden y requiere refinamiento temporal. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Uso, evidencia y límites + +Ejecute `relaxing-fuel-chamber` o `relaxing-pump-needle`. Observe volumen/trabajo, fracciones real y de equilibrio, entropía de fase, `total_vapor_delivered`, inventarios de puertos y residuo global de vapor. Se comparan adiabáticas puras, cuadratura independiente de presión a fracción fija, trabajo infinitesimal, ciclo reversible y ODE independiente de eje con vapor ideal. Refinamiento acoplado, tiempo de fuente en depósitos compartidos, balances completos, cancelación, reversión, ramas, asignaciones, reproducción portátil y MCP real se verifican aparte. Los valores figuran en la evidencia de validación. + +Los parámetros siguen `unverified`. Ambos puertos deben tener el mismo dominio y material; los relajantes rechazan tránsito de equilibrio. La relajación finita en depósitos no resuelve conversión química ni residencia dentro de una tobera sin volumen. Faltan deslizamiento de fases, tensión negativa del líquido, barrera de nucleación, pulverización, gas portador y receptor con combustión. Los depósitos móviles están mezclados con velocidad global nula; las celdas del conducto son rígidas con un propietario. Use vapor ideal diluido lejos de la zona crítica, límites declarados de presión positiva y temperatura, entalpía latente positiva y volúmenes de coexistencia separados. La fracción inicial es una entrada de investigación explícita. El acuerdo numérico no acredita calibración medida ni aceptación real de Unity. + +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. + +[VALIDATION.es.md](VALIDATION.es.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.fr.md b/docs/RELAXING_FUEL_BOUNDARIES.fr.md new file mode 100644 index 0000000..be656de --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.fr.md @@ -0,0 +1,39 @@ +# Pompes à carburant relaxant et dosage à phase gelée + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · **Français** · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Modèle physique + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Couplage et calcul numérique + +La relation d’entropie à titre fixe détermine pression et température après variation de volume. Le travail inclut l’énergie froide de compression liquide et utilise des fonctions incrémentales stables pour les petits mouvements. Le même travail discret produit le couple d’arbre. Chaque intervalle global applique une fois la source de chaque nœud autour du transport conservatif par conduit et buse gelée. Le CFL et une fraction de 0.02 du plus petit inventaire de port bornent les intervalles, limités à 4096. Travail mécanique et source restent séparés. Le transport couplé est du premier ordre et exige un raffinement temporel. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Utilisation, preuves et limites + +Exécuter `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observer volume et travail, titres réel et d’équilibre, entropie de phase, `total_vapor_delivered`, inventaires des ports et résidu global de vapeur. Les essais comparent adiabatiques pures, quadrature de pression indépendante à titre fixe, travail infinitésimal, cycle réversible et ODE indépendante d’arbre à vapeur idéale. Raffinement couplé, temps de source des réservoirs partagés, bilans complets, annulation, retour arrière, branches, allocations, rejeu portable et MCP réel sont vérifiés séparément. Les valeurs figurent dans les preuves de validation. + +Les paramètres restent `unverified`. Les deux ports doivent avoir le même domaine et matériau ; les ports relaxants rejettent le transit à l’équilibre. Une relaxation finie dans les réservoirs ne résout ni conversion chimique ni séjour dans une buse de volume nul. Le modèle omet glissement, tension liquide négative, barrière de nucléation, spray, gaz porteur et récepteur en combustion. Les réservoirs mobiles sont mélangés sans vitesse moyenne ; les cellules du conduit restent rigides avec un propriétaire unique. Utiliser une vapeur idéale diluée loin du critique, dans les bornes déclarées de pression positive et température, avec enthalpie latente positive et volumes de coexistence distincts. Le titre initial est une entrée de recherche explicite. L’accord numérique n’établit ni étalonnage mesuré ni acceptation Unity réelle. + +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. + +[VALIDATION.fr.md](VALIDATION.fr.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.it.md b/docs/RELAXING_FUEL_BOUNDARIES.it.md new file mode 100644 index 0000000..8141a34 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.it.md @@ -0,0 +1,39 @@ +# Pompe a combustibile con rilassamento e dosaggio congelato + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · **Italiano** · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Modello fisico + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Accoppiamento e calcolo numerico + +La relazione entropica a frazione fissa determina pressione e temperatura dopo la variazione di volume. Il lavoro include compressione fredda del liquido e funzioni incrementali stabili per piccoli movimenti. Lo stesso lavoro discreto determina la coppia all’albero. Ogni intervallo globale applica una volta la sorgente di ogni nodo attorno al trasporto conservativo in condotto e ugello congelato. CFL e 0.02 dell’inventario minore alle porte limitano gli intervalli, al massimo 4096. Lavoro e sorgente restano separati. Il trasporto accoppiato rimane del primo ordine e richiede raffinamento temporale. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Uso, prove e limiti + +Eseguire `relaxing-fuel-chamber` o `relaxing-pump-needle`. Osservare volume/lavoro, frazioni effettiva e di equilibrio, entropia di fase, `total_vapor_delivered`, inventari alle porte e residuo globale di vapore. Si confrontano adiabatiche pure, quadratura indipendente della pressione a frazione fissa, lavoro infinitesimo, ciclo reversibile e ODE indipendente dell’albero con vapore ideale. Raffinamento accoppiato, tempo di sorgente condiviso, bilanci completi, annullamento, rollback, rami, allocazioni, riproduzione portatile e MCP reale sono verificati separatamente. I numeri sono nelle prove di validazione. + +I parametri restano `unverified`. Entrambe le porte richiedono stesso dominio e materiale; quelle rilassanti rifiutano il transito di equilibrio. Il rilassamento finito nei serbatoi non risolve chimica o permanenza dentro un ugello senza volume. Mancano scorrimento delle fasi, tensione liquida negativa, barriera di nucleazione, spray, gas vettore e ricevitore in combustione. I serbatoi mobili sono miscelati con velocità media nulla; le celle interne restano rigide con un proprietario. Usare vapore ideale diluito lontano dal critico, limiti dichiarati di pressione positiva e temperatura, entalpia latente positiva e volumi di coesistenza separati. La frazione iniziale è un ingresso di ricerca esplicito. L’accordo numerico non attesta calibrazione misurata né accettazione Unity reale. + +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. + +[VALIDATION.it.md](VALIDATION.it.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.ja.md b/docs/RELAXING_FUEL_BOUNDARIES.ja.md new file mode 100644 index 0000000..2326aa6 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.ja.md @@ -0,0 +1,39 @@ +# 相変化緩和燃料ポンプと凍結相計量 + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · **日本語** · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## 物理モデル + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 結合と数値手法 + +質量分率固定のエントロピー関係から体積変化後の圧力と温度を求めます。仕事は液体の冷圧縮エネルギーを含み、小変位では安定した増分関数を使います。同じ離散仕事が軸トルクを与えます。各全体区間で保存型管路・凍結ノズル輸送の前後に各ノードの相変化源項を一度ずつ適用します。区間は管路 CFL と小さいポート在庫の 0.02 比率で制限し、最大 4096 区間です。機械仕事と源項は分離し、結合輸送は一次精度で時間細分化を要します。 + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## 使用、検証と制約 + +`relaxing-fuel-chamber` または `relaxing-pump-needle` を実行します。体積と仕事、実際と平衡の分率、相変化エントロピー、`total_vapor_delivered`、ポート在庫、全体蒸気残差を観測します。純相断熱線、独立した分率固定の圧力積分、微小仕事、可逆サイクル、独立理想蒸気軸 ODE と比較します。有限速度結合の細分化、共有貯槽の源項時間、全収支、取消、ロールバック、分岐、割当、可搬再生、実 MCP は個別に検証し、数値は検証証拠に記録します。 + +パラメータは `unverified` です。両ポートの領域と材料は同一とし、緩和ポートでは平衡通過を拒否します。貯槽の有限緩和は、ゼロ容積ノズル内部の化学変化や滞留時間を解像しません。相間滑り、液体負圧張力、核生成障壁則、噴霧、搬送ガス、燃焼受入室は含みません。移動貯槽は一様混合で平均速度ゼロ、管路内セルは剛体で所有者は一つです。臨界挙動から離れた希薄理想蒸気、宣言された正圧・温度範囲、正の潜熱エンタルピー、分離した共存比体積が必要です。初期蒸気分率は明示的な研究入力です。数値の一致は実測校正や実 Unity 検収を証明しません。 + +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 + +[VALIDATION.ja.md](VALIDATION.ja.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.ko.md b/docs/RELAXING_FUEL_BOUNDARIES.ko.md new file mode 100644 index 0000000..b72adec --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.ko.md @@ -0,0 +1,39 @@ +# 상변화 완화 연료 펌프와 동결 상 계량 + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · **한국어** · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## 물리 모델 + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 결합과 수치 방법 + +분율 고정 엔트로피 관계로 부피 변화 후 압력과 온도를 구합니다. 일은 액체 냉압축 에너지를 포함하며 작은 변위에는 안정적인 증분 함수를 씁니다. 동일한 이산 일이 축 토크를 결정합니다. 각 전역 구간에서 보존 덕트 및 동결 노즐 수송 전후에 각 노드의 상변화 소스항을 한 번씩 적용합니다. 구간은 덕트 CFL과 더 작은 포트 재고의 0.02 비율로 제한하며 최대 4096개입니다. 기계 일과 소스는 분리합니다. 결합 수송은 일차이며 시간 세분화가 필요합니다. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## 사용, 증거와 한계 + +`relaxing-fuel-chamber` 또는 `relaxing-pump-needle`를 실행합니다. 챔버 부피와 일, 실제 및 평형 분율, 상변화 엔트로피, `total_vapor_delivered`, 포트 재고와 전역 증기 잔차를 관찰합니다. 순수 상 단열선, 독립 분율 고정 압력 적분, 미소 일, 가역 사이클과 독립 이상 증기 축 ODE를 비교합니다. 유한 속도 결합 세분화, 공유 저장조 소스 시간, 전체 수지, 취소, 롤백, 분기, 할당, 이식 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +매개변수는 `unverified`입니다. 양쪽 포트는 동일한 도메인과 재료를 사용하며 완화 포트는 평형 통과를 거부합니다. 저장조의 유한 완화는 부피가 없는 노즐 내부의 화학 변화나 체류 시간을 해상하지 않습니다. 상간 미끄럼, 액체 음압 장력, 핵생성 장벽 법칙, 분무, 운반 가스와 연소 수신부는 없습니다. 이동 저장조는 균일 혼합 및 평균 속도 영이며 덕트 내부 셀은 강체이고 소유자는 하나입니다. 임계 거동에서 벗어난 희박 이상 증기, 선언된 양압·온도 범위, 양의 잠열 엔탈피와 분리된 공존 비체적이 필요합니다. 초기 증기 분율은 명시적인 연구 입력입니다. 수치 일치는 실측 보정이나 실제 Unity 인수를 입증하지 않습니다. + +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. + +[VALIDATION.ko.md](VALIDATION.ko.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.md b/docs/RELAXING_FUEL_BOUNDARIES.md new file mode 100644 index 0000000..ad84863 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.md @@ -0,0 +1,39 @@ +# Relaxing fuel pumps and frozen metering + +**English** · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Physical model + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Coupling and numerics + +The fixed-quality entropy relation determines pressure and temperature after a volume change. Work includes liquid cold compression energy and uses stable incremental functions for small motion. The identical discrete work drives shaft torque. Global intervals apply each node's phase source once around conservative duct and frozen nozzle transport. Duct CFL and a 0.02 fraction of the smaller nozzle-port inventory bound intervals; at most 4096 intervals are allowed. Mechanical work is separated from source evolution. Coupled transport remains first order and needs temporal refinement. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Use, evidence and limits + +Run `relaxing-fuel-chamber` or `relaxing-pump-needle`. Observe chamber volume/work, actual and equilibrium quality, phase entropy, `total_vapor_delivered`, port inventories and the global vapor residual. Checks compare pure-phase adiabats, independent fixed-quality pressure quadrature, infinitesimal work, a reversible cycle and an independent ideal-vapor shaft ODE. Coupled finite-rate refinement, shared-reservoir source time, complete ledgers, cancellation, rollback, branches, allocations, portable replay and actual MCP have separate checks. Numerical values are in validation evidence. + +Parameters remain `unverified`. Both nozzle ports must use the same domain and material; relaxing ports reject equilibrium transit. Finite bulk phase relaxation does not resolve chemical conversion or residence inside a zero-volume nozzle. The model has no phase slip, liquid tension, nucleation-barrier law, spray, carrier gas or fired receiver. Moving reservoirs are mixed with zero bulk velocity; internal duct cells remain rigid and have one owner. Use dilute ideal vapor away from critical behavior, declared positive-pressure/temperature bounds, positive latent enthalpy and separated coexistence volumes. Initial vapor quality is explicit research input. Numerical agreement does not establish measured calibration or actual Unity acceptance. + +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. + +[VALIDATION.md](VALIDATION.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.pt-BR.md b/docs/RELAXING_FUEL_BOUNDARIES.pt-BR.md new file mode 100644 index 0000000..eb106a2 --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.pt-BR.md @@ -0,0 +1,39 @@ +# Bombas de combustível com relaxação e dosagem congelada + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · **Português** + +## Modelo físico + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Acoplamento e método numérico + +A relação de entropia com fração fixa determina pressão e temperatura após variar o volume. O trabalho inclui compressão fria do líquido e funções incrementais estáveis para pequenos movimentos. O mesmo trabalho discreto gera o torque do eixo. Cada intervalo global aplica uma vez a fonte de cada nó ao redor do transporte conservativo em duto e bocal congelado. CFL e 0.02 do menor inventário de porta limitam os intervalos, no máximo 4096. Trabalho e fonte ficam separados. O transporte acoplado continua de primeira ordem e exige refinamento temporal. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Uso, evidências e limites + +Execute `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observe volume/trabalho, frações real e de equilíbrio, entropia de fase, `total_vapor_delivered`, inventários das portas e resíduo global de vapor. As verificações comparam adiabáticas puras, quadratura independente da pressão com fração fixa, trabalho infinitesimal, ciclo reversível e ODE independente do eixo com vapor ideal. Refinamento acoplado, tempo de fonte compartilhado, balanços completos, cancelamento, reversão, ramificações, alocações, reprodução portátil e MCP real são verificados separadamente. Os números estão nas evidências de validação. + +Os parâmetros continuam `unverified`. Ambas as portas exigem mesmo domínio e material; portas relaxantes rejeitam trânsito de equilíbrio. Relaxação finita nos reservatórios não resolve química ou residência dentro de um bocal sem volume. Não há deslizamento de fases, tensão líquida negativa, barreira de nucleação, spray, gás portador ou receptor com combustão. Reservatórios móveis são misturados com velocidade média nula; células internas continuam rígidas com um proprietário. Use vapor ideal diluído longe do crítico, limites declarados de pressão positiva e temperatura, entalpia latente positiva e volumes de coexistência separados. A fração inicial é entrada explícita de pesquisa. Concordância numérica não comprova calibração medida nem aceitação real do Unity. + +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. + +[VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.ru.md b/docs/RELAXING_FUEL_BOUNDARIES.ru.md new file mode 100644 index 0000000..797ef5f --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.ru.md @@ -0,0 +1,39 @@ +# Релаксационные топливные насосы и дозирование с замороженной фазой + +[English](RELAXING_FUEL_BOUNDARIES.md) · [简体中文](RELAXING_FUEL_BOUNDARIES.zh-CN.md) · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · **Русский** · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## Физическая модель + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## Сопряжение и численный метод + +Энтропийное соотношение при фиксированной доле задаёт давление и температуру после изменения объёма. Работа включает холодную энергию сжатия жидкости и устойчивые приращения для малых перемещений. Та же дискретная работа определяет момент вала. Каждый глобальный интервал однократно применяет источник каждого узла вокруг консервативного переноса по каналу и замороженному соплу. Интервалы ограничены CFL и долей 0.02 меньшего запаса на портах; допускается не более 4096. Работа и источник разделены. Связанный перенос остаётся первого порядка и требует временного сгущения. + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## Использование, доказательства и ограничения + +Запустите `relaxing-fuel-chamber` или `relaxing-pump-needle`. Наблюдаются объём и работа, фактическая и равновесная доли, фазовая энтропия, `total_vapor_delivered`, запасы портов и глобальная невязка пара. Проверки сравнивают чистофазные адиабаты, независимую квадратуру давления при фиксированной доле, бесконечно малую работу, обратимый цикл и независимое ODE вала с идеальным паром. Отдельно проверяются сгущение связанной релаксации, время источника общих резервуаров, полные балансы, отмена, откат, ветвление, выделения памяти, переносимое воспроизведение и реальный MCP. Числа приведены в доказательствах валидации. + +Параметры остаются `unverified`. Оба порта должны иметь одинаковые домен и материал; равновесный проход для релаксирующих портов запрещён. Конечная релаксация в резервуарах не разрешает химию или время пребывания внутри сопла нулевого объёма. Нет скольжения фаз, отрицательного натяжения жидкости, барьера зародышеобразования, распыла, несущего газа или горящего приёмника. Подвижные резервуары перемешаны с нулевой средней скоростью; внутренние ячейки жёсткие и имеют одного владельца. Нужен разреженный идеальный пар вдали от критической области, заявленные положительные давления и температуры, положительная скрытая энтальпия и различные объёмы сосуществования. Начальная доля пара задаётся явно как исследовательская. Численное совпадение не доказывает измеренную калибровку или приёмку Unity. + +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. + +[VALIDATION.ru.md](VALIDATION.ru.md) diff --git a/docs/RELAXING_FUEL_BOUNDARIES.zh-CN.md b/docs/RELAXING_FUEL_BOUNDARIES.zh-CN.md new file mode 100644 index 0000000..4164edc --- /dev/null +++ b/docs/RELAXING_FUEL_BOUNDARIES.zh-CN.md @@ -0,0 +1,39 @@ +# 相变弛豫燃料泵与冻结相态计量 + +[English](RELAXING_FUEL_BOUNDARIES.md) · **简体中文** · [Français](RELAXING_FUEL_BOUNDARIES.fr.md) · [Русский](RELAXING_FUEL_BOUNDARIES.ru.md) · [日本語](RELAXING_FUEL_BOUNDARIES.ja.md) · [한국어](RELAXING_FUEL_BOUNDARIES.ko.md) · [Deutsch](RELAXING_FUEL_BOUNDARIES.de.md) · [Español](RELAXING_FUEL_BOUNDARIES.es.md) · [Italiano](RELAXING_FUEL_BOUNDARIES.it.md) · [Português](RELAXING_FUEL_BOUNDARIES.pt-BR.md) + +## 物理模型 + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 + +[NASA: isentropic ideal-gas relations](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Lund: two-phase relaxation hierarchy](https://www.sintef.no/globalassets/project/co2-dynamics/publications/lund_two-phase_relaxation_hierarchy.pdf) + +## 耦合与数值方法 + +固定质量分数的熵关系确定体积变化后的压力与温度。做功包括液体冷压缩能,小位移采用稳定的增量函数计算,同一离散功用于轴转矩。每个全局区间在守恒管道及冻结喷嘴输运前后,对各节点仅施加一次相变源项。区间受管道 CFL 和喷嘴两端较小库存的 0.02 比例限制,最多允许 4096 个区间。机械做功与源项演化分开;耦合输运仍为一阶,需要时间细化检查。 + +```text +x = vapor_mass / total_mass +cp_x = (1-x) c_liquid + x (c_vapor+R) +cv_x = (1-x) c_liquid + x c_vapor +alpha = x R/cp_x +T/T0 = (p/p0)^alpha (fixed quality and entropy) +v(p) = (1-x)/(rho0 (1+p/K)) + x R T/p +work_on_fluid = mass [cv_x T0 expm1(alpha ln(p/p0)) + (1-x) delta_u_cold] +fluid_torque = -work_on_fluid/delta_angle (nonzero angular increment) +delta_vapor_mass_volume_work = 0 +delta_vapor_mass_nozzle = transferred_total_mass * source_vapor_quality +donor_delta_energy = -transferred_total_mass * stagnation_enthalpy +receiver_delta_energy = -donor_delta_energy - wall_fraction * jet_kinetic_energy +dx/dt_phase_source = (x_equilibrium(rho,u)-x)/tau +``` + +## 使用、证据与限制 + +运行 `relaxing-fuel-chamber` 或 `relaxing-pump-needle`。可观察腔体体积与功、实际及平衡质量分数、相变熵、`total_vapor_delivered`、端口库存和全局蒸气残差。检查对照纯相绝热线、独立固定质量分数压力积分、微小位移功、可逆循环及独立理想蒸气轴动力学 ODE;有限速率耦合细化、共享储腔源项时间、完整账本、取消、回滚、分支、分配、资产重放和真实 MCP 分别验证。数值记录在验证证据中。 + +参数仍为 `unverified`。喷嘴两端必须具有相同域和材料,弛豫端口拒绝平衡输运模式。有限速率体相弛豫不表示已解析零容积喷嘴内部的化学转化或停留时间。模型不含相间滑移、液体负压张力、成核势垒定律、喷雾、载气或燃烧接收腔。运动储腔保持均匀混合且整体流速为零;管道内部单元仍为刚性且各有一个所有者。仅适用远离临界行为的稀薄理想蒸气,并须满足材料声明的正压、温度边界、正潜焓与分离的共存比容。初始蒸气质量分数是显式研究输入。数值吻合不证明实测标定或实际 Unity 验收。 + +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 + +[VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) diff --git a/docs/ROADMAP.de.md b/docs/ROADMAP.de.md index 95fcaa5..f248008 100644 --- a/docs/ROADMAP.de.md +++ b/docs/ROADMAP.de.md @@ -12,12 +12,12 @@ und Desktop-Abnahme brauchen jeweils eigene Nachweise. | Meilenstein | Vorhandene Grundlage | Noch erforderliche Arbeit | |---|---|---| | Verwalteter Kern | Abhängigkeitsfreie Physik mit Doppelziel, Topologie, Einheiten, Ganzzahlzeit, Replay und atomare Transaktionen | Langzeit-Validierung eines integrierten Antriebsstrangs | -| Agent-Schnittstelle | Schema-definierte MCP-Werkzeuge, strukturierte Diagnosen, Revisionen, Zweige, Abbruch und kompakte Berichte | Modellierungs- und Regelungsabläufe für den verbleibenden vollen Antriebsstrangumfang | +| Agent-Schnittstelle | Schema-definierte MCP-Werkzeuge, strukturierte Diagnosen, Revisionen, Zweige, Abbruch und kompakte Berichte; `list-labs` / `get_capabilities.examples` | Modellierungs- und Regelungsabläufe für den verbleibenden vollen Antriebsstrangumfang | | Unity-Studio | Gemeinsamer Modellimport, Laborwiedergabe, schematische 3D-Komponenten und vorbereitete Tests | Tatsächliche Editor-/Play-/Player-/IL2CPP-Nachweise und Desktop-Paketierung | -| Modellierwerkbank | Portables Asset v24, Leser für v1-v23 und gemeinsame JSON-/CLI-/MCP-Definitionen | Graphbearbeitung, Speichern und wählbare Kanaldiagramme | -| Motorphysik | Unabhängige Gasmasse/-energie, Schubkurbelarbeit, zeitgesteuerte Ventile, vorgeschriebene Verbrennung, gasförmige und flüssige Kraftstoffdosierung, endliche nachgiebige Leitungen, Filmverdampfung und physische Nadelansteuerung | Leitungspumpe und Nachfüllung, verfeinertes magnetisches/elektronisches/Spray-Verhalten, Kopplung endlichen Flüssigkeitsvolumens, Zündungsregelung, detaillierte Saug- und Auslassseite, mechanische Verluste, Thermochemie und gemessene Kalibrierung | +| Modellierwerkbank | Portables Asset v41, Leser für v1-v40 und gemeinsame JSON-/CLI-/MCP-Definitionen | Graphbearbeitung, Speichern und wählbare Kanaldiagramme | +| Motorphysik | Unabhängige Gasmasse/-energie, Schubkurbelarbeit, zeitgesteuerte Ventile, vorgeschriebene Verbrennung, gasförmige und flüssige Kraftstoffdosierung, endliche nachgiebige Leitungen, Filmverdampfung und physische Nadelansteuerung; [Pumpengespeiste Flüssigkraftstoffschiene](PUMP_FED_FUEL.de.md); endliche Tanks und erhaltende Entlastungsrückläufe; [Tankgeometrie und endlicher Gasraum](TANK_HEADSPACE.de.md); [Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md); [Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md); [Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md); [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md); [Wellengetriebene kompressible Kraftstoffkammern](COMPRESSIBLE_FUEL_CHAMBER.de.md); [Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil](COMPRESSIBLE_FUEL_NOZZLE.de.md); [Kraftstoffdüsentransit im Phasengleichgewicht](EQUILIBRIUM_FUEL_NOZZLE.de.md); [Kraftstoff-Phasenrelaxation mit endlicher Rate](RELAXING_FUEL.de.md); [Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase](RELAXING_FUEL_BOUNDARIES.de.md) | Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. | | Getriebe | Gekoppelte Kupplungen, Zahnräder/Planetensätze, tabellierter Wandler/Überbrückung, Hydraulik sowie DCT-Pfade mit sieben Vorwärtsgängen/Rückwärtsgang und Ravigneaux-Pfade mit vier Vorwärtsgängen/Rückwärtsgang bei aufgelöster Planetendrehung/Bahnträgheit | Nachgiebigkeit, Verluste und Lastverteilung der Verzahnung, DCT-Ansteuerung, vollständige AT-Druck- und Schaltregelung und gemessene Führung, gemessene Kennfelder, Ventil-/Dichtungs-/Kavitationsverhalten und reichere Wandlerdynamik | -| Regelungen und elektrische Integration | Abgetasteter Druck-PI, Nadelschließregelung und sensorbestätigte gestaffelte DCT-Übergabe, begrenzte Spannung/Tastverhältnis, Stellgliedbesitz, Batterie-Ersatzschaltbild und Zusatzverbraucher | Abgestimmte ECU-/TCU-Zyklen, Sensoren/Stellglieder, Momentenanforderungen, Fehler, BMS und gemessenes thermisches/elektrisches Verhalten | +| Regelungen und elektrische Integration | Abgetasteter Druck-PI, Nadelschließregelung und sensorbestätigte gestaffelte DCT-Übergabe, begrenzte Spannung/Tastverhältnis, Stellgliedbesitz, Batterie-Ersatzschaltbild und Zusatzverbraucher; [`at_controller`](AT_CONTROL.de.md) | Abgestimmte ECU-/TCU-Zyklen, Sensoren/Stellglieder, Momentenanforderungen, Fehler, BMS und gemessenes thermisches/elektrisches Verhalten | | Fahrzeugnachweis und Veröffentlichung | Forschungsbeispiele mit vollständigen Grenzen und Herkunft | Zwei vollständig gemessene Antriebsstränge, Unsicherheitsbudgets, Stabilität, Desktop-Abnahme und Verteilung | Aktuelle numerische Prüfpunkte, authentische Asset-Fixtures und plattformspezifische @@ -28,14 +28,7 @@ die dort festgehaltene Revision; neue lokale Änderungen brauchen eine eigene Pl ## Nächste verwaltete Arbeit -Den [Vertrag der Flüssigeinspritzung](LIQUID_FUEL_INJECTION.de.md) mit Leitungspumpe -und Nachfüllung sowie verfeinerter magnetischer/elektronischer Ansteuerung fortsetzen. Endliche nachgiebige Quellenmasse -und Druckenergie, tatsächliche Nadelbewegung, abgetastete Dosisrückführung, Filmnachschub -und Verdampfung sind umgesetzt. Siehe [den Nadelvertrag](NEEDLE_ACTUATION.de.md) und die [begrenzte Schließvorhersage](CLOSURE_PREDICTION.de.md). Der -Empfänger exportiert weiterhin Verdrängungsdruckarbeit unter der erklärten Grenze vernachlässigbaren -Flüssigkeitsvolumens; aufgelöstes Spray und aufgelöste Verdrängung müssen sie durch geprüfte -Geometrie und Impuls-/Arbeitskopplung ersetzen. Lieferung, Dampfverfügbarkeit und -vorgeschriebene Reaktion getrennt halten und analytische, Erhaltungs- und Konvergenznachweise behalten. +Endliche Verweilzeit in der Düse mit Materialnachweisen auflösen, danach aufgelöstes Spray und kompatible brennende Empfänger ergänzen. Zündung, Ein-/Auslass, mechanische Verluste, Getriebeaktuierung und ECU/TCU-Koordination fortsetzen. Messkalibrierung und tatsächliche Unity-Abnahme bleiben getrennt. [Kompressible Kraftstoffkanäle im Gleichgewicht](EQUILIBRIUM_FUEL_DUCT.de.md) Danach Zündung und Regelung, Saug- und Auslassdynamik sowie mechanische Motorverluste erweitern. Die aktuelle Wiebe-Verbrennung ist vorgeschrieben und begründet keine vorhersagende @@ -50,6 +43,8 @@ gekoppelten Wandler-, Zahnrad-, Kupplungs- und Hydraulikprimitive. Von der [abge Modelle konstanter Pumpenverluste, der Batterie und von Ventil/Akkumulator erweitern, sobald gemessene Stoff- und Regelungsdaten vorliegen; angegebene Forschungswerte bleiben ungeprüft. +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. [Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + ## Studio und gemessene Abnahme `POWER_UNITY_EDITOR` auf den gepinnten Editor setzen und `unity-test` ausführen. Tatsächliche @@ -65,3 +60,5 @@ Das [Zig-Archiv](NATIVE_ZIG.de.md) behält ursprüngliche Hashes und Git-Herkunf Es bleibt getrennt von der aktiven C#-/Unity-Anwendung. Die native Migration schließt weder die Migration verwalteter Funktionen noch die Antriebsstrangabnahme ab. Zusätzliche Parallelität, dünnbesetzte Lösung oder Burst erst einführen, wenn Messungen das rechtfertigen und die Kernverträge stabil bleiben. + +[Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger](FUEL_DISCHARGE.de.md) diff --git a/docs/ROADMAP.es.md b/docs/ROADMAP.es.md index 8fd0569..b2588d0 100644 --- a/docs/ROADMAP.es.md +++ b/docs/ROADMAP.es.md @@ -12,12 +12,12 @@ calibración del vehículo y la aceptación de escritorio necesitan cada uno su | Hito | Base disponible | Trabajo que aún falta | |---|---|---| | Núcleo gestionado | Física sin dependencias y de doble destino, topología, unidades, tiempo entero, repetición y transacciones atómicas | Validación integrada de larga duración del grupo motopropulsor | -| Interfaz de agente | Herramientas MCP definidas por esquema, diagnósticos estructurados, revisiones, ramas, cancelación e informes compactos | Flujos de modelado y control para el alcance restante del grupo motopropulsor completo | +| Interfaz de agente | Herramientas MCP definidas por esquema, diagnósticos estructurados, revisiones, ramas, cancelación e informes compactos; `list-labs` / `get_capabilities.examples` | Flujos de modelado y control para el alcance restante del grupo motopropulsor completo | | Estudio de Unity | Importación de modelo compartida, reproducción de laboratorio, componentes esquemáticos 3D y pruebas preparadas | Evidencia real de Editor/Play/Player/IL2CPP y empaquetado de escritorio | -| Banco de modelado | Asset portátil v24, lectores v1-v23 y definiciones compartidas de JSON/CLI/MCP | Edición de grafos, guardado y gráficas de canales seleccionables | -| Física del motor | Masa y energía de gas independientes, trabajo de biela-manivela, válvulas temporizadas, combustión prescrita, dosificación de combustible gaseoso y líquido, raíles flexibles finitos, evaporación de película y accionamiento físico de la aguja | Bomba de raíl y repostaje, comportamiento magnético, electrónico y de pulverización refinado, acoplamiento de volumen líquido finito, control de encendido, admisión y escape detallados, pérdidas mecánicas, termoquímica y calibración medida | +| Banco de modelado | Asset portátil v41, lectores v1-v40 y definiciones compartidas de JSON/CLI/MCP | Edición de grafos, guardado y gráficas de canales seleccionables | +| Física del motor | Masa y energía de gas independientes, trabajo de biela-manivela, válvulas temporizadas, combustión prescrita, dosificación de combustible gaseoso y líquido, raíles flexibles finitos, evaporación de película y accionamiento físico de la aguja; [Raíl de combustible líquido alimentado por bomba](PUMP_FED_FUEL.es.md); tanques finitos y retornos de alivio conservativos; [Geometría del tanque y espacio gaseoso finito](TANK_HEADSPACE.es.md); [Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md); [Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md); [Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md); [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md); [Cámaras de combustible compresible accionadas por eje](COMPRESSIBLE_FUEL_CHAMBER.es.md); [Toberas de combustible compresible de calidad congelada](COMPRESSIBLE_FUEL_NOZZLE.es.md); [Tránsito de combustible en equilibrio por toberas](EQUILIBRIUM_FUEL_NOZZLE.es.md); [Relajación de fase del combustible a velocidad finita](RELAXING_FUEL.es.md); [Bombas de combustible con relajación y dosificación congelada](RELAXING_FUEL_BOUNDARIES.es.md) | Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. | | Transmisión | Embragues acoplados, engranajes y planetarios, convertidor y bloqueo mapeados, hidráulica, y caminos DCT de siete marchas adelante y marcha atrás y Ravigneaux de cuatro adelante y marcha atrás, con giro de satélite e inercia orbital resueltos | Flexibilidad, pérdidas y reparto de carga del engrane, actuación DCT, control completo de presión y cambio de la AT y encaminamiento medido, mapas medidos, comportamiento de válvulas, juntas y cavitación, y dinámica de convertidor más rica | -| Controles e integración eléctrica | PI de presión muestreado, control de cierre de aguja y entrega DCT escalonada confirmada por sensor, voltaje y ciclo de trabajo acotados, propiedad de los actuadores, circuito equivalente de batería y accesorios | Ciclos coordinados de ECU/TCU, sensores y actuadores, solicitudes de par, fallos, BMS y comportamiento térmico y eléctrico medido | +| Controles e integración eléctrica | PI de presión muestreado, control de cierre de aguja y entrega DCT escalonada confirmada por sensor, voltaje y ciclo de trabajo acotados, propiedad de los actuadores, circuito equivalente de batería y accesorios; [`at_controller`](AT_CONTROL.es.md) | Ciclos coordinados de ECU/TCU, sensores y actuadores, solicitudes de par, fallos, BMS y comportamiento térmico y eléctrico medido | | Evidencia de vehículo y publicación | Muestras de investigación con límites y procedencia completos | Dos grupos motopropulsores medidos completos, presupuestos de incertidumbre, estabilidad, aceptación de escritorio y distribución | Los puntos de control numéricos actuales, los fixtures auténticos de assets y los registros @@ -28,14 +28,7 @@ su revisión registrada; los cambios locales nuevos necesitan una aceptación de ## Siguiente trabajo gestionado -Continúa el [contrato de inyección líquida](LIQUID_FUEL_INJECTION.es.md) con bomba -de raíl y repostaje, y con actuación magnética y electrónica refinada. Están implementados la masa -de fuente flexible y finita y la energía de presión, el movimiento real de la aguja, la realimentación de dosis muestreada, -la reposición de la película y la evaporación. Consulta [el contrato de la aguja](NEEDLE_ACTUATION.es.md) y la [predicción de cierre acotada](CLOSURE_PREDICTION.es.md). El -receptor sigue exportando trabajo de presión de desplazamiento bajo el límite declarado de volumen -líquido despreciable; la pulverización y el desplazamiento resueltos deben sustituirlo por una -geometría verificada y un acoplamiento de cantidad de movimiento y de trabajo. Mantén separados la entrega, la disponibilidad de vapor y -la reacción prescrita, y conserva la evidencia analítica, de conservación y de convergencia. +Resolver residencia finita en la tobera con evidencia del material, después añadir pulverización resuelta y receptores con combustión compatibles. Continuar encendido, admisión/escape, pérdidas mecánicas, actuación de transmisión y coordinación ECU/TCU. Calibración medida y aceptación real de Unity siguen separadas. [Conductos de combustible compresible en equilibrio](EQUILIBRIUM_FUEL_DUCT.es.md) Después amplía el encendido y el control, la dinámica de admisión y escape, y las pérdidas mecánicas del motor. El quemado de Wiebe actual es prescrito y no establece combustión @@ -51,6 +44,8 @@ incluidas solicitudes de par, sensores y actuadores, y fallos recuperables. Amplía los modelos de pérdida constante de bomba, de batería y de válvula o acumulador cuando haya datos medidos de propiedades y control; los valores de investigación suministrados siguen sin verificar. +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. [Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + ## Estudio y aceptación medida Asigna a `POWER_UNITY_EDITOR` el Editor fijado y ejecuta `unity-test`. Obtén evidencia real @@ -69,3 +64,5 @@ Sigue separado de la aplicación activa de C#/Unity. La migración nativa no completa la migración de funciones gestionadas ni la aceptación del grupo motopropulsor. Introduce paralelismo adicional, resolución dispersa o Burst cuando las mediciones lo justifiquen y los contratos del núcleo sigan estables. + +[Descarga de combustible con calidad congelada y receptores finitos](FUEL_DISCHARGE.es.md) diff --git a/docs/ROADMAP.fr.md b/docs/ROADMAP.fr.md index 17da1a4..34ffc81 100644 --- a/docs/ROADMAP.fr.md +++ b/docs/ROADMAP.fr.md @@ -9,24 +9,26 @@ L'objectif est la plateforme complète de groupe motopropulseur Power! : une phy | Jalon | Fondement disponible | Travail encore requis | |---|---|---| | Cœur managé | Physique sans dépendance à double cible, topologie, unités, temps entier, rejeu et transactions atomiques | Validation de groupe motopropulseur intégré sur longue durée | -| Interface agent | Outils MCP définis par schéma, diagnostics structurés, révisions, branches, annulation et rapports compacts | Flux de modélisation et de contrôle pour le périmètre de groupe motopropulseur complet qui reste | +| Interface agent | Outils MCP définis par schéma, diagnostics structurés, révisions, branches, annulation et rapports compacts; `list-labs` / `get_capabilities.examples` | Flux de modélisation et de contrôle pour le périmètre de groupe motopropulseur complet qui reste | | Studio Unity | Import de modèle partagé, rejeu de laboratoire, composants schématiques 3D et tests préparés | Preuves réelles d'Editor/Play/Player/IL2CPP et empaquetage de bureau | -| Établi de modélisation | Asset portable v24, lecteurs v1-v23 et définitions JSON/CLI/MCP partagées | Édition de graphe, enregistrement et tracés de canaux sélectionnables | -| Physique moteur | Masse/énergie gazeuses indépendantes, travail bielle-manivelle, soupapes calées, combustion prescrite, dosage de carburant gazeux et liquide, rampes souples finies, évaporation de film et actionnement physique d'aiguille | Pompage/ravitaillement de rampe, comportement magnétique/électronique/pulvérisation affiné, couplage à volume liquide fini, contrôle d'allumage, admission/échappement détaillés, pertes mécaniques, thermochimie et calibration mesurée | +| Établi de modélisation | Asset portable v41, lecteurs v1-v40 et définitions JSON/CLI/MCP partagées | Édition de graphe, enregistrement et tracés de canaux sélectionnables | +| Physique moteur | Masse/énergie gazeuses indépendantes, travail bielle-manivelle, soupapes calées, combustion prescrite, dosage de carburant gazeux et liquide, rampes souples finies, évaporation de film et actionnement physique d'aiguille; [Rampe de carburant liquide alimentée par pompe](PUMP_FED_FUEL.fr.md); réservoirs finis et retours de décharge conservatifs; [Géométrie du réservoir et espace gazeux fini](TANK_HEADSPACE.fr.md); [Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md); [Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md); [Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md); [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md); [Chambres de carburant compressible entraînées par arbre](COMPRESSIBLE_FUEL_CHAMBER.fr.md); [Buses de carburant compressible à qualité figée](COMPRESSIBLE_FUEL_NOZZLE.fr.md); [Transit de carburant à l’équilibre dans les buses](EQUILIBRIUM_FUEL_NOZZLE.fr.md); [Relaxation de phase du carburant à vitesse finie](RELAXING_FUEL.fr.md); [Pompes à carburant relaxant et dosage à phase gelée](RELAXING_FUEL_BOUNDARIES.fr.md) | Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. | | Transmission | Embrayages couplés, engrenages/planétaires, convertisseur/verrouillage cartographié, hydraulique, et chemins DCT à sept rapports avant/marche arrière et Ravigneaux à quatre plages avant/marche arrière avec rotation des planétaires et inertie orbitale résolues | Compliance/pertes d'engrènement et partage de charge, actionnement DCT, contrôle complet de pression/passage AT et routage mesuré, cartes mesurées, comportement de vanne/joint/cavitation et dynamique de convertisseur plus riche | -| Contrôles et intégration électrique | PI de pression échantillonné, contrôle de fermeture d'aiguille et passation DCT étagée confirmée par capteur, tension/rapport cyclique bornés, propriété des actionneurs, circuit équivalent de batterie et accessoires | Cycles ECU/TCU coordonnés, capteurs/actionneurs, demandes de couple, défauts, BMS et comportement thermique/électrique mesuré | +| Contrôles et intégration électrique | PI de pression échantillonné, contrôle de fermeture d'aiguille et passation DCT étagée confirmée par capteur, tension/rapport cyclique bornés, propriété des actionneurs, circuit équivalent de batterie et accessoires; [`at_controller`](AT_CONTROL.fr.md) | Cycles ECU/TCU coordonnés, capteurs/actionneurs, demandes de couple, défauts, BMS et comportement thermique/électrique mesuré | | Preuves véhicule et publication | Échantillons de recherche avec frontières et provenance complètes | Deux groupes motopropulseurs mesurés complets, budgets d'incertitude, stabilité, acceptation de bureau et distribution | Les points de contrôle numériques actuels, les fixtures d'asset authentiques et les registres de vérification propres à chaque plateforme se trouvent dans [VALIDATION.fr.md](VALIDATION.fr.md). Voir [DEVELOPMENT_STATUS.fr.md](DEVELOPMENT_STATUS.fr.md) pour l'état d'implémentation et [ARCHITECTURE.fr.md](ARCHITECTURE.fr.md) pour les invariants. Les preuves de CI publiées s'appliquent à la révision enregistrée ; de nouveaux changements locaux demandent une acceptation de plateforme séparée. ## Prochain travail managé -Poursuivre le [contrat d'injection liquide](LIQUID_FUEL_INJECTION.fr.md) avec le pompage/ravitaillement de rampe et un actionnement magnétique/électronique affiné. La masse de source souple finie et l'énergie de pression, le mouvement réel de l'aiguille, le retour de dose échantillonné, la réalimentation du film et l'évaporation sont implémentés. Voir [le contrat d'aiguille](NEEDLE_ACTUATION.fr.md) et [la prédiction de fermeture bornée](CLOSURE_PREDICTION.fr.md). Le récepteur exporte encore le travail de pression de déplacement sous la frontière déclarée de volume liquide négligeable ; une pulvérisation/un déplacement résolus doivent la remplacer par une géométrie vérifiée et un couplage quantité de mouvement/travail. Garder séparés la livraison, la disponibilité de vapeur et la réaction prescrite, et conserver les preuves analytiques, de conservation et de convergence. +Résoudre le séjour à vitesse finie dans la buse avec des preuves matériau, puis ajouter spray résolu et récepteurs en combustion compatibles. Poursuivre allumage, admission/échappement, pertes mécaniques, actionnement de transmission et coordination ECU/TCU. Étalonnage mesuré et acceptation Unity restent distincts. [Conduites de carburant compressible à l’équilibre](EQUILIBRIUM_FUEL_DUCT.fr.md) Étendre ensuite l'allumage/le contrôle, la dynamique d'admission/échappement et les pertes mécaniques du moteur. La combustion de Wiebe actuelle est prescrite et n'établit pas une combustion prédictive, le cliquetis, les émissions ou une calibration OEM. Le [contrat de dosage gazeux](FUEL_METERING.fr.md) reste un chemin pris en charge indépendant. S'appuyer sur le [graphe DCT à sept rapports avant/marche arrière](DUAL_CLUTCH_TRANSMISSION.fr.md) avec un actionnement détaillé de synchroniseur/crabot/embrayage. S'appuyer sur le [graphe Ravigneaux](RAVIGNEAUX_TRANSMISSION.fr.md) avec [des propriétés de planétaires et un comportement d'engrènement mesurés](RESOLVED_PLANETS.fr.md), un [actionnement par piston alimenté par pompe](AT_HYDRAULIC_ACTUATION.fr.md) complet et un contrôle AT qui utilise le convertisseur couplé, les engrenages, les embrayages et les primitives hydrauliques. S'appuyer sur le [contrôle DCT échantillonné](DCT_CONTROL.fr.md) vers des passages à mélange de couple et une coordination ECU/TCU bornée, y compris les demandes de couple, les capteurs/actionneurs et les défauts récupérables. Étendre les modèles de pertes de pompe constantes, de batterie et de vanne/accumulateur lorsque des données mesurées de propriété ou de contrôle sont disponibles ; les valeurs de recherche fournies restent non vérifiées. +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. [Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + ## Studio et acceptation mesurée Définir `POWER_UNITY_EDITOR` vers l'éditeur épinglé et exécuter `unity-test`. Obtenir des preuves réelles d'import/Play/rendu, puis des preuves Player/IL2CPP. La sélection générale de canaux, l'édition de graphe et l'enregistrement restent des fonctions Studio séparées. La CLI, le MCP et Unity doivent continuer à consommer la même sémantique de modèle. @@ -34,3 +36,5 @@ Définir `POWER_UNITY_EDITOR` vers l'éditeur épinglé et exécuter `unity-test EA211 DJS + DQ200 et PSA EC5 + AT8 conservent les frontières complètes de groupe motopropulseur, l'applicabilité véhicule et les manifestes de preuve. Les mesures OEM manquantes ne sont pas remplacées par des valeurs par défaut silencieuses. L'achèvement fonctionnel, la correction numérique et la crédibilité d'un véhicule mesuré demandent des acceptations séparées. L'[archive Zig](NATIVE_ZIG.fr.md) conserve les hachages d'origine et la provenance Git dans `legacy/native/migration-manifest.json`, y compris la révision C d'origine `c342d4c`. Elle reste séparée de l'application C#/Unity active. La migration native n'achève ni la migration des fonctions managées ni l'acceptation du groupe motopropulseur. Introduire du parallélisme supplémentaire, une résolution creuse ou Burst lorsque les mesures le justifient et que les contrats du cœur restent stables. + +[Décharge de carburant à titre figé et récepteurs finis](FUEL_DISCHARGE.fr.md) diff --git a/docs/ROADMAP.it.md b/docs/ROADMAP.it.md index f31f521..a7e8fd3 100644 --- a/docs/ROADMAP.it.md +++ b/docs/ROADMAP.it.md @@ -9,24 +9,26 @@ L'obiettivo è la piattaforma completa di gruppi motopropulsori Power!: fisica C | Traguardo | Fondazione disponibile | Lavoro ancora necessario | |---|---|---| | Nucleo gestito | Fisica a doppio target priva di dipendenze, topologia, unità, tempo intero, replay e transazioni atomiche | Validazione integrata di lungo periodo del gruppo motopropulsore | -| Interfaccia agente | Strumenti MCP definiti da schema, diagnostica strutturata, revisioni, rami, annullamento e report compatti | Flussi di modellazione/controllo per l'ambito restante del gruppo motopropulsore completo | +| Interfaccia agente | Strumenti MCP definiti da schema, diagnostica strutturata, revisioni, rami, annullamento e report compatti; `list-labs` / `get_capabilities.examples` | Flussi di modellazione/controllo per l'ambito restante del gruppo motopropulsore completo | | Studio Unity | Importazione condivisa dei modelli, riproduzione dei laboratori, componenti schematici 3D e test preparati | Evidenza reale di Editor/Play/Player/IL2CPP e pacchettizzazione desktop | -| Banco di modellazione | Asset portabile v24, lettori v1-v23 e definizioni JSON/CLI/MCP condivise | Modifica del grafo, salvataggio e grafici dei canali selezionabili | -| Fisica del motore | Massa/energia del gas indipendenti, lavoro biella-manovella, valvole fasate, combustione prescritta, dosatura di carburante gassoso e liquido, binari finiti cedevoli, evaporazione del film e azionamento fisico dell'ago | Pompa/rabbocco del binario, comportamento magnetico/elettronico/a spruzzo raffinato, accoppiamento del volume liquido finito, controllo dell'accensione, aspirazione/scarico dettagliati, perdite meccaniche, termochimica e calibrazione misurata | +| Banco di modellazione | Asset portabile v41, lettori v1-v40 e definizioni JSON/CLI/MCP condivise | Modifica del grafo, salvataggio e grafici dei canali selezionabili | +| Fisica del motore | Massa/energia del gas indipendenti, lavoro biella-manovella, valvole fasate, combustione prescritta, dosatura di carburante gassoso e liquido, binari finiti cedevoli, evaporazione del film e azionamento fisico dell'ago; [Rail di combustibile liquido alimentato da pompa](PUMP_FED_FUEL.it.md); serbatoi finiti e ritorni di scarico conservativi; [Geometria del serbatoio e spazio gassoso finito](TANK_HEADSPACE.it.md); [Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md); [Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md); [Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md); [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md); [Camere di combustibile comprimibile azionate da albero](COMPRESSIBLE_FUEL_CHAMBER.it.md); [Ugelli di combustibile comprimibile a titolo congelato](COMPRESSIBLE_FUEL_NOZZLE.it.md); [Transito di combustibile all’equilibrio negli ugelli](EQUILIBRIUM_FUEL_NOZZLE.it.md); [Rilassamento di fase del combustibile a velocità finita](RELAXING_FUEL.it.md); [Pompe a combustibile con rilassamento e dosaggio congelato](RELAXING_FUEL_BOUNDARIES.it.md) | Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. | | Trasmissione | Frizioni accoppiate, ingranaggi/planetari, convertitore/blocco mappato, idraulica e percorsi DCT a sette avanti/retromarcia e Ravigneaux a quattro avanti/retromarcia con rotazione dei satelliti e inerzia orbitale risolte | Cedevolezza/perdite di ingranamento e ripartizione del carico, azionamento DCT, controllo completo di pressione/cambio AT e instradamento misurato, mappe misurate, comportamento di valvole/tenute/cavitazione e dinamica più ricca del convertitore | -| Controlli e integrazione elettrica | PI di pressione campionato, controllo di chiusura dell'ago e passaggio DCT graduale confermato dai sensori, tensione/duty cycle limitati, proprietà degli attuatori, circuito equivalente della batteria e accessori | Cicli ECU/TCU coordinati, sensori/attuatori, richieste di coppia, guasti, BMS e comportamento termico/elettrico misurato | +| Controlli e integrazione elettrica | PI di pressione campionato, controllo di chiusura dell'ago e passaggio DCT graduale confermato dai sensori, tensione/duty cycle limitati, proprietà degli attuatori, circuito equivalente della batteria e accessori; [`at_controller`](AT_CONTROL.it.md) | Cicli ECU/TCU coordinati, sensori/attuatori, richieste di coppia, guasti, BMS e comportamento termico/elettrico misurato | | Evidenza del veicolo e rilascio | Campioni di ricerca con confini completi e provenienza | Due gruppi motopropulsori misurati completi, budget di incertezza, stabilità, accettazione desktop e distribuzione | I punti di controllo numerici attuali, le fixture di asset autentiche e i registri di verifica specifici della piattaforma stanno in [VALIDATION.it.md](VALIDATION.it.md). Vedi [DEVELOPMENT_STATUS.it.md](DEVELOPMENT_STATUS.it.md) per lo stato di implementazione e [ARCHITECTURE.it.md](ARCHITECTURE.it.md) per gli invarianti. L'evidenza CI pubblicata vale per la revisione registrata; le nuove modifiche locali richiedono un'accettazione di piattaforma separata. ## Prossimo lavoro gestito -Continua il [contratto di iniezione liquida](LIQUID_FUEL_INJECTION.it.md) con pompa/rabbocco del binario e azionamento magnetico/elettronico raffinato. Massa della sorgente finita e cedevole ed energia di pressione, moto reale dell'ago, retroazione di dose campionata, reintegro del film ed evaporazione sono implementati. Vedi [il contratto dell'ago](NEEDLE_ACTUATION.it.md) e [la predizione di chiusura limitata](CLOSURE_PREDICTION.it.md). Il ricevitore esporta ancora il lavoro di pressione di spostamento sotto il confine dichiarato di volume liquido trascurabile; lo spray e lo spostamento risolti devono sostituirlo con geometria verificata e accoppiamento di quantità di moto e di lavoro. Tieni separati erogazione, disponibilità del vapore e reazione prescritta, e conserva l'evidenza analitica, di conservazione e di convergenza. +Risolvere la permanenza finita nell’ugello con prove sul materiale, poi aggiungere spray risolto e ricevitori in combustione compatibili. Continuare accensione, aspirazione/scarico, perdite meccaniche, attuazione trasmissione e coordinamento ECU/TCU. Calibrazione misurata e accettazione Unity restano separate. [Condotti di combustibile comprimibile in equilibrio](EQUILIBRIUM_FUEL_DUCT.it.md) Poi estendi accensione/controllo, dinamica di aspirazione/scarico e perdite meccaniche del motore. La combustione di Wiebe attuale è prescritta e non stabilisce combustione predittiva, detonazione, emissioni o calibrazione OEM. Il [contratto di dosatura gassosa](FUEL_METERING.it.md) resta un percorso supportato indipendente. Costruisci sul [grafo DCT a sette avanti/retromarcia](DUAL_CLUTCH_TRANSMISSION.it.md) con azionamento dettagliato di sincronizzatore, innesto a denti e frizione. Costruisci sul [grafo Ravigneaux](RAVIGNEAUX_TRANSMISSION.it.md) con [proprietà dei satelliti e comportamento di ingranamento misurati](RESOLVED_PLANETS.it.md), [azionamento completo a stantuffo alimentato dalla pompa](AT_HYDRAULIC_ACTUATION.it.md) e controllo AT usando i primitivi accoppiati di convertitore, ingranaggi, frizioni e idraulica. Costruisci sul [controllo DCT campionato](DCT_CONTROL.it.md) verso passaggi con coppia miscelata e coordinamento ECU/TCU limitato, comprese richieste di coppia, sensori/attuatori e guasti recuperabili. Estendi i modelli di perdita costante della pompa, di batteria e di valvola/accumulatore quando sono disponibili dati misurati di proprietà e di controllo; i valori di ricerca forniti restano `unverified`. +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. [Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + ## Studio e accettazione misurata Imposta `POWER_UNITY_EDITOR` sull'Editor fissato ed esegui `unity-test`. Ottieni evidenza reale di importazione/Play/rendering e poi evidenza Player/IL2CPP. Selezione generale dei canali, modifica del grafo e salvataggio restano funzionalità separate dello Studio. CLI, MCP e Unity devono continuare a consumare la stessa semantica di modello. @@ -34,3 +36,5 @@ Imposta `POWER_UNITY_EDITOR` sull'Editor fissato ed esegui `unity-test`. Ottieni EA211 DJS + DQ200 e PSA EC5 + AT8 conservano i confini completi del gruppo motopropulsore, l'applicabilità al veicolo e i manifest di evidenza. Le misure OEM mancanti non sono sostituite da valori predefiniti silenziosi. Completamento funzionale, correttezza numerica e credibilità del veicolo misurato richiedono accettazioni separate. L'[archivio Zig](NATIVE_ZIG.it.md) conserva gli hash originali e la provenienza Git in `legacy/native/migration-manifest.json`, compresa la revisione C originale `c342d4c`. Resta separato dall'applicazione attiva C#/Unity. La migrazione nativa non completa la migrazione delle funzionalità gestite né l'accettazione del gruppo motopropulsore. Introduci parallelismo aggiuntivo, soluzione sparsa o Burst quando le misure lo giustificano e i contratti del nucleo restano stabili. + +[Scarico carburante a titolo congelato e ricevitori finiti](FUEL_DISCHARGE.it.md) diff --git a/docs/ROADMAP.ja.md b/docs/ROADMAP.ja.md index 78ab393..d1203c3 100644 --- a/docs/ROADMAP.ja.md +++ b/docs/ROADMAP.ja.md @@ -9,24 +9,26 @@ | マイルストーン | 使える基盤 | まだ必要な作業 | |---|---|---| | マネージドコア | デュアルターゲットで依存関係のない物理、トポロジー、単位、整数時間、リプレイ、アトミックなトランザクション | 長時間の統合パワートレイン検証 | -| エージェントインターフェース | スキーマ定義された MCP ツール、構造化された診断、リビジョン、分岐、キャンセル、コンパクトなレポート | 残る完全パワートレイン範囲向けの、モデリング/制御ワークフロー | +| エージェントインターフェース | スキーマ定義された MCP ツール、構造化された診断、リビジョン、分岐、キャンセル、コンパクトなレポート; `list-labs` / `get_capabilities.examples` | 残る完全パワートレイン範囲向けの、モデリング/制御ワークフロー | | Unity スタジオ | 共有モデルのインポート、ラボラトリー再生、模式的な 3D コンポーネント、準備済みテスト | 実際の Editor/Play/Player/IL2CPP エビデンスと、デスクトップのパッケージング | -| モデリングワークベンチ | 移植可能なアセット v24、v1-v23 リーダー、共有の JSON/CLI/MCP 定義 | グラフ編集、保存、選択可能なチャンネルプロット | -| エンジン物理 | 独立したガス質量/エネルギー、スライダークランク仕事、同期バルブ、規定燃焼、気体および液体の燃料計量、有限で柔軟なレール、フィルム蒸発、物理ニードル駆動 | レールポンプ/補給、精密化した磁気/電子/噴霧挙動、有限液体容積の結合、点火制御、詳細な吸排気、機械損失、熱化学、実測キャリブレーション | +| モデリングワークベンチ | 移植可能なアセット v41、v1-v40 リーダー、共有の JSON/CLI/MCP 定義 | グラフ編集、保存、選択可能なチャンネルプロット | +| エンジン物理 | 独立したガス質量/エネルギー、スライダークランク仕事、同期バルブ、規定燃焼、気体および液体の燃料計量、有限で柔軟なレール、フィルム蒸発、物理ニードル駆動; [ポンプ供給の液体燃料レール](PUMP_FED_FUEL.ja.md); 有限タンクと保存的リリーフ戻り; [タンク形状と有限ヘッドスペース](TANK_HEADSPACE.ja.md); [燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md); [有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md); [蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md); [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md); [軸駆動の圧縮性燃料室](COMPRESSIBLE_FUEL_CHAMBER.ja.md); [相分率を凍結した圧縮性燃料ノズル](COMPRESSIBLE_FUEL_NOZZLE.ja.md); [燃料ノズルの平衡相変化輸送](EQUILIBRIUM_FUEL_NOZZLE.ja.md); [有限速度の燃料相変化緩和](RELAXING_FUEL.ja.md); [相変化緩和燃料ポンプと凍結相計量](RELAXING_FUEL_BOUNDARIES.ja.md) | 材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 | | トランスミッション | 連成クラッチ、歯車/遊星、マップ化されたコンバーター/ロックアップ、油圧、7 前進/リバースの DCT、分解された遊星自転/軌道慣性を持つ 4 前進/リバースの Ravigneaux 経路 | 噛み合いのコンプライアンス/損失と荷重分担、DCT のアクチュエーション、完全な AT の圧力/変速制御と実測の動力経路、実測マップ、バルブ/シール/キャビテーション挙動、より豊富なコンバーター動特性 | -| 制御と電気の統合 | サンプリング圧力 PI、ニードルクロージャ制御、センサー確認済みの段階的 DCT 引き継ぎ、有界な電圧/デューティー、アクチュエーター所有権、電池等価回路、アクセサリー | 協調した ECU/TCU サイクル、センサー/アクチュエーター、トルク要求、故障、BMS、実測の熱/電気挙動 | +| 制御と電気の統合 | サンプリング圧力 PI、ニードルクロージャ制御、センサー確認済みの段階的 DCT 引き継ぎ、有界な電圧/デューティー、アクチュエーター所有権、電池等価回路、アクセサリー; [`at_controller`](AT_CONTROL.ja.md) | 協調した ECU/TCU サイクル、センサー/アクチュエーター、トルク要求、故障、BMS、実測の熱/電気挙動 | | 車両エビデンスとリリース | 境界と来歴が完全な研究サンプル | 2 つの完全な実測パワートレイン、不確かさバジェット、安定性、デスクトップ受け入れ、配布 | 現在の数値チェックポイント、正規のアセットフィクスチャ、プラットフォーム別の検証記録は [VALIDATION.md](VALIDATION.ja.md) にあります。実装状態は [DEVELOPMENT_STATUS.md](DEVELOPMENT_STATUS.ja.md)、不変条件は [ARCHITECTURE.md](ARCHITECTURE.ja.md) を参照してください。公開済みの CI エビデンスは、記録されたリビジョンに対するものです。新しいローカル変更には、別のプラットフォーム受け入れが必要です。 ## 次のマネージド作業 -[液体噴射の契約](LIQUID_FUEL_INJECTION.ja.md) を、レールポンプ/補給と、精密化した磁気/電子駆動で続けます。有限で柔軟な源の質量と圧力エネルギー、実際のニードル運動、サンプリングされたドーズフィードバック、フィルム補給、蒸発は実装済みです。[ニードル契約](NEEDLE_ACTUATION.ja.md) と [有界なクロージャ予測](CLOSURE_PREDICTION.ja.md) を参照してください。受け側は、宣言された「液体容積を無視できる」境界の下で、押しのけ圧力仕事をまだ書き出します。噴霧/押しのけを分解したあとは、検証済みの形状と運動量/仕事の結合で、それを置き換える必要があります。供給、蒸気の可用性、規定反応は分けたままにし、解析・保存・収束のエビデンスを残してください。 +材料証拠に基づく有限速度のノズル内滞留を解像し、続いて噴霧と整合する燃焼受入室を加えます。点火、吸排気、機械損失、変速機作動、ECU/TCU 協調制御を進めます。実測校正と実 Unity 検収は別々に扱います。 [圧縮性平衡燃料ダクト](EQUILIBRIUM_FUEL_DUCT.ja.md) 次に、点火/制御、吸排気の動特性、エンジンの機械損失を拡張します。現在の Wiebe 燃焼は規定であり、予測燃焼、ノッキング、排出、OEM キャリブレーションを確立しません。[気体計量の契約](FUEL_METERING.ja.md) は、独立してサポートされる経路のままです。 [7 前進/リバースの DCT グラフ](DUAL_CLUTCH_TRANSMISSION.ja.md) の上に、詳細なシンクロナイザー/ドッグ/クラッチのアクチュエーションを築きます。[Ravigneaux グラフ](RAVIGNEAUX_TRANSMISSION.ja.md) の上に、[実測の遊星物性と噛み合い挙動](RESOLVED_PLANETS.ja.md)、完全な [ポンプ供給ピストン駆動](AT_HYDRAULIC_ACTUATION.ja.md)、そして連成したコンバーター、歯車、クラッチ、油圧原始素を使う AT 制御を築きます。[サンプリング DCT 制御](DCT_CONTROL.ja.md) の上に、トルクをブレンドする変速と、有界な ECU/TCU 協調を築きます。トルク要求、センサー/アクチュエーター、回復可能な故障を含みます。実測の物性/制御データが得られるときに、一定のポンプ損失、電池、バルブ/アキュムレーターのモデルを拡張します。与えられた研究値は未検証のままです。 +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 [軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + ## スタジオと実測の受け入れ `POWER_UNITY_EDITOR` をピン留めされたエディターに設定し、`unity-test` を実行します。実際のインポート/Play/レンダリングのエビデンスを取り、続いて Player/IL2CPP のエビデンスを取ります。一般的なチャンネル選択、グラフ編集、保存は、別のスタジオ機能のままです。CLI、MCP、Unity は、同じモデル意味論を使い続ける必要があります。 @@ -34,3 +36,5 @@ EA211 DJS + DQ200 と PSA EC5 + AT8 は、完全なパワートレイン境界、車両への適用、エビデンスマニフェストを保持します。欠けている OEM 計測を、黙った既定値で置き換えることはありません。機能の完成、数値的な正しさ、実測車両としての信頼は、別々の受け入れが必要です。 [Zig アーカイブ](NATIVE_ZIG.ja.md) は、元のハッシュと Git 来歴を `legacy/native/migration-manifest.json` に保持します。元の C リビジョン `c342d4c` を含みます。これは、現行の C#/Unity アプリケーションとは別のままです。ネイティブの移行は、マネージド機能の移行や、パワートレインの受け入れを完成させません。計測がそれを正当化し、コア契約が安定したままであるときに、追加の並列性、疎な求解、または Burst を導入します。 + +[蒸気質量分率を凍結した燃料流出と有限受容室](FUEL_DISCHARGE.ja.md) diff --git a/docs/ROADMAP.ko.md b/docs/ROADMAP.ko.md index fb90579..b7a7ac9 100644 --- a/docs/ROADMAP.ko.md +++ b/docs/ROADMAP.ko.md @@ -9,24 +9,26 @@ | 이정표 | 갖춘 기반 | 아직 필요한 작업 | |---|---|---| | 관리형 코어 | 이중 대상의 의존성 없는 물리, 토폴로지, 단위, 정수 시간, 리플레이, 원자적 트랜잭션 | 장기 통합 파워트레인 검증 | -| 에이전트 인터페이스 | 스키마가 정의된 MCP 도구, 구조화된 진단, 개정, 분기, 취소, 간결한 보고서 | 남은 전체 파워트레인 범위를 위한 모델링/제어 작업 흐름 | +| 에이전트 인터페이스 | 스키마가 정의된 MCP 도구, 구조화된 진단, 개정, 분기, 취소, 간결한 보고서; `list-labs` / `get_capabilities.examples` | 남은 전체 파워트레인 범위를 위한 모델링/제어 작업 흐름 | | Unity 스튜디오 | 공유 모델 가져오기, 실험실 재생, 3D 개략 컴포넌트, 준비된 테스트 | 실제 편집기/Play/Player/IL2CPP 증거와 데스크톱 패키징 | -| 모델링 작업대 | 이식 가능한 자산 v24, v1-v23 판독기, 공유 JSON/CLI/MCP 정의 | 그래프 편집, 저장, 선택 가능한 채널 플롯 | -| 엔진 물리 | 독립적인 가스 질량/에너지, 슬라이더-크랭크 일, 타이밍 밸브, 규정 연소, 기체와 액체 연료 계량, 유한 컴플라이언트 레일, 필름 증발, 물리적 니들 구동 | 레일 펌프/보충, 정밀화된 자기/전자/분무 동작, 유한 액체 체적 결합, 점화 제어, 상세 흡기/배기, 기계 손실, 열화학, 실측 교정 | +| 모델링 작업대 | 이식 가능한 자산 v41, v1-v40 판독기, 공유 JSON/CLI/MCP 정의 | 그래프 편집, 저장, 선택 가능한 채널 플롯 | +| 엔진 물리 | 독립적인 가스 질량/에너지, 슬라이더-크랭크 일, 타이밍 밸브, 규정 연소, 기체와 액체 연료 계량, 유한 컴플라이언트 레일, 필름 증발, 물리적 니들 구동; [펌프 공급 액체 연료 레일](PUMP_FED_FUEL.ko.md); 유한 탱크와 보존적 릴리프 반환; [탱크 형상과 유한 헤드스페이스](TANK_HEADSPACE.ko.md); [연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md); [유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md); [증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md); [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md); [축 구동 압축성 연료 챔버](COMPRESSIBLE_FUEL_CHAMBER.ko.md); [상분율을 동결한 압축성 연료 노즐](COMPRESSIBLE_FUEL_NOZZLE.ko.md); [연료 노즐의 평형 상변화 수송](EQUILIBRIUM_FUEL_NOZZLE.ko.md); [유한 속도 연료 상변화 완화](RELAXING_FUEL.ko.md); [상변화 완화 연료 펌프와 동결 상 계량](RELAXING_FUEL_BOUNDARIES.ko.md) | 재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. | | 변속기 | 결합 클러치, 기어/유성, 맵 기반 컨버터/록업, 유압, 그리고 분해된 유성 자전/궤도 관성을 갖춘 일곱 전진/후진 DCT와 네 전진/후진 Ravigneaux 경로 | 물림 컴플라이언스/손실과 하중 분담, DCT 구동, 완전한 AT 압력/변속 제어와 실측 유로, 실측 맵, 밸브/씰/캐비테이션 거동, 더 풍부한 컨버터 동역학 | -| 제어와 전기 통합 | 샘플링 압력 PI, 니들 폐쇄 제어, 센서로 확인된 단계적 DCT 인계, 유계 전압/듀티, 액추에이터 소유권, 배터리 등가 회로, 보기 | 조율된 ECU/TCU 사이클, 센서/액추에이터, 토크 요청, 결함, BMS, 실측 열/전기 거동 | +| 제어와 전기 통합 | 샘플링 압력 PI, 니들 폐쇄 제어, 센서로 확인된 단계적 DCT 인계, 유계 전압/듀티, 액추에이터 소유권, 배터리 등가 회로, 보기; [`at_controller`](AT_CONTROL.ko.md) | 조율된 ECU/TCU 사이클, 센서/액추에이터, 토크 요청, 결함, BMS, 실측 열/전기 거동 | | 차량 증거와 릴리스 | 완전한 경계와 출처를 갖춘 연구 샘플 | 두 개의 완전한 실측 파워트레인, 불확실성 예산, 안정성, 데스크톱 수용, 배포 | 현재 수치 체크포인트, 진본 자산 픽스처, 플랫폼별 검증 기록은 [VALIDATION.ko.md](VALIDATION.ko.md)에 있습니다. 구현 상태는 [DEVELOPMENT_STATUS.ko.md](DEVELOPMENT_STATUS.ko.md), 불변 조건은 [ARCHITECTURE.ko.md](ARCHITECTURE.ko.md)를 참고하세요. 게시된 CI 증거는 기록된 개정에 적용됩니다. 새로운 로컬 변경은 별도의 플랫폼 수용이 필요합니다. ## 다음 관리형 작업 -[액체 분사 계약](LIQUID_FUEL_INJECTION.ko.md)을 레일 펌프/보충과 정밀화된 자기/전자 구동으로 이어 갑니다. 유한 컴플라이언트 공급 질량과 압력 에너지, 실제 니들 운동, 샘플링 도즈 피드백, 필름 보충, 증발은 구현되어 있습니다. [니들 계약](NEEDLE_ACTUATION.ko.md)과 [유계 폐쇄 예측](CLOSURE_PREDICTION.ko.md)을 참고하세요. 수신기는 선언된 무시 가능 액체 체적 경계 아래에서 여전히 변위 압력 일을 내보냅니다. 분해된 분무/변위는 검증된 기하와 운동량/일 결합으로 그것을 대체해야 합니다. 공급, 증기 가용성, 규정 반응은 분리된 상태로 유지하고, 해석적/보존/수렴 증거를 유지합니다. +재료 증거를 갖춘 유한 속도 노즐 내부 체류를 해상한 뒤 분무와 호환 연소 수신부를 추가합니다. 점화, 흡배기, 기계 손실, 변속기 작동과 ECU/TCU 협조 제어를 계속합니다. 실측 보정과 실제 Unity 인수는 별개로 진행합니다. [압축성 평형 연료 덕트](EQUILIBRIUM_FUEL_DUCT.ko.md) 그다음 점화/제어, 흡기/배기 동역학, 엔진 기계 손실을 확장합니다. 현재 Wiebe 연소는 규정된 것이며, 예측 연소, 노킹, 배출, OEM 교정을 확립하지 않습니다. [기체 계량 계약](FUEL_METERING.ko.md)은 독립적으로 지원되는 경로로 남습니다. [일곱 전진/후진 DCT 그래프](DUAL_CLUTCH_TRANSMISSION.ko.md) 위에 상세 싱크로나이저/도그/클러치 구동을 쌓습니다. [Ravigneaux 그래프](RAVIGNEAUX_TRANSMISSION.ko.md) 위에 [실측 유성 물성과 물림 거동](RESOLVED_PLANETS.ko.md), 완전한 [펌프 공급 피스톤 구동](AT_HYDRAULIC_ACTUATION.ko.md), 그리고 결합 컨버터, 기어, 클러치, 유압 원시 요소를 쓰는 AT 제어를 쌓습니다. [샘플링 DCT 제어](DCT_CONTROL.ko.md) 위에서 토크 블렌딩 변속과 유계 ECU/TCU 조율로 나아갑니다. 토크 요청, 센서/액추에이터, 복구 가능한 결함을 포함합니다. 실측 물성/제어 데이터가 있을 때 일정 펌프 손실, 배터리, 밸브/어큐뮬레이터 모델을 확장합니다. 제공된 연구 값은 검증되지 않은 상태로 남습니다. +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. [축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + ## 스튜디오와 실측 수용 `POWER_UNITY_EDITOR`를 고정된 편집기로 설정하고 `unity-test`를 실행합니다. 실제 가져오기/Play/렌더링 증거를 얻은 뒤 Player/IL2CPP 증거를 얻습니다. 일반 채널 선택, 그래프 편집, 저장은 별도의 스튜디오 기능으로 남습니다. CLI, MCP, Unity는 계속 같은 모델 의미론을 소비해야 합니다. @@ -34,3 +36,5 @@ EA211 DJS + DQ200과 PSA EC5 + AT8은 완전한 파워트레인 경계, 차량 적용 범위, 증거 매니페스트를 유지합니다. 누락된 OEM 측정은 조용한 기본값으로 대체되지 않습니다. 기능 완료, 수치 정확성, 실측 차량 신뢰성은 별도의 수용이 필요합니다. [Zig 아카이브](NATIVE_ZIG.ko.md)는 원래 C 개정 `c342d4c`를 포함해 원래 해시와 Git 출처를 `legacy/native/migration-manifest.json`에 유지합니다. 활성 C#/Unity 응용 프로그램과는 별개로 남습니다. 네이티브 이식이 관리형 기능 이식이나 파워트레인 수용을 완료하지는 않습니다. 측정이 그것을 정당화하고 코어 계약이 안정적일 때 추가 병렬성, 희소 해석 또는 Burst를 도입합니다. + +[증기 질량분율 동결 연료 토출과 유한 수용실](FUEL_DISCHARGE.ko.md) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 20d3b76..cc9ae76 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -12,12 +12,12 @@ calibration and desktop acceptance each need their own evidence. | Milestone | Available foundation | Work still required | |---|---|---| | Managed core | Dual-target dependency-free physics, topology, units, integer time, replay and atomic transactions | Long-run integrated powertrain validation | -| Agent interface | Schema-defined MCP tools, structured diagnostics, revisions, branches, cancellation and compact reports | Modeling/control workflows for the remaining full-powertrain scope | +| Agent interface | Schema-defined MCP tools, structured diagnostics, revisions, branches, cancellation and compact reports; `list-labs` / `get_capabilities.examples` | Modeling/control workflows for the remaining full-powertrain scope | | Unity studio | Shared model import, laboratory playback, 3D schematic components and prepared tests | Actual Editor/Play/Player/IL2CPP evidence and desktop packaging | -| Modeling workbench | Portable asset v24, v1-v23 readers and shared JSON/CLI/MCP definitions | Graph editing, saving and selectable channel plots | -| Engine physics | Independent gas mass/energy, slider-crank work, timed valves, prescribed combustion, gaseous and liquid fuel metering, finite compliant rails, film evaporation and physical needle actuation | Rail pump/refill, refined magnetic/electronic/spray behavior, finite-liquid-volume coupling, ignition control, detailed intake/exhaust, mechanical losses, thermochemistry and measured calibration | +| Modeling workbench | Portable asset v41, v1-v40 readers and shared JSON/CLI/MCP definitions | Graph editing, saving and selectable channel plots | +| Engine physics | Independent gas mass/energy, slider-crank work, timed valves, prescribed combustion, gaseous and liquid fuel metering, finite compliant rails, film evaporation and physical needle actuation; [Pump-fed liquid fuel rail](PUMP_FED_FUEL.md); finite tanks and conserving relief returns; [Geometric tank and finite headspace](TANK_HEADSPACE.md); [Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md); [Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md); [Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md); [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md); [Shaft-driven compressible fuel chambers](COMPRESSIBLE_FUEL_CHAMBER.md); [Frozen compressible fuel nozzles](COMPRESSIBLE_FUEL_NOZZLE.md); [Equilibrium fuel nozzle transit](EQUILIBRIUM_FUEL_NOZZLE.md); [Finite-rate fuel phase relaxation](RELAXING_FUEL.md); [Relaxing fuel pumps and frozen metering](RELAXING_FUEL_BOUNDARIES.md) | Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. | | Transmission | Coupled clutches, gears/planetaries, mapped converter/lockup, hydraulics and seven-forward/reverse DCT and four-forward/reverse Ravigneaux paths with resolved planet spin/orbital inertia | Mesh compliance/losses and load sharing, DCT actuation, complete AT pressure/shift control and measured routing, measured maps, valve/seal/cavitation behavior and richer converter dynamics | -| Controls and electrical integration | Sampled pressure PI, needle closure control and sensor-confirmed staged DCT handoff, bounded voltage/duty, actuator ownership, battery equivalent circuit and accessories | Coordinated ECU/TCU cycles, sensors/actuators, torque requests, faults, BMS and measured thermal/electrical behavior | +| Controls and electrical integration | Sampled pressure PI, needle closure control and sensor-confirmed staged DCT handoff, bounded voltage/duty, actuator ownership, battery equivalent circuit and accessories; [`at_controller`](AT_CONTROL.md) | Coordinated ECU/TCU cycles, sensors/actuators, torque requests, faults, BMS and measured thermal/electrical behavior | | Vehicle evidence and release | Research samples with complete boundaries and provenance | Two complete measured powertrains, uncertainty budgets, stability, desktop acceptance and distribution | Current numerical checkpoints, authentic asset fixtures and platform-specific @@ -28,14 +28,7 @@ its recorded revision; new local changes need separate platform acceptance. ## Next managed work -Continue the [liquid injection contract](LIQUID_FUEL_INJECTION.md) with rail -pump/refill and refined magnetic/electronic actuation. Finite compliant source mass -and pressure energy, actual needle motion, sampled dose feedback, film replenishment -and evaporation are implemented. See [the needle contract](NEEDLE_ACTUATION.md) and [bounded closure prediction](CLOSURE_PREDICTION.md). The -receiver still exports displacement pressure work under the declared negligible -liquid volume boundary; resolved spray/displacement must replace it with verified -geometry and momentum/work coupling. Keep delivery, vapor availability and -prescribed reaction separate, and retain analytic/conservation/convergence evidence. +Add resolved finite-rate nozzle residence with material evidence, then resolved spray and compatible fired receivers. Continue ignition, intake/exhaust, mechanical losses, transmission actuation and coordinated ECU/TCU control. Measured calibration and actual Unity acceptance remain separate. [Compressible equilibrium fuel ducts](EQUILIBRIUM_FUEL_DUCT.md) Then extend ignition/control, intake/exhaust dynamics and engine mechanical losses. The current Wiebe burn is prescribed and doesn't establish predictive @@ -51,6 +44,8 @@ coordination, including torque requests, sensors/actuators and recoverable fault Extend constant pump-loss, battery and valve/accumulator models when measured property/control data is available; supplied research values remain unverified. +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. [Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + ## Studio and measured acceptance Set `POWER_UNITY_EDITOR` to the pinned Editor and run `unity-test`. Obtain actual @@ -69,3 +64,5 @@ It remains separate from the active C#/Unity application. Native migration doesn complete managed feature migration or powertrain acceptance. Introduce additional parallelism, sparse solving or Burst when measurements justify it and the core contracts remain stable. + +[Frozen-quality fuel discharge and finite receivers](FUEL_DISCHARGE.md) diff --git a/docs/ROADMAP.pt-BR.md b/docs/ROADMAP.pt-BR.md index d3b8840..16ead7f 100644 --- a/docs/ROADMAP.pt-BR.md +++ b/docs/ROADMAP.pt-BR.md @@ -9,24 +9,26 @@ O objetivo é a plataforma completa de powertrain do Power!: física moderna em | Marco | Base disponível | Trabalho que ainda falta | |---|---|---| | Núcleo gerenciado | Física sem dependências e de alvo duplo, topologia, unidades, tempo inteiro, replay e transações atômicas | Validação de powertrain integrado em longa duração | -| Interface de agente | Ferramentas MCP definidas por esquema, diagnósticos estruturados, revisões, ramificações, cancelamento e relatórios compactos | Fluxos de modelagem/controle para o escopo restante de powertrain completo | +| Interface de agente | Ferramentas MCP definidas por esquema, diagnósticos estruturados, revisões, ramificações, cancelamento e relatórios compactos; `list-labs` / `get_capabilities.examples` | Fluxos de modelagem/controle para o escopo restante de powertrain completo | | Estúdio Unity | Importação compartilhada de modelo, reprodução de laboratório, componentes 3D esquemáticos e testes preparados | Evidência real de Editor/Play/Player/IL2CPP e empacotamento de desktop | -| Bancada de modelagem | Asset portátil v24, leitores v1-v23 e definições compartilhadas de JSON/CLI/MCP | Edição de grafo, gravação e gráficos de canais selecionáveis | -| Física do motor | Massa/energia de gás independentes, trabalho de biela-manivela, válvulas cronometradas, combustão prescrita, medição de combustível gasoso e líquido, trilhos flexíveis finitos, evaporação de filme e acionamento físico da agulha | Bomba/reabastecimento do trilho, comportamento magnético/eletrônico/de pulverização refinado, acoplamento de volume líquido finito, controle de ignição, admissão/escape detalhados, perdas mecânicas, termoquímica e calibração medida | +| Bancada de modelagem | Asset portátil v41, leitores v1-v40 e definições compartilhadas de JSON/CLI/MCP | Edição de grafo, gravação e gráficos de canais selecionáveis | +| Física do motor | Massa/energia de gás independentes, trabalho de biela-manivela, válvulas cronometradas, combustão prescrita, medição de combustível gasoso e líquido, trilhos flexíveis finitos, evaporação de filme e acionamento físico da agulha; [Rail de combustível líquido alimentado por bomba](PUMP_FED_FUEL.pt-BR.md); tanques finitos e retornos conservativos de alívio; [Geometria do tanque e espaço gasoso finito](TANK_HEADSPACE.pt-BR.md); [Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md); [Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md); [Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md); [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md); [Câmaras de combustível compressível acionadas por eixo](COMPRESSIBLE_FUEL_CHAMBER.pt-BR.md); [Bocais de combustível compressível com título congelado](COMPRESSIBLE_FUEL_NOZZLE.pt-BR.md); [Trânsito de combustível em equilíbrio nos bocais](EQUILIBRIUM_FUEL_NOZZLE.pt-BR.md); [Relaxação de fase do combustível com taxa finita](RELAXING_FUEL.pt-BR.md); [Bombas de combustível com relaxação e dosagem congelada](RELAXING_FUEL_BOUNDARIES.pt-BR.md) | Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. | | Transmissão | Embreagens acopladas, engrenagens/planetárias, conversor/trava mapeados, hidráulica e caminhos DCT de sete marchas à frente/ré e Ravigneaux de quatro faixas à frente/ré com giro/inércia orbital dos planetas resolvidos | Flexibilidade/perdas de engrenamento e divisão de carga, acionamento DCT, controle completo de pressão/troca da AT e roteamento medido, mapas medidos, comportamento de válvula/vedação/cavitação e dinâmica mais rica do conversor | -| Controles e integração elétrica | PI de pressão amostrado, controle de fechamento da agulha e entrega DCT escalonada confirmada por sensor, tensão/duty limitados, posse do atuador, circuito equivalente de bateria e acessórios | Ciclos coordenados de ECU/TCU, sensores/atuadores, solicitações de torque, falhas, BMS e comportamento térmico/elétrico medido | +| Controles e integração elétrica | PI de pressão amostrado, controle de fechamento da agulha e entrega DCT escalonada confirmada por sensor, tensão/duty limitados, posse do atuador, circuito equivalente de bateria e acessórios; [`at_controller`](AT_CONTROL.pt-BR.md) | Ciclos coordenados de ECU/TCU, sensores/atuadores, solicitações de torque, falhas, BMS e comportamento térmico/elétrico medido | | Evidência do veículo e lançamento | Amostras de pesquisa com fronteiras e procedência completas | Dois powertrains medidos completos, orçamentos de incerteza, estabilidade, aceitação de desktop e distribuição | Os pontos de controle numéricos atuais, as fixtures autênticas de asset e os registros de verificação por plataforma estão em [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md). Veja [DEVELOPMENT_STATUS.pt-BR.md](DEVELOPMENT_STATUS.pt-BR.md) para o estado da implementação e [ARCHITECTURE.pt-BR.md](ARCHITECTURE.pt-BR.md) para os invariantes. A evidência de CI publicada vale para a revisão registrada; mudanças locais novas precisam de aceitação separada em cada plataforma. ## Próximo trabalho gerenciado -Continue o [contrato de injeção líquida](LIQUID_FUEL_INJECTION.pt-BR.md) com bomba/reabastecimento do trilho e acionamento magnético/eletrônico refinado. Massa finita da fonte flexível e energia de pressão, movimento real da agulha, realimentação amostrada de dose, reposição do filme e evaporação estão implementados. Veja [o contrato da agulha](NEEDLE_ACTUATION.pt-BR.md) e a [predição limitada de fechamento](CLOSURE_PREDICTION.pt-BR.md). O receptor ainda exporta trabalho de pressão de deslocamento sob a fronteira declarada de volume líquido desprezível; pulverização/deslocamento resolvidos precisam substituí-la por geometria verificada e acoplamento de momento/trabalho. Mantenha a entrega, a disponibilidade de vapor e a reação prescrita separadas, e conserve a evidência analítica/de conservação/de convergência. +Resolver residência finita no bocal com evidências do material, depois adicionar spray resolvido e receptores com combustão compatíveis. Continuar ignição, admissão/escape, perdas mecânicas, atuação da transmissão e coordenação ECU/TCU. Calibração medida e aceitação real do Unity seguem separadas. [Dutos de combustível compressível em equilíbrio](EQUILIBRIUM_FUEL_DUCT.pt-BR.md) Depois estenda ignição/controle, dinâmica de admissão/escape e perdas mecânicas do motor. A queima de Wiebe atual é prescrita e não estabelece combustão preditiva, detonação, emissões nem calibração OEM. O [contrato de medição gasosa](FUEL_METERING.pt-BR.md) continua um caminho independente suportado. Construa sobre o [grafo DCT de sete marchas à frente/ré](DUAL_CLUTCH_TRANSMISSION.pt-BR.md) com acionamento detalhado de sincronizador/garras/embreagem. Construa sobre o [grafo Ravigneaux](RAVIGNEAUX_TRANSMISSION.pt-BR.md) com [propriedades medidas dos planetas e comportamento de engrenamento](RESOLVED_PLANETS.pt-BR.md), [acionamento completo por pistão alimentado pela bomba](AT_HYDRAULIC_ACTUATION.pt-BR.md) e controle AT usando os primitivos acoplados de conversor, engrenagens, embreagens e hidráulica. Construa sobre o [controle DCT amostrado](DCT_CONTROL.pt-BR.md) em direção a trocas com mistura de torque e coordenação limitada de ECU/TCU, incluindo solicitações de torque, sensores/atuadores e falhas recuperáveis. Estenda os modelos de perda constante da bomba, bateria e válvula/acumulador quando houver dados medidos de propriedade/controle; os valores de pesquisa fornecidos continuam não verificados. +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. [Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + ## Estúdio e aceitação medida Defina `POWER_UNITY_EDITOR` com o Editor fixado e execute `unity-test`. Obtenha evidência real de importação/Play/renderização e, em seguida, evidência de Player/IL2CPP. Seleção geral de canais, edição de grafo e gravação continuam recursos separados do Studio. CLI, MCP e Unity precisam continuar consumindo a mesma semântica de modelo. @@ -34,3 +36,5 @@ Defina `POWER_UNITY_EDITOR` com o Editor fixado e execute `unity-test`. Obtenha EA211 DJS + DQ200 e PSA EC5 + AT8 conservam fronteiras completas de powertrain, aplicabilidade do veículo e manifestos de evidência. Medições OEM ausentes não são substituídas por padrões silenciosos. Conclusão funcional, correção numérica e credibilidade medida do veículo exigem aceitação separada. O [acervo Zig](NATIVE_ZIG.pt-BR.md) conserva os hashes originais e a procedência Git em `legacy/native/migration-manifest.json`, incluindo a revisão C original `c342d4c`. Ele continua separado do aplicativo C#/Unity ativo. A migração nativa não conclui a migração de recursos gerenciados nem a aceitação do powertrain. Introduza paralelismo adicional, solução esparsa ou Burst quando as medições justificarem e os contratos do núcleo continuarem estáveis. + +[Descarga de combustível com título congelado e receptores finitos](FUEL_DISCHARGE.pt-BR.md) diff --git a/docs/ROADMAP.ru.md b/docs/ROADMAP.ru.md index 7a0ce42..97eb179 100644 --- a/docs/ROADMAP.ru.md +++ b/docs/ROADMAP.ru.md @@ -9,24 +9,26 @@ | Этап | Имеющаяся основа | Что ещё нужно | |---|---|---| | Управляемое ядро | Физика без зависимостей на две целевые платформы, топология, единицы, целочисленное время, повтор и атомарные транзакции | Валидация длительного прогона цельного силового агрегата | -| Интерфейс агента | Инструменты MCP со схемами, структурированная диагностика, ревизии, ветки, отмена и компактные отчёты | Рабочие процессы моделирования и управления для оставшегося полного объёма силового агрегата | +| Интерфейс агента | Инструменты MCP со схемами, структурированная диагностика, ревизии, ветки, отмена и компактные отчёты; `list-labs` / `get_capabilities.examples` | Рабочие процессы моделирования и управления для оставшегося полного объёма силового агрегата | | Студия Unity | Общий импорт моделей, воспроизведение лабораторий, схематичные 3D-компоненты и подготовленные тесты | Фактические свидетельства Editor/Play/Player/IL2CPP и упаковка настольного приложения | -| Верстак моделирования | Переносимый актив v24, читатели v1-v23 и общие определения JSON/CLI/MCP | Редактирование графа, сохранение и выбираемые графики каналов | -| Физика двигателя | Независимые масса и энергия газа, работа кривошипно-шатунного механизма, клапаны по углу, предписанное сгорание, дозирование газообразного и жидкого топлива, конечные податливые рейки, испарение плёнки и физический привод иглы | Насос и заправка рейки, уточнённое магнитное/электронное/распыляющее поведение, связь при конечном объёме жидкости, управление зажиганием, подробный впуск/выпуск, механические потери, термохимия и измеренная калибровка | +| Верстак моделирования | Переносимый актив v41, читатели v1-v40 и общие определения JSON/CLI/MCP | Редактирование графа, сохранение и выбираемые графики каналов | +| Физика двигателя | Независимые масса и энергия газа, работа кривошипно-шатунного механизма, клапаны по углу, предписанное сгорание, дозирование газообразного и жидкого топлива, конечные податливые рейки, испарение плёнки и физический привод иглы; [Жидкая топливная рампа с насосной подачей](PUMP_FED_FUEL.ru.md); конечные баки и консервативный возврат через клапан; [Геометрия бака и конечное газовое пространство](TANK_HEADSPACE.ru.md); [Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md); [Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md); [Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md); [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md); [Топливные камеры сжимаемой среды с приводом от вала](COMPRESSIBLE_FUEL_CHAMBER.ru.md); [Сжимаемые топливные сопла с замороженным составом](COMPRESSIBLE_FUEL_NOZZLE.ru.md); [Равновесное прохождение топлива через сопло](EQUILIBRIUM_FUEL_NOZZLE.ru.md); [Фазовая релаксация топлива с конечной скоростью](RELAXING_FUEL.ru.md); [Релаксационные топливные насосы и дозирование с замороженной фазой](RELAXING_FUEL_BOUNDARIES.ru.md) | Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. | | Трансмиссия | Связанные сцепления, шестерни и планетарные ряды, гидротрансформатор с картой и блокировкой, гидравлика, пути DCT на семь передних и задний ход и пути Ravigneaux на четыре передних и задний ход с разрешённым вращением сателлитов и орбитальной инерцией | Податливость, потери и распределение нагрузки в зацеплении, привод DCT, полное управление давлением и переключением AT и измеренная маршрутизация, измеренные карты, поведение клапанов, уплотнений и кавитации, более богатое поведение гидротрансформатора | -| Управление и электрическая интеграция | Дискретный ПИ по давлению, управление закрытием иглы и поэтапная передача DCT с подтверждением датчиком, ограниченные напряжение и скважность, владение исполнительными механизмами, эквивалентная схема батареи и вспомогательные нагрузки | Согласованные циклы ECU/TCU, датчики и исполнительные механизмы, запросы момента, неисправности, BMS и измеренное тепловое и электрическое поведение | +| Управление и электрическая интеграция | Дискретный ПИ по давлению, управление закрытием иглы и поэтапная передача DCT с подтверждением датчиком, ограниченные напряжение и скважность, владение исполнительными механизмами, эквивалентная схема батареи и вспомогательные нагрузки; [`at_controller`](AT_CONTROL.ru.md) | Согласованные циклы ECU/TCU, датчики и исполнительные механизмы, запросы момента, неисправности, BMS и измеренное тепловое и электрическое поведение | | Автомобильные свидетельства и выпуск | Исследовательские образцы с полными границами и происхождением | Два полных измеренных силовых агрегата, бюджеты неопределённости, устойчивость, приёмка настольного приложения и распространение | Текущие численные контрольные точки, подлинные фикстуры активов и записи проверки по платформам — в [журнале валидации](VALIDATION.ru.md). Состояние реализации — в [статусе разработки](DEVELOPMENT_STATUS.ru.md), инварианты — в [архитектуре](ARCHITECTURE.ru.md). Опубликованные свидетельства CI относятся к записанной ревизии; новые локальные изменения требуют отдельной приёмки на платформах. ## Следующая управляемая работа -Продолжить [контракт жидкостного впрыска](LIQUID_FUEL_INJECTION.ru.md): насос и заправка рейки и уточнённый магнитный и электронный привод. Конечные масса податливого источника и энергия давления, фактическое движение иглы, дискретная обратная связь по дозе, пополнение плёнки и испарение реализованы. См. [контракт иглы](NEEDLE_ACTUATION.ru.md) и [ограниченное предсказание закрытия](CLOSURE_PREDICTION.ru.md). Приёмник по-прежнему отдаёт работу давления вытеснения на объявленной границе пренебрежимо малого объёма жидкости; разрешённые распыл и вытеснение должны заменить её проверенными геометрией и связью импульса и работы. Подачу, доступность пара и предписанную реакцию держите раздельно и сохраняйте аналитические свидетельства, свидетельства сохранения и сходимости. +Разрешить конечное время пребывания в сопле с данными материала, затем добавить разрешённый распыл и совместимые горящие приёмники. Продолжить зажигание, впуск/выпуск, механические потери, приводы трансмиссии и координацию ECU/TCU. Измеренная калибровка и приёмка Unity остаются отдельными задачами. [Сжимаемые равновесные топливные каналы](EQUILIBRIUM_FUEL_DUCT.ru.md) Затем расширить зажигание и управление, динамику впуска и выпуска и механические потери двигателя. Текущее выгорание Вибе предписано и не устанавливает прогнозирующее сгорание, детонацию, выбросы или калибровку OEM. [Контракт газового дозирования](FUEL_METERING.ru.md) остаётся независимым поддерживаемым путём. Опирайтесь на [граф DCT с семью передними передачами и задним ходом](DUAL_CLUTCH_TRANSMISSION.ru.md) с подробным приводом синхронизатора, кулачковой муфты и сцепления. Опирайтесь на [граф Ravigneaux](RAVIGNEAUX_TRANSMISSION.ru.md) с [измеренными свойствами сателлитов и поведением зацепления](RESOLVED_PLANETS.ru.md), полным [поршневым приводом от насоса](AT_HYDRAULIC_ACTUATION.ru.md) и управлением AT на связанных примитивах гидротрансформатора, шестерён, сцеплений и гидравлики. Опирайтесь на [дискретное управление DCT](DCT_CONTROL.ru.md) в сторону переключений со смешением момента и ограниченного согласования ECU/TCU, включая запросы момента, датчики и исполнительные механизмы и восстановимые неисправности. Расширяйте модели постоянных потерь насоса, батареи и клапанов с аккумуляторами, когда появятся измеренные данные о свойствах и управлении; заданные исследовательские значения остаются непроверенными. +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. [Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + ## Студия и измеренная приёмка Установите `POWER_UNITY_EDITOR` на закреплённый редактор и выполните `unity-test`. Получите фактические свидетельства импорта, Play и рендеринга, затем свидетельства Player/IL2CPP. Общий выбор каналов, редактирование графа и сохранение остаются отдельными возможностями студии. CLI, MCP и Unity должны и дальше потреблять одну и ту же семантику модели. @@ -34,3 +36,5 @@ EA211 DJS + DQ200 и PSA EC5 + AT8 сохраняют полные границы силового агрегата, применимость к автомобилю и манифесты свидетельств. Отсутствующие измерения OEM не заменяются молчаливыми значениями по умолчанию. Функциональная завершённость, численная правильность и достоверность автомобиля по измерениям требуют отдельной приёмки. [Архив Zig](NATIVE_ZIG.ru.md) сохраняет исходные хеши и происхождение Git в `legacy/native/migration-manifest.json`, включая исходную ревизию C `c342d4c`. Он остаётся отдельным от активного приложения C#/Unity. Нативный перенос не завершает перенос управляемых возможностей и не является приёмкой силового агрегата. Дополнительный параллелизм, разреженное решение или Burst вводите, когда это оправдано измерениями и контракты ядра остаются устойчивыми. + +[Подача топлива с замороженным паросодержанием в конечный приёмник](FUEL_DISCHARGE.ru.md) diff --git a/docs/ROADMAP.zh-CN.md b/docs/ROADMAP.zh-CN.md index 281be34..57886de 100644 --- a/docs/ROADMAP.zh-CN.md +++ b/docs/ROADMAP.zh-CN.md @@ -9,24 +9,26 @@ | 里程碑 | 已有基础 | 仍需完成的工作 | |---|---|---| | 托管核心 | 双目标、无依赖的物理、拓扑、单位、整数时间、回放与原子事务 | 长期集成动力总成验证 | -| 智能体接口 | 由 schema 定义的 MCP 工具、结构化诊断、修订号、分支、取消与紧凑报告 | 面向剩余完整动力总成范围的建模/控制工作流 | +| 智能体接口 | 由 schema 定义的 MCP 工具、结构化诊断、修订号、分支、取消与紧凑报告; `list-labs` / `get_capabilities.examples` | 面向剩余完整动力总成范围的建模/控制工作流 | | Unity 工作室 | 共享模型导入、实验室回放、3D 示意元件与已准备的测试 | 真实的编辑器/Play/Player/IL2CPP 证据与桌面打包 | -| 建模工作台 | 可移植资产 v24、v1-v23 读取器,以及共享的 JSON/CLI/MCP 定义 | 图编辑、保存与可选通道曲线 | -| 发动机物理 | 独立的气体质量/能量、滑块—曲柄功、定时气门、预设燃烧、气体与液体燃油计量、有限柔性油轨、油膜蒸发与物理针阀驱动 | 油轨泵送/加注、更精细的电磁/电子/喷雾行为、有限液体体积耦合、点火控制、详细进/排气、机械损失、热化学与实测标定 | +| 建模工作台 | 可移植资产 v41、v1-v40 读取器,以及共享的 JSON/CLI/MCP 定义 | 图编辑、保存与可选通道曲线 | +| 发动机物理 | 独立的气体质量/能量、滑块—曲柄功、定时气门、预设燃烧、气体与液体燃油计量、有限柔性油轨、油膜蒸发与物理针阀驱动; [泵送液体燃油轨](PUMP_FED_FUEL.zh-CN.md); 有限油箱与守恒泄压回流; [油箱几何与有限气相空间](TANK_HEADSPACE.zh-CN.md); [燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md); [有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md); [冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md); [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md); [轴驱动可压缩燃料腔室](COMPRESSIBLE_FUEL_CHAMBER.zh-CN.md); [冻结相态可压缩燃料喷嘴](COMPRESSIBLE_FUEL_NOZZLE.zh-CN.md); [平衡燃料喷嘴输运](EQUILIBRIUM_FUEL_NOZZLE.zh-CN.md); [有限速率燃料相变弛豫](RELAXING_FUEL.zh-CN.md); [相变弛豫燃料泵与冻结相态计量](RELAXING_FUEL_BOUNDARIES.zh-CN.md) | 在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 | | 变速器 | 耦合离合器、齿轮/行星排、映射式变矩器/锁止、液压,以及带已分解行星自转/轨道惯量的七前进/倒挡 DCT 与四前进/倒挡 Ravigneaux 路径 | 啮合柔性/损失与载荷分配、DCT 执行、完整 AT 压力/换挡控制与实测油路、实测图谱、阀门/密封/空化行为,以及更丰富的变矩器动力学 | -| 控制与电气集成 | 采样压力 PI、针阀闭合控制与传感器确认的分阶段 DCT 交接、有界电压/占空比、执行器所有权、电池等效电路与附件 | 协调的 ECU/TCU 循环、传感器/执行器、扭矩请求、故障、BMS,以及实测热/电行为 | +| 控制与电气集成 | 采样压力 PI、针阀闭合控制与传感器确认的分阶段 DCT 交接、有界电压/占空比、执行器所有权、电池等效电路与附件; [`at_controller`](AT_CONTROL.zh-CN.md) | 协调的 ECU/TCU 循环、传感器/执行器、扭矩请求、故障、BMS,以及实测热/电行为 | | 车辆证据与发布 | 边界与溯源完整的研究样本 | 两套完整实测动力总成、不确定度预算、稳定性、桌面验收与分发 | 当前数值检查点、真实资产夹具与分平台验证记录见 [验证记录](VALIDATION.zh-CN.md)。实现状态见 [开发状态](DEVELOPMENT_STATUS.zh-CN.md),不变量见 [架构](ARCHITECTURE.zh-CN.md)。已发布的 CI 证据适用于它所记录的修订;新的本地更改需要单独的平台验收。 ## 下一项托管工作 -在 [低压喷射契约](LIQUID_FUEL_INJECTION.zh-CN.md) 上继续油轨泵送/加注,以及更精细的电磁/电子驱动。有限柔性源质量与压力能、真实针阀运动、采样剂量反馈、油膜补充与蒸发已经实现。参见 [针阀契约](NEEDLE_ACTUATION.zh-CN.md) 与 [有界闭合预测](CLOSURE_PREDICTION.zh-CN.md)。接收端仍在声明的可忽略液体体积边界下导出位移压力功;分解后的喷雾/位移必须用经过验证的几何与动量/功耦合替换它。保持供给、蒸气可用性与预设反应彼此分开,并保留解析、守恒与收敛证据。 +在材料证据基础上解析喷嘴内部的有限速率停留过程,再加入解析喷雾和相容燃烧接收腔。继续点火、进排气、机械损失、变速器执行与 ECU/TCU 协同控制;实测标定和实际 Unity 验收分别推进。 [可压缩平衡燃料管路](EQUILIBRIUM_FUEL_DUCT.zh-CN.md) 然后扩展点火/控制、进/排气动力学与发动机机械损失。当前的 Wiebe 燃烧是预设的,并不确立预测燃烧、爆震、排放或 OEM 标定。[气体计量契约](FUEL_METERING.zh-CN.md) 仍是一条独立的受支持路径。 在 [七前进/倒挡 DCT 图](DUAL_CLUTCH_TRANSMISSION.zh-CN.md) 上构建详细的同步器/接合齿/离合器执行。在 [Ravigneaux 图](RAVIGNEAUX_TRANSMISSION.zh-CN.md) 上结合 [实测行星属性与啮合行为](RESOLVED_PLANETS.zh-CN.md)、完整的 [泵驱动活塞执行](AT_HYDRAULIC_ACTUATION.zh-CN.md),并用耦合的变矩器、齿轮、离合器与液压原语做 AT 控制。在 [采样 DCT 控制](DCT_CONTROL.zh-CN.md) 上走向扭矩混合换挡与有界 ECU/TCU 协调,包括扭矩请求、传感器/执行器与可恢复故障。有实测属性/控制数据时,再扩展恒定泵损耗、电池与阀门/蓄能器模型;所给研究值仍为未核实。 +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 [轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + ## 工作室与实测验收 把 `POWER_UNITY_EDITOR` 设为锁定的编辑器并运行 `unity-test`。先取得真实的导入/Play/渲染证据,再取得 Player/IL2CPP 证据。通用通道选择、图编辑与保存仍是单独的工作室功能。CLI、MCP 与 Unity 必须继续使用同一套模型语义。 @@ -34,3 +36,5 @@ EA211 DJS + DQ200 与 PSA EC5 + AT8 保留完整的动力总成边界、车辆适用性与证据清单。缺失的 OEM 测量不会被静默默认值替换。功能完成、数值正确与实测车辆可信度需要分开验收。 [Zig 存档](NATIVE_ZIG.zh-CN.md) 在 `legacy/native/migration-manifest.json` 中保留原始哈希与 Git 溯源,包括原始 C 修订 `c342d4c`。它与现行 C#/Unity 应用保持分离。原生迁移并不完成托管功能迁移或动力总成验收。只有当测量证明有必要时,并且核心契约保持稳定,才引入额外并行、稀疏求解或 Burst。 + +[冻结汽相质量分数的燃油喷流与有限体积接收腔](FUEL_DISCHARGE.zh-CN.md) diff --git a/docs/TANK_HEADSPACE.de.md b/docs/TANK_HEADSPACE.de.md new file mode 100644 index 0000000..03a3978 --- /dev/null +++ b/docs/TANK_HEADSPACE.de.md @@ -0,0 +1,25 @@ +# Tankgeometrie und endlicher Gasraum + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · **Deutsch** · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## Vertrag + +`liquid_fuel_tank.parameters.headspace` deklariert `capacity` in `m3` oder `l` und `gas_node`. Der Gasnode lässt `storage` aus: Volumen `capacity - liquid_mass / density`, ein Eigentümer und positives Volumen. Pumpe und Rücklauf setzen den vorgeschriebenen Reservoirdruck auf null; das endliche Gas bestimmt den Einlassdruck. + +Die gekoppelte Lösung tauscht Druckarbeit zwischen Welle, Rail und Gas ohne externe Druckquelle. Gasdrosseln und Wärmeverbindungen bilden explizite Entlüftung/Wärmewege. `pressure`, `fill_fraction`, vorzeichenbehaftete kumulierte `hydraulic_work` sowie Gasmasse, Energie und Volumen lesen. Dosis, Flüssigkeit, Verdampfung und Verbrennung bleiben getrennt. + +## Nachweise und Grenzen + +`vented-tank-liquid-cylinder` und `vented-tank-needle-cylinder` nutzen Tank 1513, Gas 1520 und Entlüftungseingang 960. Asset v41 speichert Geometrie und liest v1-v40. Analytische Arbeit/Ableitungen, unabhängige ODE-Konvergenz, Bilanzen, portable/MCP-Replay, Rollback und allokationsfreie Schritte bestehen. + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Thermodynamik realer Gemische, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.de.md) + +## Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +[Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen](TANK_PHASE_EQUILIBRIUM.de.md) diff --git a/docs/TANK_HEADSPACE.es.md b/docs/TANK_HEADSPACE.es.md new file mode 100644 index 0000000..aa93762 --- /dev/null +++ b/docs/TANK_HEADSPACE.es.md @@ -0,0 +1,25 @@ +# Geometría del tanque y espacio gaseoso finito + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · **Español** · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## Contrato + +`liquid_fuel_tank.parameters.headspace` declara `capacity` en `m3` o `l` y `gas_node`. El gas omite `storage`: volumen `capacity - liquid_mass / density`, con un propietario y volumen positivo. Bomba y retorno usan presión prescrita nula: el gas finito determina la presión de entrada. + +El solver acoplado intercambia trabajo de presión entre eje, riel y gas sin fuente externa. Orificios gaseosos y enlaces térmicos dan venteo/calor explícitos. Leer `pressure`, `fill_fraction`, `hydraulic_work` acumulado con signo y masa, energía, volumen del gas. Dosis, líquido, evaporación y combustión permanecen separados. + +## Evidencia y límites + +`vented-tank-liquid-cylinder` y `vented-tank-needle-cylinder` usan tanque 1513, gas 1520 y entrada de venteo 960. Asset v41 guarda geometría y lee v1-v40. Pasan trabajo/derivadas analíticos, convergencia ODE independiente, balances, replay portable/MCP, rollback y pasos sin asignación. + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, termodinámica de mezclas reales, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.es.md) + +## Equilibrio del tanque con volumen líquido finito + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +[Equilibrio del tanque con volumen líquido finito](TANK_PHASE_EQUILIBRIUM.es.md) diff --git a/docs/TANK_HEADSPACE.fr.md b/docs/TANK_HEADSPACE.fr.md new file mode 100644 index 0000000..5ea6fe4 --- /dev/null +++ b/docs/TANK_HEADSPACE.fr.md @@ -0,0 +1,25 @@ +# Géométrie du réservoir et espace gazeux fini + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · **Français** · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## Contrat + +`liquid_fuel_tank.parameters.headspace` déclare `capacity` en `m3` ou `l` et `gas_node`. Le gaz omet `storage` : son volume vaut `capacity - liquid_mass / density`, avec un seul propriétaire et un volume positif. Pompe et retour utilisent une pression prescrite nulle car le gaz fini détermine la pression d'entrée. + +Le solveur couplé échange le travail de pression entre arbre, rampe et gaz sans source externe. Orifices gazeux et liens thermiques fournissent ventilation et chaleur explicites. Lire `pressure`, `fill_fraction`, `hydraulic_work` cumulé signé et masse, énergie, volume du gaz. Dose, liquide livré, évaporation et combustion restent distincts. + +## Preuves et limites + +Les exemples `vented-tank-liquid-cylinder` et `vented-tank-needle-cylinder` utilisent réservoir 1513, gaz 1520 et entrée de ventilation 960. Asset v41 conserve la géométrie et lit v1-v40. Travail/dérivées analytiques, convergence ODE indépendante, bilans, rejeu portable/MCP, retour arrière et avancement sans allocation passent. + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, thermodynamique des mélanges réels, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.fr.md) + +## Équilibre du réservoir à volume fini + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +[Équilibre du réservoir à volume fini](TANK_PHASE_EQUILIBRIUM.fr.md) diff --git a/docs/TANK_HEADSPACE.it.md b/docs/TANK_HEADSPACE.it.md new file mode 100644 index 0000000..97a3e47 --- /dev/null +++ b/docs/TANK_HEADSPACE.it.md @@ -0,0 +1,25 @@ +# Geometria del serbatoio e spazio gassoso finito + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · **Italiano** · [Português](TANK_HEADSPACE.pt-BR.md) + +## Contratto + +`liquid_fuel_tank.parameters.headspace` dichiara `capacity` in `m3` o `l` e `gas_node`. Il gas omette `storage`: volume `capacity - liquid_mass / density`, un proprietario e volume positivo. Pompa e ritorno usano pressione prescritta nulla: il gas finito determina la pressione d'ingresso. + +Il solver accoppiato scambia lavoro di pressione fra albero, rail e gas senza fonte esterna. Orifizi gassosi e collegamenti termici forniscono sfiato/calore espliciti. Leggere `pressure`, `fill_fraction`, `hydraulic_work` cumulativo con segno e massa, energia, volume del gas. Dose, liquido, evaporazione e combustione restano separati. + +## Evidenza e limiti + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usano serbatoio 1513, gas 1520 e ingresso sfiato 960. Asset v41 conserva geometria e legge v1-v40. Passano lavoro/derivate analitici, convergenza ODE indipendente, bilanci, replay portable/MCP, rollback e passi senza allocazioni. + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, termodinamica delle miscele reali, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.it.md) + +## Equilibrio del serbatoio con volume liquido finito + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +[Equilibrio del serbatoio con volume liquido finito](TANK_PHASE_EQUILIBRIUM.it.md) diff --git a/docs/TANK_HEADSPACE.ja.md b/docs/TANK_HEADSPACE.ja.md new file mode 100644 index 0000000..a80c3b3 --- /dev/null +++ b/docs/TANK_HEADSPACE.ja.md @@ -0,0 +1,25 @@ +# タンク形状と有限ヘッドスペース + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · **日本語** · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## 契約 + +`liquid_fuel_tank.parameters.headspace` は `m3` または `l` の `capacity` と `gas_node` を指定します。気体ノードは `storage` を省略し、体積は `capacity - liquid_mass / density` です。所有者は一つで体積は正を維持します。有限気体が入口圧力を決めるため、ポンプと戻りの指定リザーバー圧力はゼロです。 + +連成計算は外部圧力源を加えず、軸・レール・気体間で圧力仕事を交換します。気体オリフィスと熱接続が明示的な通気/伝熱を提供します。`pressure`、`fill_fraction`、符号付き累積 `hydraulic_work` と気体質量・エネルギー・体積を読みます。投与、液体供給、蒸発、燃焼は分離されます。 + +## 証拠と制限 + +`vented-tank-liquid-cylinder` と `vented-tank-needle-cylinder` はタンク 1513、気体 1520、通気入力 960 を使います。アセット v41 は形状を保存し v1-v40 を読みます。解析仕事/導関数、独立 ODE 収束、収支、portable/MCP 再生、ロールバックとゼロ割当ステップに合格しました。 + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、実混合物の熱力学、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ja.md) + +## 有限体積燃料タンクの相平衡 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +[有限体積燃料タンクの相平衡](TANK_PHASE_EQUILIBRIUM.ja.md) diff --git a/docs/TANK_HEADSPACE.ko.md b/docs/TANK_HEADSPACE.ko.md new file mode 100644 index 0000000..98b1255 --- /dev/null +++ b/docs/TANK_HEADSPACE.ko.md @@ -0,0 +1,25 @@ +# 탱크 형상과 유한 헤드스페이스 + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · **한국어** · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## 계약 + +`liquid_fuel_tank.parameters.headspace`는 `m3` 또는 `l`의 `capacity`와 `gas_node`를 지정합니다. 기체 노드는 `storage`를 생략하며 체적은 `capacity - liquid_mass / density`입니다. 소유자는 하나이고 체적은 양수여야 합니다. 유한 기체가 입구 압력을 결정하므로 펌프와 반환의 지정 저장소 압력은 0입니다. + +연성 계산은 외부 압력원 없이 축, 레일과 기체 사이의 압력 일을 교환합니다. 기체 오리피스와 열 연결은 명시적 통기/열전달을 제공합니다. `pressure`, `fill_fraction`, 부호 있는 누적 `hydraulic_work`와 기체 질량, 에너지, 체적을 읽습니다. 용량, 액체 공급, 증발과 연소는 구분됩니다. + +## 증거와 제한 + +`vented-tank-liquid-cylinder`와 `vented-tank-needle-cylinder`는 탱크 1513, 기체 1520, 통기 입력 960을 사용합니다. 자산 v41는 형상을 저장하고 v1-v40을 읽습니다. 해석적 일/미분, 독립 ODE 수렴, 수지, portable/MCP 재현, 롤백과 무할당 단계 검사가 통과했습니다. + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 실제 혼합물 열역학, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ko.md) + +## 유한 체적 연료 탱크 상평형 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +[유한 체적 연료 탱크 상평형](TANK_PHASE_EQUILIBRIUM.ko.md) diff --git a/docs/TANK_HEADSPACE.md b/docs/TANK_HEADSPACE.md new file mode 100644 index 0000000..2e00abd --- /dev/null +++ b/docs/TANK_HEADSPACE.md @@ -0,0 +1,25 @@ +# Geometric tank and finite headspace + +**English** · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## Contract + +`liquid_fuel_tank.parameters.headspace` declares `capacity` in `m3` or `l` and `gas_node`. The gas node omits `storage`: its volume is `capacity - liquid_mass / density`. It must have one owner and remain positive. The paired pump and relief return use zero prescribed reservoir pressure because the finite gas owns inlet pressure. + +The coupled solve exchanges shaft, rail and gas pressure work without an external pressure source. Gas orifices and heat links provide explicit vent/thermal paths. Read tank `pressure`, `fill_fraction` and signed cumulative `hydraulic_work`, plus headspace gas mass, energy and volume. Prescribed dose, delivered liquid, evaporation and burn remain separate. + +## Evidence and limits + +The examples `vented-tank-liquid-cylinder` and `vented-tank-needle-cylinder` use tank 1513, headspace 1520 and vent input 960. Asset v41 stores geometry and reads v1-v40. Analytic work/derivative checks, independent simultaneous ODE refinement, complete ledgers, portable/MCP replay, rollback and allocation-free stepping pass. + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, real-fluid mixture thermodynamics, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.md) + +## Finite-volume fuel tank equilibrium + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +[Finite-volume fuel tank equilibrium](TANK_PHASE_EQUILIBRIUM.md) diff --git a/docs/TANK_HEADSPACE.pt-BR.md b/docs/TANK_HEADSPACE.pt-BR.md new file mode 100644 index 0000000..957b8b6 --- /dev/null +++ b/docs/TANK_HEADSPACE.pt-BR.md @@ -0,0 +1,25 @@ +# Geometria do tanque e espaço gasoso finito + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · **Português** + +## Contrato + +`liquid_fuel_tank.parameters.headspace` declara `capacity` em `m3` ou `l` e `gas_node`. O gás omite `storage`: volume `capacity - liquid_mass / density`, um proprietário e volume positivo. Bomba e retorno usam pressão prescrita nula: o gás finito determina a pressão de entrada. + +O solver acoplado troca trabalho de pressão entre eixo, trilho e gás sem fonte externa. Orifícios gasosos e conexões térmicas fornecem ventilação/calor explícitos. Ler `pressure`, `fill_fraction`, `hydraulic_work` acumulado com sinal e massa, energia, volume do gás. Dose, líquido, evaporação e combustão continuam separados. + +## Evidência e limites + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usam tanque 1513, gás 1520 e entrada de ventilação 960. Asset v41 guarda geometria e lê v1-v40. Passam trabalho/derivadas analíticos, convergência ODE independente, balanços, replay portable/MCP, rollback e passos sem alocação. + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, termodinâmica de misturas reais, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.pt-BR.md) + +## Equilíbrio do tanque com volume líquido finito + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +[Equilíbrio do tanque com volume líquido finito](TANK_PHASE_EQUILIBRIUM.pt-BR.md) diff --git a/docs/TANK_HEADSPACE.ru.md b/docs/TANK_HEADSPACE.ru.md new file mode 100644 index 0000000..6fe84a6 --- /dev/null +++ b/docs/TANK_HEADSPACE.ru.md @@ -0,0 +1,25 @@ +# Геометрия бака и конечное газовое пространство + +[English](TANK_HEADSPACE.md) · [简体中文](TANK_HEADSPACE.zh-CN.md) · [Français](TANK_HEADSPACE.fr.md) · **Русский** · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## Контракт + +`liquid_fuel_tank.parameters.headspace` задаёт `capacity` в `m3` или `l` и `gas_node`. Узел газа не задаёт `storage`: объём равен `capacity - liquid_mass / density`, имеет одного владельца и остаётся положительным. Заданное давление насоса и возврата равно нулю: конечный газ определяет давление входа. + +Совместный решатель обменивает работу давления между валом, рампой и газом без внешнего источника давления. Газовые отверстия и тепловые связи задают явную вентиляцию/теплообмен. Читать `pressure`, `fill_fraction`, знаковую накопленную `hydraulic_work` и массу, энергию, объём газа. Доза, жидкость, испарение и горение разделены. + +## Доказательства и ограничения + +Примеры `vented-tank-liquid-cylinder` и `vented-tank-needle-cylinder` используют бак 1513, газ 1520 и вход вентиляции 960. Asset v41 хранит геометрию и читает v1-v40. Проходят аналитические работа/производные, независимая сходимость ODE, балансы, portable/MCP воспроизведение, откат и шаг без аллокаций. + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, термодинамика реальных смесей, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.ru.md) + +## Равновесие топлива в баке конечного объёма + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +[Равновесие топлива в баке конечного объёма](TANK_PHASE_EQUILIBRIUM.ru.md) diff --git a/docs/TANK_HEADSPACE.zh-CN.md b/docs/TANK_HEADSPACE.zh-CN.md new file mode 100644 index 0000000..b8d06ec --- /dev/null +++ b/docs/TANK_HEADSPACE.zh-CN.md @@ -0,0 +1,25 @@ +# 油箱几何与有限气相空间 + +[English](TANK_HEADSPACE.md) · **简体中文** · [Français](TANK_HEADSPACE.fr.md) · [Русский](TANK_HEADSPACE.ru.md) · [日本語](TANK_HEADSPACE.ja.md) · [한국어](TANK_HEADSPACE.ko.md) · [Deutsch](TANK_HEADSPACE.de.md) · [Español](TANK_HEADSPACE.es.md) · [Italiano](TANK_HEADSPACE.it.md) · [Português](TANK_HEADSPACE.pt-BR.md) + +## 契约 + +`liquid_fuel_tank.parameters.headspace` 声明单位为 `m3` 或 `l` 的 `capacity` 和 `gas_node`。气体节点省略 `storage`,其体积为 `capacity - liquid_mass / density`,必须有唯一所有者且保持为正。配对泵及泄压回流的设定储液器压力为零,由有限气体决定入口压力。 + +耦合求解在轴、燃轨和气体之间交换压力功,不引入外部压力源。气体孔口和热连接提供显式通气及传热路径。读取油箱 `pressure`、`fill_fraction`、带符号累计 `hydraulic_work`,以及气相的质量、能量和体积。请求剂量、液体供给、蒸发和燃烧保持独立。 + +## 证据与限制 + +示例 `vented-tank-liquid-cylinder` 和 `vented-tank-needle-cylinder` 使用油箱 1513、气相 1520、通气输入 960。资产 v41 保留几何并读取 v1-v40。解析功及导数、独立联立 ODE 细化、完整账本、资产/MCP 回放、回滚和零分配推进检查通过。 + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、真实流体混合物热力学、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[NASA](https://www.grc.nasa.gov/www/k-12/airplane/isentrop.html) · [Cantera](https://www.cantera.org/stable/reference/reactors/interactions.html) · [VALIDATION.md](VALIDATION.zh-CN.md) + +## 有限体积油箱相平衡 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +[有限体积油箱相平衡](TANK_PHASE_EQUILIBRIUM.zh-CN.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.de.md b/docs/TANK_PHASE_EQUILIBRIUM.de.md new file mode 100644 index 0000000..2390aea --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.de.md @@ -0,0 +1,34 @@ +# Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · **Deutsch** · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Vertrag + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` auf `true` setzen, um Tankverdampfung und -kondensation aufzulösen. Der gekoppelte Film liefert explizite `phase_equilibrium`-Stoffwerte; der verfolgte Gasraum teilt R, cv, Heizwert und Stöchiometrie. Ein nasser Tank startet mit gemeinsamer Temperatur und gesättigtem Kraftstoffpartialdruck, ein trockener höchstens bei Sättigung. Die Gesamtdichte liegt unter der Flüssigkeitsdichte. + +Tank-`evaporated_fuel_mass`, `condensed_fuel_mass` und vorzeichenbehafteter `mass_flow` zählen Nettophasentransfer pro vollständigem Physikschritt. `vapor_partial_pressure`, korrigierten `saturation_pressure`, Flüssigkeitsinventar und Gasvolumen zusammen lesen. Die Pumpe saugt getrennte Flüssigkeit; zweiphasiger Transport, Blasenmitnahme und lokaler NPSH bleiben offen. + +## Thermodynamische Referenz + +Der starre Behälter enthält inkompressible Flüssigkeit und ideales Pseudospezies/Trägergas. Flüssigkeitsvolumen ändert Gasvolumen. Das chemische Flüssigkeitspotenzial enthält `p/rho`; die Empfängerreferenz `p_0(T)` für vernachlässigbare Verdrängung wird druckkorrigiert. `reference_pressure` behält diese Stoffreferenz und wird nicht still als reale Sättigung des endlichen Reinstoffs umgedeutet. + +[Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen](FUEL_PHASE_EQUILIBRIUM.de.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Ein begrenzter Flash bei konstantem U,V erhält Kraftstoff und Wärmeenergie. Explizite Gasdrosseln transportieren Dampf, Träger und chemische Energie; Wärmewege koppeln endliche Knoten. Pumpe/Rücklauf tauschen Verdrängungsarbeit mit dem Gas, danach verteilt das Gleichgewicht Innenenergie. `hydraulic_work` zählt Pumpenverdrängung ohne interne Phasenarbeit. + +## Nachweise und Grenzen + +`equilibrium-tank-supply` prüft Pumpenumkehr, Kraftstoffentlüftung und endliche Heizwand. `equilibrium-tank-fired-cylinder` verbindet dieselbe Quelle mit dem Motor. Unabhängige Entropiemaximierung, chemische Potenziale, kalorische Ableitungen, ODE-Verfeinerung, Bilanzen, Replay, Rollback und Allokationen werden geprüft. Asset v41 erhält das Flag und liest v1-v40. + +Gekoppelte Pumpen-, Wärme- und Entlüftungsfälle zeigen erste Ordnung. Beide Quellphasen bleiben im Stofftemperaturintervall, die Gesamtdichte mit binary64-Rundungsreserve unter der Flüssigkeitsdichte. Konstante Dichte/Gaseigenschaften, sofortiges Gleichgewicht und ebene Grenzfläche sind Forschungsnäherungen. Reale Gemische, Oberflächenspannung, Schwappen, endliche Kinetik, Messkalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.de.md](VALIDATION.de.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.es.md b/docs/TANK_PHASE_EQUILIBRIUM.es.md new file mode 100644 index 0000000..89b2b2b --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.es.md @@ -0,0 +1,34 @@ +# Equilibrio del tanque con volumen líquido finito + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · **Español** · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contrato + +Activar `liquid_fuel_tank.parameters.headspace.phase_equilibrium` con `true` para resolver evaporación y condensación del tanque. La película asociada aporta propiedades `phase_equilibrium`; el gas seguido comparte R, cv, poder calorífico y estequiometría. Declarar temperatura inicial común y presión parcial saturada para tanque húmedo; un tanque seco comienza como máximo en saturación. La densidad total es menor que la líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` y `mass_flow` con signo cuentan transferencia neta por paso físico completo. Leer juntos `vapor_partial_pressure`, `saturation_pressure` corregida, inventario líquido y volumen gaseoso. La bomba toma líquido separado; transporte bifásico, arrastre de burbujas y NPSH local siguen abiertos. + +## Referencia termodinámica + +El recipiente rígido contiene líquido incompresible y gas ideal de pseudoespecie/portador. El líquido desplaza volumen gaseoso. Su potencial químico incluye `p/rho`, por lo que se corrige la referencia `p_0(T)` de desplazamiento despreciable. `reference_pressure` mantiene ese significado y no se reinterpreta como saturación real del fluido puro de densidad finita. + +[Equilibrio de fases del combustible y límites de suministro](FUEL_PHASE_EQUILIBRIUM.es.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Un flash acotado a U,V constantes conserva combustible y energía térmica. Orificios explícitos transportan vapor, portador y energía química; enlaces térmicos intercambian con nodos finitos. Bomba/retorno intercambian trabajo de desplazamiento con el gas y luego el equilibrio redistribuye energía. `hydraulic_work` cuenta desplazamiento de bomba, excluyendo trabajo interno de fase. + +## Evidencia y límites + +`equilibrium-tank-supply` prueba inversión de bomba, venteo con combustible y pared finita caliente. `equilibrium-tank-fired-cylinder` conecta esa fuente a un motor encendido. Se verifican máximo independiente de entropía, potenciales, derivadas calóricas, refinamiento ODE, balances, replay, rollback y asignaciones. Asset v41 conserva el indicador y lee v1-v40. + +Casos acoplados de bomba, calor y venteo demuestran primer orden. Ambas fases fuente permanecen en el intervalo declarado; la densidad total queda bajo la líquida con margen binary64. Densidad/propiedades constantes, equilibrio instantáneo e interfaz plana son aproximaciones de investigación. Mezclas reales, tensión superficial, oleaje, cinética finita, calibración medida y Unity Editor/Play/Player/IL2CPP real siguen sin verificar. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.es.md](VALIDATION.es.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.fr.md b/docs/TANK_PHASE_EQUILIBRIUM.fr.md new file mode 100644 index 0000000..8a745cd --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.fr.md @@ -0,0 +1,34 @@ +# Équilibre du réservoir à volume fini + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · **Français** · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contrat + +Activer `liquid_fuel_tank.parameters.headspace.phase_equilibrium` avec `true` pour résoudre évaporation et condensation du réservoir. Le film associé fournit les propriétés `phase_equilibrium` ; l'espace gazeux suivi partage R, cv, pouvoir calorifique et rapport stœchiométrique. Déclarer une température initiale commune et une pression partielle saturée pour un réservoir humide ; un réservoir sec commence au plus à saturation. La densité totale reste inférieure à celle du liquide. + +`evaporated_fuel_mass`, `condensed_fuel_mass` et `mass_flow` signé cumulent le transfert net par pas physique complet. Lire ensemble `vapor_partial_pressure`, `saturation_pressure` corrigée, inventaire liquide et volume gazeux. La pompe aspire seulement le liquide séparé ; transport diphasique pompe/rail, entraînement et NPSH local restent ouverts. + +## Référence thermodynamique + +Le récipient rigide contient un liquide incompressible et un gaz idéal avec pseudo-espèce et porteur. Le volume liquide modifie le volume gazeux. Le potentiel chimique liquide inclut `p/rho`, d'où une correction de la référence `p_0(T)` à déplacement négligeable du récepteur. `reference_pressure` garde ce sens et n'est pas réinterprété comme saturation réelle du fluide pur à densité finie. + +[Équilibre des phases du carburant et limites d'alimentation](FUEL_PHASE_EQUILIBRIUM.fr.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Un flash borné à U,V constants conserve carburant total et énergie thermique. Les orifices explicites transportent vapeur, porteur et énergie chimique ; les liens thermiques échangent avec des parois finies. Pompe/retour échangent le travail de déplacement avec le gaz, puis l'équilibre redistribue l'énergie interne. `hydraulic_work` compte le travail de déplacement de pompe, hors travail interne de changement de phase. + +## Preuves et limites + +`equilibrium-tank-supply` exerce inversion de pompe, évent avec carburant et paroi chauffée finie. `equilibrium-tank-fired-cylinder` relie cette source au moteur à combustion. Maximisation indépendante d'entropie, potentiels chimiques, dérivées caloriques, raffinement ODE, bilans, rejeu, retour arrière et allocations sont vérifiés. Asset v41 conserve le drapeau et lit v1-v40. + +Les exemples couplés pompe/chaleur/évent montrent un raffinement du premier ordre. Les deux phases sources restent dans l'intervalle thermique déclaré et sous la densité liquide avec marge d'arrondi binary64. Densité et propriétés gazeuses constantes, équilibre instantané et interface plane sont des approximations de recherche. Mélanges réels, tension superficielle, ballottement, cinétique finie, calibration mesurée et Unity Editor/Play/Player/IL2CPP réel restent non vérifiés. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.fr.md](VALIDATION.fr.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.it.md b/docs/TANK_PHASE_EQUILIBRIUM.it.md new file mode 100644 index 0000000..071606a --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.it.md @@ -0,0 +1,34 @@ +# Equilibrio del serbatoio con volume liquido finito + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · **Italiano** · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contratto + +Impostare `liquid_fuel_tank.parameters.headspace.phase_equilibrium` a `true` per evaporazione e condensazione del serbatoio. Il film abbinato fornisce proprietà `phase_equilibrium`; il gas tracciato condivide R, cv, potere calorifico e stechiometria. Un serbatoio bagnato dichiara temperatura iniziale comune e pressione parziale satura, uno asciutto parte al massimo a saturazione. La densità totale resta inferiore a quella liquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` con segno contano il trasferimento netto per passo fisico. Leggere insieme `vapor_partial_pressure`, `saturation_pressure` corretta, inventario liquido e volume gas. La pompa aspira liquido separato; trasporto bifase, trascinamento di bolle e NPSH locale restano aperti. + +## Riferimento termodinamico + +Il recipiente rigido contiene liquido incomprimibile e gas ideale di pseudospecie/portante. Il volume liquido modifica quello gassoso. Il potenziale chimico liquido include `p/rho`, correggendo il riferimento `p_0(T)` a spostamento trascurabile. `reference_pressure` conserva tale significato e non diventa implicitamente la saturazione reale del fluido puro a densità finita. + +[Equilibrio di fase del carburante e limiti di alimentazione](FUEL_PHASE_EQUILIBRIUM.it.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Un flash limitato a U,V costanti conserva combustibile ed energia termica. Orifizi espliciti trasportano vapore, portante ed energia chimica; collegamenti termici scambiano con nodi finiti. Pompa/ritorno scambiano lavoro di spostamento col gas, poi l'equilibrio ridistribuisce energia interna. `hydraulic_work` conta il lavoro di pompa escludendo quello interno di fase. + +## Evidenza e limiti + +`equilibrium-tank-supply` verifica inversione pompa, sfiato con combustibile e parete calda finita. `equilibrium-tank-fired-cylinder` connette tale sorgente a un motore acceso. Si verificano massimo indipendente d'entropia, potenziali, derivate caloriche, raffinamento ODE, bilanci, replay, rollback e allocazioni. Asset v41 conserva il flag e legge v1-v40. + +Casi accoppiati pompa/calore/sfiato mostrano il primo ordine. Entrambe le fasi sorgente restano nell'intervallo dichiarato e la densità totale sotto quella liquida con margine binary64. Densità/proprietà costanti, equilibrio istantaneo e interfaccia piana sono approssimazioni di ricerca. Miscele reali, tensione superficiale, sloshing, cinetica finita, calibrazione misurata e Unity Editor/Play/Player/IL2CPP reale restano non verificati. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.it.md](VALIDATION.it.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.ja.md b/docs/TANK_PHASE_EQUILIBRIUM.ja.md new file mode 100644 index 0000000..219977c --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.ja.md @@ -0,0 +1,34 @@ +# 有限体積燃料タンクの相平衡 + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · **日本語** · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## 契約 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium` を `true` にするとタンク内の蒸発と凝縮を解きます。対応する膜が `phase_equilibrium` 物性を与え、追跡ヘッドスペースは R、cv、発熱量と化学量論比を共有します。湿潤タンクは共通初期温度と飽和燃料分圧を、乾燥タンクは飽和以下の分圧を宣言します。総密度は液体密度未満です。 + +タンクの `evaporated_fuel_mass`、`condensed_fuel_mass` と符号付き `mass_flow` は完全刻みの正味相移動を累積します。`vapor_partial_pressure`、補正 `saturation_pressure`、液量と気体容積を併読します。ポンプは分離液体だけを吸い、二相ポンプ/レール輸送、気泡巻込みと局所 NPSH は未完成です。 + +## 熱力学的基準 + +剛体容器は非圧縮液体と理想擬似成分・キャリア気体を含みます。液体容積が気体容積を変えます。液体化学ポテンシャルに `p/rho` を含めるため、受け側の無視できる押しのけの基準 `p_0(T)` に圧力補正が入ります。`reference_pressure` はその物性基準の意味を保ち、有限密度の純流体飽和圧へ暗黙に読み替えません。 + +[燃料の相平衡と液体供給の境界](FUEL_PHASE_EQUILIBRIUM.ja.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +有界な定 U,V フラッシュは総燃料と熱エネルギーを保存します。明示的な気体オリフィスは蒸気、キャリアと化学エネルギーを運び、熱接続は有限熱ノードと交換します。ポンプ/戻りは気体と押しのけ仕事を交換し、相平衡が内部エネルギーを再配分します。`hydraulic_work` は内部相変化仕事を除くポンプ押しのけ仕事です。 + +## 証拠と制限 + +`equilibrium-tank-supply` は逆転、燃料を含む通気と有限加熱壁を検査します。`equilibrium-tank-fired-cylinder` は同じ供給を燃焼エンジンに接続します。独立エントロピー最大化、化学ポテンシャルと熱容量微分、連立 ODE 収束、全収支、再生、ロールバックと割当を検証します。アセット v41 はフラグを保存し v1-v40 を読みます。 + +ポンプ・伝熱・通気連成例は一次収束を示します。供給の両相は物性温度区間内、総密度は binary64 丸め余裕を含め液体未満に保ちます。一定密度/共通気体物性、瞬時平衡、平面界面は研究近似です。実混合物、表面張力、スロッシング、有限速度、実測較正と実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.ja.md](VALIDATION.ja.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.ko.md b/docs/TANK_PHASE_EQUILIBRIUM.ko.md new file mode 100644 index 0000000..e70956d --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.ko.md @@ -0,0 +1,34 @@ +# 유한 체적 연료 탱크 상평형 + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · **한국어** · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## 계약 + +`liquid_fuel_tank.parameters.headspace.phase_equilibrium`을 `true`로 설정하면 탱크 증발과 응축을 풉니다. 연결 막이 명시적 `phase_equilibrium` 물성을 제공하며 추적 기체 공간은 R, cv, 발열량과 화학량론비를 공유합니다. 젖은 탱크는 공통 초기 온도와 포화 연료 분압, 마른 탱크는 포화 이하 분압을 선언합니다. 총밀도는 액체 밀도보다 낮습니다. + +탱크 `evaporated_fuel_mass`, `condensed_fuel_mass`와 부호 있는 `mass_flow`는 완전 물리 단계의 순 상이동을 누적합니다. `vapor_partial_pressure`, 보정 `saturation_pressure`, 액체 재고와 기체 체적을 함께 읽습니다. 펌프는 분리 액체만 흡입하며 2상 펌프/레일 수송, 기포 동반과 국소 NPSH는 미완성입니다. + +## 열역학 기준 + +강체 용기는 비압축 액체와 이상 의사 성분/운반 기체를 포함합니다. 액체 체적이 기체 체적을 바꿉니다. 액체 화학 퍼텐셜은 `p/rho`를 포함하므로 수용부의 무시 가능한 변위 기준 `p_0(T)`에 압력 보정이 붙습니다. `reference_pressure`는 그 물성 기준을 유지하며 유한 밀도 순수 유체 포화압으로 조용히 바꾸지 않습니다. + +[연료 상평형과 액체 공급 경계](FUEL_PHASE_EQUILIBRIUM.ko.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +유계 정 U,V 플래시가 총연료와 열에너지를 보존합니다. 명시적 오리피스는 증기, 운반 기체와 화학 에너지를 수송하고 열 연결은 유한 열 노드와 교환합니다. 펌프/반환은 기체와 변위 일을 교환하며 이후 평형이 내부에너지를 재분배합니다. `hydraulic_work`는 내부 상변화 일을 제외한 펌프 변위 일입니다. + +## 증거와 제한 + +`equilibrium-tank-supply`는 역회전, 연료 통기와 유한 가열 벽을 검사합니다. `equilibrium-tank-fired-cylinder`는 같은 공급을 연소 엔진에 연결합니다. 독립 엔트로피 최대화, 화학 퍼텐셜/열용량 미분, 연립 ODE 수렴, 완전 수지, 재현, 롤백과 할당을 검증합니다. 자산 v41은 플래그를 보존하고 v1-v40을 읽습니다. + +펌프·열·통기 연성 예는 1차 수렴을 보입니다. 공급의 두 상은 지정 물성 온도 구간 안에 있고 총밀도는 binary64 반올림 여유를 두고 액체보다 낮습니다. 일정 밀도/공통 기체 물성, 순간 평형과 평면 계면은 연구 근사입니다. 실제 혼합물, 표면장력, 슬로싱, 유한 속도, 실측 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.ko.md](VALIDATION.ko.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.md b/docs/TANK_PHASE_EQUILIBRIUM.md new file mode 100644 index 0000000..bcc35a8 --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.md @@ -0,0 +1,34 @@ +# Finite-volume fuel tank equilibrium + +**English** · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Contract + +Set `liquid_fuel_tank.parameters.headspace.phase_equilibrium` to `true` to resolve tank evaporation and condensation. The paired film supplies explicit `phase_equilibrium` material properties; the tracked headspace shares its R, cv, heating value and stoichiometric ratio. Declare a common initial gas/liquid temperature and saturated fuel partial pressure for a wet tank; a dry tank starts at or below saturation. Its total inventory density stays below liquid density. + +Tank `evaporated_fuel_mass`, `condensed_fuel_mass` and signed `mass_flow` count net phase transfer per complete physical tick. Read `vapor_partial_pressure`, pressure-corrected `saturation_pressure`, liquid inventory and gas volume together. The pump picks up separated liquid only; two-phase pump/rail transport, entrainment and local NPSH remain open. + +## Thermodynamic reference + +The rigid vessel contains incompressible liquid and an ideal pseudo-species/carrier gas. Liquid volume changes the gas volume. The liquid chemical potential includes `p/rho`, so the receiver's negligible-displacement saturation reference `p_0(T)` receives a pressure correction. `reference_pressure` retains that material-reference meaning; it is not silently reinterpreted as the finite-density pure-fluid saturation pressure. + +[Fuel phase equilibrium and liquid supply limits](FUEL_PHASE_EQUILIBRIUM.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +A bounded constant-U,V flash conserves total fuel and thermal energy. Explicit gas orifices carry vapor, carrier gas and chemical energy; gas heat links exchange heat with finite thermal nodes. The pump/return solve exchanges displacement work with the gas, then phase equilibration redistributes internal energy. Its `hydraulic_work` channel records pump-displacement work, excluding internal phase-change work. + +## Evidence and limits + +`equilibrium-tank-supply` exercises pump reversal, fuel-bearing venting and a finite heated wall. `equilibrium-tank-fired-cylinder` adds the same source to a fired engine. Independent entropy maximization, chemical-potential and caloric-derivative checks, coupled ODE refinement, complete ledgers, replay, rollback and allocation checks cover the implementation. Asset v41 retains the flag and reads v1-v40. + +Coupled pump, heat and vent examples demonstrate first-order refinement. Both source phases remain inside the declared material temperature interval; total density stays below liquid density with a binary64 roundoff margin. Constant density/common gas properties, instantaneous equilibrium and a flat interface are research approximations. Real mixtures, surface tension, slosh, finite-rate kinetics, measured calibration and actual Unity Editor/Play/Player/IL2CPP remain unverified. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.md](VALIDATION.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.pt-BR.md b/docs/TANK_PHASE_EQUILIBRIUM.pt-BR.md new file mode 100644 index 0000000..c8b5b2a --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.pt-BR.md @@ -0,0 +1,34 @@ +# Equilíbrio do tanque com volume líquido finito + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · **Português** + +## Contrato + +Definir `liquid_fuel_tank.parameters.headspace.phase_equilibrium` como `true` para resolver evaporação e condensação do tanque. O filme pareado fornece propriedades `phase_equilibrium`; o gás rastreado compartilha R, cv, poder calorífico e estequiometria. Tanque molhado declara temperatura inicial comum e pressão parcial saturada; tanque seco começa no máximo em saturação. A densidade total fica abaixo da líquida. + +`evaporated_fuel_mass`, `condensed_fuel_mass` e `mass_flow` com sinal contam transferência líquida de fase por passo físico. Ler juntos `vapor_partial_pressure`, `saturation_pressure` corrigida, inventário líquido e volume gasoso. A bomba capta líquido separado; transporte bifásico, arraste de bolhas e NPSH local seguem abertos. + +## Referência termodinâmica + +O recipiente rígido contém líquido incompressível e gás ideal de pseudoespécie/portador. O líquido muda o volume gasoso. Seu potencial químico inclui `p/rho`, corrigindo a referência `p_0(T)` de deslocamento desprezível. `reference_pressure` mantém esse significado, sem ser reinterpretada como saturação real de fluido puro com densidade finita. + +[Equilíbrio de fases do combustível e limites de suprimento](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Um flash limitado a U,V constantes conserva combustível e energia térmica. Orifícios explícitos carregam vapor, portador e energia química; ligações térmicas trocam com nós finitos. Bomba/retorno trocam trabalho de deslocamento com o gás e depois o equilíbrio redistribui energia. `hydraulic_work` conta deslocamento de bomba, excluindo trabalho interno de fase. + +## Evidência e limites + +`equilibrium-tank-supply` verifica reversão da bomba, ventilação com combustível e parede quente finita. `equilibrium-tank-fired-cylinder` conecta a fonte a um motor com combustão. Verificam-se máximo independente de entropia, potenciais, derivadas calóricas, refinamento ODE, balanços, replay, rollback e alocações. Asset v41 mantém o sinalizador e lê v1-v40. + +Casos acoplados de bomba, calor e ventilação demonstram primeira ordem. As duas fases da fonte ficam no intervalo declarado; densidade total abaixo da líquida com margem binary64. Densidade/propriedades constantes, equilíbrio instantâneo e interface plana são aproximações de pesquisa. Misturas reais, tensão superficial, sloshing, cinética finita, calibração medida e Unity Editor/Play/Player/IL2CPP real seguem não verificados. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.pt-BR.md](VALIDATION.pt-BR.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.ru.md b/docs/TANK_PHASE_EQUILIBRIUM.ru.md new file mode 100644 index 0000000..3452216 --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.ru.md @@ -0,0 +1,34 @@ +# Равновесие топлива в баке конечного объёма + +[English](TANK_PHASE_EQUILIBRIUM.md) · [简体中文](TANK_PHASE_EQUILIBRIUM.zh-CN.md) · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · **Русский** · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## Контракт + +Задать `liquid_fuel_tank.parameters.headspace.phase_equilibrium` как `true` для испарения и конденсации в баке. Связанная плёнка задаёт свойства `phase_equilibrium`; отслеживаемый газ имеет те же R, cv, теплоту сгорания и стехиометрию. Для влажного бака задаются общая начальная температура и насыщенное парциальное давление; сухой бак начинается не выше насыщения. Общая плотность ниже плотности жидкости. + +`evaporated_fuel_mass`, `condensed_fuel_mass` и знаковый `mass_flow` считают нетто-фазовый перенос за полный шаг. Совместно читать `vapor_partial_pressure`, исправленное `saturation_pressure`, жидкий запас и объём газа. Насос забирает только отделённую жидкость; двухфазная подача, унос пузырьков и местный NPSH остаются открытыми. + +## Термодинамическая основа + +Жёсткий сосуд содержит несжимаемую жидкость и идеальный газ псевдокомпонента с носителем. Объём жидкости меняет объём газа. Химический потенциал жидкости содержит `p/rho`, поэтому опорная кривая приёмника `p_0(T)` получает поправку давления. `reference_pressure` сохраняет этот смысл, а не превращается молча в действительное насыщение чистой среды конечной плотности. + +[Фазовое равновесие топлива и границы жидкой подачи](FUEL_PHASE_EQUILIBRIUM.ru.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +Ограниченный flash при постоянных U,V сохраняет топливо и тепловую энергию. Явные газовые отверстия переносят пар, носитель и химическую энергию; тепловые связи работают с конечными узлами. Насос/возврат обменивают с газом работу вытеснения, затем равновесие перераспределяет внутреннюю энергию. `hydraulic_work` учитывает работу насоса, исключая внутреннюю работу фазового перехода. + +## Доказательства и ограничения + +`equilibrium-tank-supply` проверяет реверс насоса, топливную вентиляцию и конечную нагретую стенку. `equilibrium-tank-fired-cylinder` связывает такую подачу с двигателем. Проверяются независимый максимум энтропии, химические потенциалы, калорические производные, сходимость ODE, балансы, воспроизведение, откат и аллокации. Asset v41 хранит флаг и читает v1-v40. + +Связанные примеры насоса, тепла и вентиляции показывают первый порядок. Обе фазы источника остаются в заданном интервале температур, общая плотность ниже жидкой с запасом округления binary64. Постоянные плотность/газовые свойства, мгновенное равновесие и плоская граница — исследовательские приближения. Реальные смеси, поверхностное натяжение, плеск, конечная кинетика, измеренная калибровка и реальная Unity Editor/Play/Player/IL2CPP не проверены. + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.ru.md](VALIDATION.ru.md) diff --git a/docs/TANK_PHASE_EQUILIBRIUM.zh-CN.md b/docs/TANK_PHASE_EQUILIBRIUM.zh-CN.md new file mode 100644 index 0000000..b04dd35 --- /dev/null +++ b/docs/TANK_PHASE_EQUILIBRIUM.zh-CN.md @@ -0,0 +1,34 @@ +# 有限体积油箱相平衡 + +[English](TANK_PHASE_EQUILIBRIUM.md) · **简体中文** · [Français](TANK_PHASE_EQUILIBRIUM.fr.md) · [Русский](TANK_PHASE_EQUILIBRIUM.ru.md) · [日本語](TANK_PHASE_EQUILIBRIUM.ja.md) · [한국어](TANK_PHASE_EQUILIBRIUM.ko.md) · [Deutsch](TANK_PHASE_EQUILIBRIUM.de.md) · [Español](TANK_PHASE_EQUILIBRIUM.es.md) · [Italiano](TANK_PHASE_EQUILIBRIUM.it.md) · [Português](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## 契约 + +将 `liquid_fuel_tank.parameters.headspace.phase_equilibrium` 设为 `true`,以求解油箱蒸发与冷凝。配对油膜提供显式 `phase_equilibrium` 物性,受追踪的气相空间使用相同的 R、cv、热值和化学计量比。湿油箱声明共同气液初温和饱和燃料分压;干油箱初始分压不高于饱和。总库存平均密度须低于液体密度。 + +油箱 `evaporated_fuel_mass`、`condensed_fuel_mass` 和带符号 `mass_flow` 按完整物理时间步的净相变量累计。结合读取 `vapor_partial_pressure`、压力修正后的 `saturation_pressure`、液体库存及气体体积。泵只吸取已分离的液体;两相泵/燃轨输运、夹带与局部 NPSH 仍待实现。 + +## 热力学参考 + +刚性容器包含不可压缩液体、理想拟组分及载气。液体体积改变气体体积。液体化学势包含 `p/rho`,因此接收端的可忽略位移饱和参考 `p_0(T)` 带有压力修正。`reference_pressure` 保留原有物性参考含义,不会被静默解释成有限密度纯流体的实际饱和压力。 + +[燃油相平衡与液体供给边界](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +```text +M_f = m_l + m_v +V_g = V_tank - m_l / rho_l +p = (M_c + m_v) R T / V_g +p_v = m_v R T / V_g +ln(p_v / p_0(T)) = p / (rho_l R T) +U = (M_c + m_v) cv T + m_l (cl T + a) +``` + +有界的定内能、定体积闪蒸保持总燃料与热能守恒。显式气体孔口传递蒸气、载气与化学能;气体热连接与有限热节点交换热量。泵/回流求解与气体交换位移功,再由相平衡重新分配内能。`hydraulic_work` 记录泵位移功,不包含内部相变功。 + +## 证据与限制 + +`equilibrium-tank-supply` 演练泵反转、含燃料通气和有限热壁。`equilibrium-tank-fired-cylinder` 将同类供给接入点火发动机。验证涵盖独立熵最大化、化学势及热容导数、联立 ODE 细化、完整账本、回放、回滚与分配检查。资产 v41 保留该标志,并读取 v1-v40。 + +泵、传热及通气耦合算例验证了一阶收敛。供给端两相均保持在声明温度区间内,总密度与液体密度之间保留 binary64 舍入裕量。常密度/共用气体属性、瞬时平衡和平面界面是研究近似。真实混合物、表面张力、晃动、有限速率动力学、实测标定与实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +[Cantera: constant-volume species](https://cantera.org/stable/cxx/da/d94/PDSS__ConstVol_8cpp_source.html) · [IUPAC: Poynting correction](https://goldbook.iupac.org/terms/view/15347) · [VALIDATION.zh-CN.md](VALIDATION.zh-CN.md) diff --git a/docs/VALIDATION.de.md b/docs/VALIDATION.de.md index 242881b..f37cc99 100644 --- a/docs/VALIDATION.de.md +++ b/docs/VALIDATION.de.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · **Deutsch** · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Relaxierende Kraftstoffpumpen und Dosierung bei eingefrorener Phase + +Ein `compressible_fuel_chamber` kann das Volumen eines `relaxing_fuel`-Behälters bestimmen. Reversible Wellenarbeit hält den Dampfmassenanteil fest; chemische Relaxation ist eine getrennte energieerhaltende Quelle. Ein `compressible_fuel_nozzle` verbindet zwei relaxierende Behälter mit `phase_mode` gleich `frozen` und transportiert Gesamtmasse, Dampfmasse und Stagnationsenthalpie. Eine physische Nadel mit Spule, Feder und Anschlag kann die Öffnung dosieren. + +`relaxing-fuel-chamber` oder `relaxing-pump-needle` ausführen. Beobachtbar sind Kammervolumen/-arbeit, tatsächlicher und Gleichgewichtsanteil, Phasenentropie, `total_vapor_delivered`, Portinventare und globales Dampfresiduum. Prüfungen vergleichen reine Adiabaten, unabhängige Druckquadratur bei festem Anteil, infinitesimale Arbeit, reversiblen Zyklus und unabhängige Wellen-ODE mit idealem Dampf. Gekoppelte Verfeinerung, Quellzeit gemeinsamer Behälter, vollständige Bilanzen, Abbruch, Rücksetzung, Zweige, Allokationen, portables Replay und tatsächliches MCP werden getrennt geprüft. Zahlen stehen in den Validierungsnachweisen. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +Die Entropiebeziehung bei festem Anteil bestimmt Druck und Temperatur nach der Volumenänderung. Die Arbeit enthält kalte Flüssigkeitskompression und nutzt stabile Inkrementfunktionen für kleine Bewegungen. Dieselbe diskrete Arbeit treibt das Wellenmoment. Jedes globale Intervall wendet die Phasenquelle jedes Knotens einmal um den konservativen Kanal- und eingefrorenen Düsentransport an. Kanal-CFL und 0.02 des kleineren Portinventars begrenzen Intervalle; höchstens 4096 sind erlaubt. Mechanische Arbeit und Quelle bleiben getrennt. Gekoppelter Transport bleibt erster Ordnung und benötigt zeitliche Verfeinerung. + +Parameter bleiben `unverified`. Beide Ports benötigen dieselbe Domäne und dasselbe Material; relaxierende Ports lehnen Gleichgewichtstransit ab. Endliche Relaxation im Behälter löst keine Chemie oder Verweilzeit in einer volumenlosen Düse auf. Phasenschlupf, Flüssigkeitszugspannung, Keimbildungsbarriere, Spray, Trägergas und brennende Empfänger fehlen. Bewegte Behälter sind gemischt mit mittlerer Geschwindigkeit null; innere Kanalzellen bleiben starr mit einem Besitzer. Verdünnten idealen Dampf fern vom kritischen Bereich, erklärte positive Druck-/Temperaturgrenzen, positive latente Enthalpie und getrennte Koexistenzvolumina verwenden. Anfangsdampfanteile sind explizite Forschungseingaben. Numerische Übereinstimmung belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +## 2026-11-17: Kraftstoff-Phasenrelaxation mit endlicher Rate + +Ein `relaxing_fuel`-Knoten führt einen unabhängigen Dampfmassenanteil. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; chemisches Gleichgewicht benötigt eine erklärte endliche Zeit. Ein `relaxing_fuel_duct` transportiert Masse, Impuls, Gesamtenergie und Dampfmasse durch explizite Zellen. Die Verweilzeit folgt aus Geometrie und tatsächlicher Geschwindigkeit. + +`relaxing-fuel-evaporation` oder `relaxing-fuel-duct` ausführen. Beobachtbar sind tatsächlicher und Gleichgewichtsanteil, Affinität, Phasenentropie, Dampfbilanzen an Ports und globales Dampfresiduum. Verdampfungs- und Kondensationshistorien trennen den Nettoquelltransfer jedes akzeptierten Takts nach Vorzeichen; sie zählen keine mikroskopischen Bruttoströme. Prüfungen umfassen die unabhängige Exponentiallösung, Entropieableitungen, eingefrorene Akustik, den steifen Gleichgewichtsgrenzfall, zeitliche Selbstverfeinerung und unabhängige linear-akustische Gitterverfeinerung. Transaktionen, portables Replay und tatsächliches MCP werden getrennt geprüft; Zahlen stehen in den Validierungsnachweisen. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Konservative Rusanov-Flüsse transportieren vier Felder. Jedes globale CFL-Intervall verwendet eine halbe lokale Phasenquelle, Transport und eine halbe Quelle. Gemeinsame Behälter erhalten jede Quelle einmal, unabhängig von der Kanalzahl. Der Quellverlauf ist für isolierte Zustände bei festem Volumen exakt; der gekoppelte Transport bleibt erster Ordnung. CFL nutzt die Schallgeschwindigkeitsgrenze bei eingefrorenem Anteil. Phasen- und Kanalentropie werden getrennt geprüft. Unzulässige Zustände setzen den gesamten Stapel zurück. + +Parameter bleiben `unverified`. `initial_vapor_mass_fraction` in [0,1] und eine ganzzahlige Zeit von 1 ns bis einer Stunde deklarieren. Temperatur- und positive Druckgrenzen des Materials einhalten. Das Modell setzt einen starren horizontalen Kanal konstanten Querschnitts, ein reines Pseudofluid, keine thermische Flüssigkeitsausdehnung und idealen Dampf voraus. Phasenschlupf, verzögerter Grenzflächenwärmetransport, Oberflächenspannung, Spray und Trägergas fehlen. Direkte Kopplungen der Relaxationsdomäne mit Pumpen, Düsen, bewegten Kammern und brennenden Empfängern bleiben offen. Erhaltung, Replay und Verfeinerung belegen weder gemessene Hardwaregültigkeit noch tatsächliche Unity-Abnahme. Verdünnten Dampf fern vom realen kritischen Bereich verwenden; positive latente Enthalpie und getrennte Koexistenzvolumina müssen erhalten bleiben. + +## 2026-11-17: Kraftstoffdüsentransit im Phasengleichgewicht + +`phase_mode` von `compressible_fuel_nozzle` auf `equilibrium` setzen, um sofortiges homogenes Phasengleichgewicht im Transit zu verwenden. Flüssigkeit und Dampf teilen Druck, Temperatur und Geschwindigkeit; der Dampfanteil ändert sich entlang der Isentrope. Düse und endliche Behälter nutzen dasselbe kompressible Flüssigkeitspotenzial und dieselbe ideale Dampfreferenz. `frozen` bleibt eine getrennte unterstützte Annahme. + +`equilibrium-flashing-nozzle` oder `equilibrium-pump-needle` ausführen. `flux_relative_uncertainty` beschreibt die letzte akzeptierte lokale Stoffgesetz-Flusseinschließung, nicht mittlere Strömung, Liefermasse, Zeitintegration erster Ordnung oder Kalibrierfehler. Unabhängige Sättigungs-/Entropieinversion, analytische Gas-/Flüssigkeitskritik, separater dichter globaler Suchlauf, Energie-/Entropieidentitäten und analytische Dampfausblasverfeinerung werden verglichen. Bestände, Welle/Leitung/Nadel, Rücknahme, Abbruch, Zweige, Allokationen, portable Assets und tatsächliches MCP werden getrennt geprüft. Zahlen und ältere Grenzen stehen in den Validierungsnachweisen. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +Positive Gleichgewichtsschallgeschwindigkeit im Quadrat liefert steigende Dichte mit Druck bei fester Entropie; der Enthalpieabfall sinkt. Diese monotonen Faktoren begrenzen den Intervallfluss einschließlich Phasengrenzen und mehrerer Extrema. Verzweigen und Begrenzen liefert abgetastete Untergrenze und verbleibende Obergrenze mit relativer Breite höchstens 1e-4. Grenzen sind 512 Stackintervalle und 8192 Teilungen. Kalorische Differenzen nutzen Rundungsspielraum und monotone Integralgrenzen mit bis zu 256 Riemann-Feldern und 80 Schließungsiterationen. Ungelöste Fälle verwerfen den Stapel. Ein glattes inneres Maximum ist sonisch; ein Phasengrenzenmaximum kann nicht glatt sein. + +Parameter bleiben `unverified`. Die Gleichgewichtsgrenze verwendet ein reines Pseudofluid, idealen Dampf, keine Flüssigkeitswärmeausdehnung und gemeinsame Geschwindigkeit. Endliche Keimbildungs-/Relaxationszeiten, Schlupf, Spray, Trägergas und brennender Empfänger fehlen. Die Einschließung verwendet deklarierte binary64-Spielräume, keinen formalen Intervallbeweis mit gerichteter Rundung. Halsklassifikation nahe kritischer Übergänge ist mit der Flusseinschließung zu lesen. Messgültigkeit und tatsächliche Unity-Abnahme bleiben offen. + +## 2026-11-17: Kompressible Kraftstoffdüsen mit eingefrorenem Dampfanteil + +Eine `compressible_fuel_nozzle` verbindet endliche `compressible_fuel`-Behälter, auch wellengetriebene Kammern, mit gerichteter Strömung. Flüssigkeitskompression und idealer Dampf teilen deren Stoffdaten. `phase_mode` muss `frozen` sein: Der Dampfmassenanteil bleibt im Durchgang konstant, die Behälter stellen Gleichgewicht wieder her. + +`compressible-fuel-nozzle` prüft endlichen Dampfaustritt, `compressible-pump-needle` Leitung, Welle, gerichteten Einlass und Magnetnadel. Masse, Enthalpie, Strahlenergie, Wandwärme, Impuls und Entropie sind kumulativ. Mittlere Strömung und Kraft gelten für den ganzen Tick; Hals, Austritt und Anteil behalten den letzten akzeptierten Durchgang. Exakte Flüssigkeitsarbeit, analytische Gas-/Flüssigkeitskritik, unabhängige Druckquadratur, eingefrorene Entropie und Schallableitung, dichter Flussscan und analytische Ausblasverfeinerung werden verglichen. Erhaltung, reale Bewegung, Wiedergabe, Zweige, Rücknahme, Abbruch, Allokationen, Assets und MCP werden separat geprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Konservative Teilschritte erster Ordnung übertragen dieselbe Masse und Enthalpie; Strahlenergie verteilt sich auf Fluid und Wand. Stoffzustände und gesamte Paarentropie werden geprüft. Grenzen: 4096 Teilschritte, 64 Halbierungen je Kandidat, anfänglich höchstens 0.1 der kleineren Behältermasse. Die Schließgrenze erlaubt 128 binary64 epsilon mal maximalen Kompressionsmodul oder Portdruck, ohne Ausgabedruck zu begrenzen. Fehler nehmen den ganzen Stapel zurück. Schritt, Bestand, Stoffgrenzen, Nadelhub und Fläche prüfen. + +Parameter bleiben `unverified`. Das reine Pseudofluid nutzt idealen Dampf und kompressible Flüssigkeit ohne thermische Ausdehnung. Druck- und Temperaturgrenzen gelten einschließlich idealer Strahltemperatur. Eingefrorener Durchgang kann überhitzte Flüssigkeit erhalten, prognostiziert aber keine gemessene Keimbildungs- oder Metastabilitätsgrenze. Endliche Relaxation, Schlupf, aufgelöster Spray, nichtkondensierendes Trägergas, brennender Empfänger, Messkarten und tatsächliche Unity-Abnahme bleiben offen. Erhaltung und Wiedergabe belegen keine Hardwaregültigkeit. + +## 2026-10-26: Wellengetriebene kompressible Kraftstoffkammern + +Eine `compressible_fuel_chamber` verbindet eine Welle mit einem endlichen `compressible_fuel`-Behälter. Die Bewegung ändert sein Volumen; dieselbe Druckarbeit ändert Fluidenergie und Wellendrehmoment. Der Behälter kann einen `equilibrium_fuel_duct` speisen oder aufnehmen, einschließlich Gleichgewichtsverdampfung und Kondensation. + +`compressible-fuel-chamber-duct` oder `electric-compressible-fuel-duct` ausführen. Behältermasse, Volumen, Druck, Temperatur, Entropie und Dampfanteil neben Zellzuständen und Kammermoment, Leistung und Arbeit lesen. Unabhängige Flüssigkeitsarbeit und Dampfgrenzen, separat invertierte Gleichgewichtsisentrope und Druckquadratur, Flüssigkeitswellen-ODE und RK4-Verfeinerung der idealen Dampf-Semidiskretisierung prüfen die Lösung. Erhaltung, elektrische/Zahnrad-/Hydraulik-/Kupplungskomposition, portable Wiedergabe, tatsächliches MCP und allokationsfreie Transaktionen werden getrennt geprüft. Zahlen stehen in den Validierungsnachweisen. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +Der bewegliche Behälter verwendet halben Transport, volle Wellenarbeit und halben Transport. Der Transport bleibt erster Ordnung mit numerischer Diffusion; symmetrische Aufteilung erhöht die Ordnung nicht. Glatte geschlossene Flüssigkeitsbewegung konvergiert zweiter Ordnung. Winkeländerungen sind auf 0.25 rad je mechanischem Intervall begrenzt. CFL, Stoffgrenzen, vollständige Rücknahme, Abbruch und unabhängige Zweige gelten weiterhin. Stationärer Anschluss-/Gehäuseimpuls ist von der Kolbendruckarbeit getrennt. + +Parameter bleiben `unverified`. Das reine Gleichgewichtspseudofluid nutzt kompressible Flüssigkeit ohne thermische Ausdehnung und idealen Dampf, eine gemischte Kammer und starre Zellen. Temperatur- und Druckgrenzen gelten. Die Kammer löst keine mittlere kinetische Energie auf und enthält kein automatisches Rückschlagventil. Endliche Keimbildung, Phasenschlupf, reales kritisches Verhalten, Messkalibrierung und tatsächliche Unity-Abnahme bleiben offen. + +## 2026-10-23: Kompressible Kraftstoffkanäle im Gleichgewicht + +Ein `equilibrium_fuel_duct` transportiert Masse, Impuls und Gesamtenergie durch explizite `compressible_fuel`-Zellen. Die Flüssigkeit ist kompressibel, der Dampf ideal; beide Phasen teilen Druck, Temperatur und Geschwindigkeit. Lokales Gleichgewicht erlaubt Kondensation und Entspannungsverdampfung. Zwei endliche ruhende Behälter und eine endliche thermische Wand schließen die Bilanzen. + +`equilibrium-fuel-condensing-duct` oder `equilibrium-fuel-flashing-duct` ausführen. Jede Zelle zeigt Dichte, Geschwindigkeit, Phasenanteil, Schallgeschwindigkeit, Temperatur und Energie. Anschlussmasse/-energie, Wandimpuls und vollständige Bestände sind beobachtbar. Unabhängige Prüfungen umfassen Kompressionsarbeit, idealen Dampf, gleiche chemische Potenziale, Clapeyron- und Gibbs-Beziehungen, Schallgeschwindigkeit durch Entropieinversion, Masse-Energie-Inversion, Erhaltung und Reibung an endlicher Wand. Akustische Zellmittelwertfehler sinken bei 8, 16 und 24 Zellen. Exakte Wiedergabe, Rücknahme, Abbruch, Zweige, allokationsfreie Schritte, portable Assets und tatsächliches MCP werden gesondert geprüft; Einzelheiten stehen in den Validierungsnachweisen. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +Der konservative Rusanov-Fluss aktualisiert alle Flächen aus demselben Teilschrittzustand. Die Geschwindigkeitsgrenze addiert maximale Absolutgeschwindigkeit und akustische Stoffgrenze. Die CFL-Grenze beträgt 0.2 mal minimales Anschlussvolumen geteilt durch Fläche und Geschwindigkeit; höchstens 4096 Teilschritte je Intervall. Transport und lokal exakter Reibungsabfall werden in erster Ordnung aufgeteilt. Numerische Diffusion trägt zur gesamten Entropieänderung bei, getrennt von ausgewiesener Reibungswärme. Ruhende Grenzen absorbieren Behälterimpuls ohne mechanische Arbeit; einströmende kinetische Energie wird im endlichen Bestand thermalisiert. Ungültige Zustände oder Entropieabnahme über Rundung hinaus verwerfen den ganzen Stapel. Zeitschritt verkleinern und Stoffgrenzen sowie Zellauflösung prüfen. + +Parameter bleiben `unverified`. Temperatur- und Druckgrenzen, positive latente Enthalpie, getrennte Koexistenzvolumina und verdünnter Dampf sind einzuhalten. Der Kanal ist starr, horizontal und querschnittskonstant mit sofortigem homogenem Gleichgewicht. Endliche Keimbildungsrate, Phasenschlupf, Oberflächenspannung, Schwerkraft, Rohrelastizität und reales kritisches Verhalten fehlen. Diffusion erster Ordnung kann Fronten verschmieren; Erhaltung und Wiedergabe belegen weder räumliche Genauigkeit noch gemessene Hardwaregültigkeit. Tatsächliche Unity-Abnahme steht aus. + +## 2026-10-23: Impuls einer endlichen Flüssigkraftstoffleitung + +Ein `fuel_inertial_pipe` verbindet zwei endliche Kraftstoffknoten und eine endliche Wärmewand. Die waagerechte starre Leitung besitzt zusätzlich Flüssigkeitsmasse, kalorische und kinetische Energie. Ihre Dichte bleibt konstant, ihre vollständig gemischte Temperatur ändert sich. Ports und gesamte Leitung bleiben flüssig; quasistatische Verbindungen behalten ihr separates Zweiphasenverhalten. + +Eine unabhängige harmonische Lösung mit endlicher Nachgiebigkeit und separate nichtlineare Impuls-/Temperatur-RK4 prüfen Genauigkeit und erste Ordnung. Geprüft werden Wärmeaufteilung, Entropie, Umkehr, volle Bilanzen, Kupplungsversuche, Allokationen, Rücknahme, Abbruch und Zweige. Portable Assets und echter MCP prüfen alle Grenzen. Das belegt weder Messkalibrierung noch tatsächliche Unity-Abnahme. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +Impuls nutzt mittleren Fluss und akzeptierte Enddrücke. Portenergie und Mischung verwenden Rückwärts-Euler; die Gesamtkopplung ist erster Ordnung. Auch ohne Reibung wandelt die Druckdiskretisierung Schwingungsenergie in numerische Wärme, die keine physische Reibung ist. Paarentropie enthält Mischung und Zeitdiskretisierung. Nulldurchflussereignisse trennen Vorwärts- und Rückwärtsverläufe. + +Parameter bleiben `unverified`. Stoffliche Temperatur-/Druckbereiche und druckkorrigierte Flüssigkeitsstabilität gelten. Fehler rollen das ganze Intervall zurück; Takt verringern und Versorgung, Druck und Phase prüfen. Veränderliche Zweiphasendichte, Kavitation, Akustik, Schwerkraft, bewegte Geometrie und thermische Fronten fehlen. Vorgegebene Verbrennung bestätigt keine detaillierte Chemie- oder Reaktionsentropiegenauigkeit. + +## 2026-10-20: Referenz für den Impuls am Flüssigkeitseinlass + +`LiquidColumn` ist eine eigenständige C#-Referenz für ein waagerechtes starres Rohr mit konstantem Querschnitt, gleichförmiger Geschwindigkeit, Flüssigkeitsdichte und Temperatur. Absolute Portdrücke sind je Intervall vorgegeben. Lineare und quadratische Widerstände sind explizite Forschungswerte. Es ist keine Graphkomponente; Netzwerk und Düsen bleiben unverändert. + +Unabhängige verlustfreie Beschleunigung, exponentielle lineare und hyperbolische quadratische Widerstandslösungen prüfen Grenzfälle. Eine unabhängige RK4 bei variablem Druck prüft zweite Ordnung mit Umkehr. Passive Abnahme, stationärer Fluss, volle Energiebilanz, nichtnegative Entropie, Ablehnungen, unveränderliche Nutzung und Allokationen werden auf beiden Zielen geprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Parameter bleiben `unverified`. Die Druckuntergrenze ist eine deklarierte Flüssigkeitsgrenze des Aufrufers, keine Dampfdrück- oder NPSH-Vorhersage. Kompressibilität, Akustik, Schwerkraft, bewegte Geometrie, Wärmespeicherung, Kavitation, Phasenschlupf und Relaxation fehlen. Zweiphasige Kraftstoffverbindungen bleiben quasistatisch. Tatsächliche Unity-Abnahme und Messkalibrierung sind separat. + +## 2026-10-20: Kraftstoffaustritt mit eingefrorenem Dampfanteil und endliche Empfänger + +Die Kraftstoffpumpe speist nun physische Nadel und Düse mit eingefrorenem Dampfanteil in einen befeuerten Empfänger mit endlichem Flüssigkeitsvolumen. Vollständige Inventare enthalten Phasenwechsel, Verdrängungsarbeit, Strahlenergie und Impuls an die ruhende Wand. + +Unabhängige Bernoulli- und Idealgasgrenzen, separate Gemischflussmaximierung, Energie-/Entropieprüfungen und unabhängig integrierte Düsen-/Empfänger-ODE prüfen die Gleichungen. Zeitverfeinerung ist erster Ordnung. Portable Wiedergabe, echter MCP, Rücknahme, Abbruch, unabhängige Zweige und Allokationsprüfungen decken die Integration ab. Tatsächlicher Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Parameter bleiben `unverified`. Temperaturgrenzen, positives Gasvolumen und verdünnter Dampf gelten. Lokale Einlassträgheit, endliche Keimbildung, Phasenschlupf, aufgelöster Spray, reales kritisches Verhalten und Messkalibrierung fehlen. Vorgegebene Verbrennung bestätigt weder chemisches Gleichgewicht noch Reaktionsentropie. Weiter mit Einlassdynamik, Zündung, Gaswechsel, Verlusten und ECU/TCU-Koordination. + +## 2026-10-20: Wellengetriebene phasenauflösende Kraftstoffpumpe + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Die neuen Kraftstoffpumpenprüfungen laufen gegen beide Assemblyziele. Standard-Prüfungen werden auf .NET 10 gehostet; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Unabhängige Flüssigkeitsdruck-/Arbeitsreferenz, Idealdampfadiabaten und Zweiphasen-Entropieinversion prüfen den Abschluss. Geschlossene Flüssigkeitsmechanik verfeinert zweiter Ordnung; phasenwechselnde Füllung/Förderung erster Ordnung gegen unabhängig invertierte RK4-Referenz. Einlassmangel, volle Flüssigkeitszufuhr, Elektroantrieb, Getriebe-/Hydraulik-/Kupplungskomposition, Replay, Rollback und Allokationen prüfen die Integration. Asset v33 speichert Geometrie und liest v1-v32. Tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +Parameter bleiben `unverified`. Temperatur-, Druck- und darstellbare Volumengrenzen gelten über den Zyklus. Annahmen sind inkompressible Flüssigkeit, idealer Pseudospeziesdampf, sofortiges gemeinsames Temperaturgleichgewicht und äußerer Gehäusedruck null. Lokale Einlassträgheit/NPSH, kritische Strömung, Keimbildungsverzug, Ventilträgheit/-hysterese, reale Gemische und Messkalibrierung bleiben offen. Physische Injektoranbindung und Verdrängungs-/kinetische Empfängerarbeit bleiben gesondert. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Wellengetriebene phasenauflösende Kraftstoffpumpe](FUEL_CHAMBER_PUMP.de.md) + + +## 2026-10-20: Transportnetz für Kraftstoff im Gleichgewicht + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Die neuen Kraftstoffnetzprüfungen laufen gegen beide Assemblyziele. Standard-Prüfungen werden auf .NET 10 gehostet; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +Die Labore prüfen Flüssigkeitsaustrag in Koexistenz, Rückfluss, Öffnungswechsel und endliche Wand-/elektromechanische Wärme. Unabhängige Flüssigkeitsdruckexponentiallösung, gleichzeitige Zweiphasen-Massen-/Enthalpie-/Wärme-ODE, wärmegetriebene Umkehr und spekulativer Kupplungsfang prüfen Genauigkeit und Zusammensetzung. Assets und tatsächliches MCP bewahren jeden Abtastwert und Hash. Asset v32 speichert Stoffdaten und liest v1-v31. Tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +Stoff- und darstellbare Wandverformungsgrenzen des Abschlusses gelten weiter. Parameter bleiben `unverified`. Pumpenfüllung und Wellenarbeit, Injektoranbindung, lokale Trägheit, kritische Strömung, Keimbildungsverzug, Phasenschlupf und reale Gemischmessungen bleiben eigene Aufgaben. Bestehende pumpengespeiste Injektorrails behalten ihren getrennten Flüssigkeitspfad bis zur Anbindung. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Transportnetz für Kraftstoff im Gleichgewicht](EQUILIBRIUM_FUEL_NETWORK.de.md) + + +## 2026-10-20: Referenz für ein nachgiebiges Kraftstoffvolumen + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Die neuen konstitutiven Prüfungen laufen gegen beide Assemblyziele. Standard-Prüfungen werden auf .NET 10 gehostet; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Geprüft werden chemische Potenziale, Clapeyron-Steigungen, kalorische und Entropieableitungen sowie Gibbs mit elastischem Speicher. Unabhängige beschränkte Entropiemaximierung nutzt den Sättigungssolver nicht. Grenzfälle starrer Behälter, ideales Gas und extensive Skalierung sowie RK4-Verfeinerung des endlichen Bads liefern unabhängige Referenzen. Wärmeaustausch erhält Gesamtenergie und verfeinert erster Ordnung bei nicht sinkender Gesamtentropie. Das belegt weder gemessene Kraftstoffgültigkeit noch Unity-Abnahme. + +Der Abschluss des nachgiebigen Behälters für reinen Kraftstoff löst Flüssigkeit, Dampf und Koexistenz mit elastischem Speicher. Er ist eine lokale konstitutive Referenz; Pumpen- und Düsentransport im Graphen müssen noch integriert werden. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Referenz für ein nachgiebiges Kraftstoffvolumen](COMPLIANT_FUEL_VOLUME.de.md) + + +## 2026-10-20: Phasengleichgewicht im Tank mit endlichem Flüssigkeitsvolumen + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Assembly-Prüfungen laufen auf .NET 10; echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` prüft Pumpenumkehr, Kraftstoffentlüftung und endliche Heizwand. `equilibrium-tank-fired-cylinder` verbindet dieselbe Quelle mit dem Motor. Unabhängige Entropiemaximierung, chemische Potenziale, kalorische Ableitungen, ODE-Verfeinerung, Bilanzen, Replay, Rollback und Allokationen werden geprüft. Asset v31 erhält das Flag und liest v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Gekoppelte Pumpen-, Wärme- und Entlüftungsfälle zeigen erste Ordnung. Beide Quellphasen bleiben im Stofftemperaturintervall, die Gesamtdichte mit binary64-Rundungsreserve unter der Flüssigkeitsdichte. Konstante Dichte/Gaseigenschaften, sofortiges Gleichgewicht und ebene Grenzfläche sind Forschungsnäherungen. Reale Gemische, Oberflächenspannung, Schwappen, endliche Kinetik, Messkalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +[TANK_PHASE_EQUILIBRIUM.de.md](TANK_PHASE_EQUILIBRIUM.de.md) + +## 2026-10-13: Kraftstoff-Phasengleichgewicht und Flüssigkeitsgrenzen + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Assembly-Prüfungen laufen auf .NET 10; echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` zeigt Kondensation, Entlüftungsverdampfung und erneute Kondensation. `equilibrium-injected-cylinder` ergänzt den belüfteten Tankmotor um reversibles Empfängergleichgewicht und Versorgungsreserven. Unabhängige Entropiemaximierung, analytische Grenzen, simultane ODE-Verfeinerung, vollständiges Replay, Rollback und Allokationen werden geprüft. Asset v30 erhält Eigenschaften und liest v1-v29. + +Der Druckvergleich erlaubt nur binary64-Rundung: `64 * epsilon * max(p, p_sat)` mit `epsilon = 2^-52`. Die ausgegebene Reserve wird nicht geklemmt. Es ist eine Bulk-Sättigungsprüfung; lokale Druckverluste und Pumpen-NPSH benötigen ein aufgelöstes Strömungsmodell. Unabhängige Prüfungen fordern außerdem nicht abnehmende Gesamtentropie bei adiabatischem Flash und endlichem Wandwärmeaustausch. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Parameter bleiben `unverified`. Gemessene Benzineigenschaften, Mehrkomponenten- oder endliche Phasenkinetik, aufgelöste Flüssigkeitsverdrängung/Spray und OEM-Kalibrierung werden nicht geliefert. Echte Unity Editor/Play/Player/IL2CPP-Abnahme bleibt ausstehend. + +[FUEL_PHASE_EQUILIBRIUM.de.md](FUEL_PHASE_EQUILIBRIUM.de.md) + +## 2026-10-08: Tankgeometrie und endlicher Gasraum + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Assembly-Prüfungen laufen auf .NET 10; echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder` und `vented-tank-needle-cylinder` nutzen Tank 1513, Gas 1520 und Entlüftungseingang 960. Asset v29 speichert Geometrie und liest v1-v28. Analytische Arbeit/Ableitungen, unabhängige ODE-Konvergenz, Bilanzen, portable/MCP-Replay, Rollback und allokationsfreie Schritte bestehen. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Starrer gemischter Tank, inkompressible Flüssigkeit und ideales Gas. Schwappen/hydrostatische Form, Phasengleichgewicht, Kavitation, gemessene Pumpen/Ventilkennfelder, OEM-Kalibrierung und echte Unity Editor/Play/Player/IL2CPP bleiben offen. Parameter `unverified`. + +[TANK_HEADSPACE.de.md](TANK_HEADSPACE.de.md) + +## 2026-10-08: Vollständige Labor- und Komponentendiscovery + +Die vorgeschriebene serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Assembly-Prüfungen laufen auf .NET 10; echte Unity Editor/Play/Player/IL2CPP bleiben ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, MCP-Beispiele, Unity-Exporte und serielle Prüfung teilen den Katalog. Jede Quelle ist erfasst, jedes angekündigte Beispiel wird über echtes stdio validiert und Komponenten entsprechen dem vollständigen Modellschema. Alle Laborfingerprints, Quellhashes und jeder abgetastete Zustandshash stimmen mit der Basis überein. Asset v28 und frühere Leser bleiben unverändert. + +Der Dokumentationsaudit umfasst entsprechende Abschnitte, eine Sprachzeile und vollständige Labortabellen in allen zehn Sprachen. Katalog und CLI-Antwort entsprechen `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Tankgeometrie/Gasraum, tieferes Motorverhalten, ECU/TCU-Koordination, gemessene Kalibrierung und echte Unity-Abnahme bleiben offen. Forschungsparameter bleiben `unverified`. + +## 2026-10-05: Verfolgter Kraftstoff-Entlastungsrücklauf + +Die erforderliche serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Prüfungen laufen auf .NET 10; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Unabhängiger Abfall/Druckarbeit, simultane Mechanik-/Druck-/Wärmeverfeinerung, Anteile, mehrere Pfade, Außengrenzen, replay, rollback und Allokationen bestehen. Sieden oder unaufgelöstes Transportintervall lässt den gesamten Batch scheitern. Tankgeometrie/Belüftung, gemessene Ventile/Pumpen, Kavitation, Spray, OEM-Kalibrierung und tatsächliches Unity Editor/Play/Player/IL2CPP bleiben offen. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.de.md](LIQUID_FUEL_RETURN.de.md) + +## 2026-10-05: Endlicher Flüssigkraftstofftank + +Die erforderliche serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Prüfungen laufen auf .NET 10; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Tankmasse und kalorische Energie erreichen exakt null; Vorwärtsstrom/Reaktion verschwinden bei erhaltener Wellendynamik. Rückstrom stellt nasses Inventar bei gemischter Schienentemperatur her. Unabhängiger analytischer Nassaustausch, leere Wellen-/Druckenergie, vollständiges rollback und Allokationen bestehen. + +Chemische Grenzenergie umfasst unverbrannten Kraftstoff im Gasauslass. Der Tank transferiert intern; integrierte Prüfungen vergleichen gesamte chemische Inventaränderung plus freigesetzte Wärme mit chemischer Nettogrenzenergie. + +Geometrische Kapazität, Belüftung/Gasraum/Schwappen, Kavitation, gemessene Füllung/Wirkungsgrad/Regelung und aufgelöster Spray bleiben offen. Parameter sind `unverified`; tatsächliches Unity Editor/Play/Player/IL2CPP und OEM-Kalibrierung bleiben ungeprüft. + +Die vorherige Pumpenspeiserevision besteht Windows-, Linux- und macOS-CI. Dieser Lauf prüft den endlichen Tank nicht. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.de.md](LIQUID_FUEL_TANK.de.md) + +## 2026-10-05: Pumpengespeiste Flüssigkraftstoffschiene + +Die erforderliche serielle Prüfung besteht lokal auf Windows x64/.NET 10.0.12. Standard-Prüfungen laufen auf .NET 10; tatsächliches Unity Editor/Play/Player/IL2CPP bleibt ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Sechs Physik-/Transaktionsgruppen, zwei Assetgruppen, drei Integrationsgruppen und zwei tatsächliche MCP-Szenarien prüfen die Speisung. Einströmende kalorische/chemische Energie summiert sich mit Gasgrenzenergie; Druckspeicherung wird einmal gezählt. Der KPI nutzt die analytische Pumpenobergrenze 920541.8 Pa statt des Anfangsdrucks. + +Die Quelle ist eine explizite Außengrenze, kein modellierter endlicher Tank. Tankentleerung, Pumpenwirkungsgrad/Regelung, Leitungsverluste, Kavitation, druckabhängige Stoffwerte und endliches Sprühvolumen bleiben offen. Parameter sind `unverified`; keine OEM-Kalibrierung oder tatsächliche Unity Editor/Play/Player/IL2CPP-Abnahme wird belegt. + +Der vorherige AT-Checkpoint besteht auch Windows-, Linux- und macOS-CI an der aufgezeichneten Revision. Dieser Lauf prüft die neuen Speiseänderungen nicht. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.de.md](PUMP_FED_FUEL.de.md) + +## 2026-10-05: Hydraulische AT-Rückführung und Druckregelung + +Die vorgeschriebene serielle Prüfung besteht unter Windows x64/.NET 10.0.12. Release wird ohne Warnungen oder Fehler gebaut. Tatsächliche Unity- und neue Linux/macOS-Abnahme bleiben ungeprüft. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 physische/Transaktionsgruppen prüfen alle Vorwärts- und Rückwärtsgänge, tatsächlichen Druck/Kontakt/Verriegelung, Ventilzuordnung, Uhren und PI-Grenzen. Fehler umfassen Versorgungsausfall, blockierten Ablauf, Anlege-/Lösezeitüberschreitung, Richtungsinterlock und Verlust bestätigter Verriegelung. 2 Assetgruppen behalten typisierte Routen und verwerfen neu signierte Downgrades. 3 Integrationsgruppen und 2 tatsächliche MCP-Szenarien stimmen in jedem Skalar und Zustandshash überein. + +Rückwärtsstart und Fehlererholung bleiben bei 500 ms Applying und werden vor 800 ms innerhalb des erklärten Zeitlimits bestätigt. Tests folgen tatsächlicher Verriegelung statt fester Verzögerung. Sicheres Ablassen entfernt keine physische Blockade. Motor/Planeten/Aktuatoren/Regelung behalten 122 Zustände innerhalb der unveränderten Grenze 128. + +Parameter bleiben `unverified`. ECU-Drehmomentkoordination, detaillierte Sensoren/Ventile, umfassende Fahrzeugfehler, OEM-Kalibrierung und tatsächliche Editor/Play/Player/IL2CPP-Abnahme bleiben offen. + +[AT_CONTROL.de.md](AT_CONTROL.de.md) + + ## 2026-10-02: gemeinsame hydraulische AT-Versorgung und dynamische Kolbenansteuerung Das erforderliche serielle `dotnet run --file tools/Build.cs -- verify` besteht lokal @@ -2509,5 +3903,3 @@ Jeder aktuelle Parameter ist ein synthetischer Experimentparameter. Ein vollstä Motor und ein vollständiges Getriebe, Fahrzeugkalibrierung, Emissionen, Akustik, ein Echtzeitbudget und lange Läufe brauchen weiterhin eigene Implementierung und eigenen Nachweis. Diese Prüfungen belegen diese Arbeit nicht. - - diff --git a/docs/VALIDATION.es.md b/docs/VALIDATION.es.md index 8450f51..136c18d 100644 --- a/docs/VALIDATION.es.md +++ b/docs/VALIDATION.es.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · **Español** · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Bombas de combustible con relajación y dosificación congelada + +Un `compressible_fuel_chamber` puede controlar el volumen de un depósito `relaxing_fuel`. El trabajo reversible del eje mantiene fija la fracción de vapor; la relajación química es una fuente separada que conserva energía. Un `compressible_fuel_nozzle` conecta dos depósitos relajantes con `phase_mode` en `frozen`, transportando masa total, vapor y entalpía de remanso. Una aguja física con bobina, muelle y tope puede dosificar la apertura. + +Ejecute `relaxing-fuel-chamber` o `relaxing-pump-needle`. Observe volumen/trabajo, fracciones real y de equilibrio, entropía de fase, `total_vapor_delivered`, inventarios de puertos y residuo global de vapor. Se comparan adiabáticas puras, cuadratura independiente de presión a fracción fija, trabajo infinitesimal, ciclo reversible y ODE independiente de eje con vapor ideal. Refinamiento acoplado, tiempo de fuente en depósitos compartidos, balances completos, cancelación, reversión, ramas, asignaciones, reproducción portátil y MCP real se verifican aparte. Los valores figuran en la evidencia de validación. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +La relación de entropía a fracción fija determina presión y temperatura tras cambiar el volumen. El trabajo incluye compresión fría del líquido y funciones incrementales estables para movimientos pequeños. El mismo trabajo discreto genera el par del eje. Cada intervalo global aplica una vez la fuente de cada nodo alrededor del transporte conservativo por conducto y tobera congelada. CFL y 0.02 del menor inventario de puerto limitan los intervalos, con máximo de 4096. Trabajo y fuente se separan. El transporte acoplado sigue siendo de primer orden y requiere refinamiento temporal. + +Los parámetros siguen `unverified`. Ambos puertos deben tener el mismo dominio y material; los relajantes rechazan tránsito de equilibrio. La relajación finita en depósitos no resuelve conversión química ni residencia dentro de una tobera sin volumen. Faltan deslizamiento de fases, tensión negativa del líquido, barrera de nucleación, pulverización, gas portador y receptor con combustión. Los depósitos móviles están mezclados con velocidad global nula; las celdas del conducto son rígidas con un propietario. Use vapor ideal diluido lejos de la zona crítica, límites declarados de presión positiva y temperatura, entalpía latente positiva y volúmenes de coexistencia separados. La fracción inicial es una entrada de investigación explícita. El acuerdo numérico no acredita calibración medida ni aceptación real de Unity. + +## 2026-11-17: Relajación de fase del combustible a velocidad finita + +Un nodo `relaxing_fuel` tiene una fracción másica de vapor independiente. Líquido y vapor comparten presión, temperatura y velocidad, pero el equilibrio químico requiere un tiempo finito declarado. Un `relaxing_fuel_duct` transporta masa, cantidad de movimiento, energía total y masa de vapor por celdas explícitas. La residencia depende de su geometría y velocidad real. + +Ejecute `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Observe fracciones real y de equilibrio, afinidad, entropía de fase, balances de vapor en puertos y residuo global. Los historiales de evaporación y condensación separan por signo la transferencia neta de fuente de cada paso aceptado; no cuentan intercambios microscópicos brutos. Se verifican la solución exponencial independiente, derivadas de entropía, acústica congelada, límite rígido de equilibrio, autorrefinamiento temporal y refinamiento espacial acústico lineal independiente. Transacciones, reproducción portátil y MCP real se comprueban aparte; los valores están en la evidencia de validación. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Los flujos conservativos de Rusanov transportan cuatro campos. Cada intervalo CFL global aplica media fuente local, transporte y media fuente. Los depósitos compartidos reciben cada fuente una vez, independientemente del número de conductos. La fuente es exacta para estados aislados a volumen fijo; el transporte acoplado mantiene error de primer orden. CFL usa la cota acústica de fracción congelada. Las entropías de fase y conducto se comprueban por separado. Un estado fuera de límites revierte todo el lote. + +Los parámetros siguen `unverified`. Declare `initial_vapor_mass_fraction` en [0,1] y un tiempo entero de 1 ns a una hora. Respete los límites de temperatura y presión positiva del material. Se supone un conducto rígido horizontal de área constante, un pseudofluido puro, expansión térmica líquida nula y vapor ideal. No incluye deslizamiento de fases, demora térmica interfacial, tensión superficial, pulverización ni gas portador. Quedan pendientes los acoplamientos directos del dominio relajante a bombas, toberas, cámaras móviles y receptores con combustión. Conservación, reproducción y refinamiento no acreditan validez experimental ni aceptación real de Unity. Utilice vapor diluido lejos de la región crítica real; el material debe mantener entalpía latente positiva y volúmenes específicos de coexistencia separados. + +## 2026-11-17: Tránsito de combustible en equilibrio por toberas + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilibrio homogéneo instantáneo durante el tránsito. Líquido y vapor comparten presión, temperatura y velocidad; la calidad cambia sobre la isentrópica. Tobera y depósitos finitos usan el mismo potencial líquido compresible y referencia de vapor ideal. `frozen` sigue siendo una hipótesis independiente admitida. + +Ejecute `equilibrium-flashing-nozzle` o `equilibrium-pump-needle`. `flux_relative_uncertainty` describe la última envolvente constitutiva local aceptada; no limita caudal medio, masa entregada, integración temporal de primer orden ni calibración. Se comparan inversión independiente de saturación/entropía, bloqueo analítico gas/líquido, búsqueda global densa separada, identidades de energía/entropía y refinamiento analítico de vaciado de vapor. Inventarios, eje/conducto/aguja, reversión, cancelación, ramas, asignaciones, assets y MCP real se verifican aparte. Números y fronteras anteriores están en la evidencia de validación. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +La velocidad del sonido de equilibrio al cuadrado positiva implica densidad creciente con presión a entropía fija; la caída de entalpía disminuye. Estos factores monótonos acotan el flujo en intervalos, incluidas fronteras de fase y varios extremos. Ramificación y acotación devuelve cota inferior muestreada y superior restante con ancho relativo máximo 1e-4. Límites: 512 intervalos en pila y 8192 divisiones. Diferencias calóricas usan márgenes de redondeo y cotas integrales monótonas con hasta 256 paneles Riemann y 80 iteraciones. Lo no resuelto rechaza el lote. Un máximo interior suave es sónico; uno de frontera puede no ser suave. + +Los parámetros siguen `unverified`. El límite de equilibrio supone pseudofluido puro, vapor ideal, expansión térmica líquida nula y velocidad común. Omite tiempos finitos de nucleación/relajación, deslizamiento, pulverización, gas portador y receptor con combustión. La envolvente usa márgenes binary64 declarados; no es una prueba formal de intervalos con redondeo dirigido. La clasificación de garganta cerca de transiciones debe leerse con la envolvente. Validez medida y Unity real siguen pendientes. + +## 2026-11-17: Toberas de combustible compresible de calidad congelada + +Una `compressible_fuel_nozzle` transporta flujo unidireccional entre depósitos finitos `compressible_fuel`, incluidas cámaras accionadas por eje. Compresión líquida y vapor ideal comparten el material. Declare `phase_mode` como `frozen`: la calidad másica permanece fija durante el tránsito y los depósitos se reequilibran. + +Ejecute `compressible-fuel-nozzle` para descarga finita o `compressible-pump-needle` para conducto, eje, entrada unidireccional y aguja solenoide. Lea masa, entalpía, energía cinética, calor, impulso y entropía acumulados. Caudal y fuerza medios cubren todo el tick; garganta, salida y calidad retienen el último tránsito aceptado. Se comparan trabajo líquido exacto, bloqueo analítico de gas/líquido, cuadratura independiente, entropía y derivada acústica congeladas, barrido denso y refinamiento de vaciado crítico analítico. Conservación, movimiento real, reproducción, ramas, reversión, cancelación, asignaciones, assets y MCP se verifican aparte. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Subpasos conservativos de primer orden transfieren igual masa y entalpía y reparten energía cinética entre fluido y pared. Se comprueban estados y entropía total de la pareja. Límites: 4096 subpasos, 64 reducciones a la mitad por candidato y transferencia inicial de hasta 0.1 de la menor masa. El cierre tolera 128 epsilon binary64 por el mayor módulo volumétrico o presión, sin recortar presiones informadas. Un fallo revierte todo el lote. Revise paso, inventario, límites, carrera y área. + +Los parámetros siguen `unverified`. El pseudofluido puro combina vapor ideal y líquido compresible sin expansión térmica. Respete límites de presión y temperatura, incluida la del chorro ideal. El tránsito congelado puede conservar líquido sobrecalentado, sin predecir un límite medido de nucleación o metaestabilidad. Relajación finita, deslizamiento, pulverización resuelta, gas portador no condensable, receptor con combustión, mapas medidos y Unity real siguen pendientes. Conservación y reproducción no demuestran validez de hardware. + +## 2026-10-26: Cámaras de combustible compresible accionadas por eje + +Una `compressible_fuel_chamber` conecta un eje a un depósito finito `compressible_fuel`. Su movimiento cambia el volumen; el mismo trabajo de presión cambia energía del fluido y par del eje. El depósito puede alimentar o recibir un `equilibrium_fuel_duct`, con vaporización súbita y condensación en equilibrio. + +Ejecute `compressible-fuel-chamber-duct` o `electric-compressible-fuel-duct`. Lea masa, volumen, presión, temperatura, entropía y fracción de vapor junto a estados de celda, par, potencia y trabajo. Las pruebas emplean trabajo líquido y límites de vapor independientes, isentrópica de equilibrio invertida aparte y cuadratura de presión, EDO del eje líquido y refinamiento RK4 de ecuaciones semidiscretas de vapor ideal. Conservación, composición eléctrica/engranajes/hidráulica/embrague, reproducción portable, MCP real y transacciones sin asignaciones se verifican por separado. Los resultados están en la evidencia de validación. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +El depósito móvil usa medio transporte, trabajo completo del eje y medio transporte. El transporte sigue siendo de primer orden con difusión numérica; la separación simétrica no eleva su orden. El movimiento líquido cerrado y suave converge a segundo orden. Los incrementos angulares se limitan a 0.25 rad por intervalo mecánico. Siguen aplicándose CFL, límites materiales, reversión completa, cancelación y ramas independientes. El impulso estacionario de puertos/carcasa se separa del trabajo del pistón. + +Los parámetros siguen `unverified`. El pseudofluido puro en equilibrio usa líquido compresible sin expansión térmica y vapor ideal, cámara mezclada y celdas rígidas. Respete los límites de temperatura y presión. La cámara no resuelve energía cinética global ni incluye válvula antirretorno automática. Nucleación a velocidad finita, deslizamiento, comportamiento crítico real, calibración medida y aceptación real de Unity siguen pendientes. + +## 2026-10-23: Conductos de combustible compresible en equilibrio + +Un `equilibrium_fuel_duct` transporta masa, cantidad de movimiento y energía total por celdas explícitas `compressible_fuel`. El líquido es compresible y el vapor ideal; ambas fases comparten presión, temperatura y velocidad. El equilibrio local permite condensación y vaporización súbita. Dos depósitos finitos estacionarios y una pared térmica finita cierran los balances. + +Ejecute `equilibrium-fuel-condensing-duct` o `equilibrium-fuel-flashing-duct`. Cada celda expone densidad, velocidad, fracción de fase, velocidad del sonido, temperatura y energía. Masa/energía en puertos, impulso de pared e inventarios completos son observables. Las pruebas independientes cubren trabajo de compresión, límite de vapor ideal, igualdad de potenciales químicos, relaciones de Clapeyron y Gibbs, sonido por inversión de entropía, inversión masa-energía, conservación y fricción con pared finita. Los errores acústicos medios de celda disminuyen con 8, 16 y 24 celdas. Reproducción exacta, reversión, cancelación, ramas, pasos sin asignaciones, assets portables y MCP real se verifican por separado; los resultados detallados están en la evidencia de validación. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +El flujo conservativo de Rusanov avanza todas las caras desde el mismo estado de subpaso. La cota de velocidad suma la máxima velocidad absoluta y la cota acústica del material. El límite CFL es 0.2 veces el volumen mínimo de puerto dividido por área y velocidad; cada intervalo admite hasta 4096 subpasos. Transporte y decaimiento local exacto por resistencia se separan a primer orden. La difusión numérica contribuye al cambio total de entropía, aparte del calor de fricción informado. Las fronteras estacionarias absorben impulso sin trabajo mecánico; la energía cinética entrante se termaliza en el inventario finito. Estados inválidos o una disminución de entropía superior al redondeo rechazan todo el lote. Reduzca el paso y revise límites materiales y resolución. + +Los parámetros siguen `unverified`. Respete los rangos declarados de temperatura y presión, entalpía latente positiva, volúmenes de coexistencia separados y vapor diluido. Es un conducto horizontal rígido de sección constante y equilibrio homogéneo instantáneo. Omite nucleación a velocidad finita, deslizamiento, tensión superficial, gravedad, elasticidad y comportamiento crítico real. La difusión de primer orden puede ensanchar frentes; conservación y reproducción no demuestran precisión espacial ni validez de hardware medido. La aceptación real de Unity está pendiente. + +## 2026-10-23: Cantidad de movimiento en una línea finita de combustible líquido + +Un `fuel_inertial_pipe` conecta dos nodos finitos de combustible y una pared térmica finita. La línea horizontal rígida posee masa líquida, energía calórica y cinética propias, además de los recipientes. Densidad constante y temperatura variable perfectamente mezclada. Puertos y línea deben permanecer líquidos; los enlaces cuasiestáticos conservan su modelo bifásico separado. + +Solución armónica independiente de flexibilidad finita y RK4 independiente de movimiento/temperatura no lineales verifican exactitud y primer orden. Se verifican calor, entropía, inversión, balances, intervalos especulativos de embrague, asignaciones, reversión, cancelación y ramas. Assets portables y MCP real comprueban cada frontera. Esto no acredita calibración ni Unity real. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +El movimiento usa caudal medio y presiones finales aceptadas. Energía y mezcla usan Euler hacia atrás; el acoplamiento converge a primer orden. Incluso sin fricción, la discretización transforma parte de la oscilación en calor numérico, no registrado como fricción física. La entropía incluye mezcla y discretización. Los eventos de caudal cero separan transferencias directas e inversas. + +Los parámetros siguen `unverified`. Respete rangos materiales y estabilidad líquida corregida por presión. El fallo revierte todo el intervalo; reduzca paso e inspeccione agotamiento, presión y fase. Se omiten movimiento bifásico de densidad variable, cavitación, acústica, gravedad, geometría móvil y frentes térmicos. La combustión prescrita no prueba equilibrio químico ni entropía de reacción detallados. + +## 2026-10-20: Referencia de cantidad de movimiento en la entrada líquida + +`LiquidColumn` es una referencia C# independiente de un tubo horizontal rígido con sección, velocidad uniforme, densidad líquida y temperatura constantes. Las presiones absolutas se prescriben por intervalo. Las resistencias lineal y cuadrática son entradas de investigación explícitas. No es un componente del grafo ni cambia las ecuaciones de red o tobera. + +Aceleración sin pérdidas, exponencial lineal y tangente hiperbólica cuadrática independientes verifican límites. Una RK4 independiente con presión variable comprueba segundo orden con inversión. Se verifican decaimiento pasivo, equilibrio, energía completa, entropía no negativa, rechazos, uso inmutable y asignaciones en ambas compilaciones. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Los parámetros siguen `unverified`. El mínimo de presión es un límite líquido declarado por el usuario, no predicción de presión de vapor o NPSH. Compresibilidad, acústica, gravedad, geometría móvil, almacenamiento térmico, cavitación, deslizamiento y relajación quedan fuera. Los enlaces bifásicos siguen cuasiestáticos. Unity real y calibración medida son independientes. + +## 2026-10-20: Descarga de combustible con calidad congelada y receptores finitos + +La bomba del dominio de combustible alimenta ahora una aguja física y descarga con calidad congelada en un receptor encendido con volumen líquido finito. Los inventarios completos incluyen cambio de fase, trabajo de desplazamiento, energía cinética e impulso sobre pared inmóvil. + +Límites independientes de Bernoulli y gas ideal, maximización separada del flujo de mezcla, energía/entropía y ODE independiente de tobera/receptor verifican las ecuaciones. El refinamiento temporal es de primer orden. Reproducción portable, MCP real, reversión, cancelación, ramas independientes y asignaciones verifican la integración. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Los parámetros siguen `unverified`. Se aplican temperaturas declaradas, volumen gaseoso positivo y dominio de vapor diluido. Se omiten inercia local de entrada, nucleación finita, deslizamiento, spray resuelto, comportamiento crítico real y calibración medida. La combustión prescrita no acredita equilibrio químico ni entropía de reacción. Continúe entrada, encendido, admisión/escape, pérdidas y coordinación ECU/TCU. + +## 2026-10-20: Bomba de combustible con cambio de fase impulsada por eje + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los nuevos controles de bomba de combustible cubren ambos destinos de ensamblado. Los controles Standard se alojan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Trabajo/presión líquidos, adiabáticas de vapor ideal e inversión independiente de entropía bifásica verifican el cierre. El movimiento líquido cerrado refina a segundo orden; el llenado/entrega con fase a primer orden frente a RK4 invertido independientemente. Falta y suministro completo de entrada, accionamiento eléctrico, engranajes/hidráulica/embrague, replay, rollback y asignaciones verifican integración. Asset v33 guarda geometría y lee v1-v32. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +Los parámetros siguen `unverified`. Temperatura, presión y volumen representable están limitados durante todo el ciclo. Se asumen líquido incompresible, vapor de pseudoespecie ideal, equilibrio instantáneo a temperatura común y presión exterior de carcasa cero. Inercia local/NPSH, flujo crítico, retraso de nucleación, inercia/histéresis de válvula, mezclas reales y calibración medida siguen abiertos. Inyector físico y trabajo de desplazamiento/cinética del receptor son requisitos separados. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Bomba de combustible con cambio de fase impulsada por eje](FUEL_CHAMBER_PUMP.es.md) + + +## 2026-10-20: Red de transporte de combustible en equilibrio + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los nuevos controles de red de combustible cubren ambos destinos de ensamblado. Los controles Standard se alojan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +Los laboratorios cubren descarga líquida a coexistencia, flujo inverso, cambios de apertura y calor finito/electromecánico. Exponencial independiente de presión líquida, EDO bifásica simultánea de masa/entalpía/calor, inversión térmica y captura especulativa del embrague verifican precisión y composición. Assets y MCP real conservan todos los valores y hashes. Asset v32 guarda propiedades y lee v1-v31. Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +Siguen vigentes los límites de material y deformación representable del cierre. Los parámetros siguen `unverified`. Llenado de bomba y trabajo del eje, conexión de inyector, inercia local, flujo crítico, retraso de nucleación, deslizamiento y medidas de mezclas reales siguen pendientes. Los rieles de inyector alimentados por bomba conservan su ruta de líquido separado hasta integrarlos. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Red de transporte de combustible en equilibrio](EQUILIBRIUM_FUEL_NETWORK.es.md) + + +## 2026-10-20: Referencia de volumen de combustible flexible + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los nuevos controles constitutivos cubren ambos destinos de ensamblado. Los controles Standard se alojan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Los controles comparan potenciales químicos, pendientes de Clapeyron, derivadas calóricas y entrópicas y Gibbs con almacenamiento elástico. Una maximización independiente de entropía restringida no usa el solver de saturación. Los límites de recipiente rígido, gas ideal y escala extensiva y el refinamiento RK4 del baño finito aportan referencias independientes. El intercambio conserva energía total y refina a primer orden con entropía total no decreciente. No acredita combustible medido ni aceptación Unity. + +El cierre del recipiente flexible de combustible puro resuelve líquido, vapor y coexistencia con almacenamiento elástico. Es una referencia constitutiva local; falta integrar el transporte de bomba y boquilla en el grafo. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Referencia de volumen de combustible flexible](COMPLIANT_FUEL_VOLUME.es.md) + + +## 2026-10-20: Equilibrio del tanque con volumen líquido finito + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los controles Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` prueba inversión de bomba, venteo con combustible y pared finita caliente. `equilibrium-tank-fired-cylinder` conecta esa fuente a un motor encendido. Se verifican máximo independiente de entropía, potenciales, derivadas calóricas, refinamiento ODE, balances, replay, rollback y asignaciones. Asset v31 conserva el indicador y lee v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Casos acoplados de bomba, calor y venteo demuestran primer orden. Ambas fases fuente permanecen en el intervalo declarado; la densidad total queda bajo la líquida con margen binary64. Densidad/propiedades constantes, equilibrio instantáneo e interfaz plana son aproximaciones de investigación. Mezclas reales, tensión superficial, oleaje, cinética finita, calibración medida y Unity Editor/Play/Player/IL2CPP real siguen sin verificar. + +[TANK_PHASE_EQUILIBRIUM.es.md](TANK_PHASE_EQUILIBRIUM.es.md) + +## 2026-10-13: Equilibrio de fases del combustible y límites de suministro + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los controles Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` muestra condensación, evaporación por venteo y nueva condensación. `equilibrium-injected-cylinder` añade equilibrio reversible del receptor y márgenes al motor con tanque ventilado. Se comprueban máximo de entropía independiente, límites analíticos, refinamiento ODE simultáneo, replay completo, rollback y asignaciones. Asset v30 conserva propiedades y lee v1-v29. + +La comparación solo admite redondeo binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. El margen informado no se recorta. Es una comprobación de saturación global; pérdidas locales y NPSH de bomba requieren un modelo de flujo resuelto. Las comprobaciones independientes también exigen entropía total no decreciente en el flash adiabático y el intercambio con la pared finita. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Parámetros `unverified`. No se aportan propiedades medidas de gasolina, cinética multicomponente o de velocidad finita, desplazamiento líquido/pulverización resueltos ni calibración OEM. La aceptación real Unity Editor/Play/Player/IL2CPP sigue pendiente. + +[FUEL_PHASE_EQUILIBRIUM.es.md](FUEL_PHASE_EQUILIBRIUM.es.md) + +## 2026-10-08: Geometría del tanque y espacio gaseoso finito + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los controles Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder` y `vented-tank-needle-cylinder` usan tanque 1513, gas 1520 y entrada de venteo 960. Asset v29 guarda geometría y lee v1-v28. Pasan trabajo/derivadas analíticos, convergencia ODE independiente, balances, replay portable/MCP, rollback y pasos sin asignación. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Tanque rígido mezclado, líquido incompresible y gas ideal. Oleaje/forma hidrostática, equilibrio de fases, cavitación, mapas medidos de bomba/válvula, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. Parámetros `unverified`. + +[TANK_HEADSPACE.es.md](TANK_HEADSPACE.es.md) + +## 2026-10-08: Descubrimiento completo de laboratorios y componentes + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Los controles Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, ejemplos MCP, exports Unity y verificación serie comparten el catálogo. Cada fuente está cubierta, cada ejemplo anunciado se valida por stdio real y los componentes coinciden con el esquema completo. Las huellas, hashes fuente y cada hash de estado muestreado coinciden con la base. Asset v28 y lectores anteriores no cambian. + +La auditoría documental cubre secciones correspondientes, una sola línea de idiomas y tablas completas en los diez idiomas. El catálogo y la respuesta CLI cumplen `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Geometría/espacio gaseoso del tanque, motor más completo, coordinación ECU/TCU, calibración medida y aceptación Unity real siguen pendientes. Los parámetros de investigación siguen `unverified`. + +## 2026-10-05: Retorno de alivio de combustible trazado + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Las pruebas Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Pasan decaimiento/trabajo independiente, refinamiento mecánico/presión/térmico simultáneo, fracciones, rutas, fronteras externas, replay, rollback y asignaciones. Ebullición o intervalo sin resolver falla todo el lote. Geometría/ventilación, válvulas/bombas medidas, cavitación, spray, calibración OEM y Unity Editor/Play/Player/IL2CPP real siguen abiertos. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.es.md](LIQUID_FUEL_RETURN.es.md) + +## 2026-10-05: Tanque finito de combustible líquido + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Las pruebas Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Masa y energía térmica llegan exactamente a cero; caudal/reacción adelante desaparecen mientras el eje conserva su dinámica real. El retorno restaura inventario líquido a temperatura mezclada del raíl. Pasan intercambio húmedo analítico, energía de eje/presión agotada, rollback completo y asignaciones. + +La energía química de frontera incluye combustible sin quemar que sale por escape. El tanque transfiere internamente; las pruebas integradas comparan cambio total de inventario químico más calor liberado con energía química neta de frontera. + +Capacidad geométrica, ventilación/espacio gaseoso/oleaje, cavitación, llenado/eficiencia/regulación medidos y spray resuelto siguen abiertos. Parámetros `unverified`; Unity Editor/Play/Player/IL2CPP real y calibración OEM siguen sin verificar. + +La revisión anterior pasa CI Windows, Linux y macOS. Esa ejecución no verifica este tanque finito. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.es.md](LIQUID_FUEL_TANK.es.md) + +## 2026-10-05: Raíl de combustible líquido alimentado por bomba + +La verificación serie requerida pasa localmente en Windows x64/.NET 10.0.12. Las pruebas Standard se ejecutan en .NET 10; Unity Editor/Play/Player/IL2CPP real sigue sin verificar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Seis grupos físicos/transaccionales, dos de activos, tres integrados y dos escenarios MCP reales cubren la alimentación. Energía térmica/química entrante se acumula con la energía de frontera gaseosa; la presión se almacena una vez. El KPI usa la cota analítica de bomba de 920541.8 Pa en lugar de la presión inicial. + +La fuente es una frontera externa explícita, no un tanque finito modelado. Agotamiento, eficiencia/regulación de bomba, pérdidas de línea, cavitación, propiedades dependientes de presión y spray de volumen finito siguen abiertos. Parámetros `unverified`; no se acredita calibración OEM ni aceptación real Unity Editor/Play/Player/IL2CPP. + +El checkpoint AT anterior también pasa CI Windows, Linux y macOS en la revisión registrada. Esa ejecución no verifica estos cambios de alimentación. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.es.md](PUMP_FED_FUEL.es.md) + +## 2026-10-05: Realimentación AT hidráulica y control de presión + +La verificación serie requerida pasa en Windows x64/.NET 10.0.12. La compilación Release no tiene advertencias ni errores. La aceptación real de Unity y nuevas verificaciones Linux/macOS sigue sin confirmar. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 grupos físicos/transaccionales cubren todas las marchas adelante y atrás, presión/contacto/bloqueo reales, propiedad de válvulas, relojes y límites PI. Los fallos incluyen pérdida de alimentación, drenaje bloqueado, tiempo de aplicación/liberación, interbloqueo de dirección y pérdida de bloqueo confirmado. 2 grupos de assets conservan rutas tipadas y rechazan descensos firmados de nuevo. 3 grupos integrados y 2 escenarios MCP reales coinciden en cada escalar y hash de estado. + +El arranque en reversa y la recuperación siguen Applying a 500 ms y se confirman antes de 800 ms dentro del tiempo declarado. Las pruebas siguen el bloqueo real y no una demora fija. El vaciado seguro no elimina un bloqueo físico. El grafo motor/planetas/actuadores/control conserva 122 estados dentro del límite inalterado de 128. + +Los parámetros siguen `unverified`. Coordinación de par ECU, sensores/válvulas detallados, fallos completos del vehículo, calibración OEM y aceptación real Editor/Play/Player/IL2CPP siguen pendientes. + +[AT_CONTROL.es.md](AT_CONTROL.es.md) + + ## 2026-10-02: alimentación hidráulica AT compartida y actuación dinámica por pistón La verificación en serie exigida, `dotnet run --file tools/Build.cs -- verify`, pasa en local @@ -2166,5 +3560,3 @@ Define primero `POWER_UNITY_EDITOR`. Los registros de Unity y los resultados XML La entrada de publicación es `Power.Studio.Editor.ProjectSetup.BuildPlayer`, con el destino de escritorio seleccionado e IL2CPP. Necesita el módulo de compilación de la plataforma Unity correspondiente. Aún no hay un paquete de Player compilado ni probado. Cada parámetro actual es un parámetro de experimento sintético. Un motor y una transmisión completos, la calibración del vehículo, las emisiones, la acústica, un presupuesto de tiempo real y las ejecuciones largas aún necesitan su propia implementación y su evidencia. Estas comprobaciones no establecen ese trabajo. - - diff --git a/docs/VALIDATION.fr.md b/docs/VALIDATION.fr.md index 58e3246..0d3703d 100644 --- a/docs/VALIDATION.fr.md +++ b/docs/VALIDATION.fr.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · **Français** · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Pompes à carburant relaxant et dosage à phase gelée + +Un `compressible_fuel_chamber` peut imposer le volume d’un réservoir `relaxing_fuel`. Le travail réversible de l’arbre conserve le titre massique de vapeur ; la relaxation chimique est une source séparée conservant l’énergie. Un `compressible_fuel_nozzle` relie deux réservoirs relaxants avec `phase_mode` réglé sur `frozen`, transportant masse totale, vapeur et enthalpie d’arrêt. Bobine, ressort et butée réels peuvent régler l’ouverture par une aiguille physique. + +Exécuter `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observer volume et travail, titres réel et d’équilibre, entropie de phase, `total_vapor_delivered`, inventaires des ports et résidu global de vapeur. Les essais comparent adiabatiques pures, quadrature de pression indépendante à titre fixe, travail infinitésimal, cycle réversible et ODE indépendante d’arbre à vapeur idéale. Raffinement couplé, temps de source des réservoirs partagés, bilans complets, annulation, retour arrière, branches, allocations, rejeu portable et MCP réel sont vérifiés séparément. Les valeurs figurent dans les preuves de validation. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +La relation d’entropie à titre fixe détermine pression et température après variation de volume. Le travail inclut l’énergie froide de compression liquide et utilise des fonctions incrémentales stables pour les petits mouvements. Le même travail discret produit le couple d’arbre. Chaque intervalle global applique une fois la source de chaque nœud autour du transport conservatif par conduit et buse gelée. Le CFL et une fraction de 0.02 du plus petit inventaire de port bornent les intervalles, limités à 4096. Travail mécanique et source restent séparés. Le transport couplé est du premier ordre et exige un raffinement temporel. + +Les paramètres restent `unverified`. Les deux ports doivent avoir le même domaine et matériau ; les ports relaxants rejettent le transit à l’équilibre. Une relaxation finie dans les réservoirs ne résout ni conversion chimique ni séjour dans une buse de volume nul. Le modèle omet glissement, tension liquide négative, barrière de nucléation, spray, gaz porteur et récepteur en combustion. Les réservoirs mobiles sont mélangés sans vitesse moyenne ; les cellules du conduit restent rigides avec un propriétaire unique. Utiliser une vapeur idéale diluée loin du critique, dans les bornes déclarées de pression positive et température, avec enthalpie latente positive et volumes de coexistence distincts. Le titre initial est une entrée de recherche explicite. L’accord numérique n’établit ni étalonnage mesuré ni acceptation Unity réelle. + +## 2026-11-17: Relaxation de phase du carburant à vitesse finie + +Un nœud `relaxing_fuel` possède un titre massique de vapeur indépendant. Liquide et vapeur partagent pression, température et vitesse, mais l’équilibre chimique demande un temps fini déclaré. Un `relaxing_fuel_duct` transporte masse, quantité de mouvement, énergie totale et masse de vapeur dans des cellules explicites. Le temps de séjour dépend de leur géométrie et de la vitesse réelle. + +Exécuter `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observer les titres réel et d’équilibre, l’affinité, l’entropie de phase, les inventaires de vapeur aux ports et le résidu global. Les historiques d’évaporation et de condensation séparent par signe le transfert net de source de chaque pas accepté ; ils ne comptent pas les échanges microscopiques bruts. Les vérifications couvrent la solution exponentielle indépendante, les dérivées d’entropie, l’acoustique gelée, la limite raide d’équilibre, l’auto-raffinement temporel et un raffinement spatial acoustique linéaire indépendant. Transactions, rejeu portable et MCP réel sont vérifiés séparément ; les valeurs figurent dans les preuves de validation. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Les flux conservatifs de Rusanov transportent quatre champs. Chaque intervalle CFL global applique une demi-source locale, le transport puis une demi-source. Un réservoir partagé reçoit chaque source une seule fois, quel que soit le nombre de conduits. La source est exacte pour un état isolé à volume fixe ; le transport couplé reste du premier ordre. Le CFL utilise une borne acoustique à titre gelé. Les entropies de phase et du conduit sont vérifiées séparément. Un état hors limites annule le lot entier. + +Les paramètres restent `unverified`. Déclarer `initial_vapor_mass_fraction` dans [0,1] et un temps entier de 1 ns à une heure. Respecter les bornes de température et de pression positive du matériau. Le modèle suppose un conduit rigide horizontal de section constante, un pseudo-fluide pur, un liquide sans dilatation thermique et une vapeur idéale. Il omet glissement, retard thermique interfacial, tension superficielle, spray et gaz porteur. Le couplage direct du domaine relaxant aux pompes, buses, chambres mobiles et récepteurs en combustion reste à faire. Conservation, rejeu et raffinement ne valident ni le matériel mesuré ni Unity réel. Utiliser une vapeur diluée loin de la région critique réelle ; le matériau doit conserver une enthalpie latente positive et des volumes spécifiques de coexistence distincts. + +## 2026-11-17: Transit de carburant à l’équilibre dans les buses + +Régler `phase_mode` de `compressible_fuel_nozzle` sur `equilibrium` impose l’équilibre homogène instantané pendant le transit. Liquide et vapeur partagent pression, température et vitesse ; le titre change sur l’isentrope. La buse et les réservoirs finis utilisent le même potentiel liquide compressible et la même référence de vapeur idéale. `frozen` reste une hypothèse distincte prise en charge. + +Exécuter `equilibrium-flashing-nozzle` ou `equilibrium-pump-needle`. `flux_relative_uncertainty` décrit le dernier encadrement constitutif local accepté ; il ne borne ni débit moyen, ni masse livrée, ni intégration temporelle du premier ordre, ni étalonnage. Les vérifications emploient inversion indépendante de saturation/entropie, blocage analytique gaz/liquide, recherche globale dense distincte, identités d’énergie/entropie et raffinement analytique de vidange vapeur. Inventaires, arbre/conduite/aiguille, restauration, annulation, branches, allocations, assets et MCP réel sont vérifiés séparément. Résultats et anciennes frontières figurent dans les preuves de validation. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +Le carré positif de la vitesse du son d’équilibre donne une densité croissante avec la pression à entropie fixe. La chute d’enthalpie décroît. Ces facteurs monotones bornent le flux sur chaque intervalle, y compris frontières de phase et extrema multiples. La séparation-évaluation renvoie débit inférieur échantillonné et borne supérieure restante à largeur relative au plus 1e-4. Limites : 512 intervalles sur pile et 8192 divisions. Différences caloriques, marges d’arrondi et bornes d’intégrales monotones utilisent jusqu’à 256 panneaux de Riemann et 80 itérations de fermeture. Un cas non résolu rejette le lot. Un maximum intérieur lisse est sonique ; une frontière de phase peut être non lisse. + +Les paramètres restent `unverified`. Cette limite suppose un pseudo-fluide pur, vapeur idéale, dilatation liquide nulle et vitesse commune. Temps finis de nucléation/relaxation, glissement, pulvérisation, gaz porteur et récepteur avec combustion sont omis. L’encadrement utilise des marges binary64 déclarées, sans preuve formelle par arrondis dirigés. Près des transitions critiques, interpréter la gorge avec l’enveloppe de flux. Validité mesurée et acceptation Unity réelle restent ouvertes. + +## 2026-11-17: Buses de carburant compressible à qualité figée + +Un `compressible_fuel_nozzle` transporte le fluide dans un seul sens entre réservoirs finis `compressible_fuel`, y compris les chambres entraînées par arbre. Compression liquide et vapeur idéale partagent leur matériau. Déclarer `phase_mode` comme `frozen` : la qualité massique reste fixe pendant le transit, puis les réservoirs se rééquilibrent. + +Exécuter `compressible-fuel-nozzle` pour la décharge finie ou `compressible-pump-needle` pour conduite, arbre, admission unidirectionnelle et aiguille électromagnétique. Lire masse, enthalpie, énergie cinétique, chaleur de paroi, impulsion et entropie cumulées. Débit et force sont moyennés sur le tick entier ; gorge, sortie et qualité gardent le dernier transit accepté. Les comparaisons couvrent travail liquide exact, blocage analytique gaz/liquide, quadrature indépendante, entropie et dérivée acoustique figées, balayage dense et raffinement de vidange critique analytique. Conservation, mouvement réel, relecture, branches, restauration, annulation, allocations, assets et MCP sont vérifiés séparément. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Des sous-pas conservatifs du premier ordre échangent la même masse et enthalpie ; l’énergie cinétique du jet se répartit entre récepteur et paroi. Chaque acceptation vérifie les états et l’entropie totale de la paire. Limites : 4096 sous-pas, 64 réductions de moitié par candidat, transfert initial borné à 0.1 fois la plus petite masse. La fermeture tolère 128 fois epsilon binary64 multiplié par le plus grand module volumique ou la pression des ports, sans écrêter les pressions. Un échec restaure tout le lot. Réduire le pas et examiner inventaire, limites, course et section. + +Les paramètres restent `unverified`. Le pseudo-fluide pur associe vapeur idéale et liquide compressible sans dilatation thermique. Respecter pression et température déclarées, y compris celles du jet idéal. Le transit figé peut conserver du liquide surchauffé sans prédire une limite mesurée de nucléation ou métastabilité. Relaxation finie, glissement, pulvérisation résolue, gaz porteur non condensable, récepteur avec combustion, cartes mesurées et acceptation Unity réelle restent ouverts. Conservation et relecture ne prouvent pas la validité matérielle. + +## 2026-10-26: Chambres de carburant compressible entraînées par arbre + +Un `compressible_fuel_chamber` relie un arbre à un réservoir fini `compressible_fuel`. Le mouvement change son volume ; le même travail de pression modifie l’énergie du fluide et le couple. Le réservoir peut alimenter ou recevoir un `equilibrium_fuel_duct`, avec vaporisation éclair et condensation à l’équilibre. + +Exécuter `compressible-fuel-chamber-duct` ou `electric-compressible-fuel-duct`. Lire masse, volume, pression, température, entropie et fraction de vapeur avec les cellules et le couple, la puissance et le travail. Les vérifications utilisent travail liquide et limites de vapeur indépendants, inversion séparée de l’isentrope et quadrature de pression, EDO d’arbre liquide et raffinement RK4 des équations semi-discrètes de vapeur idéale. Conservation, composition électrique/engrenages/hydraulique/embrayage, relecture portable, MCP réel et transactions sans allocation sont vérifiés séparément. Les résultats figurent dans les preuves de validation. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +Le réservoir mobile utilise un demi-transport, le travail complet de l’arbre, puis un demi-transport. Le transport reste du premier ordre avec diffusion numérique ; la séparation symétrique n’augmente pas son ordre. Le mouvement liquide fermé et lisse converge au second ordre. L’incrément angulaire est limité à 0.25 rad par intervalle mécanique. CFL, limites matérielles, restauration complète, annulation et branches indépendantes s’appliquent. L’impulsion stationnaire des ports et du carter est distincte du travail du piston. + +Les paramètres restent `unverified`. Le pseudo-fluide pur à l’équilibre comprend un liquide compressible sans dilatation thermique et une vapeur idéale, avec chambre mélangée et cellules rigides. Respecter les limites thermiques et de pression. La chambre ne résout pas d’énergie cinétique globale et n’inclut pas de clapet automatique. Nucléation à vitesse finie, glissement, comportement critique réel, étalonnage mesuré et acceptation Unity restent ouverts. + +## 2026-10-23: Conduites de carburant compressible à l’équilibre + +Un `equilibrium_fuel_duct` transporte masse, quantité de mouvement et énergie totale dans des cellules explicites `compressible_fuel`. Le liquide est compressible et la vapeur idéale ; les phases partagent pression, température et vitesse. L’équilibre local permet condensation et vaporisation éclair. Deux réservoirs stationnaires finis et une paroi thermique finie ferment les bilans. + +Exécuter `equilibrium-fuel-condensing-duct` ou `equilibrium-fuel-flashing-duct`. Chaque cellule expose densité, vitesse, fraction de phase, vitesse du son, température et énergie. Masse et énergie aux ports, impulsion de paroi et inventaires complets sont observables. Les vérifications indépendantes couvrent travail de compression, limite de vapeur idéale, égalité des potentiels chimiques, relations de Clapeyron et Gibbs, vitesse acoustique par inversion d’entropie, inversion masse-énergie, conservation et frottement avec paroi finie. Les erreurs acoustiques moyennes diminuent sur 8, 16 et 24 cellules. Relecture exacte, annulation, restauration, branches, pas sans allocation, assets portables et MCP réel sont vérifiés séparément ; les résultats détaillés figurent dans les preuves de validation. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +Le flux conservatif de Rusanov avance toutes les faces depuis le même état de sous-pas. Sa borne de vitesse combine la plus grande vitesse absolue et la borne acoustique du matériau. La limite CFL vaut 0.2 fois le volume minimal des ports divisé par section et vitesse ; chaque intervalle autorise au plus 4096 sous-pas. Transport et décroissance locale exacte par frottement sont séparés au premier ordre. La diffusion numérique contribue à la variation totale d’entropie, distincte de la chaleur de frottement rapportée. Les frontières stationnaires absorbent la quantité de mouvement sans travail mécanique ; l’énergie cinétique entrante se thermalise dans les réservoirs finis. Un état invalide ou une baisse d’entropie dépassant l’arrondi rejette tout le lot. Réduire le pas et examiner les limites du matériau et la résolution. + +Les paramètres restent `unverified`. Respecter les bornes de température et pression, une enthalpie latente positive, des volumes de coexistence séparés et une vapeur diluée. La conduite est horizontale, rigide, de section constante et à équilibre homogène instantané. Nucléation à vitesse finie, glissement, tension superficielle, gravité, élasticité et comportement critique réel sont omis. La diffusion du premier ordre peut étaler les fronts ; conservation et relecture ne prouvent ni précision spatiale ni validité matérielle mesurée. L’acceptation Unity réelle reste à réaliser. + +## 2026-10-23: Quantité de mouvement d'une ligne finie de carburant liquide + +Un `fuel_inertial_pipe` relie deux nœuds de carburant finis et une paroi thermique finie. La ligne horizontale rigide possède masse liquide, énergie calorique et cinétique propres, en plus des réservoirs. Sa densité est constante, sa température variable et parfaitement mélangée. Les ports et toute la ligne restent liquides ; les liens quasi statiques gardent leur comportement diphasique séparé. + +Une solution harmonique indépendante à compliance finie et une RK4 indépendante du mouvement/température non linéaires vérifient exactitude et premier ordre. Les contrôles couvrent chaleur, entropie, inversion, bilans complets, intervalles spéculatifs d'embrayage, allocations, rollback, annulation et branches indépendantes. Assets portables et MCP réel vérifient chaque frontière. Cela ne valide ni matériel calibré ni Unity réel. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +La quantité de mouvement utilise le débit médian et les pressions finales acceptées. Énergie des ports et mélange utilisent Euler implicite ; le couplage complet converge au premier ordre. Même sans friction, la discrétisation des pressions transforme une partie de l'oscillation en chaleur numérique, non comptée comme friction physique. L'entropie inclut mélange et discrétisation. Les événements de débit nul séparent les historiques directs et inverses. + +Les paramètres restent `unverified`. Respecter les plages de température/pression et la stabilité liquide corrigée en pression. Un intervalle échoué est entièrement annulé ; réduire le pas et vérifier épuisement, pression et phase. Densité variable diphasique, cavitation, acoustique, gravité, géométrie mobile et fronts thermiques résolus sont omis. La combustion prescrite ne valide pas chimie d'équilibre ni entropie réactionnelle détaillées. + +## 2026-10-20: Référence de quantité de mouvement à l'entrée liquide + +`LiquidColumn` est une référence C# autonome pour un tube horizontal rigide à section, vitesse uniforme, masse volumique liquide et température constantes. Les pressions absolues aux ports sont prescrites pendant chaque intervalle. Les résistances linéaire et quadratique sont des entrées de recherche explicites. Ce n'est pas un composant du graphe ; les équations du réseau et de la tuyère restent inchangées. + +Accélération sans pertes, solution exponentielle linéaire et tangente hyperbolique quadratique indépendantes vérifient les limites. Une RK4 indépendante à pression variable vérifie le second ordre, inversion comprise. Décroissance passive, équilibre, bilan énergétique complet, entropie non négative, rejets, partage immuable et allocations sont testés sur les deux cibles. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Les paramètres restent `unverified`. Le plancher de pression est déclaré par l'appelant pour la validité liquide ; il ne prédit ni pression de vapeur ni marge NPSH. Compressibilité, acoustique, gravité, géométrie mobile, stockage thermique, cavitation, glissement et relaxation de phase sont hors référence. Les liens diphasiques restent quasi statiques. Acceptation Unity réelle et calibration mesurée sont séparées. + +## 2026-10-20: Décharge de carburant à titre figé et récepteurs finis + +La pompe du domaine carburant alimente désormais une aiguille physique et une décharge à titre figé dans un récepteur allumé à volume liquide fini. Les inventaires incluent changement de phase, travail de déplacement, énergie cinétique du jet et impulsion à la paroi immobile. + +Limites indépendantes de Bernoulli et du gaz idéal, maximisation séparée du flux diphasique, bilans d'énergie/entropie et ODE indépendante tuyère/récepteur vérifient les équations. Le raffinement temporel est du premier ordre. Relecture portable, MCP réel, annulation, rollback, branches indépendantes et allocations couvrent l'intégration. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Les paramètres restent `unverified`. Respecter températures déclarées, volume gazeux positif et domaine vapeur diluée. Inertie locale d'entrée, nucléation à vitesse finie, glissement, spray résolu, comportement critique réel et calibration mesurée sont omis. La combustion prescrite ne valide pas l'équilibre chimique ni l'entropie réactionnelle. Poursuivre entrée, allumage, admission/échappement, pertes et coordination ECU/TCU. + +## 2026-10-20: Pompe carburant diphasique entraînée par arbre + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les nouveaux contrôles de pompe carburant couvrent les deux cibles d'assembly. Les contrôles Standard sont hébergés sur .NET 10 ; Unity Editor/Play/Player/IL2CPP reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Pression/travail du liquide, adiabates de vapeur idéale et inversion indépendante de l'entropie diphasique vérifient la fermeture. Le mouvement liquide fermé montre l'ordre deux ; remplissage/livraison avec changement de phase montre l'ordre un face à une référence RK4 inversée indépendamment. Sous-alimentation, apport liquide complet, moteur électrique, composition engrenages/hydraulique/embrayage, rejeu, rollback et allocations couvrent l'intégration. L'asset v33 stocke la géométrie et lit v1-v32. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +Les paramètres restent `unverified`. Les limites de température, pression et volume représentable s'appliquent sur tout le cycle. Hypothèses : liquide incompressible, vapeur idéale pseudo-espèce, équilibre instantané à température commune et pression extérieure de carter nulle. Inertie d'entrée/NPSH, blocage sonique, nucléation retardée, inertie/hystérésis de clapet, mélanges réels et calibration mesurée restent ouverts. Raccordement physique d'injecteur et travail de déplacement/cinétique du récepteur restent distincts. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Pompe carburant diphasique entraînée par arbre](FUEL_CHAMBER_PUMP.fr.md) + + +## 2026-10-20: Réseau de transport de carburant en équilibre + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les nouveaux contrôles du réseau carburant couvrent les deux cibles d'assembly. Les contrôles Standard sont hébergés sur .NET 10 ; Unity Editor/Play/Player/IL2CPP reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +Les laboratoires couvrent décharge liquide vers coexistence, inversion, changements d'ouverture et couplage thermique fini/électromécanique. Une exponentielle indépendante de pression liquide, une EDO simultanée diphasique masse/enthalpie/chaleur, l'inversion par chauffage et la capture spéculative d'embrayage vérifient précision et composition. Assets et MCP réel conservent chaque valeur et hash échantillonnés. L'asset v32 conserve les propriétés et lit v1-v31. Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +Les limites de matière et de déformation représentable de la fermeture restent applicables. Les paramètres restent `unverified`. Remplissage de pompe et travail d'arbre, raccordement d'injecteur, inertie locale, blocage sonique, retard de nucléation, glissement et mesures de mélanges réels restent à réaliser. Les rails d'injecteur alimentés par pompe gardent leur chemin liquide séparé en attendant ces couplages. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Réseau de transport de carburant en équilibre](EQUILIBRIUM_FUEL_NETWORK.fr.md) + + +## 2026-10-20: Référence de volume de carburant déformable + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les nouveaux contrôles constitutifs couvrent les deux cibles d'assembly. Les contrôles Standard sont hébergés sur .NET 10 ; Unity Editor/Play/Player/IL2CPP reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Les contrôles comparent potentiels chimiques, pentes de Clapeyron, dérivées caloriques et entropiques et relation de Gibbs avec stockage élastique. Une maximisation indépendante de l'entropie contrainte n'utilise pas le solveur de saturation. Les limites de récipient rigide, gaz idéal et extensivité et le raffinement RK4 du bain fini servent de références. L'échange thermique conserve l'énergie totale et converge à l'ordre un avec entropie totale non décroissante. Cela ne valide ni carburant mesuré ni Unity. + +La fermeture du récipient déformable de carburant pur résout liquide, vapeur et coexistence avec stockage élastique. Cette référence constitutive locale attend encore son intégration au transport par pompe et buse du graphe. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Référence de volume de carburant déformable](COMPLIANT_FUEL_VOLUME.fr.md) + + +## 2026-10-20: Équilibre du réservoir à volume fini + +La vérification série requise réussit localement sur Windows x64/.NET 10.0.12. Les contrôles Standard tournent sur .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` exerce inversion de pompe, évent avec carburant et paroi chauffée finie. `equilibrium-tank-fired-cylinder` relie cette source au moteur à combustion. Maximisation indépendante d'entropie, potentiels chimiques, dérivées caloriques, raffinement ODE, bilans, rejeu, retour arrière et allocations sont vérifiés. Asset v31 conserve le drapeau et lit v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Les exemples couplés pompe/chaleur/évent montrent un raffinement du premier ordre. Les deux phases sources restent dans l'intervalle thermique déclaré et sous la densité liquide avec marge d'arrondi binary64. Densité et propriétés gazeuses constantes, équilibre instantané et interface plane sont des approximations de recherche. Mélanges réels, tension superficielle, ballottement, cinétique finie, calibration mesurée et Unity Editor/Play/Player/IL2CPP réel restent non vérifiés. + +[TANK_PHASE_EQUILIBRIUM.fr.md](TANK_PHASE_EQUILIBRIUM.fr.md) + +## 2026-10-13: Équilibre des phases du carburant et limites d'alimentation + +La vérification série requise réussit localement sur Windows x64/.NET 10.0.12. Les contrôles Standard tournent sur .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` montre condensation, évaporation par ventilation puis nouvelle condensation. `equilibrium-injected-cylinder` ajoute l'équilibre réversible du récepteur et les marges d'alimentation au moteur à réservoir ventilé. Maximisation indépendante d'entropie, limites analytiques, raffinement ODE simultané, rejeu complet, retour arrière et allocations sont vérifiés. Asset v30 conserve ces propriétés et lit v1-v29. + +La comparaison ne tolère que l'arrondi binary64 : `64 * epsilon * max(p, p_sat)`, avec `epsilon = 2^-52`. La marge affichée n'est pas écrêtée. C'est un contrôle de saturation globale ; pertes locales et NPSH de pompe demandent un modèle d'écoulement résolu. Les contrôles indépendants exigent aussi une entropie totale non décroissante pour le flash adiabatique et l'échange avec la paroi finie. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Paramètres `unverified`. Propriétés d'essence mesurées, cinétique multiphase multicomposant ou à vitesse finie, déplacement liquide/pulvérisation résolus et calibration OEM ne sont pas fournis. L'acceptation réelle Unity Editor/Play/Player/IL2CPP reste en attente. + +[FUEL_PHASE_EQUILIBRIUM.fr.md](FUEL_PHASE_EQUILIBRIUM.fr.md) + +## 2026-10-08: Géométrie du réservoir et espace gazeux fini + +La vérification série requise réussit localement sur Windows x64/.NET 10.0.12. Les contrôles Standard tournent sur .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +Les exemples `vented-tank-liquid-cylinder` et `vented-tank-needle-cylinder` utilisent réservoir 1513, gaz 1520 et entrée de ventilation 960. Asset v29 conserve la géométrie et lit v1-v28. Travail/dérivées analytiques, convergence ODE indépendante, bilans, rejeu portable/MCP, retour arrière et avancement sans allocation passent. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Réservoir rigide mélangé, liquide incompressible et gaz idéal. Ballottement/forme hydrostatique, équilibre des phases, cavitation, cartes pompe/vanne mesurées, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. Paramètres `unverified`. + +[TANK_HEADSPACE.fr.md](TANK_HEADSPACE.fr.md) + +## 2026-10-08: Découverte complète des laboratoires et composants + +La vérification série requise réussit localement sur Windows x64/.NET 10.0.12. Les contrôles Standard tournent sur .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, exemples MCP, exports Unity et vérification série partagent le catalogue. Chaque source est couverte, chaque exemple annoncé est validé par stdio réel et les composants annoncés correspondent au schéma complet. Empreintes, hachages source et chaque hachage d'état échantillonné correspondent à la référence. L'asset v28 et les lecteurs antérieurs restent inchangés. + +L'audit documentaire couvre sections correspondantes, ligne unique de langues et tableaux complets dans les dix langues. Le catalogue et la réponse CLI respectent `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Géométrie/espace gazeux du réservoir, moteur plus complet, coordination ECU/TCU, calibration mesurée et acceptation Unity réelle restent ouverts. Les paramètres de recherche restent `unverified`. + +## 2026-10-05: Retour suivi de décharge de carburant + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les contrôles Standard s'exécutent sous .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Décroissance/travail indépendants, raffinement mécanique/pression/thermique simultané, fractions, voies multiples, frontières externes, replay, rollback et allocations passent. Ébullition ou intervalle de transport non résolu fait échouer tout le lot. Géométrie/évent, soupapes/pompes mesurées, cavitation, spray, calibration OEM et Unity Editor/Play/Player/IL2CPP réel restent ouverts. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.fr.md](LIQUID_FUEL_RETURN.fr.md) + +## 2026-10-05: Réservoir fini de carburant liquide + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les contrôles Standard s'exécutent sous .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Masse et énergie calorique atteignent exactement zéro ; débit/réaction avant disparaissent, l'arbre gardant sa dynamique réelle. Le retour restaure l'inventaire humide à la température mélangée de rampe. Échange humide analytique, énergie d'arbre/pression épuisée, rollback complet et allocations passent. + +L'énergie chimique de frontière inclut le carburant imbrûlé sortant à l'échappement. Le réservoir transfère en interne ; les contrôles intégrés comparent variation de stock chimique plus chaleur libérée à l'énergie chimique nette de frontière. + +Capacité géométrique, évent/espace gazeux/ballottement, cavitation, remplissage/efficacité/régulation mesurés et spray résolu restent ouverts. Paramètres `unverified` ; Unity Editor/Play/Player/IL2CPP réel et calibration OEM restent non vérifiés. + +La révision précédente passe CI Windows, Linux et macOS. Ce run ne vérifie pas le réservoir fini. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.fr.md](LIQUID_FUEL_TANK.fr.md) + +## 2026-10-05: Rampe de carburant liquide alimentée par pompe + +La vérification série requise passe localement sous Windows x64/.NET 10.0.12. Les contrôles Standard s'exécutent sous .NET 10 ; Unity Editor/Play/Player/IL2CPP réel reste non vérifié. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Six groupes physiques/transactionnels, deux groupes d'actifs, trois groupes intégrés et deux scénarios MCP réels couvrent l'alimentation. Les énergies calorique/chimique entrantes s'accumulent avec l'énergie de frontière gazeuse ; le stockage de pression est compté une fois. Le KPI utilise une borne analytique de pompe seule de 920541.8 Pa plutôt que la pression initiale. + +La source est une frontière externe explicite, pas un réservoir fini modélisé. Épuisement du réservoir, efficacité/régulation, pertes de lignes, cavitation, propriétés dépendant de pression et spray à volume fini restent ouverts. Paramètres `unverified` ; aucune calibration OEM ni acceptation réelle Unity Editor/Play/Player/IL2CPP n'est établie. + +Le précédent checkpoint AT passe aussi la CI Windows, Linux et macOS à la révision enregistrée. Ce run ne vérifie pas ces changements d'alimentation. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.fr.md](PUMP_FED_FUEL.fr.md) + +## 2026-10-05: Retour AT hydraulique et régulation de pression + +La vérification série requise passe sous Windows x64/.NET 10.0.12. La compilation Release n'a ni avertissement ni erreur. L'acceptation réelle Unity et de nouvelles validations Linux/macOS restent non vérifiées. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 groupes physiques/transactionnels couvrent tous les rapports avant et arrière, pression/contact/verrouillage réels, propriété des vannes, horloges et bornes PI. Les défauts comprennent perte d'alimentation, drain bouché, délais d'engagement/débrayage, interverrouillage de direction et perte de verrouillage confirmé. 2 groupes portables conservent les routes typées et rejettent les déclassements resignés. 3 groupes intégrés et 2 scénarios MCP réels correspondent à chaque scalaire et empreinte d'état. + +Le démarrage en marche arrière et la récupération restent Applying à 500 ms et sont confirmés avant 800 ms, dans le délai déclaré. Les tests suivent le verrouillage réel, pas un délai fixe. La vidange de sécurité ne supprime pas un blocage physique. Le graphe moteur/planètes/actionneurs/commande conserve 122 états dans la limite inchangée de 128. + +Les paramètres restent `unverified`. Coordination du couple ECU, capteurs/vannes détaillés, défauts véhicule complets, calibration OEM et acceptation réelle Editor/Play/Player/IL2CPP restent ouverts. + +[AT_CONTROL.fr.md](AT_CONTROL.fr.md) + + ## 2026-10-02 : alimentation hydraulique AT partagée et actionnement dynamique par piston La commande série requise `dotnet run --file tools/Build.cs -- verify` passe localement diff --git a/docs/VALIDATION.it.md b/docs/VALIDATION.it.md index 1c2ece1..1aaa053 100644 --- a/docs/VALIDATION.it.md +++ b/docs/VALIDATION.it.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · **Italiano** · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Pompe a combustibile con rilassamento e dosaggio congelato + +Un `compressible_fuel_chamber` può controllare il volume di un serbatoio `relaxing_fuel`. Il lavoro reversibile dell’albero mantiene fissa la frazione di vapore; il rilassamento chimico è una sorgente separata che conserva energia. Un `compressible_fuel_nozzle` collega due serbatoi rilassanti con `phase_mode` su `frozen`, trasportando massa totale, vapore ed entalpia di ristagno. Un ago fisico con bobina, molla e battuta può dosare l’apertura. + +Eseguire `relaxing-fuel-chamber` o `relaxing-pump-needle`. Osservare volume/lavoro, frazioni effettiva e di equilibrio, entropia di fase, `total_vapor_delivered`, inventari alle porte e residuo globale di vapore. Si confrontano adiabatiche pure, quadratura indipendente della pressione a frazione fissa, lavoro infinitesimo, ciclo reversibile e ODE indipendente dell’albero con vapore ideale. Raffinamento accoppiato, tempo di sorgente condiviso, bilanci completi, annullamento, rollback, rami, allocazioni, riproduzione portatile e MCP reale sono verificati separatamente. I numeri sono nelle prove di validazione. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +La relazione entropica a frazione fissa determina pressione e temperatura dopo la variazione di volume. Il lavoro include compressione fredda del liquido e funzioni incrementali stabili per piccoli movimenti. Lo stesso lavoro discreto determina la coppia all’albero. Ogni intervallo globale applica una volta la sorgente di ogni nodo attorno al trasporto conservativo in condotto e ugello congelato. CFL e 0.02 dell’inventario minore alle porte limitano gli intervalli, al massimo 4096. Lavoro e sorgente restano separati. Il trasporto accoppiato rimane del primo ordine e richiede raffinamento temporale. + +I parametri restano `unverified`. Entrambe le porte richiedono stesso dominio e materiale; quelle rilassanti rifiutano il transito di equilibrio. Il rilassamento finito nei serbatoi non risolve chimica o permanenza dentro un ugello senza volume. Mancano scorrimento delle fasi, tensione liquida negativa, barriera di nucleazione, spray, gas vettore e ricevitore in combustione. I serbatoi mobili sono miscelati con velocità media nulla; le celle interne restano rigide con un proprietario. Usare vapore ideale diluito lontano dal critico, limiti dichiarati di pressione positiva e temperatura, entalpia latente positiva e volumi di coesistenza separati. La frazione iniziale è un ingresso di ricerca esplicito. L’accordo numerico non attesta calibrazione misurata né accettazione Unity reale. + +## 2026-11-17: Rilassamento di fase del combustibile a velocità finita + +Un nodo `relaxing_fuel` ha una frazione massica di vapore indipendente. Liquido e vapore condividono pressione, temperatura e velocità, mentre l’equilibrio chimico richiede un tempo finito dichiarato. Un `relaxing_fuel_duct` trasporta massa, quantità di moto, energia totale e massa di vapore in celle esplicite. La permanenza dipende da geometria e velocità effettiva. + +Eseguire `relaxing-fuel-evaporation` o `relaxing-fuel-duct`. Osservare frazioni effettiva e di equilibrio, affinità, entropia di fase, bilanci di vapore alle porte e residuo globale. Le storie di evaporazione e condensazione separano per segno il trasferimento netto della sorgente di ogni passo accettato, senza contare i flussi microscopici lordi. Le prove includono soluzione esponenziale indipendente, derivate entropiche, acustica congelata, limite rigido di equilibrio, autoraffinamento temporale e raffinamento spaziale acustico lineare indipendente. Transazioni, riproduzione portatile e MCP reale sono verificati separatamente; i numeri sono nelle prove di validazione. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +I flussi conservativi di Rusanov trasportano quattro campi. Ogni intervallo CFL globale applica mezza sorgente locale, trasporto e mezza sorgente. I serbatoi condivisi ricevono ogni sorgente una sola volta indipendentemente dal numero di condotti. La sorgente è esatta per stati isolati a volume fisso; il trasporto accoppiato mantiene errore del primo ordine. CFL usa il limite acustico a frazione congelata. Entropia di fase e del condotto sono verificate separatamente. Uno stato fuori limite annulla l’intero lotto. + +I parametri restano `unverified`. Dichiarare `initial_vapor_mass_fraction` in [0,1] e un tempo intero da 1 ns a un’ora. Rispettare temperatura e pressione positiva del materiale. Si assumono condotto rigido orizzontale a sezione costante, pseudofluido puro, dilatazione termica liquida nulla e vapore ideale. Mancano scorrimento fra le fasi, ritardo termico interfacciale, tensione superficiale, spray e gas vettore. Restano aperti gli accoppiamenti diretti del dominio rilassante con pompe, ugelli, camere mobili e ricevitori in combustione. Conservazione, riproduzione e raffinamento non attestano validità hardware misurata né accettazione reale Unity. Usare vapore diluito lontano dalla regione critica reale; il materiale deve mantenere entalpia latente positiva e volumi specifici di coesistenza distinti. + +## 2026-11-17: Transito di combustibile all’equilibrio negli ugelli + +Impostare `phase_mode` di `compressible_fuel_nozzle` su `equilibrium` per l’equilibrio omogeneo istantaneo durante il transito. Liquido e vapore condividono pressione, temperatura e velocità; il titolo cambia lungo l’isentropica. Ugello e serbatoi finiti usano lo stesso potenziale liquido comprimibile e riferimento di vapore ideale. `frozen` resta un’ipotesi distinta supportata. + +Eseguire `equilibrium-flashing-nozzle` o `equilibrium-pump-needle`. `flux_relative_uncertainty` descrive l’ultimo involucro costitutivo locale accettato e non limita portata media, massa consegnata, integrazione temporale del primo ordine o calibrazione. Si confrontano inversione indipendente di saturazione/entropia, blocco analitico gas/liquido, ricerca globale densa separata, identità energetiche/entropiche e raffinamento analitico dello svuotamento di vapore. Inventari, albero/condotto/ago, rollback, annullamento, rami, allocazioni, asset e MCP reale sono verificati separatamente. Numeri e vecchi confini restano nelle prove di validazione. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +Il quadrato positivo del suono d’equilibrio dà densità crescente con pressione a entropia fissa; il salto d’entalpia diminuisce. I fattori monotoni limitano il flusso di ogni intervallo, incluse frontiere di fase ed estremi multipli. La separazione e valutazione restituisce limite inferiore campionato e superiore residuo con ampiezza relativa massima 1e-4. Limiti: 512 intervalli sullo stack e 8192 divisioni. Differenze caloriche usano margini d’arrotondamento e limiti integrali monotoni fino a 256 pannelli Riemann e 80 iterazioni. Casi irrisolti rifiutano il lotto. Un massimo interno regolare è sonico; uno alla frontiera può essere non regolare. + +I parametri restano `unverified`. Il limite d’equilibrio usa pseudofluido puro, vapore ideale, dilatazione liquida nulla e velocità comune. Esclude tempi finiti di nucleazione/rilassamento, scorrimento, spray, gas portante e ricevitore con combustione. L’involucro usa margini binary64 dichiarati, non una prova formale d’intervalli con arrotondamento diretto. Interpretare la gola vicino alle transizioni insieme all’involucro. Validità misurata e Unity effettivo restano aperti. + +## 2026-11-17: Ugelli di combustibile comprimibile a titolo congelato + +Un `compressible_fuel_nozzle` porta flusso unidirezionale tra serbatoi finiti `compressible_fuel`, incluse camere azionate da albero. Compressione liquida e vapore ideale condividono il materiale. Dichiarare `phase_mode` come `frozen`: il titolo massico resta costante nel transito, mentre i serbatoi si riequilibrano. + +Eseguire `compressible-fuel-nozzle` per lo scarico finito o `compressible-pump-needle` per condotto, albero, ingresso unidirezionale e ago a solenoide. Leggere massa, entalpia, energia cinetica, calore, impulso ed entropia cumulati. Portata e forza medie coprono il tick intero; gola, uscita e titolo mantengono l’ultimo transito accettato. Si confrontano lavoro liquido esatto, blocco analitico gas/liquido, quadratura indipendente, entropia e derivata sonora congelate, scansione densa e raffinamento dello svuotamento critico analitico. Conservazione, moto reale, riproduzione, rami, rollback, annullamento, allocazioni, asset e MCP sono verificati separatamente. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Sottopassi conservativi del primo ordine trasferiscono la stessa massa ed entalpia e dividono l’energia cinetica fra fluido e parete. Si verificano stati ed entropia totale della coppia. Limiti: 4096 sottopassi, 64 dimezzamenti per candidato, trasferimento iniziale entro 0.1 della massa minore. La chiusura tollera 128 epsilon binary64 per il massimo modulo volumetrico o pressione senza limitare i valori riportati. Un errore annulla l’intero lotto. Controllare passo, inventario, limiti, corsa e area. + +I parametri restano `unverified`. Il puro pseudofluido usa vapore ideale e liquido comprimibile senza dilatazione termica. Rispettare limiti di pressione e temperatura, incluso il getto ideale. Il transito congelato può mantenere liquido surriscaldato senza predire limiti misurati di nucleazione o metastabilità. Rilassamento finito, scorrimento, spray risolto, gas portante non condensabile, ricevitore con combustione, mappe misurate e Unity reale restano aperti. Conservazione e riproduzione non dimostrano validità hardware. + +## 2026-10-26: Camere di combustibile comprimibile azionate da albero + +Una `compressible_fuel_chamber` collega un albero a un serbatoio finito `compressible_fuel`. Il movimento cambia il volume; lo stesso lavoro di pressione cambia energia del fluido e coppia. Il serbatoio può alimentare o ricevere un `equilibrium_fuel_duct`, con vaporizzazione e condensazione all’equilibrio. + +Eseguire `compressible-fuel-chamber-duct` o `electric-compressible-fuel-duct`. Leggere massa, volume, pressione, temperatura, entropia e frazione di vapore insieme a celle, coppia, potenza e lavoro. Le prove usano lavoro liquido e limiti del vapore indipendenti, isentropica d’equilibrio invertita separatamente e quadratura della pressione, ODE dell’albero liquido e raffinamento RK4 delle equazioni semidiscrete del vapore ideale. Conservazione, composizione elettrica/ingranaggi/idraulica/frizione, riproduzione portabile, MCP reale e transazioni senza allocazioni sono verificati separatamente. I risultati sono nelle prove di validazione. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +Il serbatoio mobile usa mezzo trasporto, lavoro completo d’albero e mezzo trasporto. Il trasporto resta al primo ordine con diffusione numerica; la separazione simmetrica non alza l’ordine. Il moto liquido chiuso e regolare converge al secondo ordine. Gli incrementi angolari sono limitati a 0.25 rad per intervallo meccanico. Restano validi CFL, limiti materiali, rollback completo, annullamento e rami indipendenti. L’impulso stazionario di porte/carter è distinto dal lavoro del pistone. + +I parametri restano `unverified`. Il puro pseudofluido d’equilibrio comprende liquido comprimibile senza dilatazione termica e vapore ideale, camera miscelata e celle rigide. Rispettare i limiti termici e di pressione. La camera non risolve energia cinetica media e non include una valvola di ritegno automatica. Nucleazione a velocità finita, scorrimento tra fasi, comportamento critico reale, calibrazione misurata e accettazione Unity effettiva restano aperti. + +## 2026-10-23: Condotti di combustibile comprimibile in equilibrio + +Un `equilibrium_fuel_duct` trasporta massa, quantità di moto ed energia totale attraverso celle esplicite `compressible_fuel`. Il liquido è comprimibile e il vapore ideale; le due fasi condividono pressione, temperatura e velocità. L’equilibrio locale permette condensazione e vaporizzazione istantanea. Due serbatoi finiti fermi e una parete termica finita chiudono i bilanci. + +Eseguire `equilibrium-fuel-condensing-duct` o `equilibrium-fuel-flashing-duct`. Ogni cella espone densità, velocità, frazione di fase, velocità del suono, temperatura ed energia. Sono osservabili massa/energia alle porte, impulso della parete e inventari completi. Le verifiche indipendenti coprono lavoro di compressione, limite del vapore ideale, uguaglianza dei potenziali chimici, relazioni di Clapeyron e Gibbs, suono tramite inversione dell’entropia, inversione massa-energia, conservazione e attrito con parete finita. Gli errori acustici medi di cella diminuiscono con 8, 16 e 24 celle. Riproduzione esatta, rollback, annullamento, rami, passi senza allocazioni, asset portabili e MCP reale sono verificati separatamente; i risultati dettagliati sono nelle prove di validazione. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +Il flusso conservativo di Rusanov aggiorna tutte le facce dallo stesso stato di sottopasso. Il limite di velocità somma la massima velocità assoluta e il limite acustico del materiale. Il vincolo CFL è 0.2 volte il volume minimo delle porte diviso per area e velocità; ogni intervallo ammette al massimo 4096 sottopassi. Trasporto e decadimento locale esatto per attrito sono separati al primo ordine. La diffusione numerica contribuisce alla variazione totale di entropia, distinta dal calore d’attrito riportato. I confini fermi assorbono quantità di moto senza lavoro meccanico; l’energia cinetica entrante si termalizza nell’inventario finito. Stati invalidi o diminuzione d’entropia oltre l’arrotondamento rifiutano l’intero lotto. Ridurre il passo e controllare limiti del materiale e risoluzione. + +I parametri restano `unverified`. Rispettare gli intervalli dichiarati di temperatura e pressione, entalpia latente positiva, volumi di coesistenza separati e vapore diluito. Il condotto è rigido, orizzontale, a sezione costante e con equilibrio omogeneo istantaneo. Esclude nucleazione a velocità finita, scorrimento tra fasi, tensione superficiale, gravità, elasticità e comportamento critico reale. La diffusione di primo ordine può allargare i fronti; conservazione e riproduzione non dimostrano accuratezza spaziale o validità hardware misurata. L’accettazione Unity effettiva è ancora aperta. + +## 2026-10-23: Quantità di moto della linea finita di carburante liquido + +Un `fuel_inertial_pipe` collega due nodi finiti di carburante e una parete termica finita. La linea orizzontale rigida possiede massa liquida, energia calorica e cinetica proprie oltre ai serbatoi. Densità costante, temperatura variabile e miscelata. Porte e linea restano liquide; i collegamenti quasi statici mantengono il modello bifase separato. + +Soluzione armonica indipendente a cedevolezza finita e RK4 indipendente del moto/temperature non lineari verificano accuratezza e primo ordine. Coperti calore, entropia, inversione, bilanci, intervalli speculativi frizione, allocazioni, rollback, annullamento e rami. Assets portabili e MCP reale verificano ogni confine. Non sono calibrazione misurata o accettazione Unity reale. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +Il moto usa portata media e pressioni finali accettate. Energia e miscela usano Eulero implicito; l'accoppiamento completo converge al primo ordine. Anche senza attrito, la discretizzazione trasforma parte dell'oscillazione in calore numerico, non registrato come attrito fisico. L'entropia comprende miscela e discretizzazione. Gli eventi di portata nulla separano i trasferimenti diretti e inversi. + +I parametri restano `unverified`. Valgono intervalli materiali e stabilità liquida corretta in pressione. Un fallimento ripristina l'intero intervallo; ridurre passo e controllare esaurimento, pressione e fase. Mancano moto bifase a densità variabile, cavitazione, acustica, gravità, geometria mobile e fronti termici. La combustione prescritta non prova chimica d'equilibrio o entropia di reazione dettagliate. + +## 2026-10-20: Riferimento della quantità di moto all'ingresso liquido + +`LiquidColumn` è un riferimento C# autonomo per tubo orizzontale rigido con sezione, velocità uniforme, densità liquida e temperatura costanti. Le pressioni assolute sono prescritte nell'intervallo. Resistenze lineari e quadratiche sono input di ricerca espliciti. Non è un componente del grafo e non cambia rete o ugello. + +Accelerazione senza perdite, esponenziale lineare e tangente iperbolica quadratica indipendenti verificano i limiti. Una RK4 indipendente a pressione variabile verifica il secondo ordine con inversione. Decadimento passivo, equilibrio, energia completa, entropia non negativa, rifiuti, condivisione immutabile e allocazioni sono testati su entrambi gli obiettivi. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +I parametri restano `unverified`. La pressione minima è un confine liquido dichiarato dal chiamante, non una previsione di tensione di vapore o NPSH. Comprimibilità, acustica, gravità, geometria mobile, accumulo termico, cavitazione, scorrimento e rilassamento sono esclusi. I collegamenti bifase restano quasi statici. Unity reale e calibrazione misurata sono separati. + +## 2026-10-20: Scarico carburante a titolo congelato e ricevitori finiti + +La pompa del dominio carburante alimenta ora ago fisico e scarico a titolo congelato in un ricevitore acceso con volume liquido finito. Gli inventari comprendono cambio fase, lavoro di spostamento, energia cinetica del getto e impulso sulla parete ferma. + +Limiti indipendenti di Bernoulli e gas ideale, massimizzazione separata del flusso bifase, energia/entropia e ODE ugello/ricevitore integrata indipendentemente verificano le equazioni. Il raffinamento temporale è del primo ordine. Replay portabile, MCP reale, rollback, annullamento, rami indipendenti e allocazioni coprono l'integrazione. Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +I parametri restano `unverified`. Valgono temperature dichiarate, volume gas positivo e dominio di vapore diluito. Mancano inerzia locale d'ingresso, nucleazione finita, scorrimento delle fasi, spray risolto, criticità reale e calibrazione misurata. La combustione prescritta non prova equilibrio chimico o entropia di reazione. Proseguire ingresso, accensione, aspirazione/scarico, perdite e ECU/TCU coordinati. + +## 2026-10-20: Pompa carburante a cambio di fase azionata da albero + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I nuovi controlli della pompa carburante coprono entrambi i target assembly. I controlli Standard sono ospitati su .NET 10; Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Pressione/lavoro liquidi, adiabatiche di vapore ideale e inversione indipendente dell’entropia bifase verificano la chiusura. Il moto liquido chiuso raffina al secondo ordine; riempimento/erogazione con fase al primo contro RK4 invertito indipendentemente. Ingresso insufficiente e pieno, motore elettrico, ingranaggi/idraulica/frizione, replay, rollback e allocazioni coprono l’integrazione. Asset v33 salva geometria e legge v1-v32. Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +I parametri restano `unverified`. Limiti di temperatura, pressione e volume rappresentabile valgono per tutto il ciclo. Si assumono liquido incomprimibile, vapore ideale pseudo-specie, equilibrio istantaneo a temperatura comune e pressione esterna del carter nulla. Inerzia locale/NPSH, flusso critico, ritardo di nucleazione, inerzia/isteresi valvole, miscele reali e calibrazione misurata restano aperti. Iniettore fisico e lavoro di spostamento/cinetica del ricevitore sono separati. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Pompa carburante a cambio di fase azionata da albero](FUEL_CHAMBER_PUMP.it.md) + + +## 2026-10-20: Rete di trasporto del carburante in equilibrio + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I nuovi controlli della rete carburante coprono entrambi i target assembly. I controlli Standard sono ospitati su .NET 10; Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +I laboratori coprono scarico liquido in coesistenza, flusso inverso, aperture e calore finito/elettromeccanico. Esponenziale indipendente della pressione liquida, ODE bifase simultanea massa/entalpia/calore, inversione termica e cattura speculativa della frizione verificano accuratezza e composizione. Asset e MCP effettivo mantengono tutti i campioni e gli hash. Asset v32 conserva proprietà e legge v1-v31. Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +Restano i limiti del materiale e della deformazione rappresentabile della chiusura. I parametri restano `unverified`. Riempimento pompa e lavoro d’albero, collegamento iniettore, inerzia locale, flusso critico, ritardo di nucleazione, scorrimento e misure di miscele reali rimangono separati. I rail iniettore alimentati da pompa mantengono il percorso liquido separato fino all’accoppiamento. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Rete di trasporto del carburante in equilibrio](EQUILIBRIUM_FUEL_NETWORK.it.md) + + +## 2026-10-20: Riferimento del volume di carburante cedevole + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I nuovi controlli costitutivi coprono entrambi i target assembly. I controlli Standard sono ospitati su .NET 10; Unity Editor/Play/Player/IL2CPP effettivo resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Si confrontano potenziali chimici, pendenze di Clapeyron, derivate caloriche ed entropiche e Gibbs con accumulo elastico. Una massimizzazione indipendente dell’entropia vincolata non usa il solver di saturazione. Limiti di recipiente rigido, gas ideale e scala estensiva e raffinamento RK4 del bagno finito forniscono riferimenti indipendenti. Lo scambio conserva l’energia totale e converge al primo ordine con entropia totale non decrescente. Non dimostra validità misurata del carburante né accettazione Unity. + +La chiusura del recipiente cedevole per carburante puro risolve liquido, vapore e coesistenza con accumulo elastico. È un riferimento costitutivo locale; il trasporto di pompa e ugello nel grafo richiede ancora integrazione. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Riferimento del volume di carburante cedevole](COMPLIANT_FUEL_VOLUME.it.md) + + +## 2026-10-20: Equilibrio del serbatoio con volume liquido finito + +La verifica seriale richiesta supera localmente su Windows x64/.NET 10.0.12. Le verifiche Standard girano su .NET 10; Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` verifica inversione pompa, sfiato con combustibile e parete calda finita. `equilibrium-tank-fired-cylinder` connette tale sorgente a un motore acceso. Si verificano massimo indipendente d'entropia, potenziali, derivate caloriche, raffinamento ODE, bilanci, replay, rollback e allocazioni. Asset v31 conserva il flag e legge v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Casi accoppiati pompa/calore/sfiato mostrano il primo ordine. Entrambe le fasi sorgente restano nell'intervallo dichiarato e la densità totale sotto quella liquida con margine binary64. Densità/proprietà costanti, equilibrio istantaneo e interfaccia piana sono approssimazioni di ricerca. Miscele reali, tensione superficiale, sloshing, cinetica finita, calibrazione misurata e Unity Editor/Play/Player/IL2CPP reale restano non verificati. + +[TANK_PHASE_EQUILIBRIUM.it.md](TANK_PHASE_EQUILIBRIUM.it.md) + +## 2026-10-13: Equilibrio di fase del carburante e limiti di alimentazione + +La verifica seriale richiesta supera localmente su Windows x64/.NET 10.0.12. Le verifiche Standard girano su .NET 10; Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` mostra condensazione, evaporazione da sfiato e nuova condensazione. `equilibrium-injected-cylinder` aggiunge equilibrio reversibile del ricevitore e margini al motore con serbatoio ventilato. Si verificano massimo d'entropia indipendente, limiti analitici, raffinamento ODE simultaneo, replay completo, rollback e allocazioni. Asset v30 conserva le proprietà e legge v1-v29. + +Il confronto ammette solo arrotondamento binary64: `64 * epsilon * max(p, p_sat)`, con `epsilon = 2^-52`. Il margine riportato non viene limitato. È un controllo di saturazione globale; perdite locali e NPSH della pompa richiedono un modello di flusso risolto. Le verifiche indipendenti richiedono inoltre entropia totale non decrescente nel flash adiabatico e nello scambio con parete finita. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Parametri `unverified`. Non sono fornite proprietà misurate della benzina, cinetica multicomponente o a velocità finita, spostamento liquido/spray risolti o calibrazione OEM. L'accettazione reale Unity Editor/Play/Player/IL2CPP resta in attesa. + +[FUEL_PHASE_EQUILIBRIUM.it.md](FUEL_PHASE_EQUILIBRIUM.it.md) + +## 2026-10-08: Geometria del serbatoio e spazio gassoso finito + +La verifica seriale richiesta supera localmente su Windows x64/.NET 10.0.12. Le verifiche Standard girano su .NET 10; Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usano serbatoio 1513, gas 1520 e ingresso sfiato 960. Asset v29 conserva geometria e legge v1-v28. Passano lavoro/derivate analitici, convergenza ODE indipendente, bilanci, replay portable/MCP, rollback e passi senza allocazioni. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Serbatoio rigido miscelato, liquido incomprimibile e gas ideale. Sloshing/forma idrostatica, equilibrio di fase, cavitazione, mappe misurate pompa/valvola, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. Parametri `unverified`. + +[TANK_HEADSPACE.it.md](TANK_HEADSPACE.it.md) + +## 2026-10-08: Scoperta completa di laboratori e componenti + +La verifica seriale richiesta supera localmente su Windows x64/.NET 10.0.12. Le verifiche Standard girano su .NET 10; Unity Editor/Play/Player/IL2CPP reale resta non verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, esempi MCP, export Unity e verifica seriale condividono il catalogo. Ogni sorgente è coperta, ogni esempio dichiarato è validato tramite stdio reale e i componenti corrispondono allo schema completo. Tutte le impronte, gli hash sorgente e ogni hash di stato campionato coincidono con la base. Asset v28 e lettori precedenti restano invariati. + +L'audit documentale copre sezioni corrispondenti, una sola riga delle lingue e tabelle complete nelle dieci lingue. Catalogo e risposta CLI rispettano `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Geometria/spazio gassoso del serbatoio, motore più completo, coordinamento ECU/TCU, calibrazione misurata e accettazione Unity reale restano aperti. I parametri di ricerca restano `unverified`. + +## 2026-10-05: Ritorno di scarico carburante tracciato + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I controlli Standard sono eseguiti su .NET 10; Unity Editor/Play/Player/IL2CPP reale non è verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Decadimento/lavoro indipendenti, raffinamento meccanica/pressione/termica simultaneo, quote, percorsi, confini esterni, replay, rollback e allocazioni passano. Ebollizione o intervallo non risolto fa fallire l'intero lotto. Geometria/ventilazione, valvole/pompe misurate, cavitazione, spray, calibrazione OEM e Unity Editor/Play/Player/IL2CPP reale restano aperti. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.it.md](LIQUID_FUEL_RETURN.it.md) + +## 2026-10-05: Serbatoio finito di combustibile liquido + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I controlli Standard sono eseguiti su .NET 10; Unity Editor/Play/Player/IL2CPP reale non è verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Massa ed energia termica raggiungono esattamente zero; portata/reazione avanti spariscono mantenendo la dinamica reale dell'albero. Il ritorno ripristina inventario liquido alla temperatura miscelata del rail. Scambio umido analitico, energia albero/pressione esaurita, rollback completo e allocazioni passano. + +L'energia chimica di confine include combustibile incombusto nello scarico. Il serbatoio trasferisce internamente; i controlli integrati confrontano variazione dell'inventario chimico totale più calore rilasciato con energia chimica netta di confine. + +Capacità geometrica, ventilazione/spazio gas/oscillazione, cavitazione, riempimento/efficienza/regolazione misurati e spray risolto restano aperti. Parametri `unverified`; Unity Editor/Play/Player/IL2CPP reale e calibrazione OEM non sono verificati. + +La revisione precedente passa CI Windows, Linux e macOS. Tale esecuzione non verifica questo serbatoio finito. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.it.md](LIQUID_FUEL_TANK.it.md) + +## 2026-10-05: Rail di combustibile liquido alimentato da pompa + +La verifica seriale richiesta passa localmente su Windows x64/.NET 10.0.12. I controlli Standard sono eseguiti su .NET 10; Unity Editor/Play/Player/IL2CPP reale non è verificato. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Sei gruppi fisici/transazionali, due di asset, tre integrati e due scenari MCP reali coprono l'alimentazione. Energia termica/chimica entrante si accumula con l'energia del confine gas; la pressione è conteggiata una volta. Il KPI usa il limite analitico della pompa di 920541.8 Pa invece della pressione iniziale. + +La sorgente è un confine esterno esplicito, non un serbatoio finito modellato. Svuotamento, efficienza/regolazione pompa, perdite tubazioni, cavitazione, proprietà dipendenti dalla pressione e spray a volume finito restano aperti. Parametri `unverified`; non si stabilisce calibrazione OEM o accettazione reale Unity Editor/Play/Player/IL2CPP. + +Il precedente checkpoint AT passa anche CI Windows, Linux e macOS alla revisione registrata. Tale esecuzione non verifica queste modifiche di alimentazione. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.it.md](PUMP_FED_FUEL.it.md) + +## 2026-10-05: Retroazione AT idraulica e controllo pressione + +La verifica seriale richiesta passa su Windows x64/.NET 10.0.12. La build Release non ha avvisi o errori. L'accettazione reale Unity e nuove verifiche Linux/macOS restano non confermate. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 gruppi fisici/transazionali coprono tutte le marce avanti/indietro, pressione/contatto/blocco reali, proprietà valvole, clock e limiti PI. I guasti comprendono perdita alimentazione, scarico bloccato, timeout applicazione/rilascio, interblocco direzione e perdita di blocco confermato. 2 gruppi asset conservano percorsi tipizzati e rifiutano downgrade rifirmati. 3 gruppi integrati e 2 scenari MCP reali corrispondono in ogni scalare e hash di stato. + +L'avvio in retromarcia e il recupero restano Applying a 500 ms e sono confermati prima di 800 ms nel timeout dichiarato. I test seguono il blocco reale, non un ritardo fisso. Lo scarico sicuro non rimuove un blocco fisico. Il grafo motore/planetari/attuatori/controllo mantiene 122 stati entro il limite invariato di 128. + +I parametri restano `unverified`. Coordinamento coppia ECU, sensori/valvole dettagliati, guasti completi veicolo, calibrazione OEM e accettazione reale Editor/Play/Player/IL2CPP restano aperti. + +[AT_CONTROL.it.md](AT_CONTROL.it.md) + + ## 2026-10-02: alimentazione idraulica AT condivisa e azionamento dinamico a stantuffo Il comando seriale richiesto `dotnet run --file tools/Build.cs -- verify` passa in locale @@ -2182,5 +3576,3 @@ Impostare prima `POWER_UNITY_EDITOR`. I log di Unity e i risultati XML vanno in L'ingresso di pubblicazione è `Power.Studio.Editor.ProjectSetup.BuildPlayer`, usando il target desktop selezionato e IL2CPP. Ha bisogno del modulo di build della piattaforma Unity corrispondente. Non esiste ancora un pacchetto Player compilato o testato. Ogni parametro attuale è un parametro di esperimento sintetico. Un motore e una trasmissione completi, la calibrazione del veicolo, emissioni, acustica, un budget di tempo reale e le esecuzioni lunghe hanno ancora bisogno della propria implementazione e della propria evidenza. Questi controlli non stabiliscono quel lavoro. - - diff --git a/docs/VALIDATION.ja.md b/docs/VALIDATION.ja.md index c51ad4b..9db79a5 100644 --- a/docs/VALIDATION.ja.md +++ b/docs/VALIDATION.ja.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · **日本語** · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: 相変化緩和燃料ポンプと凍結相計量 + +`compressible_fuel_chamber` は `relaxing_fuel` 貯槽の体積を制御できます。可逆な軸仕事では蒸気質量分率を固定し、化学緩和はエネルギー保存の独立源項として扱います。`compressible_fuel_nozzle` は `phase_mode` が `frozen` のとき二つの緩和貯槽を結び、全質量、蒸気質量、よどみエンタルピーを輸送します。実際のソレノイド、ばね、ストッパーを備えた物理針弁で開度を計量できます。 + +`relaxing-fuel-chamber` または `relaxing-pump-needle` を実行します。体積と仕事、実際と平衡の分率、相変化エントロピー、`total_vapor_delivered`、ポート在庫、全体蒸気残差を観測します。純相断熱線、独立した分率固定の圧力積分、微小仕事、可逆サイクル、独立理想蒸気軸 ODE と比較します。有限速度結合の細分化、共有貯槽の源項時間、全収支、取消、ロールバック、分岐、割当、可搬再生、実 MCP は個別に検証し、数値は検証証拠に記録します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +質量分率固定のエントロピー関係から体積変化後の圧力と温度を求めます。仕事は液体の冷圧縮エネルギーを含み、小変位では安定した増分関数を使います。同じ離散仕事が軸トルクを与えます。各全体区間で保存型管路・凍結ノズル輸送の前後に各ノードの相変化源項を一度ずつ適用します。区間は管路 CFL と小さいポート在庫の 0.02 比率で制限し、最大 4096 区間です。機械仕事と源項は分離し、結合輸送は一次精度で時間細分化を要します。 + +パラメータは `unverified` です。両ポートの領域と材料は同一とし、緩和ポートでは平衡通過を拒否します。貯槽の有限緩和は、ゼロ容積ノズル内部の化学変化や滞留時間を解像しません。相間滑り、液体負圧張力、核生成障壁則、噴霧、搬送ガス、燃焼受入室は含みません。移動貯槽は一様混合で平均速度ゼロ、管路内セルは剛体で所有者は一つです。臨界挙動から離れた希薄理想蒸気、宣言された正圧・温度範囲、正の潜熱エンタルピー、分離した共存比体積が必要です。初期蒸気分率は明示的な研究入力です。数値の一致は実測校正や実 Unity 検収を証明しません。 + +## 2026-11-17: 有限速度の燃料相変化緩和 + +`relaxing_fuel` ノードは独立した蒸気質量分率を持ちます。液体と蒸気は圧力、温度、速度を共有しますが、化学平衡には明示した有限時間を要します。`relaxing_fuel_duct` は明示セルで質量、運動量、全エネルギー、蒸気質量を輸送します。滞留時間はセル形状と実際の流速から決まります。 + +`relaxing-fuel-evaporation` または `relaxing-fuel-duct` を実行します。実際と平衡の分率、化学親和力、相変化エントロピー、ポートの蒸気収支、全体の蒸気残差を観測できます。蒸発・凝縮履歴は受理した各刻みの正味源項を符号で分けた値で、微視的な順逆の総流量ではありません。独立指数解、エントロピー微分、凍結音響、剛な平衡極限、時間自己細分化、独立線形音響による格子細分化を確認します。トランザクション、可搬再生、実 MCP は別々に検証し、数値は検証証拠に記録します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +保存型 Rusanov 流束で四つの場を輸送します。各グローバル CFL 区間で局所相変化の半ステップ、輸送、半ステップを実行します。共有貯槽の源項は管路数にかかわらず一度だけ適用します。孤立定容状態の源項軌跡は厳密ですが、結合輸送は一次誤差を持ちます。CFL は質量分率凍結時の音速上限を使用し、相変化と管路のエントロピーを個別に検査します。範囲外の状態はバッチ全体をロールバックします。 + +パラメータは `unverified` です。`initial_vapor_mass_fraction` は [0,1]、緩和時間は 1 ns から一時間までの整数で指定します。材料の温度範囲と正圧範囲を守ります。剛体水平等断面管、単一純擬似流体、液体の熱膨張ゼロ、理想蒸気を仮定します。相間滑り、界面伝熱遅れ、表面張力、噴霧、搬送ガスは含みません。緩和領域とポンプ、ノズル、移動室、燃焼受入室の直接結合は未実装です。保存、再生、細分化は実機妥当性や実 Unity 検収を証明しません。 実流体の臨界領域から離れた希薄蒸気に限り、材料は正の潜熱エンタルピーと分離した共存比体積を維持する必要があります。 + +## 2026-11-17: 燃料ノズルの平衡相変化輸送 + +`compressible_fuel_nozzle` の `phase_mode` を `equilibrium` にすると、通過中に瞬時の均質相平衡を仮定します。液体と蒸気は圧力、温度、速度を共有し、等エントロピー線に沿って蒸気分率が変化します。有限貯槽とノズルは同じ圧縮性液体ポテンシャルと理想蒸気基準を使います。`frozen` も独立した仮定として引き続き使えます。 + +`equilibrium-flashing-nozzle` または `equilibrium-pump-needle` を実行します。`flux_relative_uncertainty` は最後に採用した局所構成則の流束包絡で、平均流量、送出質量、一次時間積分、校正誤差の界ではありません。独立した飽和/エントロピー反転、気体・液体の解析的チョーク、別実装の密な大域探索、エネルギー/エントロピー恒等式、解析蒸気排出の細分化を比較します。在庫、軸/管/ニードル、ロールバック、取消、分岐、割り当て、可搬 asset、実 MCP は別々に検証します。数値と旧境界は検証証拠に残します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +平衡音速の二乗が正なので、等エントロピー密度は圧力とともに増え、エンタルピー降下は減ります。この単調性から相境界や複数極値を含む各区間の流束上限を求めます。分枝限定法は標本下限と残存上限の相対幅を 1e-4 以下にします。最大 512 個のスタック区間と 8192 分割です。熱量差の丸め余裕と単調圧力積分の界を用い、最大 256 Riemann 区間、80 回の閉合反復を行います。解決できなければバッチを拒否します。滑らかな内部最大値は音速条件を満たし、相境界最大値は非平滑になり得ます。 + +パラメータは `unverified` です。純疑似流体、理想蒸気、液体熱膨張ゼロ、共通速度を仮定します。有限の核生成・緩和時間、相間滑り、噴霧、キャリアガス、燃焼受入室は含みません。包絡は宣言した binary64 余裕を用い、方向付き丸めによる形式的区間証明ではありません。臨界遷移付近の喉部分類は流束包絡と併せて読みます。実測妥当性と実 Unity 受入検証は未完了です。 + +## 2026-11-17: 相分率を凍結した圧縮性燃料ノズル + +`compressible_fuel_nozzle` は軸駆動室を含む有限の `compressible_fuel` 貯槽間に一方向の流れを与えます。液体圧縮エネルギーと理想蒸気は貯槽と同じ物性を使います。`phase_mode` を `frozen` と明示し、通過中の蒸気質量分率を一定に保ち、貯槽は再平衡させます。 + +`compressible-fuel-nozzle` は有限蒸気排出、`compressible-pump-needle` は管供給、軸、一方向入口、電磁ニードルを確認します。累積質量、エンタルピー、噴流運動エネルギー、壁熱、力積、エントロピーを読みます。平均流量と力は完全な刻みを覆い、喉部・出口・分率は最後に採用した通過状態です。厳密液体仕事、気体/液体の解析的チョーク、独立圧力求積、凍結エントロピーと音速微分、密な流束走査、解析的チョーク排出の細分化を比較します。保存、実運動、再生、分岐、取消、ロールバック、割り当て、asset と MCP は別々に検証します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +保存的な一次サブステップが同じ質量とエンタルピーを移し、噴流運動エネルギーを流体と壁に配分します。物性状態と対全体のエントロピーを確認します。区間当たり最大 4096 ステップ、候補当たり 64 回の半減、初期移動量は小さい貯槽質量の 0.1 倍以下です。閉鎖判定には最大体積弾性率またはポート圧力の 128 binary64 epsilon 倍の丸め幅を許容し、出力圧力は切り詰めません。失敗はバッチ全体をロールバックします。刻み、在庫、物性範囲、行程、面積を確認してください。 + +パラメータは `unverified` です。理想蒸気と熱膨張ゼロの圧縮性液体からなる純疑似流体です。理想噴流温度を含む指定温圧範囲を守ってください。凍結通過は過熱液体を保持できますが、実測の核生成や準安定限界は予測しません。有限速度緩和、相間滑り、解像した噴霧、不凝縮キャリアガス、燃焼受入室、実測マップ、実 Unity 受入検証は残っています。保存と再生は機器の妥当性を証明しません。 + +## 2026-10-26: 軸駆動の圧縮性燃料室 + +`compressible_fuel_chamber` は回転軸と有限の `compressible_fuel` 貯槽を結びます。軸の運動で容積が変わり、同じ圧力仕事が流体エネルギーと軸トルクを変えます。貯槽は `equilibrium_fuel_duct` と燃料を交換し、平衡フラッシュ蒸発や凝縮を扱えます。 + +`compressible-fuel-chamber-duct` または `electric-compressible-fuel-duct` を実行します。セル状態に加え、貯槽の質量、容積、圧力、温度、エントロピー、蒸気分率、室のトルク、動力、仕事を読みます。独立した液体仕事と理想蒸気極限、別途反転した平衡等エントロピー線と圧力求積、液体軸 ODE、理想蒸気半離散方程式の RK4 細分化を検証します。保存、電気/歯車/油圧/クラッチ合成、可搬再生、実 MCP、割り当てのない取引は別々に確認します。数値結果は検証証拠に記録します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +可動貯槽は半輸送、軸仕事全体、半輸送の順に更新します。輸送は数値拡散を伴う一次精度のままで、対称分割でも次数は上がりません。滑らかな閉液体の軸運動は二次収束します。機械区間の角度増分は 0.25 rad 以下です。CFL、物性境界、完全ロールバック、取消、独立分岐が適用されます。静止ポート/筐体への力積とピストン圧力仕事を分けて扱います。 + +パラメータは `unverified` です。圧縮性で熱膨張ゼロの液体と理想蒸気からなる平衡純疑似流体、混合室、剛体セルを仮定します。温度・圧力範囲を守ってください。室のバルク運動エネルギーは解かず、逆止弁も自動では付きません。有限速度の核生成、相間滑り、実流体臨界挙動、実測校正、実 Unity 受入検証は残っています。 + +## 2026-10-23: 圧縮性平衡燃料ダクト + +`equilibrium_fuel_duct` は明示的な `compressible_fuel` セル間で質量、運動量、全エネルギーを輸送します。液体は圧縮性、蒸気は理想気体で、両相の圧力、温度、速度は共通です。局所平衡により凝縮とフラッシュ蒸発が生じます。有限の静止貯槽 2 個と有限熱壁が収支を閉じます。 + +`equilibrium-fuel-condensing-duct` または `equilibrium-fuel-flashing-duct` を実行します。各セルの密度、速度、相分率、音速、温度、エネルギーを取得できます。ポートの質量・エネルギー、壁への力積、全在庫も観測可能です。独立検証は液体圧縮仕事、理想蒸気極限、化学ポテンシャル一致、Clapeyron と Gibbs の関係、エントロピー反転による音速、質量エネルギー反転、保存、有限壁の摩擦を扱います。セル平均の音響誤差は 8、16、24 セルで減少します。完全再生、ロールバック、取消、分岐、割り当てなしのステップ、可搬 asset、実 MCP は別々に検証し、詳細は検証証拠に記録します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +保存形 Rusanov フラックスは同じサブステップ状態から全界面を更新します。速度上限は最大絶対速度と物性の音速上限の和です。CFL 制限は最小ポート体積の 0.2 倍を断面積と速度で割った値で、区間当たり最大 4096 サブステップです。輸送と局所的な厳密抵抗減衰は一次分割です。数値拡散は全エントロピー変化に含まれ、報告する摩擦熱とは区別します。静止境界が機械仕事ゼロで貯槽の運動量を受け、流入運動エネルギーは有限貯槽内で内部エネルギーになります。不正状態または丸め誤差を超えるエントロピー減少はバッチ全体を拒否します。刻みを小さくし、物性範囲とセル解像度を確認してください。 + +パラメータは `unverified` のままです。指定温度・圧力範囲、正の潜エンタルピー、分離した共存比体積、希薄蒸気の条件を守ってください。剛体・等断面・水平管で瞬時均質平衡を仮定します。有限速度の核生成、相間滑り、表面張力、重力、管弾性、実流体の臨界挙動は含みません。一次数値拡散は相変化と音響の前線をぼかします。保存と再生だけでは空間精度や実測機器への妥当性を証明できません。実 Unity の受入検証は未完了です。 + +## 2026-10-23: 有限液体燃料管路の運動量 + +`fuel_inertial_pipe` は二つの有限燃料ノードと有限熱壁を接続します。水平剛体管は両容器に加えて独自の液体質量、熱内部エネルギー、運動エネルギーを持ちます。密度一定で温度は完全混合により変化します。ポートと管路全体が液相である必要があり、既存の準静的リンクは別の二相挙動を保ちます。 + +独立した有限コンプライアンス調和解と非線形運動量・温度 RK4 で精度と一次収束を検査します。熱配分、対エントロピー、逆流、全収支、クラッチ試行区間、無割り当て、巻戻し、取消、独立分岐を確認します。可搬資産と実 MCP が全標本境界を確認します。実測校正や実 Unity 合格ではありません。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +運動量は中点流量と採用終端圧力を使います。ポートエネルギーと混合は後退オイラーなので連成全体は一次収束です。無摩擦でも終端圧力離散化が振動の一部を数値熱に変えますが、物理摩擦には計上しません。対エントロピーは混合と時間離散化を含みます。ゼロ流量イベントで正逆輸送履歴を分離します。 + +パラメーターは `unverified` です。材料の温度・圧力範囲と圧力補正した液相安定性を守ります。失敗区間は全て戻り、刻みを減らして供給枯渇・圧力・相を確認します。変密度二相運動量、キャビテーション、音波、重力、移動管形、解像熱前線は含みません。規定燃焼は詳細な化学平衡や反応エントロピー精度を示しません。 + +## 2026-10-20: 液体入口の運動量参照 + +`LiquidColumn` は水平剛体管の独立 C# 参照です。断面積、均一速度、液体密度、温度を一定とし、各局所区間の絶対ポート圧力を指定します。線形・二次抵抗は明示した研究入力です。グラフコンポーネントではなく、燃料ネットワークやノズル方程式を変更しません。 + +独立した無損失加速、線形抵抗の指数解、二次抵抗の双曲正接解で極限を確認します。変動圧力の独立 RK4 は逆流を含む滑らかな二次収束を検証します。受動減衰、定常流、完全エネルギー収支、非負エントロピー、拒否、不変共有、割り当てを両アセンブリで検査します。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +パラメーターは `unverified` です。最低圧力は呼出側が宣言する液相有効境界で、蒸気圧や NPSH を予測しません。圧縮性、音波、重力、移動形状、熱蓄積、キャビテーション、相間滑り、相緩和は対象外です。二相燃料リンクは準静的のままです。実 Unity 受け入れと実測校正は別です。 + +## 2026-10-20: 蒸気質量分率を凍結した燃料流出と有限受容室 + +燃料域ポンプは物理ニードルと凍結蒸気質量分率の流出を介して、有限液体体積の燃焼受容室へ供給します。全在庫に相変化、排除仕事、噴流運動エネルギー、静止壁力積を含みます。 + +独立したベルヌーイ・理想気体極限、別の混相流束最大化、エネルギー/エントロピー、独立積分したノズル/受容室 ODE で検証します。時間収束は一次です。可搬再生、実 MCP、ロールバック、キャンセル、独立分岐、割り当て検査が統合を確認します。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +パラメーターは `unverified` です。宣言温度、正の気体体積、希薄蒸気領域を守ります。入口局所慣性、有限速度核生成、相間滑り、解像噴霧、実流体臨界挙動、実測校正を含みません。規定燃焼は化学平衡や反応エントロピーの精度を示しません。入口動特性、点火、吸排気、損失、ECU/TCU 協調へ進みます。 + +## 2026-10-20: 軸駆動の相変化燃料ポンプ + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しました。新しい燃料ポンプ検証は両アセンブリ対象で実行します。Standard 検証は .NET 10 上でホストされ、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +独立した液体圧力・仕事、理想蒸気断熱線、二相エントロピー反転で閉包を検証します。閉液体の軸運動は二次、相変化を伴う充填・排出は独立反転 RK4 参照に対して一次収束します。入口不足、十分な液体、電動、歯車・油圧・クラッチ組合せ、厳密再生、ロールバック、割当検証で統合を確認します。資産 v33 は幾何を保存し v1-v32 を読みます。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +パラメーターは `unverified` です。温度、圧力、分解可能な体積限界は全サイクルで適用します。非圧縮液体、理想擬似成分蒸気、瞬時共通温度平衡、外部ケース圧力ゼロを仮定します。局所入口慣性/NPSH、チョーク流、核生成遅延、弁慣性・ヒステリシス、実混合燃料、実測校正は残ります。物理噴射器接続と受容側の排除体積・運動仕事も別要件です。 + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[軸駆動の相変化燃料ポンプ](FUEL_CHAMBER_PUMP.ja.md) + + +## 2026-10-20: 相平衡燃料輸送ネットワーク + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しました。新しい燃料ネットワーク検証は両アセンブリ対象で実行します。Standard 検証は .NET 10 上でホストされ、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +実験は共存への液体排出、逆流、開度変更、有限壁と機電系の熱結合を扱います。独立した液体圧力指数解、同時二相質量・エンタルピー・熱 ODE、熱駆動逆流、クラッチ試行捕捉で精度と組合せを検証します。資産と実 MCP は全サンプル値とハッシュを保持します。資産 v32 は物性を保持し v1-v31 を読みます。実 Unity Editor/Play/Player/IL2CPP は未検証です。 + +構成則の物性・分解可能な壁変形限界が引き続き適用されます。パラメーターは `unverified` です。ポンプ充填と軸仕事、噴射器接続、局所慣性、チョーク流、核生成遅延、相間滑り、実混合物測定は別途必要です。既存のポンプ供給噴射レールは接続実装まで分離液体経路を使います。 + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[相平衡燃料輸送ネットワーク](EQUILIBRIUM_FUEL_NETWORK.ja.md) + + +## 2026-10-20: 弾性燃料容積の参照モデル + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しました。新しい構成則検証は両アセンブリ対象で実行します。Standard 検証は .NET 10 上でホストされ、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +化学ポテンシャル、Clapeyron 勾配、熱量・エントロピー導関数、弾性蓄積を含む Gibbs 関係を比較します。独立した拘束付きエントロピー最大化は飽和ソルバーを使いません。剛体容器、理想気体、示量性スケーリングの極限と有限熱浴 RK4 細分化が独立参照です。熱交換は総エネルギーを保存し、総エントロピー非減少で一次収束します。実測燃料妥当性や Unity 検証を意味しません。 + +純燃料の弾性容器閉包は液体、蒸気、弾性蓄積を伴う共存を解決します。局所構成則参照であり、グラフのポンプとノズル輸送には接続が必要です。 + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[弾性燃料容積の参照モデル](COMPLIANT_FUEL_VOLUME.ja.md) + + +## 2026-10-20: 有限体積燃料タンクの相平衡 + +必須の直列検証はローカルの Windows x64/.NET 10.0.12 で合格しました。Standard アセンブリ検証は .NET 10 上で実行しており、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` は逆転、燃料を含む通気と有限加熱壁を検査します。`equilibrium-tank-fired-cylinder` は同じ供給を燃焼エンジンに接続します。独立エントロピー最大化、化学ポテンシャルと熱容量微分、連立 ODE 収束、全収支、再生、ロールバックと割当を検証します。アセット v31 はフラグを保存し v1-v30 を読みます。 + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +ポンプ・伝熱・通気連成例は一次収束を示します。供給の両相は物性温度区間内、総密度は binary64 丸め余裕を含め液体未満に保ちます。一定密度/共通気体物性、瞬時平衡、平面界面は研究近似です。実混合物、表面張力、スロッシング、有限速度、実測較正と実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +[TANK_PHASE_EQUILIBRIUM.ja.md](TANK_PHASE_EQUILIBRIUM.ja.md) + +## 2026-10-13: 燃料の相平衡と液体供給の境界 + +必須の直列検証はローカルの Windows x64/.NET 10.0.12 で合格しました。Standard アセンブリ検証は .NET 10 上で実行しており、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` は凝縮、通気による蒸発、再凝縮を示します。`equilibrium-injected-cylinder` は通気タンクエンジンに可逆相平衡と供給余裕を加えます。独立したエントロピー最大化、解析的極限、連立 ODE 収束、完全再生、ロールバックと割当を検証します。アセット v30 は物性を保持し v1-v29 を読みます。 + +圧力比較は binary64 の丸め幅 `64 * epsilon * max(p, p_sat)` のみを許容し、`epsilon = 2^-52` です。表示余裕はクランプしません。これはバルクの飽和検査で、局所圧力損失とポンプ NPSH には流れを解くモデルが必要です。独立検査では断熱フラッシュと有限壁熱交換の総エントロピーが減少しないことも求めます。 + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +パラメーターは `unverified` です。実測ガソリン物性、多成分または有限速度の相変化、分解液体押しのけ/噴霧、OEM 較正は提供しません。実際の Unity Editor/Play/Player/IL2CPP 受け入れは未完了です。 + +[FUEL_PHASE_EQUILIBRIUM.ja.md](FUEL_PHASE_EQUILIBRIUM.ja.md) + +## 2026-10-08: タンク形状と有限ヘッドスペース + +必須の直列検証はローカルの Windows x64/.NET 10.0.12 で合格しました。Standard アセンブリ検証は .NET 10 上で実行しており、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder` と `vented-tank-needle-cylinder` はタンク 1513、気体 1520、通気入力 960 を使います。アセット v29 は形状を保存し v1-v28 を読みます。解析仕事/導関数、独立 ODE 収束、収支、portable/MCP 再生、ロールバックとゼロ割当ステップに合格しました。 + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +剛体混合タンク、非圧縮液体と理想気体です。スロッシング/静水圧形状、相平衡、キャビテーション、実測ポンプ/弁マップ、OEM 較正と実際の Unity Editor/Play/Player/IL2CPP は未完成です。パラメーターは `unverified` です。 + +[TANK_HEADSPACE.ja.md](TANK_HEADSPACE.ja.md) + +## 2026-10-08: 完全なラボとコンポーネント検出 + +必須の直列検証はローカルの Windows x64/.NET 10.0.12 で合格しました。Standard アセンブリ検証は .NET 10 上で実行しており、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`、MCP サンプル、Unity 出力と直列検証は共通カタログを使用します。全ソースを網羅し、公開サンプルは実際の stdio で検証され、公開コンポーネントは完全なモデルスキーマと一致します。全ラボの指紋、ソースハッシュと各サンプル状態ハッシュは基準と一致します。アセット v28 と以前のリーダーは変更していません。 + +文書監査は全十言語の対応する節、単一の言語切替行と完全なラボ表を確認します。カタログと CLI 応答は `power.laboratory_catalog.v1.schema.json` に準拠します。 + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +タンク形状/ヘッドスペース、より完全なエンジン挙動、ECU/TCU 協調、実測較正と実際の Unity 受け入れは未完了です。研究パラメーターは引き続き `unverified` です。 + +## 2026-10-05: 追跡可能な燃料リリーフ戻り流れ + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しています。Standard アセンブリ検査は .NET 10 で実行し、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +独立リリーフ減衰/仕事、機械/圧力/熱同時細化、熱割合、複数経路、外部境界、replay、rollback、割り当て検査は合格します。沸騰や未解像移送区間は全バッチを失敗させます。タンク形状/通気、実測弁/ポンプ、キャビテーション、噴霧、OEM 校正、実 Unity Editor/Play/Player/IL2CPP は未完了です。 + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.ja.md](LIQUID_FUEL_RETURN.ja.md) + +## 2026-10-05: 有限液体燃料タンク + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しています。Standard アセンブリ検査は .NET 10 で実行し、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +タンク質量と熱エネルギーは正確にゼロになり、前進ポンプ流量/反力が消えても軸は実際の動特性を保持します。逆流はレール混合温度で湿潤在庫を回復します。独立湿潤解析交換、枯渇軸/圧力エネルギー、完全 rollback と割り当て検査は合格です。 + +化学境界エネルギーには排気に出る未燃燃料が含まれます。タンク移送は内部であり、統合検査は化学全在庫変化と放出熱の和を正味化学境界エネルギーと比較します。 + +形状容量、通気/気相空間/揺動、キャビテーション、実測充液/効率/調圧、解像噴霧は未完了です。パラメーターは `unverified` で、実際の Unity Editor/Play/Player/IL2CPP と OEM 校正は未検証です。 + +前のポンプ供給リビジョンは Windows、Linux、macOS CI に合格しています。その実行は今回の有限タンク変更を検証しません。 + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.ja.md](LIQUID_FUEL_TANK.ja.md) + +## 2026-10-05: ポンプ供給の液体燃料レール + +必須の直列検証はローカル Windows x64/.NET 10.0.12 で合格しています。Standard アセンブリ検査は .NET 10 で実行し、実際の Unity Editor/Play/Player/IL2CPP は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +物理/トランザクション六組、アセット二組、統合三組、実際の MCP シナリオ二組で補給経路を検査します。流入燃料の熱/化学エネルギーはガス境界エネルギーと累積し、圧力貯蔵は一度だけ計上します。圧力 KPI は初期圧力の代わりにポンプのみの解析上限 920541.8 Pa を使います。 + +源は明示的な外部境界であり、有限燃料タンクのモデルではありません。タンク枯渇、ポンプ効率/調圧、配管損失、キャビテーション、圧力依存物性、有限体積噴霧は未完成です。パラメーターは `unverified` であり、OEM 校正や実際の Unity Editor/Play/Player/IL2CPP 受入を証明しません。 + +先の AT チェックポイントも記録したリビジョンで Windows、Linux、macOS CI に合格しています。この実行は今回の燃料補給変更を検証しません。 + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.ja.md](PUMP_FED_FUEL.ja.md) + +## 2026-10-05: 油圧 AT フィードバックと圧力制御 + +必須の直列検証は Windows x64/.NET 10.0.12 で通過しました。Release ビルドに警告やエラーはありません。実際の Unity と新しい Linux/macOS の受入は未検証です。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 組の物理/トランザクション検査は全前進段と後退、実際の圧力/接触/ロック、弁所有権、時計、PI 境界を確認します。故障検査は供給喪失、排油詰まり、係合/解放タイムアウト、移動方向インターロック、確認済みロック喪失を含みます。2 組のアセット検査は型付き経路を保持し再署名した降格を拒否します。3 組の統合検査と 2 つの実 MCP シナリオは全スカラーと状態ハッシュで一致します。 + +後退起動と故障復旧は 500 ms で Applying のままで、設定タイムアウト内の 800 ms 前に確認されます。検査は固定遅延ではなく実際のロックに従います。安全排油は物理的詰まりを除去できません。エンジン/惑星歯車/アクチュエーター/制御グラフは、変更していない 128 上限内で 122 状態を保持します。 + +パラメーターは `unverified` のままです。ECU トルク協調、詳細なセンサー/弁、包括的な車両故障、OEM 校正、実際の Editor/Play/Player/IL2CPP 受入は未完成です。 + +[AT_CONTROL.ja.md](AT_CONTROL.ja.md) + + ## 2026-10-02: 共有 AT 油圧供給と動的ピストン駆動 必須の逐次 `dotnet run --file tools/Build.cs -- verify` は、Windows x64/.NET 10.0.12 上でローカルに合格します。マネージド検査 **354/354**、.NET 10 上でホストされた Standard アセンブリ検査 **273/273**、実際の MCP 群 **37/37**、Zig テスト **16/16**、ネイティブモデルの C# 検査 6 件です。Release ビルドは警告/エラー 0 を報告します。**34** のラボラトリーすべてが合格し、元のベースライン値 **176** 件すべてが正確に一致します。C/C++/Lua 監査は空のままです。実際の Unity と、新しい Linux/macOS の受け入れは未検証のままです。 diff --git a/docs/VALIDATION.ko.md b/docs/VALIDATION.ko.md index ae839bc..f79805f 100644 --- a/docs/VALIDATION.ko.md +++ b/docs/VALIDATION.ko.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · **한국어** · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: 상변화 완화 연료 펌프와 동결 상 계량 + +`compressible_fuel_chamber`는 `relaxing_fuel` 저장조의 부피를 제어할 수 있습니다. 가역 축 일은 증기 질량 분율을 고정하며 화학 완화는 별도의 에너지 보존 소스항입니다. `compressible_fuel_nozzle`은 `phase_mode`가 `frozen`일 때 두 완화 저장조를 연결하여 총질량, 증기 질량과 정체 엔탈피를 수송합니다. 실제 솔레노이드, 스프링과 스토퍼가 물리 니들을 통해 개도를 계량할 수 있습니다. + +`relaxing-fuel-chamber` 또는 `relaxing-pump-needle`를 실행합니다. 챔버 부피와 일, 실제 및 평형 분율, 상변화 엔트로피, `total_vapor_delivered`, 포트 재고와 전역 증기 잔차를 관찰합니다. 순수 상 단열선, 독립 분율 고정 압력 적분, 미소 일, 가역 사이클과 독립 이상 증기 축 ODE를 비교합니다. 유한 속도 결합 세분화, 공유 저장조 소스 시간, 전체 수지, 취소, 롤백, 분기, 할당, 이식 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +분율 고정 엔트로피 관계로 부피 변화 후 압력과 온도를 구합니다. 일은 액체 냉압축 에너지를 포함하며 작은 변위에는 안정적인 증분 함수를 씁니다. 동일한 이산 일이 축 토크를 결정합니다. 각 전역 구간에서 보존 덕트 및 동결 노즐 수송 전후에 각 노드의 상변화 소스항을 한 번씩 적용합니다. 구간은 덕트 CFL과 더 작은 포트 재고의 0.02 비율로 제한하며 최대 4096개입니다. 기계 일과 소스는 분리합니다. 결합 수송은 일차이며 시간 세분화가 필요합니다. + +매개변수는 `unverified`입니다. 양쪽 포트는 동일한 도메인과 재료를 사용하며 완화 포트는 평형 통과를 거부합니다. 저장조의 유한 완화는 부피가 없는 노즐 내부의 화학 변화나 체류 시간을 해상하지 않습니다. 상간 미끄럼, 액체 음압 장력, 핵생성 장벽 법칙, 분무, 운반 가스와 연소 수신부는 없습니다. 이동 저장조는 균일 혼합 및 평균 속도 영이며 덕트 내부 셀은 강체이고 소유자는 하나입니다. 임계 거동에서 벗어난 희박 이상 증기, 선언된 양압·온도 범위, 양의 잠열 엔탈피와 분리된 공존 비체적이 필요합니다. 초기 증기 분율은 명시적인 연구 입력입니다. 수치 일치는 실측 보정이나 실제 Unity 인수를 입증하지 않습니다. + +## 2026-11-17: 유한 속도 연료 상변화 완화 + +`relaxing_fuel` 노드는 독립적인 증기 질량 분율을 가집니다. 액체와 증기는 압력, 온도, 속도를 공유하지만 화학 평형에는 명시된 유한 시간이 필요합니다. `relaxing_fuel_duct`는 명시적인 셀을 통해 질량, 운동량, 총에너지와 증기 질량을 수송합니다. 체류 시간은 셀 형상과 실제 속도에 따라 정해집니다. + +`relaxing-fuel-evaporation` 또는 `relaxing-fuel-duct`를 실행합니다. 실제 및 평형 분율, 화학 친화도, 상변화 엔트로피, 포트 증기 수지와 전역 증기 잔차를 관찰합니다. 증발·응축 이력은 수락된 각 틱의 순 소스 이동을 부호별로 나누며 미시적인 정·역방향 총 이동은 아닙니다. 독립 지수 해, 엔트로피 미분, 동결 음향, 강성 평형 극한, 시간 자체 세분화와 독립 선형 음향 격자 세분화를 확인합니다. 트랜잭션, 이식 가능한 재생과 실제 MCP는 별도로 검증하며 수치는 검증 증거에 기록합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +보존형 Rusanov 플럭스가 네 장을 수송합니다. 각 전역 CFL 구간에서 국소 상변화 반 단계, 수송, 반 단계를 적용합니다. 공유 저장조는 덕트 수와 무관하게 소스항을 한 번씩 받습니다. 고립된 정적 부피 상태의 소스 궤적은 정확하지만 결합 수송은 일차 오차를 가집니다. CFL은 동결 분율 음속 상한을 사용합니다. 상변화와 덕트 엔트로피를 별도로 검사하며 범위 이탈은 전체 배치를 롤백합니다. + +매개변수는 `unverified`입니다. `initial_vapor_mass_fraction`은 [0,1], 완화 시간은 1 ns부터 한 시간까지 정수로 선언합니다. 재료의 온도 및 양압 범위를 지켜야 합니다. 강체 수평 일정 단면 덕트, 단일 순수 유사 유체, 액체 열팽창 없음과 이상 증기를 가정합니다. 상간 미끄럼, 계면 열전달 지연, 표면 장력, 분무와 운반 가스는 제외합니다. 완화 도메인의 펌프, 노즐, 이동 챔버와 연소 수신부 직접 결합은 남아 있습니다. 보존, 재생과 세분화는 실측 장비 타당성이나 실제 Unity 인수를 입증하지 않습니다. 실제 유체 임계 영역에서 벗어난 희박 증기에 한하며, 재료는 양의 잠열 엔탈피와 구별되는 공존 비체적을 유지해야 합니다. + +## 2026-11-17: 연료 노즐의 평형 상변화 수송 + +`compressible_fuel_nozzle`의 `phase_mode`를 `equilibrium`으로 설정하면 통과 중 순간 균질 상평형을 가정합니다. 액체와 증기는 압력, 온도, 속도를 공유하며 증기분율은 등엔트로피선을 따라 변합니다. 노즐과 유한 저장조는 같은 압축성 액체 퍼텐셜과 이상증기 기준을 사용합니다. `frozen`도 별도의 지원 가정으로 유지됩니다. + +`equilibrium-flashing-nozzle` 또는 `equilibrium-pump-needle`를 실행합니다. `flux_relative_uncertainty`는 마지막 채택 국소 구성식 유속 포락이며 평균 유량, 전달 질량, 1차 시간 적분, 보정 오차를 제한하지 않습니다. 독립 포화/엔트로피 역산, 기체·액체 해석 초킹, 별도 조밀 전역 탐색, 에너지·엔트로피 항등식, 해석 증기 배출 세분화를 비교합니다. 재고, 축/관/니들, 롤백, 취소, 분기, 할당, 이식 asset, 실제 MCP는 별도로 검증합니다. 수치와 이전 경계는 검증 증거에 보존합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +평형 음속 제곱이 양수이므로 등엔트로피 밀도는 압력과 함께 증가하고 엔탈피 강하는 감소합니다. 이 단조 인자로 상경계와 여러 극값을 포함한 구간 유속 상한을 구합니다. 분기 한정은 표본 하한과 잔여 상한의 상대 폭을 1e-4 이하로 만듭니다. 스택 구간 최대 512개, 분할 8192회입니다. 열량 차이의 반올림 여유와 단조 압력 적분 경계를 사용하며 최대 256 Riemann 구간과 80회 폐쇄 반복을 수행합니다. 해결할 수 없으면 배치를 거부합니다. 매끄러운 내부 최대값은 음속 조건을 만족하지만 상경계 최대값은 비매끄러울 수 있습니다. + +매개변수는 `unverified`입니다. 순수 의사유체, 이상증기, 액체 열팽창 0, 공통 속도를 가정합니다. 유한 핵생성·완화 시간, 상간 미끄럼, 분무, 운반기체, 연소 수신 챔버는 포함하지 않습니다. 포락은 선언한 binary64 여유를 사용하며 방향 반올림에 의한 형식 구간 증명은 아닙니다. 임계 전이 부근 목 분류는 유속 포락과 함께 해석해야 합니다. 실측 타당성과 실제 Unity 검증은 남아 있습니다. + +## 2026-11-17: 상분율을 동결한 압축성 연료 노즐 + +`compressible_fuel_nozzle`는 축 구동 챔버를 포함한 유한 `compressible_fuel` 저장조 사이에 단방향 유동을 제공합니다. 액체 압축 에너지와 이상증기는 저장조 물성을 공유합니다. `phase_mode`를 `frozen`으로 명시하여 통과 중 증기 질량분율을 유지하고 저장조는 다시 평형을 이루게 합니다. + +`compressible-fuel-nozzle`는 유한 증기 배출을, `compressible-pump-needle`는 관 공급, 축 펌핑, 단방향 입구, 솔레노이드 니들을 검사합니다. 누적 질량, 엔탈피, 제트 운동에너지, 벽열, 충격량, 엔트로피를 읽습니다. 평균 유량과 힘은 전체 틱에 해당하며 목·출구·상분율은 마지막 채택 통과 상태입니다. 정확한 액체 일, 기체/액체 해석 초킹, 독립 압력 구적, 동결 엔트로피와 음속 미분, 조밀 유속 탐색, 해석 초킹 배출 세분화를 비교합니다. 보존, 실제 운동, 재생, 분기, 롤백, 취소, 할당, asset과 MCP를 별도로 검증합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +보존형 1차 하위 스텝이 같은 질량과 엔탈피를 전달하고 제트 운동에너지를 수신 유체와 벽에 배분합니다. 물성 상태와 쌍 전체 엔트로피를 확인합니다. 구간당 최대 4096 스텝, 후보당 최대 64회 반감, 초기 전달량은 작은 저장조 질량의 0.1배 이하입니다. 닫힘 판단은 최대 체적탄성률 또는 포트 압력의 128 binary64 epsilon배 반올림을 허용하며 출력 압력을 클램프하지 않습니다. 실패하면 전체 배치를 롤백합니다. 시간 간격, 재고, 물성 범위, 니들 행정과 면적을 확인하십시오. + +매개변수는 `unverified`입니다. 이상증기와 압축성·열팽창 0의 액체로 구성된 순수 의사유체입니다. 이상 제트 온도를 포함한 선언 범위를 지켜야 합니다. 동결 통과는 과열 액체를 유지할 수 있지만 실측 핵생성이나 준안정 한계는 예측하지 않습니다. 유한 속도 완화, 상간 미끄럼, 해상된 분무, 비응축 운반기체, 연소 수신 챔버, 실측 맵, 실제 Unity 인수 검증은 남아 있습니다. 보존과 재생은 하드웨어 타당성을 입증하지 않습니다. + +## 2026-10-26: 축 구동 압축성 연료 챔버 + +`compressible_fuel_chamber`는 회전축을 유한한 `compressible_fuel` 저장조에 연결합니다. 축 운동이 체적을 바꾸며 동일한 압력 일이 유체 에너지와 축 토크를 바꿉니다. 저장조는 `equilibrium_fuel_duct`에 연료를 공급하거나 받으며 평형 플래시 증발과 응축을 처리합니다. + +`compressible-fuel-chamber-duct` 또는 `electric-compressible-fuel-duct`를 실행합니다. 셀 상태와 함께 저장조 질량, 체적, 압력, 온도, 엔트로피, 증기분율 및 챔버 토크, 동력, 일을 읽습니다. 독립 액체 일과 이상증기 극한, 별도 역산 평형 등엔트로피선과 압력 구적, 액체 축 ODE, 이상증기 반이산 방정식 RK4 세분화를 검사합니다. 보존, 전기/기어/유압/클러치 조합, 이식 재생, 실제 MCP, 할당 없는 트랜잭션은 별도로 확인합니다. 수치 결과는 검증 증거에 기록합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +가변 체적 저장조는 반 수송, 전체 축 일, 반 수송 순서로 계산합니다. 수송은 수치 확산을 가진 1차이며 대칭 분할이 차수를 높이지 않습니다. 매끄러운 닫힌 액체 축 운동은 2차 수렴합니다. 기계 구간의 각 증가량은 0.25 rad로 제한합니다. CFL, 물성 범위, 전체 롤백, 취소, 독립 분기는 그대로 적용됩니다. 정지 포트/하우징 충격량은 피스톤 압력 일과 구분합니다. + +매개변수는 `unverified`입니다. 압축성이고 열팽창이 0인 액체와 이상증기의 평형 순수 의사유체, 혼합 챔버, 강체 셀을 가정합니다. 온도와 압력 범위를 지켜야 합니다. 챔버 벌크 운동에너지는 해석하지 않으며 자동 체크 밸브가 없습니다. 유한 속도 핵생성, 상간 미끄럼, 실제 유체 임계 거동, 실측 보정, 실제 Unity 인수 검증은 남아 있습니다. + +## 2026-10-23: 압축성 평형 연료 덕트 + +`equilibrium_fuel_duct`는 명시적인 `compressible_fuel` 셀을 통해 질량, 운동량, 총에너지를 수송합니다. 액체는 압축성이며 증기는 이상기체이고 두 상은 압력, 온도, 속도를 공유합니다. 국소 평형으로 응축과 플래시 증발을 계산합니다. 유한한 정지 저장조 2개와 유한 열벽이 수지를 닫습니다. + +`equilibrium-fuel-condensing-duct` 또는 `equilibrium-fuel-flashing-duct`를 실행합니다. 각 셀은 밀도, 속도, 상분율, 음속, 온도, 에너지를 제공합니다. 포트 질량과 에너지, 벽 충격량, 전체 재고도 관측합니다. 독립 검사는 액체 압축 일, 이상증기 극한, 화학 퍼텐셜 일치, Clapeyron 및 Gibbs 관계, 엔트로피 역산 음속, 질량에너지 역산, 보존, 유한 벽 마찰을 다룹니다. 셀 평균 음향 오차는 8, 16, 24개 셀에서 감소합니다. 정확한 재생, 롤백, 취소, 분기, 할당 없는 스텝, 이식 가능한 asset, 실제 MCP는 따로 검증하며 자세한 결과는 검증 증거에 기록합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +보존형 Rusanov 플럭스는 동일한 하위 스텝 상태에서 모든 면을 갱신합니다. 속도 상한은 최대 절대속도와 물성 음속 상한의 합입니다. CFL 한계는 최소 포트 체적의 0.2배를 면적과 속도로 나눈 값이며 구간당 최대 4096 하위 스텝입니다. 수송과 국소 정확 저항 감쇠는 1차 분할을 사용합니다. 수치 확산은 총 엔트로피 변화에 포함하며 보고된 마찰열과 구분합니다. 정지 경계는 기계적 일 없이 저장조 운동량을 흡수하고 유입 운동에너지는 유한 저장조의 내부에너지로 바뀝니다. 잘못된 상태나 반올림 오차를 넘는 엔트로피 감소는 전체 배치를 거부합니다. 시간 간격을 줄이고 물성 범위와 셀 해상도를 확인하십시오. + +매개변수는 `unverified` 상태입니다. 선언된 온도와 압력 범위, 양의 잠재 엔탈피, 분리된 공존 비체적, 희박 증기 조건을 지켜야 합니다. 순간 균질 평형을 가정한 강체 등단면 수평 덕트입니다. 유한 속도 핵생성, 상간 미끄럼, 표면장력, 중력, 관 탄성, 실제 유체 임계 거동은 제외합니다. 1차 수치 확산은 상변화와 음향 전면을 흐리게 할 수 있습니다. 보존과 재생은 공간 정확도나 실측 하드웨어 타당성을 입증하지 않습니다. 실제 Unity 인수 검증은 남아 있습니다. + +## 2026-10-23: 유한 액체 연료 관로 운동량 + +`fuel_inertial_pipe`는 두 유한 연료 노드와 유한 열벽을 연결합니다. 수평 강체 관로는 양 용기 외에 자체 액체 질량, 열 내부에너지와 운동에너지를 갖습니다. 밀도는 일정하고 온도는 완전 혼합으로 변합니다. 포트와 관로 전체가 액체여야 하며 기존 준정적 연결은 별도 2상 거동을 유지합니다. + +독립 유한 컴플라이언스 조화해와 별도 비선형 운동량·온도 RK4로 정확도와 1차 세분화를 확인합니다. 열 분배, 쌍 엔트로피, 역전, 전체 원장, 클러치 시험 구간, 무할당, 롤백, 취소와 독립 분기를 검사합니다. 이식 자산과 실제 MCP가 모든 경계를 검사합니다. 실측 보정이나 실제 Unity 합격은 아닙니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +운동량은 중점 유량과 수용된 최종 압력을 사용합니다. 포트 에너지와 혼합은 후진 오일러이므로 전체 결합은 1차입니다. 무마찰에서도 최종 압력 이산화가 진동 일부를 수치 열로 바꾸지만 물리 마찰에는 포함하지 않습니다. 쌍 엔트로피는 혼합·시간 이산화를 포함합니다. 영유량 이벤트는 정·역방향 이력을 분리합니다. + +매개변수는 `unverified`입니다. 재료 온도·압력 범위와 압력 보정 액상 안정성을 지킵니다. 실패 구간은 전체 롤백되며 틱을 줄이고 공급 고갈·압력·상을 확인합니다. 변밀도 2상 운동량, 공동현상, 음파, 중력, 이동 관 형상과 열 전선 해상은 제외합니다. 규정 연소는 상세 화학평형·반응 엔트로피 정확도를 입증하지 않습니다. + +## 2026-10-20: 액체 입구 운동량 기준 모델 + +`LiquidColumn`은 단면적, 균일 속도, 액체 밀도와 온도가 일정한 수평 강체 관의 독립 C# 기준입니다. 각 국소 구간의 절대 포트 압력이 주어집니다. 선형·이차 저항은 명시적 연구 입력입니다. 그래프 컴포넌트가 아니며 기존 연료 네트워크와 노즐 방정식을 바꾸지 않습니다. + +독립 무손실 가속, 선형 저항 지수해와 이차 저항 쌍곡 탄젠트 해로 극한을 확인합니다. 독립 변압 RK4는 역전을 포함한 매끄러운 2차 세분화를 검사합니다. 수동 감쇠, 정상 흐름, 전체 에너지 균형, 비음 엔트로피, 거부, 불변 공유와 할당을 두 어셈블리에서 검사합니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +매개변수는 `unverified`입니다. 압력 하한은 호출자가 선언한 액상 유효 경계이며 증기압이나 NPSH 예측이 아닙니다. 압축성, 음파, 중력, 이동 형상, 열 저장, 공동현상, 상간 미끄럼과 상 완화는 범위 밖입니다. 2상 연료 연결은 준정적입니다. 실제 Unity 수용과 실측 보정은 별도입니다. + +## 2026-10-20: 증기 질량분율 동결 연료 토출과 유한 수용실 + +연료 도메인 펌프는 이제 물리 니들과 증기 질량분율 동결 토출을 통해 유한 액체 체적 연소 수용실에 공급합니다. 전체 재고에는 상변화, 배제 일, 제트 운동에너지 및 정지 벽 충격량이 포함됩니다. + +독립 베르누이·이상기체 극한, 별도 혼합 유속 최대화, 에너지/엔트로피 및 독립 적분 노즐/수용실 ODE로 방정식을 검사합니다. 시간 수렴은 1차입니다. 이식 자산 재생, 실제 MCP, 롤백, 취소, 독립 분기 및 할당 검사가 통합을 확인합니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +매개변수는 `unverified`입니다. 선언 온도 경계, 양의 기체 체적, 희박 증기 영역을 지킵니다. 입구 국소 관성, 유한 속도 핵생성, 상간 미끄럼, 분무 해상, 실제 유체 임계 거동 및 실측 보정은 빠져 있습니다. 규정 연소는 화학평형이나 반응 엔트로피 정확도를 입증하지 않습니다. 입구 동역학, 점화, 흡배기, 손실 및 ECU/TCU 협조로 진행합니다. + +## 2026-10-20: 축 구동 상변화 연료 펌프 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. 새 연료 펌프 검사는 두 어셈블리 대상을 모두 다룹니다. Standard 검사는 .NET 10에서 호스팅되며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +독립 액체 압력/일, 이상 증기 단열선, 2상 엔트로피 반전으로 폐쇄 관계를 검증합니다. 닫힌 액체 축 운동은 2차, 상변화 충전/공급은 독립 반전 RK4 참조에 대해 1차 세분화를 보입니다. 입구 부족, 충분한 액체 공급, 전기 구동, 기어/유압/클러치 조합, 정확한 재생, 롤백, 메모리 검사가 통합을 다룹니다. 자산 v33은 기하를 저장하고 v1-v32를 읽습니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +매개변수는 `unverified`입니다. 온도, 압력, 분해 가능한 체적 한계가 전체 주기에 적용됩니다. 비압축 액체, 이상 의사 성분 증기, 순간 공통 온도 평형 및 외부 케이스 압력 0을 가정합니다. 국소 입구 관성/NPSH, 초킹, 핵생성 지연, 밸브 관성/이력, 실제 혼합 연료 및 실측 보정은 남습니다. 물리 인젝터 연결과 수신부 변위/운동 일 결합도 별도 요구입니다. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[축 구동 상변화 연료 펌프](FUEL_CHAMBER_PUMP.ko.md) + + +## 2026-10-20: 상평형 연료 수송 네트워크 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. 새 연료 네트워크 검사는 두 어셈블리 대상을 모두 다룹니다. Standard 검사는 .NET 10에서 호스팅되며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +실험은 공존 상태로 이동하는 액체 배출, 역류, 개도 변경, 유한 벽/전기기계 열 결합을 다룹니다. 독립 액체 압력 지수해, 동시 2상 질량/엔탈피/열 ODE, 열 구동 역류, 클러치 시험 포착으로 정확도와 조합을 검사합니다. 자산과 실제 MCP가 모든 샘플 값과 해시를 유지합니다. 자산 v32는 물성을 저장하고 v1-v31을 읽습니다. 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +구성 관계의 물성 및 분해 가능한 벽 변형 한계가 계속 적용됩니다. 매개변수는 `unverified`입니다. 펌프 충전과 축 일, 인젝터 연결, 국소 관성, 초킹, 핵생성 지연, 상간 미끄럼 및 실제 혼합물 측정은 별도 작업입니다. 기존 펌프 공급 인젝터 레일은 연결 구현까지 분리 액체 경로를 유지합니다. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[상평형 연료 수송 네트워크](EQUILIBRIUM_FUEL_NETWORK.ko.md) + + +## 2026-10-20: 탄성 연료 체적 참조 모델 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. 새 구성 관계 검사는 두 어셈블리 대상을 모두 다룹니다. Standard 검사는 .NET 10에서 호스팅되며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +화학 퍼텐셜, Clapeyron 기울기, 열량 및 엔트로피 도함수, 탄성 저장을 포함한 Gibbs 관계를 비교합니다. 독립 구속 엔트로피 최대화는 포화 솔버를 사용하지 않습니다. 강체 용기, 이상 기체 및 광역성 비례 극한과 유한 열욕 RK4 세분화가 독립 참조입니다. 열교환은 총에너지를 보존하며 총엔트로피 비감소 조건에서 1차 수렴합니다. 실측 연료 유효성이나 Unity 승인을 뜻하지 않습니다. + +순수 연료 탄성 용기 폐쇄 관계는 액체, 증기 및 탄성 저장을 동반한 공존을 풉니다. 국소 구성 관계 참조이며 그래프의 펌프 및 노즐 수송에는 통합이 필요합니다. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[탄성 연료 체적 참조 모델](COMPLIANT_FUEL_VOLUME.ko.md) + + +## 2026-10-20: 유한 체적 연료 탱크 상평형 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증 상태입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply`는 역회전, 연료 통기와 유한 가열 벽을 검사합니다. `equilibrium-tank-fired-cylinder`는 같은 공급을 연소 엔진에 연결합니다. 독립 엔트로피 최대화, 화학 퍼텐셜/열용량 미분, 연립 ODE 수렴, 완전 수지, 재현, 롤백과 할당을 검증합니다. 자산 v31은 플래그를 보존하고 v1-v30을 읽습니다. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +펌프·열·통기 연성 예는 1차 수렴을 보입니다. 공급의 두 상은 지정 물성 온도 구간 안에 있고 총밀도는 binary64 반올림 여유를 두고 액체보다 낮습니다. 일정 밀도/공통 기체 물성, 순간 평형과 평면 계면은 연구 근사입니다. 실제 혼합물, 표면장력, 슬로싱, 유한 속도, 실측 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +[TANK_PHASE_EQUILIBRIUM.ko.md](TANK_PHASE_EQUILIBRIUM.ko.md) + +## 2026-10-13: 연료 상평형과 액체 공급 경계 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증 상태입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell`은 응축, 통기 증발과 재응축을 보여 줍니다. `equilibrium-injected-cylinder`는 통기 탱크 엔진에 가역 수용부 상평형과 공급 여유를 추가합니다. 독립 엔트로피 최대화, 해석적 극한, 연립 ODE 수렴, 완전 재현, 롤백과 할당 검사를 수행합니다. 자산 v30은 물성을 보존하고 v1-v29를 읽습니다. + +압력 비교는 binary64 반올림 범위 `64 * epsilon * max(p, p_sat)`만 허용하며 `epsilon = 2^-52`입니다. 보고 여유를 클램프하지 않습니다. 벌크 포화 검사이므로 국소 압력 손실과 펌프 NPSH에는 유동을 해상하는 모델이 필요합니다. 독립 검사에서는 단열 플래시와 유한 벽 열교환의 총엔트로피가 감소하지 않을 것도 요구합니다. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +매개변수는 `unverified`입니다. 실측 가솔린 물성, 다성분 또는 유한 속도 상변화, 해상된 액체 변위/분무와 OEM 보정은 제공하지 않습니다. 실제 Unity Editor/Play/Player/IL2CPP 수용은 미완성입니다. + +[FUEL_PHASE_EQUILIBRIUM.ko.md](FUEL_PHASE_EQUILIBRIUM.ko.md) + +## 2026-10-08: 탱크 형상과 유한 헤드스페이스 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증 상태입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder`와 `vented-tank-needle-cylinder`는 탱크 1513, 기체 1520, 통기 입력 960을 사용합니다. 자산 v29는 형상을 저장하고 v1-v28을 읽습니다. 해석적 일/미분, 독립 ODE 수렴, 수지, portable/MCP 재현, 롤백과 무할당 단계 검사가 통과했습니다. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +강체 혼합 탱크, 비압축 액체와 이상기체 모델입니다. 슬로싱/정수압 형상, 상평형, 캐비테이션, 실측 펌프/밸브 맵, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. 매개변수는 `unverified`입니다. + +[TANK_HEADSPACE.ko.md](TANK_HEADSPACE.ko.md) + +## 2026-10-08: 전체 실험실 및 구성요소 검색 + +필수 직렬 검증이 로컬 Windows x64/.NET 10.0.12에서 통과했습니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증 상태입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, MCP 예제, Unity 내보내기와 직렬 검증은 공통 목록을 사용합니다. 모든 소스가 포함되고 공개 예제는 실제 stdio로 검증되며 공개 구성요소는 전체 모델 스키마와 일치합니다. 모든 실험실 지문, 소스 해시와 각 샘플 상태 해시는 기준과 일치합니다. 자산 v28과 이전 읽기 지원은 바뀌지 않았습니다. + +문서 감사는 열 가지 언어의 대응 절, 단일 언어 전환 행과 전체 실험실 표를 확인합니다. 목록과 CLI 응답은 `power.laboratory_catalog.v1.schema.json`에 맞습니다. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +탱크 형상/헤드스페이스, 더 완전한 엔진 동작, ECU/TCU 조정, 실측 보정과 실제 Unity 인수는 아직 미완성입니다. 연구 매개변수는 계속 `unverified`입니다. + +## 2026-10-05: 추적 가능한 연료 릴리프 반환 + +필수 직렬 검증은 로컬 Windows x64/.NET 10.0.12에서 통과합니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +독립 릴리프 감쇠/일, 기계/압력/열 동시 세분화, 열 비율, 다중 경로, 외부 경계, replay, rollback과 할당 검사가 통과합니다. 비등이나 미해상 전달 구간은 전체 배치를 실패시킵니다. 탱크 기하/통기, 실측 밸브/펌프, 캐비테이션, 분무, OEM 보정과 실제 Unity Editor/Play/Player/IL2CPP는 미완성입니다. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.ko.md](LIQUID_FUEL_RETURN.ko.md) + +## 2026-10-05: 유한 액체 연료 탱크 + +필수 직렬 검증은 로컬 Windows x64/.NET 10.0.12에서 통과합니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +탱크 질량과 열 에너지는 정확히 영이 되며 전진 펌프 유량/반력은 사라지고 축은 실제 동역학을 유지합니다. 반환 흐름은 레일 혼합 온도로 액체 재고를 회복합니다. 독립 습윤 해석 교환, 고갈 축/압력 에너지, 완전 rollback과 할당 검사가 통과합니다. + +화학 경계 에너지는 배기로 나가는 미연 연료를 포함합니다. 탱크 전달은 내부이며 통합 검사는 전체 화학 재고 변화와 방출 열의 합을 순 화학 경계 에너지와 비교합니다. + +기하학적 용량, 통기/기체 공간/슬로싱, 캐비테이션, 실측 충액/효율/조압과 분해 분무는 미완성입니다. 매개변수는 `unverified`이며 실제 Unity Editor/Play/Player/IL2CPP와 OEM 보정은 미검증입니다. + +이전 펌프 공급 리비전은 Windows, Linux, macOS CI를 통과합니다. 해당 실행은 이번 유한 탱크 변경을 검증하지 않습니다. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.ko.md](LIQUID_FUEL_TANK.ko.md) + +## 2026-10-05: 펌프 공급 액체 연료 레일 + +필수 직렬 검증은 로컬 Windows x64/.NET 10.0.12에서 통과합니다. Standard 어셈블리 검사는 .NET 10에서 실행하며 실제 Unity Editor/Play/Player/IL2CPP는 미검증입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +물리/트랜잭션 여섯 그룹, 자산 두 그룹, 통합 세 그룹과 실제 MCP 시나리오 두 그룹이 공급 경로를 검사합니다. 유입 연료 열/화학 에너지는 가스 경계 에너지와 누적되고 압력 저장은 한 번만 계산합니다. 압력 KPI는 초기 압력 대신 펌프 전용 해석 상한 920541.8 Pa를 사용합니다. + +원천은 명시적 외부 경계이며 모델링된 유한 연료 탱크가 아닙니다. 탱크 고갈, 펌프 효율/조압, 라인 손실, 캐비테이션, 압력 의존 물성과 유한 체적 분무는 미완성입니다. 매개변수는 `unverified`이며 OEM 보정이나 실제 Unity Editor/Play/Player/IL2CPP 검증을 입증하지 않습니다. + +이전 AT 체크포인트도 기록된 리비전에서 Windows, Linux, macOS CI를 통과합니다. 해당 실행은 이번 연료 공급 변경을 검증하지 않습니다. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.ko.md](PUMP_FED_FUEL.ko.md) + +## 2026-10-05: 유압 AT 피드백과 압력 제어 + +필수 직렬 검증이 Windows x64/.NET 10.0.12에서 통과했습니다. Release 빌드는 경고나 오류가 없습니다. 실제 Unity와 새로운 Linux/macOS 검증은 미확인 상태입니다. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8개 물리/트랜잭션 그룹은 모든 전진/후진 단, 실제 압력/접촉/잠금, 밸브 소유권, 클록과 PI 한도를 확인합니다. 고장은 공급 손실, 막힌 배출, 체결/해제 시간 초과, 이동 방향 인터록과 확인된 잠금 손실을 포함합니다. 2개 자산 그룹은 형식화된 경로를 보존하고 재서명 다운그레이드를 거부합니다. 3개 통합 그룹과 2개 실제 MCP 시나리오는 모든 스칼라와 상태 해시가 일치합니다. + +후진 시작과 고장 복구는 500 ms에서 Applying이며 선언된 시간 초과 안에서 800 ms 이전에 확인됩니다. 검사는 고정 지연 대신 실제 잠금을 따릅니다. 안전 배출 명령은 물리적 막힘을 없애지 못합니다. 엔진/행성기어/액추에이터/제어 그래프는 변경 없는 128 한도 안에 122 상태를 보존합니다. + +매개변수는 `unverified`입니다. ECU 토크 협조, 상세 센서/밸브, 전체 차량 고장, OEM 보정 및 실제 Editor/Play/Player/IL2CPP 검증은 미완성입니다. + +[AT_CONTROL.ko.md](AT_CONTROL.ko.md) + + ## 2026-10-02: 공유 AT 유압 공급과 동적 피스톤 구동 필수 직렬 `dotnet run --file tools/Build.cs -- verify`가 Windows x64/.NET 10.0.12에서 로컬로 통과합니다. 관리형 검사 **354/354**, .NET 10에서 호스팅된 Standard 어셈블리 검사 **273/273**, 실제 MCP 그룹 **37/37**, Zig 테스트 **16/16**, 네이티브 모델 C# 검사 여섯 개입니다. Release 빌드는 경고/오류가 0입니다. 실험실 **34**개가 모두 통과하고, 원래 기준선 값 **176**개가 모두 정확히 일치합니다. C/C++/Lua 감사는 비어 있습니다. 실제 Unity와 새로운 Linux/macOS 수용은 미검증으로 남습니다. diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 34a8d25..705fbee 100644 --- a/docs/VALIDATION.md +++ b/docs/VALIDATION.md @@ -2,6 +2,1400 @@ **English** · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Relaxing fuel pumps and frozen metering + +A `compressible_fuel_chamber` can own the volume of a `relaxing_fuel` reservoir. Reversible shaft work holds vapor mass quality fixed; chemical relaxation is a separate energy-conserving source. A `compressible_fuel_nozzle` connects two relaxing reservoirs with `phase_mode` set to `frozen`, transporting total mass, vapor mass and stagnation enthalpy. An actual solenoid, spring and stop can meter its opening through a physical needle. + +Run `relaxing-fuel-chamber` or `relaxing-pump-needle`. Observe chamber volume/work, actual and equilibrium quality, phase entropy, `total_vapor_delivered`, port inventories and the global vapor residual. Checks compare pure-phase adiabats, independent fixed-quality pressure quadrature, infinitesimal work, a reversible cycle and an independent ideal-vapor shaft ODE. Coupled finite-rate refinement, shared-reservoir source time, complete ledgers, cancellation, rollback, branches, allocations, portable replay and actual MCP have separate checks. Numerical values are in validation evidence. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +The fixed-quality entropy relation determines pressure and temperature after a volume change. Work includes liquid cold compression energy and uses stable incremental functions for small motion. The identical discrete work drives shaft torque. Global intervals apply each node's phase source once around conservative duct and frozen nozzle transport. Duct CFL and a 0.02 fraction of the smaller nozzle-port inventory bound intervals; at most 4096 intervals are allowed. Mechanical work is separated from source evolution. Coupled transport remains first order and needs temporal refinement. + +Parameters remain `unverified`. Both nozzle ports must use the same domain and material; relaxing ports reject equilibrium transit. Finite bulk phase relaxation does not resolve chemical conversion or residence inside a zero-volume nozzle. The model has no phase slip, liquid tension, nucleation-barrier law, spray, carrier gas or fired receiver. Moving reservoirs are mixed with zero bulk velocity; internal duct cells remain rigid and have one owner. Use dilute ideal vapor away from critical behavior, declared positive-pressure/temperature bounds, positive latent enthalpy and separated coexistence volumes. Initial vapor quality is explicit research input. Numerical agreement does not establish measured calibration or actual Unity acceptance. + +## 2026-11-17: Finite-rate fuel phase relaxation + +A `relaxing_fuel` node carries independent vapor mass quality. Liquid and vapor share pressure, temperature and velocity, while chemical equilibrium takes a declared finite time. A `relaxing_fuel_duct` transports mass, momentum, total energy and vapor mass through explicit cells. Residence follows cell geometry and actual velocity. + +Run `relaxing-fuel-evaporation` or `relaxing-fuel-duct`. Observe actual and equilibrium quality, chemical affinity, phase entropy, vapor port inventories and the global vapor residual. Evaporated/condensed histories split the net source transfer of each accepted tick by sign; they are not gross microscopic forward/reverse traffic. Checks cover the independent exponential solution, entropy derivatives, frozen acoustics, stiff equilibrium limit, temporal self-refinement and independent linear-acoustic mesh refinement. Transactions, portable replay and actual MCP are checked separately; numbers are recorded in validation evidence. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Conservative Rusanov fluxes advect four fields. Each global CFL interval applies half a local phase source, transport, then half a source. Shared reservoirs receive each source once, regardless of duct count. The source trajectory is exact for isolated fixed-volume states; the coupled method retains first-order transport error. CFL uses the frozen-quality acoustic bound. Local phase and duct entropy changes are checked separately. Out-of-range states reject the complete batch. + +Parameters remain `unverified`. Declare `initial_vapor_mass_fraction` in [0,1] and an integer relaxation time from 1 ns through one hour. Stay within the material temperature and positive-pressure bounds. The model assumes a rigid horizontal constant-area duct, one pure pseudo-fluid, zero liquid thermal expansion and ideal vapor. It omits phase slip, interfacial heat delay, surface tension, spray and carrier gas. Direct relaxing-domain pump, nozzle, moving chamber and fired receiver coupling remain open. Conservation, replay and refinement do not establish measured hardware validity or actual Unity acceptance. Use dilute vapor away from the real-fluid critical region; the material must retain positive latent enthalpy and separated coexistence volumes. + +## 2026-11-17: Equilibrium fuel nozzle transit + +Set `compressible_fuel_nozzle` `phase_mode` to `equilibrium` for instantaneous homogeneous phase equilibrium during transit. Liquid and vapor share pressure, temperature and velocity, and vapor quality changes along the isentrope. The same compressible liquid cold potential and ideal-vapor reference supply both nozzle and finite reservoirs. The `frozen` mode remains a separate supported assumption. + +Run `equilibrium-flashing-nozzle` or `equilibrium-pump-needle`. The additional `flux_relative_uncertainty` channel describes the last accepted local constitutive flux enclosure. It does not bound mean flow, delivered mass, first-order time integration or calibration error. Checks use independent saturation/entropy inversion, analytical gas and liquid choking, a separate dense global pressure search, energy and entropy identities, and analytic vapor-blowdown refinement. Complete inventories, shaft/duct/needle composition, rollback, cancellation, independent branches, allocations, portable assets and actual MCP are verified separately. Numerical values and preserved earlier boundaries are in validation evidence. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +Positive equilibrium sound-speed squared gives increasing density along an isentrope. Enthalpy drop decreases with pressure. These monotone factors bound flux on each pressure interval, including phase boundaries and multiple extrema. Branch-and-bound returns a sampled lower rate and remaining upper bound within 1e-4 relative width. There are at most 512 stack intervals and 8192 splits. Caloric endpoint differences use roundoff allowances and monotone pressure-integral bounds, with up to 256 Riemann panels and 80 closure iterations. Unresolved cases reject the batch. A smooth interior maximum is sonic; a phase-boundary maximum can be nonsmooth. + +Parameters remain `unverified`. This equilibrium limit assumes one pure pseudo-fluid, ideal vapor, zero liquid thermal expansion and common phase velocity. It omits finite nucleation and relaxation times, phase slip, spray, carrier gas and fired receiver coupling. The numerical enclosure uses declared binary64 allowances; it is not a formal directed-rounding interval proof. Selected throat classification near critical transitions must be read with the flux envelope. Measured hardware validity and actual Unity acceptance remain open. + +## 2026-11-17: Frozen compressible fuel nozzles + +A `compressible_fuel_nozzle` carries one-way flow between finite `compressible_fuel` reservoirs, including shaft-driven chambers. Liquid compression energy and ideal vapor share the reservoir material. Declare `phase_mode` as `frozen`: mass quality stays constant during transit while bulk reservoirs re-equilibrate. + +Run `compressible-fuel-nozzle` for finite vapor discharge or `compressible-pump-needle` for duct supply, shaft pumping, one-way inlet and solenoid needle delivery. Read cumulative mass, enthalpy, jet kinetic energy, wall heat, impulse and pair entropy. Mean flow and force cover the complete tick; throat, exit and quality channels retain the last accepted transit. Checks compare exact liquid work, analytic gas/liquid choking, independent pressure quadrature, frozen entropy and sonic derivatives, a dense flux scan and analytic choked blowdown refinement. Conservation, actual needle motion, replay, branches, rollback, cancellation, allocations and portable/MCP operation are checked separately. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Conservative first-order substeps transfer the same mass and enthalpy between reservoirs. Jet kinetic energy is divided between receiver and wall. Accepted substeps check both material states and total pair entropy. Each interval permits 4096 substeps with at most 64 halvings per candidate; the initial transfer bound is 0.1 times the smaller reservoir mass. Pressure closure allows 128 times binary64 epsilon times the largest bulk modulus or port pressure; reported pressures are not clamped. A failed interval rolls back the whole batch. Reduce the tick and inspect inventory, material bounds, needle travel and valve area. + +Parameters remain `unverified`. This is a pure pseudo-fluid with ideal vapor and a compressible zero-thermal-expansion liquid. Stay within declared pressure and temperature bounds, including ideal jet temperature. Frozen transit can retain superheated liquid; the model does not predict a measured nucleation or metastability limit. Finite-rate relaxation, phase slip, resolved spray, noncondensable carrier gas, fired receiver coupling, measured maps and actual Unity acceptance remain open. Conservation and replay do not establish hardware validity. + +## 2026-10-26: Shaft-driven compressible fuel chambers + +A `compressible_fuel_chamber` connects a rotational shaft to a finite `compressible_fuel` reservoir. Shaft motion changes its volume, while the same pressure work changes fluid energy and shaft torque. The reservoir can supply or receive an `equilibrium_fuel_duct`, including equilibrium flashing and condensation. + +Run `compressible-fuel-chamber-duct` or `electric-compressible-fuel-duct`. Read reservoir mass, volume, pressure, temperature, entropy and vapor fraction alongside cell states and chamber torque, power and work. Checks use independent liquid work and ideal-vapor limits, a separately inverted equilibrium isentrope and pressure quadrature, a liquid shaft ODE and ideal-vapor method-of-lines RK4 refinement. Conservation, electrical/gear/hydraulic/clutch composition, exact portable replay, actual MCP and allocation-free transactions have separate checks. Detailed numerical results are in validation evidence. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +A moving reservoir uses half duct transport, full shaft work, then half transport. Transport remains first order with numerical diffusion; symmetric splitting does not raise its order. Closed smooth liquid shaft motion has second-order refinement. Angular increments are limited to 0.25 rad per mechanical interval. Duct CFL, material bounds, full rollback, cancellation and independent branches still apply. Stationary port/housing impulse is separate from piston pressure work. + +Parameters remain `unverified`. This is an equilibrium pure pseudo-fluid with a compressible zero-thermal-expansion liquid and ideal vapor, a mixed chamber and rigid duct cells. Enforce declared temperature and pressure bounds. The chamber has no resolved bulk kinetic energy or automatic check valve. Finite-rate nucleation, phase slip, real-fluid critical behavior, measured calibration and actual Unity acceptance remain open. + +## 2026-10-23: Compressible equilibrium fuel ducts + +An `equilibrium_fuel_duct` transports mass, momentum and total energy through explicit `compressible_fuel` cells. The liquid is compressible and the vapor is ideal; both phases share pressure, temperature and velocity. Local equilibrium permits condensation and flashing. Two finite stationary reservoirs and a finite thermal wall close the balances. + +Run `equilibrium-fuel-condensing-duct` or `equilibrium-fuel-flashing-duct`. Every cell exposes density, velocity, phase fraction, sound speed, temperature and energy. Port mass/energy, wall impulse and full inventories are observable. Independent checks cover liquid compression work, ideal-vapor limits, chemical-potential equality, Clapeyron and Gibbs relations, entropy-inverted sound speed, mass-energy inversion, conservation and finite-wall friction. Cell-average acoustic errors decrease on 8, 16 and 24 cells. Exact replay, rollback, cancellation, branches, allocation-free stepping, portable assets and actual MCP are checked separately; detailed results are in validation evidence. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +The conservative Rusanov flux advances all faces from the same substep state. Its speed bound uses the largest absolute velocity plus the material acoustic bound. The CFL limit is 0.2 times minimum port volume divided by area and speed; each interval permits at most 4096 substeps. Transport and local exact drag decay are split at first order. Numerical diffusion contributes to total entropy change, separately from reported friction heat. Reservoir momentum is absorbed by stationary boundaries with zero mechanical work; incoming kinetic energy thermalizes in their finite inventory. Invalid states or an entropy decrease beyond roundoff reject the complete batch. Reduce the tick and inspect material bounds and cell resolution after rejection. + +Parameters remain `unverified`. Stay inside the declared temperature and pressure range, with positive latent enthalpy, separated coexistence volumes and dilute vapor. This is a rigid constant-area horizontal duct with instantaneous homogeneous equilibrium. It omits finite-rate nucleation, phase slip, surface tension, gravity, pipe elasticity and real-fluid critical behavior. First-order numerical diffusion can smear phase and acoustic fronts; conservation and replay do not establish spatial accuracy or measured hardware validity. Actual Unity acceptance remains pending. + +## 2026-10-23: Finite liquid fuel line momentum + +A `fuel_inertial_pipe` connects two finite fuel nodes and a finite thermal wall. Its rigid horizontal line owns liquid mass, caloric energy and kinetic energy, in addition to the inventories of both vessels. The line has constant density and a well-mixed variable temperature. Both ports and the entire line must remain liquid; the existing quasi-static links retain their separate two-phase behavior. + +An independent finite-compliance harmonic solution and a separate nonlinear momentum/temperature RK4 integration check accuracy and first-order refinement. Checks cover friction routing, pair entropy, physical reversal, complete energy/mass/fuel ledgers, speculative clutch intervals, allocation-free stepping, rollback, cancellation and independent branches. Portable assets and actual MCP check every sampled boundary. This does not establish calibrated hardware or actual Unity acceptance. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +The momentum equation uses midpoint flow and accepted end pressures. Port energy and line mixing use backward Euler, so the complete coupling converges at first order. Even without friction, endpoint pressure discretization converts part of the pressure/kinetic oscillation into numerical caloric heating. That contribution is not reported as physical friction. Pair entropy includes mixing and time discretization. Zero-flow events preserve separate forward and reverse transfer histories. + +Parameters remain `unverified`. Use the declared material temperature/pressure ranges and pressure-corrected liquid stability. A failed interval rolls back completely; reduce the tick and inspect source depletion, pressure and phase limits. The model omits variable-density two-phase momentum, cavitation, acoustic waves, gravity, moving pipe geometry and resolved thermal fronts. Prescribed combustion does not establish detailed chemical-equilibrium or reaction-entropy accuracy. + +## 2026-10-20: Liquid inlet momentum reference + +`LiquidColumn` is a standalone C# reference for a horizontal rigid pipe with constant area, uniform velocity, constant liquid density and constant temperature. Absolute port pressures are prescribed during each local interval. Linear and quadratic resistance coefficients are explicit research inputs. It is not a graph component, and it does not change the existing fuel network or nozzle equations. + +Independent lossless acceleration, exponential linear-drag and hyperbolic-tangent quadratic-drag solutions check the limits. An independently integrated changing-pressure RK4 reference checks smooth second-order refinement, including reversal. Tests also cover passive decay, steady flow, complete energy balance, nonnegative entropy, rejected pressure/coarse-step inputs, immutable shared use and allocations on both assembly targets. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Parameters remain `unverified`. The pressure floor is a caller-declared liquid-validity bound, not a predicted vapor pressure or NPSH margin. Compressibility, acoustic waves, gravity, moving geometry, thermal storage, cavitation, phase slip and phase-relaxation kinetics are outside this reference. The existing two-phase fuel links remain quasi-static. Actual Unity acceptance and measured hardware calibration remain separate. + +## 2026-10-20: Frozen-quality fuel discharge and finite receivers + +The fuel-domain pump now feeds a physical needle and frozen-quality discharge into a finite-liquid-volume fired receiver. Complete inventories include phase change, displacement work, jet kinetic energy and stationary-wall impulse. + +Independent Bernoulli and ideal-gas limits, a separate mixture flux maximization, energy/entropy checks and an independently integrated liquid-nozzle/receiver ODE test the equations. Time refinement is first order. Portable asset replay, actual MCP, rollback, cancellation, independent branches and allocation checks cover integration. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Parameters remain `unverified`. Enforce declared temperature bounds, positive gas volume and the dilute-vapor material domain. The model omits local inlet inertia, finite-rate nucleation, phase slip, resolved spray, real-fluid critical behavior and measured hardware calibration. Prescribed combustion does not establish chemical-equilibrium or reaction-entropy accuracy. Continue inlet dynamics, ignition, intake/exhaust, mechanical losses and coordinated ECU/TCU control. + +## 2026-10-20: Shaft-driven phase-resolving fuel pump + +The required serial verification passes locally on Windows x64/.NET 10.0.12. The new fuel-pump checks run against both assembly targets. Standard-assembly checks are hosted on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Independent liquid pressure/work, ideal-vapor adiabats and two-phase entropy inversion check the constitutive relation. Closed-liquid shaft motion demonstrates second-order refinement; the complete phase-changing filling/delivery experiment demonstrates first-order refinement against an independently inverted RK4 reference. Inlet starvation, full liquid supply, electric drive, gear/hydraulic/clutch composition, exact replay, rollback and allocation checks cover the integration. Asset v33 stores geometry and reads v1-v32. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +Parameters remain `unverified`. The material temperature, pressure and representable-volume limits apply throughout the cycle. The model assumes incompressible liquid, ideal pseudo-species vapor, instantaneous common-temperature equilibrium and zero external case pressure. Local inlet inertia/NPSH, sonic choking, nucleation delay, valve inertia/hysteresis, real fuel mixtures and measured calibration remain open. Physical injector handoff and receiver displacement/kinetic-work coupling are still separate requirements. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Shaft-driven phase-resolving fuel pump](FUEL_CHAMBER_PUMP.md) + + +## 2026-10-20: Equilibrium fuel transport network + +The required serial verification passes locally on Windows x64/.NET 10.0.12. The new fuel-network checks run against both assembly targets. Standard-assembly checks are hosted on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +The laboratories exercise liquid discharge into coexistence, reverse flow, opening changes and finite-wall/electromechanical heat coupling. An independent liquid-pressure exponential, simultaneous two-phase mass/enthalpy/heat ODE, heat-driven reversal and speculative clutch capture check accuracy and composition. Portable assets and actual MCP preserve every sampled value and hash. Asset v32 retains the new material records and reads v1-v31. Actual Unity Editor/Play/Player/IL2CPP remains unverified. + +The material and representable wall-deformation limits of the constitutive closure still apply. Parameters remain `unverified`. Resolved pump filling and shaft work, injector handoff, local fluid inertia, sonic choking, nucleation delay, phase slip and real-mixture measurements remain separate work. Existing pump-fed injector rails retain their separated-liquid path until those couplings are implemented. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Equilibrium fuel transport network](EQUILIBRIUM_FUEL_NETWORK.md) + + +## 2026-10-20: Compliant fuel volume reference + +The required serial verification passes locally on Windows x64/.NET 10.0.12. The new constitutive checks run against both assembly targets. Standard-assembly checks are hosted on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Checks compare chemical potentials, Clapeyron slopes, caloric and entropy derivatives, and the Gibbs relation with elastic storage. An independent constrained entropy maximization does not use the saturation solve. Rigid-vessel, ideal-gas and extensive-scaling limits and finite-bath RK4 refinement provide independent references. Heat exchange conserves total energy and has first-order refinement with nondecreasing total entropy. This evidence does not establish measured fuel validity or Unity acceptance. + +The pure-fuel compliant-vessel closure resolves liquid, vapor and coexistence with elastic storage. It is a local constitutive reference; graph-level pump and nozzle transport still require integration. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Compliant fuel volume reference](COMPLIANT_FUEL_VOLUME.md) + + +## 2026-10-20: Finite-volume fuel tank equilibrium + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` exercises pump reversal, fuel-bearing venting and a finite heated wall. `equilibrium-tank-fired-cylinder` adds the same source to a fired engine. Independent entropy maximization, chemical-potential and caloric-derivative checks, coupled ODE refinement, complete ledgers, replay, rollback and allocation checks cover the implementation. Asset v31 retains the flag and reads v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Coupled pump, heat and vent examples demonstrate first-order refinement. Both source phases remain inside the declared material temperature interval; total density stays below liquid density with a binary64 roundoff margin. Constant density/common gas properties, instantaneous equilibrium and a flat interface are research approximations. Real mixtures, surface tension, slosh, finite-rate kinetics, measured calibration and actual Unity Editor/Play/Player/IL2CPP remain unverified. + +[TANK_PHASE_EQUILIBRIUM.md](TANK_PHASE_EQUILIBRIUM.md) + +## 2026-10-13: Fuel phase equilibrium and liquid supply limits + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` demonstrates condensation, vent-driven evaporation and renewed condensation. `equilibrium-injected-cylinder` adds reversible receiver phase behavior and observable supply margins to the vented-tank engine. Independent entropy maximization, analytic saturation/heat limits, simultaneous ODE refinement, complete replay, rollback and allocation checks cover the implementation. Asset v30 retains these properties and reads v1-v29. + +The pressure comparison allows only binary64 roundoff: `64 * epsilon * max(p, p_sat)`, with `epsilon = 2^-52`. It doesn't clamp the reported margin. This is a bulk saturation check; local pressure losses and pump NPSH require a resolved flow model. Independent checks also require nondecreasing total entropy for adiabatic flash and finite-wall exchange. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Parameters remain `unverified`. The model does not supply measured gasoline properties, multicomponent or finite-rate phase kinetics, resolved liquid displacement/spray, or OEM calibration. Actual Unity Editor/Play/Player/IL2CPP acceptance remains pending. + +[FUEL_PHASE_EQUILIBRIUM.md](FUEL_PHASE_EQUILIBRIUM.md) + +## 2026-10-08: Geometric tank and finite headspace + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +The examples `vented-tank-liquid-cylinder` and `vented-tank-needle-cylinder` use tank 1513, headspace 1520 and vent input 960. Asset v29 stores geometry and reads v1-v28. Analytic work/derivative checks, independent simultaneous ODE refinement, complete ledgers, portable/MCP replay, rollback and allocation-free stepping pass. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +This is a rigid mixed tank with incompressible liquid and ideal gas. Slosh/hydrostatic shape, vapor-phase equilibrium, cavitation, measured pump/valve maps, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. Parameters remain `unverified`. + +[TANK_HEADSPACE.md](TANK_HEADSPACE.md) + +## 2026-10-08: Complete laboratory and component discovery + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, MCP examples, Unity exports and serial verification share the laboratory catalog. Every source is covered, every advertised example validates through actual stdio, and advertised components match the complete model schema. All laboratory fingerprints, source hashes and every sampled state hash match the baseline. Asset v28 and prior readers are unchanged. + +The documentation audit covers matching sections, single language switchers and complete laboratory tables in all ten languages. The catalog file and CLI response match `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Tank geometry/headspace, deeper engine behavior, ECU/TCU coordination, measured calibration and actual Unity acceptance remain open. Research parameters remain `unverified`. + +## 2026-10-05: Tracked fuel relief return + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Independent relief decay/pressure work and simultaneous mechanical, pressure and thermal refinement, heat fractions, multiple routes, external boundaries, every-boundary replay, rollback and allocation checks pass. Liquid boiling and unresolved transport intervals fail the entire batch. Geometric tank/vent dynamics, measured valves/pumps, cavitation, spray, OEM calibration and actual Unity Editor/Play/Player/IL2CPP remain open. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.md](LIQUID_FUEL_RETURN.md) + +## 2026-10-05: Finite liquid fuel tank + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Tank mass and caloric energy reach exactly zero; forward pump flow/reaction then vanish while the shaft keeps its actual dynamics. Reverse return restores wet inventory at the mixed rail temperature. Independent analytic wet exchange and exhausted shaft/pressure energy, complete rollback and allocation checks pass. + +Chemical boundary energy includes unburned fuel leaving through gas exhaust. The tank transfers fuel internally; integrated checks compare total chemical-inventory change plus heat released against net chemical boundary energy. + +Geometric capacity, vent/headspace/slosh, cavitation, measured pump filling/efficiency/regulation and resolved spray remain open. Parameters are `unverified`; actual Unity Editor/Play/Player/IL2CPP and OEM calibration remain unverified. + +The preceding pump-fed revision passes Windows, Linux and macOS CI. That run does not verify this finite-tank change. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.md](LIQUID_FUEL_TANK.md) + +## 2026-10-05: Pump-fed liquid fuel rail + +The required serial verification passes locally on Windows x64/.NET 10.0.12. Standard-assembly checks run on .NET 10; actual Unity Editor/Play/Player/IL2CPP remains unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Six physical/transaction groups, two asset groups, three integrated groups and two actual MCP scenarios cover the feed path. Incoming fuel caloric/chemical energy is accumulated together with gas-boundary energy; pressure storage is counted once. The pressure KPI uses a pump-only analytic upper bound of 920541.8 Pa, rather than the initial pressure. + +The source is an explicit external boundary, not a modeled finite fuel tank. Tank depletion, pump efficiency/regulation, line losses, cavitation, pressure-dependent properties and finite-volume spray remain open. Parameters are `unverified`; this does not establish OEM calibration or actual Unity Editor/Play/Player/IL2CPP acceptance. + +The earlier AT checkpoint also passes Windows, Linux and macOS CI at the recorded revision. That run does not verify these fuel-feed changes. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.md](PUMP_FED_FUEL.md) + +## 2026-10-05: Hydraulic AT feedback and pressure control + +The required serial verification passes on Windows x64/.NET 10.0.12. The Release build has no warnings or errors. Actual Unity and new Linux/macOS acceptance remain unverified. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 physical/transaction groups cover all forward ranges and reverse, real pressure/contact/lock feedback, valve ownership, sample clocks and PI bounds. Fault checks include supply loss, blocked drain, apply/release timeout, moving-direction interlock and confirmed-lock loss. 2 portable groups retain typed routes and reject re-signed downgrades. 3 integrated groups and 2 actual MCP scenarios match every scalar and state hash. + +Reverse startup and fault recovery remain Applying at 500 ms and are confirmed before 800 ms, within the declared timeout. Tests follow actual lock, not a fixed delay. Safe venting cannot remove physical blockage. The fired engine/planet/actuator/control graph retains 122 states within the unchanged 128-state limit. + +Parameters remain `unverified`. Coordinated ECU torque blending, detailed sensor/valve behavior, comprehensive vehicle faults, OEM calibration and actual Editor/Play/Player/IL2CPP acceptance remain unfinished. + +[AT_CONTROL.md](AT_CONTROL.md) + + ## 2026-10-02: shared AT hydraulic supply and dynamic piston actuation The required serial `dotnet run --file tools/Build.cs -- verify` passes locally diff --git a/docs/VALIDATION.pt-BR.md b/docs/VALIDATION.pt-BR.md index dda0700..1fe4a8f 100644 --- a/docs/VALIDATION.pt-BR.md +++ b/docs/VALIDATION.pt-BR.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · **Português** +## 2026-11-17: Bombas de combustível com relaxação e dosagem congelada + +Um `compressible_fuel_chamber` pode controlar o volume de um reservatório `relaxing_fuel`. O trabalho reversível do eixo mantém a fração de vapor fixa; a relaxação química é uma fonte separada que conserva energia. Um `compressible_fuel_nozzle` conecta dois reservatórios relaxantes com `phase_mode` em `frozen`, transportando massa total, vapor e entalpia de estagnação. Uma agulha física com bobina, mola e batente pode dosar a abertura. + +Execute `relaxing-fuel-chamber` ou `relaxing-pump-needle`. Observe volume/trabalho, frações real e de equilíbrio, entropia de fase, `total_vapor_delivered`, inventários das portas e resíduo global de vapor. As verificações comparam adiabáticas puras, quadratura independente da pressão com fração fixa, trabalho infinitesimal, ciclo reversível e ODE independente do eixo com vapor ideal. Refinamento acoplado, tempo de fonte compartilhado, balanços completos, cancelamento, reversão, ramificações, alocações, reprodução portátil e MCP real são verificados separadamente. Os números estão nas evidências de validação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +A relação de entropia com fração fixa determina pressão e temperatura após variar o volume. O trabalho inclui compressão fria do líquido e funções incrementais estáveis para pequenos movimentos. O mesmo trabalho discreto gera o torque do eixo. Cada intervalo global aplica uma vez a fonte de cada nó ao redor do transporte conservativo em duto e bocal congelado. CFL e 0.02 do menor inventário de porta limitam os intervalos, no máximo 4096. Trabalho e fonte ficam separados. O transporte acoplado continua de primeira ordem e exige refinamento temporal. + +Os parâmetros continuam `unverified`. Ambas as portas exigem mesmo domínio e material; portas relaxantes rejeitam trânsito de equilíbrio. Relaxação finita nos reservatórios não resolve química ou residência dentro de um bocal sem volume. Não há deslizamento de fases, tensão líquida negativa, barreira de nucleação, spray, gás portador ou receptor com combustão. Reservatórios móveis são misturados com velocidade média nula; células internas continuam rígidas com um proprietário. Use vapor ideal diluído longe do crítico, limites declarados de pressão positiva e temperatura, entalpia latente positiva e volumes de coexistência separados. A fração inicial é entrada explícita de pesquisa. Concordância numérica não comprova calibração medida nem aceitação real do Unity. + +## 2026-11-17: Relaxação de fase do combustível com taxa finita + +Um nó `relaxing_fuel` tem fração mássica de vapor independente. Líquido e vapor compartilham pressão, temperatura e velocidade, mas o equilíbrio químico exige um tempo finito declarado. Um `relaxing_fuel_duct` transporta massa, quantidade de movimento, energia total e massa de vapor em células explícitas. A residência depende da geometria e da velocidade real. + +Execute `relaxing-fuel-evaporation` ou `relaxing-fuel-duct`. Observe frações real e de equilíbrio, afinidade, entropia de fase, balanços de vapor nas portas e resíduo global. Históricos de evaporação e condensação separam por sinal a transferência líquida da fonte em cada passo aceito; não contam trocas microscópicas brutas. As verificações cobrem solução exponencial independente, derivadas de entropia, acústica congelada, limite rígido de equilíbrio, autorrefinamento temporal e refinamento espacial acústico linear independente. Transações, reprodução portátil e MCP real são verificados separadamente; os números ficam nas evidências de validação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Fluxos conservativos de Rusanov transportam quatro campos. Cada intervalo CFL global aplica meia fonte local, transporte e meia fonte. Reservatórios compartilhados recebem cada fonte uma vez, independentemente do número de dutos. A fonte é exata para estados isolados de volume fixo; o transporte acoplado mantém erro de primeira ordem. CFL usa o limite acústico de fração congelada. Entropias de fase e duto são verificadas separadamente. Estados fora dos limites revertem o lote inteiro. + +Os parâmetros continuam `unverified`. Declare `initial_vapor_mass_fraction` em [0,1] e tempo inteiro de 1 ns a uma hora. Respeite temperatura e pressão positiva do material. O modelo pressupõe duto rígido horizontal de área constante, pseudofluido puro, expansão térmica líquida nula e vapor ideal. Não inclui deslizamento de fases, atraso térmico interfacial, tensão superficial, spray ou gás portador. Acoplamentos diretos do domínio relaxante com bombas, bocais, câmaras móveis e receptores com combustão continuam pendentes. Conservação, reprodução e refinamento não comprovam validade experimental nem aceitação real do Unity. Use vapor diluído longe da região crítica real; o material deve manter entalpia latente positiva e volumes específicos de coexistência separados. + +## 2026-11-17: Trânsito de combustível em equilíbrio nos bocais + +Defina `phase_mode` de `compressible_fuel_nozzle` como `equilibrium` para equilíbrio homogêneo instantâneo durante o trânsito. Líquido e vapor compartilham pressão, temperatura e velocidade; o título muda na isentrópica. Bocal e reservatórios finitos usam o mesmo potencial líquido compressível e referência de vapor ideal. `frozen` permanece uma hipótese separada suportada. + +Execute `equilibrium-flashing-nozzle` ou `equilibrium-pump-needle`. `flux_relative_uncertainty` descreve a última envoltória constitutiva local aceita e não limita fluxo médio, massa entregue, integração temporal de primeira ordem ou calibração. Comparam-se inversão independente de saturação/entropia, bloqueio analítico gás/líquido, busca global densa separada, identidades de energia/entropia e refinamento analítico de esvaziamento de vapor. Inventários, eixo/duto/agulha, reversão, cancelamento, ramos, alocações, assets e MCP real são verificados separadamente. Números e fronteiras anteriores ficam nas evidências de validação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +O quadrado positivo do som de equilíbrio implica densidade crescente com pressão a entropia fixa; a queda de entalpia diminui. Os fatores monótonos limitam o fluxo de cada intervalo, incluindo fronteiras de fase e vários extremos. Ramificação e limitação retornam limite inferior amostrado e superior restante com largura relativa até 1e-4. Limites: 512 intervalos na pilha e 8192 divisões. Diferenças calóricas usam margens de arredondamento e limites integrais monótonos com até 256 painéis Riemann e 80 iterações. Casos não resolvidos rejeitam o lote. Máximo interior suave é sônico; na fronteira pode não ser suave. + +Os parâmetros continuam `unverified`. O limite de equilíbrio supõe pseudofluido puro, vapor ideal, expansão líquida nula e velocidade comum. Omite tempos finitos de nucleação/relaxação, deslizamento, spray, gás portador e receptor com combustão. A envoltória usa margens binary64 declaradas, não uma prova formal de intervalos por arredondamento dirigido. A classificação da garganta perto de transições deve ser lida com a envoltória. Validade medida e Unity real permanecem abertos. + +## 2026-11-17: Bocais de combustível compressível com título congelado + +Um `compressible_fuel_nozzle` leva fluxo unidirecional entre reservatórios finitos `compressible_fuel`, incluindo câmaras acionadas por eixo. Compressão líquida e vapor ideal compartilham o material. Declare `phase_mode` como `frozen`: o título mássico fica constante no trânsito e os reservatórios se reequilibram. + +Execute `compressible-fuel-nozzle` para descarga finita ou `compressible-pump-needle` para duto, eixo, entrada unidirecional e agulha solenoide. Leia massa, entalpia, energia cinética, calor, impulso e entropia acumulados. Fluxo e força médios abrangem o tick inteiro; garganta, saída e título retêm o último trânsito aceito. Comparam-se trabalho líquido exato, bloqueio analítico de gás/líquido, quadratura independente, entropia e derivada sonora congeladas, varredura densa e refinamento do esvaziamento crítico analítico. Conservação, movimento real, reprodução, ramos, reversão, cancelamento, alocações, assets e MCP são verificados separadamente. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Subpassos conservativos de primeira ordem transferem igual massa e entalpia e dividem a energia cinética entre fluido e parede. Verificam-se estados e entropia total do par. Limites: 4096 subpassos, 64 reduções à metade por candidato e transferência inicial de até 0.1 da menor massa. O fechamento permite 128 epsilon binary64 vezes o maior módulo volumétrico ou pressão, sem limitar pressões informadas. Falhas revertem todo o lote. Examine passo, inventário, limites, curso e área. + +Os parâmetros continuam `unverified`. O pseudofluido puro usa vapor ideal e líquido compressível sem expansão térmica. Respeite pressão e temperatura declaradas, incluindo o jato ideal. O trânsito congelado pode manter líquido superaquecido sem prever limites medidos de nucleação ou metaestabilidade. Relaxação finita, deslizamento, spray resolvido, gás portador não condensável, receptor com combustão, mapas medidos e Unity real permanecem abertos. Conservação e reprodução não demonstram validade de hardware. + +## 2026-10-26: Câmaras de combustível compressível acionadas por eixo + +Uma `compressible_fuel_chamber` conecta um eixo a um reservatório finito `compressible_fuel`. O movimento muda o volume; o mesmo trabalho de pressão muda energia do fluido e torque. O reservatório pode alimentar ou receber um `equilibrium_fuel_duct`, com vaporização súbita e condensação em equilíbrio. + +Execute `compressible-fuel-chamber-duct` ou `electric-compressible-fuel-duct`. Leia massa, volume, pressão, temperatura, entropia e fração de vapor junto a células, torque, potência e trabalho. As verificações usam trabalho líquido e limites de vapor independentes, isentrópica de equilíbrio invertida separadamente e quadratura da pressão, EDO do eixo líquido e refinamento RK4 das equações semidiscretas do vapor ideal. Conservação, composição elétrica/engrenagens/hidráulica/embreagem, reprodução portável, MCP real e transações sem alocação são verificados separadamente. Os resultados estão nas evidências de validação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +O reservatório móvel usa meio transporte, trabalho completo do eixo e meio transporte. O transporte continua de primeira ordem com difusão numérica; a separação simétrica não eleva a ordem. O movimento líquido fechado e suave converge em segunda ordem. Incrementos angulares são limitados a 0.25 rad por intervalo mecânico. CFL, limites materiais, reversão completa, cancelamento e ramificações independentes continuam válidos. O impulso estacionário das portas/carcaça é separado do trabalho do pistão. + +Os parâmetros continuam `unverified`. O pseudofluido puro em equilíbrio usa líquido compressível sem expansão térmica e vapor ideal, câmara misturada e células rígidas. Respeite limites térmicos e de pressão. A câmara não resolve energia cinética média nem inclui válvula de retenção automática. Nucleação com taxa finita, deslizamento, comportamento crítico real, calibração medida e aceitação real no Unity permanecem abertos. + +## 2026-10-23: Dutos de combustível compressível em equilíbrio + +Um `equilibrium_fuel_duct` transporta massa, quantidade de movimento e energia total por células explícitas `compressible_fuel`. O líquido é compressível e o vapor ideal; as fases compartilham pressão, temperatura e velocidade. O equilíbrio local permite condensação e vaporização súbita. Dois reservatórios finitos estacionários e uma parede térmica finita fecham os balanços. + +Execute `equilibrium-fuel-condensing-duct` ou `equilibrium-fuel-flashing-duct`. Cada célula expõe densidade, velocidade, fração de fase, velocidade do som, temperatura e energia. Massa/energia nas portas, impulso da parede e inventários completos são observáveis. Verificações independentes abrangem trabalho de compressão, limite do vapor ideal, igualdade dos potenciais químicos, relações de Clapeyron e Gibbs, som por inversão da entropia, inversão massa-energia, conservação e atrito com parede finita. Os erros acústicos médios de célula diminuem com 8, 16 e 24 células. Reprodução exata, reversão, cancelamento, ramificações, passos sem alocação, assets portáveis e MCP real são verificados separadamente; detalhes constam nas evidências de validação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +O fluxo conservativo de Rusanov avança todas as faces a partir do mesmo estado de subpasso. O limite de velocidade soma a maior velocidade absoluta e o limite acústico do material. O limite CFL é 0.2 vezes o menor volume de porta dividido por área e velocidade; cada intervalo permite até 4096 subpassos. Transporte e decaimento local exato por arrasto são separados em primeira ordem. A difusão numérica contribui para a variação total de entropia, distinta do calor de atrito informado. Fronteiras estacionárias absorvem impulso sem trabalho mecânico; a energia cinética que entra se termaliza no inventário finito. Estados inválidos ou queda de entropia além do arredondamento rejeitam todo o lote. Reduza o passo e examine limites do material e resolução. + +Os parâmetros continuam `unverified`. Respeite as faixas declaradas de temperatura e pressão, entalpia latente positiva, volumes de coexistência separados e vapor diluído. O duto é rígido, horizontal, de seção constante e equilíbrio homogêneo instantâneo. Não inclui nucleação com taxa finita, deslizamento, tensão superficial, gravidade, elasticidade ou comportamento crítico real. A difusão de primeira ordem pode alargar frentes; conservação e reprodução não demonstram precisão espacial nem validade de hardware medido. A aceitação real no Unity permanece pendente. + +## 2026-10-23: Quantidade de movimento da linha finita de combustível líquido + +Um `fuel_inertial_pipe` conecta dois nós finitos de combustível e uma parede térmica finita. A linha horizontal rígida possui massa líquida, energia calórica e cinética próprias além dos vasos. Densidade constante e temperatura variável perfeitamente misturada. Portas e linha ficam líquidas; conexões quase estáticas mantêm seu modelo bifásico separado. + +Solução harmônica independente com flexibilidade finita e RK4 independente de movimento/temperaturas não lineares verificam exatidão e primeira ordem. Cobrem calor, entropia, reversão, balanços, intervalos especulativos de embreagem, alocações, rollback, cancelamento e ramos. Assets portáteis e MCP real verificam cada fronteira. Isso não comprova calibração ou Unity real. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +O movimento usa vazão média e pressões finais aceitas. Energia e mistura usam Euler implícito; o acoplamento completo converge em primeira ordem. Mesmo sem atrito, a discretização transforma parte da oscilação em calor numérico, não registrado como atrito físico. Entropia inclui mistura e discretização. Eventos de vazão zero separam transferências diretas e reversas. + +Os parâmetros seguem `unverified`. Respeite intervalos materiais e estabilidade líquida corrigida pela pressão. Falhas revertem todo o intervalo; reduza passo e confira esgotamento, pressão e fase. Faltam movimento bifásico com densidade variável, cavitação, acústica, gravidade, geometria móvel e frentes térmicas. Combustão prescrita não prova química de equilíbrio ou entropia de reação detalhadas. + +## 2026-10-20: Referência de quantidade de movimento na entrada líquida + +`LiquidColumn` é uma referência C# independente para tubo horizontal rígido com seção, velocidade uniforme, densidade líquida e temperatura constantes. As pressões absolutas são prescritas por intervalo. Resistências linear e quadrática são entradas de pesquisa explícitas. Não é componente do grafo e não altera rede ou bocal. + +Aceleração sem perdas, exponencial linear e tangente hiperbólica quadrática independentes verificam limites. Uma RK4 independente com pressão variável verifica segunda ordem com reversão. Decaimento passivo, equilíbrio, energia completa, entropia não negativa, rejeições, uso imutável e alocações são testados nos dois alvos. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Os parâmetros seguem `unverified`. A pressão mínima é um limite líquido declarado pelo chamador, não previsão de pressão de vapor ou NPSH. Compressibilidade, acústica, gravidade, geometria móvel, armazenamento térmico, cavitação, deslizamento e relaxação ficam fora. Os enlaces bifásicos seguem quase estáticos. Unity real e calibração medida são separados. + +## 2026-10-20: Descarga de combustível com título congelado e receptores finitos + +A bomba do domínio de combustível agora alimenta agulha física e descarga de título congelado em um receptor em combustão com volume líquido finito. Os inventários completos incluem mudança de fase, trabalho de deslocamento, energia cinética e impulso na parede imóvel. + +Limites independentes de Bernoulli e gás ideal, maximização separada do fluxo bifásico, energia/entropia e ODE independente bocal/receptor verificam as equações. O refinamento temporal é de primeira ordem. Replay portátil, MCP real, rollback, cancelamento, ramos independentes e alocações verificam a integração. Unity Editor/Play/Player/IL2CPP real segue sem verificação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Os parâmetros seguem `unverified`. Respeite temperaturas declaradas, volume gasoso positivo e domínio de vapor diluído. Faltam inércia local de entrada, nucleação finita, deslizamento de fases, spray resolvido, comportamento crítico real e calibração medida. Combustão prescrita não comprova equilíbrio químico ou entropia de reação. Continue entrada, ignição, admissão/escape, perdas e coordenação ECU/TCU. + +## 2026-10-20: Bomba de combustível com mudança de fase acionada por eixo + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os novos testes da bomba de combustível cobrem os dois destinos de assembly. Os testes Standard são hospedados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue sem verificação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Pressão/trabalho líquidos, adiabáticas de vapor ideal e inversão independente de entropia bifásica verificam o fechamento. O movimento líquido fechado refina em segunda ordem; enchimento/entrega com fase em primeira contra RK4 invertido independentemente. Falta e suprimento completo de entrada, acionamento elétrico, engrenagens/hidráulica/embreagem, replay, rollback e alocações cobrem integração. Asset v33 guarda geometria e lê v1-v32. Unity Editor/Play/Player/IL2CPP real segue não verificado. + +Parâmetros permanecem `unverified`. Temperatura, pressão e volume representável são limitados durante todo o ciclo. Assume-se líquido incompressível, vapor ideal de pseudoespécie, equilíbrio instantâneo em temperatura comum e pressão externa de carcaça zero. Inércia local/NPSH, escoamento crítico, atraso de nucleação, inércia/histerese de válvula, misturas reais e calibração medida seguem abertos. Injetor físico e trabalho de deslocamento/cinética do receptor são separados. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Bomba de combustível com mudança de fase acionada por eixo](FUEL_CHAMBER_PUMP.pt-BR.md) + + +## 2026-10-20: Rede de transporte de combustível em equilíbrio + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os novos testes da rede de combustível cobrem os dois destinos de assembly. Os testes Standard são hospedados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue sem verificação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +Os laboratórios cobrem descarga líquida em coexistência, fluxo reverso, abertura e calor finito/eletromecânico. Exponencial independente de pressão líquida, EDO bifásica simultânea massa/entalpia/calor, reversão térmica e captura especulativa da embreagem verificam precisão e composição. Artefatos e MCP real preservam todos os valores e hashes. Asset v32 guarda propriedades e lê v1-v31. Unity Editor/Play/Player/IL2CPP real segue não verificado. + +Os limites de material e deformação representável do fechamento continuam válidos. Parâmetros permanecem `unverified`. Enchimento de bomba e trabalho de eixo, conexão de injetor, inércia local, escoamento crítico, atraso de nucleação, deslizamento e medidas de misturas reais seguem separados. Os rails de injetor alimentados por bomba mantêm o caminho líquido separado até o acoplamento. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Rede de transporte de combustível em equilíbrio](EQUILIBRIUM_FUEL_NETWORK.pt-BR.md) + + +## 2026-10-20: Referência de volume de combustível complacente + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os novos testes constitutivos cobrem os dois destinos de assembly. Os testes Standard são hospedados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue sem verificação. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Os testes comparam potenciais químicos, inclinações de Clapeyron, derivadas calóricas e entrópicas e Gibbs com armazenamento elástico. A maximização independente da entropia restrita não usa o solver de saturação. Limites de recipiente rígido, gás ideal e escala extensiva e refinamento RK4 do banho finito fornecem referências independentes. A troca preserva energia total e refina em primeira ordem com entropia total não decrescente. Não comprova propriedades medidas de combustível nem aceitação Unity. + +O fechamento do recipiente complacente de combustível puro resolve líquido, vapor e coexistência com armazenamento elástico. É uma referência constitutiva local; o transporte de bomba e bocal no grafo ainda precisa de integração. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Referência de volume de combustível complacente](COMPLIANT_FUEL_VOLUME.pt-BR.md) + + +## 2026-10-20: Equilíbrio do tanque com volume líquido finito + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. As verificações Standard rodam no .NET 10; Unity Editor/Play/Player/IL2CPP real continua não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` verifica reversão da bomba, ventilação com combustível e parede quente finita. `equilibrium-tank-fired-cylinder` conecta a fonte a um motor com combustão. Verificam-se máximo independente de entropia, potenciais, derivadas calóricas, refinamento ODE, balanços, replay, rollback e alocações. Asset v31 mantém o sinalizador e lê v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Casos acoplados de bomba, calor e ventilação demonstram primeira ordem. As duas fases da fonte ficam no intervalo declarado; densidade total abaixo da líquida com margem binary64. Densidade/propriedades constantes, equilíbrio instantâneo e interface plana são aproximações de pesquisa. Misturas reais, tensão superficial, sloshing, cinética finita, calibração medida e Unity Editor/Play/Player/IL2CPP real seguem não verificados. + +[TANK_PHASE_EQUILIBRIUM.pt-BR.md](TANK_PHASE_EQUILIBRIUM.pt-BR.md) + +## 2026-10-13: Equilíbrio de fases do combustível e limites de suprimento + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. As verificações Standard rodam no .NET 10; Unity Editor/Play/Player/IL2CPP real continua não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` mostra condensação, evaporação por ventilação e nova condensação. `equilibrium-injected-cylinder` acrescenta equilíbrio reversível do receptor e margens ao motor com tanque ventilado. Verificam-se máximo independente de entropia, limites analíticos, refinamento ODE simultâneo, replay completo, rollback e alocações. Asset v30 preserva propriedades e lê v1-v29. + +A comparação só admite arredondamento binary64: `64 * epsilon * max(p, p_sat)`, com `epsilon = 2^-52`. A margem informada não é limitada. É uma verificação de saturação global; perdas locais e NPSH da bomba exigem modelo de fluxo resolvido. As verificações independentes também exigem entropia total não decrescente no flash adiabático e na troca com parede finita. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Parâmetros `unverified`. Não são fornecidas propriedades medidas de gasolina, cinética multicomponente ou de velocidade finita, deslocamento líquido/spray resolvidos ou calibração OEM. A aceitação real Unity Editor/Play/Player/IL2CPP continua pendente. + +[FUEL_PHASE_EQUILIBRIUM.pt-BR.md](FUEL_PHASE_EQUILIBRIUM.pt-BR.md) + +## 2026-10-08: Geometria do tanque e espaço gasoso finito + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. As verificações Standard rodam no .NET 10; Unity Editor/Play/Player/IL2CPP real continua não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +`vented-tank-liquid-cylinder` e `vented-tank-needle-cylinder` usam tanque 1513, gás 1520 e entrada de ventilação 960. Asset v29 guarda geometria e lê v1-v28. Passam trabalho/derivadas analíticos, convergência ODE independente, balanços, replay portable/MCP, rollback e passos sem alocação. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Tanque rígido misturado, líquido incompressível e gás ideal. Slosh/forma hidrostática, equilíbrio de fases, cavitação, mapas medidos bomba/válvula, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. Parâmetros `unverified`. + +[TANK_HEADSPACE.pt-BR.md](TANK_HEADSPACE.pt-BR.md) + +## 2026-10-08: Descoberta completa de laboratórios e componentes + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. As verificações Standard rodam no .NET 10; Unity Editor/Play/Player/IL2CPP real continua não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, exemplos MCP, exports Unity e verificação serial compartilham o catálogo. Cada fonte está coberta, cada exemplo anunciado é validado por stdio real e os componentes correspondem ao esquema completo. Todas as impressões, hashes de fonte e cada hash de estado amostrado coincidem com a base. Asset v28 e leitores anteriores permanecem inalterados. + +A auditoria documental cobre seções correspondentes, uma linha de idiomas e tabelas completas nos dez idiomas. O catálogo e a resposta CLI seguem `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Geometria/espaço gasoso do tanque, motor mais completo, coordenação ECU/TCU, calibração medida e aceitação Unity real seguem pendentes. Parâmetros de pesquisa permanecem `unverified`. + +## 2026-10-05: Retorno de alívio de combustível rastreado + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os testes Standard são executados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Passam decaimento/trabalho independentes, refinamento mecânica/pressão/térmico simultâneo, frações, rotas, fronteiras externas, replay, rollback e alocações. Ebulição ou intervalo não resolvido falha o lote inteiro. Geometria/ventilação, válvulas/bombas medidas, cavitação, spray, calibração OEM e Unity Editor/Play/Player/IL2CPP real seguem abertos. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.pt-BR.md](LIQUID_FUEL_RETURN.pt-BR.md) + +## 2026-10-05: Tanque finito de combustível líquido + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os testes Standard são executados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Massa e energia térmica chegam exatamente a zero; vazão/reação adiante desaparecem mantendo a dinâmica real do eixo. Retorno restaura inventário líquido na temperatura misturada do rail. Passam troca úmida analítica, energia de eixo/pressão esgotada, rollback completo e alocações. + +Energia química de fronteira inclui combustível não queimado no escape. O tanque transfere internamente; testes integrados comparam mudança total do inventário químico mais calor liberado com energia química líquida de fronteira. + +Capacidade geométrica, ventilação/espaço gasoso/oscilação, cavitação, enchimento/eficiência/regulação medidos e spray resolvido seguem abertos. Parâmetros `unverified`; Unity Editor/Play/Player/IL2CPP real e calibração OEM seguem não verificados. + +A revisão anterior passa CI Windows, Linux e macOS. Essa execução não verifica este tanque finito. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.pt-BR.md](LIQUID_FUEL_TANK.pt-BR.md) + +## 2026-10-05: Rail de combustível líquido alimentado por bomba + +A verificação serial exigida passa localmente em Windows x64/.NET 10.0.12. Os testes Standard são executados em .NET 10; Unity Editor/Play/Player/IL2CPP real segue não verificado. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Seis grupos físicos/transacionais, dois de ativos, três integrados e dois cenários MCP reais cobrem a alimentação. Energia térmica/química entrante se acumula com a energia da fronteira gasosa; pressão é armazenada uma vez. O KPI usa o limite analítico da bomba de 920541.8 Pa em vez da pressão inicial. + +A fonte é uma fronteira externa explícita, não um tanque finito modelado. Esgotamento, eficiência/regulação da bomba, perdas de linhas, cavitação, propriedades dependentes da pressão e spray de volume finito seguem abertos. Parâmetros `unverified`; isso não comprova calibração OEM ou aceitação real Unity Editor/Play/Player/IL2CPP. + +O checkpoint AT anterior também passa CI Windows, Linux e macOS na revisão registrada. Essa execução não verifica estas mudanças de alimentação. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.pt-BR.md](PUMP_FED_FUEL.pt-BR.md) + +## 2026-10-05: Realimentação AT hidráulica e controle de pressão + +A verificação serial exigida passa em Windows x64/.NET 10.0.12. A compilação Release não tem avisos ou erros. A aceitação real Unity e novas verificações Linux/macOS continuam não confirmadas. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 grupos físicos/transacionais cobrem todas as marchas à frente/ré, pressão/contato/travamento reais, propriedade das válvulas, relógios e limites PI. Falhas incluem perda de alimentação, dreno bloqueado, tempo de aplicação/liberação, intertravamento de direção e perda do travamento confirmado. 2 grupos de assets preservam rotas tipadas e rejeitam downgrades reassinados. 3 grupos integrados e 2 cenários MCP reais correspondem em cada escalar e hash de estado. + +Partida em ré e recuperação seguem Applying em 500 ms e são confirmadas antes de 800 ms dentro do tempo declarado. Os testes seguem travamento real, não atraso fixo. Drenagem segura não remove bloqueio físico. O grafo motor/planetas/atuadores/controle preserva 122 estados no limite inalterado de 128. + +Os parâmetros continuam `unverified`. Coordenação de torque ECU, sensores/válvulas detalhados, falhas completas do veículo, calibração OEM e aceitação real Editor/Play/Player/IL2CPP continuam pendentes. + +[AT_CONTROL.pt-BR.md](AT_CONTROL.pt-BR.md) + + ## 2026-10-02: alimentação hidráulica AT compartilhada e acionamento dinâmico por pistão O serial exigido `dotnet run --file tools/Build.cs -- verify` passa localmente diff --git a/docs/VALIDATION.ru.md b/docs/VALIDATION.ru.md index a0cf3a9..9c49f75 100644 --- a/docs/VALIDATION.ru.md +++ b/docs/VALIDATION.ru.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · [简体中文](VALIDATION.zh-CN.md) · [Français](VALIDATION.fr.md) · **Русский** · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: Релаксационные топливные насосы и дозирование с замороженной фазой + +`compressible_fuel_chamber` может задавать объём резервуара `relaxing_fuel`. Обратимая работа вала сохраняет массовую долю пара; химическая релаксация служит отдельным энергосохраняющим источником. `compressible_fuel_nozzle` соединяет два релаксирующих резервуара при `phase_mode` равном `frozen`, перенося общую массу, массу пара и энтальпию торможения. Физическая игла с катушкой, пружиной и упором регулирует открытие. + +Запустите `relaxing-fuel-chamber` или `relaxing-pump-needle`. Наблюдаются объём и работа, фактическая и равновесная доли, фазовая энтропия, `total_vapor_delivered`, запасы портов и глобальная невязка пара. Проверки сравнивают чистофазные адиабаты, независимую квадратуру давления при фиксированной доле, бесконечно малую работу, обратимый цикл и независимое ODE вала с идеальным паром. Отдельно проверяются сгущение связанной релаксации, время источника общих резервуаров, полные балансы, отмена, откат, ветвление, выделения памяти, переносимое воспроизведение и реальный MCP. Числа приведены в доказательствах валидации. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +Энтропийное соотношение при фиксированной доле задаёт давление и температуру после изменения объёма. Работа включает холодную энергию сжатия жидкости и устойчивые приращения для малых перемещений. Та же дискретная работа определяет момент вала. Каждый глобальный интервал однократно применяет источник каждого узла вокруг консервативного переноса по каналу и замороженному соплу. Интервалы ограничены CFL и долей 0.02 меньшего запаса на портах; допускается не более 4096. Работа и источник разделены. Связанный перенос остаётся первого порядка и требует временного сгущения. + +Параметры остаются `unverified`. Оба порта должны иметь одинаковые домен и материал; равновесный проход для релаксирующих портов запрещён. Конечная релаксация в резервуарах не разрешает химию или время пребывания внутри сопла нулевого объёма. Нет скольжения фаз, отрицательного натяжения жидкости, барьера зародышеобразования, распыла, несущего газа или горящего приёмника. Подвижные резервуары перемешаны с нулевой средней скоростью; внутренние ячейки жёсткие и имеют одного владельца. Нужен разреженный идеальный пар вдали от критической области, заявленные положительные давления и температуры, положительная скрытая энтальпия и различные объёмы сосуществования. Начальная доля пара задаётся явно как исследовательская. Численное совпадение не доказывает измеренную калибровку или приёмку Unity. + +## 2026-11-17: Фазовая релаксация топлива с конечной скоростью + +Узел `relaxing_fuel` имеет независимую массовую долю пара. Жидкость и пар имеют общие давление, температуру и скорость, но химическое равновесие достигается за заданное конечное время. `relaxing_fuel_duct` переносит массу, импульс, полную энергию и массу пара через явные ячейки. Время пребывания определяется геометрией и фактической скоростью. + +Запустите `relaxing-fuel-evaporation` или `relaxing-fuel-duct`. Доступны фактическая и равновесная доли, сродство, фазовая энтропия, паровые балансы портов и глобальная невязка. Истории испарения и конденсации разделяют по знаку суммарный перенос источника за принятый шаг, а не микроскопические встречные потоки. Проверяются независимое экспоненциальное решение, производные энтропии, замороженная акустика, жёсткий равновесный предел, временное самосгущение и независимое линейно-акустическое сгущение сетки. Транзакции, переносимое воспроизведение и реальный MCP проверяются отдельно; числа приведены в доказательствах валидации. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +Консервативные потоки Русанова переносят четыре поля. Каждый глобальный интервал CFL включает половину локального источника, перенос и вторую половину источника. Общий резервуар получает каждый источник один раз независимо от числа каналов. Источник точен для изолированного состояния постоянного объёма; связанный перенос остаётся первого порядка. CFL использует верхнюю границу замороженной скорости звука. Энтропия фазового перехода и канала проверяется раздельно. Выход за границы откатывает весь пакет. + +Параметры остаются `unverified`. Задайте `initial_vapor_mass_fraction` в [0,1] и целое время от 1 ns до одного часа. Соблюдайте температурные и положительные барические границы материала. Предполагаются жёсткий горизонтальный канал постоянного сечения, чистая псевдожидкость, нулевое тепловое расширение жидкости и идеальный пар. Нет скольжения фаз, задержки межфазного теплообмена, поверхностного натяжения, распыла и несущего газа. Прямое сопряжение релаксирующего домена с насосом, соплом, подвижной камерой и горящим приёмником ещё предстоит. Сохранение, воспроизведение и сгущение не доказывают достоверность оборудования или приёмку Unity. Используйте разреженный пар вдали от критической области реального флюида; материал должен сохранять положительную скрытую энтальпию и различные удельные объёмы сосуществующих фаз. + +## 2026-11-17: Равновесное прохождение топлива через сопло + +Установите `phase_mode` компонента `compressible_fuel_nozzle` в `equilibrium` для мгновенного однородного равновесия при прохождении. Жидкость и пар имеют общие давление, температуру и скорость; паросодержание меняется вдоль изоэнтропы. Сопло и конечные резервуары используют одинаковый потенциал сжимаемой жидкости и опорный идеальный пар. `frozen` остаётся отдельным поддерживаемым предположением. + +Запустите `equilibrium-flashing-nozzle` или `equilibrium-pump-needle`. `flux_relative_uncertainty` описывает последнюю принятую локальную определяющую границу потока, а не средний расход, поданную массу, временную интеграцию первого порядка или калибровку. Проверки включают независимое обращение насыщения/энтропии, аналитическое запирание газа/жидкости, отдельный плотный глобальный поиск, энергетические и энтропийные тождества и аналитическое уточнение опорожнения пара. Запасы, вал/канал/игла, откат, отмена, ветви, выделения, assets и реальный MCP проверяются отдельно. Числа и старые границы сохранены в доказательствах валидации. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +Положительный квадрат равновесной скорости звука даёт рост плотности с давлением при фиксированной энтропии. Перепад энтальпии уменьшается. Монотонные множители ограничивают поток на каждом интервале, включая фазовые границы и несколько экстремумов. Метод ветвей и границ возвращает выборочную нижнюю и оставшуюся верхнюю границы с относительной шириной не более 1e-4. Пределы: 512 интервалов в стеке и 8192 разбиения. Калорические разности, поправки округления и монотонные интегральные границы используют до 256 панелей Римана и 80 итераций. Неразрешённый случай отклоняет пакет. Гладкий внутренний максимум звуковой; фазовая граница может быть негладкой. + +Параметры остаются `unverified`. Эта равновесная модель предполагает чистую псевдосреду, идеальный пар, отсутствие теплового расширения жидкости и общую скорость. Конечные времена зародышеобразования и релаксации, скольжение, распыл, газ-носитель и приёмник с горением не включены. Численные границы используют заявленные поправки binary64, а не формальное доказательство направленным округлением. Классификацию горла вблизи критического перехода следует читать с границами потока. Измеренная достоверность и фактическая проверка Unity открыты. + +## 2026-11-17: Сжимаемые топливные сопла с замороженным составом + +`compressible_fuel_nozzle` обеспечивает односторонний поток между конечными резервуарами `compressible_fuel`, включая камеры с приводом от вала. Сжатие жидкости и идеальный пар используют материал резервуара. Явно задайте `phase_mode` как `frozen`: массовое паросодержание фиксировано при прохождении сопла, а резервуары возвращаются к равновесию. + +Запустите `compressible-fuel-nozzle` для конечного истечения или `compressible-pump-needle` для канала, вала, одностороннего входа и электромагнитной иглы. Наблюдаемы накопленные масса, энтальпия, кинетическая энергия, тепло стенки, импульс и энтропия. Расход и сила усредняются за полный такт; горло, выход и паросодержание сохраняют последний принятый переход. Проверяются точная работа жидкости, аналитическое запирание газа/жидкости, независимая квадратура, замороженные энтропия и акустическая производная, плотный поиск максимума и уточнение аналитического критического опорожнения. Сохранение, реальное движение, воспроизведение, ветви, откат, отмена, выделения, assets и MCP проверяются отдельно. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +Консервативные подшаги первого порядка переносят одинаковую массу и энтальпию; кинетическая энергия делится между средой и стенкой. Проверяются состояния и полная энтропия пары. Пределы: 4096 подшагов, 64 деления пополам на кандидат, начальный перенос не больше 0.1 меньшей массы. Закрытие допускает 128 epsilon binary64, умноженных на наибольший модуль упругости или давление; выдаваемые давления не обрезаются. Ошибка откатывает весь пакет. Уменьшите шаг и проверьте запасы, границы, ход иглы и площадь. + +Параметры остаются `unverified`. Чистая псевдосреда сочетает идеальный пар и сжимаемую жидкость без теплового расширения. Соблюдайте пределы, включая температуру идеальной струи. Замороженный переход может сохранять перегретую жидкость, но не предсказывает измеренную границу зародышеобразования или метастабильности. Конечная релаксация, скольжение, разрешённый распыл, неконденсируемый газ, приёмник с горением, измеренные карты и фактическая проверка Unity остаются открытыми. Сохранение и воспроизведение не доказывают аппаратную достоверность. + +## 2026-10-26: Топливные камеры сжимаемой среды с приводом от вала + +`compressible_fuel_chamber` соединяет вращающийся вал с конечным резервуаром `compressible_fuel`. Движение меняет объём, а одна и та же работа давления меняет энергию среды и момент вала. Резервуар связан с `equilibrium_fuel_duct`, включая равновесное вскипание и конденсацию. + +Запустите `compressible-fuel-chamber-duct` или `electric-compressible-fuel-duct`. Сопоставляйте массу, объём, давление, температуру, энтропию и долю пара резервуара с состояниями ячеек, моментом, мощностью и работой камеры. Независимы проверки работы жидкости и предела идеального пара, обращение равновесной изоэнтропы и квадратура давления, ОДУ жидкостного вала и уточнение RK4 полудискретных уравнений идеального пара. Сохранение, электрическая/зубчатая/гидравлическая/фрикционная композиция, переносимое воспроизведение, реальный MCP и транзакции без выделений проверяются отдельно. Численные результаты находятся в доказательствах валидации. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +Подвижный резервуар использует половину переноса, полную работу вала и вторую половину переноса. Перенос остаётся первого порядка с численной диффузией; симметричное расщепление не повышает порядок. Гладкое движение замкнутой жидкости имеет второй порядок. Приращение угла ограничено 0.25 rad за механический интервал. Сохраняются CFL, материальные границы, полный откат, отмена и независимые ветви. Стационарный импульс портов/корпуса отделён от работы давления поршня. + +Параметры остаются `unverified`. Это равновесная чистая псевдосреда: сжимаемая жидкость без теплового расширения и идеальный пар, перемешанная камера и жёсткие ячейки. Соблюдайте границы температуры и давления. Камера не разрешает кинетическую энергию среднего движения и не включает автоматический обратный клапан. Конечная скорость зародышеобразования, скольжение, реальная критическая область, измеренная калибровка и фактическая проверка Unity остаются открытыми. + +## 2026-10-23: Сжимаемые равновесные топливные каналы + +`equilibrium_fuel_duct` переносит массу, импульс и полную энергию через явные ячейки `compressible_fuel`. Жидкость сжимаема, пар идеален; обе фазы имеют общие давление, температуру и скорость. Локальное равновесие допускает конденсацию и вскипание. Два конечных неподвижных резервуара и конечная тепловая стенка замыкают балансы. + +Запустите `equilibrium-fuel-condensing-duct` или `equilibrium-fuel-flashing-duct`. Каждая ячейка выдаёт плотность, скорость, долю фазы, скорость звука, температуру и энергию. Наблюдаемы масса и энергия портов, импульс стенки и полные запасы. Независимые проверки охватывают работу сжатия, предел идеального пара, равенство химических потенциалов, соотношения Клапейрона и Гиббса, звук через обращение энтропии, обращение массы и энергии, сохранение и трение с конечной стенкой. Ошибки средних акустических значений уменьшаются на 8, 16 и 24 ячейках. Точное воспроизведение, откат, отмена, ветви, шаги без выделений, переносимые assets и реальный MCP проверяются отдельно; подробности находятся в доказательствах валидации. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +Консервативный поток Русанова обновляет все грани из одного состояния подшага. Верхняя оценка скорости складывает максимальную абсолютную скорость и акустическую границу материала. Ограничение CFL равно 0.2 минимального объёма портов, делённого на площадь и скорость; допускается до 4096 подшагов на интервал. Перенос и точное локальное затухание от сопротивления расщеплены с первым порядком. Численная диффузия входит в изменение полной энтропии отдельно от тепла трения. Неподвижные границы поглощают импульс без механической работы; входящая кинетическая энергия переходит во внутреннюю энергию конечного резервуара. Недопустимое состояние или уменьшение энтропии сверх округления отклоняет весь пакет. Уменьшите шаг и проверьте границы материала и разрешение сетки. + +Параметры остаются `unverified`. Соблюдайте пределы температуры и давления, положительную скрытую энтальпию, раздельные объёмы сосуществования и разреженный пар. Это жёсткий горизонтальный канал постоянного сечения с мгновенным однородным равновесием. Не учитываются конечная скорость зародышеобразования, скольжение фаз, поверхностное натяжение, тяжесть, упругость стенки и реальная критическая область. Диффузия первого порядка размывает фронты; сохранение и воспроизведение не доказывают пространственную точность или соответствие измеренному оборудованию. Проверка в Unity ещё требуется. + +## 2026-10-23: Импульс конечной линии жидкого топлива + +`fuel_inertial_pipe` соединяет два конечных топливных узла и конечную тепловую стенку. Горизонтальная жёсткая линия имеет собственные массу жидкости, калорическую и кинетическую энергии сверх запасов сосудов. Плотность постоянна, температура переменна при полном смешении. Порты и линия остаются жидкими; квазистатические связи сохраняют отдельную двухфазную модель. + +Независимое гармоническое решение с конечной податливостью и отдельная RK4 нелинейного импульса/температур проверяют точность и первый порядок. Проверены тепло, энтропия, реверс, полные балансы, пробные интервалы сцепления, выделения памяти, откат, отмена и ветви. Переносимые assets и реальный MCP проверяют все границы. Это не калибровка оборудования и не фактический Unity. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +Импульс использует средний расход и принятые конечные давления. Энергия портов и смешение — обратный Эйлер, поэтому порядок всего сопряжения первый. Даже без трения дискретизация давлений превращает часть колебаний в численную теплоту; она не записывается как физическое трение. Энтропия учитывает смешение и дискретизацию. События нулевого расхода сохраняют прямой и обратный перенос отдельно. + +Параметры — `unverified`. Действуют материальные температурные/давленческие пределы и жидкая устойчивость с поправкой давления. Ошибка откатывает весь интервал; уменьшите шаг и проверьте истощение, давление и фазу. Не учтены переменная плотность двухфазного потока, кавитация, акустика, тяжесть, подвижная геометрия и тепловые фронты. Предписанное горение не подтверждает подробное химическое равновесие или энтропию реакции. + +## 2026-10-20: Опорная модель импульса жидкостного входа + +`LiquidColumn` — самостоятельная C#-опора горизонтальной жёсткой трубы с постоянными сечением, равномерной скоростью, плотностью жидкости и температурой. Абсолютные давления портов заданы на локальном интервале. Линейное и квадратичное сопротивления — явные исследовательские параметры. Это не компонент графа; уравнения топливной сети и сопла не меняются. + +Независимые решения без потерь, экспонента линейного и гиперболический тангенс квадратичного сопротивления проверяют пределы. Независимая RK4 при переменном давлении проверяет второй порядок с реверсом. На обеих сборках проверены пассивное затухание, стационарность, энергия, неотрицательная энтропия, отказы, неизменяемость и выделения памяти. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +Параметры остаются `unverified`. Нижнее давление задаёт пользователь как область жидкости; оно не предсказывает давление пара или NPSH. Сжимаемость, акустика, тяжесть, подвижная геометрия, тепловой запас, кавитация, скольжение и релаксация фаз исключены. Двухфазные связи остаются квазистатическими. Фактический Unity и измеренная калибровка проверяются отдельно. + +## 2026-10-20: Подача топлива с замороженным паросодержанием в конечный приёмник + +Насос топливного домена теперь питает физическую иглу и сопло с замороженным паросодержанием в работающий цилиндр с конечным объёмом жидкости. Полные запасы включают фазовый переход, работу вытеснения, кинетическую энергию и импульс неподвижной стенке. + +Независимые пределы Бернулли и идеального газа, отдельная максимизация потока смеси, энергия/энтропия и независимо интегрированная ODE сопла/приёмника проверяют уравнения. Временная сходимость первого порядка. Переносимое воспроизведение, реальный MCP, откат, отмена, независимые ветви и память проверяют интеграцию. Unity Editor/Play/Player/IL2CPP фактически не проверен. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +Параметры остаются `unverified`. Действуют заданные температуры, положительный газовый объём и разреженный пар. Не учтены местная входная инерция, конечная нуклеация, скольжение фаз, разрешённый распыл, реальная критическая область и измеренная калибровка. Предписанное горение не подтверждает химическое равновесие и энтропию реакции. Далее — вход, зажигание, впуск/выпуск, потери и ECU/TCU. + +## 2026-10-20: Фазоразрешающий топливный насос с приводом от вала + +Обязательная последовательная проверка пройдена локально на Windows x64/.NET 10.0.12. Новые проверки топливного насоса выполняются для обеих целей сборки. Проверки Standard размещены на .NET 10; фактический Unity Editor/Play/Player/IL2CPP не проверен. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +Независимые работа/давление жидкости, адиабаты идеального пара и обращение двухфазной энтропии проверяют замыкание. Закрытая жидкостная механика показывает второй порядок; полное фазовое наполнение/подача — первый порядок относительно независимо обращённой RK4-опоры. Недостаточный и полный приток, электропривод, передачи/гидравлика/сцепления, воспроизведение, откат и выделения памяти проверяют интеграцию. Asset v33 хранит геометрию и читает v1-v32. Фактический Unity Editor/Play/Player/IL2CPP не проверен. + +Параметры остаются `unverified`. Границы температуры, давления и представимого объёма действуют весь цикл. Приняты несжимаемая жидкость, идеальная псевдокомпонента пара, мгновенное равновесие при общей температуре и нулевое внешнее давление корпуса. Местная инерция/NPSH, критический поток, задержка нуклеации, инерция/гистерезис клапанов, реальные смеси и измеренная калибровка открыты. Подключение форсунки и работа вытеснения/кинетики приёмника ещё отдельны. + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[Фазоразрешающий топливный насос с приводом от вала](FUEL_CHAMBER_PUMP.ru.md) + + +## 2026-10-20: Сеть переноса равновесного топлива + +Обязательная последовательная проверка пройдена локально на Windows x64/.NET 10.0.12. Новые проверки топливной сети выполняются для обеих целей сборки. Проверки Standard размещены на .NET 10; фактический Unity Editor/Play/Player/IL2CPP не проверен. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +Лаборатории проверяют выход жидкости в сосуществование, обратный поток, открытие и конечный тепловой/электромеханический обмен. Независимые экспонента жидкостного давления, совместная двухфазная ОДУ массы/энтальпии/тепла, тепловая инверсия и пробный захват сцепления проверяют точность и композицию. Ассеты и фактический MCP сохраняют все значения и хэши. Asset v32 хранит свойства и читает v1-v31. Фактический Unity Editor/Play/Player/IL2CPP не проверен. + +Границы материала и представимой деформации стенки определяющей модели сохраняются. Параметры остаются `unverified`. Наполнение насоса и работа вала, подключение форсунки, местная инерция, критическое течение, задержка нуклеации, скольжение и измерения реальных смесей ещё требуют работы. Существующие насосные рампы форсунок пока сохраняют путь отделённой жидкости. + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[Сеть переноса равновесного топлива](EQUILIBRIUM_FUEL_NETWORK.ru.md) + + +## 2026-10-20: Эталон податливого объёма топлива + +Обязательная последовательная проверка пройдена локально на Windows x64/.NET 10.0.12. Новые проверки определяющей модели выполняются для обеих целей сборки. Проверки Standard размещены на .NET 10; фактический Unity Editor/Play/Player/IL2CPP не проверен. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +Проверки сравнивают химические потенциалы, наклоны Клапейрона, производные энергии и энтропии и соотношение Гиббса с упругим накоплением. Независимая максимизация энтропии с ограничениями не использует решатель насыщения. Пределы жёсткого сосуда, идеального газа и экстенсивного масштабирования, а также уточнение RK4 конечной ванны дают независимые опоры. Теплообмен сохраняет энергию и сходится с первым порядком при неубывании полной энтропии. Это не подтверждает измеренные свойства топлива или приёмку Unity. + +Замыкание податливого сосуда с чистым топливом рассчитывает жидкость, пар и сосуществование с упругим накоплением. Это локальная определяющая модель; насосный и сопловой перенос графа ещё требует интеграции. + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[Эталон податливого объёма топлива](COMPLIANT_FUEL_VOLUME.ru.md) + + +## 2026-10-20: Равновесие топлива в баке конечного объёма + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Проверки Standard работают на .NET 10; реальная Unity Editor/Play/Player/IL2CPP остаётся непроверенной. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` проверяет реверс насоса, топливную вентиляцию и конечную нагретую стенку. `equilibrium-tank-fired-cylinder` связывает такую подачу с двигателем. Проверяются независимый максимум энтропии, химические потенциалы, калорические производные, сходимость ODE, балансы, воспроизведение, откат и аллокации. Asset v31 хранит флаг и читает v1-v30. + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +Связанные примеры насоса, тепла и вентиляции показывают первый порядок. Обе фазы источника остаются в заданном интервале температур, общая плотность ниже жидкой с запасом округления binary64. Постоянные плотность/газовые свойства, мгновенное равновесие и плоская граница — исследовательские приближения. Реальные смеси, поверхностное натяжение, плеск, конечная кинетика, измеренная калибровка и реальная Unity Editor/Play/Player/IL2CPP не проверены. + +[TANK_PHASE_EQUILIBRIUM.ru.md](TANK_PHASE_EQUILIBRIUM.ru.md) + +## 2026-10-13: Фазовое равновесие топлива и границы жидкой подачи + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Проверки Standard работают на .NET 10; реальная Unity Editor/Play/Player/IL2CPP остаётся непроверенной. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` демонстрирует конденсацию, испарение при вентиляции и повторную конденсацию. `equilibrium-injected-cylinder` добавляет обратимое равновесие приёмника и запасы подачи в двигатель с вентилируемым баком. Проверены независимый максимум энтропии, аналитические пределы, совместное уточнение ODE, полное воспроизведение, откат и аллокации. Asset v30 хранит свойства и читает v1-v29. + +Сравнение допускает лишь округление binary64: `64 * epsilon * max(p, p_sat)`, где `epsilon = 2^-52`. Выдаваемый запас не обрезается. Это проверка объёмного насыщения; местные потери давления и NPSH насоса требуют разрешённой модели потока. Независимые проверки также требуют неубывания полной энтропии при адиабатическом равновесии и теплообмене с конечной стенкой. + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +Параметры `unverified`. Измеренные свойства бензина, многокомпонентная или конечная кинетика фаз, разрешённые вытеснение/распыл и OEM-калибровка не предоставлены. Реальная приёмка Unity Editor/Play/Player/IL2CPP остаётся открытой. + +[FUEL_PHASE_EQUILIBRIUM.ru.md](FUEL_PHASE_EQUILIBRIUM.ru.md) + +## 2026-10-08: Геометрия бака и конечное газовое пространство + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Проверки Standard работают на .NET 10; реальная Unity Editor/Play/Player/IL2CPP остаётся непроверенной. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +Примеры `vented-tank-liquid-cylinder` и `vented-tank-needle-cylinder` используют бак 1513, газ 1520 и вход вентиляции 960. Asset v29 хранит геометрию и читает v1-v28. Проходят аналитические работа/производные, независимая сходимость ODE, балансы, portable/MCP воспроизведение, откат и шаг без аллокаций. + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +Жёсткий смешанный бак, несжимаемая жидкость и идеальный газ. Плеск/гидростатическая форма, фазовое равновесие, кавитация, измеренные карты насоса/клапанов, OEM калибровка и реальная Unity Editor/Play/Player/IL2CPP остаются открытыми. Параметры `unverified`. + +[TANK_HEADSPACE.ru.md](TANK_HEADSPACE.ru.md) + +## 2026-10-08: Полное обнаружение лабораторий и компонентов + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Проверки Standard работают на .NET 10; реальная Unity Editor/Play/Player/IL2CPP остаётся непроверенной. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`, примеры MCP, экспорт Unity и последовательная проверка используют общий каталог. Покрыт каждый источник, каждый объявленный пример проверен через реальный stdio, а компоненты соответствуют полной схеме модели. Все отпечатки лабораторий, хэши источников и каждого выборочного состояния совпадают с базой. Asset v28 и предыдущие читатели не изменены. + +Аудит документации охватывает совпадение разделов, единственную строку языков и полные таблицы во всех десяти языках. Каталог и ответ CLI соответствуют `power.laboratory_catalog.v1.schema.json`. + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +Геометрия/газовое пространство бака, более полное поведение двигателя, координация ECU/TCU, измеренная калибровка и реальная приёмка Unity остаются открытыми. Исследовательские параметры остаются `unverified`. + +## 2026-10-05: Отслеживаемый возврат через сброс топлива + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Сборка Standard проверяется на .NET 10; реальная Unity Editor/Play/Player/IL2CPP не проверена. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +Независимые спад/работа давления, совместное уточнение механики/давления/тепла, доли, пути, внешние границы, replay, rollback и выделения проходят проверки. Кипение или неразрешённый интервал переноса отклоняет всю партию. Геометрия/вентиляция, измеренные клапаны/насосы, кавитация, распыл, OEM-калибровка и реальные Unity Editor/Play/Player/IL2CPP открыты. + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.ru.md](LIQUID_FUEL_RETURN.ru.md) + +## 2026-10-05: Конечный бак жидкого топлива + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Сборка Standard проверяется на .NET 10; реальная Unity Editor/Play/Player/IL2CPP не проверена. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +Масса и тепловая энергия достигают точного нуля; прямой расход/реакция исчезают, а вал сохраняет реальную динамику. Возврат восстанавливает жидкий запас при смешанной температуре рампы. Аналитический мокрый обмен, энергия вала/давления при опустошении, полный rollback и выделения проходят проверки. + +Химическая граничная энергия включает несгоревшее топливо в выпуске. Бак переносит топливо внутри; интегрированные проверки сравнивают изменение полного химического запаса плюс выделенное тепло с чистой граничной энергией. + +Геометрическая вместимость, вентиляция/газовая полость/плескание, кавитация, измеренные заполнение/КПД/регулирование и разрешённый распыл остаются открытыми. Параметры `unverified`; реальные Unity Editor/Play/Player/IL2CPP и OEM-калибровка не проверены. + +Предыдущая ревизия проходит CI Windows, Linux и macOS. Этот запуск не проверяет конечный бак. + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.ru.md](LIQUID_FUEL_TANK.ru.md) + +## 2026-10-05: Жидкая топливная рампа с насосной подачей + +Обязательная последовательная проверка проходит локально на Windows x64/.NET 10.0.12. Сборка Standard проверяется на .NET 10; реальная Unity Editor/Play/Player/IL2CPP не проверена. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +Шесть физических/транзакционных групп, две группы активов, три интегрированные группы и два реальных MCP-сценария покрывают подачу. Входящая тепловая/химическая энергия суммируется с энергией газовой границы; энергия давления учитывается один раз. KPI использует аналитическую насосную верхнюю границу 920541.8 Pa вместо начального давления. + +Источник — явная внешняя граница, а не моделируемый конечный бак. Опустошение бака, эффективность/регулирование насоса, потери линий, кавитация, зависимости свойств от давления и конечный объём распыла ещё открыты. Параметры `unverified`; это не подтверждает OEM-калибровку или реальные Unity Editor/Play/Player/IL2CPP. + +Предыдущий checkpoint AT также проходит CI Windows, Linux и macOS на записанной ревизии. Этот запуск не проверяет данные изменения подачи. + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.ru.md](PUMP_FED_FUEL.ru.md) + +## 2026-10-05: Обратная связь AT и управление давлением + +Обязательная последовательная проверка проходит на Windows x64/.NET 10.0.12. Сборка Release без предупреждений и ошибок. Реальная приёмка Unity и новые проверки Linux/macOS остаются неподтверждёнными. + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 физических/транзакционных групп охватывают все передачи вперёд и назад, фактические давление/контакт/блокировку, владение клапанами, часы и пределы PI. Ошибки включают потерю питания, заблокированный слив, тайм-аут включения/отпускания, блокировку смены направления и потерю подтверждённого замыкания. 2 группы ресурсов сохраняют типизированные маршруты и отклоняют переподписанное понижение. 3 интеграционные группы и 2 реальных сценария MCP совпадают по каждому скаляру и хешу состояния. + +Старт назад и восстановление остаются Applying на 500 ms и подтверждаются до 800 ms в объявленном интервале. Тесты следуют фактическому замыканию, а не фиксированной задержке. Безопасный слив не устраняет физическую блокировку. Граф двигателя/планет/приводов/управления сохраняет 122 состояния при неизменном пределе 128. + +Параметры остаются `unverified`. Координация момента ECU, подробные датчики/клапаны, полный набор неисправностей, калибровка OEM и реальная приёмка Editor/Play/Player/IL2CPP не завершены. + +[AT_CONTROL.ru.md](AT_CONTROL.ru.md) + + ## 2026-10-02: общее гидравлическое питание AT и динамический поршневой привод Обязательная последовательная команда `dotnet run --file tools/Build.cs -- verify` проходит локально @@ -2166,6 +3560,3 @@ dotnet run --file tools/Build.cs -- unity-test Точка входа публикации — `Power.Studio.Editor.ProjectSetup.BuildPlayer`, с выбранной настольной целью и IL2CPP. Ей нужен соответствующий модуль сборки платформы Unity. Собранного или проверенного пакета Player ещё нет. Каждый текущий параметр — синтетический параметр эксперимента. Полные двигатель и трансмиссия, калибровка автомобиля, выбросы, акустика, бюджет реального времени и долгие прогоны всё ещё нуждаются в собственной реализации и свидетельствах. Эти проверки эту работу не устанавливают. - - - diff --git a/docs/VALIDATION.zh-CN.md b/docs/VALIDATION.zh-CN.md index 663833c..1a56e32 100644 --- a/docs/VALIDATION.zh-CN.md +++ b/docs/VALIDATION.zh-CN.md @@ -2,6 +2,1400 @@ [English](VALIDATION.md) · **简体中文** · [Français](VALIDATION.fr.md) · [Русский](VALIDATION.ru.md) · [日本語](VALIDATION.ja.md) · [한국어](VALIDATION.ko.md) · [Deutsch](VALIDATION.de.md) · [Español](VALIDATION.es.md) · [Italiano](VALIDATION.it.md) · [Português](VALIDATION.pt-BR.md) +## 2026-11-17: 相变弛豫燃料泵与冻结相态计量 + +`compressible_fuel_chamber` 可以控制 `relaxing_fuel` 储腔的体积。可逆轴功保持蒸气质量分数不变,化学弛豫作为独立的能量守恒源项处理。`compressible_fuel_nozzle` 在 `phase_mode` 为 `frozen` 时连接两个弛豫储腔,同时输运总质量、蒸气质量与滞止焓;实际电磁线圈、弹簧和行程限位可通过物理针阀计量开度。 + +运行 `relaxing-fuel-chamber` 或 `relaxing-pump-needle`。可观察腔体体积与功、实际及平衡质量分数、相变熵、`total_vapor_delivered`、端口库存和全局蒸气残差。检查对照纯相绝热线、独立固定质量分数压力积分、微小位移功、可逆循环及独立理想蒸气轴动力学 ODE;有限速率耦合细化、共享储腔源项时间、完整账本、取消、回滚、分支、分配、资产重放和真实 MCP 分别验证。数值记录在验证证据中。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 601/601 | +| standard_checks_on_dotnet | 477/477 | +| actual_mcp_groups | 72/72 | +| laboratories | 68 | +| agent_examples | 67 | +| unchanged_laboratories | 66 | +| identical_complete_sample_boundaries | 7641 | +| all_sample_boundaries | 7663 | +| new_core_groups | 14 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| coupled_transport_order | 1 | +| ideal_vapor_mechanical_observed_order | 2 | +| global_cfl | 0.2 | +| nozzle_inventory_fraction | 0.02 | +| maximum_global_substeps | 4096 | +| frozen_work_inverse_iterations | 96 | +| small_increment_expm1_terms | 20 | +| asset_version | power.asset.v41 | +| agent_api_version | 0.46.0 | +| fingerprint_tag | 46 | +| relaxing_fuel_domain | 9 | +| compressible_fuel_chamber_kind | 50 | +| compressible_fuel_nozzle_kind | 51 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_chamber_record_bytes | 40 | +| compressible_nozzle_record_bytes | 68 | +| additional_binary_records | 0 | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_chamber | 4 | +| reported_states_per_relaxing_nozzle | 14 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_field | 122 total_vapor_delivered | +| v40_fixture_sha256 | 17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39 | +| verification_log_sha256 | 7a62b3ee6738412dd8a996cc76ee864e338f1c3ccb0661f477826464d379cd04 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 68 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 260 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| independent_ideal_vapor_shaft_step_ns | absolute_speed_error_rad_s | +|---|---| +| 100000 | 2.867884063562087e-07 | +| 50000 | 7.169742843871063e-08 | +| 25000 | 1.7924008943737135e-08 | +| 12500 | 4.4805972265749006e-09 | + +| coupled_temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 3.3151840717060566e-09 | +| 2000 | 50 | 1.5796856045469099e-09 | +| 1000 | 50 | 7.557253156598165e-10 | +| 500 | 50 | 3.546929971953716e-10 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_work_on_fluid_j | final_chamber_quality | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-chamber | e42f317dc73ba1bb | ef3d05f53148387c | 11 | 1.7763568394002505e-15 | 1.3234889800848443e-23 | -0.013348770030170752 | 0.5814118030618711 | +| relaxing-pump-needle | c55dcb4161f444ee | b7e1f60030e41448 | 11 | 1.1004572683659397e-08 | 3.1707487240382657e-20 | 0.0043416095880151285 | 0.0005220656468952762 | + +| laboratory | final_outlet_mass_kg | final_outlet_vapor_mass_kg | final_nozzle_pair_entropy_j_k | +|---|---|---|---| +| relaxing-pump-needle | 5.92118672365094e-05 | 1.5650074303960157e-08 | 2.3206811723437562e-05 | + +- `artifacts/reports/relaxing-boundary-final-2026-11-17.log` +- `artifacts/reports/relaxing-boundary-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-boundary-doc-audit-2026-11-17.json` + +固定质量分数的熵关系确定体积变化后的压力与温度。做功包括液体冷压缩能,小位移采用稳定的增量函数计算,同一离散功用于轴转矩。每个全局区间在守恒管道及冻结喷嘴输运前后,对各节点仅施加一次相变源项。区间受管道 CFL 和喷嘴两端较小库存的 0.02 比例限制,最多允许 4096 个区间。机械做功与源项演化分开;耦合输运仍为一阶,需要时间细化检查。 + +参数仍为 `unverified`。喷嘴两端必须具有相同域和材料,弛豫端口拒绝平衡输运模式。有限速率体相弛豫不表示已解析零容积喷嘴内部的化学转化或停留时间。模型不含相间滑移、液体负压张力、成核势垒定律、喷雾、载气或燃烧接收腔。运动储腔保持均匀混合且整体流速为零;管道内部单元仍为刚性且各有一个所有者。仅适用远离临界行为的稀薄理想蒸气,并须满足材料声明的正压、温度边界、正潜焓与分离的共存比容。初始蒸气质量分数是显式研究输入。数值吻合不证明实测标定或实际 Unity 验收。 + +## 2026-11-17: 有限速率燃料相变弛豫 + +`relaxing_fuel` 节点具有独立的蒸气质量分数。液体与蒸气共享压力、温度和速度,化学平衡则需要显式声明的有限时间。`relaxing_fuel_duct` 通过显式网格输运质量、动量、总能量和蒸气质量;停留时间由网格几何与实际流速决定。 + +运行 `relaxing-fuel-evaporation` 或 `relaxing-fuel-duct`。可观察实际与平衡质量分数、化学亲和势、相变熵、端口蒸气库存和全局蒸气残差。蒸发、凝结历史按每个已接受时间步的净源项转移量正负累计,不表示微观正反向总通量。检查覆盖独立指数解析解、熵导数、冻结声学、刚性平衡极限、时间自细化和独立线性声学网格细化。事务、可移植重放与真实 MCP 分别验证;数值记录在验证证据中。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 583/583 | +| standard_checks_on_dotnet | 461/461 | +| actual_mcp_groups | 70/70 | +| laboratories | 66 | +| agent_examples | 65 | +| unchanged_laboratories | 64 | +| identical_complete_sample_boundaries | 7619 | +| all_sample_boundaries | 7641 | +| new_core_groups | 13 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| global_cfl | 0.2 | +| maximum_global_substeps | 4096 | +| fixed_quality_flash_iterations | 80 | +| asset_version | power.asset.v40 | +| agent_api_version | 0.45.0 | +| fingerprint_tag | 45 | +| relaxing_fuel_domain | 9 | +| relaxing_fuel_duct_kind | 52 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| relaxing_fuel_material_record_bytes | 180 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| reported_states_per_relaxing_node | 8 | +| reported_states_per_relaxing_duct | 13 | +| additional_output_fields | 117..121 | +| phase_relaxation_time_ns | 1..3600000000000 | +| v39_fixture_sha256 | 95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac | +| verification_log_sha256 | 11cf926daee32bb5f87e835d649a370fcd984390df9ad0664f4a2984b631a9b0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 66 | +| schema_negative_cases | 15 | +| documentation_locales | 10 | +| documentation_files | 250 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| initial_quality | equilibrium_quality | quality_after_two_tau | specific_entropy_change_j_kg_k | +|---|---|---|---| +| 0.3 | 0.40689075997022106 | 0.3924246686942744 | 5.54875710970839 | +| 0.1 | 0.022095016639203525 | 0.0326383096278805 | 21.749238363251123 | + +| temporal_self_refinement_step_ns | reference_step_ns | quality_absolute_error | +|---|---|---| +| 4000 | 50 | 4.841542071720717e-05 | +| 2000 | 50 | 3.054656079609641e-05 | +| 1000 | 50 | 1.4934826843782112e-05 | +| 500 | 50 | 7.0868146199720705e-06 | + +| independent_linear_frozen_acoustic_cells | normalized_cell_average_error | +|---|---| +| 4 | 0.11807384309213376 | +| 8 | 0.08979190596364788 | +| 12 | 0.07380850723566255 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | maximum_sampled_vapor_mass_residual_kg | final_source_quality | final_source_phase_entropy_j_k | +|---|---|---|---|---|---|---|---| +| relaxing-fuel-evaporation | 91025ced0013231b | bea1aa00312ec239 | 11 | 0 | 3.3881317890172014e-21 | 0.39242466869427434 | 0.0014286807703571605 | +| relaxing-fuel-duct | 18dcdf1a72d04529 | fc90c667851d977b | 11 | 1.4551915228366852e-11 | 1.1142290872151208e-20 | 0.2931345788652313 | 0.0003028266650770687 | + +- `artifacts/reports/relaxing-fuel-final-2026-11-17.log` +- `artifacts/reports/relaxing-fuel-verify-exit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-evidence-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-baseline-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-schema-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-provenance-audit-2026-11-17.json` +- `artifacts/reports/relaxing-fuel-doc-audit-2026-11-17.json` + +守恒 Rusanov 通量输运四个场。每个全局 CFL 区间依次执行半步局部相变、输运和半步相变;共享储腔每次只接受一次源项,与连接管道数无关。孤立定容状态的源项轨迹为精确解,耦合方法仍具有一阶输运误差。CFL 使用冻结质量分数声速上界,局部相变与管道熵变分别检查;越界状态会回滚整个批次。 + +参数仍为 `unverified`。`initial_vapor_mass_fraction` 必须在 [0,1] 内,弛豫时间必须为 1 ns 至一小时的整数。状态须处于材料温度范围和正压力边界内。模型假设刚性水平等截面管道、单一纯伪流体、液体零热膨胀与理想蒸气,未包含相间滑移、界面传热延迟、表面张力、喷雾或载气。弛豫域与泵、喷嘴、运动腔和燃烧接收腔的直接耦合仍待实现。守恒、重放和细化不证明实测硬件有效性或实际 Unity 验收。 仅适用于远离真实流体临界区的稀薄蒸气;材料需保持正潜焓及分离的两相共存比容。 + +## 2026-11-17: 平衡燃料喷嘴输运 + +将 `compressible_fuel_nozzle` 的 `phase_mode` 设为 `equilibrium`,即可在穿越过程中采用瞬时均相相平衡。液体与蒸气共享压力、温度和速度,蒸气质量分数沿等熵线变化。喷嘴与有限储腔使用相同的可压缩液体冷势能和理想蒸气参考。`frozen` 模式作为另一种明确假设继续支持。 + +运行 `equilibrium-flashing-nozzle` 或 `equilibrium-pump-needle`。新增 `flux_relative_uncertainty` 通道描述最近接受的局部本构通量包络,不约束平均流量、累计输送量、一阶时间积分或标定误差。检查采用独立饱和/熵反演、气体和液体解析阻塞、另行实现的稠密全局压力搜索、能量与熵恒等式,以及解析蒸气排空细化。完整库存、轴/管路/针阀组合、回滚、取消、独立分支、内存分配、可移植资产和实际 MCP 分别验证。数值结果及保留的旧边界见验证证据。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 566/566 | +| standard_checks_on_dotnet | 446/446 | +| actual_mcp_groups | 68/68 | +| laboratories | 64 | +| agent_examples | 63 | +| unchanged_laboratories | 62 | +| identical_complete_sample_boundaries | 7597 | +| all_sample_boundaries | 7619 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_global_pressure_scan_intervals | 4000 | +| maximum_local_flux_relative_uncertainty | 0.0001 | +| stack_intervals | 512 | +| global_splits | 8192 | +| pressure_integral_panels | 256 | +| closure_iterations | 80 | +| asset_version | power.asset.v39 | +| agent_api_version | 0.44.0 | +| fingerprint_tag | 44 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| reported_states_per_frozen_nozzle | 13 | +| reported_states_per_equilibrium_nozzle | 14 | +| additional_output_field | 116 | +| v38_fixture_sha256 | b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195 | +| verification_log_sha256 | 2be9921f4634380f8b9ce177c8da5c922413f4eb0422b761561ac6ab8d92ba65 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 64 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 240 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.9392239954291264e-08, 2.4695055752880482e-08, 1.2347261926729528e-08, 6.1735645367117e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | last_flux_relative_uncertainty | last_equilibrium_exit_vapor_fraction | +|---|---|---|---|---|---|---|---|---| +| equilibrium-flashing-nozzle | 8099b7425ea5b4d9 | 557164f82f2dd0e3 | 11 | 1.1641532182693481e-10 | 1.7661137765032928e-07 | 6.957073803745578e-06 | 1.1571916635366719e-05 | 0.21267793887461828 | +| equilibrium-pump-needle | a20286a9c7bbf3c1 | 30337e4b5d9e0b28 | 11 | 2.218044357904514e-08 | 1.6315747705993148e-05 | 8.685222016514312e-05 | 2.7755575615628914e-13 | 0 | + +- `artifacts/reports/equilibrium-nozzle-final-2026-11-17.log` +- `artifacts/reports/equilibrium-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/equilibrium-nozzle-doc-audit-2026-11-17.json` + +平衡声速平方为正,使密度沿等熵线随压力增加;焓降则随压力增加而减小。利用这两个单调因子,可对各压力区间的通量给出上界,覆盖相边界和多个极值。分支定界返回采样流量下界及剩余上界,相对宽度不超过 1e-4。最多使用 512 个栈上区间和 8192 次分裂。热力学端点差使用舍入裕量和单调压力积分界,最多细化 256 个 Riemann 区间及 80 次闭合迭代。无法满足包络时拒绝整个批次。光滑内部极值满足声速条件,相边界极值则可能不光滑。 + +参数仍为 `unverified`。这一平衡极限采用单一纯伪流体、理想蒸气、零液体热膨胀和共同相速度,未包含有限成核与弛豫时间、相间滑移、喷雾、载气及燃烧接收腔耦合。数值包络使用声明的 binary64 裕量,不是形式化的定向舍入区间证明。临界过渡附近的喉部分类须结合通量包络解释。实测硬件有效性和实际 Unity 验收仍待完成。 + +## 2026-11-17: 冻结相态可压缩燃料喷嘴 + +`compressible_fuel_nozzle` 在有限 `compressible_fuel` 储腔之间提供单向流动,可连接轴驱动腔室。液体压缩能与理想蒸气使用同一储腔材料。显式声明 `phase_mode` 为 `frozen`:通过喷嘴时蒸气质量分数不变,主体储腔则重新达到相平衡。 + +运行 `compressible-fuel-nozzle` 检查有限蒸气排放,或运行 `compressible-pump-needle` 检查管路供给、轴驱动泵、单向入口和电磁针阀输送。可读取累计质量、焓、喷流动能、壁面热、冲量和成对熵变。平均流量与力覆盖完整时间步,喉部、出口和相分数通道保留最近接受的穿越状态。检查对比精确液体功、气体/液体解析阻塞、独立压力积分、冻结熵和声速导数、稠密通量扫描及解析阻塞排空细化。守恒、实际针阀运动、回放、分支、回滚、取消、内存分配和资产/MCP 操作分别验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 552/552 | +| standard_checks_on_dotnet | 434/434 | +| actual_mcp_groups | 66/66 | +| laboratories | 62 | +| agent_examples | 61 | +| unchanged_laboratories | 60 | +| identical_complete_sample_boundaries | 7575 | +| all_sample_boundaries | 7597 | +| new_core_groups | 10 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_order | 1 | +| independent_pressure_quadrature_panels | 4096 | +| independent_flux_scan_intervals | 2000 | +| asset_version | power.asset.v38 | +| agent_api_version | 0.43.0 | +| fingerprint_tag | 43 | +| compressible_fuel_nozzle_kind | 51 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_nozzle_record_bytes | 68 | +| compressible_nozzle_quantity_fields | 4 | +| additional_reported_states_per_nozzle | 13 | +| v37_fixture_sha256 | 60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7 | +| verification_log_sha256 | 9599880293002adba43920747a1ef01b3de06594de3a943ae9ae51f7859f0528 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 62 | +| schema_negative_cases | 14 | +| documentation_locales | 10 | +| documentation_files | 230 | +| build_runner_native_aot_publish | false | +| nuget_vulnerability_audit_disabled | false | +| host_runtime_patched_by_task | false | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_mass_errors | +|---|---|---| +| analytic_choked_vapor_blowdown | 1000000, 500000, 250000, 125000 | 4.939224007584049e-08, 2.469505587442971e-08, 1.2347262048278756e-08, 6.173564658260928e-09 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_delivered_mass_kg | final_pair_entropy_change_j_k | +|---|---|---|---|---|---|---| +| compressible-fuel-nozzle | 65c49a0b6da4c438 | 9ae549d2dcea957d | 11 | 3.725290298461914e-09 | 2.5303190773661796e-09 | 5.815403443478657e-07 | +| compressible-pump-needle | a238a7853adba1e9 | 996acf904f8b56de | 11 | 2.223414456367645e-08 | 2.0271463574203465e-05 | 0.00011595302227825816 | + +- `artifacts/reports/compressible-nozzle-final-2026-11-17.log` +- `artifacts/reports/compressible-nozzle-verify-exit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-evidence-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-baseline-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-schema-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-provenance-audit-2026-11-17.json` +- `artifacts/reports/compressible-nozzle-doc-audit-2026-11-17.json` + +守恒的一阶子步在储腔之间转移相同的质量和焓,并在接收流体与壁面之间分配喷流动能。接受子步前检查两端材料状态与总熵变。每个区间最多 4096 个子步,每个候选最多减半 64 次;初始转移量上限是较小储腔质量的 0.1 倍。闭阀压差允许 128 倍 binary64 epsilon 乘以最大体积模量或端口压力的舍入量,报告压力不作钳制。失败区间会回滚整个批次。应减小时间步并检查库存、材料边界、针阀行程及阀口面积。 + +参数仍为 `unverified`。模型采用理想蒸气及可压缩、零热膨胀液体组成的纯伪流体。须遵守声明的温压范围,包括理想喷流温度。冻结穿越可保留过热液体,但不预测实测成核或亚稳态极限。有限速率弛豫、相间滑移、解析喷雾、不凝载气、燃烧接收腔耦合、实测特性图及实际 Unity 验收仍待完成。守恒与回放不能证明硬件有效性。 + +## 2026-10-26: 轴驱动可压缩燃料腔室 + +`compressible_fuel_chamber` 将转轴连接到有限的 `compressible_fuel` 储腔。轴运动改变容积,同一压力功同时改变流体能量和轴转矩。储腔可通过 `equilibrium_fuel_duct` 供给或接收燃料,并发生平衡闪蒸与凝结。 + +运行 `compressible-fuel-chamber-duct` 或 `electric-compressible-fuel-duct`。结合各单元状态读取储腔质量、容积、压力、温度、熵、蒸气分数,以及腔室转矩、功率和功。检查采用独立液体功与理想蒸气极限、另行反演的平衡等熵线及压力积分、液体轴运动 ODE 和理想蒸气半离散方程 RK4 细化。守恒、电气/齿轮/液压/离合器组合、精确资产回放、实际 MCP 和无分配事务分别验证。详细数值结果见验证证据。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 538/538 | +| standard_checks_on_dotnet | 422/422 | +| actual_mcp_groups | 64/64 | +| laboratories | 60 | +| agent_examples | 59 | +| unchanged_laboratories | 58 | +| identical_complete_sample_boundaries | 7553 | +| all_sample_boundaries | 7575 | +| new_core_groups | 8 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_mechanical_order | 2 | +| complete_duct_transport_order | 1 | +| independent_rk4_steps | 4000, 8000 | +| independent_isentrope_quadrature_panels | 256 | +| asset_version | power.asset.v37 | +| agent_api_version | 0.42.0 | +| fingerprint_tag | 42 | +| compressible_fuel_chamber_kind | 50 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_record_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_compressible_chamber | 4 | +| v36_fixture_sha256 | 093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5 | +| verification_log_sha256 | 6d522006d80050beed5cf1e194370a837ea564c8f097cf40113541712edb9dad | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 60 | +| schema_negative_cases | 13 | +| documentation_locales | 10 | +| documentation_files | 220 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| closed_liquid_shaft | 100000, 50000, 25000, 12500 | 3.029892336670059e-06, 7.57468126977301e-07, 1.8936980765715817e-07, 4.734514256199418e-08 | +| moving_vapor_duct | 1000, 500, 250, 125 | 0.0003081770469322745, 0.0001529805876784644, 7.621636547253657e-05, 3.804007645861641e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | final_chamber_vapor_fraction | final_shaft_work_to_fluid_j | +|---|---|---|---|---|---|---| +| compressible-fuel-chamber-duct | 4dc90226555e261a | 58ca174554cb97a2 | 11 | 7.450580596923828e-09 | 0.00019321851778233967 | -0.0019504693745775968 | +| electric-compressible-fuel-duct | e7bfdc1dbb2a257f | 88bfb8a3f73fe406 | 11 | 8.523488772421706e-12 | 1 | -0.002862662570127313 | + +- `artifacts/reports/compressible-chamber-final-2026-10-26.log` +- `artifacts/reports/compressible-chamber-verify-exit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-evidence-2026-10-26.json` +- `artifacts/reports/compressible-chamber-baseline-2026-10-26.json` +- `artifacts/reports/compressible-chamber-schema-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-provenance-audit-2026-10-26.json` +- `artifacts/reports/compressible-chamber-doc-audit-2026-10-26.json` + +可变容积储腔依次使用半步管路输运、整步轴功、半步输运。输运仍具有一阶数值扩散,对称分裂不会提高其阶数。光滑的纯液体闭腔轴运动呈二阶收敛。每个机械区间的角增量限制为 0.25 rad。管路 CFL、材料边界、完整回滚、取消与独立分支仍适用。静止端口/壳体冲量与活塞压力功分别核算。 + +参数仍为 `unverified`。模型采用平衡纯伪流体:可压缩且零热膨胀的液体、理想蒸气、混合储腔和刚性管路单元。须遵守声明的温压边界。腔室不解析主体动能,也不自动附带止回阀。有限速率成核、相间滑移、真实流体临界行为、实测标定与实际 Unity 验收仍待完成。 + +## 2026-10-23: 可压缩平衡燃料管路 + +`equilibrium_fuel_duct` 通过显式的 `compressible_fuel` 单元输运质量、动量和总能量。液体可压缩,蒸气为理想气体;两相共享压力、温度和速度。局部平衡允许凝结与闪蒸。两个有限静止储罐和一个有限热壁面闭合各项收支。 + +运行 `equilibrium-fuel-condensing-duct` 或 `equilibrium-fuel-flashing-duct`。每个单元提供密度、速度、相分数、声速、温度和能量通道,可观测端口质量与能量、壁面冲量及完整库存。独立检查覆盖液体压缩功、理想蒸气极限、化学势相等、Clapeyron 与 Gibbs 关系、通过熵反演得到的声速、质量能量反演、守恒与有限壁面摩擦。声波单元平均误差在 8、16、24 个单元上依次减小。精确回放、回滚、取消、分支、无分配步进、可移植资产与实际 MCP 分别验证;详细结果保存在验证证据中。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 526/526 | +| standard_checks_on_dotnet | 412/412 | +| actual_mcp_groups | 62/62 | +| laboratories | 58 | +| agent_examples | 57 | +| unchanged_laboratories | 56 | +| identical_complete_sample_boundaries | 7531 | +| all_sample_boundaries | 7553 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_method_order | 1 | +| empirical_convergence_order_claimed | false | +| asset_version | power.asset.v36 | +| agent_api_version | 0.41.0 | +| fingerprint_tag | 41 | +| compressible_fuel_domain | 8 | +| equilibrium_fuel_duct_kind | 49 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| compressible_fuel_material_record_bytes | 160 | +| fuel_duct_record_bytes | 56 + 4 * cell_count | +| cell_count_bounds | 1..24 | +| additional_reported_states_per_node | 3 | +| additional_reported_states_per_duct | 11 | +| additional_output_fields | 112-115 | +| v35_fixture_sha256 | a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4 | +| verification_log_sha256 | f5620c5c36fb62b0f527ee4c6fd0d46608d7e6dfa1037c115d3b763133a8c0c0 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 58 | +| schema_negative_cases | 16 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | cell_counts | normalized_cell_average_errors | +|---|---|---| +| linear_vapor_acoustics | 8, 16, 24 | 0.09390287687165255, 0.0630137934898812, 0.04692764998969021 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | initial_first_cell_vapor_fraction | final_first_cell_vapor_fraction | +|---|---|---|---|---|---|---| +| equilibrium-fuel-condensing-duct | 2552e69b3a50eb9f | a74c5bd9f4c25940 | 11 | 1.1175870895385742e-08 | 0.1 | 0.00036893825719500376 | +| equilibrium-fuel-flashing-duct | 040a92e35b2df96c | 45e5ec071dd06e39 | 11 | 1.1641532182693481e-10 | 0 | 0.0023026749474771954 | + +- `artifacts/reports/equilibrium-duct-final-2026-10-23.log` +- `artifacts/reports/equilibrium-duct-verify-exit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-evidence-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-baseline-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-schema-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-provenance-audit-2026-10-23.json` +- `artifacts/reports/equilibrium-duct-doc-audit-2026-10-23.json` + +守恒 Rusanov 通量使用同一子步状态推进所有界面。速度上界取最大速度绝对值加材料声速上界。CFL 限制为 0.2 乘最小端口体积再除以截面积和速度,每个积分区间最多 4096 个子步。输运与局部精确阻力衰减采用一阶分裂。数值扩散计入总熵变,与单独报告的摩擦热区分。静止边界吸收储罐动量,机械功为零;流入动能在有限储罐内转化为内能。无效状态或超过舍入误差的熵减会拒绝整个批次。拒绝后应减小时间步,并检查材料边界与单元分辨率。 + +参数仍为 `unverified`。须处于声明的温压范围内,并满足潜焓为正、两相共存比容分离及稀薄蒸气条件。这是采用瞬时均相平衡的刚性等截面水平管路,未包含有限速率成核、相间滑移、表面张力、重力、管壁弹性或真实流体临界行为。一阶数值扩散会抹平相变及声波前沿;守恒与回放不能证明空间精度或实测硬件有效性。实际 Unity 验收仍待完成。 + +## 2026-10-23: 有限液体燃油管路动量 + +`fuel_inertial_pipe` 连接两个有限燃油节点和有限热壁面。水平刚性管路拥有独立的液体质量、热内能与动能,不替代两端容器库存。管内密度恒定,温度随完全混合库存变化。端口及整条管路必须保持液态;现有准静态连接保留各自的两相行为。 + +独立有限柔性谐振解及单独的非线性动量/温度 RK4 积分验证精度与一阶细化。检查覆盖摩擦热分配、成对熵、物理反转、完整能量/质量/燃油账本、离合器试探区间、无分配步进、回滚、取消及独立分支。便携资产和实际 MCP 检查每个采样边界。这不证明硬件标定或实际 Unity 验收。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 513/513 | +| standard_checks_on_dotnet | 401/401 | +| actual_mcp_groups | 60/60 | +| laboratories | 56 | +| agent_examples | 55 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| all_sample_boundaries | 7531 | +| new_core_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_steps | 10000, 20000 | +| asset_version | power.asset.v35 | +| agent_api_version | 0.40.0 | +| fingerprint_tag | 40 | +| fuel_pipe_kind | 48 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_pipe_record_bytes | 88 | +| fuel_pipe_quantity_fields | 7 | +| additional_reported_states_per_pipe | 13 | +| resistance_units | pa_s_m3 / 53; pa_s2_m6 / 54 | +| additional_output_fields | 107-111 | +| v34_fixture_sha256 | 51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587 | +| verification_log_sha256 | b766d0d57f17dbc37d5565d0b33d528e075c2b4f0aa4a3452b6ac9047a613e07 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 56 | +| schema_negative_cases | 12 | +| documentation_locales | 10 | +| documentation_files | 210 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | step_ns | normalized_errors | +|---|---|---| +| finite_compliance_harmonic | 2000000, 1000000, 500000, 250000 | 0.0013357399212237996, 0.0006672710470717257, 0.0003334847696376677, 0.0001667045683679429 | +| nonlinear_thermal | 200000, 100000, 50000, 25000 | 1.5209877863320287e-05, 7.53194873812646e-06, 3.7476001908842706e-06, 1.8691907269996478e-06 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| inertial-fuel-line | 9b7f2a6b6b3cb7b7 | 549f8d1c054b2b3f | 71 | 1.1641532182693481e-10 | +| inertial-pump-fed-cylinder | 3ff9ef7bd3e02dfb | 3e16e08ae5051507 | 81 | 1.2129731885579531e-08 | + +- `artifacts/reports/fuel-pipe-final-2026-10-23.log` +- `artifacts/reports/fuel-pipe-evidence-2026-10-23.json` +- `artifacts/reports/fuel-pipe-baseline-2026-10-23.json` +- `artifacts/reports/fuel-pipe-schema-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-provenance-audit-2026-10-23.json` +- `artifacts/reports/fuel-pipe-doc-audit-2026-10-23.json` + +动量方程采用中点流量及接受的末态压力;端口能量与管内混合采用后向欧拉,因此完整耦合为一阶收敛。即使没有摩擦,末态压力离散也会将部分压力/动能振荡转为数值显热;该部分不记作物理摩擦。成对熵变化包含混合与时间离散。零流量事件分别保留正反向输运历史。 + +参数保持 `unverified`。遵守材料温压区间与压力修正的液态稳定条件。失败区间完整回滚;减小节拍并检查源耗尽、压力及相态边界。模型不包含变密度两相动量、空化、声波、重力、运动管形及解析热前沿。规定燃烧不证明详细化学平衡或反应熵准确性。 + +## 2026-10-20: 液体入口动量参考 + +`LiquidColumn` 是独立 C# 参考模型,描述水平刚性管中的恒定截面、均匀流速、恒定液体密度与恒定温度。每个局部区间内给定绝对端口压力。线性和二次阻力系数是显式研究输入。它不是图元件,不改变现有燃油网络或喷嘴方程。 + +独立的无损加速、线性阻力指数解与二次阻力双曲正切解检查极限。独立积分的变压 RK4 参考验证包含反转的平滑二阶细化。测试还覆盖被动衰减、稳态流动、完整能量平衡、非负熵产、压力及粗步长拒绝、不可变共享使用,以及两个程序集目标上的分配。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 502/502 | +| standard_checks_on_dotnet | 392/392 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 54 | +| identical_complete_sample_boundaries | 7379 | +| new_core_groups | 6 | +| convergence_order | 2 | +| independent_rk4_steps | 20000, 40000 | +| maximum_internal_intervals | 2 | +| graph_component | false | +| asset_format | power.asset.v34 | +| agent_api_version | 0.39.0 | +| verification_log_sha256 | ca5b2d46919c411d5b781b315b152bd906f6d0839e894e7257bbd53a943bd3b8 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| documentation_locales | 10 | +| documentation_files | 60 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| reference | interval_counts | normalized_errors | +|---|---|---| +| linear | 10, 20, 40, 80 | 5.1713882833185263e-05, 1.2927512993845731e-05, 3.231818398890559e-06, 8.079508596700909e-07 | +| quadratic | 10, 20, 40, 80 | 0.0005959789277412566, 0.00014891933866423854, 3.722512036997342e-05, 9.305985415002721e-06 | +| changing-pressure | 100, 200, 400, 800 | 7.556351839870537e-06, 1.8960140672276058e-06, 4.757354594406252e-07, 1.1881904671850701e-07 | + +- `artifacts/reports/liquid-column-final-2026-10-20.log` +- `artifacts/reports/liquid-column-evidence-2026-10-20.json` +- `artifacts/reports/liquid-column-baseline-2026-10-20.json` +- `artifacts/reports/liquid-column-doc-audit-2026-10-20.json` + +参数保持 `unverified`。压力下限是调用方声明的液态有效边界,不是预测的蒸汽压或 NPSH 裕量。可压缩性、声波、重力、运动几何、热储存、空化、相间滑移和相变弛豫动力学不在本参考范围。现有两相燃油连接仍为准静态。实际 Unity 验收与实测硬件标定分别进行。 + +## 2026-10-20: 冻结汽相质量分数的燃油喷流与有限体积接收腔 + +燃油域泵现在可向物理针阀和冻结汽相质量分数喷嘴供油,并进入有限液体体积的燃烧接收腔。完整库存包括相变、排量功、射流动能和静止壁面冲量。 + +独立伯努利和理想气体极限、单独的混合物通量极值求解、能量/熵检查及独立积分的液体喷嘴/接收腔 ODE 验证方程。时间细化为一阶。便携资产重放、实际 MCP、回滚、取消、独立分支和分配检查覆盖集成。实际 Unity Editor/Play/Player/IL2CPP 尚未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 496/496 | +| standard_checks_on_dotnet | 386/386 | +| actual_mcp_groups | 58/58 | +| laboratories | 54 | +| agent_examples | 53 | +| unchanged_laboratories | 52 | +| identical_complete_sample_boundaries | 7287 | +| all_sample_boundaries | 7379 | +| new_core_groups | 7 | +| new_constitutive_groups | 7 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| convergence_order | 1 | +| independent_rk4_reference_steps | 1000, 2000 | +| asset_version | power.asset.v34 | +| agent_api_version | 0.39.0 | +| fingerprint_tags | 38, 39 | +| fuel_discharge_kind | 46 | +| finite_fuel_film_kind | 47 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| finite_fuel_film_record_bytes | 112 | +| regular_fuel_film_record_bytes | 100 | +| fuel_discharge_record_bytes | 52 | +| fuel_discharge_orifice_extension_bytes | 36 | +| additional_reported_states_per_discharge | 11 | +| v33_fixture_sha256 | 3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba | +| verification_log_sha256 | b39f7313ca8f90d028a0b76ade58d950dfddcaf73750de7891c62d0026042b2d | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 54 | +| schema_negative_cases | 11 | +| documentation_locales | 10 | +| documentation_files | 200 | +| calibration | unverified | +| actual_unity_editor_play_player_il2cpp | unverified | + +| step_ns | normalized_error | +|---|---| +| 200000 | 9.43999202748097e-05 | +| 100000 | 4.716734258499583e-05 | +| 50000 | 2.356437988192822e-05 | +| 25000 | 1.1782714233986302e-05 | + +| laboratory | fingerprint | final_state_hash | sample_boundaries | maximum_sampled_energy_residual_j | +|---|---|---|---|---| +| finite-volume-fuel-discharge | 53190b5628ca0ab4 | 82f9e4a926d43249 | 11 | 2.2737367544323206e-13 | +| pump-fed-finite-volume-cylinder | e4225e412bfa9802 | a4d2b9f5703c79d8 | 81 | 1.6226408661168534e-08 | + +- `artifacts/reports/fuel-discharge-evidence-2026-10-20.json` +- `artifacts/reports/fuel-discharge-final-2026-10-20.log` +- `artifacts/reports/fuel-discharge-baseline-2026-10-20.json` +- `artifacts/reports/fuel-discharge-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-discharge-doc-audit-2026-10-20.json` + +参数保持 `unverified`。执行声明的温度边界、正气体体积和稀薄蒸汽材料域。模型省略局部入口惯性、有限速率成核、相间滑移、解析喷雾、真实流体临界行为和实测硬件标定。规定燃烧不能证明化学平衡或反应熵准确性。继续入口动力学、点火、进排气、机械损失及 ECU/TCU 协调控制。 + +## 2026-10-20: 轴驱动相变燃料泵 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。新增燃料泵检查覆盖两个程序集目标。Standard 程序集检查由 .NET 10 托管,实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 478/478 | +| standard_checks_on_dotnet | 370/370 | +| actual_mcp_groups | 56/56 | +| laboratories | 52 | +| agent_examples | 51 | +| unchanged_laboratories | 50 | +| identical_complete_sample_boundaries | 7085 | +| all_sample_boundaries | 7287 | +| new_core_groups | 8 | +| new_constitutive_groups | 4 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| closed_liquid_convergence_order | 2 | +| phase_changing_pump_convergence_order | 1 | +| independent_rk4_reference_step_counts | 16000, 32000 | +| independent_rk4_refinement_difference | 7.3033901113193e-09 | +| asset_version | power.asset.v33 | +| agent_api_version | 0.38.0 | +| fingerprint_tag | 37 | +| fuel_chamber_kind | 44 | +| fuel_check_valve_kind | 45 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_chamber_geometry_bytes | 40 | +| fuel_chamber_quantity_fields | 3 | +| additional_reported_states_per_chamber | 3 | +| v32_fixture_sha256 | dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e | +| verification_log_sha256 | 81b64552d28447704043ee7b253aad25486200a94f06e1a3a601ea09fc602b8e | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 52 | +| audited_documents | 200 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 904b97a95df5e08dbbc838a648d363a16ac07d56 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-pump | electric-equilibrium-fuel-pump | +|---|---|---| +| boundaries | 101 | 101 | +| state_count | 21 | 28 | +| fingerprint | 30f8057b21ff5860 | faa54f82c2b83d52 | +| source_sha256 | f07afca1eeb49e9a462366a6458985b3396c8bd319c67799c6b44c78c64265fa | 4cdd4d0eab90afb2e7d0092316a4a1cedd86ec1a91f1943a8d0ae8a390dc6878 | +| report_sha256 | 8cf56eb4a84b5ff27db280470a03ee5264e47679ec9603394e7f4402c9738eff | f4589b23ef386cf53ff9b0f5d0760c7d342660bf066255cf6fc8e5f0b7d73873 | +| final_state_hash | 99856e5951328734 | 63199f094da67091 | +| max_sampled_energy_residual_j | 1.862645149230957e-09 | 1.8570620735625099e-09 | +| max_sampled_mass_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| max_sampled_fuel_residual_kg | 6.911788849595091e-18 | 6.667843360785852e-18 | +| maximum_sampled_vapor_kg | 5.177782452991471e-08 | 0 | +| final_delivered_kg | 7.361187328902878e-05 | 0.0004189649656093893 | +| final_chamber_work_j | 0.026875072320387147 | 0.16071542089376198 | +| final_shaft_speed_rad_s | 99.73088716821476 | 100.37362340296784 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| closed_liquid | 7.017638564699169e-07, 1.7544040498140845e-07, 4.386006580148205e-08, 1.0965013230723741e-08 | 4.000012748171001, 4.000003232450241, 4.000001174516329 | +| phase_changing_pump | 2.488428192603582e-05, 1.2876657736742689e-05, 6.204988735247702e-06, 3.007042341865784e-06 | 1.9325109383803978, 2.0752104937106957, 2.0634856546109304 | + +| inlet_conductance_m3_s_pa | delivered_kg | maximum_vapor_kg | +|---|---|---| +| 1e-11 | 7.361187328902878e-05 | 5.177782452991471e-08 | +| 3e-10 | 0.00041896562499261326 | 0.0 | + +独立液体压力/功、理想蒸气绝热关系和两相熵反演检查本构关系。封闭液体轴运动验证二阶细化;完整相变充填/排出实验相对独立反演的 RK4 参考验证一阶细化。入口不足、充分液体供给、电驱动、齿轮/液压/离合器组合、精确回放、回滚和分配检查覆盖集成。资产 v33 保存几何并读取 v1-v32。实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +参数保持 `unverified`。整个循环均遵守物性温度、压力及可分辨体积边界。模型假设不可压缩液体、理想伪组分蒸气、瞬时共同温度平衡及零外部壳体压力。局部入口惯性/NPSH、临界流、成核延迟、阀惯性/滞回、真实燃料混合物及实测标定仍待实现。物理喷油器交接与接收端排量/动能功耦合仍是独立要求。 + +- `artifacts/reports/fuel-pump-final-2026-10-20.log` +- `artifacts/reports/fuel-pump-evidence-2026-10-20.json` +- `artifacts/reports/fuel-pump-baseline-2026-10-20.json` +- `artifacts/reports/fuel-pump-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-pump-provenance-audit-2026-10-20.json` +- `tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset` +- `artifacts/reports/equilibrium-fuel-pump.json` +- `artifacts/reports/electric-equilibrium-fuel-pump.json` + +[轴驱动相变燃料泵](FUEL_CHAMBER_PUMP.zh-CN.md) + + +## 2026-10-20: 相平衡燃料输运网络 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。新增燃料网络检查覆盖两个程序集目标。Standard 程序集检查由 .NET 10 托管,实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 462/462 | +| standard_checks_on_dotnet | 356/356 | +| actual_mcp_groups | 54/54 | +| laboratories | 50 | +| agent_examples | 49 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| all_sample_boundaries | 7085 | +| new_core_groups | 9 | +| new_asset_groups | 2 | +| new_integrated_groups | 2 | +| new_actual_mcp_groups | 2 | +| transport_convergence_order | 1 | +| asset_version | power.asset.v32 | +| agent_api_version | 0.37.0 | +| mcp_suite_timeout_seconds | 1800 | +| mcp_operation_timeout_seconds | 600 | +| fuel_domain | 7 | +| fuel_restriction_kind | 42 | +| fuel_heat_link_kind | 43 | +| fingerprint_tag | 36 | +| count_table_int32 | 40 | +| count_table_bytes | 160 | +| header_bytes | 238 + UTF-8 name length | +| fuel_material_record_bytes | 148 | +| fuel_material_quantity_fields | 12 | +| additional_states_per_fuel_node | 2 | +| additional_states_per_fuel_link | 5 | +| accepted_near_capacity_states | 124 | +| rejected_capacity_states | 129 | +| nonfinite_normalized_flow | NumericalFailure / complete rollback | +| v31_fixture_sha256 | 8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349 | +| verification_log_sha256 | f1ad1804f19f54932590bced69e4c7d319ae3bc045b4acece7a718e9aa3ffd89 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| schema_laboratories | 50 | +| audited_documents | 190 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | d36f416c882925474dbfb2d25f81e39bd70e0211 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-network | electrothermal-fuel-network | +|---|---|---| +| boundaries | 22 | 21 | +| state_count | 15 | 21 | +| fingerprint | e27805e1a2c808d1 | e07bad65ca9c3215 | +| source_sha256 | d9c4b378d6a5080fb456bac71569cd2c0e564ddcf8fd03bcd15bfd594e857ef7 | 9af1e5d35e821ba314c512eab452b325d4f3652787dab8f23365f5f3b2ec1090 | +| report_sha256 | 34c3bde1599613b896ccc4e054d19b854369b791a72137b524a329dd98bef44f | 0558728552240dc70a69a3a4c46417012df1cfdc2e662341c09ddc403ba872ca | +| final_state_hash | 61b040af166ad9c7 | 675bb21a911fc936 | +| max_sampled_energy_residual_j | 1.0913936421275139e-10 | 6.9003007752144185e-09 | +| max_sampled_mass_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| max_sampled_fuel_residual_kg | 5.421010862427522e-20 | 5.421010862427522e-20 | +| final_donor_vapor_kg | 6.354078034825645e-08 | 6.85091337500224e-08 | +| final_link_entropy_j_k | 0.004268953263094927 | 0.005100906194149379 | +| final_heat_entropy_j_k | 0.008489760659647926 | 5.323274810960101e-05 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| liquid | 0.00035614510680141416, 0.00017889748238547338, 8.965668828815983e-05, 4.488054760116941e-05 | 1.9907776345003132, 1.9953612586100706, 1.9976736711167877 | +| two_phase_wall | 0.00016997336466461097, 8.49514500003881e-05, 4.263682568381033e-05, 2.134770042729958e-05 | 2.0008294698187545, 1.9924431201885908, 1.9972561367446433 | + +实验覆盖液体排出并进入共存区、反向流、开度变化及有限壁/机电热耦合。独立液体压力指数解、同时求解两相质量/焓/传热的 ODE、热驱动反流及离合器试探捕获检查精度与组合。资产和实际 MCP 保持每个采样值及哈希一致。资产 v32 保存新物性记录并读取 v1-v31。实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +本构闭合关系的物性及可分辨壁变形边界仍适用。参数保持 `unverified`。泵充填与轴功、喷油器交接、局部流体惯性、临界流、成核延迟、相间滑移及真实混合物测量仍需单独推进。现有泵供油喷油器燃轨在完成这些耦合前仍沿用分离液体路径。 + +- `artifacts/reports/fuel-network-final-2026-10-20.log` +- `artifacts/reports/fuel-network-evidence-2026-10-20.json` +- `artifacts/reports/fuel-network-baseline-2026-10-20.json` +- `artifacts/reports/fuel-network-schema-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-doc-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-before-2026-10-20.log` +- `artifacts/reports/fuel-network-provenance-audit-2026-10-20.json` +- `artifacts/reports/fuel-network-overflow-after-2026-10-20.log` +- `tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset` +- `artifacts/reports/equilibrium-fuel-network.json` +- `artifacts/reports/electrothermal-fuel-network.json` + +[相平衡燃料输运网络](EQUILIBRIUM_FUEL_NETWORK.zh-CN.md) + + +## 2026-10-20: 柔性燃料容积参考模型 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。新增本构检查覆盖两个程序集目标。Standard 程序集检查由 .NET 10 托管,实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 449/449 | +| standard_checks_on_dotnet | 345/345 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 48 | +| identical_complete_sample_boundaries | 7042 | +| new_constitutive_groups_per_assembly | 9 | +| roundtrip_states_per_assembly | 80 | +| independent_entropy_maximum_states_per_assembly | 4 | +| finite_bath_convergence_order | 1 | +| finite_bath_reference_tolerance_j | 2e-6 | +| heat_interval_energy_residual_tolerance_j | 5e-13 | +| entropy_decrease_roundoff_j_k | 1e-13 | +| entropy_maximum_tolerance_j_k | 1e-10 | +| wall_expansion_roundoff_relative | 2.8421709430404007e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| graph_transport | separated_liquid_only | +| verification_log_sha256 | f663d7d383b7961572c48cd6dd05e7e26c68313a44b6af02f196cf1d7caefcf7 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 70 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | 50597595f1085bbe35b948d3826ded2832ad8a85 | +| acceptance_scope | local_windows_only | + +| Identifier | Value | +|---|---| +| duration_s | 6 | +| step_counts | 32, 64, 128, 256 | +| energy_errors_j | 1.313327615023411, 0.6450572281738829, 0.31948411040258407, 0.1589624951980113 | +| error_ratios | 2.035986200389321, 2.019058873885909, 2.009808099732074 | + +检查比较化学势、Clapeyron 斜率、热量与熵导数,以及包含弹性储能的 Gibbs 关系。独立约束熵最大化不使用饱和求解器。刚性容器、理想气体与广延缩放极限及有限热浴 RK4 细化提供独立参考。热交换保持总能量守恒,并在总熵不减条件下呈现一阶收敛。这些证据不等于实测燃料有效性或 Unity 验收。 + +纯燃料柔性容器闭合关系已求解液态、蒸气及带弹性储能的两相共存。它是局部本构参考,图级泵与喷嘴输运仍需接入。 + +- `artifacts/reports/compliant-volume-verify-2026-10-20.log` +- `artifacts/reports/compliant-volume-evidence-2026-10-20.json` +- `artifacts/reports/compliant-volume-baseline-replays-2026-10-20.json` +- `artifacts/reports/compliant-volume-doc-audit-2026-10-20.json` +- `src/Power.Core/CompliantFuelVolume.cs` +- `tests/Power.Tests/CompliantFuelVolumeChecks.cs` + +[柔性燃料容积参考模型](COMPLIANT_FUEL_VOLUME.zh-CN.md) + + +## 2026-10-20: 有限体积油箱相平衡 + +规定的串行验证在本地 Windows x64/.NET 10.0.12 上通过。Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 440/440 | +| standard_checks_on_dotnet | 336/336 | +| actual_mcp_groups | 52/52 | +| laboratories | 48 | +| agent_examples | 47 | +| unchanged_laboratories | 46 | +| matching_sample_boundaries | 6936 | +| physical_transaction_groups | 9 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| density_roundoff_relative | 1.4210854715202004e-14 | +| asset_version | power.asset.v31 | +| agent_api_version | 0.36.0 | +| liquid_tank_record_bytes | 52 | +| tank_phase_flag_offset | 48 | +| tank_phase_flag_int32 | 0, 1 | +| additional_states_per_equilibrium_tank | 3 | +| v30_fixture_sha256 | c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335 | +| verification_log_sha256 | 6196f11e31d3c548f283d29d418511d894c33f8d87acaa006eb3e43f3b497526 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| json_schema_laboratories | 48 | +| audited_documents | 170 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | b91662388d1f09d72455531097bd88844c89f138 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-tank-supply | equilibrium-tank-fired-cylinder | +|---|---|---| +| duration_s | 0.2 | 0.6 | +| boundaries | 41 | 65 | +| states | 53 | 66 | +| step_ns | 50000 | 50000 | +| fingerprint | 6b0e2b783c7a15f0 | 728ba5f64eee747d | +| final_state_hash | ac64c4b2775b90be | 5091b6a989d113d0 | +| source_sha256 | 2af17736879d3aa414fb9c8b315395ecbc10705ca7824d00757f1bd1f1e53a0c | a326896a2961c136cd8a768761654eae929798f02bbbd65792d3853fe097be5d | +| report_sha256 | a77fea120565de9e1c3cd91201197722bd5fd31c8635b6042abb0faafd2931b3 | bb1e7fa5174d155e910b93098036e1f789f6278efbd1f6076dba3286bb6962d2 | +| max_sampled_energy_j | 6.318146006378811e-11 | 1.5166961020440795e-09 | +| max_sampled_mass_kg | 1.5459798853462949e-18 | 1.6805133673525319e-18 | +| max_sampled_fuel_kg | 1.5458351287390981e-18 | 1.7957098481791167e-18 | +| max_sampled_hydraulic_volume_m3 | 2.2515856273693413e-21 | 1.885971796620903e-21 | +| final_evaporated_mass_kg | 4.117877458589608e-09 | 1.1639868253621372e-08 | +| final_condensed_mass_kg | 3.838295431368862e-09 | 9.507104670266502e-09 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| pump | 1.184041877877462e-08, 5.923758976678073e-09, 2.9627648245877937e-09, 1.4816043858445482e-09 | 1.9988015760584663, 1.9994023580667557, 1.9997003605648416 | +| vent_wall | 9.169745130691354e-05, 5.2209148699944306e-05, 2.6098838144434922e-05, 1.304798024250431e-05 | 1.7563483333910663, 2.000439575547807, 2.00022054443468 | + +`equilibrium-tank-supply` 演练泵反转、含燃料通气和有限热壁。`equilibrium-tank-fired-cylinder` 将同类供给接入点火发动机。验证涵盖独立熵最大化、化学势及热容导数、联立 ODE 细化、完整账本、回放、回滚与分配检查。资产 v31 保留该标志,并读取 v1-v30。 + +- `artifacts/reports/tank-phase-verified-2026-10-20.log` +- `artifacts/reports/tank-phase-evidence-2026-10-20.json` +- `artifacts/reports/tank-phase-baseline-replays-2026-10-20.json` +- `artifacts/reports/tank-phase-schema-audit-2026-10-20.json` +- `artifacts/reports/tank-phase-doc-audit-2026-10-20.json` +- `artifacts/reports/equilibrium-tank-supply.json` +- `artifacts/reports/equilibrium-tank-fired-cylinder.json` +- `tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset` + +泵、传热及通气耦合算例验证了一阶收敛。供给端两相均保持在声明温度区间内,总密度与液体密度之间保留 binary64 舍入裕量。常密度/共用气体属性、瞬时平衡和平面界面是研究近似。真实混合物、表面张力、晃动、有限速率动力学、实测标定与实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +[TANK_PHASE_EQUILIBRIUM.zh-CN.md](TANK_PHASE_EQUILIBRIUM.zh-CN.md) + +## 2026-10-13: 燃油相平衡与液体供给边界 + +规定的串行验证在本地 Windows x64/.NET 10.0.12 上通过。Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 426/426 | +| standard_checks_on_dotnet | 325/325 | +| actual_mcp_groups | 50/50 | +| laboratories | 46 | +| agent_examples | 45 | +| json_schema_laboratories | 46 | +| unchanged_laboratories | 44 | +| matching_sample_boundaries | 6810 | +| physical_transaction_groups | 10 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| coupled_convergence_order | 1 | +| entropy_tolerance_j_k | 1e-10 | +| pressure_roundoff_relative | 1.4210854715202004e-14 | +| reported_margin_clamp | false | +| asset_version | power.asset.v30 | +| agent_api_version | 0.35.0 | +| fuel_film_record_bytes | 100 | +| v29_fixture_sha256 | e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d | +| verification_log_sha256 | 211a53a32d601f06d4d406b08661c86ac3e28d94256d42ebbc9041a285eabdec | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| audited_documents | 160 | +| documentation_locales | 10 | +| source_state | working_tree | +| baseline_revision | ca443cbd218bd678a1de6e579ddfe99826659555 | +| acceptance_scope | local_windows_only | + +| Identifier | equilibrium-fuel-cell | equilibrium-injected-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 61 | 65 | +| states | 12 | 59 | +| step_ns | 1000000 | 50000 | +| fingerprint | f72fab4a491d9c86 | 74c05089a700aca4 | +| final_state_hash | 4bace9fd4482fca9 | 94a0b3f991564b01 | +| source_sha256 | 5c4a0742ea5c315c2b626e27f8d7ebc3f841d668b4ba4bae5da8daee628d5e98 | c32bc066cecd3783464c2c24d8182ee9897fb20d86325623e3faf8e547d58949 | +| report_sha256 | 8dbb4841d14e147fea6f7a36a00c5d80e5fcd168a6a20463b53d136add38f1d1 | 6a6c3f8bf270a096bdc698e05b4d3835102e78c4fe60bde61607ada5188238c3 | +| max_sampled_energy_j | 4.5656634029001e-10 | 1.7261072571272962e-09 | +| max_sampled_mass_kg | 1.2414114874959026e-17 | 2.5478751053409354e-18 | +| max_sampled_fuel_kg | 1.021860547567588e-17 | 2.4445370857759108e-18 | +| final_evaporated_mass_kg | 7.740915788733479e-06 | 2.7999999999999996e-05 | +| final_condensed_mass_kg | 2.322468550648195e-05 | 0 | + +| Identifier | Normalized errors | Error ratios | +|---|---|---| +| vent_hot | 3.0010550752308518e-05, 1.4974238709442034e-05, 7.4793589965338466e-06, 3.7377392527560005e-06 | 2.004145341518117, 2.002075139912596, 2.0010381920084406 | +| vent_cold | 4.5548939344257636e-05, 2.2750721204261026e-05, 1.136942354094117e-05, 5.68322752030781e-06 | 2.00208771121184, 2.0010443908907014, 2.0005223264975656 | +| moving_cylinder | 0.00013129782098744158, 6.581502863305389e-05, 3.2949002559945487e-05, 1.6484868202937264e-05 | 1.9949519693971638, 1.9974816692345656, 1.9987422498212424 | + +`equilibrium-fuel-cell` 展示冷凝、通气引起的蒸发及再次冷凝。`equilibrium-injected-cylinder` 在通气油箱发动机中加入接收端可逆相变与供给裕量。验证涵盖独立熵最大化、解析饱和及传热极限、联立 ODE 细化、完整回放、回滚和分配检查。资产 v30 保留这些属性,并读取 v1-v29。 + +压力比较仅允许 binary64 舍入量:`64 * epsilon * max(p, p_sat)`,其中 `epsilon = 2^-52`;报告的裕量不作钳制。这是主体液体的饱和检查,局部压降与泵 NPSH 仍需分解流动模型。独立检查还要求绝热闪蒸和有限壁面换热的总熵不减少。 + +- `artifacts/reports/phase-equilibrium-verified-2026-10-13.log` +- `artifacts/reports/phase-equilibrium-evidence-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-baseline-replays-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-doc-audit-2026-10-13.json` +- `artifacts/reports/phase-equilibrium-schema-audit-2026-10-13.json` +- `artifacts/reports/equilibrium-fuel-cell.json` +- `artifacts/reports/equilibrium-injected-cylinder.json` +- `tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset` + +参数仍为 `unverified`。模型未提供实测汽油属性、多组分或有限速率相变动力学、分解液体位移/喷雾及 OEM 标定。实际 Unity Editor/Play/Player/IL2CPP 验收仍待完成。 + +[FUEL_PHASE_EQUILIBRIUM.zh-CN.md](FUEL_PHASE_EQUILIBRIUM.zh-CN.md) + +## 2026-10-08: 油箱几何与有限气相空间 + +规定的串行验证在本地 Windows x64/.NET 10.0.12 上通过。Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 411/411 | +| standard_checks_on_dotnet | 313/313 | +| actual_mcp_groups | 48/48 | +| laboratories | 44 | +| agent_examples | 43 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| physical_transaction_groups | 6 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| initial_headspace_pressure_pa | 100000 | +| tank_capacity_m3 | 2e-7 | +| vent_input | 960 | +| vent_close_ns | 200000000 | +| vent_reopen_ns | 400000000 | +| headspace_interval_volume_fraction | 0.25 | +| asset_version | power.asset.v29 | +| agent_api_version | 0.34.0 | +| audited_documents | 140 | +| documentation_locales | 10 | +| v28_fixture_sha256 | 3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57 | +| verification_log_sha256 | 5e043f1b2638849a1a0ec7d29e59ee98408cf507e92b0fdeba048be5d2980f27 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| native_library_sha256 | ad166e83ed17c6c5a397a6b904dc6e7d1ccf474c8f5a1d4a6a1fd003aee2e944 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| acceptance_scope | local_windows_only | + +| Identifier | vented-tank-liquid-cylinder | vented-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 58 | 67 | +| step_ns | 50000 | 10000 | +| fingerprint | 3e1af7af1d0de7c7 | eed5469fc995ca45 | +| final_state_hash | f34b39e6adfe540d | 189ed72df2d82b75 | +| source_sha256 | 033c2ea4594cec4a3e173e16e9ba806f74ae1ff211e524b520b62c212afaa573 | bb25d8f37bbde15acd2f5788b7d877abf37e1200dfbf25e72a77b1ed27442b57 | +| report_sha256 | 1ededb11489f67f12dbde919c67b61d8fd6b481261c6369026c1e80bc5b3deab | 6e0b0dd64663278e2eb022409706d29e2b621c8bbcb48c6e5948b17eaa5d3904 | +| max_sampled_energy_j | 9.768825748324161e-10 | 1.2995997167308815e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 8.944667923005412e-18 | +| max_sampled_fuel_kg | 1.5754812818929986e-18 | 6.274820073259857e-18 | +| max_sampled_hydraulic_volume_m3 | 1.5617169965001163e-21 | 9.171778631987971e-21 | + +示例 `vented-tank-liquid-cylinder` 和 `vented-tank-needle-cylinder` 使用油箱 1513、气相 1520、通气输入 960。资产 v29 保留几何并读取 v1-v28。解析功及导数、独立联立 ODE 细化、完整账本、资产/MCP 回放、回滚和零分配推进检查通过。 + +- `artifacts/reports/tank-headspace-closure-2026-10-08.log` +- `artifacts/reports/tank-headspace-evidence-2026-10-08.json` +- `artifacts/reports/tank-headspace-doc-audit-2026-10-08.json` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/vented-tank-liquid-cylinder.json` +- `artifacts/reports/vented-tank-needle-cylinder.json` +- `tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset` + +该模型采用刚性混合油箱、不可压缩液体和理想气体。晃动/静液压形状、气液相平衡、空化、实测泵阀图谱、OEM 标定及实际 Unity Editor/Play/Player/IL2CPP 仍待完成。参数仍为 `unverified`。 + +[TANK_HEADSPACE.zh-CN.md](TANK_HEADSPACE.zh-CN.md) + +## 2026-10-08: 完整的实验室与元件发现 + +规定的串行验证在本地 Windows x64/.NET 10.0.12 上通过。Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 400/400 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 46/46 | +| laboratories | 42 | +| agent_examples | 41 | +| supported_components | 41 | +| unchanged_laboratories | 42 | +| matching_sample_boundaries | 6680 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| audited_documents | 50 | +| documentation_locales | 10 | +| catalog_schema_matches_cli | true | +| asset_version | power.asset.v28 | +| source_state | working_tree | +| baseline_revision | 90e70cdc6421c3bd60a85839670587c8b237523e | +| verification_log_sha256 | 5dbc2ef47f7ba1621f5e3ce09a2290acb770eeab97b090466c3d1c0d7bf20196 | +| catalog_sha256 | a84748a97884ad9bdfea9f6e74ecd7bcc100d26fd4afb284c67aca2264675db4 | +| catalog_schema_sha256 | d38c90471e424519c092e35f372834a32e26bccc6fac51ab56468ec8866be69a | +| acceptance_scope | local_windows_only | + +CLI `list-labs`、MCP 示例、Unity 导出和串行验证共用实验室目录。所有源文件均被覆盖,每个声明的示例都通过实际 stdio 验证,声明的元件与完整模型 schema 一致。所有实验室指纹、源哈希和每个采样状态哈希均与基线一致。资产 v28 和先前读取器保持不变。 + +文档审计覆盖全部十种语言的章节对应、单行语言切换和完整实验室表。目录文件与 CLI 响应符合 `power.laboratory_catalog.v1.schema.json`。 + +- `artifacts/reports/development-review-baseline-2026-10-08.log` +- `artifacts/reports/development-review-final-2026-10-08.log` +- `artifacts/reports/development-review-baseline-replays-2026-10-08.json` +- `artifacts/reports/development-review-evidence-2026-10-08.json` +- `artifacts/reports/development-review-catalog-2026-10-08.json` + +油箱几何/顶部气体、更完整的发动机行为、ECU/TCU 协调、实测标定和实际 Unity 验收仍待完成。研究参数仍为 `unverified`。 + +## 2026-10-05: 可追踪的燃油泄压回流 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。.NET Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 398/398 | +| standard_checks_on_dotnet | 305/305 | +| actual_mcp_groups | 45/45 | +| laboratories | 42 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| fluid_heat_fractions | 0, 0.5, 1 | +| asset_version | power.asset.v28 | +| v27_fixture_sha256 | ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62 | +| verification_log_sha256 | ee5eb035556dd2ba0cd17baa274672ee3663a8572982b72bd23da881ab877e41 | +| prior_ci_scope | preceding_revision_only | +| prior_ci_revision | 85eebeb442b455304c5e88aebd86279c8347aad2 | + +| Identifier | recirculating-liquid-cylinder | recirculating-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 54 | 63 | +| step_ns | 50000 | 10000 | +| fingerprint | 8c295e86019b787b | 354faf7fae4a338e | +| final_state_hash | d4a612015c1623dc | 8554f5721f716a34 | +| source_sha256 | f7e499c1b155869fad912df7a10ba443f62aa22af585147523d4527f9f8937a4 | 8de240be98f08a3ceb110337228a09a68c25f5f54fbefac159daf517cca0f827 | +| report_sha256 | 4a5e68862dc626a09471d5964f0623652efcf3056f6b2417545713ed00c421aa | d2efe3cb35bfc6bda3e61c2ef668f276784ed0f450909976d1b8dffaee4b5612 | +| max_sampled_energy_j | 1.412331585015636e-09 | 1.4023612493474502e-08 | +| max_sampled_mass_kg | 1.951563910473908e-18 | 5.3600244902252125e-18 | +| max_sampled_fuel_kg | 3.1238575094738597e-18 | 5.834362940687621e-18 | +| max_sampled_hydraulic_volume_m3 | 4.1689902872672595e-21 | 7.239484721064098e-21 | + +- `artifacts/reports/liquid-return-final-2026-10-05.log` +- `artifacts/reports/liquid-return-evidence-2026-10-05.json` +- `artifacts/reports/liquid-return-schema-audit-2026-10-05.json` + +独立泄压衰减/压力功、机械/压力/热联立细化、热比例、多条路径、外部边界、每边界重放、回滚与分配检查均通过。液体沸腾和未充分解析的输运区间会使整批失败。油箱几何/通气动力学、实测阀/泵、气蚀、喷雾、OEM 标定和实际 Unity Editor/Play/Player/IL2CPP 仍待完成。 + +[CI 37273231730](https://github.com/Water-Run/Power/actions/runs/37273231730) + +[LIQUID_FUEL_RETURN.zh-CN.md](LIQUID_FUEL_RETURN.zh-CN.md) + +## 2026-10-05: 有限液体燃油箱 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。.NET Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 388/388 | +| standard_checks_on_dotnet | 298/298 | +| actual_mcp_groups | 43/43 | +| laboratories | 40 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| physical_transaction_groups | 5 | +| portable_groups | 2 | +| integrated_groups | 3 | +| new_mcp_scenarios | 2 | +| asset_version | power.asset.v27 | +| v26_fixture_sha256 | b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d | +| verification_log_sha256 | 6c7b9ad52c6e4977b2817c6f6bdd9de4eaf6aeeb943efba255a2ad4956a27d70 | + +| Identifier | finite-tank-liquid-cylinder | finite-tank-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 43 | 52 | +| step_ns | 50000 | 10000 | +| fingerprint | f7ee4872a034c885 | 8be53a56f175aeeb | +| final_state_hash | 9fbab09b0d8fea77 | e77e6d4adaf785eb | +| source_sha256 | 0a67c3eaaac79992b21b647efd6535d0c5c81159808006e5dde40552c3fd5934 | 508a8d163f965b2fc62c965d1984d9abd0e88011685a4099be110470c92baac6 | +| report_sha256 | 038cbafab19f3e587b7e4a156c017e06531fd04cbaca8619240b81b8e14d6936 | ab18f538eae81bcead2a1a929ab97a0b6ef856a9b6058f1a375e2195d0747edc | +| max_sampled_energy_j | 5.5981672630878165e-09 | 1.93150526683894e-08 | +| max_sampled_mass_kg | 1.1926223897340549e-18 | 3.63207727782644e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 1.3137481011914198e-18 | +| max_sampled_hydraulic_volume_m3 | 1.2977429835191313e-21 | 1.826414792517085e-21 | + +- `artifacts/reports/finite-tank-integrated-2026-10-05.log` +- `artifacts/reports/finite-tank-evidence-2026-10-05.json` +- `artifacts/reports/finite-tank-schema-audit-2026-10-05.json` + +油箱质量和热能精确降至零;此后正向泵流量/反力为零,轴仍按真实动力学运行。反向回流按燃轨混合温度恢复液体库存。独立湿态解析交换、耗尽轴/压力能、完整回滚与分配检查均通过。 + +化学边界能量包含排气带走的未燃燃料。油箱在模型内部传递燃料;集成检查比较化学库存总变化加已释放热量与净化学边界能量。 + +几何容量、通气/顶部气体/晃动、气蚀、实测泵充液/效率/调压和分解喷雾仍待完成。参数为 `unverified`;实际 Unity Editor/Play/Player/IL2CPP 与 OEM 标定仍未验证。 + +前一泵供给修订通过了 Windows、Linux 和 macOS CI。该运行不验证本次有限油箱变更。 + +`144ac3d5d0f15d0eafefe713996f2b08d8ae3ea4` · [CI 37269218379](https://github.com/Water-Run/Power/actions/runs/37269218379) + +[LIQUID_FUEL_TANK.zh-CN.md](LIQUID_FUEL_TANK.zh-CN.md) + +## 2026-10-05: 泵送液体燃油轨 + +必需的串行验证已在本地 Windows x64/.NET 10.0.12 通过。.NET Standard 程序集检查运行于 .NET 10;实际 Unity Editor/Play/Player/IL2CPP 仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 378/378 | +| standard_checks_on_dotnet | 291/291 | +| actual_mcp_groups | 41/41 | +| laboratories | 38 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v26 | +| v25_fixture_sha256 | df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc | +| verification_log_sha256 | 2a2c3aa19317c8251c970a4b98a169b402d1855838e7fb79831d273593bfdf29 | + +| Identifier | pump-fed-liquid-cylinder | pump-fed-needle-cylinder | +|---|---|---| +| duration_s | 0.6 | 0.6 | +| boundaries | 65 | 65 | +| states | 39 | 48 | +| step_ns | 50000 | 10000 | +| fingerprint | 22cbbe4a983098f4 | 782b15c21ad211c2 | +| final_state_hash | 4004b74f7f1d8c22 | e322d7a4bd72088c | +| source_sha256 | 1bc97e3f985567f93fd4ace4006307ab571d2e10850e1bd75a1537ed6f0954bb | 3a801026e05e9e6cb67d298145ac20aea9948ab28e2c4552f8dee0d4f1eb4cce | +| report_sha256 | 9869c20db74d4bb1dd22f5b3a924402001ca29451acee7fcc72b9188f25bf437 | 16ac066d9f9e268b98d874aba37f75efeb6b1fa1034b6b06562899f20f67fbbb | +| max_sampled_energy_j | 4.160256139584817e-09 | 2.0303104975027964e-08 | +| max_sampled_mass_kg | 9.215718466126788e-19 | 2.439454888092385e-18 | +| max_sampled_fuel_kg | 1.0486267887008238e-18 | 2.825701912040346e-18 | +| max_sampled_hydraulic_volume_m3 | 1.523666688322677e-21 | 3.763671787116276e-21 | + +- `artifacts/reports/rail-feed-integrated-2026-10-05.log` +- `artifacts/reports/rail-feed-evidence-2026-10-05.json` +- `artifacts/reports/rail-feed-schema-audit-2026-10-05.json` + +六组物理/事务检查、两组资产检查、三组集成检查和两组真实 MCP 场景覆盖补给路径。流入燃料的热能/化学能与气体边界能量共同累加;压力储能仅计算一次。压力 KPI 使用纯泵解析上界 920541.8 Pa,而非初始压力。 + +源是显式外部边界,不是已建模的有限燃料箱。油箱耗尽、泵效率/调压、管路损失、气蚀、压力相关物性和有限体积喷雾仍待完成。参数为 `unverified`;这不构成 OEM 标定或实际 Unity Editor/Play/Player/IL2CPP 验收。 + +较早的 AT 检查点也在记录的修订上通过 Windows、Linux 和 macOS CI。该运行不验证本次燃料补给变更。 + +`0d5a98583723b39e5a0b7723d06e988ebea1a425` · [CI 37259428892](https://github.com/Water-Run/Power/actions/runs/37259428892) + +[PUMP_FED_FUEL.zh-CN.md](PUMP_FED_FUEL.zh-CN.md) + +## 2026-10-05: 液压 AT 反馈与压力控制 + +所要求的串行验证已在 Windows x64/.NET 10.0.12 上通过。Release 构建没有警告或错误。实际 Unity 与新的 Linux/macOS 验收仍未验证。 + +`dotnet run --file tools/Build.cs -- verify` + +| Identifier | Value | +|---|---| +| managed_checks | 367/367 | +| standard_checks_on_dotnet | 283/283 | +| actual_mcp_groups | 39/39 | +| laboratories | 36 | +| zig_tests | 16/16 | +| native_model_cs_groups | 6 | +| original_baseline_values | 176 | +| original_baseline_maximum_error | 0 | +| asset_version | power.asset.v25 | +| v24_fixture_sha256 | 6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc | + +| Identifier | controlled-hydraulic-ravigneaux | controlled-fired-hydraulic-ravigneaux | +|---|---|---| +| duration_s | 4.5 | 2.2 | +| boundaries | 451 | 221 | +| states | 99 | 122 | +| confirmed_range | 1 | 4 | +| fault | 0 | 0 | +| lockup_state | 0 | 2 | +| max_sampled_energy_j | 7.059115887386724e-7 | 2.7647047318168916e-7 | +| max_sampled_hydraulic_volume_m3 | 1.7499700690273845e-18 | 2.7681036716270535e-18 | +| fingerprint | ceb522c56530be00 | 9fa63e406ccae528 | +| final_state_hash | 7ff1919e1f504740 | 958185fe86764b63 | +| source_sha256 | 9cac20ed7a79a2b9dd30f630adf5c6b3ce1f5dbbe4fa837eba3f0465cf67855b | cd4bd02357168532793462903670f9ec59e0c47edcd24986adc71c27bb4e88af | + +- `artifacts/reports/at-control-final-2026-10-05.log` +- `artifacts/reports/at-control-evidence-2026-10-05.json` +- `artifacts/reports/at-control-schema-audit-2026-10-05.json` +- `artifacts/reports/at-controller-probe-2026-10-05.log` + +8 组物理/事务检查覆盖所有前进挡与倒挡、真实压力/接触/锁定反馈、阀通道归属、采样时钟及 PI 边界。故障检查包括供压丢失、排油堵塞、接合/释放超时、移动方向互锁和已确认锁定丢失。2 组资产检查保留类型化支路并拒绝重签名降级。3 组组合检查与 2 个实际 MCP 场景逐项匹配所有标量和状态哈希。 + +倒挡启动与故障恢复在 500 ms 时仍为 Applying,并在 800 ms 前于既定超时内完成确认。测试依据实际锁定而非固定延时。安全泄压命令不能消除物理堵塞。燃烧机/行星轮/执行器/控制组合保留 122 个状态,未改变 128 状态上限。 + +参数仍为 `unverified`。协调 ECU 扭矩融合、详细传感器/阀行为、完整车辆故障、OEM 标定和实际 Editor/Play/Player/IL2CPP 验收仍待完成。 + +[AT_CONTROL.zh-CN.md](AT_CONTROL.zh-CN.md) + + ## 2026-10-02:共享 AT 液压供油与动态活塞驱动 要求的串行 `dotnet run --file tools/Build.cs -- verify` 在 Windows x64/.NET 10.0.12 上本地通过:**354/354** 项托管检查,**273/273** 项在 .NET 10 上托管运行的 Standard 程序集检查,**37/37** 组真实 MCP,**16/16** 项 Zig 测试以及六项原生模型 C# 检查。Release 构建报告零警告/错误。全部 **34** 个实验室通过,全部 **176** 个原始基线值精确匹配。C/C++/Lua 审计仍为空。实际 Unity 与新的 Linux/macOS 验收仍未验证。 @@ -1062,6 +2456,3 @@ dotnet run --file tools/Build.cs -- unity-test 发布入口是 `Power.Studio.Editor.ProjectSetup.BuildPlayer`,使用所选桌面目标与 IL2CPP。它需要匹配的 Unity 平台构建模块。还没有已构建或已测试的 Player 包。 当前每一个参数都是合成实验参数。完整的发动机与变速器、车辆标定、排放、声学、实时预算与长时间运行仍需要各自的实现与证据。这些检查不能确立那项工作。 - - - diff --git a/schemas/power.laboratory_catalog.v1.schema.json b/schemas/power.laboratory_catalog.v1.schema.json new file mode 100644 index 0000000..48586d1 --- /dev/null +++ b/schemas/power.laboratory_catalog.v1.schema.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "power.laboratory_catalog.v1.schema.json", + "title": "Power! laboratory catalog", + "type": "object", + "additionalProperties": false, + "required": ["schema", "laboratories"], + "properties": { + "schema": { "const": "power.laboratory_catalog.v1" }, + "calibration": { "const": "unverified" }, + "laboratories": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["name", "asset_name", "display_name", "agent_example"], + "properties": { + "name": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, + "asset_name": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, + "display_name": { "type": "string", "minLength": 1 }, + "agent_example": { "type": "boolean" } + } + } + } + } +} diff --git a/schemas/power.model.v1.schema.json b/schemas/power.model.v1.schema.json index 7e0779f..3eaf59f 100644 --- a/schemas/power.model.v1.schema.json +++ b/schemas/power.model.v1.schema.json @@ -44,6 +44,15 @@ }, { "$ref": "#/$defs/translational" + }, + { + "$ref": "#/$defs/fuel" + }, + { + "$ref": "#/$defs/compressible_fuel" + }, + { + "$ref": "#/$defs/relaxing_fuel_node" } ] }, @@ -164,6 +173,51 @@ }, { "$ref": "#/$defs/carrierGear" + }, + { + "$ref": "#/$defs/atController" + }, + { + "$ref": "#/$defs/liquidRailFeed" + }, + { + "$ref": "#/$defs/liquidFuelTank" + }, + { + "$ref": "#/$defs/liquidRailReturn" + }, + { + "$ref": "#/$defs/fuel_restriction" + }, + { + "$ref": "#/$defs/fuel_heat_link" + }, + { + "$ref": "#/$defs/fuel_check_valve" + }, + { + "$ref": "#/$defs/fuel_chamber" + }, + { + "$ref": "#/$defs/finite_fuel_film" + }, + { + "$ref": "#/$defs/fuel_discharge" + }, + { + "$ref": "#/$defs/fuel_inertial_pipe" + }, + { + "$ref": "#/$defs/equilibrium_fuel_duct" + }, + { + "$ref": "#/$defs/compressible_fuel_chamber" + }, + { + "$ref": "#/$defs/compressible_fuel_nozzle" + }, + { + "$ref": "#/$defs/relaxing_fuel_duct" } ] }, @@ -449,7 +503,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -582,7 +636,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -792,7 +846,7 @@ "channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "value": { "type": "number" @@ -896,7 +950,50 @@ "selected_even_gear", "shift_phase", "sync_error", - "control_fault" + "control_fault", + "lockup_state", + "actuator_integral_a", + "actuator_integral_b", + "actuator_integral_c", + "actuator_integral_d", + "actuator_integral_e", + "actuator_integral_f", + "tank_state", + "fill_fraction", + "condensed_fuel_mass", + "vapor_partial_pressure", + "saturation_pressure", + "cavitation_margin", + "vapor_mass", + "vapor_mass_fraction", + "vapor_volume_fraction", + "elastic_energy", + "entropy", + "specific_enthalpy", + "transport_energy", + "entropy_produced", + "jet_kinetic_energy", + "jet_impulse", + "throat_pressure", + "exit_temperature", + "exit_velocity", + "choked", + "forward_volume", + "reverse_volume", + "kinetic_energy", + "energy_at_a", + "energy_at_b", + "density", + "sound_speed", + "mass_at_a", + "mass_at_b", + "flux_relative_uncertainty", + "equilibrium_vapor_mass_fraction", + "chemical_affinity", + "vapor_mass_residual", + "vapor_mass_at_a", + "vapor_mass_at_b", + "total_vapor_delivered" ] }, "min": { @@ -1278,7 +1375,7 @@ "input_channel": { "type": "integer", "minimum": 0, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -1805,7 +1902,7 @@ "input_channel": { "type": "integer", "minimum": 0, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -1997,7 +2094,7 @@ "input_channel": { "type": "integer", "minimum": 0, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -2316,7 +2413,7 @@ "input_channel": { "type": "integer", "minimum": 0, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -2459,7 +2556,7 @@ "input_channel": { "type": "integer", "minimum": 0, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -2988,7 +3085,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -3026,7 +3123,7 @@ "target_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "sample_period_ns": { "type": "integer", @@ -3359,7 +3456,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -3498,7 +3595,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -3574,7 +3671,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -3612,7 +3709,7 @@ "target_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "sample_period_ns": { "type": "integer", @@ -3931,7 +4028,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -4607,7 +4704,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -4901,6 +4998,75 @@ ] } } + }, + "phase_equilibrium": { + "type": "object", + "additionalProperties": false, + "required": [ + "reference_pressure", + "minimum_temperature", + "maximum_temperature" + ], + "properties": { + "reference_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "maximum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + } + } } } } @@ -4934,7 +5100,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -5270,7 +5436,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -5558,7 +5724,7 @@ "closure_prediction_ns": { "type": "integer", "minimum": 0, - "maximum": 18446744073709551615 + "maximum": 18446744073709552000 } } } @@ -5688,7 +5854,7 @@ "input_channel": { "type": "integer", "minimum": 1, - "maximum": 9223372036854775807 + "maximum": 9223372036854776000 }, "initial_input": { "type": "object", @@ -5813,6 +5979,3186 @@ "maximum": 4294967295 } } + }, + "atController": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "input_channel", + "initial_input", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "at_controller" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "required": [ + "vehicle_node", + "ring_node", + "supply_pressure_node", + "routes", + "sample_period_ns", + "release_timeout_ns", + "apply_timeout_ns", + "low_supply_timeout_ns", + "lockup_dwell_ns", + "apply_pressure", + "pressure_tolerance", + "minimum_supply_pressure", + "release_force", + "minimum_apply_force", + "proportional_gain", + "integral_gain", + "synchronize_tolerance", + "direction_speed_limit", + "lockup_speed_limit", + "unlock_speed_limit", + "minimum_lockup_input_speed", + "minimum_lockup_forward_range" + ], + "additionalProperties": false, + "properties": { + "vehicle_node": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "ring_node": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "supply_pressure_node": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "routes": { + "type": "array", + "minItems": 5, + "maxItems": 6, + "items": { + "type": "object", + "required": [ + "clutch", + "fill_valve", + "drain_valve" + ], + "additionalProperties": false, + "properties": { + "clutch": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "fill_valve": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "drain_valve": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + } + } + } + }, + "sample_period_ns": { + "type": "integer", + "minimum": 1, + "maximum": 1000000000 + }, + "release_timeout_ns": { + "type": "integer", + "minimum": 1, + "maximum": 10000000000 + }, + "apply_timeout_ns": { + "type": "integer", + "minimum": 1, + "maximum": 10000000000 + }, + "low_supply_timeout_ns": { + "type": "integer", + "minimum": 1, + "maximum": 10000000000 + }, + "lockup_dwell_ns": { + "type": "integer", + "minimum": 0, + "maximum": 10000000000 + }, + "apply_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "pressure_tolerance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_supply_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "release_force": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "n" + ] + } + } + }, + "minimum_apply_force": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "n" + ] + } + } + }, + "proportional_gain": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "fraction_pa" + ] + } + } + }, + "integral_gain": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "fraction_pa_s" + ] + } + } + }, + "synchronize_tolerance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "rad_s", + "rpm" + ] + } + } + }, + "direction_speed_limit": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "rad_s", + "rpm" + ] + } + } + }, + "lockup_speed_limit": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "rad_s", + "rpm" + ] + } + } + }, + "unlock_speed_limit": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "rad_s", + "rpm" + ] + } + } + }, + "minimum_lockup_input_speed": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "rad_s", + "rpm" + ] + } + } + }, + "minimum_lockup_forward_range": { + "type": "integer", + "minimum": 1, + "maximum": 4 + } + } + }, + "input_channel": { + "type": "integer", + "minimum": 1, + "maximum": 9223372036854776000 + }, + "initial_input": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "integer", + "minimum": -1, + "maximum": 4 + }, + "unit": { + "enum": [ + "state_code" + ] + } + } + } + } + }, + "liquidRailFeed": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "liquid_rail_feed" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "injector_component", + "pump_component" + ], + "properties": { + "injector_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "pump_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "supply_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "const": "k" + } + } + }, + "tank_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + } + }, + "oneOf": [ + { + "required": [ + "supply_temperature" + ], + "not": { + "required": [ + "tank_component" + ] + } + }, + { + "required": [ + "tank_component" + ], + "not": { + "required": [ + "supply_temperature" + ] + } + } + ] + } + } + }, + "liquidFuelTank": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "liquid_fuel_tank" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "injector_component", + "initial_mass", + "initial_temperature" + ], + "properties": { + "injector_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "initial_mass": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "const": "kg" + } + } + }, + "initial_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "const": "k" + } + } + }, + "headspace": { + "type": "object", + "additionalProperties": false, + "required": [ + "capacity", + "gas_node" + ], + "properties": { + "capacity": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "gas_node": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "phase_equilibrium": { + "type": "boolean" + } + } + } + } + } + } + }, + "liquidRailReturn": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "liquid_rail_return" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "feed_component", + "valve_component", + "fluid_heat_fraction" + ], + "properties": { + "feed_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "valve_component": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "fluid_heat_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "const": "fraction" + } + } + } + } + } + } + }, + "fuel": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "domain", + "storage", + "initial", + "position", + "fuel" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "domain": { + "const": "fuel" + }, + "storage": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "initial": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg" + ] + } + } + }, + "fuel": { + "type": "object", + "additionalProperties": false, + "required": [ + "compliance", + "liquid_density", + "maximum_pressure", + "gas_constant", + "vapor_specific_heat", + "liquid_specific_heat", + "reference_temperature", + "latent_internal_energy", + "reference_pressure", + "minimum_temperature", + "maximum_temperature", + "lower_heating_value" + ], + "properties": { + "compliance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3_pa" + ] + } + } + }, + "liquid_density": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg_m3" + ] + } + } + }, + "maximum_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "gas_constant": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "vapor_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "liquid_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "reference_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "latent_internal_energy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "reference_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "maximum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "lower_heating_value": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + } + } + } + }, + "description": "Homogeneous pure fuel in an elastic vessel. Position is total fuel mass; caloric and elastic energy share the phase flash. Parameters remain unverified." + }, + "fuel_restriction": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters", + "initial_input" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "fuel_restriction" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "node_b": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "conductance" + ], + "properties": { + "conductance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3_s_pa" + ] + } + } + } + } + }, + "initial_input": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "input_channel": { + "type": "integer", + "minimum": 1, + "maximum": 9223372036854775807 + } + } + }, + "fuel_heat_link": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "fuel_heat_link" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "node_b": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "conductance" + ], + "properties": { + "conductance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "w_k" + ] + } + } + } + } + } + } + }, + "fuel_check_valve": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters", + "initial_input" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "fuel_check_valve" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "node_b": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "conductance" + ], + "properties": { + "conductance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3_s_pa" + ] + } + } + } + } + }, + "initial_input": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "input_channel": { + "type": "integer", + "minimum": 1, + "maximum": 9223372036854775807 + } + } + }, + "fuel_chamber": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "fuel_chamber" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "node_b": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "minimum_reference_volume", + "swept_volume", + "phase" + ], + "properties": { + "minimum_reference_volume": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "swept_volume": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "phase": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "rad", + "deg" + ] + } + } + } + } + } + } + }, + "finite_fuel_film": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters" + ], + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "finite_fuel_film" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "initial_mass", + "initial_temperature", + "liquid_specific_heat", + "saturation_temperature", + "latent_internal_energy", + "conductance", + "phase_equilibrium", + "finite_volume_density" + ], + "properties": { + "initial_mass": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "kg" + ] + } + } + }, + "initial_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "liquid_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "saturation_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "latent_internal_energy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "conductance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "w_k" + ] + } + } + }, + "phase_equilibrium": { + "type": "object", + "additionalProperties": false, + "required": [ + "reference_pressure", + "minimum_temperature", + "maximum_temperature" + ], + "properties": { + "reference_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "maximum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + } + } + }, + "finite_volume_density": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg_m3" + ] + } + } + } + } + } + }, + "description": "Instantaneous pure-fuel phase equilibrium in a finite cavity. Liquid mass/density displaces gas; declared material temperature bounds apply." + }, + "fuel_discharge": { + "type": "object", + "additionalProperties": false, + "description": "Finite fuel-domain source to finite-displacement film/gas receiver. Frozen-quality common-temperature nozzle transit, effective throat area Cd, sonic choking and ideal fully expanded jet reference. No finite-rate phase kinetics or local inlet inertia.", + "required": [ + "id", + "kind", + "node_a", + "node_b", + "initial_input", + "parameters" + ], + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "fuel_discharge" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "input_channel": { + "type": "integer", + "minimum": 1, + "maximum": 9223372036854776000 + }, + "initial_input": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "valve_timing": { + "$ref": "#/$defs/valve_timing" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "film_component", + "phase_mode", + "wall_kinetic_fraction", + "area", + "discharge_coefficient" + ], + "properties": { + "film_component": { + "$ref": "#/$defs/id" + }, + "area": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "m2", + "mm2" + ] + } + } + }, + "discharge_coefficient": { + "type": "number", + "exclusiveMinimum": 0, + "maximum": 1 + }, + "needle": { + "type": "object", + "additionalProperties": false, + "required": [ + "needle_node", + "closed_position", + "full_open_position" + ], + "properties": { + "needle_node": { + "$ref": "#/$defs/id" + }, + "closed_position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m", + "mm" + ] + } + } + }, + "full_open_position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m", + "mm" + ] + } + } + } + } + }, + "phase_mode": { + "const": "frozen" + }, + "wall_kinetic_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + } + } + } + } + }, + "fuel_inertial_pipe": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "heat_node", + "parameters" + ], + "description": "Always-open rigid liquid line with its own fixed liquid mass, caloric energy and kinetic energy. Liquid-only finite fuel ports, constant density, well-mixed line temperature and a finite friction wall; not a cavitating or acoustic pipe.", + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "fuel_inertial_pipe" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "heat_node": { + "$ref": "#/$defs/id" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "length", + "area", + "linear_resistance", + "quadratic_resistance", + "initial_flow", + "initial_temperature", + "fluid_heat_fraction" + ], + "properties": { + "length": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m", + "mm" + ] + } + } + }, + "area": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m2", + "mm2" + ] + } + } + }, + "linear_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s_m3" + ] + } + } + }, + "quadratic_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s2_m6" + ] + } + } + }, + "initial_flow": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m3_s" + ] + } + } + }, + "initial_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "fluid_heat_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + } + } + } + } + }, + "compressible_fuel": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "domain", + "storage", + "initial", + "position", + "fuel", + "initial_velocity" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "domain": { + "const": "compressible_fuel" + }, + "storage": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "initial": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg" + ] + } + } + }, + "fuel": { + "type": "object", + "additionalProperties": false, + "required": [ + "liquid_bulk_modulus", + "liquid_density", + "maximum_pressure", + "gas_constant", + "vapor_specific_heat", + "liquid_specific_heat", + "reference_temperature", + "latent_internal_energy", + "reference_pressure", + "minimum_temperature", + "maximum_temperature", + "lower_heating_value" + ], + "properties": { + "liquid_density": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg_m3" + ] + } + } + }, + "maximum_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "gas_constant": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "vapor_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "liquid_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "reference_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "latent_internal_energy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "reference_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "maximum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "lower_heating_value": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "liquid_bulk_modulus": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + } + } + }, + "initial_velocity": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m_s" + ] + } + } + } + }, + "description": "Homogeneous pure fuel in an elastic vessel. Position is total fuel mass; caloric and elastic energy share the phase flash. Parameters remain unverified." + }, + "equilibrium_fuel_duct": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "heat_node", + "parameters" + ], + "description": "Conservative homogeneous-equilibrium fuel transport with explicit compressible fluid cells and finite stationary reservoirs. Cold compression energy, phase equilibrium and equilibrium sound speed share one thermodynamic potential.", + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "equilibrium_fuel_duct" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "heat_node": { + "$ref": "#/$defs/id" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "cells", + "area", + "linear_resistance", + "quadratic_resistance", + "fluid_heat_fraction" + ], + "properties": { + "area": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m2", + "mm2" + ] + } + } + }, + "linear_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s_m3" + ] + } + } + }, + "quadratic_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s2_m6" + ] + } + } + }, + "fluid_heat_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "cells": { + "type": "array", + "minItems": 1, + "maxItems": 24, + "uniqueItems": true, + "items": { + "$ref": "#/$defs/id" + } + } + } + } + } + }, + "compressible_fuel_chamber": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "parameters" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "kind": { + "const": "compressible_fuel_chamber" + }, + "node_a": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "node_b": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "minimum_reference_volume", + "swept_volume", + "phase" + ], + "properties": { + "minimum_reference_volume": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "swept_volume": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "phase": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "rad", + "deg" + ] + } + } + } + } + } + } + }, + "compressible_fuel_nozzle": { + "type": "object", + "additionalProperties": false, + "description": "Finite fuel-domain source to finite-displacement film/gas receiver. Frozen-quality common-temperature nozzle transit, effective throat area Cd, sonic choking and ideal fully expanded jet reference. No finite-rate phase kinetics or local inlet inertia.", + "required": [ + "id", + "kind", + "node_a", + "node_b", + "initial_input", + "parameters", + "heat_node" + ], + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "compressible_fuel_nozzle" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "input_channel": { + "type": "integer", + "minimum": 1, + "maximum": 9223372036854776000 + }, + "initial_input": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "phase_mode", + "wall_kinetic_fraction", + "area", + "discharge_coefficient" + ], + "properties": { + "area": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m2", + "mm2" + ] + } + } + }, + "discharge_coefficient": { + "type": "number", + "exclusiveMinimum": 0, + "maximum": 1 + }, + "phase_mode": { + "enum": [ + "frozen", + "equilibrium" + ] + }, + "wall_kinetic_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "needle_node": { + "$ref": "#/$defs/id" + }, + "closed_position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m", + "mm" + ] + } + } + }, + "full_open_position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m", + "mm" + ] + } + } + } + }, + "dependentRequired": { + "needle_node": [ + "closed_position", + "full_open_position" + ], + "closed_position": [ + "needle_node", + "full_open_position" + ], + "full_open_position": [ + "needle_node", + "closed_position" + ] + } + }, + "heat_node": { + "$ref": "#/$defs/id" + } + } + }, + "relaxing_fuel_node": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "domain", + "storage", + "initial", + "position", + "fuel", + "initial_velocity", + "initial_vapor_mass_fraction" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 4294967295 + }, + "domain": { + "const": "relaxing_fuel" + }, + "storage": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m3", + "l" + ] + } + } + }, + "initial": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "position": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg" + ] + } + } + }, + "fuel": { + "type": "object", + "additionalProperties": false, + "required": [ + "liquid_bulk_modulus", + "liquid_density", + "maximum_pressure", + "gas_constant", + "vapor_specific_heat", + "liquid_specific_heat", + "reference_temperature", + "latent_internal_energy", + "reference_pressure", + "minimum_temperature", + "maximum_temperature", + "lower_heating_value", + "phase_relaxation_time_ns" + ], + "properties": { + "liquid_density": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "kg_m3" + ] + } + } + }, + "maximum_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "gas_constant": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "vapor_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "liquid_specific_heat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg_k" + ] + } + } + }, + "reference_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "latent_internal_energy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "reference_pressure": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "minimum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "maximum_temperature": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "k" + ] + } + } + }, + "lower_heating_value": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "j_kg" + ] + } + } + }, + "liquid_bulk_modulus": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "pa", + "bar" + ] + } + } + }, + "phase_relaxation_time_ns": { + "type": "integer", + "minimum": 1, + "maximum": 3600000000000 + } + } + }, + "initial_velocity": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m_s" + ] + } + } + }, + "initial_vapor_mass_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + } + }, + "description": "Homogeneous pure fuel in an elastic vessel. Position is total fuel mass; caloric and elastic energy share the phase flash. Parameters remain unverified." + }, + "relaxing_fuel_duct": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "kind", + "node_a", + "node_b", + "heat_node", + "parameters" + ], + "description": "Conservative homogeneous-equilibrium fuel transport with explicit compressible fluid cells and finite stationary reservoirs. Cold compression energy, phase equilibrium and equilibrium sound speed share one thermodynamic potential.", + "properties": { + "id": { + "$ref": "#/$defs/id" + }, + "kind": { + "const": "relaxing_fuel_duct" + }, + "node_a": { + "$ref": "#/$defs/id" + }, + "node_b": { + "$ref": "#/$defs/id" + }, + "heat_node": { + "$ref": "#/$defs/id" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "required": [ + "cells", + "area", + "linear_resistance", + "quadratic_resistance", + "fluid_heat_fraction" + ], + "properties": { + "area": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "exclusiveMinimum": 0 + }, + "unit": { + "enum": [ + "m2", + "mm2" + ] + } + } + }, + "linear_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s_m3" + ] + } + } + }, + "quadratic_resistance": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "enum": [ + "pa_s2_m6" + ] + } + } + }, + "fluid_heat_fraction": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "unit": { + "enum": [ + "fraction" + ] + } + } + }, + "cells": { + "type": "array", + "minItems": 1, + "maxItems": 24, + "uniqueItems": true, + "items": { + "$ref": "#/$defs/id" + } + } + } + } + } } } } diff --git a/src/Power.Agent/AgentWorkspace.cs b/src/Power.Agent/AgentWorkspace.cs index b0b6028..4a74639 100644 --- a/src/Power.Agent/AgentWorkspace.cs +++ b/src/Power.Agent/AgentWorkspace.cs @@ -26,15 +26,121 @@ private sealed class Session(Simulation simulation) public static AgentReply Capabilities() => AgentReply.Success(new { - version = "0.29.0", model_schema = "power.model.v1", report_schema = "power.experiment_report.v2", asset_format = AssetCodec.FormatName, - readable_asset_formats = new[] { "power.asset.v1", "power.asset.v2", "power.asset.v3", "power.asset.v4", "power.asset.v5", "power.asset.v6", "power.asset.v7", "power.asset.v8", "power.asset.v9", "power.asset.v10", "power.asset.v11", "power.asset.v12", "power.asset.v13", "power.asset.v14", "power.asset.v15", "power.asset.v16", "power.asset.v17", "power.asset.v18", "power.asset.v19", "power.asset.v20", "power.asset.v21", "power.asset.v22", "power.asset.v23", AssetCodec.FormatName }, - domains = new[] { "rotational", "thermal", "gas", "hydraulic", "battery", "translational" }, - components = new[] { "shaft", "dc_motor", "torque_source", "thermal_link", "sealed_cylinder", "gas_orifice", "gas_heat_link", "gas_cylinder", "premixed_combustion", "clutch", "ideal_gear", "planetary_gear", "torque_converter", "hydraulic_resistance", "hydraulic_orifice", "hydraulic_clutch", "hydraulic_pump", "hydraulic_relief", "pressure_controller", "battery_motor", "resistive_load", "pressure_duty_controller", "linear_spring", "hydraulic_piston", "piston_clutch", "force_source", "hydraulic_spool_valve", "gas_piston", "gas_fuel_injector", "fuel_film", "liquid_fuel_injector", "solenoid", "travel_stop", "needle_driver", "dct_controller", "double_pinion_planetary_gear", "carrier_gear" }, - examples = new[] { "electrothermal", "sealed-cylinder", "gas-network", "moving-cylinder", "crank-timed-cylinder", "fired-cylinder", "fired-clutch", "fired-planetary", "fired-converter", "fired-hydraulic", "fired-pump", "fired-pump-losses", "electric-pump", "pressure-regulated-pump", "battery-regulated-pump", "piston-actuated-clutch", "spool-regulated-pump", "gas-accumulator-pump", "metered-fired-cylinder", "film-fired-cylinder", "liquid-injected-cylinder", "needle-actuated-cylinder", "closure-compensated-cylinder", "dual-clutch-transmission", "fired-dual-clutch", "controlled-dual-clutch", "controlled-fired-dual-clutch", "ravigneaux-transmission", "fired-ravigneaux-converter", "resolved-ravigneaux-transmission", "fired-resolved-ravigneaux-converter", "hydraulic-ravigneaux-transmission", "fired-hydraulic-ravigneaux" }, + version = "0.46.0", model_schema = "power.model.v1", report_schema = "power.experiment_report.v2", asset_format = AssetCodec.FormatName, + readable_asset_formats = new[] { "power.asset.v1", "power.asset.v2", "power.asset.v3", "power.asset.v4", "power.asset.v5", "power.asset.v6", "power.asset.v7", "power.asset.v8", "power.asset.v9", "power.asset.v10", "power.asset.v11", "power.asset.v12", "power.asset.v13", "power.asset.v14", "power.asset.v15", "power.asset.v16", "power.asset.v17", "power.asset.v18", "power.asset.v19", "power.asset.v20", "power.asset.v21", "power.asset.v22", "power.asset.v23", "power.asset.v24", "power.asset.v25", "power.asset.v26", "power.asset.v27", "power.asset.v28", "power.asset.v29", "power.asset.v30", "power.asset.v31", "power.asset.v32", "power.asset.v33", "power.asset.v34", "power.asset.v35", "power.asset.v36", "power.asset.v37", "power.asset.v38", "power.asset.v39", "power.asset.v40", AssetCodec.FormatName }, + domains = new[] { "rotational", "thermal", "gas", "hydraulic", "battery", "translational", "fuel", "compressible_fuel", "relaxing_fuel" }, + components = new[] { "shaft", "dc_motor", "torque_source", "thermal_link", "sealed_cylinder", "gas_orifice", "gas_heat_link", "gas_cylinder", "premixed_combustion", "clutch", "ideal_gear", "planetary_gear", "torque_converter", "hydraulic_resistance", "hydraulic_orifice", "hydraulic_clutch", "hydraulic_pump", "hydraulic_relief", "pressure_controller", "battery_motor", "resistive_load", "pressure_duty_controller", "linear_spring", "hydraulic_piston", "piston_clutch", "force_source", "hydraulic_spool_valve", "gas_piston", "gas_fuel_injector", "fuel_film", "liquid_fuel_injector", "solenoid", "travel_stop", "needle_driver", "dct_controller", "double_pinion_planetary_gear", "carrier_gear", "at_controller", "liquid_rail_feed", "liquid_fuel_tank", "liquid_rail_return", "fuel_restriction", "fuel_heat_link", "fuel_chamber", "fuel_check_valve", "finite_fuel_film", "fuel_discharge", "fuel_inertial_pipe", "equilibrium_fuel_duct", "compressible_fuel_chamber", "compressible_fuel_nozzle", "relaxing_fuel_duct" }, + examples = LaboratoryCatalog.Entries.Where(lab => lab.AgentExample).Select(lab => lab.Name).ToArray(), limits = new { nodes = CompiledModel.MaxNodes, components = CompiledModel.MaxComponents, states = CompiledModel.MaxStates, sessions = MaxSessions, ticks_per_step = 1_000_000, experiment_ticks = 10_000_000, document_bytes = 1_048_576, asset_bytes = AssetCodec.MaxBytes }, determinism = "Exact replay within the same binary/runtime/architecture. Compare tolerances across platforms.", - fidelity = new[] { "linear_lumped", "sealed_adiabatic_gas", "finite_volume_gas_exchange", "moving_cylinder_gas_exchange", "crank_timed_gas_exchange", "premixed_gas_transport", "premixed_wiebe_combustion", "hybrid_clutch_powertrain", "constrained_gear_powertrain", "quasisteady_converter_powertrain", "compliant_hydraulic_powertrain", "shaft_driven_hydraulics", "sampled_pressure_control", "battery_electromechanical", "battery_pressure_control", "dynamic_piston_powertrain", "mechanically_regulated_hydraulics", "linear_gas_actuation", "gas_accumulator_powertrain", "cycle_fuel_metering", "metered_fired_powertrain", "finite_liquid_film_evaporation", "film_evaporation_fired_powertrain", "finite_liquid_fuel_delivery", "liquid_injected_fired_powertrain", "electromagnetic_linear_actuation", "elastic_translational_contact", "needle_actuated_liquid_delivery", "needle_actuated_fired_powertrain", "closure_compensated_liquid_delivery", "closure_compensated_fired_powertrain", "sampled_dual_clutch_control" }, calibration = "unverified", + fidelity = new[] { "linear_lumped", "sealed_adiabatic_gas", "finite_volume_gas_exchange", "moving_cylinder_gas_exchange", "crank_timed_gas_exchange", "premixed_gas_transport", "premixed_wiebe_combustion", "hybrid_clutch_powertrain", "constrained_gear_powertrain", "quasisteady_converter_powertrain", "compliant_hydraulic_powertrain", "shaft_driven_hydraulics", "sampled_pressure_control", "battery_electromechanical", "battery_pressure_control", "dynamic_piston_powertrain", "mechanically_regulated_hydraulics", "linear_gas_actuation", "gas_accumulator_powertrain", "cycle_fuel_metering", "metered_fired_powertrain", "finite_liquid_film_evaporation", "film_evaporation_fired_powertrain", "finite_liquid_fuel_delivery", "liquid_injected_fired_powertrain", "electromagnetic_linear_actuation", "elastic_translational_contact", "needle_actuated_liquid_delivery", "needle_actuated_fired_powertrain", "closure_compensated_liquid_delivery", "closure_compensated_fired_powertrain", "sampled_dual_clutch_control", "sampled_hydraulic_at_control", "pump_fed_liquid_fuel_powertrain", "finite_tank_liquid_fuel_powertrain", "recirculating_liquid_fuel_powertrain", "geometric_tank_liquid_fuel_powertrain", "equilibrium_liquid_fuel_powertrain", "equilibrium_tank_liquid_fuel_powertrain", "homogeneous_equilibrium_fuel_network", "shaft_driven_equilibrium_fuel_pump", "finite_volume_equilibrium_fuel_receiver", "finite_volume_fuel_discharge_powertrain", "liquid_inertial_fuel_network", "equilibrium_compressible_fuel_transport", "compressible_fuel_equilibrium", "shaft_driven_compressible_fuel", "frozen_compressible_fuel_nozzle_network", "equilibrium_compressible_fuel_nozzle_network", "homogeneous_relaxing_fuel_transport", "homogeneous_relaxing_fuel_boundaries" }, calibration = "unverified", + relaxing_fuel = new + { + domain="relaxing_fuel",component="relaxing_fuel_duct", + boundaries="compressible_fuel_chamber accepts a relaxing_fuel node with fixed-quality reversible work. compressible_fuel_nozzle connects two relaxing_fuel reservoirs only with phase_mode frozen, preserving vapor mass and transferred stagnation enthalpy. Mixed equilibrium/relaxing ports and equilibrium transit are rejected.", + coupling="One global source per node around CFL-bounded duct and inventory-bounded nozzle intervals. Mechanical volume work preserves quality and entropy; chemical relaxation is separate. Shared reservoirs are not relaxed per connection. First-order transport and finite-step splitting still require refinement.", + vapor_metering="total_vapor_delivered is cumulative frozen vapor mass through each relaxing nozzle. It closes port inventories alongside phase source histories.", + state="Node volume (rigid unless a compressible_fuel_chamber owns its geometry), total mass, temperature, initial_velocity and explicit initial_vapor_mass_fraction. Matching compressible caloric material plus phase_relaxation_time_ns from 1 through 3600000000000; each node owns its own relaxation time.", + closure="Common phase pressure/temperature/velocity at fixed vapor quality; compressible zero-thermal-expansion liquid cold energy and ideal vapor. Quality is an independent state, not an equilibrium projection. Sound speed is frozen at fixed quality.", + source="At fixed density and internal energy, x_dot=(x_equilibrium-x)/tau. The isolated exponential update is exact for constant tau and conserves mass, momentum and total energy. Chemical affinity is liquid minus vapor chemical potential; entropy gradient at fixed u,v is affinity/T. Each accepted source checks direction and entropy.", + transport="Conservative Rusanov mass/momentum/total-energy/vapor-mass transport; finite stationary mixed reservoirs and 1..24 rigid internal cells. Each internal cell has one duct owner. Same explicit area, resistance and finite-wall friction routing as equilibrium ducts.", + numerics="Global CFL substeps apply one half-source to every relaxing node, conservative transport, then one half-source. Relaxing boundary models include frozen nozzle substeps bounded by 0.02 times the smaller port inventory and split around volume work. Shared reservoirs receive source time once. First-order transport remains first order. At most 4096 global substeps per interval; rollback includes every phase state, compensated port history and input.", + observables="Actual and equilibrium vapor quality, vapor mass, frozen sound speed, chemical_affinity, net-tick evaporated/condensed histories, relaxation entropy and mean net phase transfer; vapor_mass_at_a/b on relaxing ducts and global vapor_mass_residual.", + limits="Positive pressure, declared temperature/pressure and representability bounds. No negative liquid tension, phase slip, nucleation-barrier law, finite-rate internal nozzle residence, carrier gas or fired receiver. Moving mixed reservoirs and frozen nozzle boundaries are supported; duct cells remain rigid. Constant tau is an unverified research input, not the published empirical HRM correlation or measured material evidence.", + recovery="On numerical_failure reduce step_ns and inspect material bounds, phase quality, density and stiffness. A successful call is separate from physical accuracy, KPIs, calibration or Unity acceptance." + }, + compressible_fuel_nozzle = new + { + component = "compressible_fuel_nozzle", domain = "compressible_fuel", domains = new[] { "compressible_fuel", "relaxing_fuel" }, phase_modes = new[] { "frozen", "equilibrium" }, phase_mode = "frozen", + ports = "One-way A-to-B pressure-driven flow between compatible mixed reservoirs; internal duct cells are excluded. A finite thermal heat_node is required.", + material = "Compressible zero-thermal-expansion liquid cold energy and ideal vapor share the bulk EOS. compressible_fuel reservoirs use instantaneous equilibrium and frozen or equilibrium transit. relaxing_fuel reservoirs evolve independent vapor mass with their own finite relaxation times and permit only frozen transit; mixed-domain ports are rejected.", + choking = "Unique maximum of frozen isentropic mass flux; includes compressible liquid and ideal-vapor limits. Frozen acoustic speed differs from equilibrium acoustic speed.", + controls = "Explicit fraction initial_input and optional input_channel; optional needle_node, closed_position and full_open_position multiply opening by actual translational position. No automatic dose quota or axial hydraulic needle force.", + accounting = "Donor loses stagnation enthalpy; explicit wall_kinetic_fraction routes ideal jet kinetic energy to the finite stationary wall, remainder thermalizes in the receiver. Stationary jet impulse adds no mechanical work.", + numerics = "First-order adaptive conservative substeps, at most 4096 per interval and 64 halvings per candidate. Check both reservoir states and total pair entropy; whole-batch rollback on failure. Pressure closure allows 128*binary64_epsilon*max(K,pA,pB) rounding without clamping outputs.", + equilibrium = new + { + material = "Pressure-specific-entropy inversion of the same chemical-equilibrium EOS; vapor quality changes during transit. Inclusive temperature endpoints allow binary64 rounding only.", + maximum_flux = "Global branch-and-bound over the complete receiver-to-source pressure interval. Positive isentropic compressibility gives increasing density and decreasing enthalpy drop with pressure; interval upper bounds are rho(high)*sqrt(2*drop_upper(low)). No unique smooth maximum is assumed.", + accuracy = "Each local constitutive rate is a lower bound on the model maximum, with flux_relative_uncertainty at most 1e-4. Endpoint enthalpy error enclosures are intersected with monotone pressure-integral bounds; small-drop cases refine Riemann sums. The last-accepted numerical flux enclosure does not bound first-order time integration, delivered mass or calibration uncertainty.", + limits = "512 stack intervals, 8192 splits, up to 256 pressure-integration panels and 80 closure iterations; no shared mutable solver workspace. Failure to resolve the declared envelope rejects the batch.", + choking = "Interior smooth critical states satisfy velocity=sound speed. A phase-boundary maximum can be nonsmooth; choked marks the selected throat above receiver pressure within numerical flux uncertainty. It does not imply sonic equality at a phase kink.", + output = "last-accepted flux_relative_uncertainty on equilibrium nozzle components; frozen components retain their previous channels and hashes" + }, + recovery = "Reduce step_ns after numerical_failure and inspect source depletion, material temperature/pressure bounds, needle travel, valve areas and nozzle closure resolution. Choking, calibration and successful execution remain distinct.", + remaining = "Finite-rate nozzle transit, resolved spray and fired receiver coupling, measured valve maps and actual Unity acceptance" + }, + compressible_fuel_chamber = new + { + domain = "compressible_fuel", domains = new[] { "compressible_fuel", "relaxing_fuel" }, component = "compressible_fuel_chamber", + ports = "node_a is a rotational shaft; node_b is a mixed compressible reservoir with one geometry owner, zero bulk velocity and no internal duct-cell ownership", + geometry = "minimum_reference_volume and swept_volume in m3 or l; phase in rad or deg; actual rigid volume is minimum+swept*sin((angle-phase)/2)^2; initial storage must match", + work = "Closed reversible fixed-mass entropy inversion; fluid cold compression and caloric energy pay -integral(p dV); the same discrete energy change drives shaft torque. Relaxing-domain work holds vapor quality fixed and separates chemical relaxation from mechanical trials.", + coupling = "joint gear-projected mechanical solve with converter, hydraulic and clutch trials; half duct flow / full mechanical work / half duct flow; full transport remains first order", + outputs = new[] { "volume", "torque", "hydraulic_power", "hydraulic_work" }, + limits = "zero external case pressure, massless geometry, mixed chamber with no resolved bulk kinetic energy, no check valve or direct opening input; ideal vapor and zero-thermal-expansion liquid", + recovery = "reduce step_ns after numerical_failure; inspect material temperature/pressure bounds, chamber volume and shaft angular increment; the whole batch rolls back", + remaining = "finite-rate internal nozzle residence and fired receiver coupling, phase slip, measured material relaxation and actual Unity acceptance" + }, + equilibrium_fuel_duct = new + { + domain = "compressible_fuel", component = "equilibrium_fuel_duct", + material = "Explicit liquid_bulk_modulus in Pa replaces vessel compliance. Node storage declares initial volume, with optional compressible_fuel_chamber geometry; total mass, temperature and initial_velocity in m_s are explicit. Matching material and LHV across reservoirs and cells.", + thermodynamics = "Liquid p=K*(rho/rho0-1), zero thermal expansion, constant liquid heat capacity and integrated cold energy. Ideal vapor and homogeneous instantaneous phase equilibrium share chemical potentials. Equilibrium acoustic speed follows the isentropic derivative; no measured fuel calibration.", + topology = "Finite mixed reservoirs at node_a/node_b have zero bulk velocity and may own compressible_fuel_chamber geometry; 1..24 ordered internal rigid cell IDs each belong to one duct. Explicit area, linear/quadratic resistance and finite thermal heat_node; all cell states observable.", + integration = "Conservative Rusanov finite-volume mass/momentum/total-energy transport, bounded explicit CFL substeps (maximum 4096 per interval), then exact local drag decay with finite-wall heat routing. First-order numerical diffusion; each accepted substep checks total entropy. Failures preserve the complete batch.", + momentum = "Stationary reservoir and friction-wall reactions are reported as impulse and mean force; they perform no mechanical work. Reservoir inflow kinetic energy thermalizes in the finite fluid inventory.", + recovery = "On numerical_failure reduce step_ns, refine cell volumes, and inspect material pressure/temperature and acoustic CFL bounds. Missing or duplicate cells and incompatible properties fail validation.", + scope = "Horizontal constant-area rigid duct, equilibrium phase change, uniform state per cell; optional shaft-driven moving mixed reservoir. No phase slip/relaxation delay, surface tension, real critical-point behavior, equilibrium nozzle transit, fired receiver coupling or actual Unity acceptance. Existing liquid-only and frozen-nozzle paths retain their own contracts." + }, + fuel_inertial_pipe = new + { + component = "fuel_inertial_pipe", ports = "Distinct finite fuel nodes A/B with matching material and density; required finite thermal heat_node. No direct opening input.", + inventory = "Rigid horizontal uniform-area line owns rho*length*area liquid mass, caloric energy and I*Q^2/2 kinetic energy, with I=rho*length/area. Line volume is additional to both vessel volumes.", + momentum = "Signed dynamic flow, linear loss in pa_s_m3 and quadratic loss in pa_s2_m6. Midpoint momentum uses end-state finite-vessel pressures; split zero-flow events preserve gross forward/reverse transfer.", + energy = "Donor port enthalpy leaves one vessel; mixed line enthalpy enters the other. Explicit fluid_heat_fraction routes friction heat to the line and the rest to its finite wall. Pressure work changes kinetic energy and supplies friction heat once.", + numerics = "Pairwise backward-Euler port energy/mixing and midpoint momentum; first-order coupled refinement. Endpoint pressure discretization creates numerical caloric heating distinct from physical friction. Entropy history includes mixing and time discretization.", + bounds = "Liquid-only endpoints and pressure-corrected liquid stability throughout the line. Material temperature/pressure, quarter-mass transfer and dt*sqrt((1/Ca+1/Cb)/I)<=0.5 bounds apply. On numerical_failure reduce step_ns and inspect supply pressure, phase and line thermal bounds; full rollback applies.", + scope = "Constant-density incompressible liquid and well-mixed caloric line. No variable-density two-phase momentum, cavitation, acoustic waves, gravity, moving line geometry, distributed thermal fronts or measured calibration. Existing quasi-static two-phase links remain available separately." + }, + fuel_discharge = new + { + component = "fuel_discharge", receiver = "finite_fuel_film", phase_mode = "frozen", + flow = "Finite fuel-domain source to gas/film receiver. Frozen vapor mass quality and common temperature during isentropic nozzle transit; bulk endpoints re-equilibrate. Incompressible liquid and ideal pseudo-species vapor. Unique mass-flux maximum limits sonic choking; Cd scales effective throat area.", + receiver_volume = "finite_fuel_film declares finite_volume_density in kg_m3. Accessible gas volume is cavity volume minus liquid mass/density, including gas_cylinder pressure work. Linear gas_piston coupling is unsupported.", + energy_momentum = "Source loses stagnation enthalpy. Explicit wall_kinetic_fraction in [0,1] thermalizes jet kinetic energy at the finite stationary film wall; the rest enters receiver fluid. Report ideal fully expanded jet speed, kinetic energy and impulse. Stationary wall/housing reactions do no work and add no direct piston or needle force.", + actuation = "Optional physical translational needle and crank valve_timing multiply the [0,1] opening command. No kg-per-cycle quota or needle_driver ownership for this component; coil voltage schedules remain explicit.", + material = "Source/receiver require matching pure-fuel properties and density. Vapor cv equality permits only 64-epsilon conversion rounding from declared gamma. Material temperature and positive gas-volume bounds remain enforced.", + recovery = "On numerical_failure refine step_ns and check source depletion, receiver capacity, phase temperature limits and conductance. Complete batch rollback, cancellation and fork independence apply.", + scope = "Quasi-steady homogeneous frozen-quality nozzle reference; no local inlet inertia, finite-rate nucleation, slip, resolved spray, real-fluid critical behavior, measured nozzle exit velocity or hardware calibration." + }, + fuel_chamber = new + { + component = "fuel_chamber", ports = "node_a is the rotational shaft; node_b is one exclusively owned fuel-domain chamber.", + geometry = "Explicit minimum_reference_volume and swept_volume in m3 or l, phase in rad or deg. V0(theta)=Vmin+Vs sin^2((theta-phase)/2). Initial fuel storage matches this geometry within binary64 rounding.", + thermodynamics = "V=V0(theta)+C p; stored energy includes fluid and C p^2/2. Closed pressure work holds mass and entropy fixed; shaft torque uses the same energy change. Material temperature, maximum pressure and positive mass bounds remain explicit.", + coupling = "Joint projected electromechanical/cylinder/converter/hydraulic solve, including gear reactions and speculative clutch intervals. No explicit shaft torque kick. Transport surrounds mechanical work and includes homogeneous phase change during filling and delivery.", + valves = "fuel_check_valve permits only node_a to node_b flow when upstream pressure exceeds downstream pressure. Massless zero-cracking-pressure ideal check behavior with declared finite conductance and optional opening input; no measured valve dynamics or local inertia.", + evidence = "Shaft pressure torque, reference volume and signed work are observable. Closed-liquid and ideal-vapor references, independent entropy inversion, coupled ODE refinement, source starvation, full ledgers, replay and rollback require separate checks.", + scope = "Incompressible liquid, ideal pseudo-species vapor and instantaneous common-temperature equilibrium. No detailed cam/piston inertia, local NPSH, sonic choking, injector discharge or measured hardware calibration." + }, + equilibrium_fuel_network = new + { + domain = "fuel", node_storage = "Positive reference vessel volume in m3 or l; initial is K and position is total kg.", + material = "Explicit density, compliance, maximum wall pressure, R, vapor cv, liquid cl, reference T/pressure, latent internal energy, temperature limits and LHV. Connected volumes require compatible pure-fuel properties.", + restriction = "fuel_restriction: finite fuel ports, conductance in m3_s_pa and optional opening channel in [0,1]. Reference volume flow follows pressure drop; total mass uses homogeneous donor density and upstream enthalpy.", + heat = "fuel_heat_link: finite fuel and thermal ports, conductance in w_k; conservative finite-bath heat and phase flash.", + state = "Independent fuel mass and caloric-plus-elastic energy. Report vapor mass/void fractions, entropy, enthalpy, transferred mass/energy and full mass/fuel/energy ledgers. LHV energy stays separate.", + integration = "Pairwise backward Euler in canonical component order, with bounded mass-energy solves and complete rollback. Entropy histories include physical mixing and time-discretization entropy; first-order refinement is checked independently.", + scope = "Homogeneous quasi-static dissipative restrictions; no link inertia, slip, sonic choking, finite-rate nucleation, injector coupling, real-fluid mixture calibration or actual Unity acceptance. Explicit fuel_chamber components supply finite-volume pump filling and shaft work.", + recovery = "On numerical_failure reduce step_ns and inspect conductance, vessel mass, compliance, maximum pressure and material temperature bounds. The entire failed batch and inputs remain unchanged." + }, + at_controller = new { component = "at_controller", input = "Integral requested_gear state_code in [-1,4]; zero requests vented neutral.", + ownership = "Owns all fill/drain pairs; write requested gear instead of owned valve fractions.", + phases = new[] { "Neutral", "Releasing", "Applying", "Driving", "Fault" }, + faults = new[] { "None", "ReleaseTimeout", "ApplyTimeout", "LowSupplyPressure", "DirectionChangeBlocked", "ConfirmedLockLost" }, + lockup = "Optional sixth piston route with speed/dwell hysteresis; physical Released/Applying/Locked/Releasing output." }, dct_controller = new { component = "dct_controller", input = "Integral requested_gear state_code in [-1,7]; zero is neutral.", ownership = "Owns both drive clutches and all eight selectors; write requested gear instead of owned engagement channels.", policy = "Sampled physical selector/drive lock confirmation; unloaded preselection, exclusive release/engagement ramps, neutral abort, timeout/direction faults and new-request recovery.", @@ -52,17 +158,42 @@ public static AgentReply Capabilities() => AgentReply.Success(new flow = "Needle position sets actual nozzle opening. Fluid can continue after target/window closure or reversal; actual delivery is not clipped to requested dose.", control = "Sampled forward-window/delivered-dose feedback owns coil voltage; write the injector kg request. Held voltage, sampled dose and every physical history share integer clocks, rollback and forks.", scope = "Pressure-balanced needle, constant R and linear unsaturated inductance. No nonlinear magnetic maps, hysteresis/eddy losses, flyback/PWM hardware, axial fluid force or calibrated actuation." }, + liquid_rail_return = new { component = "liquid_rail_return", valve = "hydraulic_relief", + flow = "Explicit exclusive one-way relief from rail to the feed source at prescribed inlet pressure or coupled finite headspace pressure. Unregistered fluid paths reject.", + thermal = "Simultaneous rail/tank caloric mixing. Explicit fraction [0,1] of valve loss travels with returned fuel; the remainder follows the valve heat route.", + evidence = "Returned mass, caloric/chemical energy, carried fluid heat and mean flow remain observable. Research valve law; no measured regulator, cavitation or liquid boiling model." }, + liquid_fuel_tank = new { component = "liquid_fuel_tank", feed_parameter = "tank_component", + headspace = new { optional_parameter = "headspace", capacity_unit = "m3", gas_node = "Finite gas node with omitted storage; tank capacity minus liquid volume owns it.", + pressure_work = "Coupled finite gas pressure sets pump inlet and relief return pressure; its adiabatic work is internal, not an external reservoir source.", + phase_equilibrium = new { optional_boolean = "phase_equilibrium", material = "Reuse the paired film's phase_equilibrium reference, with matching tracked headspace R/cv/LHV/stoichiometry. The tank adds p/rho to liquid chemical potential and resolves finite liquid volume.", + initial = "Declare common gas/liquid temperature and pressure-corrected saturated vapor for a wet tank; a dry tank is at or below saturation. Total inventory density is below liquid density by a representable margin.", + observables = new[] { "evaporated_fuel_mass", "condensed_fuel_mass", "signed mass_flow", "vapor_partial_pressure", "saturation_pressure", "cavitation_margin" }, + integration = "Bounded constant-U,V flash around gas transport and the conserving pump/return solve. Histories count physical-tick net phase transfer; gas vents carry fuel and chemical energy. Coupled refinement evidence is first order.", + pickup = "The pump draws separated liquid only; dry forward rotation delivers no liquid. Bubble entrainment, two-phase pump/rail transport and local NPSH remain unsupported." }, + vent = "Explicit existing gas_orifice and gas_heat_link paths; no implicit ambient clamp.", + observables = new[] { "pressure", "fill_fraction", "hydraulic_work", "gas mass", "gas internal_energy", "gas volume" }, + interval = "Accepted net withdrawal is at most one quarter of the old headspace volume; refine ticks for unresolved transport or capacity failure." }, + inventory = "Finite mixed liquid mass, caloric and chemical storage. Prescribed inlet pressure applies without headspace; geometric headspace owns the coupled pressure. Return flow mixes current rail temperature.", + filling = "Interval-average fill fraction limits positive displacement flow by remaining inventory and scales shaft reaction with the same work-conjugate displacement. Dry forward rotation transfers no fluid work.", + scope = "Optional rigid capacity and ideal-gas pressure work, with explicit vents/heat paths and optional finite-volume phase equilibrium. Without headspace the prescribed inlet pressure-work boundary remains. Slosh, real-fluid mixtures, cavitating pump transport, measured filling dynamics and calibrated hardware remain open." }, liquid_fuel_injector = new { component = "liquid_fuel_injector", source = "Finite compliant liquid inventory; absolute pressure falls with discharged volume.", input_unit = "kg", density_unit = "kg_m3", compliance_unit = "m3_pa", delivery = "Forward cycle quota is latched once. Exact fixed-receiver pressure-head decay limits delivery by pressure, finite inventory and remaining dose.", energy = "Rail caloric/chemical and pressure energy are stored. Released pressure work equals nozzle heat plus exported receiver pressure work. Only liquid joins the film; evaporation remains separate.", scope = "Constant density/compliance/caloric properties; negligible liquid receiver volume with explicit exported displacement work. No pump/refill, needle/electrical actuation, spray/cavitation or calibrated hardware." }, fuel_film = new { component = "fuel_film", receiver = "Tracked gas", wall = "Finite thermal node", - phases = "Analytic finite-bath sensible heating, declared saturation plateau, heat-limited vaporization and dryout. Only vapor joins the gas reactants.", + phases = "Default: analytic finite-bath heating, prescribed saturation plateau, evaporation and dryout. Optional phase_equilibrium adds reversible liquid/vapor and thermal equilibrium; reaction still consumes vapor only.", energy = "Latent input is internal-energy difference in j_kg. Liquid phase offset matches the receiver vapor cv at saturation; signed liquid thermal energy is valid.", units = new { mass = "kg", temperature = "k", specific_heat = "j_kg_k", latent_internal_energy = "j_kg", conductance = "w_k" }, integration = "Symmetric film/gas/mechanics/gas/film split; reverse film order on the second half-step. Other wall heat sources use the explicit outer-tick wall temperature and retain first-order coupling accuracy.", - scope = "Negligible liquid volume, constant prescribed saturation temperature/properties, no condensation, no liquid injection/rail/needle/spray dynamics or calibrated fuel properties." }, + phase_equilibrium = new { required_parameters = new[] { "reference_pressure", "minimum_temperature", "maximum_temperature" }, pressure_units = new[] { "pa", "bar" }, temperature_unit = "k", + material = "The declared saturation_temperature and latent_internal_energy define the reference. Constant liquid heat capacity and receiver R/cv determine a consistent saturation curve; one film owns each equilibrium receiver.", + advance = "Conserving bounded scalar flash at fixed total fuel, volume and internal energy, with finite-wall backward Euler. Gas, liquid and wall coupling has first-order refinement evidence. Fully vaporized gas may superheat after complete evaporation within the declared curve interval.", + observables = new[] { "condensed_fuel_mass", "evaporated_fuel_mass", "vapor_partial_pressure", "signed mass_flow", "saturation_pressure", "cavitation_margin" }, + pressure_roundoff = "64 * 2^-52 * max(p, p_sat); reported margins are not clamped. Bulk saturation is not a local-flow or pump NPSH model.", + histories = "Evaporated and condensed histories accumulate positive and negative net phase transfer per complete physical tick; signed mass_flow retains that tick net rate.", + supply = "Liquid rail and inlet pressure minus saturation pressure is observable. A negative wet-inventory margin rejects the entire batch; raise pressure or lower liquid temperature. Vapor bubbles and cavitating pump flow are not modeled." }, + scope = "Negligible liquid displacement and constant caloric properties. Optional equilibrium uses one ideal pseudo-species with the receiver gas constant; multicomponent fuel, finite-rate phase kinetics, resolved spray and measured calibration remain open." }, gas_fuel_injector = new { component = "gas_fuel_injector", source = "Finite tracked gas rail; pressure-dependent one-way fuel/enthalpy transfer.", input_unit = "kg", quota = "Requested fuel dose is latched once at each forward metering window. Mid-window writes apply to the next cycle; reversal cannot reissue an observed cycle quota.", limiter = "One half-step fuel-rate ceiling preserves the per-cycle budget. The same flow factor transports total mass, constituents and upstream thermal enthalpy.", @@ -185,43 +316,16 @@ private static JsonElement Resource(string name) return document.RootElement.Clone(); } public static AgentReply ModelSchema() => AgentReply.Success(Resource("power.model.schema.json")); - public static AgentReply ExampleModel(string name = "electrothermal") => name switch + public static AgentReply ExampleModel(string name = "electrothermal") { - "electrothermal" => AgentReply.Success(Resource("power.template.json")), - "sealed-cylinder" => AgentReply.Success(Resource("power.cylinder.template.json")), - "gas-network" => AgentReply.Success(Resource("power.gas.template.json")), - "moving-cylinder" => AgentReply.Success(Resource("power.moving-cylinder.template.json")), - "crank-timed-cylinder" => AgentReply.Success(Resource("power.crank-timed-cylinder.template.json")), - "fired-cylinder" => AgentReply.Success(Resource("power.fired-cylinder.template.json")), - "fired-clutch" => AgentReply.Success(Resource("power.fired-clutch.template.json")), - "fired-pump" => AgentReply.Success(Resource("power.fired-pump.template.json")), - "fired-pump-losses" => AgentReply.Success(Resource("power.fired-pump-losses.template.json")), - "electric-pump" => AgentReply.Success(Resource("power.electric-pump.template.json")), - "pressure-regulated-pump" => AgentReply.Success(Resource("power.pressure-regulated-pump.template.json")), - "battery-regulated-pump" => AgentReply.Success(Resource("power.battery-regulated-pump.template.json")), - "piston-actuated-clutch" => AgentReply.Success(Resource("power.piston-actuated-clutch.template.json")), - "spool-regulated-pump" => AgentReply.Success(Resource("power.spool-regulated-pump.template.json")), - "gas-accumulator-pump" => AgentReply.Success(Resource("power.gas-accumulator-pump.template.json")), - "metered-fired-cylinder" => AgentReply.Success(Resource("power.metered-fired-cylinder.template.json")), - "film-fired-cylinder" => AgentReply.Success(Resource("power.film-fired-cylinder.template.json")), - "liquid-injected-cylinder" => AgentReply.Success(Resource("power.liquid-injected-cylinder.template.json")), - "needle-actuated-cylinder" => AgentReply.Success(Resource("power.needle-actuated-cylinder.template.json")), - "closure-compensated-cylinder" => AgentReply.Success(Resource("power.closure-compensated-cylinder.template.json")), - "dual-clutch-transmission" => AgentReply.Success(Resource("power.dual-clutch-transmission.template.json")), - "fired-dual-clutch" => AgentReply.Success(Resource("power.fired-dual-clutch.template.json")), - "hydraulic-ravigneaux-transmission" => AgentReply.Success(Resource("power.hydraulic-ravigneaux-transmission.template.json")), - "fired-hydraulic-ravigneaux" => AgentReply.Success(Resource("power.fired-hydraulic-ravigneaux.template.json")), - "resolved-ravigneaux-transmission" => AgentReply.Success(Resource("power.resolved-ravigneaux-transmission.template.json")), - "fired-resolved-ravigneaux-converter" => AgentReply.Success(Resource("power.fired-resolved-ravigneaux-converter.template.json")), - "ravigneaux-transmission" => AgentReply.Success(Resource("power.ravigneaux-transmission.template.json")), - "fired-ravigneaux-converter" => AgentReply.Success(Resource("power.fired-ravigneaux-converter.template.json")), - "controlled-dual-clutch" => AgentReply.Success(Resource("power.controlled-dual-clutch.template.json")), - "controlled-fired-dual-clutch" => AgentReply.Success(Resource("power.controlled-fired-dual-clutch.template.json")), - "fired-hydraulic" => AgentReply.Success(Resource("power.fired-hydraulic.template.json")), - "fired-converter" => AgentReply.Success(Resource("power.fired-converter.template.json")), - "fired-planetary" => AgentReply.Success(Resource("power.fired-planetary.template.json")), - _ => AgentReply.Failure("unknown_example", "Available examples: electrothermal, sealed-cylinder, gas-network, moving-cylinder, crank-timed-cylinder, fired-cylinder, fired-clutch, fired-planetary, fired-converter, fired-hydraulic, fired-pump, fired-pump-losses, electric-pump, pressure-regulated-pump, battery-regulated-pump, piston-actuated-clutch, spool-regulated-pump, gas-accumulator-pump, metered-fired-cylinder, film-fired-cylinder, liquid-injected-cylinder, needle-actuated-cylinder, closure-compensated-cylinder, dual-clutch-transmission, fired-dual-clutch, controlled-dual-clutch, controlled-fired-dual-clutch, ravigneaux-transmission, fired-ravigneaux-converter, resolved-ravigneaux-transmission, fired-resolved-ravigneaux-converter, hydraulic-ravigneaux-transmission, fired-hydraulic-ravigneaux.", field: "name") - }; + var lab = LaboratoryCatalog.Entries.FirstOrDefault(entry => entry.AgentExample && entry.Name == name); + if (lab is null) + return AgentReply.Failure("unknown_example", + "Available examples: " + string.Join(", ", LaboratoryCatalog.Entries.Where(entry => entry.AgentExample).Select(entry => entry.Name)) + ".", + field: "name"); + using var document = JsonDocument.Parse(LaboratoryCatalog.ReadSource(lab.Name)); + return AgentReply.Success(document.RootElement); + } private static AgentReply Guard(Func work) { @@ -359,7 +463,7 @@ public AgentReply StepSession(string id, string expectedRevision, string deltaNa private static AgentReply Status(SimulationStatus status, Session s) => AgentReply.Failure( JsonNamingPolicy.SnakeCaseLower.ConvertName(status.ToString()), status == SimulationStatus.NumericalFailure - ? "Numerical solve failed; state and revision are unchanged. Reduce step_ns and recreate the model/session. For cylinders keep crank travel below 0.25 rad per interval; for gas networks inspect flow area, volume, conductance and initial conditions. Timed valves require crank travel per interval <= min(0.25 rad, duration_angle/8). Premixed combustion also requires travel <= min(0.25 rad, burn duration/32) and heat release <= 25% of pre-burn thermal energy. For hydraulics inspect compliance, valve coefficients, gauge pressures and actuator geometry; reduce step_ns if pressures become negative. For closure prediction inspect the aligned finite horizon, available integer time and monotone cutoff bracket; reduce the sample period/horizon when control assumptions fail. For solenoids keep L(x)>0, resolve needle travel and inspect R/L/gradient and stroke scales; reducing step_ns also resolves controller/closing dynamics. For converters inspect map slopes and speed/inertia scales. For ideal gears inspect constraint rank and inertia/ratio scales. For clutches inspect inertia/ratio scales, redundant constraints, capacity schedules and the bounded interval/constraint limits in capabilities." + ? "Numerical solve failed; state and revision are unchanged. Reduce step_ns and recreate the model/session. For cylinders keep crank travel below 0.25 rad per interval; for gas networks inspect flow area, volume, conductance and initial conditions. Timed valves require crank travel per interval <= min(0.25 rad, duration_angle/8). Premixed combustion also requires travel <= min(0.25 rad, burn duration/32) and heat release <= 25% of pre-burn thermal energy. For hydraulics inspect compliance, valve coefficients, gauge pressures and actuator geometry; reduce step_ns if pressures become negative. For equilibrium fuel, keep the wet phase inside its declared temperature interval and liquid rail/inlet pressure at or above saturation; increase supply pressure or lower liquid temperature if cavitation starts. For fuel-domain networks inspect positive mass, maximum wall pressure, material temperature limits, restriction conductance and moving-chamber geometry/angle intervals; these homogeneous restrictions do not resolve choking or pump filling. For finite-volume equilibrium tanks also keep total inventory density below liquid density, resolve gas heat/vent intervals, and use matching tracked gas properties and declared material temperatures. For closure prediction inspect the aligned finite horizon, available integer time and monotone cutoff bracket; reduce the sample period/horizon when control assumptions fail. For solenoids keep L(x)>0, resolve needle travel and inspect R/L/gradient and stroke scales; reducing step_ns also resolves controller/closing dynamics. For converters inspect map slopes and speed/inertia scales. For ideal gears inspect constraint rank and inertia/ratio scales. For clutches inspect inertia/ratio scales, redundant constraints, capacity schedules and the bounded interval/constraint limits in capabilities." : status == SimulationStatus.ControlledInput ? "This actuator input is owned by a pressure controller. Write its pressure_setpoint input instead; state and revision are unchanged." : "Operation rejected; session state and revision are unchanged. Inspect capabilities, channels and fixed step before retrying. Gas openings, burn multipliers and clutch engagement must be finite fractions in [0, 1]; pressure setpoints must be nonnegative.", status is SimulationStatus.Cancelled or SimulationStatus.Busy, revision: s.Revision.ToString(CultureInfo.InvariantCulture)); diff --git a/src/Power.Agent/Power.Agent.csproj b/src/Power.Agent/Power.Agent.csproj index 8ee3288..270ade7 100644 --- a/src/Power.Agent/Power.Agent.csproj +++ b/src/Power.Agent/Power.Agent.csproj @@ -7,40 +7,5 @@ See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository ro net10.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/src/Power.Assets/AssetCodec.cs b/src/Power.Assets/AssetCodec.cs index bc72a92..3e428c9 100644 --- a/src/Power.Assets/AssetCodec.cs +++ b/src/Power.Assets/AssetCodec.cs @@ -14,8 +14,8 @@ public sealed class AssetFormatException(string message) : ArgumentException(mes /// Versioned little-endian model/experiment data, never executable code or serialized solver factors. public static class AssetCodec { - public const int FormatVersion = 24, MaxBytes = 1_048_576; - public const string FormatName = "power.asset.v24"; + public const int FormatVersion = 41, MaxBytes = 1_048_576; + public const string FormatName = "power.asset.v41"; private static readonly byte[] Magic = Encoding.ASCII.GetBytes("POWERAST"); private static readonly UTF8Encoding Utf8 = new(false, true); @@ -25,7 +25,7 @@ public static byte[] Encode(PowerAsset asset) // Check the exact maximum allocation before writing caller-provided data. int cylinders = asset.Components.Count(c => c.Kind == ComponentKind.SealedCylinder); int gases = asset.Nodes.Count(n => n.Domain == Domain.Gas); - int orifices = asset.Components.Count(c => c.Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector); + int orifices = asset.Components.Count(c => c.Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector or ComponentKind.FuelDischarge); int moving = asset.Components.Count(c => c.Kind == ComponentKind.GasCylinder); int valves = asset.Components.Count(c => c.ValveTiming is not null); int mixtures = asset.Nodes.Count(n => n.Gas?.Premixed is not null); @@ -48,9 +48,24 @@ public static byte[] Encode(PowerAsset asset) int solenoids = asset.Components.Count(c => c.Solenoid is not null), stops = asset.Components.Count(c => c.TravelStop is not null); int needles = asset.Components.Count(c => c.LiquidFuelInjector?.Needle is not null), needleDrivers = asset.Components.Count(c => c.NeedleDriver is not null); int dctControllers = asset.Components.Count(c => c.DualClutchController is not null); - long size = 8 + 4 + 8 + 8 + 8 + 8 + 2 + Utf8.GetByteCount(asset.Name) + 32 + 35 * 4 + + int atControllers = asset.Components.Count(c => c.HydraulicAtController is not null); + int atRoutes = asset.Components.Sum(c => c.HydraulicAtController?.Routes.Count ?? 0); + int liquidFeeds=asset.Components.Count(c=>c.LiquidRailFeed is not null); + int liquidTanks=asset.Components.Count(c=>c.LiquidFuelTank is not null); + int liquidReturns=asset.Components.Count(c=>c.LiquidRailReturn is not null); + int fuelVolumes = asset.Nodes.Count(n => n.Domain is Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel); + int fuelChambers = asset.Components.Count(c => c.Kind is ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber); + int finiteFilms = asset.Components.Count(c => c.Kind == ComponentKind.FiniteFuelFilm); + int discharges = asset.Components.Count(c => c.Kind == ComponentKind.FuelDischarge); + int fuelPipes = asset.Components.Count(c => c.Kind == ComponentKind.FuelInertialPipe); + int nozzles = asset.Components.Count(c=>c.Kind==ComponentKind.CompressibleFuelNozzle); + int compressible = asset.Nodes.Count(n => n.Domain is Domain.CompressibleFuel or Domain.RelaxingFuel); + int relaxing=asset.Nodes.Count(n=>n.Domain==Domain.RelaxingFuel); + long ductBytes = asset.Components.Sum(c => c.FuelDuct is null ? 0L : 56L + 4L * c.FuelDuct.Cells.Count); + long size = 8 + 4 + 8 + 8 + 8 + 8 + 2 + Utf8.GetByteCount(asset.Name) + 32 + 40 * 4 + 44L * asset.Nodes.Count + 156L * asset.Components.Count + 116L * cylinders + 24L * gases + 36L * orifices + - 72L * moving + 44L * valves + 40L * mixtures + 20L * reservoirMixtures + 56L * burners + 28L * clutches + 8L * gears + 20L * converters + 28L * points + 40L * hydraulicRestrictions + 64L * hydraulicClutches + 32L * pumps + 16L * reliefs + 80L * controllers + 68L * batteries + 80L * dutyControllers + 104L * pistons + 40L * pistonClutches + 32L * spools + 56L * gasPistons + 56L * injectors + 64L * films + 120L * liquidInjectors + 28L * solenoids + 40L * stops + 32L * needles + 40L * needleDrivers + 104L * dctControllers + 24L * asset.Inputs.Count + 33L * asset.Checks.Count + 32; + 72L * moving + 44L * valves + 40L * mixtures + 20L * reservoirMixtures + 56L * burners + 28L * clutches + 8L * gears + 20L * converters + 28L * points + 40L * hydraulicRestrictions + 64L * hydraulicClutches + 32L * pumps + 16L * reliefs + 80L * controllers + 68L * batteries + 80L * dutyControllers + 104L * pistons + 40L * pistonClutches + 32L * spools + 56L * gasPistons + 56L * injectors + 100L * films + 120L * liquidInjectors + 28L * solenoids + 40L * stops + 32L * needles + 40L * needleDrivers + 104L * dctControllers + 208L * atControllers + 12L * atRoutes + 28L * liquidFeeds + 52L * liquidTanks + 24L * liquidReturns + 148L * fuelVolumes + 40L * fuelChambers + 24L * asset.Inputs.Count + 33L * asset.Checks.Count + 32; + size += 12L * finiteFilms + 52L * discharges + 88L * fuelPipes + 12L * compressible + ductBytes + 68L * nozzles + 20L * relaxing; if (size > MaxBytes) throw new AssetFormatException("Asset exceeds 1 MiB."); using var stream = new MemoryStream((int)size); using var writer = new BinaryWriter(stream, Utf8, true); @@ -60,7 +75,7 @@ public static byte[] Encode(PowerAsset asset) for (int i = 0; i < 32; ++i) writer.Write(Convert.ToByte(asset.SourceSha256.Substring(i * 2, 2), 16)); writer.Write(asset.Nodes.Count); writer.Write(asset.Components.Count); writer.Write(asset.Inputs.Count); writer.Write(asset.Checks.Count); writer.Write(cylinders); writer.Write(gases); writer.Write(orifices); writer.Write(moving); writer.Write(valves); - writer.Write(mixtures); writer.Write(reservoirMixtures); writer.Write(burners); writer.Write(clutches); writer.Write(gears); writer.Write(converters); writer.Write(points); writer.Write(hydraulicRestrictions); writer.Write(hydraulicClutches); writer.Write(pumps); writer.Write(reliefs); writer.Write(controllers); writer.Write(batteries); writer.Write(dutyControllers); writer.Write(pistons); writer.Write(pistonClutches); writer.Write(spools); writer.Write(gasPistons); writer.Write(injectors);writer.Write(films); writer.Write(liquidInjectors); writer.Write(solenoids); writer.Write(stops); writer.Write(needles); writer.Write(needleDrivers); writer.Write(dctControllers); + writer.Write(mixtures); writer.Write(reservoirMixtures); writer.Write(burners); writer.Write(clutches); writer.Write(gears); writer.Write(converters); writer.Write(points); writer.Write(hydraulicRestrictions); writer.Write(hydraulicClutches); writer.Write(pumps); writer.Write(reliefs); writer.Write(controllers); writer.Write(batteries); writer.Write(dutyControllers); writer.Write(pistons); writer.Write(pistonClutches); writer.Write(spools); writer.Write(gasPistons); writer.Write(injectors);writer.Write(films); writer.Write(liquidInjectors); writer.Write(solenoids); writer.Write(stops); writer.Write(needles); writer.Write(needleDrivers); writer.Write(dctControllers); writer.Write(atControllers); writer.Write(atRoutes); writer.Write(liquidFeeds);writer.Write(liquidTanks);writer.Write(liquidReturns); void Quantity(Quantity quantity) { writer.Write(quantity.Value); writer.Write((int)quantity.Unit); } foreach (var n in asset.Nodes) { @@ -87,7 +102,7 @@ public static byte[] Encode(PowerAsset asset) writer.Write(i); Quantity(gas.GasConstant); writer.Write(gas.Gamma); } for (int i = 0; i < asset.Components.Count; ++i) - if (asset.Components[i].Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector) + if (asset.Components[i].Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector or ComponentKind.FuelDischarge) { var c = asset.Components[i]; writer.Write(i); Quantity(c.Area); writer.Write(c.DischargeCoefficient); Quantity(c.ReservoirPressure); @@ -190,7 +205,9 @@ public static byte[] Encode(PowerAsset asset) if (asset.Components[i].FuelInjector is { } injector) { writer.Write(i); writer.Write(injector.CrankNode); Quantity(injector.CycleAngle); Quantity(injector.StartAngle); Quantity(injector.DurationAngle); Quantity(injector.MaximumDose); } for(int i=0;i payload) using var reader = new BinaryReader(stream, Utf8); if (!reader.ReadBytes(8).AsSpan().SequenceEqual(Magic)) throw new AssetFormatException("Unknown asset signature."); int version = reader.ReadInt32(); - if (version is < 1 or > FormatVersion) throw new AssetFormatException("Unsupported asset format version; supported versions are 1 through 24."); + if (version is < 1 or > FormatVersion) throw new AssetFormatException($"Unsupported asset format version; supported versions are 1 through {FormatVersion}."); ulong fingerprint = reader.ReadUInt64(), step = reader.ReadUInt64(), duration = reader.ReadUInt64(), sample = reader.ReadUInt64(); int nameLength = reader.ReadUInt16(); if (nameLength is < 1 or > 512 || stream.Length - stream.Position < nameLength + 32) throw new AssetFormatException("Invalid asset name length."); @@ -279,11 +344,22 @@ int Count(int maximum, int minimum = 0) int solenoids = version >= 20 ? Count(components) : 0, stops = version >= 20 ? Count(components) : 0; int needles = version >= 20 ? Count(components) : 0, needleDrivers = version >= 20 ? Count(components) : 0; int dctControllers = version >= 22 ? Count(components) : 0; - if (stream.Length - stream.Position != 44L * nodes + 156L * components + 116L * cylinders + 24L * gases + 36L * orifices + 72L * moving + 44L * valves + 40L * mixtures + 20L * reservoirMixtures + 56L * burners + 28L * clutches + 8L * gears + 20L * converters + 28L * points + 40L * hydraulicRestrictions + 64L * hydraulicClutches + 32L * pumps + 16L * reliefs + 80L * controllers + 68L * batteries + 80L * dutyControllers + 104L * pistons + 40L * pistonClutches + 32L * spools + 56L * gasPistons + 56L * injectors + 64L * films + 120L * liquidInjectors + 28L * solenoids + 40L * stops + 32L * needles + (version >= 21 ? 40L : 32L) * needleDrivers + 104L * dctControllers + 24L * inputs + 33L * checks) - throw new AssetFormatException("Asset length does not match its declared counts."); + int atControllers = version >= 25 ? Count(components) : 0; + int atRoutes = version >= 25 ? Count(6 * atControllers, 5 * atControllers) : 0; + int liquidFeeds=version>=26?Count(components):0; + int liquidTanks=version>=27?Count(components):0; + int liquidReturns=version>=28?Count(components):0; + long tableStart = stream.Position; + long declaredTableBytes = 44L * nodes + 156L * components + 116L * cylinders + 24L * gases + 36L * orifices + 72L * moving + 44L * valves + 40L * mixtures + 20L * reservoirMixtures + 56L * burners + 28L * clutches + 8L * gears + 20L * converters + 28L * points + 40L * hydraulicRestrictions + 64L * hydraulicClutches + 32L * pumps + 16L * reliefs + 80L * controllers + 68L * batteries + 80L * dutyControllers + 104L * pistons + 40L * pistonClutches + 32L * spools + 56L * gasPistons + 56L * injectors + (version >= 30 ? 100L : 64L) * films + 120L * liquidInjectors + 28L * solenoids + 40L * stops + 32L * needles + (version >= 21 ? 40L : 32L) * needleDrivers + 104L * dctControllers + 208L * atControllers + 12L * atRoutes + (version>=27?28L:24L) * liquidFeeds + (version >= 31 ? 52L : version >= 29 ? 48L : 32L) * liquidTanks + 24L * liquidReturns + 24L * inputs + 33L * checks; Quantity Quantity() => new(reader.ReadDouble(), (Unit)reader.ReadInt32()); var ns = new NodeDefinition[nodes]; var cs = new ComponentDefinition[components]; for (int i = 0; i < nodes; ++i) ns[i] = new(reader.ReadUInt32(), (Domain)reader.ReadInt32(), Quantity(), Quantity(), Quantity()); + int fuelVolumes = ns.Count(n => n.Domain is Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel); + int compressible = ns.Count(n => n.Domain is Domain.CompressibleFuel or Domain.RelaxingFuel); + int relaxing=ns.Count(n=>n.Domain==Domain.RelaxingFuel); + if(version<40&&relaxing!=0)throw new AssetFormatException("Relaxing fuel nodes require version 40."); + if (version < 36 && compressible != 0) throw new AssetFormatException("Compressible fuel nodes require version 36."); + if (version < 32 && fuelVolumes != 0) throw new AssetFormatException("Equilibrium fuel nodes require version 32."); for (int i = 0; i < components; ++i) cs[i] = new() { @@ -293,6 +369,37 @@ int Count(int maximum, int minimum = 0) Ratio = reader.ReadDouble(), Resistance = Quantity(), Inductance = Quantity(), Coupling = Quantity(), InitialCurrent = Quantity(), Conductance = Quantity(), AmbientTemperature = Quantity() }; + if (version < 37 && cs.Any(c => c.Kind == ComponentKind.CompressibleFuelChamber)) throw new AssetFormatException("Compressible fuel chambers require version 37."); + int fuelChambers = cs.Count(c => c.Kind is ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber); + int finiteFilms = cs.Count(c => c.Kind == ComponentKind.FiniteFuelFilm), discharges = cs.Count(c => c.Kind == ComponentKind.FuelDischarge); + int fuelPipes = cs.Count(c => c.Kind == ComponentKind.FuelInertialPipe); + int nozzles=cs.Count(c=>c.Kind==ComponentKind.CompressibleFuelNozzle); + if(version<38&&nozzles!=0)throw new AssetFormatException("Compressible fuel nozzles require version 38."); + int ducts = cs.Count(c => c.Kind is ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct); + bool relaxingBoundary=cs.Any(c => + c.Kind==ComponentKind.CompressibleFuelChamber && ns.Any(n=>n.Id==c.NodeB&&n.Domain==Domain.RelaxingFuel) || + c.Kind==ComponentKind.CompressibleFuelNozzle && ns.Any(n=>(n.Id==c.NodeA||n.Id==c.NodeB)&&n.Domain==Domain.RelaxingFuel)); + if(version<41&&relaxingBoundary) + throw new AssetFormatException("Relaxing moving chambers and frozen metering require version 41."); + if(version<40&&cs.Any(c=>c.Kind==ComponentKind.RelaxingFuelDuct))throw new AssetFormatException("Relaxing fuel ducts require version 40."); + if(version<36&&ducts!=0)throw new AssetFormatException("Equilibrium fuel ducts require version 36."); + if (version < 35 && fuelPipes != 0) throw new AssetFormatException("Inertial liquid fuel lines require version 35."); + if (version < 34 && (finiteFilms != 0 || discharges != 0)) throw new AssetFormatException("Finite-displacement receivers and fuel discharge require version 34."); + if (version < 33 && (fuelChambers != 0 || cs.Any(c => c.Kind == ComponentKind.FuelCheckValve))) + throw new AssetFormatException("Moving fuel chambers and check valves require version 33."); + long extra = stream.Length - tableStart - (declaredTableBytes + 148L * fuelVolumes + 12L * compressible + 40L * fuelChambers + 12L * finiteFilms + 52L * discharges + 88L * fuelPipes + 68L * nozzles + 20L * relaxing); + if (ducts == 0 ? extra != 0 : extra < 60L * ducts || extra > 152L * ducts) + throw new AssetFormatException("Asset length does not match its counts and bounded fuel records."); + if (version < 32 && cs.Any(c => c.Kind is ComponentKind.FuelRestriction or ComponentKind.FuelHeatLink)) + throw new AssetFormatException("Equilibrium fuel links require version 32."); + if(version<28&&cs.Any(c=>c.Kind==ComponentKind.LiquidRailReturn))throw new AssetFormatException("Liquid return paths require version 28."); + if(liquidReturns!=cs.Count(c=>c.Kind==ComponentKind.LiquidRailReturn))throw new AssetFormatException("Every liquid return requires a typed record."); + if(version<27&&cs.Any(c=>c.Kind==ComponentKind.LiquidFuelTank))throw new AssetFormatException("Finite fuel tanks require version 27."); + if(liquidTanks!=cs.Count(c=>c.Kind==ComponentKind.LiquidFuelTank))throw new AssetFormatException("Every finite fuel tank requires a typed record."); + if(version<26&&cs.Any(c=>c.Kind==ComponentKind.LiquidRailFeed))throw new AssetFormatException("Pump-fed liquid rails require version 26."); + if(liquidFeeds!=cs.Count(c=>c.Kind==ComponentKind.LiquidRailFeed))throw new AssetFormatException("Every liquid rail feed requires a typed record."); + if (version < 25 && cs.Any(c => c.Kind == ComponentKind.HydraulicAtController)) throw new AssetFormatException("Hydraulic AT feedback requires version 25."); + if (atControllers != cs.Count(c => c.Kind == ComponentKind.HydraulicAtController)) throw new AssetFormatException("Every AT controller requires one typed record."); if (version < 24 && cs.Any(c => c.Kind == ComponentKind.CarrierGear)) throw new AssetFormatException("Carrier-relative meshes require version 24."); if (version < 23 && cs.Any(c => c.Kind == ComponentKind.DoublePinionPlanetaryGear)) throw new AssetFormatException("Double-pinion topology requires version 23."); if (version < 22 && cs.Any(c => c.Kind == ComponentKind.DualClutchController)) throw new AssetFormatException("Sampled DCT control requires version 22."); @@ -303,7 +410,7 @@ int Count(int maximum, int minimum = 0) if (version < 19 && cs.Any(c => c.Kind == ComponentKind.LiquidFuelInjector)) throw new AssetFormatException("Liquid fuel injection requires asset version 19."); if (liquidInjectors != cs.Count(c => c.Kind == ComponentKind.LiquidFuelInjector)) throw new AssetFormatException("Every liquid injector requires one finite-source timing record."); if(version<18&&cs.Any(c=>c.Kind==ComponentKind.FuelFilm))throw new AssetFormatException("Liquid fuel film requires asset version 18."); - if(films!=cs.Count(c=>c.Kind==ComponentKind.FuelFilm))throw new AssetFormatException("Every liquid film requires one phase-property record."); + if(films!=cs.Count(c=>c.Kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm))throw new AssetFormatException("Every liquid film requires one phase-property record."); if (version < 17 && cs.Any(c => c.Kind == ComponentKind.GasFuelInjector)) throw new AssetFormatException("Cycle fuel metering requires asset version 17."); if (injectors != cs.Count(c => c.Kind == ComponentKind.GasFuelInjector)) throw new AssetFormatException("Every gas fuel injector requires one timing extension."); if (version < 16 && cs.Any(c => c.Kind == ComponentKind.GasPiston)) throw new AssetFormatException("Linear gas pistons require asset version 16."); @@ -329,7 +436,7 @@ int Count(int maximum, int minimum = 0) if (version < 3 && (ns.Any(n => n.Domain == Domain.Gas) || cs.Any(c => c.Kind is ComponentKind.GasOrifice or ComponentKind.GasHeatLink))) throw new AssetFormatException("Finite gas networks require asset version 3."); if (cylinders != cs.Count(c => c.Kind == ComponentKind.SealedCylinder) || gases != ns.Count(n => n.Domain == Domain.Gas) || - orifices != cs.Count(c => c.Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector) || moving != cs.Count(c => c.Kind == ComponentKind.GasCylinder) || burners != cs.Count(c => c.Kind == ComponentKind.PremixedCombustion) || clutches != cs.Count(c => c.Kind == ComponentKind.Clutch) || gears != cs.Count(c => c.Kind is ComponentKind.IdealGear or ComponentKind.PlanetaryGear or ComponentKind.DoublePinionPlanetaryGear or ComponentKind.CarrierGear) || converters != cs.Count(c => c.Kind == ComponentKind.TorqueConverter) || + orifices != cs.Count(c => c.Kind is ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector or ComponentKind.FuelDischarge) || moving != cs.Count(c => c.Kind == ComponentKind.GasCylinder) || burners != cs.Count(c => c.Kind == ComponentKind.PremixedCombustion) || clutches != cs.Count(c => c.Kind == ComponentKind.Clutch) || gears != cs.Count(c => c.Kind is ComponentKind.IdealGear or ComponentKind.PlanetaryGear or ComponentKind.DoublePinionPlanetaryGear or ComponentKind.CarrierGear) || converters != cs.Count(c => c.Kind == ComponentKind.TorqueConverter) || hydraulicRestrictions != cs.Count(c => c.Kind is ComponentKind.HydraulicResistance or ComponentKind.HydraulicOrifice or ComponentKind.HydraulicRelief or ComponentKind.HydraulicSpoolValve) || hydraulicClutches != cs.Count(c => c.Kind == ComponentKind.HydraulicClutch) || pumps != cs.Count(c => c.Kind == ComponentKind.HydraulicPump) || reliefs != cs.Count(c => c.Kind == ComponentKind.HydraulicRelief) || controllers != cs.Count(c => c.Kind == ComponentKind.PressureController)) throw new AssetFormatException("Every cylinder, gas node, orifice, burner, clutch, gear, converter and hydraulic component requires exactly one matching extension of a supported version."); for (int i = 0; i < cylinders; ++i) @@ -354,7 +461,7 @@ int Count(int maximum, int minimum = 0) for (int i = 0; i < orifices; ++i) { int index = reader.ReadInt32(); - if (index < 0 || index >= components || cs[index].Kind is not (ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector) || seenOrifices[index]) + if (index < 0 || index >= components || cs[index].Kind is not (ComponentKind.GasOrifice or ComponentKind.GasFuelInjector or ComponentKind.LiquidFuelInjector or ComponentKind.FuelDischarge) || seenOrifices[index]) throw new AssetFormatException("Orifice extension must reference a distinct gas-orifice component."); seenOrifices[index] = true; cs[index] = cs[index] with { Area = Quantity(), DischargeCoefficient = reader.ReadDouble(), ReservoirPressure = Quantity() }; @@ -551,8 +658,16 @@ int Count(int maximum, int minimum = 0) cs[index] = cs[index] with { FuelInjector = new() { CrankNode = reader.ReadUInt32(), CycleAngle = Quantity(), StartAngle = Quantity(), DurationAngle = Quantity(), MaximumDose = Quantity() } }; } for(int i=0;i=components||cs[index].Kind!=ComponentKind.FuelFilm||cs[index].FuelFilm is not null)throw new AssetFormatException("Phase properties must reference a distinct fuel film."); - cs[index]=cs[index] with{FuelFilm=new(){InitialMass=Quantity(),InitialTemperature=Quantity(),LiquidSpecificHeat=Quantity(),SaturationTemperature=Quantity(),LatentInternalEnergy=Quantity()}};} + {int index=reader.ReadInt32();if(index<0||index>=components||cs[index].Kind is not (ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm)||cs[index].FuelFilm is not null)throw new AssetFormatException("Phase properties must reference a distinct fuel film."); + var film = new FuelFilmDefinition { InitialMass=Quantity(),InitialTemperature=Quantity(),LiquidSpecificHeat=Quantity(),SaturationTemperature=Quantity(),LatentInternalEnergy=Quantity() }; + if (version >= 30) + { + var pressure = Quantity(); var minimum = Quantity(); var maximum = Quantity(); + if (pressure == default && (minimum != default || maximum != default)) throw new AssetFormatException("Phase-equilibrium temperature limits require reference pressure."); + if (pressure != default) film = film with { PhaseEquilibrium = new() { ReferencePressure=pressure,MinimumTemperature=minimum,MaximumTemperature=maximum } }; + } + if (cs[index].Kind == ComponentKind.FiniteFuelFilm) film = film with { FiniteVolumeDensity = Quantity() }; + cs[index]=cs[index] with{FuelFilm=film};} for (int i = 0; i < liquidInjectors; ++i) { int index = reader.ReadInt32(); @@ -599,7 +714,100 @@ int Count(int maximum, int minimum = 0) SamplePeriodNanoseconds = reader.ReadUInt64(), ReleaseNanoseconds = reader.ReadUInt64(), EngageNanoseconds = reader.ReadUInt64(), SynchronizeTimeoutNanoseconds = reader.ReadUInt64(), SynchronizeTolerance = Quantity(), DirectionChangeSpeedLimit = Quantity() } }; } + int remainingAtRoutes = atRoutes; + for (int i = 0; i < atControllers; ++i) + { + int index = reader.ReadInt32(); + if (index < 0 || index >= components || cs[index].Kind != ComponentKind.HydraulicAtController || cs[index].HydraulicAtController is not null) throw new AssetFormatException("AT record must reference a distinct hydraulic AT controller."); + uint vehicle=reader.ReadUInt32(),ring=reader.ReadUInt32(),supply=reader.ReadUInt32();int count=reader.ReadInt32(); + if (count is <5 or >6 || count>remainingAtRoutes) throw new AssetFormatException("AT route counts must be 5 or 6 and match their declared total."); + remainingAtRoutes-=count; + var at = new HydraulicAtControllerDefinition { VehicleNode=vehicle,RingNode=ring,SupplyPressureNode=supply, + SamplePeriodNanoseconds=reader.ReadUInt64(),ReleaseTimeoutNanoseconds=reader.ReadUInt64(),ApplyTimeoutNanoseconds=reader.ReadUInt64(),LowSupplyTimeoutNanoseconds=reader.ReadUInt64(),LockupDwellNanoseconds=reader.ReadUInt64(), + ApplyPressure=Quantity(),PressureTolerance=Quantity(),MinimumSupplyPressure=Quantity(),ReleaseForce=Quantity(),MinimumApplyForce=Quantity(),ProportionalGain=Quantity(),IntegralGain=Quantity(), + SynchronizeTolerance=Quantity(),DirectionChangeSpeedLimit=Quantity(),LockupSpeedLimit=Quantity(),UnlockSpeedLimit=Quantity(),MinimumLockupInputSpeed=Quantity(),MinimumLockupForwardRange=reader.ReadInt32() }; + var routes=new AtActuatorRoute[count];for(int route=0;route=components||cs[index].Kind!=ComponentKind.LiquidRailFeed||cs[index].LiquidRailFeed is not null)throw new AssetFormatException("Liquid feed record must reference a distinct feed component."); + cs[index]=cs[index] with{LiquidRailFeed=new(){InjectorComponent=reader.ReadUInt32(),PumpComponent=reader.ReadUInt32(),SupplyTemperature=Quantity(),TankComponent=version>=27?reader.ReadUInt32():0}}; + } var schedule = new ScheduledInput[inputs]; + for(int i=0;i=components||cs[index].Kind!=ComponentKind.LiquidFuelTank||cs[index].LiquidFuelTank is not null)throw new AssetFormatException("Tank record must reference a distinct tank component."); + uint injector = reader.ReadUInt32(); var mass = Quantity(); var temperature = Quantity(); + var capacity = version >= 29 ? Quantity() : default; uint headspace = version >= 29 ? reader.ReadUInt32() : 0; + int equilibrium = version >= 31 ? reader.ReadInt32() : 0; + if (equilibrium is < 0 or > 1 || headspace == 0 && equilibrium != 0) throw new AssetFormatException("Tank phase equilibrium is a boolean flag requiring geometric headspace."); + if (headspace == 0 && capacity != default) throw new AssetFormatException("Headspace capacity requires a gas-node owner."); + cs[index]=cs[index] with{LiquidFuelTank=new(){InjectorComponent=injector,InitialMass=mass,InitialTemperature=temperature, + Headspace=headspace==0?null:new(){Capacity=capacity,GasNode=headspace,PhaseEquilibrium=equilibrium==1}}}; + } + for(int i=0;i=components||cs[index].Kind!=ComponentKind.LiquidRailReturn||cs[index].LiquidRailReturn is not null)throw new AssetFormatException("Return record must reference a distinct return component."); + cs[index]=cs[index] with{LiquidRailReturn=new(){FeedComponent=reader.ReadUInt32(),ValveComponent=reader.ReadUInt32(),FluidHeatFraction=Quantity()}}; + } + for (int i = 0; i < fuelVolumes; ++i) + { + int index = reader.ReadInt32(); + if (index < 0 || index >= nodes || ns[index].Domain is not (Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel) || ns[index].Fuel is not null) + throw new AssetFormatException("Fuel material record must reference a distinct fuel node."); + var stiffness = Quantity(); + ns[index] = ns[index] with { Fuel = new() + { + Compliance = ns[index].Domain == Domain.Fuel ? stiffness : default, LiquidBulkModulus = ns[index].Domain is Domain.CompressibleFuel or Domain.RelaxingFuel ? stiffness : default, LiquidDensity = Quantity(), MaximumPressure = Quantity(), GasConstant = Quantity(), + VaporSpecificHeat = Quantity(), LiquidSpecificHeat = Quantity(), ReferenceTemperature = Quantity(), LatentInternalEnergy = Quantity(), + ReferencePressure = Quantity(), MinimumTemperature = Quantity(), MaximumTemperature = Quantity(), LowerHeatingValue = Quantity() + } }; + if(ns[index].Domain is Domain.CompressibleFuel or Domain.RelaxingFuel)ns[index]=ns[index] with{InitialVelocity=Quantity()}; + if(ns[index].Domain==Domain.RelaxingFuel){ulong tau=reader.ReadUInt64();ns[index]=ns[index] with{Fuel=ns[index].Fuel! with{PhaseRelaxationTimeNanoseconds=tau},InitialVaporMassFraction=Quantity()};} + } + for (int i = 0; i < fuelChambers; ++i) + { + int index = reader.ReadInt32(); + if (index < 0 || index >= components || cs[index].Kind is not (ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber) || cs[index].FuelChamber is not null) + throw new AssetFormatException("Chamber geometry must reference a distinct fuel-chamber component."); + cs[index] = cs[index] with { FuelChamber = new() { MinimumReferenceVolume = Quantity(), SweptVolume = Quantity(), Phase = Quantity() } }; + } + for (int i = 0; i < discharges; ++i) + { + int index = reader.ReadInt32(); + if (index < 0 || index >= components || cs[index].Kind != ComponentKind.FuelDischarge || cs[index].FuelDischarge is not null) + throw new AssetFormatException("Fuel discharge record must reference a distinct discharge component."); + uint film = reader.ReadUInt32(); var phase = (FuelDischargePhaseModel)reader.ReadInt32(); var fraction = Quantity(); + uint needle = reader.ReadUInt32(); var closed = Quantity(); var open = Quantity(); + if (needle == 0 && (closed != default || open != default)) throw new AssetFormatException("Needle positions require a needle node."); + cs[index] = cs[index] with { FuelDischarge = new() { FilmComponent = film, PhaseModel = phase, WallKineticFraction = fraction, + Needle = needle == 0 ? null : new() { NeedleNode = needle, ClosedPosition = closed, FullOpenPosition = open } } }; + } + for (int i = 0; i < fuelPipes; ++i) + { + int index = reader.ReadInt32(); + if (index < 0 || index >= components || cs[index].Kind != ComponentKind.FuelInertialPipe || cs[index].FuelPipe is not null) + throw new AssetFormatException("Inertial pipe record must reference a distinct fuel pipe."); + cs[index] = cs[index] with { FuelPipe = new() { Length = Quantity(), Area = Quantity(), LinearResistance = Quantity(), QuadraticResistance = Quantity(), + InitialFlow = Quantity(), InitialTemperature = Quantity(), FluidHeatFraction = Quantity() } }; + } + for(int i=0;i=components||cs[index].Kind is not (ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct)||cs[index].FuelDuct is not null)throw new AssetFormatException("Duct record must reference a distinct equilibrium fuel duct."); + int count=Count(24,1);var area=Quantity();var linear=Quantity();var quadratic=Quantity();var fraction=Quantity();var cells=new uint[count];for(int j=0;j=components||cs[index].Kind!=ComponentKind.CompressibleFuelNozzle||cs[index].CompressibleNozzle is not null)throw new AssetFormatException("Nozzle record must reference a distinct compressible fuel nozzle."); + var area=Quantity();double coefficient=reader.ReadDouble();var phase=(FuelDischargePhaseModel)reader.ReadInt32();var fraction=Quantity();uint needle=reader.ReadUInt32();var closed=Quantity();var open=Quantity(); + if(version<39&&phase!=FuelDischargePhaseModel.Frozen)throw new AssetFormatException("Equilibrium nozzle transit requires version 39."); + if(needle==0&&(closed!=default||open!=default))throw new AssetFormatException("Unused nozzle needle quantities must be zero."); + cs[index]=cs[index] with{CompressibleNozzle=new(){Area=area,DischargeCoefficient=coefficient,PhaseModel=phase,WallKineticFraction=fraction,Needle=needle==0?null:new(){NeedleNode=needle,ClosedPosition=closed,FullOpenPosition=open}}}; + } + if(stream.Length-stream.Position!=24L*inputs+33L*checks)throw new AssetFormatException("Fuel record lengths do not match the bounded table."); for (int i = 0; i < inputs; ++i) schedule[i] = new(reader.ReadUInt64(), reader.ReadUInt64(), reader.ReadDouble()); var conditions = new AssetCheck[checks]; for (int i = 0; i < checks; ++i) diff --git a/src/Power.Assets/PowerAsset.cs b/src/Power.Assets/PowerAsset.cs index db334eb..6195bdb 100644 --- a/src/Power.Assets/PowerAsset.cs +++ b/src/Power.Assets/PowerAsset.cs @@ -39,6 +39,7 @@ private PowerAsset(ModelDefinition definition, string name, string sourceSha256, var nodes = (NodeDefinition[])definition.Nodes.Clone(); var components = (ComponentDefinition[])definition.Components.Clone(); Model = CompiledModel.Compile(definition with { Nodes = nodes, Components = components }); + for(int i=0;i a.Id.CompareTo(b.Id)); Array.Sort(components, (a, b) => a.Id.CompareTo(b.Id)); Nodes = Array.AsReadOnly(nodes); Components = Array.AsReadOnly(components); diff --git a/src/Power.Cli/Program.cs b/src/Power.Cli/Program.cs index 64ee371..cd89f69 100644 --- a/src/Power.Cli/Program.cs +++ b/src/Power.Cli/Program.cs @@ -12,7 +12,14 @@ { if (args.Length == 0 || args[0] is "--help" or "-h") { - Console.WriteLine("Power! model lab (.NET 10 / C# 14)\nUsage: power [--output report.json] [--step-ns integer]\n power export --output model.powerasset [--name title] [--step-ns integer]"); + Console.WriteLine("Power! model lab (.NET 10 / C# 14)\nUsage: power [--output report.json] [--step-ns integer]\n power export --output model.powerasset [--name title] [--step-ns integer]\n power list-labs"); + return 0; + } + if (args[0] == "list-labs") + { + if (args.Length != 1) throw new ArgumentException("Usage: power list-labs"); + Console.WriteLine(JsonSerializer.Serialize(new { schema = LaboratoryCatalog.Schema, calibration = "unverified", + laboratories = LaboratoryCatalog.Entries }, options)); return 0; } bool export = args[0] == "export"; diff --git a/src/Power.Core/AtControllerCompiler.cs b/src/Power.Core/AtControllerCompiler.cs new file mode 100644 index 0000000..e6f7109 --- /dev/null +++ b/src/Power.Core/AtControllerCompiler.cs @@ -0,0 +1,98 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed partial class CompiledModel +{ + private void CompileAtControllers(ComponentDefinition[] definitions) + { + int slot = 0; + for (int index = 0; index < Components.Length; ++index) + { + if (Components[index].Kind != ComponentKind.HydraulicAtController) continue; + var c = Components[index]; var d = definitions[index].HydraulicAtController!; + int Node(uint id, Domain domain, string field) + { + int result = Array.FindIndex(Nodes,n=>n.Id==id); + Require(result>=0 && Nodes[result].Domain==domain,DiagnosticCode.Connection,c.Id,field,$"Use an existing {domain} node."); return result; + } + int Component(uint id, ComponentKind kind, string field) + { + int result = Array.FindIndex(Components,item=>item.Id==id); + Require(result>=0 && Components[result].Kind==kind,DiagnosticCode.Connection,c.Id,field,$"Use an existing {kind} component."); return result; + } + double Quantity(Quantity q, Unit unit, string field, bool positive=true) + { + double value=Convert(q,unit,c.Id,field); Require(positive?value>0:value>=0,DiagnosticCode.Range,c.Id,field,"Use a finite positive value, or a declared nonnegative limit.");return value; + } + ulong Duration(ulong value,string field,bool zero=false) + { + Require((zero||value>0)&&value<=10_000_000_000&&value%StepNanoseconds==0, + DiagnosticCode.Range,c.Id,field,"Use a tick-aligned duration no greater than 10 s.");return value; + } + int vehicle=Node(d.VehicleNode,Domain.Rotational,"at_controller.vehicle_node"),ring=Node(d.RingNode,Domain.Rotational,"at_controller.ring_node"); + int supply=Node(d.SupplyPressureNode,Domain.Hydraulic,"at_controller.supply_pressure_node"); + Require(vehicle!=c.A && ring!=vehicle && ring!=c.A,DiagnosticCode.Connection,c.Id,"at_controller.ports","Input, ring and vehicle are distinct rotational ports."); + Require(d.Routes.Count is 5 or 6,DiagnosticCode.Schema,c.Id,"at_controller.routes","Order routes as carrier input, small-sun input, large-sun input, carrier brake, large-sun brake and optional lockup."); + var routes=new CompiledAtRoute[d.Routes.Count];var ids=new HashSet(); + for(int i=0;i=0&&b.B>=0&&large.B>=0&&a.B!=b.B&&a.B!=large.B&&b.B!=large.B, + DiagnosticCode.Connection,c.Id,"at_controller.routes","Range paths must bind the same input to distinct carrier/small/large members and matching carrier/large ground brakes."); + Require(definitions.Any(g=>g.Kind==ComponentKind.IdealGear&&g.NodeA==d.RingNode&&g.NodeB==d.VehicleNode&&g.Ratio>0), + DiagnosticCode.Connection,c.Id,"at_controller.ring_node","A positive final-drive reduction connects ring to vehicle."); + uint carrierId=Nodes[a.B].Id,smallId=Nodes[b.B].Id,largeId=Nodes[large.B].Id; + var single=definitions.FirstOrDefault(g=>g.Kind==ComponentKind.PlanetaryGear&&g.NodeA==largeId&&g.NodeB==d.RingNode&&g.NodeC==carrierId); + var dual=definitions.FirstOrDefault(g=>g.Kind==ComponentKind.DoublePinionPlanetaryGear&&g.NodeA==smallId&&g.NodeB==d.RingNode&&g.NodeC==carrierId); + bool reduced=single is not null&&dual is not null&&dual.Ratio>single.Ratio; + var lm=definitions.FirstOrDefault(g=>g.Kind==ComponentKind.CarrierGear&&g.NodeA==largeId&&g.NodeC==carrierId&&g.Ratio<0); + var sm=definitions.FirstOrDefault(g=>g.Kind==ComponentKind.CarrierGear&&g.NodeA==smallId&&g.NodeC==carrierId&&g.Ratio<0); + var rm=lm is null?null:definitions.FirstOrDefault(g=>g.Kind==ComponentKind.CarrierGear&&g.NodeA==d.RingNode&&g.NodeB==lm.NodeB&&g.NodeC==carrierId&&g.Ratio>0&&g.Ratio<1); + var pm=lm is null||sm is null?null:definitions.FirstOrDefault(g=>g.Kind==ComponentKind.CarrierGear&&g.NodeA==sm.NodeB&&g.NodeB==lm.NodeB&&g.NodeC==carrierId&&g.Ratio<0); + double kl=rm is null?0:-lm!.Ratio/rm.Ratio,ks=rm is null||pm is null?0:sm!.Ratio*pm.Ratio/rm.Ratio; + Require(reduced||lm is not null&&sm is not null&&rm is not null&&pm is not null&&Numeric.Finite(kl)&&Numeric.Finite(ks)&&ks>kl&&kl>1, + DiagnosticCode.Connection,c.Id,"at_controller.topology","Use a compatible reduced or four-mesh Ravigneaux topology for the declared range schedule."); + if(routes.Length==6) + { + var lockup=Components[routes[5].Clutch];Require(lockup.B==c.A&&Components.Any(item=>item.Kind==ComponentKind.TorqueConverter&&item.A==lockup.A&&item.B==c.A), + DiagnosticCode.Connection,c.Id,"at_controller.lockup","Optional lockup is a separate pump-to-input clutch parallel to the converter."); + } + ulong period=Duration(d.SamplePeriodNanoseconds,"at_controller.sample_period_ns"); + Require(period<=1_000_000_000,DiagnosticCode.Range,c.Id,"at_controller.sample_period_ns","Sampling must be no slower than 1 s."); + ulong release=Duration(d.ReleaseTimeoutNanoseconds,"at_controller.release_timeout_ns"),apply=Duration(d.ApplyTimeoutNanoseconds,"at_controller.apply_timeout_ns"),low=Duration(d.LowSupplyTimeoutNanoseconds,"at_controller.low_supply_timeout_ns"),dwell=Duration(d.LockupDwellNanoseconds,"at_controller.lockup_dwell_ns",true); + Require(release>=period&&apply>=period&&low>=period&&release%period==0&&apply%period==0&&low%period==0&&dwell%period==0, + DiagnosticCode.Range,c.Id,"at_controller.timings","Timeouts/dwell align to the sample period; each timeout is at least one period."); + double target=Quantity(d.ApplyPressure,Unit.Pascal,"at_controller.apply_pressure"),tolerance=Quantity(d.PressureTolerance,Unit.Pascal,"at_controller.pressure_tolerance"); + double releaseForce=Quantity(d.ReleaseForce,Unit.Newton,"at_controller.release_force",false),applyForce=Quantity(d.MinimumApplyForce,Unit.Newton,"at_controller.minimum_apply_force"); + double lockLimit=Quantity(d.LockupSpeedLimit,Unit.RadianPerSecond,"at_controller.lockup_speed_limit",false),unlock=Quantity(d.UnlockSpeedLimit,Unit.RadianPerSecond,"at_controller.unlock_speed_limit"); + Require(tolerancereleaseForce&&unlock>lockLimit&&d.MinimumLockupForwardRange is >=1 and <=4, + DiagnosticCode.Range,c.Id,"at_controller.limits","Pressure tolerance is below target, apply force exceeds release force, and unlock slip exceeds lockup slip; minimum lockup range is 1..4."); + AtControllers[slot]=new(index,Nodes[c.A].Index,Nodes[vehicle].Index,Nodes[supply].Index,routes,period,release,apply,low,dwell,target,tolerance, + Quantity(d.MinimumSupplyPressure,Unit.Pascal,"at_controller.minimum_supply_pressure"),releaseForce,applyForce, + Quantity(d.ProportionalGain,Unit.FractionPerPascal,"at_controller.proportional_gain",false),Quantity(d.IntegralGain,Unit.FractionPerPascalSecond,"at_controller.integral_gain",false), + Quantity(d.SynchronizeTolerance,Unit.RadianPerSecond,"at_controller.synchronize_tolerance"),Quantity(d.DirectionChangeSpeedLimit,Unit.RadianPerSecond,"at_controller.direction_change_speed_limit",false), + lockLimit,unlock,Quantity(d.MinimumLockupInputSpeed,Unit.RadianPerSecond,"at_controller.minimum_lockup_input_speed",false),d.MinimumLockupForwardRange); + Require(AtControllers[slot].Kp>0||AtControllers[slot].Ki>0,DiagnosticCode.Range,c.Id,"at_controller.gains","At least one pressure gain is positive."); + AtControllerByComponent[index]=slot++; + } + } +} diff --git a/src/Power.Core/CompiledModel.cs b/src/Power.Core/CompiledModel.cs index 6388dc6..848950e 100644 --- a/src/Power.Core/CompiledModel.cs +++ b/src/Power.Core/CompiledModel.cs @@ -12,16 +12,16 @@ internal readonly record struct GraphComponent(uint Id, ComponentKind Kind, int internal readonly record struct OutputBinding(uint ObjectId, Field Field, int Index, bool IsComponent = false); /// Immutable, validated topology and solver factors shared by independent simulations. -public sealed class CompiledModel +public sealed partial class CompiledModel { public const int MaxNodes = 32, MaxComponents = 64, MaxStates = 128, MaxConverters = 8; public ulong StepNanoseconds { get; } public ulong Fingerprint { get; } public int NodeCount => Nodes.Length; public int ComponentCount => Components.Length; - public int StateCount => DynamicCount + ThermalCount + 2 * GasCount + 3 * NodeMixtures.Count(m => m is not null) + Burners.Count(b => b is not null) + ClutchComponents.Length + GearComponents.Length + 4 * ConverterComponents.Length + HydraulicCount + 3 * HydraulicComponents.Length + 4 * PumpComponents.Length + 4 * PressureControllers.Length + 6 * FuelInjectors.Length + 5 * FuelFilms.Length + 9 * LiquidFuelInjectors.Length + 4 * Solenoids.Length + 3 * NeedleDrivers.Length + (HasClosurePrediction ? 5 * NeedleDrivers.Length : 0) + 9 * DctControllers.Length; + public int StateCount => DynamicCount + ThermalCount + 2 * GasCount + 3 * NodeMixtures.Count(m => m is not null) + Burners.Count(b => b is not null) + ClutchComponents.Length + GearComponents.Length + 4 * ConverterComponents.Length + HydraulicCount + 3 * HydraulicComponents.Length + 4 * PumpComponents.Length + 4 * PressureControllers.Length + 6 * FuelInjectors.Length + 5 * FuelFilms.Length + EquilibriumFilmCount + 9 * LiquidFuelInjectors.Length + 4 * Solenoids.Length + 3 * NeedleDrivers.Length + (HasClosurePrediction ? 5 * NeedleDrivers.Length : 0) + 9 * DctControllers.Length + 16 * AtControllers.Length + 8 * LiquidFeeds.Length + 4 * LiquidTanks.Length + 8 * LiquidReturns.Length + 2 * TankHeadspaces.Length + 3 * EquilibriumTankCount + 2 * FuelVolumes.Length + 5 * FuelLinks.Length + 3 * FuelChambers.Length + 11 * FuelDischarges.Length + 13 * FuelPipes.Length + 3 * CompressibleFuels.Length + 11 * FuelDucts.Length + 4 * CompressibleChambers.Length + 13 * CompressibleNozzles.Length + EquilibriumNozzleCount + 5 * RelaxingFuelCount + 2 * RelaxingDuctCount + RelaxingNozzleCount; public int OutputCount => Outputs.Length; - public string Fidelity => DctControllers.Length != 0 ? "sampled_dual_clutch_control" : HasClosurePrediction ? (Burners.Any(b => b is not null) ? "closure_compensated_fired_powertrain" : "closure_compensated_liquid_delivery") : HasNeedleInjectors ? (Burners.Any(b => b is not null) ? "needle_actuated_fired_powertrain" : "needle_actuated_liquid_delivery") : HasSolenoids ? "electromagnetic_linear_actuation" : HasTravelStops ? "elastic_translational_contact" : HasLiquidFuelInjectors ? (Burners.Any(b => b is not null) ? "liquid_injected_fired_powertrain" : "finite_liquid_fuel_delivery") : HasFuelFilms ? (Burners.Any(b => b is not null) ? "film_evaporation_fired_powertrain" : "finite_liquid_film_evaporation") : HasFuelInjectors ? (Burners.Any(b => b is not null) ? "metered_fired_powertrain" : "cycle_fuel_metering") : HasGasPistons ? (HasHydraulics ? "gas_accumulator_powertrain" : "linear_gas_actuation") : HasSpoolValves ? "mechanically_regulated_hydraulics" : HasPistons ? "dynamic_piston_powertrain" : HasBatteries ? (HasPressureControllers ? "battery_pressure_control" : "battery_electromechanical") : HasPressureControllers ? "sampled_pressure_control" : HasPumps ? "shaft_driven_hydraulics" : HasHydraulics ? "compliant_hydraulic_powertrain" : HasConverters ? "quasisteady_converter_powertrain" : HasGears ? "constrained_gear_powertrain" : HasClutches ? "hybrid_clutch_powertrain" : Burners.Any(b => b is not null) ? "premixed_wiebe_combustion" + public string Fidelity => HasRelaxingFuelBoundaries ? "homogeneous_relaxing_fuel_boundaries" : HasRelaxingFuel ? "homogeneous_relaxing_fuel_transport" : HasEquilibriumFuelNozzles ? "equilibrium_compressible_fuel_nozzle_network" : HasCompressibleFuelNozzles ? "frozen_compressible_fuel_nozzle_network" : HasCompressibleFuelChambers ? "shaft_driven_compressible_fuel" : HasEquilibriumFuelDucts ? "equilibrium_compressible_fuel_transport" : CompressibleFuels.Length != 0 ? "compressible_fuel_equilibrium" : HasFuelPipes ? "liquid_inertial_fuel_network" : HasFuelDischarge ? "finite_volume_fuel_discharge_powertrain" : HasFiniteFuelReceivers ? "finite_volume_equilibrium_fuel_receiver" : HasFuelChambers ? "shaft_driven_equilibrium_fuel_pump" : HasEquilibriumFuelNetwork ? "homogeneous_equilibrium_fuel_network" : HasEquilibriumTanks ? "equilibrium_tank_liquid_fuel_powertrain" : HasEquilibriumFuelFilms ? "equilibrium_liquid_fuel_powertrain" : HasTankHeadspaces ? "geometric_tank_liquid_fuel_powertrain" : HasLiquidReturns ? "recirculating_liquid_fuel_powertrain" : HasLiquidTanks ? "finite_tank_liquid_fuel_powertrain" : HasLiquidFeeds ? "pump_fed_liquid_fuel_powertrain" : AtControllers.Length != 0 ? "sampled_hydraulic_at_control" : DctControllers.Length != 0 ? "sampled_dual_clutch_control" : HasClosurePrediction ? (Burners.Any(b => b is not null) ? "closure_compensated_fired_powertrain" : "closure_compensated_liquid_delivery") : HasNeedleInjectors ? (Burners.Any(b => b is not null) ? "needle_actuated_fired_powertrain" : "needle_actuated_liquid_delivery") : HasSolenoids ? "electromagnetic_linear_actuation" : HasTravelStops ? "elastic_translational_contact" : HasLiquidFuelInjectors ? (Burners.Any(b => b is not null) ? "liquid_injected_fired_powertrain" : "finite_liquid_fuel_delivery") : HasFuelFilms ? (Burners.Any(b => b is not null) ? "film_evaporation_fired_powertrain" : "finite_liquid_film_evaporation") : HasFuelInjectors ? (Burners.Any(b => b is not null) ? "metered_fired_powertrain" : "cycle_fuel_metering") : HasGasPistons ? (HasHydraulics ? "gas_accumulator_powertrain" : "linear_gas_actuation") : HasSpoolValves ? "mechanically_regulated_hydraulics" : HasPistons ? "dynamic_piston_powertrain" : HasBatteries ? (HasPressureControllers ? "battery_pressure_control" : "battery_electromechanical") : HasPressureControllers ? "sampled_pressure_control" : HasPumps ? "shaft_driven_hydraulics" : HasHydraulics ? "compliant_hydraulic_powertrain" : HasConverters ? "quasisteady_converter_powertrain" : HasGears ? "constrained_gear_powertrain" : HasClutches ? "hybrid_clutch_powertrain" : Burners.Any(b => b is not null) ? "premixed_wiebe_combustion" : HasPremixedGas ? "premixed_gas_transport" : HasValveTiming ? "crank_timed_gas_exchange" : GasCylinders.Any(c => c is not null) ? "moving_cylinder_gas_exchange" @@ -50,6 +50,8 @@ public sealed class CompiledModel internal CompiledFuelFilm[] FuelFilms { get; } internal int[] FilmByComponent { get; } public bool HasFuelFilms => FuelFilms.Length != 0; + public int EquilibriumFilmCount { get; } + public bool HasEquilibriumFuelFilms => EquilibriumFilmCount != 0; internal CompiledLiquidInjector[] LiquidFuelInjectors { get; } internal int[] LiquidInjectorByComponent { get; } public bool HasLiquidFuelInjectors => LiquidFuelInjectors.Length != 0; @@ -65,6 +67,8 @@ public sealed class CompiledModel public bool HasClosurePrediction { get; } internal CompiledDctController[] DctControllers { get; } internal int[] DctControllerByComponent { get; } + internal CompiledAtController[] AtControllers { get; } + internal int[] AtControllerByComponent { get; } internal bool[] IntegerInputs { get; } internal bool[] CoordinateStates { get; } internal Burner?[] Burners { get; } @@ -131,6 +135,8 @@ public bool TryGetControlCommand(ulong ownedChannel, out ChannelInfo command) foreach (var controller in DctControllers) if (Components[controller.Odd].InputChannel == ownedChannel || Components[controller.Even].InputChannel == ownedChannel || controller.Selectors.Any(i => Components[i].InputChannel == ownedChannel)) channel = Components[controller.Component].InputChannel; + foreach (var controller in AtControllers) + if (controller.Routes.Any(r => Components[r.Fill].InputChannel == ownedChannel || Components[r.Drain].InputChannel == ownedChannel)) channel = Components[controller.Component].InputChannel; if (channel != 0) foreach (var candidate in Channels) if (candidate.Id == channel && candidate.IsInput) { command = candidate; return true; } command = default; return false; @@ -228,6 +234,21 @@ private CompiledModel(ModelDefinition definition) HasClosurePrediction = cs.Any(c => c.NeedleDriver?.ClosurePredictionNanoseconds > 0); int[] dctControllers = Enumerable.Range(0, cs.Length).Where(i => cs[i].Kind == ComponentKind.DualClutchController).ToArray(); DctControllers = new CompiledDctController[dctControllers.Length]; DctControllerByComponent = new int[cs.Length]; Array.Fill(DctControllerByComponent, -1); + AtControllers = new CompiledAtController[cs.Count(c => c.Kind == ComponentKind.HydraulicAtController)]; + AtControllerByComponent = new int[cs.Length]; Array.Fill(AtControllerByComponent, -1); + LiquidFeeds = new CompiledLiquidFeed[cs.Count(c=>c.Kind==ComponentKind.LiquidRailFeed)]; + LiquidTanks = new CompiledLiquidTank[cs.Count(c=>c.Kind==ComponentKind.LiquidFuelTank)]; + TankHeadspaces = new CompiledTankHeadspace[cs.Count(c => c.Kind == ComponentKind.LiquidFuelTank && c.LiquidFuelTank?.Headspace is not null)]; + TankHeadspaceByNode = new int[ns.Length]; Array.Fill(TankHeadspaceByNode, -1); + HeadspaceByPump = new int[PumpComponents.Length]; Array.Fill(HeadspaceByPump, -1); + HeadspaceByTank = new int[LiquidTanks.Length]; Array.Fill(HeadspaceByTank, -1); + LiquidReturns = new CompiledLiquidReturn[cs.Count(c=>c.Kind==ComponentKind.LiquidRailReturn)]; + ReturnByComponent = new int[cs.Length]; Array.Fill(ReturnByComponent,-1); + ReturnHeatFractions = new double[cs.Length]; + ReturnsByFeed = new int[LiquidFeeds.Length][]; + TankByComponent = new int[cs.Length]; Array.Fill(TankByComponent,-1); + FeedByInjector = new int[cs.Count(c=>c.Kind==ComponentKind.LiquidFuelInjector)]; Array.Fill(FeedByInjector,-1); + FeedByComponent = new int[cs.Length]; Array.Fill(FeedByComponent,-1); IntegerInputs = new bool[cs.Length]; SpoolValves = new SpoolMetering?[cs.Length]; HasSpoolValves = cs.Any(c => c.Kind == ComponentKind.HydraulicSpoolValve); Pistons = new HydraulicPiston?[cs.Length]; PistonFriction = new PistonFriction?[cs.Length]; @@ -235,6 +256,7 @@ private CompiledModel(ModelDefinition definition) PressureControllers = new CompiledPressureController[controllerComponents.Length]; ElectricalComponents = Enumerable.Range(0, cs.Length).Where(i => cs[i].Kind is ComponentKind.BatteryMotor or ComponentKind.ResistiveLoad).ToArray(); HydraulicComponents = Enumerable.Range(0, cs.Length).Where(i => cs[i].Kind is ComponentKind.HydraulicResistance or ComponentKind.HydraulicOrifice or ComponentKind.HydraulicRelief or ComponentKind.HydraulicSpoolValve).ToArray(); + HeadspaceByRestriction = new int[HydraulicComponents.Length]; Array.Fill(HeadspaceByRestriction, -1); HydraulicLaws = new HydraulicRestriction?[cs.Length]; HydraulicActuators = new HydraulicActuator?[cs.Length]; GasCylinders = new GasCylinderPhysics?[cs.Length]; GasPistons = new GasPiston?[cs.Length]; GasPistonComponents = Enumerable.Range(0, cs.Length).Where(i => cs[i].Kind == ComponentKind.GasPiston).ToArray(); @@ -263,24 +285,28 @@ private CompiledModel(ModelDefinition definition) } else GasCylinders[i] = new(c.MovingCylinder!, c.Id); } + var initialHeadspaceVolumes = PrepareTankHeadspaces(ns, cs); HasMovingGas = GasCylinders.Any(c => c is not null) || HasGasPistons; Nodes = new GraphNode[ns.Length]; BatteryByNode = new CompiledBattery?[ns.Length]; NodeGases = new IdealGas?[ns.Length]; NodeMixtures = new PremixedGas?[ns.Length]; - int dynamics = 0, thermal = 0, gas = 0, hydraulic = 0; + int dynamics = 0, thermal = 0, gas = 0, hydraulic = 0, fuel = 0, compressible = 0; for (int i = 0; i < ns.Length; ++i) { var n = ns[i]; Require(n.Id != 0 && ids.Add(n.Id), DiagnosticCode.Id, n.Id, "id", "IDs must be nonzero and globally unique."); - Require(n.Domain is Domain.Rotational or Domain.Thermal or Domain.Gas or Domain.Hydraulic or Domain.Battery or Domain.Translational, + Require(n.Domain is Domain.Rotational or Domain.Thermal or Domain.Gas or Domain.Hydraulic or Domain.Battery or Domain.Translational or Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel, DiagnosticCode.Schema, n.Id, "domain", "Unknown domain."); Require((n.Domain == Domain.Gas) == (n.Gas is not null), DiagnosticCode.Schema, n.Id, "gas", "Gas composition is required only for gas volumes."); Require((n.Domain == Domain.Battery) == (n.Battery is not null), DiagnosticCode.Schema, n.Id, "battery", "Battery parameters apply only to battery nodes."); - bool rotor = n.Domain == Domain.Rotational, slider = n.Domain == Domain.Translational, volume = n.Domain == Domain.Gas, liquid = n.Domain == Domain.Hydraulic, battery = n.Domain == Domain.Battery; - Unit storageUnit = slider ? Unit.Kilogram : battery ? Unit.Coulomb : rotor ? Unit.KilogramMeterSquared : volume ? Unit.CubicMeter : liquid ? Unit.CubicMeterPerPascal : Unit.JoulePerKelvin; + Require((n.Domain is Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel) == (n.Fuel is not null), DiagnosticCode.Schema, n.Id, "fuel", "Fuel properties apply only to equilibrium fuel volumes."); + bool rotor = n.Domain == Domain.Rotational, slider = n.Domain == Domain.Translational, volume = n.Domain == Domain.Gas, compressibleVolume = n.Domain is Domain.CompressibleFuel or Domain.RelaxingFuel, fuelVolume = n.Domain is Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel, liquid = n.Domain == Domain.Hydraulic, battery = n.Domain == Domain.Battery; + Unit storageUnit = slider ? Unit.Kilogram : battery ? Unit.Coulomb : rotor ? Unit.KilogramMeterSquared : volume || fuelVolume ? Unit.CubicMeter : liquid ? Unit.CubicMeterPerPascal : Unit.JoulePerKelvin; Unit initialUnit = slider ? Unit.MeterPerSecond : battery ? Unit.Fraction : rotor ? Unit.RadianPerSecond : liquid ? Unit.Pascal : Unit.Kelvin; - Unit positionUnit = slider ? Unit.Meter : battery ? Unit.Volt : rotor ? Unit.Radian : volume ? Unit.Pascal : Unit.None; + Unit positionUnit = slider ? Unit.Meter : battery ? Unit.Volt : rotor ? Unit.Radian : volume ? Unit.Pascal : fuelVolume ? Unit.Kilogram : Unit.None; + Require(n.Domain==Domain.RelaxingFuel||n.InitialVaporMassFraction==default,DiagnosticCode.Schema,n.Id,"initial_vapor_mass_fraction","Initial phase quality belongs only to relaxing_fuel nodes."); + Require(compressibleVolume || n.InitialVelocity == default, DiagnosticCode.Schema, n.Id, "initial_velocity", "Initial fluid velocity applies only to compressible fuel cells."); double storage; int moving = GasCylinderByNode[i]; if (moving >= 0) @@ -289,7 +315,7 @@ private CompiledModel(ModelDefinition definition) storage = GasPistons[moving] is { } linearGas ? linearGas.VolumeAt(Convert(crank.Position, Unit.Meter, crank.Id, "position")) : GasCylinders[moving]!.GeometryAt(Convert(crank.Position, Unit.Radian, crank.Id, "position")).VolumeCubicMeters; } - else storage = Convert(n.Storage, storageUnit, n.Id, "storage"); + else storage = TankHeadspaceByNode[i] >= 0 ? initialHeadspaceVolumes[i] : Convert(n.Storage, storageUnit, n.Id, "storage"); double initial = Convert(n.Initial, initialUnit, n.Id, "initial"); double position = Convert(n.Position, positionUnit, n.Id, "position"); Require(storage > 0, DiagnosticCode.Range, n.Id, "storage", "Storage must be positive."); @@ -305,8 +331,8 @@ private CompiledModel(ModelDefinition definition) Require(Numeric.Finite(mass) && mass > 0 && Numeric.Finite(NodeGases[i]!.InternalEnergy(mass, initial)), DiagnosticCode.Range, n.Id, "gas", "Initial gas mass or internal energy exceeds binary64."); } - Nodes[i] = new(n.Id, n.Domain, rotor || slider || battery ? dynamics : volume ? gas : liquid ? hydraulic : thermal, storage, initial, position); - if (rotor || slider || battery) dynamics += 2; else if (volume) ++gas; else if (liquid) ++hydraulic; else ++thermal; + Nodes[i] = new(n.Id, n.Domain, rotor || slider || battery ? dynamics : volume ? gas : compressibleVolume ? compressible : fuelVolume ? fuel : liquid ? hydraulic : thermal, storage, initial, position); + if (rotor || slider || battery) dynamics += 2; else if (volume) ++gas; else if (compressibleVolume) ++compressible; else if (fuelVolume) ++fuel; else if (liquid) ++hydraulic; else ++thermal; } for (int i = 0; i < ns.Length; ++i) if (ns[i].Battery is { } battery) @@ -319,12 +345,15 @@ private CompiledModel(ModelDefinition definition) catch (ArgumentException error) { throw new ModelCompileException(DiagnosticCode.Range, id, "battery", error.Message); } } Batteries = BatteryByNode.Where(b => b is not null).Select(b => b!).ToArray(); + CompileFuelVolumes(ns); + CompileCompressibleFuels(ns); HydraulicCount = hydraulic; GasCount = gas; HasPremixedGas = NodeMixtures.Any(m => m is not null); + FiniteFilmByGas = new int[gas]; Array.Fill(FiniteFilmByGas, -1); BurnerByGas = new int[gas]; Array.Fill(BurnerByGas, -1); int FindNode(uint id) => Array.FindIndex(Nodes, n => n.Id == id); Components = new GraphComponent[cs.Length]; - int[] filmComponents = Enumerable.Range(0, cs.Length).Where(i=>cs[i].Kind==ComponentKind.FuelFilm).ToArray(); + int[] filmComponents = Enumerable.Range(0, cs.Length).Where(i=>cs[i].Kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm).ToArray(); FuelFilms=new CompiledFuelFilm[filmComponents.Length];FilmByComponent=new int[cs.Length];Array.Fill(FilmByComponent,-1); int[] injectorComponents = Enumerable.Range(0, cs.Length).Where(i => cs[i].Kind == ComponentKind.GasFuelInjector).ToArray(); FuelInjectors = new CompiledInjector[injectorComponents.Length]; InjectorByComponent = new int[cs.Length]; Array.Fill(InjectorByComponent, -1); @@ -342,13 +371,28 @@ private CompiledModel(ModelDefinition definition) { var c = cs[i]; Require(c.Id != 0 && ids.Add(c.Id), DiagnosticCode.Id, c.Id, "id", "IDs must be nonzero and globally unique."); - Require(c.Kind is >= ComponentKind.Shaft and <= ComponentKind.CarrierGear, + Require(c.Kind is >= ComponentKind.Shaft and <= ComponentKind.RelaxingFuelDuct, DiagnosticCode.Schema, c.Id, "kind", "Unknown component kind."); Require((c.Kind == ComponentKind.SealedCylinder) == (c.Cylinder is not null), DiagnosticCode.Schema, c.Id, "cylinder", "Cylinder parameters are required only for sealed cylinders."); - bool film = c.Kind == ComponentKind.FuelFilm; + Require((c.Kind is ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber) == (c.FuelChamber is not null), DiagnosticCode.Schema, c.Id, "fuel_chamber", "Moving chamber parameters apply only to fuel chambers."); + bool feed = c.Kind == ComponentKind.LiquidRailFeed, tank = c.Kind == ComponentKind.LiquidFuelTank, liquidReturn = c.Kind == ComponentKind.LiquidRailReturn; + Require(liquidReturn==(c.LiquidRailReturn is not null),DiagnosticCode.Schema,c.Id,"liquid_rail_return","Return data applies only to liquid rail return components."); + Require(tank==(c.LiquidFuelTank is not null),DiagnosticCode.Schema,c.Id,"liquid_fuel_tank","Tank data applies only to finite fuel tank components."); + Require(feed==(c.LiquidRailFeed is not null),DiagnosticCode.Schema,c.Id,"liquid_rail_feed","Feed data applies only to liquid rail feed components."); + bool film = c.Kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm; + bool discharge = c.Kind == ComponentKind.FuelDischarge; + bool fuelPipe = c.Kind == ComponentKind.FuelInertialPipe; + bool fuelDuct = c.Kind is ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct; + bool compressibleNozzle = c.Kind == ComponentKind.CompressibleFuelNozzle; + Require(compressibleNozzle == (c.CompressibleNozzle is not null), DiagnosticCode.Schema, c.Id, "compressible_nozzle", "Nozzle parameters apply only to compressible fuel nozzles."); + Require(fuelDuct == (c.FuelDuct is not null), DiagnosticCode.Schema, c.Id, "fuel_duct", "Duct properties apply only to equilibrium fuel ducts."); + Require(fuelPipe == (c.FuelPipe is not null), DiagnosticCode.Schema, c.Id, "fuel_pipe", "Pipe properties apply only to inertial fuel pipes."); + Require(discharge == (c.FuelDischarge is not null), DiagnosticCode.Schema, c.Id, "fuel_discharge", "Discharge properties apply only to fuel discharge components."); bool liquidInjector = c.Kind == ComponentKind.LiquidFuelInjector; bool solenoid = c.Kind == ComponentKind.Solenoid, stop = c.Kind == ComponentKind.TravelStop, needleDriver = c.Kind == ComponentKind.NeedleDriver; + bool at = c.Kind == ComponentKind.HydraulicAtController; + Require(at == (c.HydraulicAtController is not null), DiagnosticCode.Schema, c.Id, "at_controller", "AT controller parameters apply only to AT controllers."); bool dct = c.Kind == ComponentKind.DualClutchController; Require(dct == (c.DualClutchController is not null), DiagnosticCode.Schema, c.Id, "dct_controller", "DCT controller parameters apply only to DCT controllers."); Require(solenoid == (c.Solenoid is not null) && stop == (c.TravelStop is not null) && needleDriver == (c.NeedleDriver is not null), @@ -385,7 +429,7 @@ private CompiledModel(ModelDefinition definition) Require((c.Kind == ComponentKind.Clutch) == (c.Friction is not null), DiagnosticCode.Schema, c.Id, "friction", "Friction capacities are required only for clutch components."); Require(combustion == (c.Combustion is not null), DiagnosticCode.Schema, c.Id, "combustion", "Burn parameters apply only to premixed combustion components."); bool orifice = c.Kind == ComponentKind.GasOrifice || injector, wall = c.Kind == ComponentKind.GasHeatLink || film, moving = c.Kind == ComponentKind.GasCylinder, linearGasPiston = c.Kind == ComponentKind.GasPiston; - Require(c.ValveTiming is null || orifice, DiagnosticCode.Schema, c.Id, "valve_timing", "Valve timing applies only to gas orifices."); + Require(c.ValveTiming is null || orifice || discharge, DiagnosticCode.Schema, c.Id, "valve_timing", "Valve timing applies only to gas orifices and fuel discharge nozzles."); if (c.ValveTiming is { } timing) { int crank = FindNode(timing.CrankNode); @@ -409,27 +453,30 @@ private CompiledModel(ModelDefinition definition) DiagnosticCode.Connection, c.Id, "hydraulic_piston.back_node", "Use a distinct hydraulic back chamber or zero for a pressure reservoir."); Require(!PistonComponents.TakeWhile(index => index != i).Any(index => cs[index].NodeA == c.NodeA), DiagnosticCode.Connection, c.Id, "node_a", "Each hydraulic piston owns a distinct translational slider."); } - bool pair = c.Kind is ComponentKind.Shaft or ComponentKind.LinearSpring or ComponentKind.ThermalLink || orifice || clutch || gear || converter || liquid; - bool input = dct || solenoid || c.Kind is ComponentKind.DcMotor or ComponentKind.TorqueSource or ComponentKind.PressureController or ComponentKind.PressureDutyController or ComponentKind.BatteryMotor or ComponentKind.ForceSource; + bool fuelRestriction = c.Kind is ComponentKind.FuelRestriction or ComponentKind.FuelCheckValve, fuelHeat = c.Kind == ComponentKind.FuelHeatLink; + bool pair = fuelPipe || fuelRestriction || c.Kind is ComponentKind.Shaft or ComponentKind.LinearSpring or ComponentKind.ThermalLink || orifice || clutch || gear || converter || liquid; + bool input = at || dct || solenoid || c.Kind is ComponentKind.DcMotor or ComponentKind.TorqueSource or ComponentKind.PressureController or ComponentKind.PressureDutyController or ComponentKind.BatteryMotor or ComponentKind.ForceSource; + bool relaxingNozzle = compressibleNozzle && Nodes.Any(n => n.Id == c.NodeA && n.Domain == Domain.RelaxingFuel); Domain domain = solenoid || stop || linearGasPiston || piston || linearSpring || c.Kind == ComponentKind.ForceSource ? Domain.Translational : c.Kind == ComponentKind.ThermalLink ? Domain.Thermal - : orifice || wall || liquidInjector ? Domain.Gas : liquid || controller ? Domain.Hydraulic : load ? Domain.Battery : Domain.Rotational; + : c.Kind==ComponentKind.RelaxingFuelDuct||relaxingNozzle?Domain.RelaxingFuel : fuelDuct || compressibleNozzle ? Domain.CompressibleFuel : fuelPipe || fuelRestriction || fuelHeat || discharge ? Domain.Fuel : orifice || wall || liquidInjector || feed || tank || liquidReturn ? Domain.Gas : liquid || controller ? Domain.Hydraulic : load ? Domain.Battery : Domain.Rotational; int a = FindNode(c.NodeA), b = FindNode(c.NodeB), heat = FindNode(c.HeatNode); Require(a >= 0 && Nodes[a].Domain == domain, DiagnosticCode.Connection, c.Id, "node_a", "Missing node or wrong domain."); - Require(piston ? b >= 0 && Nodes[b].Domain == Domain.Hydraulic : batteryMotor ? b >= 0 && Nodes[b].Domain == Domain.Battery : pump ? b >= 0 && Nodes[b].Domain == Domain.Hydraulic : moving || linearGasPiston || combustion ? b >= 0 && Nodes[b].Domain == Domain.Gas + Require(c.Kind==ComponentKind.RelaxingFuelDuct?b>=0&&b!=a&&Nodes[b].Domain==Domain.RelaxingFuel:fuelDuct || compressibleNozzle ? b >= 0 && b != a && Nodes[b].Domain == domain : discharge ? b >= 0 && Nodes[b].Domain == Domain.Gas : c.Kind == ComponentKind.CompressibleFuelChamber ? b >= 0 && Nodes[b].Domain is Domain.CompressibleFuel or Domain.RelaxingFuel : c.Kind == ComponentKind.FuelChamber ? b >= 0 && Nodes[b].Domain == Domain.Fuel : piston ? b >= 0 && Nodes[b].Domain == Domain.Hydraulic : batteryMotor ? b >= 0 && Nodes[b].Domain == Domain.Battery : pump ? b >= 0 && Nodes[b].Domain == Domain.Hydraulic : moving || linearGasPiston || combustion ? b >= 0 && Nodes[b].Domain == Domain.Gas : gear || converter ? b >= 0 && b != a && Nodes[b].Domain == Domain.Rotational - : wall ? b >= 0 && Nodes[b].Domain == Domain.Thermal + : fuelPipe || fuelRestriction ? b >= 0 && b != a && Nodes[b].Domain == Domain.Fuel + : wall || fuelHeat ? b >= 0 && Nodes[b].Domain == Domain.Thermal : c.NodeB == 0 || (pair && b >= 0 && b != a && Nodes[b].Domain == domain), DiagnosticCode.Connection, c.Id, "node_b", wall ? "A gas heat link requires a thermal node." : "Expected a distinct node of the matching domain."); - Require(c.HeatNode == 0 || (c.Kind is ComponentKind.Solenoid or ComponentKind.Shaft or ComponentKind.LinearSpring or ComponentKind.PistonClutch or ComponentKind.DcMotor or ComponentKind.BatteryMotor or ComponentKind.ResistiveLoad or ComponentKind.Clutch or ComponentKind.TorqueConverter or ComponentKind.HydraulicClutch or ComponentKind.HydraulicResistance or ComponentKind.HydraulicOrifice or ComponentKind.HydraulicRelief or ComponentKind.HydraulicSpoolValve && + Require(c.HeatNode == 0 || (c.Kind is ComponentKind.Solenoid or ComponentKind.Shaft or ComponentKind.LinearSpring or ComponentKind.PistonClutch or ComponentKind.DcMotor or ComponentKind.BatteryMotor or ComponentKind.ResistiveLoad or ComponentKind.Clutch or ComponentKind.TorqueConverter or ComponentKind.HydraulicClutch or ComponentKind.HydraulicResistance or ComponentKind.HydraulicOrifice or ComponentKind.HydraulicRelief or ComponentKind.HydraulicSpoolValve or ComponentKind.FuelInertialPipe or ComponentKind.EquilibriumFuelDuct or ComponentKind.CompressibleFuelNozzle or ComponentKind.RelaxingFuelDuct && heat >= 0 && Nodes[heat].Domain == Domain.Thermal), DiagnosticCode.Connection, c.Id, "heat_node", "Loss sinks must be thermal nodes."); - bool channelled = liquidInjector || injector || input || ((load || orifice || combustion || (clutch && !pressureClutch && !pistonClutch) || (liquid && !relief && !spool)) && c.InputChannel != 0); + bool channelled = at || liquidInjector || injector || input || ((compressibleNozzle || discharge || fuelRestriction || load || orifice || combustion || (clutch && !pressureClutch && !pistonClutch) || (liquid && !relief && !spool)) && c.InputChannel != 0); Require(channelled ? c.InputChannel > 0 && c.InputChannel < 0x8000000000000000UL && !InputIndices.ContainsKey(c.InputChannel) : c.InputChannel == 0, DiagnosticCode.Channel, c.Id, "input_channel", "Invalid or duplicate input channel."); - double initial = Convert(c.InitialInput, dct ? Unit.StateCode : injector || liquidInjector ? Unit.Kilogram : input ? (c.Kind == ComponentKind.ForceSource ? Unit.Newton : controller ? Unit.Pascal : batteryMotor ? Unit.Fraction : solenoid || c.Kind == ComponentKind.DcMotor ? Unit.Volt : Unit.NewtonMeter) - : load || orifice || combustion || (clutch && !pressureClutch && !pistonClutch) || (liquid && !relief && !spool) ? Unit.Fraction : Unit.None, c.Id, "initial_input"); - Require(c.DischargeCoefficient == 1 || orifice || liquidInjector, DiagnosticCode.Schema, c.Id, "discharge_coefficient", + double initial = Convert(c.InitialInput, dct || at ? Unit.StateCode : injector || liquidInjector ? Unit.Kilogram : input ? (c.Kind == ComponentKind.ForceSource ? Unit.Newton : controller ? Unit.Pascal : batteryMotor ? Unit.Fraction : solenoid || c.Kind == ComponentKind.DcMotor ? Unit.Volt : Unit.NewtonMeter) + : compressibleNozzle || discharge || fuelRestriction || load || orifice || combustion || (clutch && !pressureClutch && !pistonClutch) || (liquid && !relief && !spool) ? Unit.Fraction : Unit.None, c.Id, "initial_input"); + Require(c.DischargeCoefficient == 1 || orifice || liquidInjector || discharge, DiagnosticCode.Schema, c.Id, "discharge_coefficient", "A discharge coefficient applies only to a gas orifice."); bool reservoirMixture = orifice && b < 0 && NodeMixtures[a] is not null; Require(!injector || b >= 0, DiagnosticCode.Connection, c.Id, "node_b", "A gas fuel injector requires a finite receiver; no reservoir endpoint is allowed."); @@ -440,6 +487,50 @@ private CompiledModel(ModelDefinition definition) int state = -1; switch (c.Kind) { + case ComponentKind.CompressibleFuelNozzle: + Require(c.HeatNode != 0 && heat >= 0 && c.NodeC == 0 && c.Ratio == 1 && c.Stiffness == default && c.Damping == default && c.RestAngle == default && c.Resistance == default && c.Inductance == default && c.Coupling == default && c.InitialCurrent == default && c.Conductance == default && c.AmbientTemperature == default && c.Area == default && c.ReservoirPressure == default && initial is >=0 and <=1, + DiagnosticCode.Schema,c.Id,"compressible_nozzle","Use distinct finite compressible reservoirs, finite thermal wall, explicit nozzle properties and opening in [0,1]."); + InputMinimum[i]=0;InputMaximum[i]=1;break; + case ComponentKind.FuelDischarge: + p0 = Convert(c.Area, Unit.SquareMeter, c.Id, "fuel_discharge.area"); p1 = c.DischargeCoefficient; + Require(p0 > 0 && Numeric.Finite(p1) && p1 > 0 && p1 <= 1 && initial is >= 0 and <= 1, + DiagnosticCode.Range, c.Id, "fuel_discharge", "Use positive area, effective-area coefficient in (0,1] and opening in [0,1]."); + Require(c.Ratio == 1 && c.NodeC == 0 && c.HeatNode == 0 && c.Stiffness == default && c.Damping == default && c.RestAngle == default && c.Resistance == default && c.Inductance == default && c.Coupling == default && c.InitialCurrent == default && c.Conductance == default && c.ReservoirPressure == default && c.AmbientTemperature == default, + DiagnosticCode.Schema, c.Id, "fuel_discharge", "Use finite source/receiver ports, frozen transit, a film wall and explicit nozzle/needle properties."); + InputMinimum[i] = 0; InputMaximum[i] = 1; + break; + case ComponentKind.RelaxingFuelDuct: + case ComponentKind.EquilibriumFuelDuct: + case ComponentKind.FuelInertialPipe: + Require(c.HeatNode != 0 && heat >= 0 && c.InputChannel == 0 && c.InitialInput == default && c.Ratio == 1 && c.Stiffness == default && c.Damping == default && c.RestAngle == default && c.Resistance == default && c.Inductance == default && c.Coupling == default && c.InitialCurrent == default && c.Conductance == default && c.AmbientTemperature == default && c.Area == default && c.ReservoirPressure == default, DiagnosticCode.Schema, c.Id, "fuel_pipe", "Use finite fuel ports, a finite thermal loss wall and explicit pipe properties; no opening command is supported."); + break; + case ComponentKind.CompressibleFuelChamber: + case ComponentKind.FuelChamber: + Require(c.NodeB != 0 && c.InputChannel == 0 && c.InitialInput == default && c.HeatNode == 0 && c.Ratio == 1 && c.Stiffness == default && c.Damping == default && c.RestAngle == default && + c.Resistance == default && c.Inductance == default && c.Coupling == default && c.InitialCurrent == default && c.Conductance == default && c.AmbientTemperature == default && c.Area == default && c.ReservoirPressure == default, + DiagnosticCode.Schema, c.Id, "fuel_chamber", "A moving fuel chamber accepts a shaft, a finite fuel volume and explicit geometry only."); + break; + case ComponentKind.FuelCheckValve: + case ComponentKind.FuelRestriction: + case ComponentKind.FuelHeatLink: + p0 = Convert(c.Conductance, fuelRestriction ? Unit.CubicMeterPerSecondPascal : Unit.WattPerKelvin, c.Id, "conductance"); + Require(p0 >= 0 && (!fuelRestriction || p0 > 0) && (!fuelRestriction || initial is >= 0 and <= 1), DiagnosticCode.Range, c.Id, "conductance", "Use positive fuel-flow conductance, nonnegative heat conductance and opening in [0,1]."); + Require(c.HeatNode == 0 && c.Ratio == 1 && c.Stiffness == default && c.Damping == default && c.RestAngle == default && + c.Resistance == default && c.Inductance == default && c.Coupling == default && c.InitialCurrent == default && c.AmbientTemperature == default && + c.Area == default && c.ReservoirPressure == default && (!fuelHeat || c.InitialInput == default), DiagnosticCode.Schema, c.Id, "fuel_link", "Fuel links accept finite ports, conductance and optional restriction opening only."); + if (fuelRestriction) { InputMinimum[i] = 0; InputMaximum[i] = 1; } + break; + case ComponentKind.LiquidRailReturn: + case ComponentKind.LiquidFuelTank: + case ComponentKind.LiquidRailFeed: + Require(Nodes[a].Domain==Domain.Gas&&c.NodeB==0&&c.InputChannel==0&&c.HeatNode==0&&c.InitialInput==default&&c.Ratio==1&& + c.Stiffness==default&&c.Damping==default&&c.RestAngle==default&&c.Resistance==default&&c.Inductance==default&&c.Coupling==default&&c.InitialCurrent==default&&c.Conductance==default&&c.AmbientTemperature==default, + DiagnosticCode.Schema,c.Id,"liquid_rail_feed","A feed accepts only its gas receiver and explicit boundary/pump links."); + break; + case ComponentKind.HydraulicAtController: + Require(initial >= -1 && initial <= 4 && initial == Math.Truncate(initial), DiagnosticCode.Range, c.Id, "initial_input", "Requested range is an integer in [-1,4]; zero is neutral."); + IntegerInputs[i] = true; InputMinimum[i] = -1; InputMaximum[i] = 4; + goto case ComponentKind.NeedleDriver; case ComponentKind.DualClutchController: Require(initial >= -1 && initial <= 7 && initial == Math.Truncate(initial), DiagnosticCode.Range, c.Id, "initial_input", "Requested gear is an integer in [-1,7]; zero is neutral."); IntegerInputs[i] = true; InputMinimum[i] = -1; InputMaximum[i] = 7; @@ -692,11 +783,42 @@ private CompiledModel(ModelDefinition definition) Require(b < 0 || (NodeMixtures[a] is null ? NodeMixtures[b] is null : NodeMixtures[a]!.Compatible(NodeMixtures[b])), DiagnosticCode.Connection, c.Id, "node_b", "Connected gases must share premixed tracking, heating value and stoichiometric ratio."); break; + case ComponentKind.FiniteFuelFilm: case ComponentKind.FuelFilm: Require(NodeMixtures[a] is not null,DiagnosticCode.Connection,c.Id,"node_a","A film requires a tracked gas receiver with explicit heating value."); var filmDefinition=c.FuelFilm!;double filmMass=Convert(filmDefinition.InitialMass,Unit.Kilogram,c.Id,"fuel_film.initial_mass"),filmTemperature=Convert(filmDefinition.InitialTemperature,Unit.Kelvin,c.Id,"fuel_film.initial_temperature"),filmSpecificHeat=Convert(filmDefinition.LiquidSpecificHeat,Unit.JoulePerKilogramKelvin,c.Id,"fuel_film.liquid_specific_heat"),filmSaturation=Convert(filmDefinition.SaturationTemperature,Unit.Kelvin,c.Id,"fuel_film.saturation_temperature"),filmLatent=Convert(filmDefinition.LatentInternalEnergy,Unit.JoulePerKilogram,c.Id,"fuel_film.latent_internal_energy"); p0=Convert(c.Conductance,Unit.WattPerKelvin,c.Id,"conductance");int filmSlot=Array.IndexOf(filmComponents,i); - try { var law=new EquilibriumFuelFilm(filmSpecificHeat,NodeGases[a]!.IsochoricHeatCapacityJoulePerKilogramKelvin,filmSaturation,filmLatent,p0);FuelFilms[filmSlot]=new(i,Nodes[a].Index,Nodes[b].Index,Nodes[b].Storage,NodeMixtures[a]!.Lhv,filmMass,law.CreateState(filmMass,filmTemperature),law); } + Require((c.Kind == ComponentKind.FiniteFuelFilm) == (filmDefinition.FiniteVolumeDensity != default), DiagnosticCode.Schema, c.Id, + "fuel_film.finite_volume_density", "Declare finite displacement density only for an explicit finite fuel film."); + FuelPhaseEquilibrium? phase = null; + double referencePressure = 0, minimumTemperature = 0, maximumTemperature = 0; + if (filmDefinition.PhaseEquilibrium is { } equilibrium) + { + referencePressure = Convert(equilibrium.ReferencePressure, Unit.Pascal, c.Id, "fuel_film.phase_equilibrium.reference_pressure"); + minimumTemperature = Convert(equilibrium.MinimumTemperature, Unit.Kelvin, c.Id, "fuel_film.phase_equilibrium.minimum_temperature"); + maximumTemperature = Convert(equilibrium.MaximumTemperature, Unit.Kelvin, c.Id, "fuel_film.phase_equilibrium.maximum_temperature"); + Require(cs.Count(x => x.Kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm && x.NodeA == c.NodeA) == 1, + DiagnosticCode.Connection, c.Id, "fuel_film.phase_equilibrium", "An equilibrium receiver has one liquid film and one set of phase properties."); + } + try + { + var law = new EquilibriumFuelFilm(filmSpecificHeat, NodeGases[a]!.IsochoricHeatCapacityJoulePerKilogramKelvin, filmSaturation, filmLatent, p0); + if (filmDefinition.PhaseEquilibrium is not null) + phase = new(law, NodeGases[a]!.GasConstantJoulePerKilogramKelvin, referencePressure, minimumTemperature, maximumTemperature); + FiniteTankFuelEquilibrium? finite = null; + if (filmDefinition.FiniteVolumeDensity != default) + { + double density = Convert(filmDefinition.FiniteVolumeDensity, Unit.KilogramPerCubicMeter, c.Id, "fuel_film.finite_volume_density"); + Require(phase is not null && density > 0, DiagnosticCode.Range, c.Id, "fuel_film.finite_volume_density", "Finite liquid displacement requires explicit phase equilibrium and positive density."); + Require(TankHeadspaceByNode[a] < 0 && (GasCylinderByNode[a] < 0 || GasPistons[GasCylinderByNode[a]] is null), DiagnosticCode.Connection, c.Id, "fuel_film.finite_volume_density", "Use a fixed cavity or gas-cylinder receiver without another liquid-volume owner."); + finite = new(phase!, Nodes[a].Storage, density); + Require(filmMass / density < Nodes[a].Storage, DiagnosticCode.Range, c.Id, "fuel_film.initial_mass", "Liquid displacement must leave positive initial gas volume."); + FiniteFilmByGas[Nodes[a].Index] = filmSlot; HasFiniteFuelReceivers = true; + } + FuelFilms[filmSlot] = new(i, Nodes[a].Index, Nodes[b].Index, Nodes[b].Storage, NodeMixtures[a]!.Lhv, filmMass, + phase is null ? law.CreateState(filmMass, filmTemperature) : phase.CreateLiquidState(filmMass, filmTemperature), law, phase, finite); + } + catch(ModelCompileException){throw;} catch(ArgumentException error){throw new ModelCompileException(DiagnosticCode.Range,c.Id,"fuel_film",error.Message);} Require(c.Ratio==1&&c.Area==default&&c.Stiffness==default&&c.Damping==default&&c.RestAngle==default&&c.Resistance==default&&c.Inductance==default&&c.Coupling==default&&c.InitialCurrent==default&&c.ReservoirPressure==default&&c.AmbientTemperature==default,DiagnosticCode.Schema,c.Id,"parameters","A film accepts only phase properties, finite wall and receiver and conductance."); FilmByComponent[i]=filmSlot; @@ -729,13 +851,17 @@ private CompiledModel(ModelDefinition definition) var targetFilm = FuelFilms[FilmByComponent[target]]; double temperature = Convert(railDefinition.SupplyTemperature, Unit.Kelvin, id, "liquid_fuel_injector.supply_temperature"); double maximum = Convert(railDefinition.MaximumDose, Unit.Kilogram, id, "liquid_fuel_injector.maximum_dose"); - Require(temperature > 0 && temperature <= targetFilm.Law.SaturationTemperatureKelvin, - DiagnosticCode.Range, id, "liquid_fuel_injector.supply_temperature", "Supply liquid must be in (0,saturation_temperature]."); + Require(targetFilm.LiquidTemperatureValid(temperature), + DiagnosticCode.Range, id, "liquid_fuel_injector.supply_temperature", "Supply liquid must be inside the film's declared liquid temperature range."); Require(component.InitialInput >= 0 && component.InitialInput <= maximum, DiagnosticCode.Range, id, "initial_input", "Requested dose must be in [0,maximum_dose] kg."); double mass = Convert(railDefinition.InitialMass, Unit.Kilogram, id, "liquid_fuel_injector.initial_mass"); double pressure = Convert(railDefinition.InitialPressure, Unit.Pascal, id, "liquid_fuel_injector.initial_pressure"); + Require(targetFilm.Phase is null || mass == 0 || targetFilm.Phase.TrySaturationPressure(temperature, out double saturation) && FuelPhaseEquilibrium.PressureAllowsLiquid(pressure, saturation), + DiagnosticCode.Range, id, "liquid_fuel_injector.initial_pressure", "Liquid rail pressure must be at least its saturation pressure; raise pressure or lower supply temperature."); double density = Convert(railDefinition.LiquidDensity, Unit.KilogramPerCubicMeter, id, "liquid_fuel_injector.liquid_density"); + Require(targetFilm.FiniteVolume is null || density == targetFilm.FiniteVolume.DensityKilogramsPerCubicMeter, DiagnosticCode.Connection, id, + "liquid_fuel_injector.liquid_density", "Finite receiver and liquid supply must declare the same density."); double compliance = Convert(railDefinition.PressureCompliance, Unit.CubicMeterPerPascal, id, "liquid_fuel_injector.pressure_compliance"); try { @@ -743,7 +869,7 @@ private CompiledModel(ModelDefinition definition) Convert(railDefinition.StartAngle, Unit.Radian, id, "liquid_fuel_injector.start_angle"), Convert(railDefinition.DurationAngle, Unit.Radian, id, "liquid_fuel_injector.duration_angle"), maximum); var rail = new CompliantLiquidRail(mass, pressure, density, compliance, component.P0, component.P1); - double specificEnergy = targetFilm.Law.CreateState(1, temperature).ThermalEnergyJoules; + double specificEnergy = targetFilm.LiquidState(1, temperature).ThermalEnergyJoules; LiquidFuelInjectors[k] = new(index, FilmByComponent[target], new(index, Nodes[crank].Index, profile), rail, temperature, specificEnergy, targetFilm.HeatingValue); if (railDefinition.Needle is { } needle) @@ -835,7 +961,21 @@ private CompiledModel(ModelDefinition definition) DctControllers[k] = new(index, Nodes[vehicle].Index, odd, even, selectors, d.SamplePeriodNanoseconds, d.ReleaseNanoseconds, d.EngageNanoseconds, d.SynchronizeTimeoutNanoseconds, tolerance, direction); DctControllerByComponent[index] = k; } - Require(dynamics + thermal + 2 * gas + 3 * NodeMixtures.Count(m => m is not null) + Burners.Count(b => b is not null) + ClutchComponents.Length + GearComponents.Length + 4 * ConverterComponents.Length + hydraulic + 3 * HydraulicComponents.Length + 4 * PumpComponents.Length + 4 * PressureControllers.Length + 6 * FuelInjectors.Length + 5 * FuelFilms.Length + 9 * LiquidFuelInjectors.Length + 4 * Solenoids.Length + 3 * NeedleDrivers.Length + (HasClosurePrediction ? 5 * NeedleDrivers.Length : 0) + 9 * DctControllers.Length <= MaxStates, DiagnosticCode.Capacity, 0, "states", "State capacity exceeded."); + CompileAtControllers(cs); + CompileLiquidTanks(cs); + CompileFuelLinks(); + CompileFuelChambers(cs); + CompileFuelDischarges(cs); + CompileFuelPipes(cs); + CompileFuelDucts(cs); + CompileCompressibleChambers(cs); + CompileCompressibleNozzles(cs); + CompileLiquidFeeds(cs); + CompileLiquidReturns(cs); + CompileTankHeadspaceRoutes(cs); + EquilibriumFilmCount = FuelFilms.Count(film => film.Phase is not null); + ValidateLiquidPhaseSources(); + Require(dynamics + thermal + 2 * gas + 3 * NodeMixtures.Count(m => m is not null) + Burners.Count(b => b is not null) + ClutchComponents.Length + GearComponents.Length + 4 * ConverterComponents.Length + hydraulic + 3 * HydraulicComponents.Length + 4 * PumpComponents.Length + 4 * PressureControllers.Length + 6 * FuelInjectors.Length + 5 * FuelFilms.Length + EquilibriumFilmCount + 9 * LiquidFuelInjectors.Length + 4 * Solenoids.Length + 3 * NeedleDrivers.Length + (HasClosurePrediction ? 5 * NeedleDrivers.Length : 0) + 9 * DctControllers.Length + 16 * AtControllers.Length + 8 * LiquidFeeds.Length + 4 * LiquidTanks.Length + 8 * LiquidReturns.Length + 2 * TankHeadspaces.Length + 3 * EquilibriumTankCount + 2 * FuelVolumes.Length + 5 * FuelLinks.Length + 3 * FuelChambers.Length + 11 * FuelDischarges.Length + 13 * FuelPipes.Length + 3 * CompressibleFuels.Length + 11 * FuelDucts.Length + 4 * CompressibleChambers.Length + 13 * CompressibleNozzles.Length + EquilibriumNozzleCount + 5 * RelaxingFuelCount + 2 * RelaxingDuctCount + RelaxingNozzleCount <= MaxStates, DiagnosticCode.Capacity, 0, "states", "State capacity exceeded."); HasValveTiming = Valves.Any(v => v is not null); DynamicCount = dynamics; ThermalCount = thermal; CoordinateStates = new bool[dynamics]; @@ -883,6 +1023,30 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co Output(n.Id, Field.InternalEnergy, i, Unit.Joule, "battery_total_stored_energy"); Output(n.Id, Field.HeatFlow, i, Unit.Watt, "instantaneous_battery_loss"); } + else if(n.Domain is Domain.CompressibleFuel or Domain.RelaxingFuel) + { + if(n.Domain==Domain.RelaxingFuel) + {Output(n.Id,Field.EquilibriumVaporMassFraction,i,Unit.Fraction,"fixed_mass_energy_volume_equilibrium_quality");Output(n.Id,Field.ChemicalAffinity,i,Unit.JoulePerKilogram,"liquid_minus_vapor_chemical_potential");Output(n.Id,Field.EvaporatedFuelMass,i,Unit.Kilogram,"cumulative_positive_net_tick_phase_transfer");Output(n.Id,Field.CondensedFuelMass,i,Unit.Kilogram,"cumulative_negative_net_tick_phase_transfer");Output(n.Id,Field.EntropyProduced,i,Unit.JoulePerKelvin,"cumulative_phase_relaxation_entropy_change");Output(n.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_net_phase_transfer_rate");} + Output(n.Id,Field.Mass,i,Unit.Kilogram,"fuel_mass");Output(n.Id,Field.Density,i,Unit.KilogramPerCubicMeter,"fuel_density");Output(n.Id,Field.Volume,i,Unit.CubicMeter,"rigid_fuel_volume"); + Output(n.Id,Field.Pressure,i,Unit.Pascal,"fuel_pressure");Output(n.Id,Field.Temperature,i,Unit.Kelvin,"fuel_temperature");Output(n.Id,Field.LinearSpeed,i,Unit.MeterPerSecond,"fluid_velocity"); + Output(n.Id,Field.InternalEnergy,i,Unit.Joule,"fluid_internal_energy");Output(n.Id,Field.KineticEnergy,i,Unit.Joule,"fluid_kinetic_energy");Output(n.Id,Field.ChemicalEnergy,i,Unit.Joule,"fuel_chemical_energy"); + Output(n.Id,Field.VaporMass,i,Unit.Kilogram,"fuel_vapor_mass");Output(n.Id,Field.VaporMassFraction,i,Unit.Fraction,"fuel_vapor_mass_fraction");Output(n.Id,Field.Entropy,i,Unit.JoulePerKelvin,"fluid_entropy");Output(n.Id,Field.SoundSpeed,i,Unit.MeterPerSecond,n.Domain==Domain.RelaxingFuel?"frozen_sound_speed":"equilibrium_sound_speed"); + } + else if (n.Domain == Domain.Fuel) + { + Output(n.Id, Field.Pressure, i, Unit.Pascal, "fuel_absolute_pressure"); + Output(n.Id, Field.Temperature, i, Unit.Kelvin, "equilibrium_fuel_temperature"); + Output(n.Id, Field.Mass, i, Unit.Kilogram, "total_fuel_mass"); + Output(n.Id, Field.Volume, i, Unit.CubicMeter, "fuel_vessel_volume"); + Output(n.Id, Field.InternalEnergy, i, Unit.Joule, "fuel_and_elastic_stored_energy"); + Output(n.Id, Field.ElasticEnergy, i, Unit.Joule, "fuel_vessel_elastic_energy"); + Output(n.Id, Field.VaporMass, i, Unit.Kilogram, "fuel_vapor_mass"); + Output(n.Id, Field.VaporMassFraction, i, Unit.Fraction, "fuel_vapor_mass_fraction"); + Output(n.Id, Field.VaporVolumeFraction, i, Unit.Fraction, "fuel_vapor_volume_fraction"); + Output(n.Id, Field.Entropy, i, Unit.JoulePerKelvin, "fuel_entropy"); + Output(n.Id, Field.SpecificEnthalpy, i, Unit.JoulePerKilogram, "fuel_specific_enthalpy"); + Output(n.Id, Field.ChemicalEnergy, i, Unit.Joule, "fuel_chemical_energy"); + } else if (n.Domain == Domain.Hydraulic) { Output(n.Id, Field.Pressure, i, Unit.Pascal, "hydraulic_gauge_pressure"); @@ -895,6 +1059,8 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co Output(n.Id, Field.Temperature, i, Unit.Kelvin, "gas_temperature"); Output(n.Id, Field.Mass, i, Unit.Kilogram, "gas_mass"); Output(n.Id, Field.InternalEnergy, i, Unit.Joule, "gas_internal_energy"); + if (TankHeadspaceByNode[i] >= 0) Output(n.Id, Field.Volume, i, Unit.CubicMeter, "tank_headspace_volume"); + else if (FiniteFilmByGas[n.Index] >= 0) Output(n.Id, Field.Volume, i, Unit.CubicMeter, "receiver_accessible_gas_volume"); if (NodeMixtures[i] is not null) { Output(n.Id, Field.FuelMass, i, Unit.Kilogram, "unburned_fuel_mass"); @@ -911,7 +1077,96 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co } for (int i = 0; i < Components.Length; ++i) { - var c = Components[i]; var na = Nodes[c.A]; + var c = Components[i]; + if (c.Kind is ComponentKind.FuelRestriction or ComponentKind.FuelHeatLink or ComponentKind.FuelCheckValve) + { + bool restriction = c.Kind is ComponentKind.FuelRestriction or ComponentKind.FuelCheckValve; + if (c.InputChannel != 0) channels.Add(new(c.InputChannel, c.Id, true, Unit.Fraction, "fuel_flow_opening")); + Output(c.Id, restriction ? Field.MassFlow : Field.HeatFlow, i, restriction ? Unit.KilogramPerSecond : Unit.Watt, restriction ? "last_tick_mean_fuel_mass_flow_a_to_b" : "last_tick_mean_heat_from_wall", true); + if (restriction) + { + Output(c.Id, Field.VolumeFlow, i, Unit.CubicMeterPerSecond, "last_tick_mean_donor_reference_volume_flow", true); + Output(c.Id, Field.TotalFuelDelivered, i, Unit.Kilogram, "net_fuel_mass_a_to_b", true); + } + Output(c.Id, Field.TransportEnergy, i, Unit.Joule, restriction ? "net_enthalpy_a_to_b" : "cumulative_heat_from_wall", true); + Output(c.Id, Field.EntropyProduced, i, Unit.JoulePerKelvin, "cumulative_pair_entropy_change", true); + continue; + } + if(c.Kind==ComponentKind.CompressibleFuelNozzle) + { + if(CompressibleNozzles[CompressibleNozzleByComponent[i]].Relaxing)Output(c.Id,Field.TotalVaporDelivered,i,Unit.Kilogram,"cumulative_frozen_vapor_mass_delivered",true); + if(CompressibleNozzles[CompressibleNozzleByComponent[i]].Mode==FuelDischargePhaseModel.Equilibrium)Output(c.Id,Field.FluxRelativeUncertainty,i,Unit.Fraction,"last_accepted_equilibrium_flux_relative_uncertainty",true); + Output(c.Id,Field.TotalFuelDelivered,i,Unit.Kilogram,"cumulative_forward_fuel_mass",true);Output(c.Id,Field.TransportEnergy,i,Unit.Joule,"cumulative_stagnation_enthalpy",true); + Output(c.Id,Field.JetKineticEnergy,i,Unit.Joule,"cumulative_jet_kinetic_energy",true);Output(c.Id,Field.HeatRejected,i,Unit.Joule,"jet_heat_to_finite_wall",true);Output(c.Id,Field.FluidHeat,i,Unit.Joule,"jet_kinetic_energy_to_receiver",true); + Output(c.Id,Field.JetImpulse,i,Unit.NewtonSecond,"stationary_jet_thermalization_impulse",true);Output(c.Id,Field.EntropyProduced,i,Unit.JoulePerKelvin,"total_pair_entropy_change",true); + Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_mean_forward_mass_flow",true);Output(c.Id,Field.Force,i,Unit.Newton,"last_tick_mean_jet_momentum_rate",true); + Output(c.Id,Field.ThroatPressure,i,Unit.Pascal,"last_accepted_throat_pressure",true);Output(c.Id,Field.ExitTemperature,i,Unit.Kelvin,CompressibleNozzles[CompressibleNozzleByComponent[i]].Mode==FuelDischargePhaseModel.Equilibrium?"last_accepted_equilibrium_exit_temperature":"last_accepted_frozen_exit_temperature",true);Output(c.Id,Field.ExitVelocity,i,Unit.MeterPerSecond,CompressibleNozzles[CompressibleNozzleByComponent[i]].Mode==FuelDischargePhaseModel.Equilibrium?"last_accepted_equilibrium_exit_speed":"last_accepted_frozen_exit_speed",true); + Output(c.Id,Field.Choked,i,Unit.StateCode,CompressibleNozzles[CompressibleNozzleByComponent[i]].Mode==FuelDischargePhaseModel.Equilibrium?"last_accepted_equilibrium_selected_throat_state":"last_accepted_frozen_choking_state",true);Output(c.Id,Field.VaporMassFraction,i,Unit.Fraction,CompressibleNozzles[CompressibleNozzleByComponent[i]].Mode==FuelDischargePhaseModel.Equilibrium?"last_accepted_equilibrium_exit_vapor_fraction":"last_accepted_frozen_vapor_fraction",true);Output(c.Id,Field.Opening,i,Unit.Fraction,"instantaneous_command_times_physical_needle_opening",true);continue; + } + if(c.Kind is ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct) + { + if(c.Kind==ComponentKind.RelaxingFuelDuct){Output(c.Id,Field.VaporMassAtA,i,Unit.Kilogram,"net_vapor_mass_from_reservoir_a",true);Output(c.Id,Field.VaporMassAtB,i,Unit.Kilogram,"net_vapor_mass_to_reservoir_b",true);} + Output(c.Id,Field.MassAtA,i,Unit.Kilogram,"net_mass_from_reservoir_a",true);Output(c.Id,Field.MassAtB,i,Unit.Kilogram,"net_mass_to_reservoir_b",true); + Output(c.Id,Field.EnergyAtA,i,Unit.Joule,"net_total_energy_from_reservoir_a",true);Output(c.Id,Field.EnergyAtB,i,Unit.Joule,"net_total_energy_to_reservoir_b",true); + Output(c.Id,Field.FrictionHeat,i,Unit.Joule,"duct_friction_heat",true);Output(c.Id,Field.FluidHeat,i,Unit.Joule,"friction_heat_to_fluid",true);Output(c.Id,Field.HeatRejected,i,Unit.Joule,"friction_heat_to_finite_wall",true); + Output(c.Id,Field.EntropyProduced,i,Unit.JoulePerKelvin,"duct_total_entropy_change_including_numerical_diffusion",true);Output(c.Id,Field.JetImpulse,i,Unit.NewtonSecond,"stationary_boundary_impulse",true); + Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_mean_inlet_mass_flow",true);Output(c.Id,Field.Force,i,Unit.Newton,"last_tick_mean_stationary_boundary_force",true);continue; + } + if (c.Kind == ComponentKind.FuelInertialPipe) + { + Output(c.Id, Field.VolumeFlow, i, Unit.CubicMeterPerSecond, "instantaneous_line_flow", true); + Output(c.Id, Field.MassFlow, i, Unit.KilogramPerSecond, "last_tick_mean_line_mass_flow", true); + Output(c.Id, Field.Mass, i, Unit.Kilogram, "line_liquid_inventory", true); + Output(c.Id, Field.Volume, i, Unit.CubicMeter, "rigid_line_volume", true); + Output(c.Id, Field.Temperature, i, Unit.Kelvin, "line_temperature", true); + Output(c.Id, Field.InternalEnergy, i, Unit.Joule, "line_caloric_energy", true); + Output(c.Id, Field.ChemicalEnergy, i, Unit.Joule, "line_chemical_energy", true); + Output(c.Id, Field.KineticEnergy, i, Unit.Joule, "line_kinetic_energy", true); + Output(c.Id, Field.ForwardVolume, i, Unit.CubicMeter, "gross_forward_volume", true); + Output(c.Id, Field.ReverseVolume, i, Unit.CubicMeter, "gross_reverse_volume", true); + Output(c.Id, Field.TotalFuelDelivered, i, Unit.Kilogram, "net_fuel_transfer_a_to_b", true); + Output(c.Id, Field.HydraulicWork, i, Unit.Joule, "line_pressure_work", true); + Output(c.Id, Field.FrictionHeat, i, Unit.Joule, "line_friction_heat", true); + Output(c.Id, Field.FluidHeat, i, Unit.Joule, "line_friction_heat_to_fluid", true); + Output(c.Id, Field.HeatRejected, i, Unit.Joule, "line_friction_heat_to_finite_wall", true); + Output(c.Id, Field.EnergyAtA, i, Unit.Joule, "net_port_a_energy_out", true); + Output(c.Id, Field.EnergyAtB, i, Unit.Joule, "net_port_b_energy_in", true); + Output(c.Id, Field.EntropyProduced, i, Unit.JoulePerKelvin, "line_pair_entropy_change_including_time_discretization", true); + continue; + } + if (c.Kind == ComponentKind.FuelDischarge) + { + if (c.InputChannel != 0) channels.Add(new(c.InputChannel, c.Id, true, Unit.Fraction, "nozzle_opening_multiplier")); + Output(c.Id, Field.MassFlow, i, Unit.KilogramPerSecond, "last_tick_mean_total_fuel_delivery", true); + Output(c.Id, Field.TotalFuelDelivered, i, Unit.Kilogram, "total_fuel_delivered", true); + Output(c.Id, Field.TransportEnergy, i, Unit.Joule, "stagnation_enthalpy_from_source", true); + Output(c.Id, Field.JetKineticEnergy, i, Unit.Joule, "fully_expanded_jet_kinetic_energy", true); + Output(c.Id, Field.FluidHeat, i, Unit.Joule, "jet_kinetic_heat_to_stationary_wall", true); + Output(c.Id, Field.JetImpulse, i, Unit.NewtonSecond, "jet_impulse_to_stationary_receiver_wall", true); + Output(c.Id, Field.Force, i, Unit.Newton, "last_tick_mean_jet_momentum_rate", true); + Output(c.Id, Field.ThroatPressure, i, Unit.Pascal, "last_accepted_throat_pressure", true); + Output(c.Id, Field.ExitTemperature, i, Unit.Kelvin, "last_accepted_expanded_jet_temperature", true); + Output(c.Id, Field.ExitVelocity, i, Unit.MeterPerSecond, "last_accepted_expanded_jet_speed", true); + Output(c.Id, Field.Choked, i, Unit.StateCode, "last_accepted_frozen_choking_state", true); + continue; + } + if (c.Kind == ComponentKind.CompressibleFuelChamber) + { + Output(c.Id, Field.Volume, i, Unit.CubicMeter, "chamber_actual_volume", true); + Output(c.Id, Field.Torque, i, Unit.NewtonMeter, "last_tick_mean_compressible_pressure_torque", true); + Output(c.Id, Field.HydraulicPower, i, Unit.Watt, "last_tick_mean_shaft_to_compressible_fuel_power", true); + Output(c.Id, Field.HydraulicWork, i, Unit.Joule, "net_shaft_to_compressible_fuel_work", true); + continue; + } + if (c.Kind == ComponentKind.FuelChamber) + { + Output(c.Id, Field.Volume, i, Unit.CubicMeter, "chamber_geometric_reference_volume", true); + Output(c.Id, Field.Torque, i, Unit.NewtonMeter, "last_tick_mean_fuel_pressure_torque_at_shaft", true); + Output(c.Id, Field.HydraulicPower, i, Unit.Watt, "last_tick_mean_shaft_to_fuel_work_rate", true); + Output(c.Id, Field.HydraulicWork, i, Unit.Joule, "net_shaft_to_fuel_and_elastic_work", true); + continue; + } + var na = Nodes[c.A]; int a = na.Index, b = c.B < 0 ? -1 : Nodes[c.B].Index; if (c.Kind is ComponentKind.Shaft or ComponentKind.LinearSpring) { @@ -934,6 +1189,68 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co Output(c.Id, c.Kind == ComponentKind.Shaft ? Field.Torque : Field.Force, i, c.Kind == ComponentKind.Shaft ? Unit.NewtonMeter : Unit.Newton, c.Kind == ComponentKind.Shaft ? "reaction_torque_at_a" : "reaction_force_at_a", true); if (c.Kind == ComponentKind.LinearSpring) Output(c.Id, Field.FrictionHeat, i, Unit.Joule, "cumulative_damping_heat", true); } + else if(c.Kind==ComponentKind.LiquidRailReturn) + { + Output(c.Id,Field.TotalFuelDelivered,i,Unit.Kilogram,"net_liquid_fuel_returned",true); + Output(c.Id,Field.ReservoirEnthalpy,i,Unit.Joule,"net_returned_caloric_energy",true); + Output(c.Id,Field.FuelEnergyIn,i,Unit.Joule,"net_returned_chemical_energy",true); + Output(c.Id,Field.FluidHeat,i,Unit.Joule,"returned_fluid_heat",true); + Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_mean_liquid_return_flow",true); + } + else if(c.Kind==ComponentKind.LiquidFuelTank) + { + Output(c.Id,Field.Mass,i,Unit.Kilogram,"tank_liquid_mass",true); + Output(c.Id,Field.Volume,i,Unit.CubicMeter,"tank_liquid_volume",true); + Output(c.Id,Field.Temperature,i,Unit.Kelvin,"tank_liquid_temperature",true); + Output(c.Id,Field.InternalEnergy,i,Unit.Joule,"tank_caloric_energy",true); + Output(c.Id,Field.ChemicalEnergy,i,Unit.Joule,"tank_chemical_energy",true); + Output(c.Id,Field.TankState,i,Unit.StateCode,"tank_state_wet_zero_empty_one",true); + if (HeadspaceByTank[TankByComponent[i]] >= 0 && TankHeadspaces[HeadspaceByTank[TankByComponent[i]]].Equilibrium is not null) + { + Output(c.Id, Field.EvaporatedFuelMass, i, Unit.Kilogram, "tank_total_net_evaporated_mass", true); + Output(c.Id, Field.CondensedFuelMass, i, Unit.Kilogram, "tank_total_net_condensed_mass", true); + Output(c.Id, Field.MassFlow, i, Unit.KilogramPerSecond, "tank_last_tick_net_phase_flow", true); + Output(c.Id, Field.VaporPartialPressure, i, Unit.Pascal, "tank_fuel_vapor_partial_pressure", true); + } + if (FuelFilms[LiquidFuelInjectors[LiquidTanks[TankByComponent[i]].Injector].Film].Phase is not null) + { + Output(c.Id, Field.SaturationPressure, i, Unit.Pascal, "liquid_saturation_pressure", true); + Output(c.Id, Field.CavitationMargin, i, Unit.Pascal, "liquid_inlet_pressure_minus_saturation", true); + if (HeadspaceByTank[TankByComponent[i]] < 0) Output(c.Id, Field.Pressure, i, Unit.Pascal, "liquid_inlet_absolute_pressure", true); + } + if (HeadspaceByTank[TankByComponent[i]] >= 0) + { + Output(c.Id, Field.Pressure, i, Unit.Pascal, "tank_headspace_absolute_pressure", true); + Output(c.Id, Field.HydraulicWork, i, Unit.Joule, TankHeadspaces[HeadspaceByTank[TankByComponent[i]]].Equilibrium is null ? "headspace_pressure_work_to_liquid" : "headspace_pump_displacement_work", true); + Output(c.Id, Field.FillFraction, i, Unit.Fraction, "tank_liquid_fill_fraction", true); + } + } + else if(c.Kind==ComponentKind.LiquidRailFeed) + { + Output(c.Id,Field.TotalFuelDelivered,i,Unit.Kilogram,"net_boundary_liquid_mass_supplied",true); + Output(c.Id,Field.ReservoirEnthalpy,i,Unit.Joule,"net_boundary_caloric_energy",true); + Output(c.Id,Field.FuelEnergyIn,i,Unit.Joule,"net_boundary_chemical_energy",true); + Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_mean_liquid_supply_flow",true); + if (FuelFilms[LiquidFuelInjectors[LiquidFeeds[FeedByComponent[i]].Injector].Film].Phase is not null) + { + Output(c.Id, Field.Pressure, i, Unit.Pascal, "liquid_inlet_absolute_pressure", true); + Output(c.Id, Field.SaturationPressure, i, Unit.Pascal, "liquid_saturation_pressure", true); + Output(c.Id, Field.CavitationMargin, i, Unit.Pascal, "liquid_inlet_pressure_minus_saturation", true); + } + } + else if (c.Kind == ComponentKind.HydraulicAtController) + { + channels.Add(new(c.InputChannel,c.Id,true,Unit.StateCode,"requested_gear")); + Output(c.Id,Field.RequestedGear,i,Unit.StateCode,"live_requested_range",true); + Output(c.Id,Field.ActualGear,i,Unit.StateCode,"confirmed_active_range",true); + Output(c.Id,Field.ShiftPhase,i,Unit.StateCode,"at_shift_phase",true); + Output(c.Id,Field.SyncError,i,Unit.RadianPerSecond,"maximum_required_clutch_slip",true); + Output(c.Id,Field.ControlFault,i,Unit.StateCode,"at_control_fault",true); + Output(c.Id,Field.SampledPressure,i,Unit.Pascal,"sampled_line_pressure",true); + Output(c.Id,Field.LockupState,i,Unit.StateCode,"physical_lockup_phase",true); + for (int route=0;route= 0) { HeatConductance[a, b] -= c.P0; HeatConductance[b, a] -= c.P0; HeatConductance[b, b] += c.P0; } } } - else if (c.Kind == ComponentKind.FuelFilm) + else if (c.Kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm) { Output(c.Id,Field.Mass,i,Unit.Kilogram,"remaining_liquid_fuel",true);Output(c.Id,Field.Temperature,i,Unit.Kelvin,"film_temperature",true); Output(c.Id,Field.InternalEnergy,i,Unit.Joule,"liquid_phase_thermal_energy",true);Output(c.Id,Field.ChemicalEnergy,i,Unit.Joule,"liquid_chemical_energy",true); - Output(c.Id,Field.EvaporatedFuelMass,i,Unit.Kilogram,"total_evaporated_fuel",true);Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,"last_tick_mean_vaporized_fuel_flow",true); + Output(c.Id,Field.EvaporatedFuelMass,i,Unit.Kilogram,"total_evaporated_fuel",true);Output(c.Id,Field.MassFlow,i,Unit.KilogramPerSecond,FuelFilms[FilmByComponent[i]].Phase is null ? "last_tick_mean_vaporized_fuel_flow" : "last_tick_mean_net_evaporated_fuel_flow",true); Output(c.Id,Field.FilmWallHeat,i,Unit.Joule,"heat_from_wall",true);Output(c.Id,Field.HeatFlow,i,Unit.Watt,"instantaneous_wall_heat_draw",true); + if (FuelFilms[FilmByComponent[i]].FiniteVolume is not null) + Output(c.Id, Field.Volume, i, Unit.CubicMeter, "receiver_liquid_displacement_volume", true); + if (FuelFilms[FilmByComponent[i]].Phase is not null) + { + Output(c.Id, Field.CondensedFuelMass, i, Unit.Kilogram, "total_condensed_fuel", true); + Output(c.Id, Field.VaporPartialPressure, i, Unit.Pascal, "fuel_vapor_partial_pressure", true); + } } else if (c.Kind == ComponentKind.LiquidFuelInjector) { channels.Add(new(c.InputChannel, c.Id, true, Unit.Kilogram, "liquid_fuel_dose_per_cycle")); Output(c.Id, Field.Mass, i, Unit.Kilogram, "remaining_rail_liquid", true); Output(c.Id, Field.Pressure, i, Unit.Pascal, "liquid_rail_pressure", true); + if (FuelFilms[LiquidFuelInjectors[LiquidInjectorByComponent[i]].Film].Phase is not null) + { + Output(c.Id, Field.SaturationPressure, i, Unit.Pascal, "liquid_saturation_pressure", true); + Output(c.Id, Field.CavitationMargin, i, Unit.Pascal, "rail_pressure_minus_saturation", true); + } Output(c.Id, Field.Temperature, i, Unit.Kelvin, "liquid_supply_temperature", true); Output(c.Id, Field.InternalEnergy, i, Unit.Joule, "liquid_rail_thermal_and_pressure_energy", true); Output(c.Id, Field.ChemicalEnergy, i, Unit.Joule, "liquid_rail_chemical_energy", true); @@ -1157,12 +1486,13 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co matrix[row, col] = (row == col ? 1 : 0) - 0.5 * Dt * matrix[row, col]; foreach (Field field in new[] { Field.SourceWork, Field.HeatRejected, Field.StoredEnergyChange, Field.EnergyResidual }) Output(0, field, -1, Unit.Joule, field.ToString()); - if (gas > 0) + if (gas > 0 || HasEquilibriumFuelNetwork || CompressibleFuels.Length != 0) { Output(0, Field.ReservoirEnthalpy, -1, Unit.Joule, "reservoir_enthalpy"); Output(0, Field.MassResidual, -1, Unit.Kilogram, "mass_residual"); } - if (HasPremixedGas) + if(HasRelaxingFuel)Output(0,Field.VaporMassResidual,-1,Unit.Kilogram,"relaxing_fuel_vapor_mass_balance"); + if (HasPremixedGas || HasEquilibriumFuelNetwork || CompressibleFuels.Length != 0) { Output(0, Field.ChemicalEnergy, -1, Unit.Joule, "chemical_energy"); Output(0, Field.FuelEnergyIn, -1, Unit.Joule, "net_fuel_energy_in"); @@ -1181,7 +1511,7 @@ void Output(uint id, Field field, int index, Unit unit, string quantity, bool co 0, "forcing", "Compiled force overflows binary64."); Dynamics = new(matrix); Thermal = new(heatMatrix); if (HasGears) Gears = new(this); - if (Cylinders.Any(c => c is not null) || GasCylinders.Any(c => c is not null)) CylinderCoupling = new(this); + if (Cylinders.Any(c => c is not null) || GasCylinders.Any(c => c is not null) || HasFuelChambers || HasCompressibleFuelChambers) CylinderCoupling = new(this); if (HasConverters || HasCoupledHydraulics || HasGasPistons || HasSolenoids || HasTravelStops) ConverterCoupling = new(this); if (GasCount > 0) Gas = new(this); Fingerprint = ComputeFingerprint(); @@ -1193,6 +1523,17 @@ private ulong ComputeFingerprint() ulong h = Numeric.Hash(14695981039346656037UL, 1UL); h = Numeric.Hash(h, CylinderCoupling is null ? 2UL : 3UL); // Preserve existing linear asset fingerprints. if (GasCount > 0) h = Numeric.Hash(h, 4UL); + if (HasEquilibriumFuelNetwork) h = Numeric.Hash(h, 36UL); + if (HasFuelChambers || Components.Any(c => c.Kind == ComponentKind.FuelCheckValve)) h = Numeric.Hash(h, 37UL); + if (HasFiniteFuelReceivers) h = Numeric.Hash(h, 38UL); + if (HasFuelDischarge) h = Numeric.Hash(h, 39UL); + if (HasFuelPipes) h = Numeric.Hash(h, 40UL); + if (CompressibleFuels.Length != 0) h = Numeric.Hash(h, 41UL); + if (HasCompressibleFuelChambers) h = Numeric.Hash(h, 42UL); + if (HasCompressibleFuelNozzles) h = Numeric.Hash(h, 43UL); + if (HasEquilibriumFuelNozzles) h = Numeric.Hash(h, 44UL); + if (HasRelaxingFuel) h = Numeric.Hash(h, 45UL); + if (HasRelaxingFuelBoundaries) h = Numeric.Hash(h, 46UL); if (HasMovingGas) h = Numeric.Hash(h, 5UL); if (HasValveTiming) h = Numeric.Hash(h, 6UL); if (HasPremixedGas) h = Numeric.Hash(h, 7UL); @@ -1214,6 +1555,13 @@ private ulong ComputeFingerprint() if (HasNeedleInjectors) h = Numeric.Hash(h, 23UL); if (NeedleDrivers.Length != 0) h = Numeric.Hash(h, 24UL); if (HasClosurePrediction) h = Numeric.Hash(h, 25UL); + if (HasLiquidFeeds) h = Numeric.Hash(h,30UL); + if (HasLiquidTanks) h = Numeric.Hash(h,31UL); + if (HasTankHeadspaces) h = Numeric.Hash(h, 33UL); + if (HasEquilibriumFuelFilms) h = Numeric.Hash(h, 34UL); + if (HasEquilibriumTanks) h = Numeric.Hash(h, 35UL); + if (HasLiquidReturns) h = Numeric.Hash(h,32UL); + if (AtControllers.Length != 0) h = Numeric.Hash(h, 29UL); if (DctControllers.Length != 0) h = Numeric.Hash(h, 26UL); if (Components.Any(c => c.Kind == ComponentKind.CarrierGear)) h = Numeric.Hash(h, 28UL); if (Components.Any(c => c.Kind == ComponentKind.DoublePinionPlanetaryGear)) h = Numeric.Hash(h, 27UL); @@ -1243,6 +1591,10 @@ private ulong ComputeFingerprint() if (cylinder is not null) foreach (double parameter in cylinder.Parameters) h = Numeric.Hash(h, parameter); foreach(var film in FuelFilms){h=Numeric.Hash(h,film.InitialMass);h=Numeric.Hash(h,film.Initial.ThermalEnergyJoules);h=Numeric.Hash(h,film.Law.LiquidSpecificHeatJoulesPerKilogramKelvin);h=Numeric.Hash(h,film.Law.SaturationTemperatureKelvin);h=Numeric.Hash(h,film.Law.LatentInternalEnergyJoulesPerKilogram);} + foreach (var film in FuelFilms) if (film.FiniteVolume is { } finite) + { h = Numeric.Hash(h, (ulong)Components[film.Component].Id); h = Numeric.Hash(h, finite.DensityKilogramsPerCubicMeter); } + foreach (var film in FuelFilms) if (film.Phase is { } phase) + { h=Numeric.Hash(h,(ulong)Components[film.Component].Id);h=Numeric.Hash(h,phase.ReferencePressurePascals);h=Numeric.Hash(h,phase.MinimumTemperatureKelvin);h=Numeric.Hash(h,phase.MaximumTemperatureKelvin); } foreach (var injector in LiquidFuelInjectors) { h = Numeric.Hash(h, (ulong)Components[FuelFilms[injector.Film].Component].Id); @@ -1271,6 +1623,58 @@ private ulong ComputeFingerprint() h = Numeric.Hash(h, controller.Period); h = Numeric.Hash(h, controller.Release); h = Numeric.Hash(h, controller.Engage); h = Numeric.Hash(h, controller.Timeout); h = Numeric.Hash(h, controller.Tolerance); h = Numeric.Hash(h, controller.DirectionLimit); } + foreach(var f in CompressibleFuels)if(f.Relaxation is {} law){h=Numeric.Hash(h,law.RelaxationTimeNanoseconds);h=Numeric.Hash(h,f.Initial.VaporMassFraction);} + foreach (var f in CompressibleFuels) + { + var law=f.Law;var m=law.Material;h=Numeric.Hash(h,law.ReferenceLiquidDensityKilogramsPerCubicMeter);h=Numeric.Hash(h,law.LiquidBulkModulusPascals);h=Numeric.Hash(h,law.MaximumPressurePascals); + h=Numeric.Hash(h,m.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin);h=Numeric.Hash(h,m.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin);h=Numeric.Hash(h,m.Caloric.SaturationTemperatureKelvin);h=Numeric.Hash(h,m.Caloric.LatentInternalEnergyJoulesPerKilogram); + h=Numeric.Hash(h,m.GasConstantJoulesPerKilogramKelvin);h=Numeric.Hash(h,m.ReferencePressurePascals);h=Numeric.Hash(h,m.MinimumTemperatureKelvin);h=Numeric.Hash(h,m.MaximumTemperatureKelvin);h=Numeric.Hash(h,f.HeatingValue);h=Numeric.Hash(h,f.Velocity); + } + foreach(var d in FuelDucts){foreach(int port in d.Ports)h=Numeric.Hash(h,(ulong)Nodes[CompressibleFuels[port].Node].Id);h=Numeric.Hash(h,d.Area);h=Numeric.Hash(h,d.Linear);h=Numeric.Hash(h,d.Quadratic);h=Numeric.Hash(h,d.FluidFraction);} + foreach (var pipe in FuelPipes) + { + h = Numeric.Hash(h, pipe.Length); h = Numeric.Hash(h, pipe.Area); h = Numeric.Hash(h, pipe.Linear); h = Numeric.Hash(h, pipe.Quadratic); + h = Numeric.Hash(h, pipe.FluidFraction); h = Numeric.Hash(h, pipe.InitialFlow); h = Numeric.Hash(h, pipe.InitialTemperature); + } + foreach (var discharge in FuelDischarges) + { + h = Numeric.Hash(h, (ulong)Components[FuelFilms[discharge.Film].Component].Id); h = Numeric.Hash(h, discharge.WallFraction); + if (discharge.Needle is { } needle) + { h = Numeric.Hash(h, (ulong)needle.Position); h = Numeric.Hash(h, needle.Closed); h = Numeric.Hash(h, needle.Open); } + } + foreach (var n in CompressibleNozzles) + {h=Numeric.Hash(h,n.Law.AreaSquareMeters);h=Numeric.Hash(h,n.Law.DischargeCoefficient);h=Numeric.Hash(h,n.WallFraction);h=Numeric.Hash(h,(ulong)n.Mode);if(n.Needle is {} needle){h=Numeric.Hash(h,(ulong)needle.Position);h=Numeric.Hash(h,needle.Closed);h=Numeric.Hash(h,needle.Open);}} + foreach (var chamber in CompressibleChambers) + { h = Numeric.Hash(h, chamber.Geometry.MinimumReferenceVolumeCubicMeters); h = Numeric.Hash(h, chamber.Geometry.SweptVolumeCubicMeters); h = Numeric.Hash(h, chamber.Geometry.PhaseRadians); } + foreach (var chamber in FuelChambers) + { + h = Numeric.Hash(h, chamber.Geometry.MinimumReferenceVolumeCubicMeters); h = Numeric.Hash(h, chamber.Geometry.SweptVolumeCubicMeters); + h = Numeric.Hash(h, chamber.Geometry.PhaseRadians); + } + foreach (var volume in FuelVolumes) + { + var law = volume.Law; var material = law.Material; var caloric = material.Caloric; + foreach (double value in new[] { law.ComplianceCubicMetersPerPascal, law.LiquidDensityKilogramsPerCubicMeter, law.MaximumPressurePascals, + material.GasConstantJoulesPerKilogramKelvin, caloric.VaporSpecificHeatJoulesPerKilogramKelvin, caloric.LiquidSpecificHeatJoulesPerKilogramKelvin, + caloric.SaturationTemperatureKelvin, caloric.LatentInternalEnergyJoulesPerKilogram, material.ReferencePressurePascals, + material.MinimumTemperatureKelvin, material.MaximumTemperatureKelvin, volume.HeatingValue }) h = Numeric.Hash(h, value); + } + foreach(var feed in LiquidFeeds) { h=Numeric.Hash(h,(ulong)Components[LiquidFuelInjectors[feed.Injector].Component].Id);h=Numeric.Hash(h,(ulong)Components[feed.Pump].Id);h=Numeric.Hash(h,feed.SourceTemperature); } + foreach(var route in LiquidReturns) {h=Numeric.Hash(h,(ulong)Components[LiquidFeeds[route.Feed].Component].Id);h=Numeric.Hash(h,(ulong)Components[route.Valve].Id);h=Numeric.Hash(h,route.HeatFraction);} + foreach(var tank in LiquidTanks) { h=Numeric.Hash(h,(ulong)Components[LiquidFuelInjectors[tank.Injector].Component].Id);h=Numeric.Hash(h,tank.InitialMass);h=Numeric.Hash(h,tank.InitialTemperature); } + foreach (var headspace in TankHeadspaces) + { h = Numeric.Hash(h, (ulong)Components[LiquidTanks[headspace.Tank].Component].Id); h = Numeric.Hash(h, (ulong)Nodes[Gas!.NodeIndex[headspace.Gas]].Id); h = Numeric.Hash(h, headspace.Geometry.CapacityCubicMeters); } + foreach (var head in TankHeadspaces) if (head.Equilibrium is not null) h=Numeric.Hash(h,(ulong)Components[LiquidTanks[head.Tank].Component].Id); + foreach(var feed in LiquidFeeds) if(feed.Tank>=0)h=Numeric.Hash(h,(ulong)Components[LiquidTanks[feed.Tank].Component].Id); + foreach (var at in AtControllers) + { + h = Numeric.Hash(h,(ulong)Nodes.First(n=>n.Index==at.Vehicle&&n.Domain==Domain.Rotational).Id); + h = Numeric.Hash(h,(ulong)Nodes.First(n=>n.Index==at.Supply&&n.Domain==Domain.Hydraulic).Id); + foreach (var route in at.Routes) { h=Numeric.Hash(h,(ulong)Components[route.Clutch].Id); h=Numeric.Hash(h,(ulong)Components[route.Fill].Id); h=Numeric.Hash(h,(ulong)Components[route.Drain].Id); } + foreach (ulong time in new[]{at.Period,at.ReleaseTimeout,at.ApplyTimeout,at.SupplyTimeout,at.LockupDwell}) h=Numeric.Hash(h,time); + foreach (double value in new[]{at.ApplyPressure,at.PressureTolerance,at.MinimumSupply,at.ReleaseForce,at.ApplyForce,at.Kp,at.Ki,at.SyncTolerance,at.DirectionLimit,at.LockupLimit,at.UnlockLimit,at.LockupMinimumSpeed}) h=Numeric.Hash(h,value); + h=Numeric.Hash(h,(ulong)at.LockupMinimumRange); + } foreach (var injector in FuelInjectors) { h = Numeric.Hash(h, (ulong)Nodes.First(n => n.Index == injector.Crank && n.Domain == Domain.Rotational).Id); h = Numeric.Hash(h, injector.Profile.CycleAngleRadians); h = Numeric.Hash(h, injector.Profile.StartAngleRadians); h = Numeric.Hash(h, injector.Profile.DurationAngleRadians); h = Numeric.Hash(h, injector.Profile.MaximumDoseKilograms); } foreach (var piston in GasPistons) if (piston is not null) diff --git a/src/Power.Core/CompliantFuelVolume.cs b/src/Power.Core/CompliantFuelVolume.cs new file mode 100644 index 0000000..89d4f81 --- /dev/null +++ b/src/Power.Core/CompliantFuelVolume.cs @@ -0,0 +1,280 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public enum FuelVolumeStatus +{ + Success, + InvalidInput, + TemperatureOutOfRange, + MassOutOfRange, + EnergyOutOfRange, + NoConvergence, + EntropyOutOfRange +} + +public enum FuelVolumePhase { Liquid, LiquidVapor, Vapor } + +public readonly record struct FuelCoexistencePoint(double TemperatureKelvin, double PressurePascals, + double LiquidSpecificVolumeCubicMetersPerKilogram, double VaporSpecificVolumeCubicMetersPerKilogram, + double LatentEnthalpyJoulesPerKilogram, double PressureDerivativePascalsPerKelvin); + +public readonly record struct CompliantFuelPoint(double MassKilograms, double TemperatureKelvin, + double PressurePascals, double VolumeCubicMeters, double LiquidMassKilograms, double VaporMassKilograms, + double VaporVolumeCubicMeters, double FluidInternalEnergyJoules, double ElasticEnergyJoules, + double StoredEnergyJoules, double SpecificEnthalpyJoulesPerKilogram, double EntropyJoulesPerKelvin, + double HeatCapacityJoulesPerKelvin, double CaloricResidualJoules, FuelVolumePhase Phase) +{ + public double VaporMassFraction => VaporMassKilograms / MassKilograms; + public double VaporVolumeFraction => VaporVolumeCubicMeters / VolumeCubicMeters; +} + +public readonly record struct CompliantFuelHeatTransfer(CompliantFuelPoint Fluid, + double WallTemperatureKelvin, double HeatFromWallJoules, double EntropyChangeJoulesPerKelvin, + double EnergyResidualJoules); + +/// +/// Pure fuel in thermal and phase equilibrium inside an elastic vessel with V = V0 + C p. +/// Liquid is incompressible, vapor is ideal, and the massless elastic wall stores C p² / 2. +/// This local constitutive reference has no pump, nozzle, transport or simulation clock. +/// +public sealed partial class CompliantFuelVolume +{ + public FuelPhaseEquilibrium Material { get; } + public double ReferenceVolumeCubicMeters { get; } + public double ComplianceCubicMetersPerPascal { get; } + public double LiquidDensityKilogramsPerCubicMeter { get; } + public double MaximumPressurePascals { get; } + public double MaximumMassKilograms { get; } + private readonly double _minimumCoexistencePressure; + + public CompliantFuelVolume(FuelPhaseEquilibrium material, double referenceVolumeCubicMeters, + double complianceCubicMetersPerPascal, double liquidDensityKilogramsPerCubicMeter, + double maximumPressurePascals) + { + Material = material ?? throw new ArgumentNullException(nameof(material)); + if (!Numeric.Finite(referenceVolumeCubicMeters) || referenceVolumeCubicMeters <= 0) + throw new ArgumentOutOfRangeException(nameof(referenceVolumeCubicMeters), "Use positive finite reference volume."); + if (!Numeric.Finite(complianceCubicMetersPerPascal) || complianceCubicMetersPerPascal <= 0) + throw new ArgumentOutOfRangeException(nameof(complianceCubicMetersPerPascal), "Use positive finite wall compliance."); + if (!Numeric.Finite(liquidDensityKilogramsPerCubicMeter) || liquidDensityKilogramsPerCubicMeter <= 0) + throw new ArgumentOutOfRangeException(nameof(liquidDensityKilogramsPerCubicMeter), "Use positive finite liquid density."); + double r = material.GasConstantJoulesPerKilogramKelvin; + if (!Numeric.Finite(maximumPressurePascals) || maximumPressurePascals <= 0 || + maximumPressurePascals / liquidDensityKilogramsPerCubicMeter / r / material.MinimumTemperatureKelvin >= 1 - 64 * GearReference.Epsilon) + throw new ArgumentOutOfRangeException(nameof(maximumPressurePascals), "Declare a positive wall pressure limit below rho_l R T_min; the vapor density stays below liquid density."); + ReferenceVolumeCubicMeters = referenceVolumeCubicMeters; + ComplianceCubicMetersPerPascal = complianceCubicMetersPerPascal; + LiquidDensityKilogramsPerCubicMeter = liquidDensityKilogramsPerCubicMeter; + MaximumPressurePascals = maximumPressurePascals; + MaximumMassKilograms = liquidDensityKilogramsPerCubicMeter * (referenceVolumeCubicMeters + complianceCubicMetersPerPascal * maximumPressurePascals); + if (!Numeric.Finite(MaximumMassKilograms) || MaximumMassKilograms <= 0 || + !Numeric.Finite(.5 * (complianceCubicMetersPerPascal * maximumPressurePascals) * maximumPressurePascals) || + Saturation(material.MinimumTemperatureKelvin, out var minimum) != FuelVolumeStatus.Success || + Saturation(material.MaximumTemperatureKelvin, out var maximum) != FuelVolumeStatus.Success || maximum.PressurePascals > maximumPressurePascals || + !Numeric.Finite(material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin + r) || + (referenceVolumeCubicMeters + complianceCubicMetersPerPascal * minimum.PressurePascals) - referenceVolumeCubicMeters < 128 * GearReference.Epsilon * referenceVolumeCubicMeters) + throw new ArgumentException("Use representable vessel/material scales and a pressure limit covering the low-density saturation curve over the complete temperature interval."); + _minimumCoexistencePressure = minimum.PressurePascals; + if (Evaluate(material.MinimumTemperatureKelvin, MaximumMassKilograms, out var cold) != FuelVolumeStatus.Success || + Evaluate(material.MaximumTemperatureKelvin, MaximumMassKilograms, out var hot) != FuelVolumeStatus.Success || + !Numeric.Finite(hot.StoredEnergyJoules - cold.StoredEnergyJoules)) + throw new ArgumentException("Vessel and material energy/entropy scales must be representable over the declared mass and temperature interval."); + } + + /// Pure-fluid coexistence with equal pressure and chemical potential, including liquid p/rho. + public FuelVolumeStatus Saturation(double temperatureKelvin, out FuelCoexistencePoint point) + { + point = default; + if (!Numeric.Finite(temperatureKelvin)) return FuelVolumeStatus.InvalidInput; + if (!Material.TrySaturationPressure(temperatureKelvin, out double reference)) return FuelVolumeStatus.TemperatureOutOfRange; + double r = Material.GasConstantJoulesPerKilogramKelvin, density = LiquidDensityKilogramsPerCubicMeter; + // alpha = p/(rho R T). ln(alpha) - alpha = ln(p0/(rho R T)). + // Select vapor density below liquid density; the dense-vapor root is outside this model. + double logRatio = Math.Log(reference) - Math.Log(density) - Math.Log(r) - Math.Log(temperatureKelvin); + if (!Numeric.Finite(logRatio) || logRatio >= -1) return FuelVolumeStatus.NoConvergence; + double lo = logRatio, hi = 0, z = lo; + bool converged = false; + for (int iteration = 0; iteration < 64; ++iteration) + { + double alpha = Math.Exp(z), residual = z - alpha - logRatio, correction = residual / (1 - alpha); + if (!Numeric.Finite(correction)) return FuelVolumeStatus.NoConvergence; + if (Math.Abs(correction) <= 16 * GearReference.Epsilon * Math.Max(1, Math.Abs(z))) { converged = true; break; } + if (residual > 0) hi = z; else lo = z; + double next = z - correction; + z = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return FuelVolumeStatus.NoConvergence; + double pressure = reference * Math.Exp(Math.Exp(z)); + double ratio = pressure / density / r / temperatureKelvin; + double vaporVolume = r * temperatureKelvin / pressure; + double enthalpy = Material.LatentInternalEnergy(temperatureKelvin) + r * temperatureKelvin - pressure / density; + double derivative = enthalpy / temperatureKelvin / (vaporVolume - 1 / density); + if (!GearReference.Finite(pressure, vaporVolume, enthalpy, derivative) || pressure <= 0 || enthalpy <= 0 || derivative <= 0 || ratio >= 1 - 64 * GearReference.Epsilon) + return FuelVolumeStatus.NoConvergence; + point = new(temperatureKelvin, pressure, 1 / density, vaporVolume, enthalpy, derivative); + return FuelVolumeStatus.Success; + } + + /// Equilibrium at declared total mass and temperature, including elastic wall energy. + public FuelVolumeStatus Evaluate(double temperatureKelvin, double massKilograms, out CompliantFuelPoint point) => + EvaluateAtReferenceVolume(temperatureKelvin, massKilograms, ReferenceVolumeCubicMeters, out point); + + /// Evaluate the same immutable material and compliance at an explicit geometric reference volume. + public FuelVolumeStatus EvaluateAtReferenceVolume(double temperatureKelvin, double massKilograms, double referenceVolumeCubicMeters, out CompliantFuelPoint point) + { + point = default; + if (!ReferenceVolumeValid(referenceVolumeCubicMeters)) return FuelVolumeStatus.InvalidInput; + double maximumMass = referenceVolumeCubicMeters == ReferenceVolumeCubicMeters ? MaximumMassKilograms : + LiquidDensityKilogramsPerCubicMeter * (referenceVolumeCubicMeters + ComplianceCubicMetersPerPascal * MaximumPressurePascals); + if (!Numeric.Finite(maximumMass)) return FuelVolumeStatus.InvalidInput; + if (!Numeric.Finite(massKilograms) || !Numeric.Finite(temperatureKelvin)) return FuelVolumeStatus.InvalidInput; + if (massKilograms <= 0 || massKilograms > maximumMass) return FuelVolumeStatus.MassOutOfRange; + var status = Saturation(temperatureKelvin, out var saturation); + if (status != FuelVolumeStatus.Success) return status; + double density = LiquidDensityKilogramsPerCubicMeter, r = Material.GasConstantJoulesPerKilogramKelvin; + double cv = Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double a = Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram, compliance = ComplianceCubicMetersPerPascal; + double volume = referenceVolumeCubicMeters + compliance * saturation.PressurePascals; + double liquidLimit = density * volume, vaporLimit = volume / saturation.VaporSpecificVolumeCubicMetersPerKilogram; + double pressure, vapor, capacity; + FuelVolumePhase phase; + if (massKilograms >= liquidLimit) + { + phase = FuelVolumePhase.Liquid; vapor = 0; + // The declared upper mass is formed from the declared upper pressure. + // Retain that endpoint when tiny wall compliance makes the inverse ill-conditioned. + pressure = massKilograms == maximumMass ? MaximumPressurePascals : + (massKilograms / density - referenceVolumeCubicMeters) / compliance; + capacity = massKilograms * cl; + } + else if (massKilograms <= vaporLimit) + { + phase = FuelVolumePhase.Vapor; vapor = massKilograms; + double idealPressure = massKilograms / referenceVolumeCubicMeters * r * temperatureKelvin; + double ratio = compliance / referenceVolumeCubicMeters * idealPressure; + pressure = idealPressure / (.5 + Math.Sqrt(.25 + ratio)); + double pressureSlope = massKilograms * r / (referenceVolumeCubicMeters + 2 * compliance * pressure); + capacity = massKilograms * cv + compliance * pressure * pressureSlope; + } + else + { + phase = FuelVolumePhase.LiquidVapor; pressure = saturation.PressurePascals; + double deltaVolume = saturation.VaporSpecificVolumeCubicMetersPerKilogram - 1 / density; + vapor = (volume - massKilograms / density) / deltaVolume; + double vaporVolumeSlope = r / pressure - saturation.VaporSpecificVolumeCubicMetersPerKilogram * saturation.PressureDerivativePascalsPerKelvin / pressure; + double vaporSlope = (compliance * saturation.PressureDerivativePascalsPerKelvin - vapor * vaporVolumeSlope) / deltaVolume; + capacity = (massKilograms - vapor) * cl + vapor * cv + vaporSlope * Material.LatentInternalEnergy(temperatureKelvin) + + compliance * pressure * saturation.PressureDerivativePascalsPerKelvin; + } + volume = referenceVolumeCubicMeters + compliance * pressure; + double liquid = massKilograms - vapor, gasVolume = vapor == 0 ? 0 : vapor * r * temperatureKelvin / pressure; + double liquidEnergy = cl * temperatureKelvin + a, vaporEnergy = cv * temperatureKelvin; + double fluidEnergy = liquid * liquidEnergy + vapor * vaporEnergy; + double elastic = .5 * (compliance * pressure) * pressure, stored = fluidEnergy + elastic; + double enthalpy = (liquid * (liquidEnergy + pressure / density) + vapor * (vaporEnergy + r * temperatureKelvin)) / massKilograms; + double logTemperature = Numeric.Log1p((temperatureKelvin - Material.Caloric.SaturationTemperatureKelvin) / Material.Caloric.SaturationTemperatureKelvin); + double liquidEntropy = cl * logTemperature; + double vaporEntropy = vapor == 0 ? 0 : (cv + r) * logTemperature - r * Math.Log(pressure / Material.ReferencePressurePascals) + + Material.Caloric.LatentInternalEnergyJoulesPerKilogram / Material.Caloric.SaturationTemperatureKelvin + r; + double entropy = liquid * liquidEntropy + vapor * vaporEntropy; + if (!GearReference.Finite(pressure, volume, vapor, liquid) || !GearReference.Finite(fluidEnergy, elastic, stored, capacity) || + !GearReference.Finite(enthalpy, entropy, gasVolume, 0) || pressure <= 0 || pressure > MaximumPressurePascals * (1 + 64 * GearReference.Epsilon) || + vapor < 0 || liquid < 0 || volume <= 0 || capacity <= 0) return FuelVolumeStatus.NoConvergence; + point = new(massKilograms, temperatureKelvin, pressure, volume, liquid, vapor, gasVolume, fluidEnergy, elastic, stored, enthalpy, entropy, capacity, 0, phase); + return FuelVolumeStatus.Success; + } + + /// Fixed total mass and fluid-plus-wall energy flash. No energy or mass boundary is inferred. + public FuelVolumeStatus Flash(double massKilograms, double storedEnergyJoules, out CompliantFuelPoint point) => + FlashAtReferenceVolume(massKilograms, storedEnergyJoules, ReferenceVolumeCubicMeters, out point); + + public FuelVolumeStatus FlashAtReferenceVolume(double massKilograms, double storedEnergyJoules, double referenceVolumeCubicMeters, out CompliantFuelPoint point) + { + point = default; + if (!Numeric.Finite(storedEnergyJoules)) return FuelVolumeStatus.InvalidInput; + var status = Solve(massKilograms, storedEnergyJoules, 0, out var result, referenceVolumeCubicMeters); + return status == FuelVolumeStatus.Success ? RetainEnergy(result, storedEnergyJoules, out point) : status; + } + + /// Finite-bath heat exchange by backward Euler; phase change and wall elasticity share the energy solve. + public FuelVolumeStatus AdvanceHeat(double massKilograms, double storedEnergyJoules, + double wallTemperatureKelvin, double wallCapacityJoulesPerKelvin, double conductanceWattsPerKelvin, + double seconds, out CompliantFuelHeatTransfer transfer) => + AdvanceHeatAtReferenceVolume(massKilograms, storedEnergyJoules, ReferenceVolumeCubicMeters, wallTemperatureKelvin, + wallCapacityJoulesPerKelvin, conductanceWattsPerKelvin, seconds, out transfer); + + public FuelVolumeStatus AdvanceHeatAtReferenceVolume(double massKilograms, double storedEnergyJoules, double referenceVolumeCubicMeters, + double wallTemperatureKelvin, double wallCapacityJoulesPerKelvin, double conductanceWattsPerKelvin, double seconds, out CompliantFuelHeatTransfer transfer) + { + transfer = default; + if (!GearReference.Finite(wallTemperatureKelvin, wallCapacityJoulesPerKelvin, conductanceWattsPerKelvin, seconds) || + wallTemperatureKelvin <= 0 || wallCapacityJoulesPerKelvin <= 0 || conductanceWattsPerKelvin < 0 || seconds < 0) + return FuelVolumeStatus.InvalidInput; + var status = FlashAtReferenceVolume(massKilograms, storedEnergyJoules, referenceVolumeCubicMeters, out var initial); + if (status != FuelVolumeStatus.Success) return status; + double kh = conductanceWattsPerKelvin * seconds; + if (!Numeric.Finite(kh)) return FuelVolumeStatus.InvalidInput; + double alpha = kh == 0 ? 0 : wallCapacityJoulesPerKelvin / (1 + wallCapacityJoulesPerKelvin / kh); + status = Solve(massKilograms, storedEnergyJoules + alpha * wallTemperatureKelvin, alpha, out var result, referenceVolumeCubicMeters); + if (status != FuelVolumeStatus.Success) return status; + double heat = alpha * (wallTemperatureKelvin - result.TemperatureKelvin); + status = RetainEnergy(result, storedEnergyJoules + heat, out result); + if (status != FuelVolumeStatus.Success) return status; + double beta = kh / wallCapacityJoulesPerKelvin, weight = 1 / (1 + beta); + double wall = weight * wallTemperatureKelvin + (beta < 1 ? beta / (1 + beta) : 1 - weight) * result.TemperatureKelvin; + double entropy = result.EntropyJoulesPerKelvin - initial.EntropyJoulesPerKelvin + + wallCapacityJoulesPerKelvin * Math.Log(wall / wallTemperatureKelvin); + double residual = result.StoredEnergyJoules - storedEnergyJoules + wallCapacityJoulesPerKelvin * (wall - wallTemperatureKelvin); + if (!GearReference.Finite(wall, heat, entropy, residual) || wall <= 0) return FuelVolumeStatus.NoConvergence; + transfer = new(result, wall, heat, entropy, residual); + return FuelVolumeStatus.Success; + } + + private FuelVolumeStatus Solve(double mass, double target, double extraCapacity, out CompliantFuelPoint point, double referenceVolumeCubicMeters) + { + point = default; + if (!Numeric.Finite(target)) return FuelVolumeStatus.InvalidInput; + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + var status = EvaluateAtReferenceVolume(lo, mass, referenceVolumeCubicMeters, out var lower); + if (status != FuelVolumeStatus.Success) return status; + status = EvaluateAtReferenceVolume(hi, mass, referenceVolumeCubicMeters, out var upper); + if (status != FuelVolumeStatus.Success) return status; + double lowerEnergy = lower.StoredEnergyJoules + extraCapacity * lo, upperEnergy = upper.StoredEnergyJoules + extraCapacity * hi; + if (!Numeric.Finite(lowerEnergy) || !Numeric.Finite(upperEnergy)) return FuelVolumeStatus.NoConvergence; + if (target < lowerEnergy || target > upperEnergy) return FuelVolumeStatus.EnergyOutOfRange; + if (target == lowerEnergy) { point = lower; return FuelVolumeStatus.Success; } + if (target == upperEnergy) { point = upper; return FuelVolumeStatus.Success; } + double temperature = lo + (hi - lo) * ((target - lowerEnergy) / (upperEnergy - lowerEnergy)); + for (int iteration = 0; iteration < 80; ++iteration) + { + status = EvaluateAtReferenceVolume(temperature, mass, referenceVolumeCubicMeters, out var result); + if (status != FuelVolumeStatus.Success) return status; + double residual = result.StoredEnergyJoules + extraCapacity * temperature - target; + double correction = residual / (result.HeatCapacityJoulesPerKelvin + extraCapacity); + if (!Numeric.Finite(correction)) return FuelVolumeStatus.NoConvergence; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, temperature)) + { point = result; return FuelVolumeStatus.Success; } + if (residual > 0) hi = temperature; else lo = temperature; + double next = temperature - correction; + temperature = next > lo && next < hi ? next : (lo + hi) / 2; + } + return FuelVolumeStatus.NoConvergence; + } + + private bool ReferenceVolumeValid(double referenceVolume) => Numeric.Finite(referenceVolume) && referenceVolume > 0 && + (referenceVolume + ComplianceCubicMetersPerPascal * _minimumCoexistencePressure) - referenceVolume >= + 128 * GearReference.Epsilon * referenceVolume; + + private static FuelVolumeStatus RetainEnergy(CompliantFuelPoint result, double energy, out CompliantFuelPoint point) + { + point = default; + double residual = energy - result.StoredEnergyJoules; + if (!Numeric.Finite(energy) || Math.Abs(residual) / result.HeatCapacityJoulesPerKelvin > 1e-8 + 128 * GearReference.Epsilon * result.TemperatureKelvin) + return FuelVolumeStatus.NoConvergence; + point = result with { StoredEnergyJoules = energy, FluidInternalEnergyJoules = energy - result.ElasticEnergyJoules, CaloricResidualJoules = residual }; + return FuelVolumeStatus.Success; + } +} diff --git a/src/Power.Core/CompressibleFuel.cs b/src/Power.Core/CompressibleFuel.cs new file mode 100644 index 0000000..02eb8c0 --- /dev/null +++ b/src/Power.Core/CompressibleFuel.cs @@ -0,0 +1,129 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct CompressibleFuelPoint(double DensityKilogramsPerCubicMeter, double TemperatureKelvin, + double PressurePascals, double SpecificInternalEnergyJoulesPerKilogram, double SpecificEntropyJoulesPerKilogramKelvin, + double IsochoricHeatCapacityJoulesPerKilogramKelvin, double SoundSpeedMetersPerSecond, double VaporMassFraction, FuelVolumePhase Phase); + +public readonly record struct CompressibleFuelSaturation(double PressurePascals, double LiquidSpecificVolumeCubicMetersPerKilogram, + double VaporSpecificVolumeCubicMetersPerKilogram, double LatentEnthalpyJoulesPerKilogram, double PressureDerivativePascalsPerKelvin); + +/// +/// Homogeneous equilibrium of an ideal vapor and a compressible liquid with zero thermal +/// expansion. The liquid cold energy is the integral of p=K*(rho/rho0-1), not an extra +/// wall energy. Chemical potentials, caloric energy, entropy and sound speed share it. +/// +public sealed partial class CompressibleFuel +{ + public FuelPhaseEquilibrium Material { get; } + public double ReferenceLiquidDensityKilogramsPerCubicMeter { get; } + public double LiquidBulkModulusPascals { get; } + public double MaximumPressurePascals { get; } + public double AcousticSpeedBoundMetersPerSecond { get; } + + public CompressibleFuel(FuelPhaseEquilibrium material, double referenceLiquidDensity, double liquidBulkModulus, double maximumPressure) + { + Material = material ?? throw new ArgumentNullException(nameof(material)); + ReferenceLiquidDensityKilogramsPerCubicMeter = referenceLiquidDensity; LiquidBulkModulusPascals = liquidBulkModulus; MaximumPressurePascals = maximumPressure; + if (!GearReference.Finite(referenceLiquidDensity, liquidBulkModulus, maximumPressure, 0) || referenceLiquidDensity <= 0 || liquidBulkModulus <= 0 || maximumPressure <= 0 || + maximumPressure >= referenceLiquidDensity * material.GasConstantJoulesPerKilogramKelvin * material.MinimumTemperatureKelvin || + !TrySaturation(material.MinimumTemperatureKelvin, out _) || !TrySaturation(material.MaximumTemperatureKelvin, out _)) + throw new ArgumentException("Use positive finite density, liquid bulk modulus and pressure bound, with the complete coexistence curve inside the dilute-vapor domain."); + double gamma = 1 + material.GasConstantJoulesPerKilogramKelvin / material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + AcousticSpeedBoundMetersPerSecond = Math.Sqrt(Math.Max(liquidBulkModulus / referenceLiquidDensity, gamma * material.GasConstantJoulesPerKilogramKelvin * material.MaximumTemperatureKelvin)); + if (!Numeric.Finite(AcousticSpeedBoundMetersPerSecond) || AcousticSpeedBoundMetersPerSecond <= 0) throw new ArgumentException("Acoustic bound is not representable."); + } + private double LiquidVolume(double pressure) => 1 / ReferenceLiquidDensityKilogramsPerCubicMeter / (1 + pressure / LiquidBulkModulusPascals); + private double CompressionEnthalpy(double pressure) => LiquidBulkModulusPascals / ReferenceLiquidDensityKilogramsPerCubicMeter * Numeric.Log1p(pressure / LiquidBulkModulusPascals); + private double ColdEnergy(double pressure) + { + double y = pressure / LiquidBulkModulusPascals, value; + if (Math.Abs(y) < 1e-3) + { + // log(1+y)-y/(1+y), evaluated without cancellation near zero pressure. + value = 0; double power = y * y; + for (int n = 2; n <= 9; ++n) { value += (n % 2 == 0 ? 1 : -1) * (n - 1d) / n * power; power *= y; } + } + else value = Numeric.Log1p(y) - y / (1 + y); + return LiquidBulkModulusPascals / ReferenceLiquidDensityKilogramsPerCubicMeter * value; + } + public bool TrySaturation(double temperatureKelvin, out CompressibleFuelSaturation saturation) + { + saturation = default; + if (!Material.TrySaturationPressure(temperatureKelvin, out double negligible) || negligible >= MaximumPressurePascals) return false; + double rt = Material.GasConstantJoulesPerKilogramKelvin * temperatureKelvin, lo = Math.Log(negligible), hi = Math.Log(MaximumPressurePascals); + double Residual(double logPressure) => logPressure - Math.Log(negligible) - CompressionEnthalpy(Math.Exp(logPressure)) / rt; + if (!(Residual(hi) > 0)) return false; + double x = lo; + for (int i = 0; i < 64; ++i) + { + double p = Math.Exp(x), residual = Residual(x), derivative = 1 - p * LiquidVolume(p) / rt; + if (!Numeric.Finite(residual) || derivative <= 0) return false; + if (Math.Abs(residual) <= 16 * GearReference.Epsilon * Math.Max(1, Math.Abs(x))) + { + double vl = LiquidVolume(p), vv = rt / p, latent = Material.LatentEnthalpy(temperatureKelvin) - CompressionEnthalpy(p); + double slope = latent / (temperatureKelvin * (vv - vl)); + if (!GearReference.Finite(vl, vv, latent, slope) || vv <= vl || latent <= 0 || slope <= 0) return false; + saturation = new(p, vl, vv, latent, slope); return true; + } + if (residual > 0) hi = x; else lo = x; + double next = x - residual / derivative; x = next > lo && next < hi ? next : (lo + hi) / 2; + } + return false; + } + public bool Evaluate(double densityKilogramsPerCubicMeter, double temperatureKelvin, out CompressibleFuelPoint point) + { + point = default; + if (!Numeric.Finite(densityKilogramsPerCubicMeter) || densityKilogramsPerCubicMeter <= 0 || !TrySaturation(temperatureKelvin, out var sat)) return false; + double v = 1 / densityKilogramsPerCubicMeter, t = temperatureKelvin, r = Material.GasConstantJoulesPerKilogramKelvin; + var c = Material.Caloric; double cv = c.VaporSpecificHeatJoulesPerKilogramKelvin, cl = c.LiquidSpecificHeatJoulesPerKilogramKelvin; + double logT = Numeric.Log1p((t - c.SaturationTemperatureKelvin) / c.SaturationTemperatureKelvin), p, u, s, capacity, soundSquared, quality; + FuelVolumePhase phase; + if (v < sat.LiquidSpecificVolumeCubicMetersPerKilogram) + { + p = LiquidBulkModulusPascals * (densityKilogramsPerCubicMeter / ReferenceLiquidDensityKilogramsPerCubicMeter - 1); + u = cl * t + c.LiquidEnergyOffsetJoulesPerKilogram + ColdEnergy(p); s = cl * logT; + capacity = cl; soundSquared = LiquidBulkModulusPascals / ReferenceLiquidDensityKilogramsPerCubicMeter; quality = 0; phase = FuelVolumePhase.Liquid; + } + else if (v > sat.VaporSpecificVolumeCubicMetersPerKilogram) + { + p = r * t / v; u = cv * t; s = (cv + r) * logT - r * Math.Log(p / Material.ReferencePressurePascals) + c.LatentInternalEnergyJoulesPerKilogram / c.SaturationTemperatureKelvin + r; + capacity = cv; soundSquared = (1 + r / cv) * r * t; quality = 1; phase = FuelVolumePhase.Vapor; + } + else + { + p = sat.PressurePascals; double vl = sat.LiquidSpecificVolumeCubicMetersPerKilogram, vv = sat.VaporSpecificVolumeCubicMetersPerKilogram; + quality = (v - vl) / (vv - vl); double ul = cl * t + c.LiquidEnergyOffsetJoulesPerKilogram + ColdEnergy(p), uv = cv * t; + double sl = cl * logT, sv = (cv + r) * logT - r * Math.Log(p / Material.ReferencePressurePascals) + c.LatentInternalEnergyJoulesPerKilogram / c.SaturationTemperatureKelvin + r; + u = (1 - quality) * ul + quality * uv; s = (1 - quality) * sl + quality * sv; + double vlT = -vl * sat.PressureDerivativePascalsPerKelvin / (LiquidBulkModulusPascals + p), vvT = vv / t - vv / p * sat.PressureDerivativePascalsPerKelvin; + double qualityT = -((1 - quality) * vlT + quality * vvT) / (vv - vl); + capacity = (1 - quality) * (cl - p * vlT) + quality * cv + qualityT * (uv - ul); + soundSquared = v * v * t * sat.PressureDerivativePascalsPerKelvin * sat.PressureDerivativePascalsPerKelvin / capacity; + phase = FuelVolumePhase.LiquidVapor; + } + if (!GearReference.Finite(p, u, s, capacity) || !GearReference.Finite(soundSquared, quality, v, 0) || p <= 0 || p > MaximumPressurePascals || capacity <= 0 || soundSquared <= 0 || quality < 0 || quality > 1) return false; + point = new(densityKilogramsPerCubicMeter, t, p, u, s, capacity, Math.Sqrt(soundSquared), quality, phase); return true; + } + public bool Flash(double densityKilogramsPerCubicMeter, double specificInternalEnergyJoulesPerKilogram, out CompressibleFuelPoint point) + { + point = default; + if (!Numeric.Finite(specificInternalEnergyJoulesPerKilogram)) return false; + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + if (!Evaluate(densityKilogramsPerCubicMeter, lo, out var lower) || !Evaluate(densityKilogramsPerCubicMeter, hi, out var upper) || + specificInternalEnergyJoulesPerKilogram < lower.SpecificInternalEnergyJoulesPerKilogram || specificInternalEnergyJoulesPerKilogram > upper.SpecificInternalEnergyJoulesPerKilogram) return false; + double t = (lo + hi) / 2; + for (int i = 0; i < 80; ++i) + { + if (!Evaluate(densityKilogramsPerCubicMeter, t, out var candidate)) return false; + double error = candidate.SpecificInternalEnergyJoulesPerKilogram - specificInternalEnergyJoulesPerKilogram, correction = error / candidate.IsochoricHeatCapacityJoulesPerKilogramKelvin; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, t)) { point = candidate with { SpecificInternalEnergyJoulesPerKilogram = specificInternalEnergyJoulesPerKilogram }; return true; } + if (error > 0) hi = t; else lo = t; + double next = t - correction; t = next > lo && next < hi ? next : (lo + hi) / 2; + } + return false; + } +} diff --git a/src/Power.Core/CompressibleFuelChamber.cs b/src/Power.Core/CompressibleFuelChamber.cs new file mode 100644 index 0000000..fa73cfd --- /dev/null +++ b/src/Power.Core/CompressibleFuelChamber.cs @@ -0,0 +1,57 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +internal sealed record CompiledCompressibleChamber(int Component, int Fuel, int Crank, SinusoidalFuelChamber Geometry); + +public sealed partial class CompiledModel +{ + internal CompiledCompressibleChamber[] CompressibleChambers { get; private set; } = []; + internal int[] CompressibleChamberByComponent { get; private set; } = []; + public bool HasCompressibleFuelChambers => CompressibleChambers.Length != 0; + internal int RelaxingChamberCount { get; private set; } + public bool HasRelaxingFuelBoundaries => RelaxingChamberCount != 0 || RelaxingNozzleCount != 0; + internal double CompressibleVolume(CompressibleFuelState state, int slot) => state.Volume is null ? Nodes[CompressibleFuels[slot].Node].Storage : state.Volume[slot]; + + private void CompileCompressibleChambers(ComponentDefinition[] definitions) + { + CompressibleChamberByComponent = new int[Components.Length]; Array.Fill(CompressibleChamberByComponent, -1); + var chambers = new List(); var owners = new HashSet(); + for (int i = 0; i < Components.Length; ++i) + { + var c = Components[i]; if (c.Kind != ComponentKind.CompressibleFuelChamber) continue; + var d = definitions[i].FuelChamber!; + double minimum = Convert(d.MinimumReferenceVolume, Unit.CubicMeter, c.Id, "fuel_chamber.minimum_reference_volume"), + swept = Convert(d.SweptVolume, Unit.CubicMeter, c.Id, "fuel_chamber.swept_volume"), phase = Convert(d.Phase, Unit.Radian, c.Id, "fuel_chamber.phase"); + SinusoidalFuelChamber geometry; + try { geometry = new(minimum, swept, phase); } + catch (ArgumentException error) { throw new ModelCompileException(DiagnosticCode.Range, c.Id, "fuel_chamber", error.Message); } + int fuel = Nodes[c.B].Index; double initial = geometry.ReferenceVolumeAt(Nodes[c.A].Position); + Require(owners.Add(fuel) && CompressibleCellOwner[fuel] < 0, DiagnosticCode.Connection, c.Id, "fuel_chamber.node_b", "Each moving compressible reservoir has one geometry owner and cannot be an internal duct cell."); + Require(Math.Abs(initial - Nodes[c.B].Storage) <= 128 * GearReference.Epsilon * initial, + DiagnosticCode.Connection, c.Id, "fuel_chamber.initial_volume", "Node storage must equal chamber volume at the initial shaft angle."); + Require(CompressibleFuels[fuel].Velocity == 0, DiagnosticCode.Range, c.Id, "fuel_chamber.initial_velocity", "The mixed chamber has zero bulk velocity; only the boundary does mechanical work."); + CompressibleChamberByComponent[i] = chambers.Count; chambers.Add(new(i, fuel, Nodes[c.A].Index, geometry)); + } + CompressibleChambers = chambers.ToArray(); + RelaxingChamberCount = chambers.Count(c => CompressibleFuels[c.Fuel].Relaxation is not null); + } + internal bool CompressibleChamberWork(int slot, CompressibleFuelState state, double oldAngle, double delta, + out CompressibleFuelWorkTransfer work, out double torque, out double nextVolume) + { + work = default; torque = nextVolume = double.NaN; + if (!Numeric.Finite(oldAngle) || !Numeric.Finite(delta) || Math.Abs(delta) > CylinderSolver.MaxAngleStepRadians || + 8 * GearReference.Epsilon * Math.Max(Math.Abs(oldAngle), Math.Abs(oldAngle + delta)) > CylinderSolver.MaxAngleStepRadians) return false; + var chamber = CompressibleChambers[slot]; double previous = state.Volume![chamber.Fuel]; + nextVolume = delta == 0 ? previous : chamber.Geometry.ReferenceVolumeAt(oldAngle + delta); + var fuel = CompressibleFuels[chamber.Fuel]; + FuelVolumeStatus status = fuel.Relaxation is {} relaxing + ? relaxing.AdiabaticVolume(state.Mass[chamber.Fuel], state.Energy[chamber.Fuel], previous, nextVolume, state.VaporMass![chamber.Fuel] / state.Mass[chamber.Fuel], out work) + : fuel.Law.AdiabaticVolume(state.Mass[chamber.Fuel], state.Energy[chamber.Fuel], previous, nextVolume, out work); + if (status != FuelVolumeStatus.Success) return false; + torque = delta == 0 ? work.Fluid.PressurePascals * chamber.Geometry.VolumeDerivativeAt(oldAngle) : -work.EnergyChangeJoules / delta; + return Numeric.Finite(torque); + } +} diff --git a/src/Power.Core/CompressibleFuelIsentrope.cs b/src/Power.Core/CompressibleFuelIsentrope.cs new file mode 100644 index 0000000..a747ba1 --- /dev/null +++ b/src/Power.Core/CompressibleFuelIsentrope.cs @@ -0,0 +1,81 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +namespace Power.Core; + +public sealed partial class CompressibleFuel +{ + public bool TrySaturationAtPressure(double pressurePascals,out double temperatureKelvin,out CompressibleFuelSaturation saturation) + { + temperatureKelvin=0;saturation=default; + if(!Numeric.Finite(pressurePascals)||pressurePascals<=0||pressurePascals>MaximumPressurePascals)return false; + double p=pressurePascals,r=Material.GasConstantJoulesPerKilogramKelvin,compression=CompressionEnthalpy(p); + double Residual(double t) + {if(!Material.TrySaturationPressure(t,out double negligible))return double.NaN;return r*t*(Math.Log(p)-Math.Log(negligible))-compression;} + double lo=Material.MinimumTemperatureKelvin,hi=Material.MaximumTemperatureKelvin; + double fLo=Residual(lo),fHi=Residual(hi),rounding=128*GearReference.Epsilon*Math.Max(r*hi,Math.Abs(compression)); + if(fLo < -rounding||fHi > rounding)return false; + double t=Math.Max(lo,Math.Min(hi,Material.Caloric.SaturationTemperatureKelvin));bool converged=false; + if(Math.Abs(fLo)<=rounding){t=lo;converged=true;}else if(Math.Abs(fHi)<=rounding){t=hi;converged=true;} + for(int i=0;i<80&&!converged;++i) + { + double f=Residual(t),derivative=(f+compression-Material.LatentEnthalpy(t))/t; + double correction=f/derivative; + if(!Numeric.Finite(f)||!Numeric.Finite(correction))return false; + if(Math.Abs(correction)<=8*GearReference.Epsilon*Math.Max(1,t)){converged=true;break;} + if(f>0)lo=t;else hi=t;double next=t-correction;t=next>lo&&nextStable equilibrium at prescribed absolute pressure and specific entropy; no metastable phase is retained. + public bool TryPressureEntropy(double pressurePascals,double specificEntropyJoulesPerKilogramKelvin,out CompressibleFuelPoint point) + { + point=default; + if(!Numeric.Finite(pressurePascals)||pressurePascals<=0||pressurePascals>MaximumPressurePascals||!Numeric.Finite(specificEntropyJoulesPerKilogramKelvin))return false; + double p=pressurePascals,s=specificEntropyJoulesPerKilogramKelvin,r=Material.GasConstantJoulesPerKilogramKelvin;var c=Material.Caloric; + double cl=c.LiquidSpecificHeatJoulesPerKilogramKelvin,cv=c.VaporSpecificHeatJoulesPerKilogramKelvin,tr=c.SaturationTemperatureKelvin; + double tl=IsentropeTemperature(tr*Math.Exp(s/cl)); + if(tl>=Material.MinimumTemperatureKelvin&&tl<=Material.MaximumTemperatureKelvin&&TrySaturation(tl,out var liquidSat)&&p>=liquidSat.PressurePascals) + {double u=cl*tl+c.LiquidEnergyOffsetJoulesPerKilogram+ColdEnergy(p);return FinishIsentrope(new(1/LiquidVolume(p),tl,p,u,cl*Math.Log(tl/tr),cl,Math.Sqrt(LiquidBulkModulusPascals/ReferenceLiquidDensityKilogramsPerCubicMeter),0,FuelVolumePhase.Liquid),s,out point);} + double tv=IsentropeTemperature(tr*Math.Exp((s+r*Math.Log(p/Material.ReferencePressurePascals)-c.LatentInternalEnergyJoulesPerKilogram/tr-r)/(cv+r))); + if(tv>=Material.MinimumTemperatureKelvin&&tv<=Material.MaximumTemperatureKelvin&&TrySaturation(tv,out var vaporSat)&&p<=vaporSat.PressurePascals) + {double entropy=(cv+r)*Math.Log(tv/tr)-r*Math.Log(p/Material.ReferencePressurePascals)+c.LatentInternalEnergyJoulesPerKilogram/tr+r;return FinishIsentrope(new(p/(r*tv),tv,p,cv*tv,entropy,cv,Math.Sqrt((1+r/cv)*r*tv),1,FuelVolumePhase.Vapor),s,out point);} + if(!TrySaturationAtPressure(p,out double t,out var sat))return false; + double sl=cl*Math.Log(t/tr),sv=(cv+r)*Math.Log(t/tr)-r*Math.Log(p/Material.ReferencePressurePascals)+c.LatentInternalEnergyJoulesPerKilogram/tr+r; + double x=(s-sl)/(sv-sl);if(!Numeric.Finite(x)||x<0||x>1)return false; + double vl=sat.LiquidSpecificVolumeCubicMetersPerKilogram,vv=sat.VaporSpecificVolumeCubicMetersPerKilogram,v=(1-x)*vl+x*vv; + double ul=cl*t+c.LiquidEnergyOffsetJoulesPerKilogram+ColdEnergy(p),uv=cv*t; + double vlT=-vl*sat.PressureDerivativePascalsPerKelvin/(LiquidBulkModulusPascals+p),vvT=vv/t-vv/p*sat.PressureDerivativePascalsPerKelvin; + double xT=-((1-x)*vlT+x*vvT)/(vv-vl),capacity=(1-x)*(cl-p*vlT)+x*cv+xT*(uv-ul); + double sound=Math.Sqrt(v*v*t*sat.PressureDerivativePascalsPerKelvin*sat.PressureDerivativePascalsPerKelvin/capacity); + var result=new CompressibleFuelPoint(1/v,t,p,(1-x)*ul+x*uv,(1-x)*sl+x*sv,capacity,sound,x,FuelVolumePhase.LiquidVapor); + return FinishIsentrope(result,s,out point); + } + private static bool FinishIsentrope(CompressibleFuelPoint candidate,double target,out CompressibleFuelPoint point) + {point=default;if(!FiniteIsentrope(candidate)||Math.Abs(candidate.SpecificEntropyJoulesPerKilogramKelvin-target)>256*GearReference.Epsilon*(Math.Abs(target)+candidate.IsochoricHeatCapacityJoulesPerKilogramKelvin+1))return false;point=candidate;return true;} + private static bool FiniteIsentrope(CompressibleFuelPoint p)=>GearReference.Finite(p.DensityKilogramsPerCubicMeter,p.TemperatureKelvin,p.PressurePascals,p.SpecificInternalEnergyJoulesPerKilogram)&& + GearReference.Finite(p.SpecificEntropyJoulesPerKilogramKelvin,p.IsochoricHeatCapacityJoulesPerKilogramKelvin,p.SoundSpeedMetersPerSecond,p.VaporMassFraction)&&p.DensityKilogramsPerCubicMeter>0&&p.IsochoricHeatCapacityJoulesPerKilogramKelvin>0&&p.SoundSpeedMetersPerSecond>0; + private double IsentropeTemperature(double value) + { + // Inverting a logarithm at an inclusive material endpoint can move by a + // few ulps. Only that roundoff neighbourhood is identified with the endpoint. + double lo=Material.MinimumTemperatureKelvin,hi=Material.MaximumTemperatureKelvin; + if(Math.Abs(value-lo)<=16*GearReference.Epsilon*lo)return lo; + if(Math.Abs(value-hi)<=16*GearReference.Epsilon*hi)return hi; + return value; + } + internal double IsentropicEnthalpyDrop(CompressibleFuelPoint source,CompressibleFuelPoint destination) + { + double p=destination.PressurePascals,p0=source.PressurePascals;var c=Material.Caloric; + double dp=p0-p,compression=LiquidBulkModulusPascals/ReferenceLiquidDensityKilogramsPerCubicMeter*Numeric.Log1p(dp/(LiquidBulkModulusPascals+p)); + if(source.Phase==FuelVolumePhase.Liquid&&destination.Phase==FuelVolumePhase.Liquid)return compression; + if(source.Phase==FuelVolumePhase.Vapor&&destination.Phase==FuelVolumePhase.Vapor) + return -(c.VaporSpecificHeatJoulesPerKilogramKelvin+Material.GasConstantJoulesPerKilogramKelvin)*source.TemperatureKelvin* + Numeric.Expm1(Material.GasConstantJoulesPerKilogramKelvin/(c.VaporSpecificHeatJoulesPerKilogramKelvin+Material.GasConstantJoulesPerKilogramKelvin)*Numeric.Log1p(-dp/p0)); + double x0=source.VaporMassFraction,dx=destination.VaporMassFraction-x0,capacity=(1-x0)*c.LiquidSpecificHeatJoulesPerKilogramKelvin+x0*(c.VaporSpecificHeatJoulesPerKilogramKelvin+Material.GasConstantJoulesPerKilogramKelvin); + return capacity*(source.TemperatureKelvin-destination.TemperatureKelvin)-dx*(Material.LatentEnthalpy(destination.TemperatureKelvin)-CompressionEnthalpy(p))+(1-x0)*compression; + } +} diff --git a/src/Power.Core/CompressibleFuelNozzle.cs b/src/Power.Core/CompressibleFuelNozzle.cs new file mode 100644 index 0000000..39fdb03 --- /dev/null +++ b/src/Power.Core/CompressibleFuelNozzle.cs @@ -0,0 +1,143 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed record CompressibleFuelNozzleDefinition +{ + public Quantity Area { get; init; } + public double DischargeCoefficient { get; init; } = 1; + public FuelDischargePhaseModel PhaseModel { get; init; } + public Quantity WallKineticFraction { get; init; } + public InjectorNeedleDefinition? Needle { get; init; } +} +internal readonly record struct NozzleTransfer(double MassFlowKilogramsPerSecond,double ThroatPressurePascals,double ExitTemperatureKelvin,double ExitVelocityMetersPerSecond,double VaporMassFraction,double StagnationEnthalpyJoulesPerKilogram,double KineticEnergyJoulesPerKilogram,bool Choked); +internal sealed record CompiledCompressibleNozzle(int Component,int A,int B,int Wall,double WallCapacity, + FrozenCompressibleFuelNozzle Law,double WallFraction,CompiledNeedle? Needle) +{ + internal FuelDischargePhaseModel Mode {get;init;}=FuelDischargePhaseModel.Frozen; + internal EquilibriumFuelNozzle? EquilibriumLaw {get;init;} + internal bool Relaxing {get;init;} + internal FuelNozzleStatus Evaluate(CompressibleFuelPoint source,double back,double opening,out NozzleTransfer transfer,out double uncertainty) + { + transfer=default;uncertainty=0; + if(EquilibriumLaw is {} equilibrium) + { + var status=equilibrium.Evaluate(source.DensityKilogramsPerCubicMeter,source.TemperatureKelvin,back,opening,out var point); + if(status!=FuelNozzleStatus.Success)return status; + transfer=new(point.MassFlowKilogramsPerSecond,point.ThroatPressurePascals,point.ExitTemperatureKelvin,point.ExitVelocityMetersPerSecond,point.VaporMassFraction,point.StagnationEnthalpyJoulesPerKilogram,point.KineticEnergyJoulesPerKilogram,point.Choked);uncertainty=point.FluxRelativeUncertainty;return status; + } + else + { + var status=Law.Evaluate(source.PressurePascals,source.TemperatureKelvin,source.VaporMassFraction,back,opening,out var point); + if(status!=FuelNozzleStatus.Success)return status; + transfer=new(point.MassFlowKilogramsPerSecond,point.ThroatPressurePascals,point.ExitTemperatureKelvin,point.ExitVelocityMetersPerSecond,point.VaporMassFraction,point.StagnationEnthalpyJoulesPerKilogram,point.KineticEnergyJoulesPerKilogram,point.Choked);return status; + } + } +} +internal sealed class CompressibleNozzleState(int count,bool equilibrium=false,bool relaxing=false) +{ + internal readonly double[]? VaporDelivered=relaxing?new double[count]:null,VaporCorrection=relaxing?new double[count]:null; + internal readonly double[]? Uncertainty=equilibrium?new double[count]:null; + // Histories: mass, stagnation enthalpy, jet kinetic energy, wall heat, jet impulse, total pair entropy change. + internal readonly double[,] History=new double[count,6],Correction=new double[count,6],Last=new double[count,7]; + internal void CopyFrom(CompressibleNozzleState other) + {if(VaporDelivered is not null){Array.Copy(other.VaporDelivered!,VaporDelivered,count);Array.Copy(other.VaporCorrection!,VaporCorrection!,count);}if(Uncertainty is not null)Array.Copy(other.Uncertainty!,Uncertainty,count);Array.Copy(other.History,History,History.Length);Array.Copy(other.Correction,Correction,Correction.Length);Array.Copy(other.Last,Last,Last.Length);} + internal void BeginTick(){for(int i=0;iNumeric.Accumulate(value,ref History[i,j],ref Correction[i,j]); + internal bool Finite(){if(VaporDelivered is not null){foreach(double x in VaporDelivered)if(!Numeric.Finite(x)||x<0)return false;foreach(double x in VaporCorrection!)if(!Numeric.Finite(x))return false;}if(Uncertainty is not null)foreach(double x in Uncertainty)if(!Numeric.Finite(x)||x<0||x>EquilibriumFuelNozzle.MaximumFluxRelativeUncertainty)return false;foreach(double x in History)if(!Numeric.Finite(x))return false;foreach(double x in Correction)if(!Numeric.Finite(x))return false;foreach(double x in Last)if(!Numeric.Finite(x))return false;return true;} + internal ulong Hash(ulong hash) + {if(VaporDelivered is not null)for(int i=0;iEquilibriumNozzleCount!=0; + public bool HasCompressibleFuelNozzles=>CompressibleNozzles.Length!=0; + private void CompileCompressibleNozzles(ComponentDefinition[] definitions) + { + CompressibleNozzleByComponent=new int[Components.Length];Array.Fill(CompressibleNozzleByComponent,-1);var result=new List(); + for(int i=0;i0&&Numeric.Finite(d.DischargeCoefficient)&&d.DischargeCoefficient is >0 and <=1&&fraction is >=0 and <=1&&d.PhaseModel is FuelDischargePhaseModel.Frozen or FuelDischargePhaseModel.Equilibrium, + DiagnosticCode.Range,c.Id,"compressible_nozzle","Declare positive area, effective-area coefficient in (0,1], wall kinetic fraction in [0,1] and frozen or equilibrium transit explicitly."); + CompiledNeedle? needle=null; + if(d.Needle is {} n) + { + int node=Array.FindIndex(Nodes,x=>x.Id==n.NeedleNode);Require(node>=0&&Nodes[node].Domain==Domain.Translational,DiagnosticCode.Connection,c.Id,"compressible_nozzle.needle_node","Use a translational needle node."); + double closed=Convert(n.ClosedPosition,Unit.Meter,c.Id,"compressible_nozzle.closed_position"),open=Convert(n.FullOpenPosition,Unit.Meter,c.Id,"compressible_nozzle.full_open_position"); + Require(open>closed&&Numeric.Finite(open-closed),DiagnosticCode.Range,c.Id,"compressible_nozzle.needle","Full-open position must exceed closed position.");needle=new(Nodes[node].Index,closed,open); + } + CompressibleNozzleByComponent[i]=result.Count;result.Add(new(i,a,b,Nodes[c.Heat].Index,Nodes[c.Heat].Storage,new(CompressibleFuels[a].Law,area,d.DischargeCoefficient),fraction,needle){Relaxing=relaxing,Mode=d.PhaseModel,EquilibriumLaw=d.PhaseModel==FuelDischargePhaseModel.Equilibrium?new(CompressibleFuels[a].Law,area,d.DischargeCoefficient):null}); + } + CompressibleNozzles=result.ToArray();EquilibriumNozzleCount=result.Count(n=>n.Mode==FuelDischargePhaseModel.Equilibrium); + RelaxingNozzleCount=result.Count(n=>n.Relaxing); + } +} + +internal sealed class CompressibleNozzleSolver(CompiledModel model) +{ + private bool Candidate(CompressibleFuelState fluid,int slot,double mass,double energy,double vaporMass,out CompressibleFuelPoint point) + { + var fuel=model.CompressibleFuels[slot]; + if(fuel.Relaxation is {} law){bool ok=law.Flash(mass/model.CompressibleVolume(fluid,slot),energy/mass,vaporMass/mass,out var q);point=q.Fluid;return ok;} + return fuel.Law.Flash(mass/model.CompressibleVolume(fluid,slot),energy/mass,out point); + } + internal static double Opening(CompiledCompressibleNozzle d,double[] inputs,double[] dynamics)=>inputs[d.Component]*(d.Needle?.Opening(dynamics)??1); + internal bool Advance(CompressibleNozzleState state,CompressibleFuelState fluid,double[] wallTemperature,double[] dynamics,double[] inputs,double seconds,bool reverse=false) + { + for(int order=0;order0;++step) + { + if(step>=4096||!EquilibriumFuelDuctSolver.Point(model,fluid,d.A,out var a)||!EquilibriumFuelDuctSolver.Point(model,fluid,d.B,out var b))return false; + double pressureRounding=128*GearReference.Epsilon*Math.Max(d.Law.Law.LiquidBulkModulusPascals,Math.Max(a.PressurePascals,b.PressurePascals)); + if(a.PressurePascals-b.PressurePascals<=pressureRounding)break; + if(d.Evaluate(a,b.PressurePascals,opening,out var nozzle,out double uncertainty)!=FuelNozzleStatus.Success)return false; + if(nozzle.MassFlowKilogramsPerSecond==0)break; + double ma=fluid.Mass[d.A],mb=fluid.Mass[d.B],ea=fluid.Energy[d.A],eb=fluid.Energy[d.B],oldWall=wallTemperature[d.Wall]; + double h=Math.Min(remaining,.1*Math.Min(ma,mb)/nozzle.MassFlowKilogramsPerSecond),mass=0,energy=0,kinetic=0,wallHeat=0,entropy=0,vapor=0; + bool accepted=false; + for(int trial=0;trial<64;++trial,h*=.5) + { + mass=h*nozzle.MassFlowKilogramsPerSecond;energy=mass*nozzle.StagnationEnthalpyJoulesPerKilogram;kinetic=mass*nozzle.KineticEnergyJoulesPerKilogram;wallHeat=d.WallFraction*kinetic; + if(!GearReference.Finite(mass,energy,kinetic,wallHeat)||mass<=0||mass>=ma)continue; + vapor=d.Relaxing?mass*nozzle.VaporMassFraction:0; + if(!Candidate(fluid,d.A,ma-mass,ea-energy,d.Relaxing?fluid.VaporMass![d.A]-vapor:0,out var na)|| + !Candidate(fluid,d.B,mb+mass,eb+energy-wallHeat,d.Relaxing?fluid.VaporMass![d.B]+vapor:0,out var nb))continue; + if(na.PressurePascals+pressureRoundingClosed reversible volume work at fixed mass and entropy, including liquid cold compression energy. + public FuelVolumeStatus AdiabaticVolume(double massKilograms, double internalEnergyJoules, + double oldVolumeCubicMeters, double newVolumeCubicMeters, out CompressibleFuelWorkTransfer transfer) + { + transfer = default; + if (!GearReference.Finite(massKilograms, internalEnergyJoules, oldVolumeCubicMeters, newVolumeCubicMeters) || + massKilograms <= 0 || oldVolumeCubicMeters <= 0 || newVolumeCubicMeters <= 0) return FuelVolumeStatus.InvalidInput; + if (!Flash(massKilograms / oldVolumeCubicMeters, internalEnergyJoules / massKilograms, out var initial)) return FuelVolumeStatus.EnergyOutOfRange; + double delta = newVolumeCubicMeters - oldVolumeCubicMeters; + if (delta == 0) { transfer = new(initial, 0, initial.PressurePascals, 0); return FuelVolumeStatus.Success; } + double density = massKilograms / newVolumeCubicMeters, temperature = initial.TemperatureKelvin, target = initial.SpecificEntropyJoulesPerKilogramKelvin; + if (!Evaluate(density, temperature, out var result)) return FuelVolumeStatus.EnergyOutOfRange; + if (initial.Phase != FuelVolumePhase.Liquid || result.Phase != FuelVolumePhase.Liquid) + { + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + if (!Evaluate(density, lo, out var lower) || !Evaluate(density, hi, out var upper)) return FuelVolumeStatus.EnergyOutOfRange; + if (target < lower.SpecificEntropyJoulesPerKilogramKelvin || target > upper.SpecificEntropyJoulesPerKilogramKelvin) return FuelVolumeStatus.EntropyOutOfRange; + bool converged = false; + for (int iteration = 0; iteration < 80; ++iteration) + { + if (!Evaluate(density, temperature, out result)) return FuelVolumeStatus.EnergyOutOfRange; + double error = result.SpecificEntropyJoulesPerKilogramKelvin - target; + double correction = error * temperature / result.IsochoricHeatCapacityJoulesPerKilogramKelvin; + if (!Numeric.Finite(correction)) return FuelVolumeStatus.NoConvergence; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, temperature)) { converged = true; break; } + if (error > 0) hi = temperature; else lo = temperature; + double next = temperature - correction; temperature = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return FuelVolumeStatus.NoConvergence; + } + double work, ratio = delta / oldVolumeCubicMeters; + var caloric = Material.Caloric; + if (initial.Phase == FuelVolumePhase.Liquid && result.Phase == FuelVolumePhase.Liquid) + { + // Exact integral -integral(p dV). Evaluate r-log(1+r) without cancellation. + double remainder = ratio - Numeric.Log1p(ratio); + if (Math.Abs(ratio) < 1e-3) + { + remainder = 0; double power = ratio * ratio; + for (int n = 2; n <= 10; ++n) { remainder += (n % 2 == 0 ? 1 : -1) * power / n; power *= ratio; } + } + work = -initial.PressurePascals * delta + massKilograms * LiquidBulkModulusPascals / ReferenceLiquidDensityKilogramsPerCubicMeter * remainder; + } + else if (initial.Phase == FuelVolumePhase.Vapor && result.Phase == FuelVolumePhase.Vapor) + work = massKilograms * caloric.VaporSpecificHeatJoulesPerKilogramKelvin * initial.TemperatureKelvin * + Numeric.Expm1(-Material.GasConstantJoulesPerKilogramKelvin / caloric.VaporSpecificHeatJoulesPerKilogramKelvin * Numeric.Log1p(ratio)); + else + { + double qualityChange = result.VaporMassFraction - initial.VaporMassFraction; + double capacity = (1 - initial.VaporMassFraction) * caloric.LiquidSpecificHeatJoulesPerKilogramKelvin + initial.VaporMassFraction * caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + double oldCold = ColdEnergy(initial.PressurePascals), nextCold = ColdEnergy(result.PressurePascals); + work = massKilograms * (capacity * (result.TemperatureKelvin - initial.TemperatureKelvin) + qualityChange * Material.LatentInternalEnergy(result.TemperatureKelvin) + + (1 - initial.VaporMassFraction) * (nextCold - oldCold) - qualityChange * nextCold); + double scale = massKilograms * (capacity * initial.TemperatureKelvin + Material.LatentInternalEnergy(initial.TemperatureKelvin) + oldCold); + if (Math.Abs(work) <= 1024 * GearReference.Epsilon * scale && Math.Abs(ratio) <= Math.Sqrt(GearReference.Epsilon) && initial.Phase == result.Phase) + work = -delta * (.5 * initial.PressurePascals + .5 * result.PressurePascals); + } + double mean = -work / delta; + if (!Numeric.Finite(work) || !Numeric.Finite(mean) || mean <= 0) return FuelVolumeStatus.NoConvergence; + if (!Flash(density, (internalEnergyJoules + work) / massKilograms, out result)) return FuelVolumeStatus.EnergyOutOfRange; + double residual = massKilograms * (result.SpecificEntropyJoulesPerKilogramKelvin - target); + double tolerance = 512 * GearReference.Epsilon * massKilograms * (Math.Abs(target) + initial.IsochoricHeatCapacityJoulesPerKilogramKelvin + result.IsochoricHeatCapacityJoulesPerKilogramKelvin); + if (Math.Abs(residual) > tolerance) return FuelVolumeStatus.NoConvergence; + transfer = new(result, work, mean, residual); return FuelVolumeStatus.Success; + } +} diff --git a/src/Power.Core/ConverterSolver.cs b/src/Power.Core/ConverterSolver.cs index 2303b4e..b3423cb 100644 --- a/src/Power.Core/ConverterSolver.cs +++ b/src/Power.Core/ConverterSolver.cs @@ -6,6 +6,13 @@ namespace Power.Core; internal abstract class MechanicalSolver { + protected EquilibriumFuelState? FuelState; + protected CompressibleFuelState? CompressibleState; + internal void PrepareCompressibleFuel(CompressibleFuelState state) => CompressibleState = state; + protected FuelFilmState? FiniteFilms; + protected MixtureState? FiniteMixture; + internal void PrepareFiniteReceivers(FuelFilmState films, MixtureState mixture) { FiniteFilms = films; FiniteMixture = mixture; } + internal void PrepareFuel(EquilibriumFuelState state) => FuelState = state; internal abstract bool SetInterval(double duration, Factorization dynamics, GearSolver? gears); internal abstract bool Solve(double[] old, double[] midpoint, double[] energy, CombustionSolver? combustion = null, CancellationToken cancellation = default); internal abstract void AddGearReactions(double[] reactions); @@ -114,7 +121,7 @@ internal void PrepareHydraulics(HydraulicState state, double[] inputs, double du internal ConverterSolver(CompiledModel model, HydraulicSolver? hydraulics = null) { _model = model; _coupling = model.ConverterCoupling!; _hydraulics = model.HasCoupledHydraulics ? hydraulics : null; - int count = _coupling.Nodes.Length + (model.HasCoupledHydraulics ? model.HydraulicCount : 0); + int count = _coupling.Nodes.Length + (model.HasCoupledHydraulics ? hydraulics!.PressureCount : 0); _value = new double[count]; _prediction = new double[count]; _force = new double[_coupling.Nodes.Length]; _residual = new double[count]; _trial = new double[count]; _trialResidual = new double[count]; _correction = new double[count]; _derivative = new double[_force.Length, count]; _jacobian = new double[count, count]; _factor = new(count); @@ -141,12 +148,27 @@ private double CylinderTorque(int k, double angle, double delta, double[] energy { double torque = 0; foreach (int i in _model.CylinderCoupling!.Components[k]) - if (_model.Cylinders[i] is { } sealedCylinder) torque += sealedCylinder.DiscreteTorque(angle, delta); + if (_model.FuelChamberByComponent[i] is int chamber && chamber >= 0) + { + if (!_model.FuelChamberWork(chamber, FuelState!, angle, delta, out _, out double fuelTorque, out _)) return double.NaN; + torque += fuelTorque; + } + else if (_model.CompressibleChamberByComponent[i] is int compressible && compressible >= 0) + { + if (!_model.CompressibleChamberWork(compressible, CompressibleState!, angle, delta, out _, out double pressureTorque, out _)) return double.NaN; + torque += pressureTorque; + } + else if (_model.Cylinders[i] is { } sealedCylinder) torque += sealedCylinder.DiscreteTorque(angle, delta); else { int gas = _model.Nodes[_model.Components[i].B].Index; - torque += _model.GasCylinders[i]!.DiscreteTorque(angle, delta, - energy[gas] + .5 * (_combustion?.PreviewHeat(gas, angle + delta) ?? 0), _model.Gas!.Gases[gas].Gamma); + double heat = .5 * (_combustion?.PreviewHeat(gas, angle + delta) ?? 0); + if (_model.FiniteFilmByGas[gas] >= 0) + { + if (!_model.FiniteReceiverWork(i, FiniteFilms!, FiniteMixture!, energy, angle, delta, heat, out _, out double receiverTorque)) return double.NaN; + torque += receiverTorque; + } + else torque += _model.GasCylinders[i]!.DiscreteTorque(angle, delta, energy[gas] + heat, _model.Gas!.Gases[gas].Gamma); } return torque; } @@ -214,9 +236,16 @@ private double Residual(double[] old, double[] values, double[] residual, double { var c = _model.Components[_model.PumpComponents[k]]; int row = _coupling.PumpOffset + k, outlet = mechanical + _model.Nodes[c.B].Index; - int inlet = c.C < 0 ? -1 : mechanical + _model.Nodes[c.C].Index; - _force[row] = -c.P0 * (values[outlet] - (inlet < 0 ? c.P2 : values[inlet])); - if (derivatives) { _derivative[row, outlet] = -c.P0; if (inlet >= 0) _derivative[row, inlet] = c.P0; } + int inletIndex = _hydraulics!.PumpInlet(k), inlet = inletIndex < 0 ? -1 : mechanical + inletIndex; + _hydraulics!.PumpFlowLaw(k, values[row], out double displacement, out double slope, out _); + double difference = values[outlet] - (inlet < 0 ? c.P2 : values[inlet]); + _force[row] = -displacement * difference; + if (derivatives) + { + _derivative[row, outlet] = -displacement; + if (inlet >= 0) _derivative[row, inlet] = displacement; + _derivative[row, row] = -slope * difference; + } } double norm = _hydraulics?.CoupledResidual(_hydraulicState!.Pressure, values, mechanical, _coupling.PumpOffset, _coupling.Cranks, _inputs!, _duration, residual, derivatives ? _jacobian : null, old) ?? 0; @@ -240,7 +269,11 @@ internal override bool Solve(double[] old, double[] midpoint, double[] energy, C int index = _coupling.Variables[k]; _value[k] = _prediction[k] = k < _coupling.Coordinates ? 2 * (midpoint[index] - old[index]) : midpoint[index]; } - if (_hydraulics is not null) Array.Copy(_hydraulicState!.Pressure, 0, _value, mechanical, _model.HydraulicCount); + if (_hydraulics is not null) + { + Array.Copy(_hydraulicState!.Pressure, 0, _value, mechanical, _model.HydraulicCount); + _hydraulics.InitialHeadspacePressures(_value, mechanical); + } for (int iteration = 0; iteration < MaxIterations; ++iteration) { if (cancellation.IsCancellationRequested) return false; diff --git a/src/Power.Core/CylinderSolver.cs b/src/Power.Core/CylinderSolver.cs index 54820fe..8c83377 100644 --- a/src/Power.Core/CylinderSolver.cs +++ b/src/Power.Core/CylinderSolver.cs @@ -12,13 +12,13 @@ internal sealed class CylinderCoupling internal CylinderCoupling(CompiledModel model) { - int[] nodes = model.Components.Where(c => c.Kind is ComponentKind.SealedCylinder or ComponentKind.GasCylinder).Select(c => c.A).Distinct().OrderBy(i => i).ToArray(); + int[] nodes = model.Components.Where(c => c.Kind is ComponentKind.SealedCylinder or ComponentKind.GasCylinder or ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber).Select(c => c.A).Distinct().OrderBy(i => i).ToArray(); Angles = nodes.Select(i => model.Nodes[i].Index).ToArray(); Components = new int[nodes.Length][]; Response = new double[nodes.Length][]; GearReaction = new double[nodes.Length][]; var gearCorrection = new double[model.GearComponents.Length]; for (int k = 0; k < nodes.Length; ++k) { - Components[k] = Enumerable.Range(0, model.ComponentCount).Where(i => (model.Cylinders[i] is not null || model.GasCylinders[i] is not null) && model.Components[i].A == nodes[k]).ToArray(); + Components[k] = Enumerable.Range(0, model.ComponentCount).Where(i => (model.Cylinders[i] is not null || model.GasCylinders[i] is not null || model.FuelChamberByComponent[i] >= 0 || model.CompressibleChamberByComponent[i] >= 0) && model.Components[i].A == nodes[k]).ToArray(); var response = new double[model.DynamicCount]; response[Angles[k] + 1] = 0.5 * model.Dt / model.Nodes[nodes[k]].Storage; if (!model.Dynamics.Solve(response)) @@ -85,11 +85,27 @@ private double Torque(int k, double angle, double delta, double[] energy) double torque = 0; foreach (int i in _coupling.Components[k]) { - if (_model.Cylinders[i] is { } sealedCylinder) torque += sealedCylinder.DiscreteTorque(angle, delta); + if (_model.FuelChamberByComponent[i] is int chamber && chamber >= 0) + { + if (!_model.FuelChamberWork(chamber, FuelState!, angle, delta, out _, out double fuelTorque, out _)) return double.NaN; + torque += fuelTorque; + } + else if (_model.CompressibleChamberByComponent[i] is int compressible && compressible >= 0) + { + if (!_model.CompressibleChamberWork(compressible, CompressibleState!, angle, delta, out _, out double pressureTorque, out _)) return double.NaN; + torque += pressureTorque; + } + else if (_model.Cylinders[i] is { } sealedCylinder) torque += sealedCylinder.DiscreteTorque(angle, delta); else { int gas = _model.Nodes[_model.Components[i].B].Index; - torque += _model.GasCylinders[i]!.DiscreteTorque(angle, delta, energy[gas] + .5 * (_combustion?.PreviewHeat(gas, angle + delta) ?? 0), _model.Gas!.Gases[gas].Gamma); + double heat = .5 * (_combustion?.PreviewHeat(gas, angle + delta) ?? 0); + if (_model.FiniteFilmByGas[gas] >= 0) + { + if (!_model.FiniteReceiverWork(i, FiniteFilms!, FiniteMixture!, energy, angle, delta, heat, out _, out double receiverTorque)) return double.NaN; + torque += receiverTorque; + } + else torque += _model.GasCylinders[i]!.DiscreteTorque(angle, delta, energy[gas] + heat, _model.Gas!.Gases[gas].Gamma); } } return torque; diff --git a/src/Power.Core/Definitions.cs b/src/Power.Core/Definitions.cs index e9cb0c0..0e6a419 100644 --- a/src/Power.Core/Definitions.cs +++ b/src/Power.Core/Definitions.cs @@ -10,11 +10,12 @@ public enum Unit NewtonMeterPerRadian, NewtonMeterSecondPerRadian, Kelvin, JoulePerKelvin, WattPerKelvin, Ohm, Henry, NewtonMeterPerAmpere, Ampere, Volt, Joule, Rpm, Degree, Meter, Millimeter, CubicMeter, Pascal, Bar, Kilogram, JoulePerKilogramKelvin, - Liter, SquareMeter, SquareMillimeter, KilogramPerSecond, Watt, Fraction, JoulePerKilogram, StateCode, NewtonMeterSecondSquaredPerRadianSquared, CubicMeterPerPascal, CubicMeterPerSecondPascal, CubicMeterPerSecondSqrtPascal, CubicMeterPerSecond, Newton, CubicMeterPerRadian, VoltPerPascal, VoltPerPascalSecond, Coulomb, Farad, AmpereHour, FractionPerPascal, FractionPerPascalSecond, MeterPerSecond, NewtonPerMeter, NewtonSecondPerMeter, KilogramPerCubicMeter, HenryPerMeter + Liter, SquareMeter, SquareMillimeter, KilogramPerSecond, Watt, Fraction, JoulePerKilogram, StateCode, NewtonMeterSecondSquaredPerRadianSquared, CubicMeterPerPascal, CubicMeterPerSecondPascal, CubicMeterPerSecondSqrtPascal, CubicMeterPerSecond, Newton, CubicMeterPerRadian, VoltPerPascal, VoltPerPascalSecond, Coulomb, Farad, AmpereHour, FractionPerPascal, FractionPerPascalSecond, MeterPerSecond, NewtonPerMeter, NewtonSecondPerMeter, KilogramPerCubicMeter, HenryPerMeter, NewtonSecond, + PascalSecondPerCubicMeter, PascalSecondSquaredPerCubicMeterSquared } -public enum Domain { Rotational = 1, Thermal = 2, Gas = 3, Hydraulic = 4, Battery = 5, Translational = 6 } -public enum ComponentKind { Shaft = 1, DcMotor, TorqueSource, ThermalLink, SealedCylinder, GasOrifice, GasHeatLink, GasCylinder, PremixedCombustion, Clutch, IdealGear, PlanetaryGear, TorqueConverter, HydraulicResistance, HydraulicOrifice, HydraulicClutch, HydraulicPump, HydraulicRelief, PressureController, BatteryMotor, ResistiveLoad, PressureDutyController, LinearSpring, HydraulicPiston, PistonClutch, ForceSource, HydraulicSpoolValve, GasPiston, GasFuelInjector, FuelFilm, LiquidFuelInjector, Solenoid, TravelStop, NeedleDriver, DualClutchController, DoublePinionPlanetaryGear, CarrierGear } +public enum Domain { Rotational = 1, Thermal = 2, Gas = 3, Hydraulic = 4, Battery = 5, Translational = 6, Fuel = 7, CompressibleFuel = 8, RelaxingFuel = 9 } +public enum ComponentKind { Shaft = 1, DcMotor, TorqueSource, ThermalLink, SealedCylinder, GasOrifice, GasHeatLink, GasCylinder, PremixedCombustion, Clutch, IdealGear, PlanetaryGear, TorqueConverter, HydraulicResistance, HydraulicOrifice, HydraulicClutch, HydraulicPump, HydraulicRelief, PressureController, BatteryMotor, ResistiveLoad, PressureDutyController, LinearSpring, HydraulicPiston, PistonClutch, ForceSource, HydraulicSpoolValve, GasPiston, GasFuelInjector, FuelFilm, LiquidFuelInjector, Solenoid, TravelStop, NeedleDriver, DualClutchController, DoublePinionPlanetaryGear, CarrierGear, HydraulicAtController, LiquidRailFeed, LiquidFuelTank, LiquidRailReturn, FuelRestriction, FuelHeatLink, FuelChamber, FuelCheckValve, FuelDischarge, FiniteFuelFilm, FuelInertialPipe, EquilibriumFuelDuct, CompressibleFuelChamber, CompressibleFuelNozzle, RelaxingFuelDuct } public enum Field { Angle = 1, Speed, Temperature, Current, Twist, Torque, @@ -23,7 +24,7 @@ public enum Field SourceWork = 16, HeatRejected, StoredEnergyChange, EnergyResidual, ReservoirEnthalpy = 20, MassResidual = 21, FuelMass = 22, FreshAirMass, ProductMass, ChemicalEnergy, FuelBurned, HeatReleased, - FuelEnergyIn, FuelResidual, FreshAirResidual, BurnFrontier, SlipSpeed, ClutchMode, FrictionHeat, TorqueAtB, TorqueAtC, ConstraintError, FluidHeat, SpeedRatio, ConverterDrive, VolumeFlow, HydraulicVolumeIn, HydraulicVolumeResidual, HydraulicWork, ClampForce, StaticCapacity, SlidingCapacity, HydraulicPower, SampledPressure, PressureError, IntegralVoltage, CommandVoltage, StateOfCharge, Charge, TerminalVoltage, PolarizationVoltage, BatteryCurrent, IntegralDuty, CommandDuty, Displacement, LinearSpeed, Force, RequestedFuelDose, DeliveredFuelDose, TotalFuelDelivered, EvaporatedFuelMass, FilmWallHeat, CopperHeat, PredictedFuelMass, PredictionTicks, DriverState, ClosingDelayTicks, RequestedGear, ActualGear, SelectedOddGear, SelectedEvenGear, ShiftPhase, SyncError, ControlFault + FuelEnergyIn, FuelResidual, FreshAirResidual, BurnFrontier, SlipSpeed, ClutchMode, FrictionHeat, TorqueAtB, TorqueAtC, ConstraintError, FluidHeat, SpeedRatio, ConverterDrive, VolumeFlow, HydraulicVolumeIn, HydraulicVolumeResidual, HydraulicWork, ClampForce, StaticCapacity, SlidingCapacity, HydraulicPower, SampledPressure, PressureError, IntegralVoltage, CommandVoltage, StateOfCharge, Charge, TerminalVoltage, PolarizationVoltage, BatteryCurrent, IntegralDuty, CommandDuty, Displacement, LinearSpeed, Force, RequestedFuelDose, DeliveredFuelDose, TotalFuelDelivered, EvaporatedFuelMass, FilmWallHeat, CopperHeat, PredictedFuelMass, PredictionTicks, DriverState, ClosingDelayTicks, RequestedGear, ActualGear, SelectedOddGear, SelectedEvenGear, ShiftPhase, SyncError, ControlFault, LockupState, ActuatorIntegralA, ActuatorIntegralB, ActuatorIntegralC, ActuatorIntegralD, ActuatorIntegralE, ActuatorIntegralF, TankState, FillFraction, CondensedFuelMass, VaporPartialPressure, SaturationPressure, CavitationMargin, VaporMass, VaporMassFraction, VaporVolumeFraction, ElasticEnergy, Entropy, SpecificEnthalpy, TransportEnergy, EntropyProduced, JetKineticEnergy, JetImpulse, ThroatPressure, ExitTemperature, ExitVelocity, Choked, ForwardVolume, ReverseVolume, KineticEnergy, EnergyAtA, EnergyAtB, Density, SoundSpeed, MassAtA, MassAtB, FluxRelativeUncertainty, EquilibriumVaporMassFraction, ChemicalAffinity, VaporMassResidual, VaporMassAtA, VaporMassAtB, TotalVaporDelivered } public enum SimulationStatus { Ok, InvalidTimeStep, InvalidInput, UnknownChannel, NumericalFailure, Busy, Cancelled, ControlledInput } public enum DiagnosticCode { Schema, Capacity, Id, Unit, Range, Connection, Channel, Solver } @@ -74,7 +75,19 @@ public sealed record NodeDefinition(uint Id, Domain Domain, Quantity Storage, Qu /// Required for, and only for, nodes. public GasDefinition? Gas { get; init; } public BatteryDefinition? Battery { get; init; } + public EquilibriumFuelDefinition? Fuel { get; init; } + public Quantity InitialVelocity { get; init; } + public Quantity InitialVaporMassFraction { get; init; } + /// Pure fuel: storage is reference vessel volume, initial is temperature, position is total mass. + public static NodeDefinition FuelVolume(uint id, double referenceVolume, double mass, double temperature, EquilibriumFuelDefinition material) => + new(id, Domain.Fuel, new(referenceVolume, Unit.CubicMeter), new(temperature, Unit.Kelvin), new(mass, Unit.Kilogram)) { Fuel = material }; + + public static NodeDefinition CompressibleFuelVolume(uint id, double volume, double mass, double temperature, EquilibriumFuelDefinition material, double velocity = 0) => + new(id, Domain.CompressibleFuel, new(volume, Unit.CubicMeter), new(temperature, Unit.Kelvin), new(mass, Unit.Kilogram)) { Fuel = material, InitialVelocity = new(velocity, Unit.MeterPerSecond) }; + + public static NodeDefinition RelaxingFuelVolume(uint id,double volume,double mass,double temperature,EquilibriumFuelDefinition material,double vaporMassFraction,double velocity=0) => + new(id,Domain.RelaxingFuel,new(volume,Unit.CubicMeter),new(temperature,Unit.Kelvin),new(mass,Unit.Kilogram)){Fuel=material,InitialVelocity=new(velocity,Unit.MeterPerSecond),InitialVaporMassFraction=new(vaporMassFraction,Unit.Fraction)}; public static NodeDefinition Rotor(uint id, double inertia, double speed = 0, double angle = 0) => new(id, Domain.Rotational, new(inertia, Unit.KilogramMeterSquared), new(speed, Unit.RadianPerSecond), new(angle, Unit.Radian)); @@ -170,6 +183,15 @@ public sealed record ComponentDefinition public TravelStopDefinition? TravelStop { get; init; } public NeedleDriverDefinition? NeedleDriver { get; init; } public DualClutchControllerDefinition? DualClutchController { get; init; } + public HydraulicAtControllerDefinition? HydraulicAtController { get; init; } + public LiquidRailFeedDefinition? LiquidRailFeed { get; init; } + public LiquidFuelTankDefinition? LiquidFuelTank { get; init; } + public LiquidRailReturnDefinition? LiquidRailReturn { get; init; } + public FuelChamberDefinition? FuelChamber { get; init; } + public CompressibleFuelNozzleDefinition? CompressibleNozzle { get; init; } + public FuelDischargeDefinition? FuelDischarge { get; init; } + public FuelInertialPipeDefinition? FuelPipe { get; init; } + public EquilibriumFuelDuctDefinition? FuelDuct { get; init; } /// Optional gas-orifice timing. InitialInput and its channel then specify peak opening. public ValveTimingDefinition? ValveTiming { get; init; } public WiebeCombustionDefinition? Combustion { get; init; } @@ -230,8 +252,16 @@ public static ComponentDefinition SolenoidCoil(uint id, uint slider, uint heat, { Id = id, Kind = ComponentKind.TravelStop, NodeA = slider, TravelStop = new() { MinimumPosition = new(minimum, Unit.Meter), MaximumPosition = new(maximum, Unit.Meter), Stiffness = new(stiffness, Unit.NewtonPerMeter) } }; public static ComponentDefinition NeedleDrive(uint id, uint crank, NeedleDriverDefinition driver) => new() { Id = id, Kind = ComponentKind.NeedleDriver, NodeA = crank, NeedleDriver = driver }; + public static ComponentDefinition AtControl(uint id, uint input, ulong requestChannel, int requestedRange, HydraulicAtControllerDefinition controller) => new() + { Id = id, Kind = ComponentKind.HydraulicAtController, NodeA = input, InputChannel = requestChannel, InitialInput = new(requestedRange, Unit.StateCode), HydraulicAtController = controller }; public static ComponentDefinition DctControl(uint id, uint engine, ulong requestedGearChannel, int requestedGear, DualClutchControllerDefinition controller) => new() { Id = id, Kind = ComponentKind.DualClutchController, NodeA = engine, InputChannel = requestedGearChannel, InitialInput = new(requestedGear, Unit.StateCode), DualClutchController = controller }; + public static ComponentDefinition RailReturn(uint id, uint receiver, LiquidRailReturnDefinition route) => new() + { Id=id,Kind=ComponentKind.LiquidRailReturn,NodeA=receiver,LiquidRailReturn=route }; + public static ComponentDefinition FuelTank(uint id, uint receiver, LiquidFuelTankDefinition tank) => new() + { Id=id, Kind=ComponentKind.LiquidFuelTank, NodeA=receiver, LiquidFuelTank=tank }; + public static ComponentDefinition RailFeed(uint id, uint receiver, LiquidRailFeedDefinition feed) => new() + { Id=id,Kind=ComponentKind.LiquidRailFeed,NodeA=receiver,LiquidRailFeed=feed }; public static ComponentDefinition LiquidFuelMeter(uint id, uint receiver, double area, double coefficient, ulong doseChannel, double doseKilograms, LiquidFuelInjectorDefinition injector) => new() { @@ -380,6 +410,36 @@ public static ComponentDefinition GasReservoir(uint id, uint a, double area, dou ReservoirPressure = new(pressure, Unit.Pascal), AmbientTemperature = new(temperature, Unit.Kelvin), InitialInput = new(opening, Unit.Fraction) }; + public static ComponentDefinition FiniteLiquidFilm(uint id, uint gas, uint wall, double conductance, FuelFilmDefinition definition) => + LiquidFilm(id, gas, wall, conductance, definition) with { Kind = ComponentKind.FiniteFuelFilm }; + public static ComponentDefinition FuelDischargeNozzle(uint id, uint source, uint receiver, FuelDischargeDefinition definition, + double areaSquareMeters, double dischargeCoefficient, ulong channel = 0, double opening = 1) => new() + { + Id = id, Kind = ComponentKind.FuelDischarge, NodeA = source, NodeB = receiver, FuelDischarge = definition, + Area = new(areaSquareMeters, Unit.SquareMeter), DischargeCoefficient = dischargeCoefficient, InputChannel = channel, InitialInput = new(opening, Unit.Fraction) + }; + public static ComponentDefinition RelaxingDuct(uint id,uint a,uint b,uint wall,EquilibriumFuelDuctDefinition definition) => + new(){Id=id,Kind=ComponentKind.RelaxingFuelDuct,NodeA=a,NodeB=b,HeatNode=wall,FuelDuct=definition}; + public static ComponentDefinition CompressibleNozzleValve(uint id, uint a, uint b, uint wall, CompressibleFuelNozzleDefinition definition, ulong input = 0, double opening = 1) => new() + { Id=id,Kind=ComponentKind.CompressibleFuelNozzle,NodeA=a,NodeB=b,HeatNode=wall,CompressibleNozzle=definition,InputChannel=input,InitialInput=new(opening,Unit.Fraction) }; + public static ComponentDefinition CompressibleChamber(uint id, uint shaft, uint fuel, FuelChamberDefinition geometry) => new() + { Id = id, Kind = ComponentKind.CompressibleFuelChamber, NodeA = shaft, NodeB = fuel, FuelChamber = geometry }; + public static ComponentDefinition FuelChamberPump(uint id, uint shaft, uint fuel, FuelChamberDefinition geometry) => new() + { Id = id, Kind = ComponentKind.FuelChamber, NodeA = shaft, NodeB = fuel, FuelChamber = geometry }; + public static ComponentDefinition EquilibriumDuct(uint id, uint a, uint b, uint wall, EquilibriumFuelDuctDefinition definition) => new() + { Id = id, Kind = ComponentKind.EquilibriumFuelDuct, NodeA = a, NodeB = b, HeatNode = wall, FuelDuct = definition }; + public static ComponentDefinition InertialFuelPipe(uint id, uint a, uint b, uint wall, FuelInertialPipeDefinition definition) => new() + { Id = id, Kind = ComponentKind.FuelInertialPipe, NodeA = a, NodeB = b, HeatNode = wall, FuelPipe = definition }; + public static ComponentDefinition FuelCheckValve(uint id, uint a, uint b, double conductance, ulong channel = 0, double opening = 1) => + FuelRestriction(id, a, b, conductance, channel, opening) with { Kind = ComponentKind.FuelCheckValve }; + public static ComponentDefinition FuelRestriction(uint id, uint a, uint b, double conductance, ulong channel = 0, double opening = 1) => new() + { + Id = id, Kind = ComponentKind.FuelRestriction, NodeA = a, NodeB = b, + Conductance = new(conductance, Unit.CubicMeterPerSecondPascal), InputChannel = channel, InitialInput = new(opening, Unit.Fraction) + }; + public static ComponentDefinition FuelHeatLink(uint id, uint fuel, uint wall, double conductance) => new() + { Id = id, Kind = ComponentKind.FuelHeatLink, NodeA = fuel, NodeB = wall, Conductance = new(conductance, Unit.WattPerKelvin) }; + /// Conductive heat exchange between a finite gas volume and a thermal node. public static ComponentDefinition GasHeatLink(uint id, uint gas, uint wall, double conductance) => new() { diff --git a/src/Power.Core/EquilibriumFuelDuct.cs b/src/Power.Core/EquilibriumFuelDuct.cs new file mode 100644 index 0000000..e6e25c5 --- /dev/null +++ b/src/Power.Core/EquilibriumFuelDuct.cs @@ -0,0 +1,210 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed record EquilibriumFuelDuctDefinition +{ + public IReadOnlyList Cells { get; init; } = []; + public Quantity Area { get; init; } + public Quantity LinearResistance { get; init; } + public Quantity QuadraticResistance { get; init; } + public Quantity FluidHeatFraction { get; init; } +} +internal sealed record CompiledCompressibleFuel(int Node, CompressibleFuel Law, CompressibleFuelPoint Initial, double Velocity, double HeatingValue) +{internal RelaxingFuel? Relaxation {get;init;}} +internal sealed record CompiledFuelDuct(int Component, int[] Ports, int Wall, double WallCapacity, double Area, double Linear, double Quadratic, double FluidFraction, double LineVolume); +internal sealed class CompressibleFuelState(int nodes, int ducts, bool moving = false, bool relaxing = false) +{ + internal readonly double[] Mass = new double[nodes], MassCorrection = new double[nodes], Momentum = new double[nodes], MomentumCorrection = new double[nodes], Energy = new double[nodes], EnergyCorrection = new double[nodes]; + internal readonly double[]? Volume = moving ? new double[nodes] : null; + internal readonly double[]? VaporMass=relaxing?new double[nodes]:null,VaporCorrection=relaxing?new double[nodes]:null,PhaseTick=relaxing?new double[nodes]:null; + internal readonly double[,]? PhaseHistory=relaxing?new double[nodes,3]:null,PhaseCorrection=relaxing?new double[nodes,3]:null; + internal readonly double[,]? VaporPorts=relaxing?new double[ducts,2]:null,VaporPortCorrection=relaxing?new double[ducts,2]:null; + // Histories: net mass at A/B, energy at A/B, friction/fluid/wall heat, entropy, wall impulse. + internal readonly double[,] History = new double[ducts,9], Correction = new double[ducts,9]; + internal readonly double[] TickMass = new double[ducts], TickImpulse = new double[ducts]; + internal void CopyFrom(CompressibleFuelState other) + { + if (Volume is not null) Array.Copy(other.Volume!, Volume, nodes); + if(VaporMass is not null){Array.Copy(other.VaporMass!,VaporMass,nodes);Array.Copy(other.VaporCorrection!,VaporCorrection!,nodes);Array.Copy(other.PhaseTick!,PhaseTick!,nodes);Array.Copy(other.PhaseHistory!,PhaseHistory!,PhaseHistory!.Length);Array.Copy(other.PhaseCorrection!,PhaseCorrection!,PhaseCorrection!.Length);} + if(VaporPorts is not null){Array.Copy(other.VaporPorts!,VaporPorts,VaporPorts.Length);Array.Copy(other.VaporPortCorrection!,VaporPortCorrection!,VaporPortCorrection!.Length);} + Array.Copy(other.Mass,Mass,nodes);Array.Copy(other.MassCorrection,MassCorrection,nodes);Array.Copy(other.Momentum,Momentum,nodes);Array.Copy(other.MomentumCorrection,MomentumCorrection,nodes); + Array.Copy(other.Energy,Energy,nodes);Array.Copy(other.EnergyCorrection,EnergyCorrection,nodes);Array.Copy(other.History,History,History.Length);Array.Copy(other.Correction,Correction,Correction.Length); + Array.Copy(other.TickMass,TickMass,ducts);Array.Copy(other.TickImpulse,TickImpulse,ducts); + } + internal void Add(int d,int field,double value)=>Numeric.Accumulate(value,ref History[d,field],ref Correction[d,field]); + internal void BeginTick(){Array.Clear(TickMass,0,ducts);Array.Clear(TickImpulse,0,ducts);if(PhaseTick is not null)Array.Clear(PhaseTick,0,nodes);} + internal bool EndTick(double seconds){if(PhaseTick is not null)for(int i=0;i=0?0:1;Numeric.Accumulate(Math.Abs(PhaseTick[i]),ref PhaseHistory![i,j],ref PhaseCorrection![i,j]);PhaseTick[i]/=seconds;}for(int i=0;iMass[i])return false;foreach(double x in PhaseHistory!)if(!Numeric.Finite(x))return false;foreach(double x in PhaseCorrection!)if(!Numeric.Finite(x))return false;} + if(VaporPorts is not null){foreach(double x in VaporPorts)if(!Numeric.Finite(x))return false;foreach(double x in VaporPortCorrection!)if(!Numeric.Finite(x))return false;} + if (Volume is not null) foreach (double v in Volume) if (!Numeric.Finite(v) || v <= 0) return false; + for(int i=0;iFuelDucts.Any(d=>Components[d.Component].Kind==ComponentKind.EquilibriumFuelDuct); + internal int RelaxingFuelCount {get;private set;} + internal int RelaxingDuctCount {get;private set;} + public bool HasRelaxingFuel=>RelaxingFuelCount!=0; + private void CompileCompressibleFuels(NodeDefinition[] definitions) + { + var result=new List(); + for(int i=0;iConvert(q,unit,n.Id,"fuel."+field); + Require(d.Compliance==default,DiagnosticCode.Schema,n.Id,"fuel.compliance","Compressible fluid uses a liquid bulk modulus and rigid volume; omit wall compliance."); + CompressibleFuel law; + try + { + law=new(new(new(Q(d.LiquidSpecificHeat,Unit.JoulePerKilogramKelvin,"liquid_specific_heat"),Q(d.VaporSpecificHeat,Unit.JoulePerKilogramKelvin,"vapor_specific_heat"),Q(d.ReferenceTemperature,Unit.Kelvin,"reference_temperature"),Q(d.LatentInternalEnergy,Unit.JoulePerKilogram,"latent_internal_energy"),0), + Q(d.GasConstant,Unit.JoulePerKilogramKelvin,"gas_constant"),Q(d.ReferencePressure,Unit.Pascal,"reference_pressure"),Q(d.MinimumTemperature,Unit.Kelvin,"minimum_temperature"),Q(d.MaximumTemperature,Unit.Kelvin,"maximum_temperature")), + Q(d.LiquidDensity,Unit.KilogramPerCubicMeter,"liquid_density"),Q(d.LiquidBulkModulus,Unit.Pascal,"liquid_bulk_modulus"),Q(d.MaximumPressure,Unit.Pascal,"maximum_pressure")); + } + catch(ModelCompileException){throw;} + catch(ArgumentException ex){throw new ModelCompileException(DiagnosticCode.Range,n.Id,"fuel",ex.Message);} + double velocity=Q(definitions[i].InitialVelocity,Unit.MeterPerSecond,"initial_velocity"),heating=Q(d.LowerHeatingValue,Unit.JoulePerKilogram,"lower_heating_value"); + CompressibleFuelPoint point;RelaxingFuel? relaxation=null; + if(n.Domain==Domain.RelaxingFuel) + { + double x=Q(definitions[i].InitialVaporMassFraction,Unit.Fraction,"initial_vapor_mass_fraction"); + try{relaxation=new(law,d.PhaseRelaxationTimeNanoseconds);}catch(ArgumentException error){throw new ModelCompileException(DiagnosticCode.Range,n.Id,"fuel.phase_relaxation_time_ns",error.Message);} + Require(relaxation.Evaluate(n.Position/n.Storage,n.Initial,x,out _),DiagnosticCode.Range,n.Id,"fuel.initial","Use a representable fixed-quality density/temperature state within declared bounds."); + relaxation.Evaluate(n.Position/n.Storage,n.Initial,x,out var p);point=p.Fluid; + } + else{Require(d.PhaseRelaxationTimeNanoseconds==0,DiagnosticCode.Schema,n.Id,"fuel.phase_relaxation_time_ns","Finite relaxation requires relaxing_fuel domain.");Require(law.Evaluate(n.Position/n.Storage,n.Initial,out _),DiagnosticCode.Range,n.Id,"fuel.initial","Use valid equilibrium density and temperature.");law.Evaluate(n.Position/n.Storage,n.Initial,out point);} + Require(heating>0,DiagnosticCode.Range,n.Id,"fuel.lower_heating_value","Use positive heating value."); + Require(GearReference.Finite(n.Position*velocity,n.Position*(point.SpecificInternalEnergyJoulesPerKilogram+.5*velocity*velocity),n.Position*heating,0),DiagnosticCode.Range,n.Id,"initial_velocity","Initial mass, energy and momentum must be representable."); + result.Add(new(i,law,point,velocity,heating){Relaxation=relaxation}); + } + CompressibleFuels=result.ToArray();RelaxingFuelCount=result.Count(f=>f.Relaxation is not null);CompressibleCellOwner=new int[result.Count];Array.Fill(CompressibleCellOwner,-1); + } + private void CompileFuelDucts(ComponentDefinition[] definitions) + { + FuelDuctByComponent=new int[Components.Length];Array.Fill(FuelDuctByComponent,-1);var result=new List(); + for(int i=0;i=1 and <=24,DiagnosticCode.Capacity,c.Id,"fuel_duct.cells","Declare 1 through 24 ordered, distinct compressible fuel cells."); + var ports=new int[d.Cells!.Count+2];ports[0]=Nodes[c.A].Index;ports[ports.Length-1]=Nodes[c.B].Index;double volume=0; + for(int j=0;jn.Id==d.Cells[j]); + Require(node>=0&&Nodes[node].Domain==domain&&node!=c.A&&node!=c.B,DiagnosticCode.Connection,c.Id,"fuel_duct.cells","Internal cells must be distinct compressible fuel nodes separate from both reservoirs."); + int slot=Nodes[node].Index;Require(CompressibleCellOwner[slot]<0,DiagnosticCode.Connection,c.Id,"fuel_duct.cells","Each internal cell has exactly one duct owner.");CompressibleCellOwner[slot]=i;ports[j+1]=slot;volume+=Nodes[node].Storage; + } + var reference=CompressibleFuels[ports[0]]; + foreach(int slot in ports)Require(CompressibleCompatible(reference,CompressibleFuels[slot]),DiagnosticCode.Connection,c.Id,"fuel_duct.material","Duct reservoirs and cells require identical caloric, phase, bulk-modulus and heating-value definitions."); + double area=Convert(d.Area,Unit.SquareMeter,c.Id,"fuel_duct.area"),linear=Convert(d.LinearResistance,Unit.PascalSecondPerCubicMeter,c.Id,"fuel_duct.linear_resistance"),quadratic=Convert(d.QuadraticResistance,Unit.PascalSecondSquaredPerCubicMeterSquared,c.Id,"fuel_duct.quadratic_resistance"),fraction=Convert(d.FluidHeatFraction,Unit.Fraction,c.Id,"fuel_duct.fluid_heat_fraction"); + Require(area>0&&linear>=0&&quadratic>=0&&fraction is >=0 and <=1&&Numeric.Finite(volume/area),DiagnosticCode.Range,c.Id,"fuel_duct","Declare positive area, nonnegative resistance and heat fraction in [0,1]."); + FuelDuctByComponent[i]=result.Count;result.Add(new(i,ports,Nodes[c.Heat].Index,Nodes[c.Heat].Storage,area,linear,quadratic,fraction,volume)); + } + FuelDucts=result.ToArray();RelaxingDuctCount=result.Count(d=>Components[d.Component].Kind==ComponentKind.RelaxingFuelDuct); + foreach(var duct in FuelDucts) + { + Require(CompressibleCellOwner[duct.Ports[0]]<0&&CompressibleCellOwner[duct.Ports[duct.Ports.Length-1]]<0,DiagnosticCode.Connection,Components[duct.Component].Id,"fuel_duct.ports","A reservoir cannot also be an internal duct cell."); + } + for(int i=0;i=0||CompressibleFuels[i].Velocity==0,DiagnosticCode.Range,Nodes[CompressibleFuels[i].Node].Id,"initial_velocity","Finite reservoirs are stationary; nonzero velocity belongs to an internal duct cell."); + } + private static bool CompressibleCompatible(CompiledCompressibleFuel a,CompiledCompressibleFuel b) + { + var x=a.Law;var y=b.Law;var m=x.Material;var n=y.Material; + return a.HeatingValue==b.HeatingValue&&x.LiquidBulkModulusPascals==y.LiquidBulkModulusPascals&&x.ReferenceLiquidDensityKilogramsPerCubicMeter==y.ReferenceLiquidDensityKilogramsPerCubicMeter&&x.MaximumPressurePascals==y.MaximumPressurePascals&& + m.GasConstantJoulesPerKilogramKelvin==n.GasConstantJoulesPerKilogramKelvin&&m.ReferencePressurePascals==n.ReferencePressurePascals&&m.MinimumTemperatureKelvin==n.MinimumTemperatureKelvin&&m.MaximumTemperatureKelvin==n.MaximumTemperatureKelvin&& + m.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin==n.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin&&m.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin==n.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin&&m.Caloric.SaturationTemperatureKelvin==n.Caloric.SaturationTemperatureKelvin&&m.Caloric.LatentInternalEnergyJoulesPerKilogram==n.Caloric.LatentInternalEnergyJoulesPerKilogram; + } +} + +internal sealed class EquilibriumFuelDuctSolver(CompiledModel model) +{ + private readonly CompressibleFuelPoint[] _point=new CompressibleFuelPoint[model.CompressibleFuels.Length]; + private readonly double[] _dv=new double[model.CompressibleFuels.Length]; + private readonly double[] _dm=new double[model.CompressibleFuels.Length],_dp=new double[model.CompressibleFuels.Length],_de=new double[model.CompressibleFuels.Length]; + internal static bool Point(CompiledModel model,CompressibleFuelState s,int i,out CompressibleFuelPoint p) + { + var d=model.CompressibleFuels[i];double m=s.Mass[i]; + double density=m/model.CompressibleVolume(s,i),energy=s.Energy[i]/m-.5*(s.Momentum[i]/m)*(s.Momentum[i]/m); + if(d.Relaxation is {} law){bool ok=law.Flash(density,energy,s.VaporMass![i]/m,out var q);p=q.Fluid;return ok;} + return d.Law.Flash(density,energy,out p); + } + internal bool Advance(CompressibleFuelState s,double[] wallTemperature,double duration) + { + for(int index=0;index0;++iteration) + { + if(iteration>=4096)return false;double speed=0,minVolume=double.PositiveInfinity,entropyBefore=0,entropyScale=duct.WallCapacity; + foreach(int i in ports) + { + if(!Point(model,s,i,out _point[i]))return false; + double velocity=s.Momentum[i]/s.Mass[i];speed=Math.Max(speed,Math.Abs(velocity)+model.CompressibleFuels[i].Law.AcousticSpeedBoundMetersPerSecond); + minVolume=Math.Min(minVolume,model.CompressibleVolume(s,i));entropyBefore+=s.Mass[i]*_point[i].SpecificEntropyJoulesPerKilogramKelvin; + entropyScale+=s.Mass[i]*(_point[i].IsochoricHeatCapacityJoulesPerKilogramKelvin+Math.Abs(_point[i].SpecificEntropyJoulesPerKilogramKelvin));_dm[i]=_dp[i]=_de[i]=_dv[i]=0; + } + double h=Math.Min(remaining,.2*minVolume/(duct.Area*speed));if(!Numeric.Finite(h)||h<=0)return false; + double massA=0,massB=0,energyA=0,energyB=0,impulse=0,vaporA=0,vaporB=0; + for(int face=0;face0)_dp[a]-=momentum;else{massA=mass;energyA=energy;impulse-=momentum;} + if(face+1Explicit pure-fuel caloric reference and elastic-vessel bounds; all quantities carry SI units. +public sealed record EquilibriumFuelDefinition +{ + public Quantity Compliance { get; init; } + public Quantity LiquidBulkModulus { get; init; } + public ulong PhaseRelaxationTimeNanoseconds { get; init; } + public Quantity LiquidDensity { get; init; } + public Quantity MaximumPressure { get; init; } + public Quantity GasConstant { get; init; } + public Quantity VaporSpecificHeat { get; init; } + public Quantity LiquidSpecificHeat { get; init; } + public Quantity ReferenceTemperature { get; init; } + public Quantity LatentInternalEnergy { get; init; } + public Quantity ReferencePressure { get; init; } + public Quantity MinimumTemperature { get; init; } + public Quantity MaximumTemperature { get; init; } + public Quantity LowerHeatingValue { get; init; } +} + +internal sealed record CompiledFuelVolume(int Node, CompliantFuelVolume Law, CompliantFuelPoint Initial, double HeatingValue); +internal sealed record CompiledFuelLink(int Component, int A, int B, double Conductance, bool Heat, double WallCapacity, bool OneWay); + +internal sealed class EquilibriumFuelState +{ + internal readonly double[] Mass, MassCorrection, Energy, EnergyCorrection; + internal readonly double[]? ReferenceVolume; + internal readonly double[] Flow, VolumeFlow, Transferred, TransferCorrection, Enthalpy, EnthalpyCorrection, Entropy, EntropyCorrection; + internal EquilibriumFuelState(int volumes, int links, bool moving = false) + { + ReferenceVolume = moving ? new double[volumes] : null; + Mass = new double[volumes]; MassCorrection = new double[volumes]; Energy = new double[volumes]; EnergyCorrection = new double[volumes]; + Flow = new double[links]; VolumeFlow = new double[links]; Transferred = new double[links]; TransferCorrection = new double[links]; + Enthalpy = new double[links]; EnthalpyCorrection = new double[links]; Entropy = new double[links]; EntropyCorrection = new double[links]; + } + internal void CopyFrom(EquilibriumFuelState other) + { + if (ReferenceVolume is not null) Array.Copy(other.ReferenceVolume!, ReferenceVolume, Mass.Length); + Array.Copy(other.Mass, Mass, Mass.Length); Array.Copy(other.MassCorrection, MassCorrection, Mass.Length); + Array.Copy(other.Energy, Energy, Energy.Length); Array.Copy(other.EnergyCorrection, EnergyCorrection, Energy.Length); + Array.Copy(other.Flow, Flow, Flow.Length); Array.Copy(other.VolumeFlow, VolumeFlow, Flow.Length); + Array.Copy(other.Transferred, Transferred, Flow.Length); Array.Copy(other.TransferCorrection, TransferCorrection, Flow.Length); + Array.Copy(other.Enthalpy, Enthalpy, Flow.Length); Array.Copy(other.EnthalpyCorrection, EnthalpyCorrection, Flow.Length); + Array.Copy(other.Entropy, Entropy, Flow.Length); Array.Copy(other.EntropyCorrection, EntropyCorrection, Flow.Length); + } + internal void BeginTick() { Array.Clear(Flow, 0, Flow.Length); Array.Clear(VolumeFlow, 0, Flow.Length); } + internal bool EndTick(double seconds) + { + for (int i = 0; i < Flow.Length; ++i) { Flow[i] /= seconds; VolumeFlow[i] /= seconds; } + return Finite(); + } + internal bool Finite() + { + for (int i = 0; i < Mass.Length; ++i) + if (Mass[i] <= 0 || !GearReference.Finite(Mass[i], MassCorrection[i], Energy[i], EnergyCorrection[i])) return false; + if (ReferenceVolume is not null) foreach (double value in ReferenceVolume) if (!Numeric.Finite(value) || value <= 0) return false; + for (int i = 0; i < Flow.Length; ++i) + if (!GearReference.Finite(Flow[i], VolumeFlow[i], Transferred[i], TransferCorrection[i]) || + !GearReference.Finite(Enthalpy[i], EnthalpyCorrection[i], Entropy[i], EntropyCorrection[i])) return false; + return true; + } + internal ulong Hash(ulong hash) + { + if (ReferenceVolume is not null) foreach (double value in ReferenceVolume) hash = Numeric.Hash(hash, value); + for (int i = 0; i < Mass.Length; ++i) + { hash = Numeric.Hash(hash, Mass[i]); hash = Numeric.Hash(hash, MassCorrection[i]); hash = Numeric.Hash(hash, Energy[i]); hash = Numeric.Hash(hash, EnergyCorrection[i]); } + for (int i = 0; i < Flow.Length; ++i) + { + hash = Numeric.Hash(hash, Flow[i]); hash = Numeric.Hash(hash, VolumeFlow[i]); + hash = Numeric.Hash(hash, Transferred[i]); hash = Numeric.Hash(hash, TransferCorrection[i]); + hash = Numeric.Hash(hash, Enthalpy[i]); hash = Numeric.Hash(hash, EnthalpyCorrection[i]); + hash = Numeric.Hash(hash, Entropy[i]); hash = Numeric.Hash(hash, EntropyCorrection[i]); + } + return hash; + } +} + +public sealed partial class CompiledModel +{ + internal CompiledFuelVolume[] FuelVolumes { get; private set; } = []; + internal CompiledFuelLink[] FuelLinks { get; private set; } = []; + internal int[] FuelByNode { get; private set; } = []; + internal int[] FuelLinkByComponent { get; private set; } = []; + public bool HasEquilibriumFuelNetwork => FuelVolumes.Length != 0; + + private void CompileFuelVolumes(NodeDefinition[] definitions) + { + FuelByNode = new int[Nodes.Length]; Array.Fill(FuelByNode, -1); + var volumes = new List(); + for (int i = 0; i < Nodes.Length; ++i) + { + if (Nodes[i].Domain != Domain.Fuel) continue; + var n = Nodes[i]; var d = definitions[i].Fuel!; + Require(d.PhaseRelaxationTimeNanoseconds==0,DiagnosticCode.Schema,n.Id,"fuel.phase_relaxation_time_ns","Phase relaxation belongs only to relaxing_fuel nodes."); + Require(d.LiquidBulkModulus == default, DiagnosticCode.Schema, n.Id, "fuel.liquid_bulk_modulus", "Bulk modulus applies only to compressible_fuel nodes."); + double Q(Quantity q, Unit unit, string field) => Convert(q, unit, n.Id, "fuel." + field); + double cv = Q(d.VaporSpecificHeat, Unit.JoulePerKilogramKelvin, "vapor_specific_heat"), + cl = Q(d.LiquidSpecificHeat, Unit.JoulePerKilogramKelvin, "liquid_specific_heat"), + reference = Q(d.ReferenceTemperature, Unit.Kelvin, "reference_temperature"), + latent = Q(d.LatentInternalEnergy, Unit.JoulePerKilogram, "latent_internal_energy"), + r = Q(d.GasConstant, Unit.JoulePerKilogramKelvin, "gas_constant"), + pressure = Q(d.ReferencePressure, Unit.Pascal, "reference_pressure"), + min = Q(d.MinimumTemperature, Unit.Kelvin, "minimum_temperature"), max = Q(d.MaximumTemperature, Unit.Kelvin, "maximum_temperature"), + compliance = Q(d.Compliance, Unit.CubicMeterPerPascal, "compliance"), density = Q(d.LiquidDensity, Unit.KilogramPerCubicMeter, "liquid_density"), + limit = Q(d.MaximumPressure, Unit.Pascal, "maximum_pressure"), heating = Q(d.LowerHeatingValue, Unit.JoulePerKilogram, "lower_heating_value"); + Require(heating > 0, DiagnosticCode.Range, n.Id, "fuel.lower_heating_value", "Declare a positive finite fuel heating value; research data stays unverified."); + CompliantFuelVolume law; + try { law = new(new(new(cl, cv, reference, latent, 0), r, pressure, min, max), n.Storage, compliance, density, limit); } + catch (ArgumentException error) { throw new ModelCompileException(DiagnosticCode.Range, n.Id, "fuel", error.Message); } + Require(law.Evaluate(n.Initial, n.Position, out var point) == FuelVolumeStatus.Success && Numeric.Finite(n.Position * heating), + DiagnosticCode.Range, n.Id, "fuel.initial", "Use positive total mass and temperature inside the declared vessel/material bounds."); + FuelByNode[i] = volumes.Count; volumes.Add(new(i, law, point, heating)); + } + FuelVolumes = volumes.ToArray(); + } + + private void CompileFuelLinks() + { + FuelLinkByComponent = new int[Components.Length]; Array.Fill(FuelLinkByComponent, -1); + var links = new List(); + for (int i = 0; i < Components.Length; ++i) + { + var c = Components[i]; if (c.Kind is not (ComponentKind.FuelRestriction or ComponentKind.FuelHeatLink or ComponentKind.FuelCheckValve)) continue; + int a = FuelByNode[c.A]; bool heat = c.Kind == ComponentKind.FuelHeatLink; + int b = heat ? Nodes[c.B].Index : FuelByNode[c.B]; + if (!heat) Require(FuelCompatible(FuelVolumes[a], FuelVolumes[b]), DiagnosticCode.Connection, c.Id, "fuel.material", + "Connected fuel volumes require equal density, caloric/phase reference, temperature limits and heating value."); + FuelLinkByComponent[i] = links.Count; links.Add(new(i, a, b, c.P0, heat, heat ? Nodes[c.B].Storage : 0, c.Kind == ComponentKind.FuelCheckValve)); + } + FuelLinks = links.ToArray(); + } + + private static bool FuelCompatible(CompiledFuelVolume a, CompiledFuelVolume b) + { + var x = a.Law.Material; var y = b.Law.Material; var cx = x.Caloric; var cy = y.Caloric; + return a.HeatingValue == b.HeatingValue && a.Law.LiquidDensityKilogramsPerCubicMeter == b.Law.LiquidDensityKilogramsPerCubicMeter && + x.GasConstantJoulesPerKilogramKelvin == y.GasConstantJoulesPerKilogramKelvin && x.ReferencePressurePascals == y.ReferencePressurePascals && + x.MinimumTemperatureKelvin == y.MinimumTemperatureKelvin && x.MaximumTemperatureKelvin == y.MaximumTemperatureKelvin && + cx.LiquidSpecificHeatJoulesPerKilogramKelvin == cy.LiquidSpecificHeatJoulesPerKilogramKelvin && cx.VaporSpecificHeatJoulesPerKilogramKelvin == cy.VaporSpecificHeatJoulesPerKilogramKelvin && + cx.SaturationTemperatureKelvin == cy.SaturationTemperatureKelvin && cx.LatentInternalEnergyJoulesPerKilogram == cy.LatentInternalEnergyJoulesPerKilogram; + } +} + +/// +/// Homogeneous dissipative reference-volume flow, with no resolved link inertia or choking. +/// Pairwise backward Euler uses donor enthalpy at the accepted end state; identical mass +/// and energy transfers enter both vessels. Finite-bath heat is another conservative substep. +/// +internal sealed class EquilibriumFuelSolver(CompiledModel model) +{ + private readonly Factorization _factor = new(2); + private readonly double[,] _jacobian = new double[2, 2]; + private readonly double[] _correction = new double[2]; + + internal bool Advance(EquilibriumFuelState state, double[] temperature, double[] inputs, double seconds) + { + for (int i = 0; i < model.FuelLinks.Length; ++i) + { + var link = model.FuelLinks[i]; + if (link.Heat) + { + if (model.FuelVolumes[link.A].Law.AdvanceHeatAtReferenceVolume(state.Mass[link.A], state.Energy[link.A], Reference(model.FuelVolumes[link.A], state, link.A), temperature[link.B], link.WallCapacity, + link.Conductance, seconds, out var heat) != FuelVolumeStatus.Success) return false; + Numeric.Accumulate(heat.HeatFromWallJoules, ref state.Energy[link.A], ref state.EnergyCorrection[link.A]); + temperature[link.B] = heat.WallTemperatureKelvin; + state.Flow[i] += heat.HeatFromWallJoules; + Numeric.Accumulate(heat.HeatFromWallJoules, ref state.Enthalpy[i], ref state.EnthalpyCorrection[i]); + Numeric.Accumulate(heat.EntropyChangeJoulesPerKelvin, ref state.Entropy[i], ref state.EntropyCorrection[i]); + } + else if (inputs[link.Component] != 0 && !Transfer(state, i, link, seconds * link.Conductance * inputs[link.Component])) return false; + } + return state.Finite(); + } + + internal static bool Point(CompiledFuelVolume volume, EquilibriumFuelState state, int slot, out CompliantFuelPoint point) => + volume.Law.FlashAtReferenceVolume(state.Mass[slot], state.Energy[slot], Reference(volume, state, slot), out point) == FuelVolumeStatus.Success; + + private static double Reference(CompiledFuelVolume volume, EquilibriumFuelState state, int slot) => state.ReferenceVolume is null ? volume.Law.ReferenceVolumeCubicMeters : state.ReferenceVolume[slot]; + + // Partial derivatives at fixed M,E, including elastic storage and coexistence. + internal static void Derivatives(CompliantFuelVolume law, CompliantFuelPoint p, out double pm, out double pe, out double hm, out double he, out double vm, out double ve, double referenceVolumeCubicMeters) + { + double r = law.Material.GasConstantJoulesPerKilogramKelvin, density = law.LiquidDensityKilogramsPerCubicMeter; + double cv = law.Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = law.Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double ul = cl * p.TemperatureKelvin + law.Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram, em, pt; + if (p.Phase == FuelVolumePhase.Liquid) { pm = 1 / density / law.ComplianceCubicMetersPerPascal; pe = 0; } + else + { + double direct; + if (p.Phase == FuelVolumePhase.Vapor) + { + double denominator = referenceVolumeCubicMeters + 2 * law.ComplianceCubicMetersPerPascal * p.PressurePascals; + direct = r * p.TemperatureKelvin / denominator; pt = p.MassKilograms * r / denominator; + em = cv * p.TemperatureKelvin + law.ComplianceCubicMetersPerPascal * p.PressurePascals * direct; + } + else + { + law.Saturation(p.TemperatureKelvin, out var sat); direct = 0; pt = sat.PressureDerivativePascalsPerKelvin; + em = ul - law.Material.LatentInternalEnergy(p.TemperatureKelvin) / density / + (sat.VaporSpecificVolumeCubicMetersPerKilogram - 1 / density); + } + pe = pt / p.HeatCapacityJoulesPerKelvin; pm = direct - pe * em; + } + hm = (p.VolumeCubicMeters * pm - p.SpecificEnthalpyJoulesPerKilogram) / p.MassKilograms; + he = (1 + p.VolumeCubicMeters * pe) / p.MassKilograms; + vm = (law.ComplianceCubicMetersPerPascal * pm - p.VolumeCubicMeters / p.MassKilograms) / p.MassKilograms; + ve = law.ComplianceCubicMetersPerPascal * pe / p.MassKilograms; + } + + private bool Transfer(EquilibriumFuelState state, int slot, CompiledFuelLink link, double kh) + { + if (!Point(model.FuelVolumes[link.A], state, link.A, out var pa) || !Point(model.FuelVolumes[link.B], state, link.B, out var pb)) return false; + if (pa.PressurePascals == pb.PressurePascals || kh == 0 || link.OneWay && pa.PressurePascals < pb.PressurePascals) return true; + bool forward = pa.PressurePascals > pb.PressurePascals; + int source = forward ? link.A : link.B, sink = forward ? link.B : link.A; + var a = model.FuelVolumes[source]; var b = model.FuelVolumes[sink]; + double m0 = state.Mass[source], m1 = state.Mass[sink], e0 = state.Energy[source], e1 = state.Energy[sink]; + double massScale = Math.Min(m0, m1), energyScale = Math.Max(Math.Abs(e0) + Math.Abs(e1), massScale * a.Law.Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin * pa.TemperatureKelvin); + double referenceA = Reference(a, state, source), referenceB = Reference(b, state, sink); + double maximumMassB = b.Law.LiquidDensityKilogramsPerCubicMeter * (referenceB + b.Law.ComplianceCubicMetersPerPascal * b.Law.MaximumPressurePascals); + double q = 0, energy = 0; + bool Evaluate(double mass, double transfer, bool derivative, out CompliantFuelPoint left, out CompliantFuelPoint right, out double r0, out double r1, out double norm) + { + left = right = default; r0 = r1 = norm = double.PositiveInfinity; + if (mass < 0 || mass >= m0 || m1 + mass > maximumMassB || + a.Law.FlashAtReferenceVolume(m0 - mass, e0 - transfer, referenceA, out left) != FuelVolumeStatus.Success || + b.Law.FlashAtReferenceVolume(m1 + mass, e1 + transfer, referenceB, out right) != FuelVolumeStatus.Success) return false; + double v = left.VolumeCubicMeters / left.MassKilograms, dp = left.PressurePascals - right.PressurePascals; + r0 = mass - kh * dp / v; r1 = transfer - mass * left.SpecificEnthalpyJoulesPerKilogram; + if (model.HasFuelChambers || link.OneWay) + { + double massTolerance = 128 * GearReference.Epsilon * (mass + kh * (left.PressurePascals + right.PressurePascals) * left.MassKilograms / left.VolumeCubicMeters); + double energyTolerance = 128 * GearReference.Epsilon * (Math.Abs(transfer) + mass * (Math.Abs(left.SpecificEnthalpyJoulesPerKilogram) + left.HeatCapacityJoulesPerKelvin * left.TemperatureKelvin / left.MassKilograms)); + if (!Numeric.Finite(massTolerance) || !Numeric.Finite(energyTolerance)) return false; + norm = Math.Max(Math.Abs(r0) / massTolerance, energyTolerance == 0 ? (r1 == 0 ? 0 : double.PositiveInfinity) : Math.Abs(r1) / energyTolerance); + } + else norm = Math.Max(Math.Abs(r0) / massScale, Math.Abs(r1) / energyScale); + if (derivative) + { + Derivatives(a.Law, left, out double am, out double ae, out double hm, out double he, out double vm, out double ve, referenceA); + Derivatives(b.Law, right, out double bm, out double be, out _, out _, out _, out _, referenceB); + _jacobian[0, 0] = 1 + kh / v * (am + bm - dp * vm / v); + _jacobian[0, 1] = kh / v * (ae + be - dp * ve / v) * energyScale / massScale; + _jacobian[1, 0] = (-left.SpecificEnthalpyJoulesPerKilogram + mass * hm) * massScale / energyScale; + _jacobian[1, 1] = 1 + mass * he; + } + return Numeric.Finite(norm); + } + CompliantFuelPoint endA = default, endB = default; + bool converged = false; + for (int iteration = 0; iteration < 40; ++iteration) + { + if (!Evaluate(q, energy, true, out endA, out endB, out double rm, out double re, out double norm)) return false; + double toleranceMass = 128 * GearReference.Epsilon * (q + kh * (endA.PressurePascals + endB.PressurePascals) * endA.MassKilograms / endA.VolumeCubicMeters); + double toleranceEnergy = 128 * GearReference.Epsilon * (Math.Abs(energy) + q * (Math.Abs(endA.SpecificEnthalpyJoulesPerKilogram) + endA.HeatCapacityJoulesPerKelvin * endA.TemperatureKelvin / endA.MassKilograms)); + if (Math.Abs(rm) <= toleranceMass && Math.Abs(re) <= toleranceEnergy) { converged = true; break; } + _correction[0] = -rm / massScale; _correction[1] = -re / energyScale; + if (!_factor.Refactor(_jacobian) || !_factor.Solve(_correction)) return false; + bool accepted = false; + double fraction = 1; + for (int search = 0; search < 24; ++search, fraction *= .5) + { + double nextQ = q + fraction * massScale * _correction[0], nextEnergy = energy + fraction * energyScale * _correction[1]; + if (Evaluate(nextQ, nextEnergy, false, out _, out _, out _, out _, out double nextNorm) && nextNorm < norm) + { q = nextQ; energy = nextEnergy; accepted = true; break; } + } + if (!accepted) return false; + } + if (!converged || endA.PressurePascals < endB.PressurePascals - 128 * GearReference.Epsilon * endA.PressurePascals) return false; + double entropy = endA.EntropyJoulesPerKelvin + endB.EntropyJoulesPerKelvin - pa.EntropyJoulesPerKelvin - pb.EntropyJoulesPerKelvin; + double entropyScale = (endA.HeatCapacityJoulesPerKelvin + endB.HeatCapacityJoulesPerKelvin) + Math.Abs(pa.EntropyJoulesPerKelvin) + Math.Abs(pb.EntropyJoulesPerKelvin); + if (entropy < -256 * GearReference.Epsilon * entropyScale) return false; + Numeric.Accumulate(-q, ref state.Mass[source], ref state.MassCorrection[source]); Numeric.Accumulate(q, ref state.Mass[sink], ref state.MassCorrection[sink]); + Numeric.Accumulate(-energy, ref state.Energy[source], ref state.EnergyCorrection[source]); Numeric.Accumulate(energy, ref state.Energy[sink], ref state.EnergyCorrection[sink]); + double sign = forward ? 1 : -1; + state.Flow[slot] += sign * q; state.VolumeFlow[slot] += sign * q * endA.VolumeCubicMeters / endA.MassKilograms; + Numeric.Accumulate(sign * q, ref state.Transferred[slot], ref state.TransferCorrection[slot]); + Numeric.Accumulate(sign * energy, ref state.Enthalpy[slot], ref state.EnthalpyCorrection[slot]); + Numeric.Accumulate(entropy, ref state.Entropy[slot], ref state.EntropyCorrection[slot]); + return true; + } +} diff --git a/src/Power.Core/EquilibriumFuelNozzle.cs b/src/Power.Core/EquilibriumFuelNozzle.cs new file mode 100644 index 0000000..e0430da --- /dev/null +++ b/src/Power.Core/EquilibriumFuelNozzle.cs @@ -0,0 +1,92 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +namespace Power.Core; + +public readonly record struct EquilibriumFuelNozzlePoint(double MassFlowKilogramsPerSecond,double ThroatPressurePascals, + double ExitTemperatureKelvin,double ExitVelocityMetersPerSecond,double VaporMassFraction,double StagnationEnthalpyJoulesPerKilogram, + double ExitInternalEnergyJoulesPerKilogram,double ExitPressureWorkJoulesPerKilogram,double KineticEnergyJoulesPerKilogram, + double JetMomentumNewtons,bool Choked,double ThroatVelocityMetersPerSecond,double EquilibriumThroatSoundSpeedMetersPerSecond,double FluxRelativeUncertainty); + +/// Isentropic homogeneous phase equilibrium. Global flux bounds include phase boundaries and multiple extrema. +public sealed class EquilibriumFuelNozzle +{ + public const double MaximumFluxRelativeUncertainty=1e-4; + public CompressibleFuel Law {get;} + public double AreaSquareMeters {get;} + public double DischargeCoefficient {get;} + private readonly record struct Interval(double Low,double High,double LowDensity,double HighDensity,double DropUpper,double Bound); + private readonly record struct Sample(CompressibleFuelPoint State,double DropLow,double DropHigh,double FluxLow); + public EquilibriumFuelNozzle(CompressibleFuel law,double areaSquareMeters,double dischargeCoefficient) + {Law=law??throw new ArgumentNullException(nameof(law));if(!Numeric.Finite(areaSquareMeters)||areaSquareMeters<=0||!Numeric.Finite(dischargeCoefficient)||dischargeCoefficient<=0||dischargeCoefficient>1)throw new ArgumentException("Use positive finite area and effective-area coefficient in (0,1].");AreaSquareMeters=areaSquareMeters;DischargeCoefficient=dischargeCoefficient;} + private bool TrySample(CompressibleFuelPoint source,double p,out Sample sample) + { + sample=default;if(!Law.TryPressureEntropy(p,source.SpecificEntropyJoulesPerKilogramKelvin,out var state))return false; + double dp=source.PressurePascals-p,estimate=Law.IsentropicEnthalpyDrop(source,state),pad=256*GearReference.Epsilon; + double scale=Math.Abs(source.SpecificInternalEnergyJoulesPerKilogram)+Math.Abs(state.SpecificInternalEnergyJoulesPerKilogram)+Law.Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin*source.TemperatureKelvin; + double error=source.Phase==state.Phase&&source.Phase!=FuelVolumePhase.LiquidVapor?64*GearReference.Epsilon*Math.Abs(estimate):64*GearReference.Epsilon*scale+ + Math.Max(source.TemperatureKelvin,state.TemperatureKelvin)*Math.Abs(state.SpecificEntropyJoulesPerKilogramKelvin-source.SpecificEntropyJoulesPerKilogramKelvin); + double low=Math.Max(dp/source.DensityKilogramsPerCubicMeter*(1-pad),estimate-error),high=Math.Min(dp/state.DensityKilogramsPerCubicMeter*(1+pad),estimate+error); + if(!GearReference.Finite(estimate,low,high,0)||high<0||low<0||low>high)return false; + if(high-low>MaximumFluxRelativeUncertainty*.1*Math.Max(low,1e-300)) + { + // Monotone v(p)|s gives independent lower/upper Riemann sums when + // endpoint caloric differences lose precision at very small pressure drop. + for(int panels=2;panels<=256;panels*=2) + { + double h=dp/panels,sumLow=0,sumHigh=0,previous=1/state.DensityKilogramsPerCubicMeter; + for(int i=1;i<=panels;++i) + { + double v;if(i==panels)v=1/source.DensityKilogramsPerCubicMeter; + else{if(!Law.TryPressureEntropy(p+i*h,source.SpecificEntropyJoulesPerKilogramKelvin,out var q))return false;v=1/q.DensityKilogramsPerCubicMeter;} + sumLow+=v*h;sumHigh+=previous*h;previous=v; + } + low=Math.Max(low,sumLow*(1-pad));high=Math.Min(high,sumHigh*(1+pad)); + if(high-low<=MaximumFluxRelativeUncertainty*.1*Math.Max(low,1e-300))break; + } + } + if(low>high||low<0)return false; + sample=new(state,low,high,state.DensityKilogramsPerCubicMeter*Math.Sqrt(2*low)*(1-pad));return Numeric.Finite(sample.FluxLow); + } + private static bool Push(Span heap,ref int count,Interval item) + {if(count==heap.Length)return false;int i=count++;while(i>0){int parent=(i-1)/2;if(heap[parent].Bound>=item.Bound)break;heap[i]=heap[parent];i=parent;}heap[i]=item;return true;} + private static Interval Pop(Span heap,ref int count) + {var result=heap[0];var last=heap[--count];int i=0;while(2*i+1heap[child].Bound)++child;if(heap[child].Bound<=last.Bound)break;heap[i]=heap[child];i=child;}if(count>0)heap[i]=last;return result;} + public FuelNozzleStatus Evaluate(double upstreamDensity,double upstreamTemperature,double receiverPressure,double opening,out EquilibriumFuelNozzlePoint point) + { + point=default; + if(!Numeric.Finite(receiverPressure)||receiverPressure<=0||receiverPressure>Law.MaximumPressurePascals||!Numeric.Finite(opening)||opening<0||opening>1||!Law.Evaluate(upstreamDensity,upstreamTemperature,out var source))return FuelNozzleStatus.InvalidInput; + double h0=source.SpecificInternalEnergyJoulesPerKilogram+source.PressurePascals/source.DensityKilogramsPerCubicMeter; + if(opening==0||receiverPressure>=source.PressurePascals) + {point=new(0,source.PressurePascals,source.TemperatureKelvin,0,source.VaporMassFraction,h0,source.SpecificInternalEnergyJoulesPerKilogram,source.PressurePascals/source.DensityKilogramsPerCubicMeter,0,0,false,0,source.SoundSpeedMetersPerSecond,0);return FuelNozzleStatus.Success;} + if(!TrySample(source,receiverPressure,out var exit))return FuelNozzleStatus.TemperatureOutOfRange; + var best=exit;double bestP=receiverPressure; + void Seed(double p) + {if(p>receiverPressure&&pbest.FluxLow){best=q;bestP=p;}} + double gamma=1+Law.Material.GasConstantJoulesPerKilogramKelvin/Law.Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + if(source.Phase==FuelVolumePhase.Vapor)Seed(source.PressurePascals*Math.Pow(2/(gamma+1),gamma/(gamma-1))); + if(source.Phase==FuelVolumePhase.Liquid) + {Seed((Law.LiquidBulkModulusPascals+source.PressurePascals)*Math.Exp(-.5)-Law.LiquidBulkModulusPascals);if(Law.TrySaturation(source.TemperatureKelvin,out var sat))Seed(sat.PressurePascals);} + Span heap=stackalloc Interval[512];int count=0;double padding=1+512*GearReference.Epsilon; + Push(heap,ref count,new(receiverPressure,source.PressurePascals,exit.State.DensityKilogramsPerCubicMeter,source.DensityKilogramsPerCubicMeter,exit.DropHigh,source.DensityKilogramsPerCubicMeter*Math.Sqrt(2*exit.DropHigh)*padding)); + double upper=double.PositiveInfinity;bool converged=false; + for(int iteration=0;iteration<8192&&count>0;++iteration) + { + upper=heap[0].Bound; + if(best.FluxLow>0&&upper<=best.FluxLow*(1+.999*MaximumFluxRelativeUncertainty)){converged=true;break;} + var interval=Pop(heap,ref count);double mid=interval.Low+(interval.High-interval.Low)/2; + if(mid<=interval.Low||mid>=interval.High||!TrySample(source,mid,out var q))return FuelNozzleStatus.NoConvergence; + if(q.State.DensityKilogramsPerCubicMeter>interval.HighDensity*padding||q.State.DensityKilogramsPerCubicMeter*paddingbest.FluxLow){best=q;bestP=mid;} + double left=q.State.DensityKilogramsPerCubicMeter*Math.Sqrt(2*interval.DropUpper)*padding,right=interval.HighDensity*Math.Sqrt(2*q.DropHigh)*padding; + if(left>best.FluxLow&&!Push(heap,ref count,new(interval.Low,mid,interval.LowDensity,q.State.DensityKilogramsPerCubicMeter,interval.DropUpper,left)))return FuelNozzleStatus.NoConvergence; + if(right>best.FluxLow&&!Push(heap,ref count,new(mid,interval.High,q.State.DensityKilogramsPerCubicMeter,interval.HighDensity,q.DropHigh,right)))return FuelNozzleStatus.NoConvergence; + } + if(count==0){upper=best.FluxLow;converged=true;} + if(!converged)return FuelNozzleStatus.NoConvergence; + double kinetic=(exit.DropLow+exit.DropHigh)/2,velocity=Math.Sqrt(2*kinetic),rate=opening*DischargeCoefficient*AreaSquareMeters*best.FluxLow,uncertainty=Math.Max(0,upper/best.FluxLow-1); + if(!GearReference.Finite(kinetic,velocity,rate,uncertainty))return FuelNozzleStatus.NoConvergence; + point=new(rate,bestP,exit.State.TemperatureKelvin,velocity,exit.State.VaporMassFraction,h0,exit.State.SpecificInternalEnergyJoulesPerKilogram,receiverPressure/exit.State.DensityKilogramsPerCubicMeter,kinetic,rate*velocity, + bestP>receiverPressure,Math.Sqrt(2*best.DropLow),best.State.SoundSpeedMetersPerSecond,uncertainty);return FuelNozzleStatus.Success; + } +} diff --git a/src/Power.Core/FiniteFuelReceiver.cs b/src/Power.Core/FiniteFuelReceiver.cs new file mode 100644 index 0000000..122cf67 --- /dev/null +++ b/src/Power.Core/FiniteFuelReceiver.cs @@ -0,0 +1,96 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct FiniteFuelPhaseState(FuelFilmSample Liquid, double VaporMassKilograms, + double GasEnergyJoules, double TemperatureKelvin); +public readonly record struct FiniteFuelReceiverWork(FiniteFuelPhaseState State, double EnergyChangeJoules, + double MeanPressurePascals, double EntropyResidualJoulesPerKelvin); + +public sealed partial class FiniteTankFuelEquilibrium +{ + public double Entropy(FiniteTankPhasePoint point, double carrierMassKilograms) + { + double t = point.TemperatureKelvin, r = Material.GasConstantJoulesPerKilogramKelvin; + double cv = Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double reference = Material.Caloric.SaturationTemperatureKelvin; + double logarithm = Numeric.Log1p((t - reference) / reference); + double entropy = point.LiquidMassKilograms * cl * logarithm; + if (point.VaporMassKilograms > 0) + entropy += point.VaporMassKilograms * ((cv + r) * logarithm - r * Math.Log(point.VaporPressurePascals / Material.ReferencePressurePascals) + + Material.Caloric.LatentInternalEnergyJoulesPerKilogram / reference + r); + if (carrierMassKilograms > 0) + entropy += carrierMassKilograms * (cv * logarithm + r * Math.Log(point.GasVolumeCubicMeters * Material.ReferencePressurePascals / (carrierMassKilograms * r * reference))); + return entropy; + } + + public bool TryAdiabaticCapacity(double fuelMassKilograms, double carrierMassKilograms, double energyJoules, + double oldCapacityCubicMeters, double newCapacityCubicMeters, out FiniteFuelReceiverWork work) + { + work = default; + if (!TryFlashEnergyAtCapacity(fuelMassKilograms, carrierMassKilograms, energyJoules, oldCapacityCubicMeters, out var initial) || + !TryPointAtCapacity(initial.TemperatureKelvin, fuelMassKilograms, carrierMassKilograms, oldCapacityCubicMeters, out var before)) return false; + double delta = newCapacityCubicMeters - oldCapacityCubicMeters; + if (delta == 0) { work = new(initial, 0, before.PressurePascals, 0); return true; } + double target = Entropy(before, carrierMassKilograms), lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + if (!TryPointAtCapacity(lo, fuelMassKilograms, carrierMassKilograms, newCapacityCubicMeters, out var lower) || + !TryPointAtCapacity(hi, fuelMassKilograms, carrierMassKilograms, newCapacityCubicMeters, out var upper) || + target < Entropy(lower, carrierMassKilograms) || target > Entropy(upper, carrierMassKilograms)) return false; + double t = initial.TemperatureKelvin; FiniteTankPhasePoint result = default; bool converged = false; + for (int iteration = 0; iteration < 80; ++iteration) + { + if (!TryPointAtCapacity(t, fuelMassKilograms, carrierMassKilograms, newCapacityCubicMeters, out result)) return false; + double residual = Entropy(result, carrierMassKilograms) - target, correction = residual * t / result.HeatCapacityJoulesPerKelvin; + if (!Numeric.Finite(correction)) return false; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, t)) { converged = true; break; } + if (residual > 0) hi = t; else lo = t; + double next = t - correction; t = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return false; + double capacity = (carrierMassKilograms + before.VaporMassKilograms) * Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin + + before.LiquidMassKilograms * Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double change = capacity * (result.TemperatureKelvin - before.TemperatureKelvin) + + (result.VaporMassKilograms - before.VaporMassKilograms) * Material.LatentInternalEnergy(result.TemperatureKelvin); + double scale = capacity * before.TemperatureKelvin + fuelMassKilograms * Material.LatentInternalEnergy(before.TemperatureKelvin); + if (Math.Abs(change) <= 1024 * GearReference.Epsilon * scale && Math.Abs(delta) <= Math.Sqrt(GearReference.Epsilon) * oldCapacityCubicMeters && + (before.LiquidMassKilograms == 0) == (result.LiquidMassKilograms == 0)) + change = -delta * (.5 * before.PressurePascals + .5 * result.PressurePascals); + double mean = -change / delta; + if (!Numeric.Finite(mean) || mean <= 0 || !TryFlashEnergyAtCapacity(fuelMassKilograms, carrierMassKilograms, energyJoules + change, newCapacityCubicMeters, out var state) || + !TryPointAtCapacity(state.TemperatureKelvin, fuelMassKilograms, carrierMassKilograms, newCapacityCubicMeters, out var final)) return false; + double entropyResidual = Entropy(final, carrierMassKilograms) - target; + if (Math.Abs(entropyResidual) > 512 * GearReference.Epsilon * (Math.Abs(target) + before.HeatCapacityJoulesPerKelvin + final.HeatCapacityJoulesPerKelvin)) return false; + work = new(state, change, mean, entropyResidual); return true; + } + + public bool TryHeatAtCapacity(double fuelMassKilograms, double carrierMassKilograms, double energyJoules, double capacityCubicMeters, + double wallTemperatureKelvin, double wallCapacityJoulesPerKelvin, double conductanceWattsPerKelvin, double seconds, out FuelPhaseTransfer transfer) + { + transfer = default; + if (!GearReference.Finite(wallTemperatureKelvin, wallCapacityJoulesPerKelvin, conductanceWattsPerKelvin, seconds) || + wallTemperatureKelvin <= 0 || wallCapacityJoulesPerKelvin <= 0 || conductanceWattsPerKelvin < 0 || seconds < 0) return false; + double kh = conductanceWattsPerKelvin * seconds; + if (!Numeric.Finite(kh)) return false; + double alpha = kh == 0 ? 0 : wallCapacityJoulesPerKelvin / (1 + wallCapacityJoulesPerKelvin / kh), target = energyJoules + alpha * wallTemperatureKelvin; + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + if (!TryPointAtCapacity(lo, fuelMassKilograms, carrierMassKilograms, capacityCubicMeters, out var lower) || + !TryPointAtCapacity(hi, fuelMassKilograms, carrierMassKilograms, capacityCubicMeters, out var upper) || + target < lower.ThermalEnergyJoules + alpha * lo || target > upper.ThermalEnergyJoules + alpha * hi) return false; + double t = (lo + hi) / 2; bool converged = false; + for (int iteration = 0; iteration < 80; ++iteration) + { + if (!TryPointAtCapacity(t, fuelMassKilograms, carrierMassKilograms, capacityCubicMeters, out var point)) return false; + double residual = point.ThermalEnergyJoules + alpha * t - target, correction = residual / (point.HeatCapacityJoulesPerKelvin + alpha); + if (!Numeric.Finite(correction)) return false; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, t)) { converged = true; break; } + if (residual > 0) hi = t; else lo = t; + double next = t - correction; t = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return false; + double heat = alpha * (wallTemperatureKelvin - t), wall = wallTemperatureKelvin - heat / wallCapacityJoulesPerKelvin; + if (!Numeric.Finite(wall) || wall <= 0 || !TryFlashEnergyAtCapacity(fuelMassKilograms, carrierMassKilograms, energyJoules + heat, capacityCubicMeters, out var state)) return false; + transfer = new(state.Liquid, state.VaporMassKilograms, state.GasEnergyJoules, state.TemperatureKelvin, wall, 0, heat); return true; + } +} diff --git a/src/Power.Core/FiniteReceiverCoupling.cs b/src/Power.Core/FiniteReceiverCoupling.cs new file mode 100644 index 0000000..92afb2f --- /dev/null +++ b/src/Power.Core/FiniteReceiverCoupling.cs @@ -0,0 +1,52 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed partial class CompiledModel +{ + internal int[] FiniteFilmByGas { get; private set; } = []; + public bool HasFiniteFuelReceivers { get; private set; } + + internal bool FiniteReceiverWork(int component, FuelFilmState films, MixtureState mixture, double[] gasEnergy, + double angle, double delta, double previewHeat, out FiniteFuelReceiverWork work, out double torque) + { + work = default; torque = double.NaN; + int gas = Nodes[Components[component].B].Index, filmSlot = FiniteFilmByGas[gas]; + var film = FuelFilms[filmSlot]; var geometry = GasCylinders[component]!; + double before = geometry.GeometryAt(angle).VolumeCubicMeters; + double gradient = geometry.Geometry.VolumeGradient(angle % (2 * Math.PI) + geometry.Phase % (2 * Math.PI), delta); + double after = before + gradient * delta; + double fuel = films.Mass[filmSlot] + mixture.Fuel[gas], carrier = mixture.Air[gas] + mixture.Products[gas]; + if (!film.FiniteVolume!.TryAdiabaticCapacity(fuel, carrier, films.Energy[filmSlot] + gasEnergy[gas] + previewHeat, + before, after, out work)) return false; + torque = (work.MeanPressurePascals - geometry.BackPressure) * gradient; + return Numeric.Finite(torque); + } +} + +public sealed partial class Simulation +{ + private bool EquilibrateFiniteReceivers(State state) + { + for (int i = 0; i < _model.FuelFilms.Length; ++i) + { + var film = _model.FuelFilms[i]; if (film.FiniteVolume is not { } finite) continue; + double fuel = state.Films!.Mass[i] + state.Mixture!.Fuel[film.Gas], carrier = state.Mixture.Air[film.Gas] + state.Mixture.Products[film.Gas]; + if (!finite.TryFlashEnergyAtCapacity(fuel, carrier, state.Films.Energy[i] + state.Energy[film.Gas], + _model.Gas!.CavityVolumeAt(film.Gas, state.X, state.LiquidTanks), out var point)) return false; + CommitFiniteReceiver(state, i, point); + } + return true; + } + private void CommitFiniteReceiver(State state, int filmSlot, FiniteFuelPhaseState point) + { + var film = _model.FuelFilms[filmSlot]; double oldLiquid = state.Films!.Mass[filmSlot]; + state.Films.Mass[filmSlot] = point.Liquid.LiquidMassKilograms; state.Films.Energy[filmSlot] = point.Liquid.ThermalEnergyJoules; + state.Films.TickVapor[filmSlot] += oldLiquid - point.Liquid.LiquidMassKilograms; + state.Mixture!.Fuel[film.Gas] = point.VaporMassKilograms; + state.Mass[film.Gas] = point.VaporMassKilograms + state.Mixture.Air[film.Gas] + state.Mixture.Products[film.Gas]; + state.Energy[film.Gas] = point.GasEnergyJoules; + } +} diff --git a/src/Power.Core/FiniteTankFuelEquilibrium.cs b/src/Power.Core/FiniteTankFuelEquilibrium.cs new file mode 100644 index 0000000..9c2dd6d --- /dev/null +++ b/src/Power.Core/FiniteTankFuelEquilibrium.cs @@ -0,0 +1,159 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct FiniteTankPhasePoint(double TemperatureKelvin, double LiquidMassKilograms, + double VaporMassKilograms, double GasVolumeCubicMeters, double PressurePascals, + double VaporPressurePascals, double ThermalEnergyJoules, double HeatCapacityJoulesPerKelvin); + +public readonly record struct FiniteTankPhaseTransfer(FuelFilmSample Liquid, double VaporMassKilograms, + double GasEnergyJoules, double TemperatureKelvin, double NetEvaporatedMassKilograms); + +/// +/// Rigid vessel, incompressible liquid and an ideal pseudo-species/carrier gas. +/// The liquid chemical potential includes p/rho; its caloric and entropy reference +/// is shared with the paired negligible-displacement film material. +/// +public sealed partial class FiniteTankFuelEquilibrium +{ + public FuelPhaseEquilibrium Material { get; } + public double CapacityCubicMeters { get; } + public double DensityKilogramsPerCubicMeter { get; } + private readonly double _capacityMass; + + public FiniteTankFuelEquilibrium(FuelPhaseEquilibrium material, double capacityCubicMeters, double densityKilogramsPerCubicMeter) + { + Material = material ?? throw new ArgumentNullException(nameof(material)); + CapacityCubicMeters = capacityCubicMeters; DensityKilogramsPerCubicMeter = densityKilogramsPerCubicMeter; + _capacityMass = capacityCubicMeters * densityKilogramsPerCubicMeter; + if (!Numeric.Finite(capacityCubicMeters) || !Numeric.Finite(densityKilogramsPerCubicMeter) || + capacityCubicMeters <= 0 || densityKilogramsPerCubicMeter <= 0 || !Numeric.Finite(_capacityMass) || _capacityMass <= 0 || + !material.TrySaturationPressure(material.MaximumTemperatureKelvin, out double maximumPressure) || !Numeric.Finite(maximumPressure * Math.E)) + throw new ArgumentException("Use positive finite tank capacity/density and a representable pressure-corrected material curve."); + } + + /// Pressure-corrected coexistence fuel partial pressure, within the dilute-gas density domain. + public bool TrySaturationPressure(double temperatureKelvin, double totalPressurePascals, out double pressurePascals) + { + pressurePascals = 0; + if (!Material.TrySaturationPressure(temperatureKelvin, out double reference) || !Numeric.Finite(totalPressurePascals) || totalPressurePascals < 0) return false; + double ratio = totalPressurePascals / DensityKilogramsPerCubicMeter / Material.GasConstantJoulesPerKilogramKelvin / temperatureKelvin; + if (!Numeric.Finite(ratio) || ratio >= 1 - 64 * GearReference.Epsilon) return false; + pressurePascals = reference * Math.Exp(ratio); + return Numeric.Finite(pressurePascals) && pressurePascals > 0; + } + + /// Equilibrium energy and its temperature derivative at fixed total fuel, carrier mass and vessel volume. + public bool TryPoint(double temperatureKelvin, double fuelMassKilograms, double carrierMassKilograms, out FiniteTankPhasePoint point) => + TryPointAtCapacity(temperatureKelvin, fuelMassKilograms, carrierMassKilograms, CapacityCubicMeters, out point); + + public bool TryPointAtCapacity(double temperatureKelvin, double fuelMassKilograms, double carrierMassKilograms, double capacityCubicMeters, out FiniteTankPhasePoint point) + { + point = default; + if (!Numeric.Finite(capacityCubicMeters) || capacityCubicMeters <= 0) return false; + double capacityMass = capacityCubicMeters == CapacityCubicMeters ? _capacityMass : capacityCubicMeters * DensityKilogramsPerCubicMeter; + if (!Numeric.Finite(capacityMass) || capacityMass <= 0) return false; + if (!GearReference.Finite(temperatureKelvin, fuelMassKilograms, carrierMassKilograms, 0) || fuelMassKilograms < 0 || carrierMassKilograms < 0 || + fuelMassKilograms + carrierMassKilograms <= 0 || fuelMassKilograms + carrierMassKilograms >= capacityMass * (1 - 64 * GearReference.Epsilon) || + !Material.TrySaturationPressure(temperatureKelvin, out double zeroVolumePressure)) return false; + double freeMass = capacityMass - fuelMassKilograms, r = Material.GasConstantJoulesPerKilogramKelvin; + double vapor = fuelMassKilograms, slope = 0; + if (fuelMassKilograms > 0) + { + // y = m_v / (rho*V_g). For total density below liquid density, + // ln(y) - (1-carrier/freeMass)*y is strictly increasing on the physical interval. + double carrierRatio = carrierMassKilograms / freeMass, a = 1 - carrierRatio; + double maximumY = fuelMassKilograms / capacityMass, logMaximum = Math.Log(maximumY); + double logB = Math.Log(zeroVolumePressure) - Math.Log(DensityKilogramsPerCubicMeter) - Math.Log(r) - Math.Log(temperatureKelvin) + carrierRatio; + double atDry = logMaximum - a * maximumY - logB; + if (atDry > 0) + { + double lo = logB, hi = Math.Min(logMaximum, logB + a * maximumY), z = lo; + bool converged = false; + for (int iteration = 0; iteration < 48; ++iteration) + { + double y = Math.Exp(z), residual = z - a * y - logB, derivative = 1 - a * y; + double correction = residual / derivative; + if (!Numeric.Finite(correction) || derivative <= 0) return false; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, Math.Abs(z))) { converged = true; break; } + if (residual > 0) hi = z; else lo = z; + double next = z - correction; + z = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return false; + double fraction = Math.Exp(z), remaining = 1 - fraction; + vapor = freeMass * fraction / remaining; + double latent = Material.LatentInternalEnergy(temperatureKelvin); + slope = freeMass * fraction / remaining / remaining * latent / r / temperatureKelvin / temperatureKelvin / (1 - a * fraction); + } + } + double liquid = fuelMassKilograms - vapor, volume = capacityCubicMeters - liquid / DensityKilogramsPerCubicMeter; + double gas = carrierMassKilograms + vapor, cv = Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double energy = gas * cv * temperatureKelvin + liquid * (cl * temperatureKelvin + Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram); + double capacity = gas * cv + liquid * cl + slope * Material.LatentInternalEnergy(temperatureKelvin); + double pressure = gas / volume * r * temperatureKelvin, partial = vapor / volume * r * temperatureKelvin; + if (!GearReference.Finite(vapor, liquid, volume, energy) || !GearReference.Finite(capacity, pressure, partial, slope) || + liquid < 0 || volume <= 0 || gas <= 0 || capacity <= 0 || pressure <= 0 || partial < 0) return false; + point = new(temperatureKelvin, liquid, vapor, volume, pressure, partial, energy, capacity); return true; + } + + /// Closed U,V equilibrium flash. Phase expansion work is internal to the rigid vessel. + public bool TryFlash(FuelFilmSample liquid, double vaporMassKilograms, double carrierMassKilograms, + double gasEnergyJoules, out FiniteTankPhaseTransfer transfer) + { + transfer = default; + if (!GearReference.Finite(liquid.LiquidMassKilograms, liquid.ThermalEnergyJoules, vaporMassKilograms, carrierMassKilograms) || + !Numeric.Finite(gasEnergyJoules) || liquid.LiquidMassKilograms < 0 || vaporMassKilograms < 0 || carrierMassKilograms < 0 || + vaporMassKilograms + carrierMassKilograms <= 0 || gasEnergyJoules <= 0 || liquid.LiquidMassKilograms == 0 && liquid.ThermalEnergyJoules != 0) return false; + if (liquid.LiquidMassKilograms > 0 && !Material.TrySaturationPressure(Material.Caloric.Temperature(liquid), out _)) return false; + double fuel = liquid.LiquidMassKilograms + vaporMassKilograms, energy = liquid.ThermalEnergyJoules + gasEnergyJoules; + if (!Numeric.Finite(fuel) || !Numeric.Finite(energy) || fuel + carrierMassKilograms >= _capacityMass * (1 - 64 * GearReference.Epsilon)) return false; + if (!TryFlashEnergyAtCapacity(fuel, carrierMassKilograms, energy, CapacityCubicMeters, out var state)) return false; + transfer = new(state.Liquid, state.VaporMassKilograms, state.GasEnergyJoules, state.TemperatureKelvin, + liquid.LiquidMassKilograms - state.Liquid.LiquidMassKilograms); return true; + } + + public bool TryFlashEnergyAtCapacity(double fuel, double carrierMassKilograms, double energy, double capacityCubicMeters, out FiniteFuelPhaseState state) + { + state = default; + if (!GearReference.Finite(fuel, carrierMassKilograms, energy, capacityCubicMeters) || fuel < 0 || carrierMassKilograms < 0 || fuel + carrierMassKilograms <= 0 || capacityCubicMeters <= 0) return false; + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + if (!TryPointAtCapacity(lo, fuel, carrierMassKilograms, capacityCubicMeters, out var lower) || !TryPointAtCapacity(hi, fuel, carrierMassKilograms, capacityCubicMeters, out var upper)) return false; + FiniteTankPhasePoint result; + double lowCorrection = (lower.ThermalEnergyJoules - energy) / lower.HeatCapacityJoulesPerKelvin; + double highCorrection = (upper.ThermalEnergyJoules - energy) / upper.HeatCapacityJoulesPerKelvin; + if (Math.Abs(lowCorrection) <= 32 * GearReference.Epsilon * Math.Max(1, lo)) result = lower; + else if (Math.Abs(highCorrection) <= 32 * GearReference.Epsilon * Math.Max(1, hi)) result = upper; + else + { + if (lowCorrection > 0 || highCorrection < 0) return false; + double temperature = (lo + hi) / 2; result = default; bool converged = false; + for (int iteration = 0; iteration < 64; ++iteration) + { + if (!TryPointAtCapacity(temperature, fuel, carrierMassKilograms, capacityCubicMeters, out result)) return false; + double correction = (result.ThermalEnergyJoules - energy) / result.HeatCapacityJoulesPerKelvin; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, temperature)) { converged = true; break; } + if (correction > 0) hi = temperature; else lo = temperature; + double next = temperature - correction; + temperature = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return false; + } + double t = result.TemperatureKelvin, liquidEnergy = result.LiquidMassKilograms * + (Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin * t + Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram); + double gasCapacity = (carrierMassKilograms + result.VaporMassKilograms) * Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + double liquidCapacity = result.LiquidMassKilograms * Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double gasEnergy = gasCapacity * t; + // Absorb the scalar root's energy roundoff in the larger sensible heat capacity. + // A nearly full tank must not amplify liquid-energy cancellation into its tiny gas temperature. + if (liquidCapacity >= gasCapacity) liquidEnergy = energy - gasEnergy; + else gasEnergy = energy - liquidEnergy; + double gasTemperature = gasEnergy / gasCapacity; + double liquidTemperature = result.LiquidMassKilograms == 0 ? t : Material.Caloric.Temperature(new(result.LiquidMassKilograms, liquidEnergy)); + if (!Numeric.Finite(gasEnergy) || gasEnergy <= 0 || !Numeric.Finite(gasTemperature) || + Math.Abs(t - gasTemperature) > 1e-8 + 128 * GearReference.Epsilon * t || Math.Abs(t - liquidTemperature) > 1e-8 + 128 * GearReference.Epsilon * t) return false; + state = new(new(result.LiquidMassKilograms, liquidEnergy), result.VaporMassKilograms, gasEnergy, t); return true; + } +} diff --git a/src/Power.Core/FrozenCompressibleFuelNozzle.cs b/src/Power.Core/FrozenCompressibleFuelNozzle.cs new file mode 100644 index 0000000..7c0ba77 --- /dev/null +++ b/src/Power.Core/FrozenCompressibleFuelNozzle.cs @@ -0,0 +1,94 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct FrozenCompressibleFuelNozzlePoint(double MassFlowKilogramsPerSecond, + double ThroatPressurePascals, double ExitTemperatureKelvin, double ExitVelocityMetersPerSecond, + double VaporMassFraction, double StagnationEnthalpyJoulesPerKilogram, double ExitInternalEnergyJoulesPerKilogram, + double ExitPressureWorkJoulesPerKilogram, double KineticEnergyJoulesPerKilogram, + double JetMomentumNewtons, bool Choked, double ThroatVelocityMetersPerSecond, double FrozenThroatSoundSpeedMetersPerSecond); + +/// +/// Common-pressure/temperature, frozen-quality isentropic transit. Liquid cold compression +/// energy shares the reservoir EOS. Phase conversion is suppressed inside the nozzle; +/// bulk reservoirs re-equilibrate separately. This is a limiting model, not an HEM nozzle. +/// +public sealed class FrozenCompressibleFuelNozzle +{ + public CompressibleFuel Law { get; } + public double AreaSquareMeters { get; } + public double DischargeCoefficient { get; } + public FrozenCompressibleFuelNozzle(CompressibleFuel law, double areaSquareMeters, double dischargeCoefficient) + { + Law = law ?? throw new ArgumentNullException(nameof(law)); + if (!Numeric.Finite(areaSquareMeters) || areaSquareMeters <= 0 || !Numeric.Finite(dischargeCoefficient) || dischargeCoefficient <= 0 || dischargeCoefficient > 1) + throw new ArgumentException("Use positive finite area and effective-area coefficient in (0,1]."); + AreaSquareMeters = areaSquareMeters; DischargeCoefficient = dischargeCoefficient; + } + private static double LogSum(double a, double b) + { + if (double.IsNegativeInfinity(a)) return b; if (double.IsNegativeInfinity(b)) return a; + return Math.Max(a,b) + Numeric.Log1p(Math.Exp(-Math.Abs(a-b))); + } + public FuelNozzleStatus Evaluate(double upstreamPressure, double upstreamTemperature, double vaporMassFraction, + double receiverPressure, double opening, out FrozenCompressibleFuelNozzlePoint point) + { + point = default; + if (!GearReference.Finite(upstreamPressure,upstreamTemperature,vaporMassFraction,receiverPressure) || !Numeric.Finite(opening) || + upstreamPressure <= 0 || upstreamPressure > Law.MaximumPressurePascals || receiverPressure <= 0 || receiverPressure > Law.MaximumPressurePascals || + vaporMassFraction < 0 || vaporMassFraction > 1 || opening < 0 || opening > 1) return FuelNozzleStatus.InvalidInput; + var m=Law.Material;var c=m.Caloric; + if (upstreamTemperature < m.MinimumTemperatureKelvin || upstreamTemperature > m.MaximumTemperatureKelvin) return FuelNozzleStatus.TemperatureOutOfRange; + double x=vaporMassFraction,k=Law.LiquidBulkModulusPascals,rho=Law.ReferenceLiquidDensityKilogramsPerCubicMeter,r=m.GasConstantJoulesPerKilogramKelvin; + double cp=(1-x)*c.LiquidSpecificHeatJoulesPerKilogramKelvin+x*(c.VaporSpecificHeatJoulesPerKilogramKelvin+r),alpha=x*r/cp; + double h0=cp*upstreamTemperature+(1-x)*c.LiquidEnergyOffsetJoulesPerKilogram+(1-x)*k/rho*Numeric.Log1p(upstreamPressure/k); + if (!Numeric.Finite(h0) || !Numeric.Finite(cp) || cp<=0 || alpha<0 || alpha>=1) return FuelNozzleStatus.InvalidInput; + double LogVolume(double lr) + { + double p=upstreamPressure*Math.Exp(lr); + double liquid=x==1?double.NegativeInfinity:Math.Log(1-x)-Math.Log(rho)-Numeric.Log1p(p/k); + double vapor=x==0?double.NegativeInfinity:Math.Log(x*r*upstreamTemperature/upstreamPressure)+(alpha-1)*lr; + return LogSum(liquid,vapor); + } + double LogNegativeDerivative(double lr) + { + double p=upstreamPressure*Math.Exp(lr); + double liquid=x==1?double.NegativeInfinity:Math.Log(1-x)-Math.Log(rho)-Numeric.Log1p(p/k)-Math.Log(k+p); + double vapor=x==0?double.NegativeInfinity:Math.Log(x*r*upstreamTemperature/upstreamPressure)+Math.Log(1-alpha)-Math.Log(upstreamPressure)+(alpha-2)*lr; + return LogSum(liquid,vapor); + } + double Drop(double lr) => -cp*upstreamTemperature*Numeric.Expm1(alpha*lr) - + (1-x)*k/rho*Numeric.Log1p(upstreamPressure/(k+upstreamPressure)*Numeric.Expm1(lr)); + double Residual(double lr) + {double d=Drop(lr);return d==0?double.PositiveInfinity:2*LogVolume(lr)-Math.Log(2)-Math.Log(d)-LogNegativeDerivative(lr);} + double back=receiverPressure>=upstreamPressure||opening==0?0:Math.Log(receiverPressure)-Math.Log(upstreamPressure); + if(receiverPressure0 && (upstreamPressure-receiverPressure)/upstreamPressure<.5) + back=Numeric.Log1p(-(upstreamPressure-receiverPressure)/upstreamPressure); + double exitT=upstreamTemperature*Math.Exp(alpha*back); + if(exitTm.MaximumTemperatureKelvin)return FuelNozzleStatus.TemperatureOutOfRange; + double throat=back;bool choked=false; + if(receiverPressure0&&Residual(back)<0) + { + // For D=h0-h, F=v^2+2D*v' has F'=2D*v''>0 for this frozen EOS. + // Therefore the positive-pressure flux maximum is unique, including pure liquid. + double lo=back,hi=0; + for(int i=0;i<80;++i){double mid=(lo+hi)/2;if(Residual(mid)>0)hi=mid;else lo=mid;} + throat=(lo+hi)/2;choked=true; + } + bool flowing=receiverPressure0; + double kinetic=flowing?Drop(back):0,throatK=flowing?Drop(throat):0; + double speed=Math.Sqrt(2*kinetic),throatSpeed=Math.Sqrt(2*throatK),pressure=flowing?(choked?upstreamPressure*Math.Exp(throat):receiverPressure):upstreamPressure; + double rate=flowing?opening*DischargeCoefficient*AreaSquareMeters*Math.Exp(.5*Math.Log(2*throatK)-LogVolume(throat)):0; + double sound=Math.Exp(LogVolume(throat)-.5*LogNegativeDerivative(throat)); + if(!flowing){exitT=upstreamTemperature;back=throat=0;} + double exitP=flowing?receiverPressure:upstreamPressure,y=exitP/k; + double cold=k/rho*(Numeric.Log1p(y)-y/(1+y)); + if(Math.Abs(y)<1e-3){cold=0;double power=y*y;for(int n=2;n<=9;++n){cold+=(n%2==0?1:-1)*(n-1d)/n*power;power*=y;}cold*=k/rho;} + double internalEnergy=((1-x)*c.LiquidSpecificHeatJoulesPerKilogramKelvin+x*c.VaporSpecificHeatJoulesPerKilogramKelvin)*exitT+(1-x)*(c.LiquidEnergyOffsetJoulesPerKilogram+cold); + double pv=(1-x)*exitP/rho/(1+y)+x*r*exitT,momentum=rate*speed; + if(!GearReference.Finite(rate,kinetic,speed,pressure)||!GearReference.Finite(internalEnergy,pv,momentum,sound)||rate<0||kinetic<0||sound<=0)return FuelNozzleStatus.NoConvergence; + point=new(rate,pressure,exitT,speed,x,h0,internalEnergy,pv,kinetic,momentum,choked,throatSpeed,sound);return FuelNozzleStatus.Success; + } +} diff --git a/src/Power.Core/FrozenFuelNozzle.cs b/src/Power.Core/FrozenFuelNozzle.cs new file mode 100644 index 0000000..b70c552 --- /dev/null +++ b/src/Power.Core/FrozenFuelNozzle.cs @@ -0,0 +1,110 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public enum FuelNozzleStatus { Success, InvalidInput, TemperatureOutOfRange, NoConvergence } + +public readonly record struct FrozenFuelNozzlePoint(double MassFlowKilogramsPerSecond, + double ThroatPressurePascals, double ExitTemperatureKelvin, double ExitVelocityMetersPerSecond, + double VaporMassFraction, double StagnationEnthalpyJoulesPerKilogram, double ExitInternalEnergyJoulesPerKilogram, + double ExitPressureWorkJoulesPerKilogram, double KineticEnergyJoulesPerKilogram, + double JetMomentumNewtons, bool Choked); + +/// +/// Homogeneous frozen-quality, common-temperature isentropic nozzle reference. +/// Liquid is incompressible and vapor ideal; phase mass transfer during transit is frozen. +/// A minimum-area throat limits mass flux. Fully expanded jet kinetic energy is reported +/// separately for an explicit downstream thermalization/momentum boundary. +/// +public sealed class FrozenFuelNozzle +{ + public FuelPhaseEquilibrium Material { get; } + public double LiquidDensityKilogramsPerCubicMeter { get; } + public double AreaSquareMeters { get; } + public double DischargeCoefficient { get; } + + public FrozenFuelNozzle(FuelPhaseEquilibrium material, double liquidDensityKilogramsPerCubicMeter, + double areaSquareMeters, double dischargeCoefficient) + { + Material = material ?? throw new ArgumentNullException(nameof(material)); + if (!GearReference.Finite(liquidDensityKilogramsPerCubicMeter, areaSquareMeters, dischargeCoefficient, 0) || + liquidDensityKilogramsPerCubicMeter <= 0 || areaSquareMeters <= 0 || dischargeCoefficient <= 0 || dischargeCoefficient > 1) + throw new ArgumentException("Use positive finite liquid density and nozzle area, with discharge coefficient in (0,1]."); + LiquidDensityKilogramsPerCubicMeter = liquidDensityKilogramsPerCubicMeter; + AreaSquareMeters = areaSquareMeters; DischargeCoefficient = dischargeCoefficient; + } + + public FuelNozzleStatus Evaluate(double upstreamPressurePascals, double upstreamTemperatureKelvin, + double vaporMassFraction, double receiverPressurePascals, double opening, out FrozenFuelNozzlePoint point) + { + point = default; + if (!GearReference.Finite(upstreamPressurePascals, upstreamTemperatureKelvin, vaporMassFraction, receiverPressurePascals) || + !Numeric.Finite(opening) || upstreamPressurePascals <= 0 || receiverPressurePascals <= 0 || vaporMassFraction < 0 || vaporMassFraction > 1 || opening < 0 || opening > 1) + return FuelNozzleStatus.InvalidInput; + if (!Material.TrySaturationPressure(upstreamTemperatureKelvin, out _)) return FuelNozzleStatus.TemperatureOutOfRange; + double x = vaporMassFraction, r = Material.GasConstantJoulesPerKilogramKelvin; + double cv = Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double cp = (1 - x) * cl + x * (cv + r), exponent = x * r / cp; + double liquidVolume = (1 - x) / LiquidDensityKilogramsPerCubicMeter; + double pressureEnergy = liquidVolume * upstreamPressurePascals, gasEnergy = x * r * upstreamTemperatureKelvin; + double heatEnergy = cp * upstreamTemperatureKelvin; + double upstreamInternal = ((1 - x) * cl + x * cv) * upstreamTemperatureKelvin + (1 - x) * Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram; + double enthalpy = upstreamInternal + pressureEnergy + gasEnergy; + if (!GearReference.Finite(cp, exponent, heatEnergy, enthalpy) || cp <= 0 || exponent < 0 || exponent >= 1 || + upstreamPressurePascals / LiquidDensityKilogramsPerCubicMeter / r / upstreamTemperatureKelvin >= 1 - 64 * GearReference.Epsilon) + return FuelNozzleStatus.InvalidInput; + if (receiverPressurePascals >= upstreamPressurePascals || opening == 0) + { + point = new(0, upstreamPressurePascals, upstreamTemperatureKelvin, 0, x, enthalpy, upstreamInternal, pressureEnergy + gasEnergy, 0, 0, false); + return FuelNozzleStatus.Success; + } + double logBack = Numeric.Log1p(-(upstreamPressurePascals - receiverPressurePascals) / upstreamPressurePascals); + // Far below upstream pressure, subtraction may round to one; use the ratio's logs. + if (!Numeric.Finite(logBack)) logBack = Math.Log(receiverPressurePascals) - Math.Log(upstreamPressurePascals); + double exitTemperature = upstreamTemperatureKelvin * Math.Exp(exponent * logBack); + if (!Numeric.Finite(exitTemperature) || exitTemperature < Material.MinimumTemperatureKelvin || exitTemperature > Material.MaximumTemperatureKelvin) + return FuelNozzleStatus.TemperatureOutOfRange; + double Drop(double logRatio) => -heatEnergy * Numeric.Expm1(exponent * logRatio) - pressureEnergy * Numeric.Expm1(logRatio); + double LogVolumeEnergy(double logRatio) + { + double a = pressureEnergy == 0 ? double.NegativeInfinity : Math.Log(pressureEnergy); + double b = gasEnergy == 0 ? double.NegativeInfinity : Math.Log(gasEnergy) + (exponent - 1) * logRatio; + if (double.IsNegativeInfinity(a)) return b; + if (double.IsNegativeInfinity(b)) return a; + double high = Math.Max(a, b); return high + Numeric.Log1p(Math.Exp(Math.Min(a, b) - high)); + } + double CriticalResidual(double logRatio) + { + double drop = Drop(logRatio); + if (drop == 0) return double.PositiveInfinity; + return 2 * LogVolumeEnergy(logRatio) - (Math.Log(2) + Math.Log(drop) + Math.Log(gasEnergy) + Math.Log(1 - exponent) + (exponent - 2) * logRatio); + } + double throatLog = logBack; bool choked = false; + if (x > 0 && CriticalResidual(logBack) < 0) + { + double lo = logBack, hi = 0; + // The frozen-mixture flux has a unique maximum: for D=h0-h, + // d/dr[(p0 v)^2 + 2 D d(p0 v)/dr] = 2 D d²(p0 v)/dr² > 0. + for (int iteration = 0; iteration < 80; ++iteration) + { + double mid = (lo + hi) / 2; + if (CriticalResidual(mid) > 0) hi = mid; else lo = mid; + } + throatLog = (lo + hi) / 2; choked = true; + } + double throatDrop = Drop(throatLog), kinetic = Drop(logBack); + double velocity = Math.Sqrt(2 * kinetic), throatVelocity = Math.Sqrt(2 * throatDrop); + double throatSpecificVolume = Math.Exp(LogVolumeEnergy(throatLog) - Math.Log(upstreamPressurePascals)); + double rate = opening * DischargeCoefficient * AreaSquareMeters * throatVelocity / throatSpecificVolume; + double exitInternal = ((1 - x) * cl + x * cv) * exitTemperature + (1 - x) * Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram; + double exitPressureWork = liquidVolume * receiverPressurePascals + x * r * exitTemperature; + double throatPressure = choked ? upstreamPressurePascals * Math.Exp(throatLog) : receiverPressurePascals, momentum = rate * velocity; + if (!GearReference.Finite(rate, kinetic, velocity, throatPressure) || !GearReference.Finite(exitInternal, exitPressureWork, momentum, throatSpecificVolume) || + rate < 0 || kinetic < 0 || throatPressure < receiverPressurePascals || throatSpecificVolume <= 0) + return FuelNozzleStatus.NoConvergence; + point = new(rate, throatPressure, exitTemperature, velocity, x, enthalpy, exitInternal, exitPressureWork, kinetic, momentum, choked); + return FuelNozzleStatus.Success; + } +} diff --git a/src/Power.Core/FuelChamber.cs b/src/Power.Core/FuelChamber.cs new file mode 100644 index 0000000..901762c --- /dev/null +++ b/src/Power.Core/FuelChamber.cs @@ -0,0 +1,93 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed record FuelChamberDefinition +{ + public Quantity MinimumReferenceVolume { get; init; } + public Quantity SweptVolume { get; init; } + public Quantity Phase { get; init; } +} + +/// Massless sinusoidal chamber geometry; shaft angle and pressure work are coupled by the solver. +public sealed class SinusoidalFuelChamber +{ + public double MinimumReferenceVolumeCubicMeters { get; } + public double SweptVolumeCubicMeters { get; } + public double PhaseRadians { get; } + public SinusoidalFuelChamber(double minimumReferenceVolumeCubicMeters, double sweptVolumeCubicMeters, double phaseRadians) + { + if (!Numeric.Finite(minimumReferenceVolumeCubicMeters) || minimumReferenceVolumeCubicMeters <= 0 || + !Numeric.Finite(sweptVolumeCubicMeters) || sweptVolumeCubicMeters <= 0 || !Numeric.Finite(phaseRadians) || + !Numeric.Finite(minimumReferenceVolumeCubicMeters + sweptVolumeCubicMeters)) + throw new ArgumentException("Declare positive finite minimum/swept volume and finite phase."); + MinimumReferenceVolumeCubicMeters = minimumReferenceVolumeCubicMeters; SweptVolumeCubicMeters = sweptVolumeCubicMeters; + PhaseRadians = phaseRadians % (2 * Math.PI); + } + private double PhaseAt(double angle) => (angle % (2 * Math.PI) - PhaseRadians) % (2 * Math.PI); + public double ReferenceVolumeAt(double angleRadians) + { double sine = Math.Sin(PhaseAt(angleRadians) / 2); return MinimumReferenceVolumeCubicMeters + SweptVolumeCubicMeters * sine * sine; } + public double VolumeDerivativeAt(double angleRadians) => .5 * SweptVolumeCubicMeters * Math.Sin(PhaseAt(angleRadians)); +} + +internal sealed record CompiledFuelChamber(int Component, int Fuel, int Crank, SinusoidalFuelChamber Geometry); +internal sealed class FuelChamberState(int count) +{ + internal readonly double[] Torque = new double[count], Power = new double[count], Work = new double[count], Correction = new double[count]; + internal void CopyFrom(FuelChamberState other) + { Array.Copy(other.Torque, Torque, count); Array.Copy(other.Power, Power, count); Array.Copy(other.Work, Work, count); Array.Copy(other.Correction, Correction, count); } + internal void BeginTick() { Array.Clear(Torque, 0, count); Array.Clear(Power, 0, count); } + internal bool EndTick(double seconds) + { for (int i = 0; i < count; ++i) { Torque[i] /= seconds; Power[i] /= seconds; } return Finite(); } + internal bool Finite() + { for (int i = 0; i < count; ++i) if (!GearReference.Finite(Torque[i], Power[i], Work[i], Correction[i])) return false; return true; } + internal ulong Hash(ulong hash) + { for (int i = 0; i < count; ++i) { hash = Numeric.Hash(hash, Torque[i]); hash = Numeric.Hash(hash, Power[i]); hash = Numeric.Hash(hash, Work[i]); hash = Numeric.Hash(hash, Correction[i]); } return hash; } +} + +public sealed partial class CompiledModel +{ + internal CompiledFuelChamber[] FuelChambers { get; private set; } = []; + internal int[] FuelChamberByComponent { get; private set; } = []; + public bool HasFuelChambers => FuelChambers.Length != 0; + private void CompileFuelChambers(ComponentDefinition[] definitions) + { + FuelChamberByComponent = new int[Components.Length]; Array.Fill(FuelChamberByComponent, -1); + var chambers = new List(); var owners = new HashSet(); + for (int i = 0; i < Components.Length; ++i) + { + var c = Components[i]; if (c.Kind != ComponentKind.FuelChamber) continue; + var d = definitions[i].FuelChamber!; + double minimum = Convert(d.MinimumReferenceVolume, Unit.CubicMeter, c.Id, "fuel_chamber.minimum_reference_volume"), + swept = Convert(d.SweptVolume, Unit.CubicMeter, c.Id, "fuel_chamber.swept_volume"), phase = Convert(d.Phase, Unit.Radian, c.Id, "fuel_chamber.phase"); + SinusoidalFuelChamber geometry; + try { geometry = new(minimum, swept, phase); } + catch (ArgumentException error) { throw new ModelCompileException(DiagnosticCode.Range, c.Id, "fuel_chamber", error.Message); } + int fuel = FuelByNode[c.B]; var volume = FuelVolumes[fuel]; double reference = geometry.ReferenceVolumeAt(Nodes[c.A].Position); + Require(owners.Add(fuel), DiagnosticCode.Connection, c.Id, "fuel_chamber.node_b", "Each moving fuel volume has exactly one shaft/geometry owner."); + Require(Math.Abs(reference - volume.Law.ReferenceVolumeCubicMeters) <= 128 * GearReference.Epsilon * reference, + DiagnosticCode.Connection, c.Id, "fuel_chamber.initial_volume", "Fuel node storage must equal the declared chamber reference volume at the initial shaft angle."); + // Validate geometric volume scales without assuming that the initial mass + // can be compressed to every angle below the declared pressure limit. + Require(volume.Law.EvaluateAtReferenceVolume(volume.Initial.TemperatureKelvin, + volume.Initial.MassKilograms, minimum + swept, out _) == FuelVolumeStatus.Success, + DiagnosticCode.Range, c.Id, "fuel_chamber.volume_range", "Use representable chamber volumes and a material interval covering the declared geometry."); + FuelChamberByComponent[i] = chambers.Count; chambers.Add(new(i, fuel, Nodes[c.A].Index, geometry)); + } + FuelChambers = chambers.ToArray(); + } + internal bool FuelChamberWork(int slot, EquilibriumFuelState state, double oldAngle, double delta, out CompliantFuelWorkTransfer work, out double torque, out double nextReferenceVolume) + { + work = default; torque = nextReferenceVolume = double.NaN; + if (!Numeric.Finite(oldAngle) || !Numeric.Finite(delta) || Math.Abs(delta) > CylinderSolver.MaxAngleStepRadians || + 8 * GearReference.Epsilon * Math.Max(Math.Abs(oldAngle), Math.Abs(oldAngle + delta)) > CylinderSolver.MaxAngleStepRadians) return false; + var chamber = FuelChambers[slot]; var volume = FuelVolumes[chamber.Fuel]; + double oldReference = state.ReferenceVolume![chamber.Fuel]; + nextReferenceVolume = delta == 0 ? oldReference : chamber.Geometry.ReferenceVolumeAt(oldAngle + delta); + if (volume.Law.AdiabaticReferenceVolume(state.Mass[chamber.Fuel], state.Energy[chamber.Fuel], oldReference, nextReferenceVolume, out work) != FuelVolumeStatus.Success) return false; + torque = delta == 0 ? work.Fluid.PressurePascals * chamber.Geometry.VolumeDerivativeAt(oldAngle) : -work.EnergyChangeJoules / delta; + return Numeric.Finite(torque); + } +} diff --git a/src/Power.Core/FuelDischarge.cs b/src/Power.Core/FuelDischarge.cs new file mode 100644 index 0000000..cab390d --- /dev/null +++ b/src/Power.Core/FuelDischarge.cs @@ -0,0 +1,187 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public enum FuelDischargePhaseModel { Frozen = 1, Equilibrium = 2 } +public sealed record FuelDischargeDefinition +{ + public uint FilmComponent { get; init; } + public FuelDischargePhaseModel PhaseModel { get; init; } + public Quantity WallKineticFraction { get; init; } + public InjectorNeedleDefinition? Needle { get; init; } +} +internal sealed record CompiledFuelDischarge(int Component, int Source, int Film, FrozenFuelNozzle Nozzle, double WallFraction, CompiledNeedle? Needle); + +internal sealed class FuelDischargeState(int count) +{ + internal readonly double[] Mass = new double[count], MassCorrection = new double[count], Energy = new double[count], EnergyCorrection = new double[count], + Kinetic = new double[count], KineticCorrection = new double[count], Heat = new double[count], HeatCorrection = new double[count], + Impulse = new double[count], ImpulseCorrection = new double[count], Flow = new double[count], Force = new double[count], + Throat = new double[count], ExitTemperature = new double[count], ExitVelocity = new double[count], Choked = new double[count]; + internal void CopyFrom(FuelDischargeState other) + { + Array.Copy(other.Mass, Mass, count); Array.Copy(other.MassCorrection, MassCorrection, count); + Array.Copy(other.Energy, Energy, count); Array.Copy(other.EnergyCorrection, EnergyCorrection, count); + Array.Copy(other.Kinetic, Kinetic, count); Array.Copy(other.KineticCorrection, KineticCorrection, count); + Array.Copy(other.Heat, Heat, count); Array.Copy(other.HeatCorrection, HeatCorrection, count); + Array.Copy(other.Impulse, Impulse, count); Array.Copy(other.ImpulseCorrection, ImpulseCorrection, count); + Array.Copy(other.Flow, Flow, count); Array.Copy(other.Force, Force, count); Array.Copy(other.Throat, Throat, count); + Array.Copy(other.ExitTemperature, ExitTemperature, count); Array.Copy(other.ExitVelocity, ExitVelocity, count); Array.Copy(other.Choked, Choked, count); + } + internal void BeginTick() { Array.Clear(Flow, 0, count); Array.Clear(Force, 0, count); } + internal bool EndTick(double seconds) + { for (int i = 0; i < count; ++i) { Flow[i] /= seconds; Force[i] /= seconds; } return Finite(); } + internal bool Finite() + { + for (int i = 0; i < count; ++i) + if (!GearReference.Finite(Mass[i], MassCorrection[i], Energy[i], EnergyCorrection[i]) || !GearReference.Finite(Kinetic[i], KineticCorrection[i], Heat[i], HeatCorrection[i]) || + !GearReference.Finite(Impulse[i], ImpulseCorrection[i], Flow[i], Force[i]) || !GearReference.Finite(Throat[i], ExitTemperature[i], ExitVelocity[i], Choked[i])) return false; + return true; + } + internal ulong Hash(ulong hash) + { + for (int i = 0; i < count; ++i) + { + hash = Numeric.Hash(hash, Mass[i]); hash = Numeric.Hash(hash, MassCorrection[i]); hash = Numeric.Hash(hash, Energy[i]); hash = Numeric.Hash(hash, EnergyCorrection[i]); + hash = Numeric.Hash(hash, Kinetic[i]); hash = Numeric.Hash(hash, KineticCorrection[i]); hash = Numeric.Hash(hash, Heat[i]); hash = Numeric.Hash(hash, HeatCorrection[i]); + hash = Numeric.Hash(hash, Impulse[i]); hash = Numeric.Hash(hash, ImpulseCorrection[i]); hash = Numeric.Hash(hash, Flow[i]); hash = Numeric.Hash(hash, Force[i]); + hash = Numeric.Hash(hash, Throat[i]); hash = Numeric.Hash(hash, ExitTemperature[i]); hash = Numeric.Hash(hash, ExitVelocity[i]); hash = Numeric.Hash(hash, Choked[i]); + } + return hash; + } +} + +public sealed partial class CompiledModel +{ + internal CompiledFuelDischarge[] FuelDischarges { get; private set; } = []; + internal int[] FuelDischargeByComponent { get; private set; } = []; + public bool HasFuelDischarge => FuelDischarges.Length != 0; + private void CompileFuelDischarges(ComponentDefinition[] definitions) + { + FuelDischargeByComponent = new int[Components.Length]; Array.Fill(FuelDischargeByComponent, -1); var result = new List(); + for (int i = 0; i < Components.Length; ++i) + { + var c = Components[i]; if (c.Kind != ComponentKind.FuelDischarge) continue; var d = definitions[i].FuelDischarge!; + int film = Array.FindIndex(FuelFilms, f => Components[f.Component].Id == d.FilmComponent); + Require(film >= 0 && FuelFilms[film].FiniteVolume is not null && FuelFilms[film].Gas == Nodes[c.B].Index, DiagnosticCode.Connection, c.Id, + "fuel_discharge.film_component", "Use an exclusively volume-owning finite-displacement film at the gas receiver."); + int source = FuelByNode[c.A]; var material = FuelVolumes[source].Law.Material; var receiver = FuelFilms[film]; var reference = receiver.Phase!; + Require(d.PhaseModel == FuelDischargePhaseModel.Frozen, DiagnosticCode.Schema, c.Id, "fuel_discharge.phase_mode", "Declare the frozen-quality nozzle transit model explicitly."); + // Gas cv is derived from gamma; fuel nodes declare cv directly. Allow + // only binary64 conversion rounding between these two representations. + Require(FuelVolumes[source].Law.LiquidDensityKilogramsPerCubicMeter == receiver.FiniteVolume!.DensityKilogramsPerCubicMeter && + FuelVolumes[source].HeatingValue == receiver.HeatingValue && material.GasConstantJoulesPerKilogramKelvin == reference.GasConstantJoulesPerKilogramKelvin && + Math.Abs(material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin - reference.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin) <= + 64 * GearReference.Epsilon * Math.Max(material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, reference.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin) && + material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin == reference.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin && + material.Caloric.SaturationTemperatureKelvin == reference.Caloric.SaturationTemperatureKelvin && material.Caloric.LatentInternalEnergyJoulesPerKilogram == reference.Caloric.LatentInternalEnergyJoulesPerKilogram && + material.ReferencePressurePascals == reference.ReferencePressurePascals && material.MinimumTemperatureKelvin == reference.MinimumTemperatureKelvin && material.MaximumTemperatureKelvin == reference.MaximumTemperatureKelvin, + DiagnosticCode.Connection, c.Id, "fuel_discharge.material", "Source and receiver require equal pure-fuel density, caloric/phase reference, bounds, gas R/cv and heating value."); + double fraction = Convert(d.WallKineticFraction, Unit.Fraction, c.Id, "fuel_discharge.wall_kinetic_fraction"); + Require(fraction is >= 0 and <= 1, DiagnosticCode.Range, c.Id, "fuel_discharge.wall_kinetic_fraction", "Declare the jet kinetic-energy fraction thermalized at the finite stationary film wall in [0,1]."); + CompiledNeedle? needle = null; + if (d.Needle is { } n) + { + int node = Array.FindIndex(Nodes, x => x.Id == n.NeedleNode); + Require(node >= 0 && Nodes[node].Domain == Domain.Translational, DiagnosticCode.Connection, c.Id, "fuel_discharge.needle_node", "Use a translational needle node."); + double closed = Convert(n.ClosedPosition, Unit.Meter, c.Id, "fuel_discharge.closed_position"), open = Convert(n.FullOpenPosition, Unit.Meter, c.Id, "fuel_discharge.full_open_position"); + Require(open > closed && Numeric.Finite(open - closed), DiagnosticCode.Range, c.Id, "fuel_discharge.needle", "Full-open position must exceed closed position."); + needle = new(Nodes[node].Index, closed, open); + } + FuelDischargeByComponent[i] = result.Count; + result.Add(new(i, source, film, new(material, receiver.FiniteVolume.DensityKilogramsPerCubicMeter, c.P0, c.P1), fraction, needle)); + } + FuelDischarges = result.ToArray(); + } +} + +/// Conservative end-state mass/enthalpy/kinetic solve into a finite-displacement receiver. +internal sealed class FuelDischargeSolver(CompiledModel model, FuelFilmSolver films) +{ + private readonly double[] _values = new double[3], _residual = new double[3], _trial = new double[3], _trialResidual = new double[3], _difference = new double[3], _change = new double[3]; + private readonly double[,] _jacobian = new double[3, 3]; + private readonly Factorization _factor = new(3); + internal bool Advance(FuelDischargeState state, EquilibriumFuelState sourceState, FuelFilmState filmState, MixtureState mixture, + double[] gasMass, double[] gasEnergy, double[] dynamics, double[] inputs, LiquidTankState? tanks, double seconds, bool reverse = false) + { + for (int order = 0; order < model.FuelDischarges.Length; ++order) + { + int slot = reverse ? model.FuelDischarges.Length - 1 - order : order; var d = model.FuelDischarges[slot]; var film = model.FuelFilms[d.Film]; + double opening = model.Gas!.Opening(d.Component, dynamics, inputs) * (d.Needle?.Opening(dynamics) ?? 1); + if (opening == 0) continue; + var source = model.FuelVolumes[d.Source]; double sourceVolume = sourceState.ReferenceVolume is null ? source.Law.ReferenceVolumeCubicMeters : sourceState.ReferenceVolume[d.Source]; + if (source.Law.FlashAtReferenceVolume(sourceState.Mass[d.Source], sourceState.Energy[d.Source], sourceVolume, out var initialSource) != FuelVolumeStatus.Success) return false; + double cavity = model.Gas.CavityVolumeAt(film.Gas, dynamics, tanks), carrier = mixture.Air[film.Gas] + mixture.Products[film.Gas]; + double fuel = filmState.Mass[d.Film] + mixture.Fuel[film.Gas], receiverEnergy = filmState.Energy[d.Film] + gasEnergy[film.Gas]; + var finite = film.FiniteVolume!; + if (!finite.TryFlashEnergyAtCapacity(fuel, carrier, receiverEnergy, cavity, out var initialReceiver) || + !finite.TryPointAtCapacity(initialReceiver.TemperatureKelvin, fuel, carrier, cavity, out var initialPoint)) return false; + var status = d.Nozzle.Evaluate(initialSource.PressurePascals, initialSource.TemperatureKelvin, initialSource.VaporMassFraction, initialPoint.PressurePascals, opening, out var initialNozzle); + if (status != FuelNozzleStatus.Success) return false; + if (initialNozzle.MassFlowKilogramsPerSecond == 0) continue; + double m0 = sourceState.Mass[d.Source], e0 = sourceState.Energy[d.Source], wallT = films.CurrentWallTemperature(film.Wall); + double massScale = seconds * initialNozzle.MassFlowKilogramsPerSecond; + double energyScale = massScale * (Math.Abs(initialNozzle.StagnationEnthalpyJoulesPerKilogram) + initialSource.HeatCapacityJoulesPerKelvin * initialSource.TemperatureKelvin / m0); + double kineticScale = massScale * Math.Max(initialNozzle.KineticEnergyJoulesPerKilogram, initialSource.HeatCapacityJoulesPerKelvin * initialSource.TemperatureKelvin / m0 * 1e-6); + if (!GearReference.Finite(massScale, energyScale, kineticScale, wallT) || massScale <= 0 || energyScale <= 0 || kineticScale <= 0) return false; + bool Evaluate(double[] values, double[] residual, out double norm, out CompliantFuelPoint left, out FiniteFuelPhaseState right, out FiniteTankPhasePoint point, out FrozenFuelNozzlePoint nozzle) + { + left = default; right = default; point = default; nozzle = default; norm = double.PositiveInfinity; + double mass = values[0] * massScale, enthalpy = values[1] * energyScale, kinetic = values[2] * kineticScale; + if (mass < 0 || mass > .25 * m0 || kinetic < 0 || source.Law.FlashAtReferenceVolume(m0 - mass, e0 - enthalpy, sourceVolume, out left) != FuelVolumeStatus.Success || + !finite.TryFlashEnergyAtCapacity(fuel + mass, carrier, receiverEnergy + enthalpy - d.WallFraction * kinetic, cavity, out right) || + !finite.TryPointAtCapacity(right.TemperatureKelvin, fuel + mass, carrier, cavity, out point)) return false; + if (d.Nozzle.Evaluate(left.PressurePascals, left.TemperatureKelvin, left.VaporMassFraction, point.PressurePascals, opening, out nozzle) != FuelNozzleStatus.Success) return false; + residual[0] = (mass - seconds * nozzle.MassFlowKilogramsPerSecond) / massScale; + residual[1] = (enthalpy - mass * nozzle.StagnationEnthalpyJoulesPerKilogram) / energyScale; + residual[2] = (kinetic - mass * nozzle.KineticEnergyJoulesPerKilogram) / kineticScale; + norm = Math.Max(Math.Abs(residual[0]), Math.Max(Math.Abs(residual[1]), Math.Abs(residual[2]))); + return Numeric.Finite(norm); + } + Array.Clear(_values, 0, 3); bool converged = false; + CompliantFuelPoint endSource = default; FiniteFuelPhaseState endReceiver = default; FiniteTankPhasePoint endPoint = default; FrozenFuelNozzlePoint endNozzle = default; + for (int iteration = 0; iteration < 40; ++iteration) + { + if (!Evaluate(_values, _residual, out double norm, out endSource, out endReceiver, out endPoint, out endNozzle)) return false; + if (norm <= 1e-10) { converged = true; break; } + for (int column = 0; column < 3; ++column) + { + Array.Copy(_values, _trial, 3); double delta = 1e-5 * Math.Max(1, Math.Abs(_values[column])); _trial[column] += delta; + if (!Evaluate(_trial, _difference, out _, out _, out _, out _, out _)) + { _trial[column] = _values[column] - delta; delta = -delta; if (!Evaluate(_trial, _difference, out _, out _, out _, out _, out _)) return false; } + for (int row = 0; row < 3; ++row) _jacobian[row, column] = (_difference[row] - _residual[row]) / delta; + } + for (int row = 0; row < 3; ++row) _change[row] = -_residual[row]; + if (!_factor.Refactor(_jacobian) || !_factor.Solve(_change)) return false; + double fraction = 1; bool accepted = false; + for (int search = 0; search < 24; ++search, fraction *= .5) + { + for (int row = 0; row < 3; ++row) _trial[row] = _values[row] + fraction * _change[row]; + if (Evaluate(_trial, _trialResidual, out double candidate, out _, out _, out _, out _) && candidate < norm) + { Array.Copy(_trial, _values, 3); accepted = true; break; } + } + if (!accepted) return false; + } + if (!converged) return false; + double q = _values[0] * massScale, h = _values[1] * energyScale, k = _values[2] * kineticScale, heat = d.WallFraction * k; + double wallNext = wallT + heat / film.WallCapacity; + double entropy = endSource.EntropyJoulesPerKelvin - initialSource.EntropyJoulesPerKelvin + finite.Entropy(endPoint, carrier) - finite.Entropy(initialPoint, carrier) + film.WallCapacity * Math.Log(wallNext / wallT); + double entropyScale = Math.Abs(initialSource.EntropyJoulesPerKelvin) + Math.Abs(finite.Entropy(initialPoint, carrier)) + initialSource.HeatCapacityJoulesPerKelvin + initialPoint.HeatCapacityJoulesPerKelvin + film.WallCapacity; + if (!Numeric.Finite(entropy) || entropy < -512 * GearReference.Epsilon * entropyScale) return false; + Numeric.Accumulate(-q, ref sourceState.Mass[d.Source], ref sourceState.MassCorrection[d.Source]); Numeric.Accumulate(-h, ref sourceState.Energy[d.Source], ref sourceState.EnergyCorrection[d.Source]); + double oldLiquid = filmState.Mass[d.Film]; filmState.Mass[d.Film] = endReceiver.Liquid.LiquidMassKilograms; filmState.Energy[d.Film] = endReceiver.Liquid.ThermalEnergyJoules; + // Remove advected liquid from the net phase history: only local phase transfer counts. + filmState.TickVapor[d.Film] += oldLiquid + q * (1 - endSource.VaporMassFraction) - endReceiver.Liquid.LiquidMassKilograms; + mixture.Fuel[film.Gas] = endReceiver.VaporMassKilograms; gasMass[film.Gas] = endReceiver.VaporMassKilograms + carrier; gasEnergy[film.Gas] = endReceiver.GasEnergyJoules; + films.AddHeat(film.Wall, film.WallCapacity, heat); + Numeric.Accumulate(q, ref state.Mass[slot], ref state.MassCorrection[slot]); Numeric.Accumulate(h, ref state.Energy[slot], ref state.EnergyCorrection[slot]); + Numeric.Accumulate(k, ref state.Kinetic[slot], ref state.KineticCorrection[slot]); Numeric.Accumulate(heat, ref state.Heat[slot], ref state.HeatCorrection[slot]); + double impulse = q * endNozzle.ExitVelocityMetersPerSecond; Numeric.Accumulate(impulse, ref state.Impulse[slot], ref state.ImpulseCorrection[slot]); + state.Flow[slot] += q; state.Force[slot] += impulse; state.Throat[slot] = endNozzle.ThroatPressurePascals; state.ExitTemperature[slot] = endNozzle.ExitTemperatureKelvin; + state.ExitVelocity[slot] = endNozzle.ExitVelocityMetersPerSecond; state.Choked[slot] = endNozzle.Choked ? 1 : 0; + } + return state.Finite(); + } +} diff --git a/src/Power.Core/FuelFilm.cs b/src/Power.Core/FuelFilm.cs index ac6e94d..13526d4 100644 --- a/src/Power.Core/FuelFilm.cs +++ b/src/Power.Core/FuelFilm.cs @@ -11,6 +11,8 @@ public sealed record FuelFilmDefinition public Quantity LiquidSpecificHeat { get; init; } public Quantity SaturationTemperature { get; init; } public Quantity LatentInternalEnergy { get; init; } + public FuelPhaseEquilibriumDefinition? PhaseEquilibrium { get; init; } + public Quantity FiniteVolumeDensity { get; init; } } public readonly record struct FuelFilmSample(double LiquidMassKilograms, double ThermalEnergyJoules); @@ -87,17 +89,39 @@ public bool TryAdvance(FuelFilmSample state,double wallTemperatureKelvin,double } } -internal sealed record CompiledFuelFilm(int Component,int Gas,int Wall,double WallCapacity,double HeatingValue,double InitialMass,FuelFilmSample Initial,EquilibriumFuelFilm Law); -internal sealed class FuelFilmState(int count) +internal sealed record CompiledFuelFilm(int Component,int Gas,int Wall,double WallCapacity,double HeatingValue,double InitialMass,FuelFilmSample Initial,EquilibriumFuelFilm Law, FuelPhaseEquilibrium? Phase = null, FiniteTankFuelEquilibrium? FiniteVolume = null) +{ + internal bool LiquidTemperatureValid(double temperature) => Numeric.Finite(temperature) && + (Phase is null ? temperature > 0 && temperature <= Law.SaturationTemperatureKelvin : + temperature >= Phase.MinimumTemperatureKelvin && temperature <= Phase.MaximumTemperatureKelvin); + internal FuelFilmSample LiquidState(double mass, double temperature) => Phase is null ? Law.CreateState(mass, temperature) : Phase.CreateLiquidState(mass, temperature); +} +internal sealed class FuelFilmState(int count, CompiledModel? equilibriumModel = null) { internal readonly double[] Mass=new double[count],Energy=new double[count],Vaporized=new double[count],VaporCorrection=new double[count],TickVapor=new double[count],WallHeat=new double[count],HeatCorrection=new double[count]; + internal readonly double[]? Condensed = equilibriumModel is not null ? new double[count] : null, CondensedCorrection = equilibriumModel is not null ? new double[count] : null; internal void CopyFrom(FuelFilmState other) - {Array.Copy(other.Mass,Mass,count);Array.Copy(other.Energy,Energy,count);Array.Copy(other.Vaporized,Vaporized,count);Array.Copy(other.VaporCorrection,VaporCorrection,count);Array.Copy(other.TickVapor,TickVapor,count);Array.Copy(other.WallHeat,WallHeat,count);Array.Copy(other.HeatCorrection,HeatCorrection,count);} + {Array.Copy(other.Mass,Mass,count);Array.Copy(other.Energy,Energy,count);Array.Copy(other.Vaporized,Vaporized,count);Array.Copy(other.VaporCorrection,VaporCorrection,count);Array.Copy(other.TickVapor,TickVapor,count);Array.Copy(other.WallHeat,WallHeat,count);Array.Copy(other.HeatCorrection,HeatCorrection,count); + if(Condensed is not null){Array.Copy(other.Condensed!,Condensed,count);Array.Copy(other.CondensedCorrection!,CondensedCorrection!,count);}} internal void BeginTick()=>Array.Clear(TickVapor,0,count); - internal bool EndTick(double duration){for(int i=0;i= 0) Numeric.Accumulate(TickVapor[i], ref Vaporized[i], ref VaporCorrection[i]); + else Numeric.Accumulate(-TickVapor[i], ref Condensed![i], ref CondensedCorrection![i]); + } + TickVapor[i]/=duration; + } + return Finite(); + } + internal bool Finite(){for(int i=0;i _wallTemperature[wall]; internal void BeginInterval(double[] temperature){Array.Copy(temperature,_wallTemperature,temperature.Length);Array.Clear(WallHeat,0,WallHeat.Length);} - internal bool Advance(FuelFilmState state,double[] gasMass,double[] gasEnergy,MixtureState mixture,double duration,bool reverse=false) + internal bool Advance(FuelFilmState state,double[] gasMass,double[] gasEnergy,MixtureState mixture,double duration,double[] dynamics,LiquidTankState? tanks,bool reverse=false,bool equilibriumOnly=false) { for(int slot=0;slotRigid, horizontal, always-open liquid line; material properties come from its finite fuel ports. +public sealed record FuelInertialPipeDefinition +{ + public Quantity Length { get; init; } + public Quantity Area { get; init; } + public Quantity LinearResistance { get; init; } + public Quantity QuadraticResistance { get; init; } + public Quantity InitialFlow { get; init; } + public Quantity InitialTemperature { get; init; } + public Quantity FluidHeatFraction { get; init; } +} + +internal sealed record CompiledFuelPipe(int Component, int A, int B, int Wall, double WallCapacity, double Length, + double Area, double Inertia, double Mass, double Linear, double Quadratic, double FluidFraction, double InitialFlow, + double InitialTemperature, double InitialEnergy); + +internal sealed class FuelPipeState(int count) +{ + internal readonly double[] Flow = new double[count], Energy = new double[count], EnergyCorrection = new double[count], + Forward = new double[count], ForwardCorrection = new double[count], Reverse = new double[count], ReverseCorrection = new double[count], + Net = new double[count], NetCorrection = new double[count], Work = new double[count], WorkCorrection = new double[count], + Friction = new double[count], FrictionCorrection = new double[count], FluidHeat = new double[count], FluidCorrection = new double[count], + WallHeat = new double[count], WallCorrection = new double[count], EnergyA = new double[count], EnergyACorrection = new double[count], + EnergyB = new double[count], EnergyBCorrection = new double[count], Entropy = new double[count], EntropyCorrection = new double[count], TickVolume = new double[count]; + internal void CopyFrom(FuelPipeState other) + { + Array.Copy(other.Flow, Flow, count); Array.Copy(other.Energy, Energy, count); Array.Copy(other.EnergyCorrection, EnergyCorrection, count); + Array.Copy(other.Forward, Forward, count); Array.Copy(other.ForwardCorrection, ForwardCorrection, count); Array.Copy(other.Reverse, Reverse, count); Array.Copy(other.ReverseCorrection, ReverseCorrection, count); + Array.Copy(other.Net, Net, count); Array.Copy(other.NetCorrection, NetCorrection, count); Array.Copy(other.Work, Work, count); Array.Copy(other.WorkCorrection, WorkCorrection, count); + Array.Copy(other.Friction, Friction, count); Array.Copy(other.FrictionCorrection, FrictionCorrection, count); Array.Copy(other.FluidHeat, FluidHeat, count); Array.Copy(other.FluidCorrection, FluidCorrection, count); + Array.Copy(other.WallHeat, WallHeat, count); Array.Copy(other.WallCorrection, WallCorrection, count); Array.Copy(other.EnergyA, EnergyA, count); Array.Copy(other.EnergyACorrection, EnergyACorrection, count); + Array.Copy(other.EnergyB, EnergyB, count); Array.Copy(other.EnergyBCorrection, EnergyBCorrection, count); Array.Copy(other.Entropy, Entropy, count); Array.Copy(other.EntropyCorrection, EntropyCorrection, count); Array.Copy(other.TickVolume, TickVolume, count); + } + internal void BeginTick() => Array.Clear(TickVolume, 0, count); + internal bool EndTick(double seconds) { for (int i = 0; i < count; ++i) TickVolume[i] /= seconds; return Finite(); } + internal bool Finite() + { + for (int i = 0; i < count; ++i) + if (!GearReference.Finite(Flow[i], Energy[i], EnergyCorrection[i], TickVolume[i]) || + !GearReference.Finite(Forward[i], ForwardCorrection[i], Reverse[i], ReverseCorrection[i]) || + !GearReference.Finite(Net[i], NetCorrection[i], Work[i], WorkCorrection[i]) || + !GearReference.Finite(Friction[i], FrictionCorrection[i], FluidHeat[i], FluidCorrection[i]) || + !GearReference.Finite(WallHeat[i], WallCorrection[i], EnergyA[i], EnergyACorrection[i]) || + !GearReference.Finite(EnergyB[i], EnergyBCorrection[i], Entropy[i], EntropyCorrection[i]) || Forward[i] < 0 || Reverse[i] < 0 || Friction[i] < 0 || FluidHeat[i] < 0 || WallHeat[i] < 0) return false; + return true; + } + internal ulong Hash(ulong h) + { + for (int i = 0; i < count; ++i) + { + h = Numeric.Hash(h, Flow[i]); h = Numeric.Hash(h, Energy[i]); h = Numeric.Hash(h, EnergyCorrection[i]); h = Numeric.Hash(h, TickVolume[i]); + h = Numeric.Hash(h, Forward[i]); h = Numeric.Hash(h, ForwardCorrection[i]); h = Numeric.Hash(h, Reverse[i]); h = Numeric.Hash(h, ReverseCorrection[i]); + h = Numeric.Hash(h, Net[i]); h = Numeric.Hash(h, NetCorrection[i]); h = Numeric.Hash(h, Work[i]); h = Numeric.Hash(h, WorkCorrection[i]); + h = Numeric.Hash(h, Friction[i]); h = Numeric.Hash(h, FrictionCorrection[i]); h = Numeric.Hash(h, FluidHeat[i]); h = Numeric.Hash(h, FluidCorrection[i]); + h = Numeric.Hash(h, WallHeat[i]); h = Numeric.Hash(h, WallCorrection[i]); h = Numeric.Hash(h, EnergyA[i]); h = Numeric.Hash(h, EnergyACorrection[i]); + h = Numeric.Hash(h, EnergyB[i]); h = Numeric.Hash(h, EnergyBCorrection[i]); h = Numeric.Hash(h, Entropy[i]); h = Numeric.Hash(h, EntropyCorrection[i]); + } + return h; + } +} + +public sealed partial class CompiledModel +{ + internal CompiledFuelPipe[] FuelPipes { get; private set; } = []; + internal int[] FuelPipeByComponent { get; private set; } = []; + public bool HasFuelPipes => FuelPipes.Length != 0; + private void CompileFuelPipes(ComponentDefinition[] definitions) + { + FuelPipeByComponent = new int[Components.Length]; Array.Fill(FuelPipeByComponent, -1); var result = new List(); + for (int i = 0; i < Components.Length; ++i) + { + var c = Components[i]; if (c.Kind != ComponentKind.FuelInertialPipe) continue; + var d = definitions[i].FuelPipe!; int a = FuelByNode[c.A], b = FuelByNode[c.B]; + Require(FuelCompatible(FuelVolumes[a], FuelVolumes[b]), DiagnosticCode.Connection, c.Id, "fuel_pipe.material", "Inertial line ports require identical pure-fuel material and density."); + double Q(Quantity q, Unit unit, string field) => Convert(q, unit, c.Id, "fuel_pipe." + field); + double length = Q(d.Length, Unit.Meter, "length"), area = Q(d.Area, Unit.SquareMeter, "area"), + linear = Q(d.LinearResistance, Unit.PascalSecondPerCubicMeter, "linear_resistance"), quadratic = Q(d.QuadraticResistance, Unit.PascalSecondSquaredPerCubicMeterSquared, "quadratic_resistance"), + flow = Q(d.InitialFlow, Unit.CubicMeterPerSecond, "initial_flow"), temperature = Q(d.InitialTemperature, Unit.Kelvin, "initial_temperature"), fraction = Q(d.FluidHeatFraction, Unit.Fraction, "fluid_heat_fraction"); + Require(length > 0 && area > 0 && linear >= 0 && quadratic >= 0 && fraction is >= 0 and <= 1, DiagnosticCode.Range, c.Id, "fuel_pipe", "Declare positive line geometry, nonnegative pressure-loss coefficients and a heat fraction in [0,1]."); + var law = FuelVolumes[a].Law; double density = law.LiquidDensityKilogramsPerCubicMeter, mass = density * length * area, inertia = density * length / area; + Require(GearReference.Finite(mass, inertia, 1 / inertia, .5 * inertia * flow * flow) && mass > 0 && inertia > 0 && Numeric.Finite(mass * FuelVolumes[a].HeatingValue), + DiagnosticCode.Range, c.Id, "fuel_pipe.geometry", "Line mass and inertance must be positive and representable."); + var pa = FuelVolumes[a].Initial; var pb = FuelVolumes[b].Initial; + Require(pa.Phase == FuelVolumePhase.Liquid && pb.Phase == FuelVolumePhase.Liquid && + FuelPipeSolver.LiquidAt(law, temperature, Math.Min(pa.PressurePascals, pb.PressurePascals)), DiagnosticCode.Range, c.Id, "fuel_pipe.initial_temperature", + "Use liquid-only ports and line temperature inside the material interval and below its pressure-corrected boiling limit. Flashing is unsupported."); + double energy = mass * (law.Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin * temperature + law.Material.Caloric.LiquidEnergyOffsetJoulesPerKilogram); + Require(Numeric.Finite(energy), DiagnosticCode.Range, c.Id, "fuel_pipe.initial_temperature", "Line caloric inventory is not representable."); + FuelPipeByComponent[i] = result.Count; + result.Add(new(i, a, b, Nodes[c.Heat].Index, Nodes[c.Heat].Storage, length, area, inertia, mass, linear, quadratic, fraction, flow, temperature, energy)); + } + FuelPipes = result.ToArray(); + } +} + +/// +/// Pairwise finite-liquid momentum and caloric inventory. End-state port enthalpy and +/// mixing are backward Euler; midpoint momentum is energy conjugate. Pressure-endpoint +/// discretization adds nonnegative numerical caloric heating, distinct from friction. +/// +internal sealed class FuelPipeSolver(CompiledModel model) +{ + internal static bool LiquidAt(CompliantFuelVolume law, double temperature, double pressure) => + law.Saturation(temperature, out var saturation) == FuelVolumeStatus.Success && FuelPhaseEquilibrium.PressureAllowsLiquid(pressure, saturation.PressurePascals); + internal static double Temperature(CompiledModel model, CompiledFuelPipe pipe, double energy) + { + var caloric = model.FuelVolumes[pipe.A].Law.Material.Caloric; + return (energy / pipe.Mass - caloric.LiquidEnergyOffsetJoulesPerKilogram) / caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + } + internal bool Advance(FuelPipeState pipes, EquilibriumFuelState fuel, double[] wallTemperature, double seconds, bool reverse = false) + { + for (int order = 0; order < model.FuelPipes.Length; ++order) + { + int i = reverse ? model.FuelPipes.Length - 1 - order : order; var pipe = model.FuelPipes[i]; + if (!EquilibriumFuelSolver.Point(model.FuelVolumes[pipe.A], fuel, pipe.A, out var a) || !EquilibriumFuelSolver.Point(model.FuelVolumes[pipe.B], fuel, pipe.B, out var b) || + a.Phase != FuelVolumePhase.Liquid || b.Phase != FuelVolumePhase.Liquid) return false; + double slope = 1 / model.FuelVolumes[pipe.A].Law.ComplianceCubicMetersPerPascal + 1 / model.FuelVolumes[pipe.B].Law.ComplianceCubicMetersPerPascal; + if (!Numeric.Finite(slope) || seconds * Math.Sqrt(slope / pipe.Inertia) > .5) return false; + if (!Mean(pipe, pipes.Flow[i], a.PressurePascals - b.PressurePascals, slope, seconds, out double mean)) return false; + double end = 2 * mean - pipes.Flow[i], initial = pipes.Flow[i]; + if (initial > 0 && end < 0 || initial < 0 && end > 0) + { + double half = initial / 2, lo = 0, hi = seconds; + for (int iteration = 0; iteration < 64; ++iteration) + { + double h = (lo + hi) / 2; + double residual = -pipe.Inertia * initial - h * (a.PressurePascals - b.PressurePascals - h * slope * half - Loss(pipe, half)); + if ((initial > 0 ? residual : -residual) > 0) hi = h; else lo = h; + } + double crossing = (lo + hi) / 2; + if (crossing <= 0 || crossing >= seconds || !Transfer(pipes, fuel, wallTemperature, i, crossing, true) || !Transfer(pipes, fuel, wallTemperature, i, seconds - crossing, false)) return false; + } + else if (!Transfer(pipes, fuel, wallTemperature, i, seconds, false)) return false; + } + return pipes.Finite() && fuel.Finite(); + } + private static double Loss(CompiledFuelPipe p, double flow) => p.Linear * flow + p.Quadratic * flow * Math.Abs(flow); + private static bool Mean(CompiledFuelPipe p, double initial, double pressure, double slope, double seconds, out double mean) + { + double linear = 2 * p.Inertia + seconds * p.Linear + seconds * seconds * slope, quadratic = seconds * p.Quadratic, right = 2 * p.Inertia * initial + seconds * pressure; + mean = 0; + if (!GearReference.Finite(linear, quadratic, right, 0) || linear <= 0) return false; + if (quadratic == 0) mean = right / linear; + else + { + double discriminant = linear * linear + 4 * quadratic * Math.Abs(right); + if (!Numeric.Finite(discriminant) || discriminant <= 0) return false; + mean = right / (.5 * linear + .5 * Math.Sqrt(discriminant)); + } + return Numeric.Finite(mean); + } + private bool Transfer(FuelPipeState state, EquilibriumFuelState fuel, double[] wallTemperature, int slot, double seconds, bool zeroEnd) + { + var pipe = model.FuelPipes[slot]; var va = model.FuelVolumes[pipe.A]; var vb = model.FuelVolumes[pipe.B]; + if (!EquilibriumFuelSolver.Point(va, fuel, pipe.A, out var a) || !EquilibriumFuelSolver.Point(vb, fuel, pipe.B, out var b) || a.Phase != FuelVolumePhase.Liquid || b.Phase != FuelVolumePhase.Liquid) return false; + double ca = va.Law.ComplianceCubicMetersPerPascal, cb = vb.Law.ComplianceCubicMetersPerPascal, q0 = state.Flow[slot], mean; + if (zeroEnd) mean = q0 / 2; + else if (!Mean(pipe, q0, a.PressurePascals - b.PressurePascals, 1 / ca + 1 / cb, seconds, out mean)) return false; + double q1 = zeroEnd ? 0 : 2 * mean - q0, volume = seconds * mean, rho = va.Law.LiquidDensityKilogramsPerCubicMeter, mass = rho * volume; + if (!GearReference.Finite(q1, volume, mass, 0) || Math.Abs(mass) > .25 * Math.Min(a.MassKilograms, b.MassKilograms)) return false; + double ma = fuel.Mass[pipe.A], mb = fuel.Mass[pipe.B], mac = fuel.MassCorrection[pipe.A], mbc = fuel.MassCorrection[pipe.B]; + Numeric.Accumulate(-mass, ref ma, ref mac); Numeric.Accumulate(mass, ref mb, ref mbc); + double ra = fuel.ReferenceVolume is null ? va.Law.ReferenceVolumeCubicMeters : fuel.ReferenceVolume[pipe.A]; + double rb = fuel.ReferenceVolume is null ? vb.Law.ReferenceVolumeCubicMeters : fuel.ReferenceVolume[pipe.B]; + double pa = (ma / rho - ra) / ca, pb = (mb / rho - rb) / cb; + if (!GearReference.Finite(pa, pb, ma, mb) || pa <= 0 || pb <= 0 || pa > va.Law.MaximumPressurePascals || pb > vb.Law.MaximumPressurePascals) return false; + var caloric = va.Law.Material.Caloric; double cl = caloric.LiquidSpecificHeatJoulesPerKilogramKelvin, offset = caloric.LiquidEnergyOffsetJoulesPerKilogram; + bool forward = mass >= 0; double amount = Math.Abs(mass), donorMass = forward ? a.MassKilograms : b.MassKilograms, donorEnergy = forward ? fuel.Energy[pipe.A] : fuel.Energy[pipe.B]; + double donorPressure = forward ? pa : pb, donorCompliance = forward ? ca : cb; + double donorInternal = (donorEnergy - .5 * donorCompliance * donorPressure * donorPressure - amount * donorPressure / rho) / donorMass; + double donorTemperature = (donorInternal - offset) / cl, oldLineTemperature = Temperature(model, pipe, state.Energy[slot]); + double friction = seconds * mean * Loss(pipe, mean), fluidHeat = pipe.FluidFraction * friction, wallHeat = friction - fluidHeat; + double lineTemperature = oldLineTemperature + (amount * cl * (donorTemperature - oldLineTemperature) + fluidHeat) / ((pipe.Mass + amount) * cl); + double lineInternal = cl * lineTemperature + offset, oldWall = wallTemperature[pipe.Wall], newWall = oldWall + wallHeat / pipe.WallCapacity; + if (!GearReference.Finite(donorTemperature, lineTemperature, friction, newWall) || friction < 0 || newWall <= 0 || + !LiquidAt(va.Law, lineTemperature, Math.Min(pa, pb))) return false; + double outA = forward ? mass * (donorInternal + pa / rho) : mass * (lineInternal + pa / rho); + double inB = forward ? mass * (lineInternal + pb / rho) : mass * (donorInternal + pb / rho); + double lineChange = amount * (donorInternal - lineInternal) + fluidHeat; + double ea = fuel.Energy[pipe.A], eb = fuel.Energy[pipe.B], eac = fuel.EnergyCorrection[pipe.A], ebc = fuel.EnergyCorrection[pipe.B]; + double el = state.Energy[slot], elc = state.EnergyCorrection[slot]; + Numeric.Accumulate(-outA, ref ea, ref eac); Numeric.Accumulate(inB, ref eb, ref ebc); Numeric.Accumulate(lineChange, ref el, ref elc); + if (va.Law.FlashAtReferenceVolume(ma, ea, ra, out var endA) != FuelVolumeStatus.Success || vb.Law.FlashAtReferenceVolume(mb, eb, rb, out var endB) != FuelVolumeStatus.Success || + endA.Phase != FuelVolumePhase.Liquid || endB.Phase != FuelVolumePhase.Liquid || + !LiquidAt(va.Law, Temperature(model, pipe, el), Math.Min(endA.PressurePascals, endB.PressurePascals))) return false; + double kineticChange = pipe.Inertia * mean * (q1 - q0), work = (pa - pb) * volume; + double scale = Math.Abs(outA) + Math.Abs(inB) + Math.Abs(lineChange) + friction + Math.Abs(work) + .5 * pipe.Inertia * (q0 * q0 + q1 * q1); + if (!Numeric.Finite(scale) || Math.Abs(work - friction - kineticChange) > 1024 * GearReference.Epsilon * scale) return false; + double entropy = endA.EntropyJoulesPerKelvin - a.EntropyJoulesPerKelvin + endB.EntropyJoulesPerKelvin - b.EntropyJoulesPerKelvin + + pipe.Mass * cl * Numeric.Log1p((Temperature(model, pipe, el) - oldLineTemperature) / oldLineTemperature) + pipe.WallCapacity * Numeric.Log1p((newWall - oldWall) / oldWall); + double entropyScale = Math.Abs(a.EntropyJoulesPerKelvin) + Math.Abs(b.EntropyJoulesPerKelvin) + a.HeatCapacityJoulesPerKelvin + b.HeatCapacityJoulesPerKelvin + pipe.Mass * cl + pipe.WallCapacity; + if (!Numeric.Finite(entropy) || entropy < -1024 * GearReference.Epsilon * entropyScale) return false; + fuel.Mass[pipe.A] = ma; fuel.MassCorrection[pipe.A] = mac; fuel.Mass[pipe.B] = mb; fuel.MassCorrection[pipe.B] = mbc; + fuel.Energy[pipe.A] = ea; fuel.EnergyCorrection[pipe.A] = eac; fuel.Energy[pipe.B] = eb; fuel.EnergyCorrection[pipe.B] = ebc; + state.Flow[slot] = q1; state.Energy[slot] = el; state.EnergyCorrection[slot] = elc; wallTemperature[pipe.Wall] = newWall; + state.TickVolume[slot] += volume; + Numeric.Accumulate(Math.Max(volume, 0), ref state.Forward[slot], ref state.ForwardCorrection[slot]); Numeric.Accumulate(Math.Max(-volume, 0), ref state.Reverse[slot], ref state.ReverseCorrection[slot]); + Numeric.Accumulate(volume, ref state.Net[slot], ref state.NetCorrection[slot]); Numeric.Accumulate(work, ref state.Work[slot], ref state.WorkCorrection[slot]); + Numeric.Accumulate(friction, ref state.Friction[slot], ref state.FrictionCorrection[slot]); Numeric.Accumulate(fluidHeat, ref state.FluidHeat[slot], ref state.FluidCorrection[slot]); + Numeric.Accumulate(wallHeat, ref state.WallHeat[slot], ref state.WallCorrection[slot]); Numeric.Accumulate(outA, ref state.EnergyA[slot], ref state.EnergyACorrection[slot]); + Numeric.Accumulate(inB, ref state.EnergyB[slot], ref state.EnergyBCorrection[slot]); Numeric.Accumulate(entropy, ref state.Entropy[slot], ref state.EntropyCorrection[slot]); + return true; + } +} diff --git a/src/Power.Core/FuelPhaseEquilibrium.cs b/src/Power.Core/FuelPhaseEquilibrium.cs new file mode 100644 index 0000000..0b4068d --- /dev/null +++ b/src/Power.Core/FuelPhaseEquilibrium.cs @@ -0,0 +1,183 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed record FuelPhaseEquilibriumDefinition +{ + public Quantity ReferencePressure { get; init; } + public Quantity MinimumTemperature { get; init; } + public Quantity MaximumTemperature { get; init; } +} + +public readonly record struct FuelPhasePoint(double TemperatureKelvin, double LiquidMassKilograms, + double VaporMassKilograms, double ThermalEnergyJoules, double HeatCapacityJoulesPerKelvin); + +public readonly record struct FuelPhaseTransfer(FuelFilmSample Liquid, double VaporMassKilograms, + double GasEnergyJoules, double TemperatureKelvin, double WallTemperatureKelvin, + double NetEvaporatedMassKilograms, double HeatFromWallJoules); + +/// +/// One ideal pseudo-species in a negligible-volume liquid phase and a tracked ideal-gas receiver. +/// The saturation curve and latent energy share the same constant-heat-capacity reference. +/// +public sealed class FuelPhaseEquilibrium +{ + public EquilibriumFuelFilm Caloric { get; } + public double GasConstantJoulesPerKilogramKelvin { get; } + public double ReferencePressurePascals { get; } + public double MinimumTemperatureKelvin { get; } + public double MaximumTemperatureKelvin { get; } + + public FuelPhaseEquilibrium(EquilibriumFuelFilm caloric, double gasConstant, + double referencePressure, double minimumTemperature, double maximumTemperature) + { + Caloric = caloric ?? throw new ArgumentNullException(nameof(caloric)); + GasConstantJoulesPerKilogramKelvin = gasConstant; + ReferencePressurePascals = referencePressure; + MinimumTemperatureKelvin = minimumTemperature; + MaximumTemperatureKelvin = maximumTemperature; + if (!GearReference.Finite(gasConstant, referencePressure, minimumTemperature, maximumTemperature) || + gasConstant <= 0 || referencePressure <= 0 || minimumTemperature <= 0 || maximumTemperature <= minimumTemperature || + caloric.SaturationTemperatureKelvin < minimumTemperature || caloric.SaturationTemperatureKelvin > maximumTemperature || + !(LatentInternalEnergy(minimumTemperature) > 0) || !(LatentInternalEnergy(maximumTemperature) > 0) || + !TrySaturationPressure(minimumTemperature, out _) || !TrySaturationPressure(maximumTemperature, out _)) + throw new ArgumentException("Use positive reference pressure and a finite temperature interval containing saturation_temperature, with positive latent energy throughout."); + } + + public double LatentInternalEnergy(double temperatureKelvin) => + (Caloric.VaporSpecificHeatJoulesPerKilogramKelvin - Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin) * temperatureKelvin - Caloric.LiquidEnergyOffsetJoulesPerKilogram; + + public double LatentEnthalpy(double temperatureKelvin) => + LatentInternalEnergy(temperatureKelvin) + GasConstantJoulesPerKilogramKelvin * temperatureKelvin; + + private double LogSaturationPressure(double temperature) + { + double reference = Caloric.SaturationTemperatureKelvin, r = GasConstantJoulesPerKilogramKelvin; + double deltaCp = Caloric.VaporSpecificHeatJoulesPerKilogramKelvin + r - Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + // Equality of chemical potentials, including the temperature-dependent latent enthalpy. + return Math.Log(ReferencePressurePascals) + deltaCp / r * Numeric.Log1p((temperature - reference) / reference) + + Caloric.LiquidEnergyOffsetJoulesPerKilogram / r * ((reference - temperature) / reference / temperature); + } + + public bool TrySaturationPressure(double temperatureKelvin, out double pressurePascals) + { + pressurePascals = 0; + if (!Numeric.Finite(temperatureKelvin) || temperatureKelvin < MinimumTemperatureKelvin || temperatureKelvin > MaximumTemperatureKelvin) return false; + pressurePascals = temperatureKelvin == Caloric.SaturationTemperatureKelvin ? ReferencePressurePascals : Math.Exp(LogSaturationPressure(temperatureKelvin)); + return Numeric.Finite(pressurePascals) && pressurePascals > 0; + } + + internal static bool PressureAllowsLiquid(double pressure, double saturation) => + Numeric.Finite(pressure) && Numeric.Finite(saturation) && pressure >= 0 && saturation > 0 && + pressure - saturation >= -64 * GearReference.Epsilon * Math.Max(pressure, saturation); + + public FuelFilmSample CreateLiquidState(double massKilograms, double temperatureKelvin) + { + if (!Numeric.Finite(massKilograms) || massKilograms < 0 || !TrySaturationPressure(temperatureKelvin, out _)) + throw new ArgumentException("Use nonnegative liquid mass and temperature within the declared phase-equilibrium interval."); + double energy = massKilograms * (Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin * temperatureKelvin + Caloric.LiquidEnergyOffsetJoulesPerKilogram); + if (!Numeric.Finite(energy)) throw new ArgumentException("Liquid energy exceeds the supported scale."); + return new(massKilograms, energy); + } + + private bool Point(double temperature, double fuelMass, double carrierMass, double volume, out FuelPhasePoint point) + { + point = default; + double cv = Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + double logMass = LogSaturationPressure(temperature) + Math.Log(volume) - Math.Log(GasConstantJoulesPerKilogramKelvin) - Math.Log(temperature); + double vapor = fuelMass == 0 || logMass >= Math.Log(fuelMass) ? fuelMass : Math.Exp(logMass); + double liquid = fuelMass - vapor, gas = carrierMass + vapor; + double energy = gas * cv * temperature + liquid * (cl * temperature + Caloric.LiquidEnergyOffsetJoulesPerKilogram); + double latent = LatentInternalEnergy(temperature); + double capacity = gas * cv + liquid * cl + (liquid == 0 ? 0 : vapor * (latent / temperature) * (latent / temperature / GasConstantJoulesPerKilogramKelvin)); + if (!GearReference.Finite(vapor, liquid, energy, capacity) || gas <= 0 || capacity <= 0) return false; + point = new(temperature, liquid, vapor, energy, capacity); return true; + } + + /// Equilibrium caloric relation at fixed volume, total fuel and noncondensable carrier mass. + public bool TryPoint(double temperatureKelvin, double totalFuelMassKilograms, double carrierMassKilograms, + double volumeCubicMeters, out FuelPhasePoint point) + { + point = default; + return GearReference.Finite(temperatureKelvin, totalFuelMassKilograms, carrierMassKilograms, volumeCubicMeters) && + temperatureKelvin >= MinimumTemperatureKelvin && temperatureKelvin <= MaximumTemperatureKelvin && + totalFuelMassKilograms >= 0 && carrierMassKilograms >= 0 && volumeCubicMeters > 0 && + Point(temperatureKelvin, totalFuelMassKilograms, carrierMassKilograms, volumeCubicMeters, out point); + } + + /// + /// Conserve fuel and internal energy while finding thermal and phase equilibrium. + /// Wall heat uses bounded backward Euler; zero duration performs an adiabatic flash. + /// + public bool TryAdvance(FuelFilmSample liquid, double vaporMassKilograms, double carrierMassKilograms, + double gasEnergyJoules, double volumeCubicMeters, double wallTemperatureKelvin, + double wallCapacityJoulesPerKelvin, double seconds, out FuelPhaseTransfer transfer) + { + transfer = default; + if (!GearReference.Finite(liquid.LiquidMassKilograms, liquid.ThermalEnergyJoules, vaporMassKilograms, carrierMassKilograms) || + !GearReference.Finite(gasEnergyJoules, volumeCubicMeters, wallTemperatureKelvin, wallCapacityJoulesPerKelvin) || + liquid.LiquidMassKilograms < 0 || vaporMassKilograms < 0 || carrierMassKilograms < 0 || vaporMassKilograms + carrierMassKilograms <= 0 || + gasEnergyJoules <= 0 || volumeCubicMeters <= 0 || wallTemperatureKelvin <= 0 || wallCapacityJoulesPerKelvin <= 0 || + !Numeric.Finite(seconds) || seconds < 0 || liquid.LiquidMassKilograms == 0 && liquid.ThermalEnergyJoules != 0) return false; + if (liquid.LiquidMassKilograms > 0) + { + double temperature = Caloric.Temperature(liquid); + if (!Numeric.Finite(temperature) || temperature < MinimumTemperatureKelvin - 1e-9 || temperature > MaximumTemperatureKelvin + 1e-9) return false; + } + double fuel = liquid.LiquidMassKilograms + vaporMassKilograms, energy = liquid.ThermalEnergyJoules + gasEnergyJoules; + double kh = seconds * Caloric.ConductanceWattsPerKelvin; + if (!Numeric.Finite(kh) || !Numeric.Finite(fuel) || !Numeric.Finite(energy)) return false; + double alpha = kh == 0 ? 0 : wallCapacityJoulesPerKelvin / (1 + wallCapacityJoulesPerKelvin / kh); + double target = energy + alpha * wallTemperatureKelvin; + double dryCapacity = (carrierMassKilograms + fuel) * Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + double dryTemperature = target / (dryCapacity + alpha); + FuelPhasePoint result; + if (fuel == 0) + result = new(dryTemperature, 0, 0, dryCapacity * dryTemperature, dryCapacity); + else + { + bool dry = false; + if (dryTemperature >= MinimumTemperatureKelvin && Numeric.Finite(dryTemperature)) + { + double checkTemperature = Math.Min(dryTemperature, MaximumTemperatureKelvin); + if (!Point(checkTemperature, fuel, carrierMassKilograms, volumeCubicMeters, out var upper)) return false; + dry = upper.LiquidMassKilograms == 0; + } + if (dry) result = new(dryTemperature, 0, fuel, dryCapacity * dryTemperature, dryCapacity); + else + { + double lo = MinimumTemperatureKelvin, hi = MaximumTemperatureKelvin; + if (!Point(lo, fuel, carrierMassKilograms, volumeCubicMeters, out var lower) || + !Point(hi, fuel, carrierMassKilograms, volumeCubicMeters, out var upper) || + lower.ThermalEnergyJoules + alpha * lo > target || upper.ThermalEnergyJoules + alpha * hi < target) return false; + double temperature = (lo + hi) / 2; + result = default; + bool converged = false; + for (int iteration = 0; iteration < 64; ++iteration) + { + if (!Point(temperature, fuel, carrierMassKilograms, volumeCubicMeters, out result)) return false; + double residual = result.ThermalEnergyJoules + alpha * temperature - target; + double correction = residual / (result.HeatCapacityJoulesPerKelvin + alpha); + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, temperature)) { converged = true; break; } + if (residual > 0) hi = temperature; else lo = temperature; + double next = temperature - correction; + temperature = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return false; + } + } + double t = result.TemperatureKelvin, heat = alpha * (wallTemperatureKelvin - t); + double liquidEnergy = result.LiquidMassKilograms * (Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin * t + Caloric.LiquidEnergyOffsetJoulesPerKilogram); + // Put the scalar root's roundoff into gas energy, retaining the exact heat/mass transaction. + double gasEnergy = energy + heat - liquidEnergy, gasMass = carrierMassKilograms + result.VaporMassKilograms; + double gasTemperature = gasEnergy / gasMass / Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + double wall = wallTemperatureKelvin - heat / wallCapacityJoulesPerKelvin; + if (!GearReference.Finite(t, heat, liquidEnergy, gasEnergy) || !Numeric.Finite(wall) || + t <= 0 || gasEnergy <= 0 || wall <= 0 || Math.Abs(gasTemperature - t) > 1e-8 + 128 * GearReference.Epsilon * t) return false; + transfer = new(new(result.LiquidMassKilograms, liquidEnergy), result.VaporMassKilograms, gasEnergy, t, wall, + liquid.LiquidMassKilograms - result.LiquidMassKilograms, heat); + return true; + } +} diff --git a/src/Power.Core/GasSolver.cs b/src/Power.Core/GasSolver.cs index 1747323..a02d8a7 100644 --- a/src/Power.Core/GasSolver.cs +++ b/src/Power.Core/GasSolver.cs @@ -30,7 +30,10 @@ internal GasNetwork(CompiledModel model) if (n.Domain != Domain.Gas) continue; var composition = model.NodeGases[i]!; NodeIndex[n.Index] = i; Gases[n.Index] = composition; Volume[n.Index] = n.Storage; - InitialMass[n.Index] = n.Position * n.Storage / (composition.GasConstantJoulePerKilogramKelvin * n.Initial); + double initialGasVolume = n.Storage; + int finiteFilm = model.FiniteFilmByGas[n.Index]; + if (finiteFilm >= 0) initialGasVolume -= model.FuelFilms[finiteFilm].Initial.LiquidMassKilograms / model.FuelFilms[finiteFilm].FiniteVolume!.DensityKilogramsPerCubicMeter; + InitialMass[n.Index] = n.Position * initialGasVolume / (composition.GasConstantJoulePerKilogramKelvin * n.Initial); Mixtures[n.Index] = model.NodeMixtures[i]; if (Mixtures[n.Index] is { } mixture) { @@ -71,8 +74,20 @@ internal GasNetwork(CompiledModel model) } } - internal double VolumeAt(int gas, double[] dynamics) + internal double VolumeAt(int gas, double[] dynamics, LiquidTankState? tanks = null, FuelFilmState? films = null) { + double cavity = CavityVolumeAt(gas, dynamics, tanks); int film = _model.FiniteFilmByGas[gas]; + return film >= 0 && films is not null ? cavity - films.Mass[film] / _model.FuelFilms[film].FiniteVolume!.DensityKilogramsPerCubicMeter : cavity; + } + internal double CavityVolumeAt(int gas, double[] dynamics, LiquidTankState? tanks = null) + { + int tankComponent = _model.TankHeadspaceByNode[NodeIndex[gas]]; + if (tankComponent >= 0 && tanks is not null) + { + int tank = _model.TankByComponent[tankComponent]; + var headspace = _model.TankHeadspaces[_model.HeadspaceByTank[tank]]; + return headspace.Geometry.GasVolumeCubicMeters(tanks.Mass[tank]); + } int component = _model.GasCylinderByNode[NodeIndex[gas]]; return component < 0 ? Volume[gas] : _model.GasPistons[component] is { } piston ? piston.VolumeAt(dynamics[_model.Nodes[_model.Components[component].A].Index]) : _model.GasCylinders[component]! .GeometryAt(dynamics[_model.Nodes[_model.Components[component].A].Index]).VolumeCubicMeters; @@ -228,10 +243,10 @@ private bool Evaluate(double[] mass, double[] energy, double[] wallTemperature, /// Advance the gas states across one whole tick. On success holds the joules /// delivered to each thermal node and the reservoir fields hold the net mass and enthalpy taken in. /// - internal bool Advance(double[] mass, double[] energy, double[] wallTemperature, double[] inputs, double[] dynamics, double dt, MixtureState? mixture, FuelInjectorState? injectors = null) + internal bool Advance(double[] mass, double[] energy, double[] wallTemperature, double[] inputs, double[] dynamics, double dt, MixtureState? mixture, FuelInjectorState? injectors = null, LiquidTankState? tanks = null, FuelFilmState? films = null) { - if (_model.HasMovingGas) - for (int i = 0; i < _volume.Length; ++i) _volume[i] = _network.VolumeAt(i, dynamics); + if (_model.HasMovingGas || _model.HasTankHeadspaces || _model.HasFiniteFuelReceivers) + for (int i = 0; i < _volume.Length; ++i) _volume[i] = _network.VolumeAt(i, dynamics, tanks, films); foreach (int component in _network.OrificeComponent) { int slot = _model.InjectorByComponent[component]; diff --git a/src/Power.Core/HydraulicAtController.cs b/src/Power.Core/HydraulicAtController.cs new file mode 100644 index 0000000..6b93381 --- /dev/null +++ b/src/Power.Core/HydraulicAtController.cs @@ -0,0 +1,214 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct AtActuatorRoute(uint Clutch, uint FillValve, uint DrainValve); +public sealed record HydraulicAtControllerDefinition +{ + public uint VehicleNode { get; init; } + public uint RingNode { get; init; } + public uint SupplyPressureNode { get; init; } + private IReadOnlyList _routes = Array.Empty(); + public IReadOnlyList Routes + { + get => _routes; + init => _routes = Array.AsReadOnly((value ?? throw new ArgumentNullException(nameof(value))).ToArray()); + } + public ulong SamplePeriodNanoseconds { get; init; } + public ulong ReleaseTimeoutNanoseconds { get; init; } + public ulong ApplyTimeoutNanoseconds { get; init; } + public ulong LowSupplyTimeoutNanoseconds { get; init; } + public ulong LockupDwellNanoseconds { get; init; } + public Quantity ApplyPressure { get; init; } + public Quantity PressureTolerance { get; init; } + public Quantity MinimumSupplyPressure { get; init; } + public Quantity ReleaseForce { get; init; } + public Quantity MinimumApplyForce { get; init; } + public Quantity ProportionalGain { get; init; } + public Quantity IntegralGain { get; init; } + public Quantity SynchronizeTolerance { get; init; } + public Quantity DirectionChangeSpeedLimit { get; init; } + public Quantity LockupSpeedLimit { get; init; } + public Quantity UnlockSpeedLimit { get; init; } + public Quantity MinimumLockupInputSpeed { get; init; } + public int MinimumLockupForwardRange { get; init; } +} +public enum AtShiftPhase { Neutral, Releasing, Applying, Driving, Fault } +public enum AtControlFault { None, ReleaseTimeout, ApplyTimeout, LowSupplyPressure, DirectionChangeBlocked, ConfirmedLockLost } +public enum AtLockupPhase { Released, Applying, Locked, Releasing } +internal sealed record CompiledAtRoute(int Clutch, int Piston, int Pressure, int Position, int Fill, int Drain); +internal sealed record CompiledAtController(int Component, int Input, int Vehicle, int Supply, CompiledAtRoute[] Routes, + ulong Period, ulong ReleaseTimeout, ulong ApplyTimeout, ulong SupplyTimeout, ulong LockupDwell, + double ApplyPressure, double PressureTolerance, double MinimumSupply, double ReleaseForce, double ApplyForce, + double Kp, double Ki, double SyncTolerance, double DirectionLimit, double LockupLimit, double UnlockLimit, double LockupMinimumSpeed, int LockupMinimumRange); +internal sealed class AtControllerState +{ + internal readonly int[] Active, Target; + internal readonly AtShiftPhase[] Phase; + internal readonly AtControlFault[] Fault; + internal readonly ulong[] Started, LostAt, LowSupplyAt; + internal readonly double[] Error, LinePressure; + internal readonly bool[] LockupRequested; + internal readonly double[][] Integral; + internal AtControllerState(int count) + { + Active = new int[count]; Target = new int[count]; Phase = new AtShiftPhase[count]; Fault = new AtControlFault[count]; + Started = new ulong[count]; LostAt = new ulong[count]; LowSupplyAt = new ulong[count]; + Array.Fill(LostAt, ulong.MaxValue); Array.Fill(LowSupplyAt, ulong.MaxValue); + Error = new double[count]; LinePressure = new double[count]; LockupRequested = new bool[count]; + Integral = Enumerable.Range(0, count).Select(_ => new double[6]).ToArray(); + } + internal void CopyFrom(AtControllerState other) + { + int count = Active.Length; + Array.Copy(other.Active, Active, count); Array.Copy(other.Target, Target, count); Array.Copy(other.Phase, Phase, count); Array.Copy(other.Fault, Fault, count); + Array.Copy(other.Started, Started, count); Array.Copy(other.LostAt, LostAt, count); Array.Copy(other.LowSupplyAt, LowSupplyAt, count); + Array.Copy(other.Error, Error, count); Array.Copy(other.LinePressure, LinePressure, count); Array.Copy(other.LockupRequested, LockupRequested, count); + for (int i = 0; i < count; ++i) Array.Copy(other.Integral[i], Integral[i], 6); + } + internal ulong Hash(ulong hash) + { + for (int i = 0; i < Active.Length; ++i) + { + hash = Numeric.Hash(hash, unchecked((ulong)Active[i])); hash = Numeric.Hash(hash, unchecked((ulong)Target[i])); + hash = Numeric.Hash(hash, (ulong)Phase[i]); hash = Numeric.Hash(hash, (ulong)Fault[i]); + hash = Numeric.Hash(hash, Started[i]); hash = Numeric.Hash(hash, LostAt[i]); hash = Numeric.Hash(hash, LowSupplyAt[i]); + hash = Numeric.Hash(hash, Error[i]); hash = Numeric.Hash(hash, LinePressure[i]); hash = Numeric.Hash(hash, LockupRequested[i] ? 1UL : 0UL); + foreach (double integral in Integral[i]) hash = Numeric.Hash(hash, integral); + } + return hash; + } + internal bool Finite() + { + for (int i = 0; i < Active.Length; ++i) + { + if (!Numeric.Finite(Error[i]) || !Numeric.Finite(LinePressure[i])) return false; + foreach (double value in Integral[i]) if (!Numeric.Finite(value) || Math.Abs(value) > 1) return false; + } + return true; + } +} + +internal static class AtControl +{ + internal static bool Selected(int route, int gear) => route switch + { 0 => gear is 3 or 4, 1 => gear is 1 or 2 or 3, 2 => gear == -1, 3 => gear is 1 or -1, 4 => gear is 2 or 4, _ => false }; + private static double Force(CompiledModel model, CompiledAtRoute route, double[] x) => model.Pistons[route.Piston]!.ContactForce(x[route.Position]); + private static double Slip(CompiledModel model, CompiledAtRoute route, double[] x) + { + var c = model.Components[route.Clutch]; return x[model.Nodes[c.A].Index + 1] - (c.B < 0 ? 0 : c.P3*x[model.Nodes[c.B].Index + 1]); + } + internal static bool Confirmed(CompiledModel model, CompiledAtController c, int gear, double[] x, ClutchState clutches) + { + if (gear == 0) return false; + for (int i = 0; i < 5; ++i) + { + var route = c.Routes[i]; double force = Force(model, route, x); + if (Selected(i, gear)) + { + if (force < c.ApplyForce || Math.Abs(Slip(model, route, x)) > c.SyncTolerance || clutches.Mode[model.Components[route.Clutch].Index] != ClutchMode.Locked) return false; + } + else if (force > c.ReleaseForce) return false; + } + return true; + } + internal static AtLockupPhase Lockup(CompiledModel model, CompiledAtController c, AtControllerState s, int k, double[] x, ClutchState clutches) + { + if (c.Routes.Length != 6) return AtLockupPhase.Released; + var route = c.Routes[5]; + if (!s.LockupRequested[k]) return Force(model, route, x) <= c.ReleaseForce ? AtLockupPhase.Released : AtLockupPhase.Releasing; + return clutches.Mode[model.Components[route.Clutch].Index] == ClutchMode.Locked && Math.Abs(Slip(model, route, x)) <= c.SyncTolerance ? AtLockupPhase.Locked : AtLockupPhase.Applying; + } + private static void Vent(CompiledAtController c, AtControllerState s, int k, double[] inputs) + { + for (int i = 0; i < c.Routes.Length; ++i) + { var r = c.Routes[i]; inputs[r.Fill] = 0; inputs[r.Drain] = 1; s.Integral[k][i] = 0; } + s.Active[k] = 0; s.LockupRequested[k] = false; + } + private static bool Released(CompiledModel model, CompiledAtController c, double[] x) + { foreach (var route in c.Routes) if (Force(model, route, x) > c.ReleaseForce) return false; return true; } + private static void Transition(AtControllerState s, int k, AtShiftPhase phase, ulong now) + { s.Phase[k] = phase; s.Started[k] = now; s.LostAt[k] = s.LowSupplyAt[k] = ulong.MaxValue; } + private static void Fail(CompiledAtController c, AtControllerState s, int k, AtControlFault fault, double[] inputs) + { Vent(c, s, k, inputs); s.Fault[k] = fault; s.Phase[k] = AtShiftPhase.Fault; } + private static bool Pressure(CompiledAtController c, AtControllerState s, int k, int slot, double pressure, double[] inputs) + { + double error = c.ApplyPressure-pressure, increment = c.Ki*error*(c.Period*1e-9); + double tentative = s.Integral[k][slot]+increment, raw = c.Kp*error+tentative; + if (!Numeric.Finite(error) || !Numeric.Finite(raw)) return false; + if (!(raw>1 && error>0 || raw< -1 && error<0)) s.Integral[k][slot] = Math.Max(-1,Math.Min(1,tentative)); + double command = Math.Max(-1,Math.Min(1,c.Kp*error+s.Integral[k][slot])); var route = c.Routes[slot]; + inputs[route.Fill] = Math.Max(0,command); inputs[route.Drain] = Math.Max(0,-command); return true; + } + internal static bool Sample(CompiledModel model, CompiledAtController c, AtControllerState s, int k, ulong now, int requested, + double[] x, double[] pressure, double[] inputs, ClutchState clutches) + { + s.LinePressure[k] = pressure[c.Supply]; if (!Numeric.Finite(s.LinePressure[k])) return false; + if (s.Phase[k] == AtShiftPhase.Fault) + { + Vent(c,s,k,inputs); if (requested == s.Target[k]) return true; + s.Fault[k] = AtControlFault.None; Transition(s,k,AtShiftPhase.Neutral,now); + } + if (requested != s.Target[k] || s.Phase[k] == AtShiftPhase.Neutral && requested != 0) + { + s.Target[k] = requested; Vent(c,s,k,inputs); + double speed = x[c.Vehicle+1]; + if (requested == -1 && speed > c.DirectionLimit || requested > 0 && speed < -c.DirectionLimit) + { Fail(c,s,k,AtControlFault.DirectionChangeBlocked,inputs); return true; } + Transition(s,k,AtShiftPhase.Releasing,now); + } + if (requested == 0 && s.Phase[k] != AtShiftPhase.Neutral && s.Phase[k] != AtShiftPhase.Releasing) + { Vent(c,s,k,inputs); Transition(s,k,AtShiftPhase.Releasing,now); } + if (s.Phase[k] == AtShiftPhase.Neutral) { Vent(c,s,k,inputs); s.Error[k] = 0; return true; } + if (s.Phase[k] == AtShiftPhase.Releasing) + { + Vent(c,s,k,inputs); + if (Released(model,c,x)) { Transition(s,k,requested == 0 ? AtShiftPhase.Neutral : AtShiftPhase.Applying,now); } + else if (now-s.Started[k] >= c.ReleaseTimeout) Fail(c,s,k,AtControlFault.ReleaseTimeout,inputs); + return true; + } + if (s.LinePressure[k] < c.MinimumSupply) + { + if (s.LowSupplyAt[k] == ulong.MaxValue) s.LowSupplyAt[k] = now; + if (now-s.LowSupplyAt[k] >= c.SupplyTimeout) { Fail(c,s,k,AtControlFault.LowSupplyPressure,inputs); return true; } + } + else s.LowSupplyAt[k] = ulong.MaxValue; + double error = 0; bool ready = true; + for (int i = 0; i < 5; ++i) + { + var route = c.Routes[i]; + if (Selected(i,s.Target[k])) + { + if (!Pressure(c,s,k,i,pressure[route.Pressure],inputs)) return false; + error = Math.Max(error,Math.Abs(Slip(model,route,x))); + if (Math.Abs(pressure[route.Pressure]-c.ApplyPressure) > c.PressureTolerance) ready = false; + } + else { inputs[route.Fill] = 0; inputs[route.Drain] = 1; s.Integral[k][i] = 0; } + } + s.Error[k] = error; if (!Numeric.Finite(error)) return false; + bool confirmed = Confirmed(model,c,s.Target[k],x,clutches); + if (s.Phase[k] == AtShiftPhase.Applying) + { + if (ready && confirmed) { s.Active[k] = s.Target[k]; Transition(s,k,AtShiftPhase.Driving,now); } + else if (now-s.Started[k] >= c.ApplyTimeout) { Fail(c,s,k,AtControlFault.ApplyTimeout,inputs); return true; } + } + else if (!confirmed) + { + if (s.LostAt[k] == ulong.MaxValue) s.LostAt[k] = now; + if (now-s.LostAt[k] >= c.ApplyTimeout) { Fail(c,s,k,AtControlFault.ConfirmedLockLost,inputs); return true; } + } + else s.LostAt[k] = ulong.MaxValue; + if (c.Routes.Length == 6) + { + var route = c.Routes[5]; double slip = Math.Abs(Slip(model,route,x)), inputSpeed = Math.Abs(x[c.Input+1]); + bool eligible = s.Phase[k] == AtShiftPhase.Driving && confirmed && s.Target[k] >= c.LockupMinimumRange && s.LinePressure[k] >= c.MinimumSupply; + if (!eligible || slip > c.UnlockLimit || inputSpeed < .8*c.LockupMinimumSpeed) s.LockupRequested[k] = false; + else if (now-s.Started[k] >= c.LockupDwell && slip <= c.LockupLimit && inputSpeed >= c.LockupMinimumSpeed) s.LockupRequested[k] = true; + if (s.LockupRequested[k]) { if (!Pressure(c,s,k,5,pressure[route.Pressure],inputs)) return false; } + else { inputs[route.Fill] = 0; inputs[route.Drain] = 1; s.Integral[k][5] = 0; } + } + return true; + } +} diff --git a/src/Power.Core/HydraulicSolver.cs b/src/Power.Core/HydraulicSolver.cs index 077fb6b..6e8dfd7 100644 --- a/src/Power.Core/HydraulicSolver.cs +++ b/src/Power.Core/HydraulicSolver.cs @@ -58,12 +58,94 @@ internal sealed class HydraulicSolver private readonly Factorization _factor; internal readonly double[] MidPressure, WallHeat; internal double BoundaryWork, RejectedHeat; + internal int PressureCount => _mid.Length; + private readonly double[] _headVolume, _headEnergy, _headGamma, _headTransfer, _restrictionSlopes; + internal int PumpInlet(int pump) + { + int headspace = _model.HeadspaceByPump[pump]; + var c = _model.Components[_model.PumpComponents[pump]]; + return headspace >= 0 ? _model.HydraulicCount + headspace : c.C < 0 ? -1 : _model.Nodes[c.C].Index; + } + private int RestrictionOutlet(int restriction) + { + int headspace = _model.HeadspaceByRestriction[restriction]; + var c = _model.Components[_model.HydraulicComponents[restriction]]; + return headspace >= 0 ? _model.HydraulicCount + headspace : c.B < 0 ? -1 : _model.Nodes[c.B].Index; + } + internal void PrepareHeadspaces(LiquidTankState tanks, double[] energy) + { + for (int i = 0; i < _model.TankHeadspaces.Length; ++i) + { + var h = _model.TankHeadspaces[i]; + _headVolume[i] = h.Geometry.GasVolumeCubicMeters(tanks.Mass[h.Tank]); + _headEnergy[i] = energy[h.Gas]; _headGamma[i] = _model.Gas!.Gases[h.Gas].Gamma; + } + } + internal void InitialHeadspacePressures(double[] values, int offset) + { + for (int i = 0; i < _headVolume.Length; ++i) + values[offset + _model.HydraulicCount + i] = (_headGamma[i] - 1) * _headEnergy[i] / _headVolume[i]; + } + internal bool CommitHeadspaces(LiquidTankState tanks, double[] energy) + { + for (int i = 0; i < _model.TankHeadspaces.Length; ++i) + { + var h = _model.TankHeadspaces[i]; + double volume = h.Geometry.GasVolumeCubicMeters(tanks.Mass[h.Tank]); + double expected = _headVolume[i] + _headTransfer[i]; + if (volume <= 0 || volume > h.Geometry.CapacityCubicMeters || + Math.Abs(volume - expected) > 128 * GearReference.Epsilon * h.Geometry.CapacityCubicMeters || + !LiquidTankHeadspace.TryPressureWork(_headVolume[i], _headTransfer[i], _headEnergy[i], _headGamma[i], out var work)) return false; + energy[h.Gas] += work.GasEnergyChangeJoules; + Numeric.Accumulate(-work.GasEnergyChangeJoules, ref tanks.HeadspaceWork![h.Tank], ref tanks.WorkCorrection![h.Tank]); + } + return true; + } + internal double RestrictionVolume(int slot, double duration) => duration * _rates[slot]; + internal double RestrictionLoss(int slot, double duration) + { + var c = _model.Components[_model.HydraulicComponents[slot]]; + int outlet = RestrictionOutlet(slot); + return duration * _rates[slot] * (MidPressure[_model.Nodes[c.A].Index] - (outlet < 0 ? c.P2 : MidPressure[outlet])); + } + private readonly double[] _liquidSupplyVolume; + private double _liquidSupplyDuration; + internal void PrepareLiquidSupply(LiquidTankState state, double duration) + { + _liquidSupplyDuration = duration; + Array.Fill(_liquidSupplyVolume, double.PositiveInfinity); + foreach (var feed in _model.LiquidFeeds) + if (feed.Tank >= 0) _liquidSupplyVolume[_model.Components[feed.Pump].Index] = state.Mass[feed.Tank] / feed.Density; + } + internal double PumpVolume(int pump, double speed, double duration) + { + double ordinary = duration * _model.Components[_model.PumpComponents[pump]].P0 * speed; + return Math.Min(ordinary, _liquidSupplyVolume[pump]); + } + internal double PumpFlowLaw(int pump, double speed, out double effectiveDisplacement, out double displacementSlope, out double flowSlope) + { + double displacement = _model.Components[_model.PumpComponents[pump]].P0; + double limit = _liquidSupplyVolume[pump]; + if (speed >= 0 && !double.IsPositiveInfinity(limit) && (speed == 0 && limit == 0 || displacement * speed > limit / _liquidSupplyDuration)) + { + double flow = limit / _liquidSupplyDuration; + effectiveDisplacement = speed == 0 ? 0 : flow / speed; + displacementSlope = speed == 0 ? 0 : -effectiveDisplacement / speed; + flowSlope = 0; return flow; + } + effectiveDisplacement = flowSlope = displacement; displacementSlope = 0; + return displacement * speed; + } internal HydraulicSolver(CompiledModel model) { - _model = model; int count = model.HydraulicCount; + _model = model; int count = model.HydraulicCount + model.TankHeadspaces.Length; + _headVolume = new double[model.TankHeadspaces.Length]; _headEnergy = new double[_headVolume.Length]; + _headGamma = new double[_headVolume.Length]; _headTransfer = new double[_headVolume.Length]; + _restrictionSlopes = new double[model.HydraulicComponents.Length]; + _liquidSupplyVolume = new double[model.PumpComponents.Length]; Array.Fill(_liquidSupplyVolume, double.PositiveInfinity); _compliance = new double[count]; foreach (var node in model.Nodes) if (node.Domain == Domain.Hydraulic) _compliance[node.Index] = node.Storage; - _mid = new double[count]; _trial = new double[count]; _next = new double[count]; _residual = new double[count]; + _mid = new double[count]; _trial = new double[count]; _next = new double[model.HydraulicCount]; _residual = new double[count]; _trialResidual = new double[count]; _change = new double[count]; MidPressure = new double[count]; _rates = new double[model.HydraulicComponents.Length]; WallHeat = new double[model.ThermalCount]; _meteringSlopes = new double[model.HasSpoolValves ? model.HydraulicComponents.Length : 0]; @@ -73,12 +155,13 @@ private double Residual(double[] old, double[] pressures, double[] inputs, doubl double[]? coordinates = null, int pistonOffset = 0, double[]? dynamics = null) { if (derivatives) Array.Clear(_jacobian, 0, _jacobian.Length); - for (int i = 0; i < pressures.Length; ++i) + Array.Clear(residual, old.Length, residual.Length - old.Length); + for (int i = 0; i < old.Length; ++i) { residual[i] = pressures[i] - old[i]; if (derivatives) _jacobian[i, i] = 1; } for (int k = 0; k < _rates.Length; ++k) { int index = _model.HydraulicComponents[k]; var c = _model.Components[index]; - int a = _model.Nodes[c.A].Index, b = c.B < 0 ? -1 : _model.Nodes[c.B].Index; + int a = _model.Nodes[c.A].Index, b = RestrictionOutlet(k); double difference = pressures[a] - (b < 0 ? c.P2 : pressures[b]); double rate, slope; if (_model.SpoolValves[index] is { } metering) @@ -87,15 +170,16 @@ private double Residual(double[] old, double[] pressures, double[] inputs, doubl if (!metering.Law.Evaluate(difference, position, out rate, out slope, out _meteringSlopes[k])) return double.PositiveInfinity; } else if (!_model.HydraulicLaws[index]!.Evaluate(difference, c.Kind == ComponentKind.HydraulicRelief ? 1 : inputs[index], out rate, out slope)) return double.PositiveInfinity; - _rates[k] = rate; - double left = .5 * duration / _compliance[a], right = b < 0 ? 0 : .5 * duration / _compliance[b]; - residual[a] += left * rate; if (b >= 0) residual[b] -= right * rate; + _rates[k] = rate; _restrictionSlopes[k] = slope; + double left = .5 * duration / _compliance[a], right = b < 0 || b >= old.Length ? 0 : .5 * duration / _compliance[b]; + residual[a] += left * rate; if (b >= 0 && b < old.Length) residual[b] -= right * rate; if (!derivatives) continue; _jacobian[a, a] += left * slope; - if (b >= 0) { _jacobian[a, b] -= left * slope; _jacobian[b, a] -= right * slope; _jacobian[b, b] += right * slope; } + if (b >= 0) _jacobian[a, b] -= left * slope; + if (b >= 0 && b < old.Length) { _jacobian[b, a] -= right * slope; _jacobian[b, b] += right * slope; } } double norm = 0; - for (int i = 0; i < pressures.Length; ++i) + for (int i = 0; i < old.Length; ++i) { if (!Numeric.Finite(residual[i]) || !Numeric.Finite(pressures[i])) return double.PositiveInfinity; double tolerance = 2e-7 + 64 * GearReference.Epsilon * (Math.Abs(pressures[i]) + Math.Abs(old[i])); @@ -154,15 +238,15 @@ internal double CoupledResidual(double[] old, double[] values, int offset, int p for (int k = 0; k < _model.PumpComponents.Length; ++k) { var c = _model.Components[_model.PumpComponents[k]]; - int outlet = _model.Nodes[c.B].Index, inlet = c.C < 0 ? -1 : _model.Nodes[c.C].Index; - double flow = c.P0 * values[pumpOffset + k]; - double delivery = .5 * duration / _compliance[outlet], intake = inlet < 0 ? 0 : .5 * duration / _compliance[inlet]; + int outlet = _model.Nodes[c.B].Index, inlet = PumpInlet(k); + double flow = PumpFlowLaw(k, values[pumpOffset + k], out _, out _, out double flowSlope); + double delivery = .5 * duration / _compliance[outlet], intake = inlet < 0 || inlet >= old.Length ? 0 : .5 * duration / _compliance[inlet]; residual[offset + outlet] -= delivery * flow; - if (inlet >= 0) residual[offset + inlet] += intake * flow; + if (inlet >= 0 && inlet < old.Length) residual[offset + inlet] += intake * flow; if (jacobian is not null) { - jacobian[offset + outlet, pumpOffset + k] -= delivery * c.P0; - if (inlet >= 0) jacobian[offset + inlet, pumpOffset + k] += intake * c.P0; + jacobian[offset + outlet, pumpOffset + k] -= delivery * flowSlope; + if (inlet >= 0 && inlet < old.Length) jacobian[offset + inlet, pumpOffset + k] += intake * flowSlope; } } for (int k = 0; k < _model.PistonComponents.Length; ++k) @@ -173,11 +257,34 @@ internal double CoupledResidual(double[] old, double[] values, int offset, int p if (jacobian is not null) { jacobian[offset + front, pistonOffset + k] += frontScale; if (back >= 0) jacobian[offset + back, pistonOffset + k] -= backScale; } } + for (int h = 0; h < _model.TankHeadspaces.Length; ++h) + { + var headspace = _model.TankHeadspaces[h]; + double withdrawal = duration * PumpFlowLaw(headspace.Pump, values[pumpOffset + headspace.Pump], out _, out _, out double flowSlope); + foreach (int route in _model.ReturnsByFeed[headspace.Feed]) + withdrawal -= duration * _rates[_model.Components[_model.LiquidReturns[route].Valve].Index]; + if (Math.Abs(withdrawal) > .25 * _headVolume[h] || !LiquidTankHeadspace.TryPressureWork(_headVolume[h], withdrawal, _headEnergy[h], _headGamma[h], out var work)) return double.PositiveInfinity; + int row = offset + _model.HydraulicCount + h; + residual[row] = values[row] - work.MeanPressurePascals; _headTransfer[h] = withdrawal; + if (jacobian is not null) + { + jacobian[row, row] = 1; + jacobian[row, pumpOffset + headspace.Pump] = -work.PressureDerivativePascalsPerCubicMeter * duration * flowSlope; + foreach (int route in _model.ReturnsByFeed[headspace.Feed]) + { + var valve = _model.Components[_model.LiquidReturns[route].Valve]; + double slope = work.PressureDerivativePascalsPerCubicMeter * duration * _restrictionSlopes[valve.Index]; + jacobian[row, offset + _model.Nodes[valve.A].Index] += slope; + jacobian[row, row] -= slope; + } + } + } double norm = 0; for (int i = 0; i < _mid.Length; ++i) { if (!Numeric.Finite(residual[offset + i])) return double.PositiveInfinity; - norm = Math.Max(norm, Math.Abs(residual[offset + i]) / (2e-7 + 64 * GearReference.Epsilon * (Math.Abs(_mid[i]) + Math.Abs(old[i])))); + double previous = i < old.Length ? old[i] : (_headGamma[i - old.Length] - 1) * _headEnergy[i - old.Length] / _headVolume[i - old.Length]; + norm = Math.Max(norm, Math.Abs(residual[offset + i]) / (2e-7 + 64 * GearReference.Epsilon * (Math.Abs(_mid[i]) + Math.Abs(previous)))); } return norm; } @@ -200,7 +307,7 @@ internal bool Commit(HydraulicState state, double duration, double[]? shaftMidpo { var c = _model.Components[_model.PumpComponents[k]]; int outlet = _model.Nodes[c.B].Index, inlet = c.C < 0 ? -1 : _model.Nodes[c.C].Index; - double transfer = duration * c.P0 * shaftMidpoint![_model.Nodes[c.A].Index + 1]; + double transfer = PumpVolume(k, shaftMidpoint![_model.Nodes[c.A].Index + 1], duration); _next[outlet] += transfer / _compliance[outlet]; if (inlet >= 0) _next[inlet] -= transfer / _compliance[inlet]; } foreach (int index in _model.PistonComponents) @@ -209,35 +316,40 @@ internal bool Commit(HydraulicState state, double duration, double[]? shaftMidpo double travel = duration * shaftMidpoint![_model.Nodes[c.A].Index + 1]; _next[front] -= c.P0 * travel / _compliance[front]; if (back >= 0) _next[back] += c.P1 * travel / _compliance[back]; } - for (int i = 0; i < _mid.Length; ++i) + for (int i = 0; i < _next.Length; ++i) { if (!Numeric.Finite(_next[i]) || _next[i] < 0) return false; // No hidden cavitation clamp. MidPressure[i] = .5 * state.Pressure[i] + .5 * _next[i]; double tolerance = 2e-7 + 64 * GearReference.Epsilon * (Math.Abs(_mid[i]) + Math.Abs(state.Pressure[i])); if (Math.Abs(MidPressure[i] - _mid[i]) > 4 * tolerance) return false; } + for (int i = _next.Length; i < _mid.Length; ++i) MidPressure[i] = _mid[i]; double volumeIn = 0; for (int k = 0; k < _rates.Length; ++k) { var c = _model.Components[_model.HydraulicComponents[k]]; - int a = _model.Nodes[c.A].Index, b = c.B < 0 ? -1 : _model.Nodes[c.B].Index; + int a = _model.Nodes[c.A].Index, b = RestrictionOutlet(k); double transfer = duration * _rates[k], difference = MidPressure[a] - (b < 0 ? c.P2 : MidPressure[b]); double heat = transfer * difference; if (!Numeric.Finite(heat) || heat < 0) return false; - if (b < 0) { volumeIn -= transfer; BoundaryWork -= transfer * c.P2; } - if (c.Heat < 0) RejectedHeat += heat; else WallHeat[_model.Nodes[c.Heat].Index] += heat; + if (b < 0 || b >= _next.Length) volumeIn -= transfer; + if (b < 0) BoundaryWork -= transfer * c.P2; + double externalHeat = (1 - _model.ReturnHeatFractions[_model.HydraulicComponents[k]]) * heat; + if (c.Heat < 0) RejectedHeat += externalHeat; else WallHeat[_model.Nodes[c.Heat].Index] += externalHeat; state.Flow[k] += transfer; state.Power[k] += heat; Numeric.Accumulate(heat, ref state.Heat[k], ref state.Correction[k]); } for (int k = 0; k < _model.PumpComponents.Length; ++k) { var c = _model.Components[_model.PumpComponents[k]]; - int outlet = _model.Nodes[c.B].Index, inlet = c.C < 0 ? -1 : _model.Nodes[c.C].Index; - double flow = c.P0 * shaftMidpoint![_model.Nodes[c.A].Index + 1]; + int outlet = _model.Nodes[c.B].Index, inlet = PumpInlet(k); + double speed = shaftMidpoint![_model.Nodes[c.A].Index + 1]; + double flow = PumpFlowLaw(k, speed, out double displacement, out _, out _); double pin = inlet < 0 ? c.P2 : MidPressure[inlet], difference = MidPressure[outlet] - pin; double work = duration * flow * difference; - if (inlet < 0) { volumeIn += duration * flow; BoundaryWork += duration * flow * pin; } - state.PumpFlow[k] += duration * flow; state.PumpTorque[k] -= duration * c.P0 * difference; state.PumpPower[k] += work; + if (inlet < 0 || inlet >= _next.Length) volumeIn += duration * flow; + if (inlet < 0) BoundaryWork += duration * flow * pin; + state.PumpFlow[k] += duration * flow; state.PumpTorque[k] -= duration * displacement * difference; state.PumpPower[k] += work; Numeric.Accumulate(work, ref state.PumpWork[k], ref state.PumpCorrection[k]); } foreach (int index in _model.PistonComponents) diff --git a/src/Power.Core/LiquidColumn.cs b/src/Power.Core/LiquidColumn.cs new file mode 100644 index 0000000..1e5aad0 --- /dev/null +++ b/src/Power.Core/LiquidColumn.cs @@ -0,0 +1,139 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public enum LiquidColumnStatus { Success, InvalidInput, PressureOutOfRange, StepTooLarge, NumericalFailure } +public readonly record struct LiquidColumnState(double VolumeFlowCubicMetersPerSecond); +public readonly record struct LiquidColumnStep(LiquidColumnState State, double ForwardVolumeCubicMeters, + double ReverseVolumeCubicMeters, double PressureWorkJoules, double FrictionHeatJoules, + double KineticEnergyChangeJoules, double EntropyProducedJoulesPerKelvin, int InternalIntervals) +{ + public double TransferredVolumeCubicMeters => ForwardVolumeCubicMeters - ReverseVolumeCubicMeters; + public double EnergyResidualJoules => PressureWorkJoules - FrictionHeatJoules - KineticEnergyChangeJoules; +} + +/// +/// Local single-phase momentum reference for a horizontal rigid constant-area liquid column. +/// Density and temperature are constant. Equal port velocities cancel advected kinetic flux; +/// prescribed absolute port pressures supply work and an isothermal bath receives friction heat. +/// This is not a compiled network component, a pressure-wave model or a cavitating pipe model. +/// +public sealed class LiquidColumn +{ + public double LengthMeters { get; } + public double AreaSquareMeters { get; } + public double DensityKilogramsPerCubicMeter { get; } + public double InertancePascalSecondSquaredPerCubicMeter { get; } + public double ColumnMassKilograms { get; } + public double LinearResistancePascalSecondPerCubicMeter { get; } + public double QuadraticResistancePascalSecondSquaredPerCubicMeterSquared { get; } + public double TemperatureKelvin { get; } + public double MinimumAbsolutePressurePascals { get; } + + public LiquidColumn(double lengthMeters, double areaSquareMeters, double densityKilogramsPerCubicMeter, + double linearResistancePascalSecondPerCubicMeter, double quadraticResistancePascalSecondSquaredPerCubicMeterSquared, + double temperatureKelvin, double minimumAbsolutePressurePascals) + { + if (!GearReference.Finite(lengthMeters, areaSquareMeters, densityKilogramsPerCubicMeter, temperatureKelvin) || + !GearReference.Finite(linearResistancePascalSecondPerCubicMeter, quadraticResistancePascalSecondSquaredPerCubicMeterSquared, minimumAbsolutePressurePascals, 0) || + lengthMeters <= 0 || areaSquareMeters <= 0 || densityKilogramsPerCubicMeter <= 0 || temperatureKelvin <= 0 || minimumAbsolutePressurePascals <= 0 || + linearResistancePascalSecondPerCubicMeter < 0 || quadraticResistancePascalSecondSquaredPerCubicMeterSquared < 0) + throw new ArgumentException("Declare positive finite length, area, density, temperature and absolute pressure bound, with nonnegative loss coefficients."); + LengthMeters = lengthMeters; AreaSquareMeters = areaSquareMeters; DensityKilogramsPerCubicMeter = densityKilogramsPerCubicMeter; + LinearResistancePascalSecondPerCubicMeter = linearResistancePascalSecondPerCubicMeter; + QuadraticResistancePascalSecondSquaredPerCubicMeterSquared = quadraticResistancePascalSecondSquaredPerCubicMeterSquared; + TemperatureKelvin = temperatureKelvin; MinimumAbsolutePressurePascals = minimumAbsolutePressurePascals; + InertancePascalSecondSquaredPerCubicMeter = densityKilogramsPerCubicMeter * lengthMeters / areaSquareMeters; + ColumnMassKilograms = densityKilogramsPerCubicMeter * lengthMeters * areaSquareMeters; + if (!Numeric.Finite(InertancePascalSecondSquaredPerCubicMeter) || !Numeric.Finite(1 / InertancePascalSecondSquaredPerCubicMeter) || + !Numeric.Finite(ColumnMassKilograms) || ColumnMassKilograms <= 0) + throw new ArgumentException("Column geometry exceeds the supported binary64 range."); + } + + /// Stateless implicit-midpoint interval. Rejections leave output default; reduce duration on StepTooLarge. + public LiquidColumnStatus Advance(LiquidColumnState state, double pressureAPascals, double pressureBPascals, + double durationSeconds, out LiquidColumnStep result) + { + result = default; + double q0 = state.VolumeFlowCubicMetersPerSecond; + if (!GearReference.Finite(q0, pressureAPascals, pressureBPascals, durationSeconds) || durationSeconds <= 0) + return LiquidColumnStatus.InvalidInput; + if (pressureAPascals < MinimumAbsolutePressurePascals || pressureBPascals < MinimumAbsolutePressurePascals) + return LiquidColumnStatus.PressureOutOfRange; + double pressure = pressureAPascals - pressureBPascals; + if (!Numeric.Finite(pressure)) return LiquidColumnStatus.NumericalFailure; + bool dissipative = LinearResistancePascalSecondPerCubicMeter != 0 || QuadraticResistancePascalSecondSquaredPerCubicMeterSquared != 0; + double equilibrium = 0; + if (dissipative && !Root(LinearResistancePascalSecondPerCubicMeter, QuadraticResistancePascalSecondSquaredPerCubicMeterSquared, pressure, out equilibrium)) + return LiquidColumnStatus.NumericalFailure; + var status = Segment(q0, pressure, durationSeconds, equilibrium, dissipative, false, out var whole); + if (status != LiquidColumnStatus.Success) return status; + double q1 = whole.State.VolumeFlowCubicMetersPerSecond; + if (q0 > 0 && q1 < 0 || q0 < 0 && q1 > 0) + { + // Solve the midpoint event equation with q1=0, rather than clipping + // delivered volume or averaging away opposing flows and their heat. + double half = q0 / 2, force = pressure - Loss(half); + double crossing = -InertancePascalSecondSquaredPerCubicMeter * q0 / force; + if (!Numeric.Finite(crossing) || crossing <= 0 || crossing >= durationSeconds) return LiquidColumnStatus.NumericalFailure; + status = Segment(q0, pressure, crossing, equilibrium, dissipative, true, out var before); + if (status != LiquidColumnStatus.Success) return status; + status = Segment(0, pressure, durationSeconds - crossing, equilibrium, dissipative, false, out var after); + if (status != LiquidColumnStatus.Success) return status; + whole = new(after.State, before.ForwardVolumeCubicMeters + after.ForwardVolumeCubicMeters, + before.ReverseVolumeCubicMeters + after.ReverseVolumeCubicMeters, + before.PressureWorkJoules + after.PressureWorkJoules, before.FrictionHeatJoules + after.FrictionHeatJoules, + before.KineticEnergyChangeJoules + after.KineticEnergyChangeJoules, + before.EntropyProducedJoulesPerKelvin + after.EntropyProducedJoulesPerKelvin, 2); + } + if (!GearReference.Finite(whole.ForwardVolumeCubicMeters, whole.ReverseVolumeCubicMeters, whole.PressureWorkJoules, whole.FrictionHeatJoules) || + !GearReference.Finite(whole.KineticEnergyChangeJoules, whole.EntropyProducedJoulesPerKelvin, whole.EnergyResidualJoules, 0)) + return LiquidColumnStatus.NumericalFailure; + result = whole; return LiquidColumnStatus.Success; + } + + private double Loss(double flow) => LinearResistancePascalSecondPerCubicMeter * flow + QuadraticResistancePascalSecondSquaredPerCubicMeterSquared * flow * Math.Abs(flow); + private static bool Root(double linear, double quadratic, double right, out double flow) + { + flow = 0; + if (!GearReference.Finite(linear, quadratic, right, 0) || linear < 0 || quadratic < 0) return false; + if (right == 0) return linear > 0 || quadratic > 0; + if (quadratic == 0) flow = right / linear; + else + { + double discriminant = linear * linear + 4 * quadratic * Math.Abs(right); + if (!Numeric.Finite(discriminant) || discriminant <= 0) return false; + flow = right / (.5 * linear + .5 * Math.Sqrt(discriminant)); + } + return Numeric.Finite(flow); + } + private LiquidColumnStatus Segment(double q0, double pressure, double seconds, double equilibrium, bool dissipative, bool zeroEnd, out LiquidColumnStep step) + { + step = default; + double inertia = InertancePascalSecondSquaredPerCubicMeter, mean; + if (zeroEnd) mean = q0 / 2; + else if (!Root(inertia + seconds / 2 * LinearResistancePascalSecondPerCubicMeter, + seconds / 2 * QuadraticResistancePascalSecondSquaredPerCubicMeterSquared, inertia * q0 + seconds / 2 * pressure, out mean)) + return LiquidColumnStatus.NumericalFailure; + double q1 = zeroEnd ? 0 : 2 * mean - q0; + if (!Numeric.Finite(q1)) return LiquidColumnStatus.NumericalFailure; + if (dissipative) + { + double tolerance = 64 * GearReference.Epsilon * Math.Max(Math.Abs(q0), Math.Max(Math.Abs(q1), Math.Abs(equilibrium))); + if (q0 > equilibrium && q1 < equilibrium - tolerance || q0 < equilibrium && q1 > equilibrium + tolerance) + return LiquidColumnStatus.StepTooLarge; + } + double volume = seconds * mean, work = pressure * volume, heat = seconds * mean * Loss(mean); + double change = inertia * mean * (q1 - q0), initialEnergy = .5 * inertia * q0 * q0, finalEnergy = .5 * inertia * q1 * q1; + double impulseResidual = inertia * (q1 - q0) - seconds * (pressure - Loss(mean)); + double impulseScale = inertia * (Math.Abs(q0) + Math.Abs(q1)) + seconds * (Math.Abs(pressure) + Math.Abs(Loss(mean))); + if (!GearReference.Finite(volume, work, heat, change) || !GearReference.Finite(initialEnergy, finalEnergy, impulseResidual, impulseScale) || heat < 0 || + Math.Abs(impulseResidual) > 512 * GearReference.Epsilon * impulseScale || + Math.Abs(work - heat - change) > 512 * GearReference.Epsilon * (Math.Abs(work) + heat + initialEnergy + finalEnergy)) + return LiquidColumnStatus.NumericalFailure; + step = new(new(q1), Math.Max(volume, 0), Math.Max(-volume, 0), work, heat, change, heat / TemperatureKelvin, 1); + return LiquidColumnStatus.Success; + } +} diff --git a/src/Power.Core/LiquidFuelInjector.cs b/src/Power.Core/LiquidFuelInjector.cs index 8651fdf..ed517e5 100644 --- a/src/Power.Core/LiquidFuelInjector.cs +++ b/src/Power.Core/LiquidFuelInjector.cs @@ -103,7 +103,7 @@ public bool TryAdvance(LiquidRailSample state, double receiverPressurePascals, d } internal sealed record CompiledLiquidInjector(int Component, int Film, CompiledInjector Meter, - CompliantLiquidRail Rail, double SupplyTemperature, double SpecificThermalEnergy, double HeatingValue, CompiledNeedle? Needle = null); + CompliantLiquidRail Rail, double SupplyTemperature, double SpecificThermalEnergy, double HeatingValue, CompiledNeedle? Needle = null, int PressureNode = -1); internal sealed class LiquidInjectorState(int count) { @@ -147,7 +147,7 @@ internal sealed class LiquidFuelInjectorSolver(CompiledModel model, FuelFilmSolv internal void BeginInterval() => ReceiverWork = 0; internal bool Advance(LiquidInjectorState state, FuelFilmState filmState, double[] dynamics, - double[] gasEnergy, double[] inputs, double duration, bool reverse = false) + double[] gasEnergy, double[] inputs, double duration, bool reverse = false, HydraulicState? hydraulics = null, LiquidFeedState? feedState = null) { for (int slot = 0; slot < model.LiquidFuelInjectors.Length; ++slot) { @@ -156,22 +156,36 @@ internal bool Advance(LiquidInjectorState state, FuelFilmState filmState, double if (!state.Quota.Prepare(i, injector.Meter, dynamics, inputs[injector.Component], duration, out double opening, out double rateLimit)) return false; double ceiling = rateLimit * duration; - if (injector.Needle is { } needle) { opening = needle.Opening(dynamics); ceiling = injector.Rail.InitialMassKilograms; } + if (injector.Needle is { } needle) { opening = needle.Opening(dynamics); ceiling = model.RailSample(i,state,hydraulics).MassKilograms; } if (opening == 0) continue; var film = model.FuelFilms[injector.Film]; - double volume = model.Gas!.VolumeAt(film.Gas, dynamics); + double volume = model.Gas!.VolumeAt(film.Gas, dynamics, films: filmState); double pressure = (model.Gas.Gases[film.Gas].Gamma - 1) * gasEnergy[film.Gas] / volume; - var rail = injector.Rail.StateAfterDelivery(state.Quota.Total[i]); + var rail = model.RailSample(i,state,hydraulics); if (!injector.Rail.TryAdvance(rail, pressure, duration * opening, ceiling, out var transfer)) return false; + if (film.Phase is { } phase && transfer.Rail.MassKilograms > 0) + { + double temperature = injector.PressureNode < 0 ? injector.SupplyTemperature : + film.Law.Temperature(new(rail.MassKilograms, feedState!.RailEnergy[i])); + if (!model.TryLiquidSaturation(i, temperature, transfer.Rail.PressurePascals, out double saturation) || !FuelPhaseEquilibrium.PressureAllowsLiquid(transfer.Rail.PressurePascals, saturation)) return false; + } double mass = transfer.DeliveredMassKilograms; if (!state.Quota.Accept(i, mass, enforceQuota: injector.Needle is null)) return false; filmState.Mass[injector.Film] += mass; - filmState.Energy[injector.Film] += mass * injector.SpecificThermalEnergy; + double caloric=injector.PressureNode<0?mass*injector.SpecificThermalEnergy:mass==0?0:mass*feedState!.RailEnergy[i]/rail.MassKilograms; + filmState.Energy[injector.Film] += caloric; + if(injector.PressureNode>=0) + { + Numeric.Accumulate(-caloric,ref feedState!.RailEnergy[i],ref feedState.RailCorrection[i]); + hydraulics!.Pressure[injector.PressureNode]=transfer.Rail.PressurePascals; + Numeric.Accumulate(-mass/injector.Rail.DensityKilogramsPerCubicMeter,ref hydraulics.VolumeIn,ref hydraulics.VolumeCorrection); + } films.AddHeat(film.Wall, film.WallCapacity, transfer.NozzleHeatJoules); Numeric.Accumulate(transfer.SourcePressureWorkJoules, ref state.SourceWork[i], ref state.SourceCorrection[i]); Numeric.Accumulate(transfer.ReceiverPressureWorkJoules, ref state.ReceiverWork[i], ref state.ReceiverCorrection[i]); Numeric.Accumulate(transfer.NozzleHeatJoules, ref state.Heat[i], ref state.HeatCorrection[i]); - ReceiverWork += transfer.ReceiverPressureWorkJoules; + if (film.FiniteVolume is null) ReceiverWork += transfer.ReceiverPressureWorkJoules; + else gasEnergy[film.Gas] += transfer.ReceiverPressureWorkJoules; } return state.Finite() && filmState.Finite() && Numeric.Finite(ReceiverWork); } diff --git a/src/Power.Core/LiquidFuelTank.cs b/src/Power.Core/LiquidFuelTank.cs new file mode 100644 index 0000000..2ae7b69 --- /dev/null +++ b/src/Power.Core/LiquidFuelTank.cs @@ -0,0 +1,96 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +/// Finite, mixed liquid inventory at the pump's explicit prescribed inlet pressure. +public sealed record LiquidFuelTankDefinition +{ + public uint InjectorComponent { get; init; } + public Quantity InitialMass { get; init; } + public Quantity InitialTemperature { get; init; } + public LiquidTankHeadspaceDefinition? Headspace { get; init; } +} + +internal sealed record CompiledLiquidTank(int Component, int Injector, double InitialMass, + double InitialTemperature, double InitialEnergy, double Density, double HeatingValue); + +internal sealed class LiquidTankState(int count, bool headspaces = false, CompiledModel? equilibriumModel = null) +{ + internal readonly double[] Mass = new double[count], MassCorrection = new double[count]; + internal readonly double[] Energy = new double[count], EnergyCorrection = new double[count]; + internal readonly double[]? HeadspaceWork = headspaces ? new double[count] : null; + internal readonly double[]? WorkCorrection = headspaces ? new double[count] : null; + internal readonly double[]? Vaporized = equilibriumModel is null ? null : new double[count], VaporCorrection = equilibriumModel is null ? null : new double[count]; + internal readonly double[]? Condensed = equilibriumModel is null ? null : new double[count], CondensedCorrection = equilibriumModel is null ? null : new double[count]; + internal readonly double[]? TickPhase = equilibriumModel is null ? null : new double[count]; + internal void BeginTick() { if (TickPhase is not null) Array.Clear(TickPhase, 0, count); } + internal bool EndTick(double duration) + { + if (TickPhase is not null) + for (int i = 0; i < count; ++i) + { + if (TickPhase[i] >= 0) Numeric.Accumulate(TickPhase[i], ref Vaporized![i], ref VaporCorrection![i]); + else Numeric.Accumulate(-TickPhase[i], ref Condensed![i], ref CondensedCorrection![i]); + TickPhase[i] /= duration; + } + return Finite(); + } + internal void CopyFrom(LiquidTankState other) + { + Array.Copy(other.Mass, Mass, Mass.Length); Array.Copy(other.MassCorrection, MassCorrection, Mass.Length); + Array.Copy(other.Energy, Energy, Mass.Length); Array.Copy(other.EnergyCorrection, EnergyCorrection, Mass.Length); + if (HeadspaceWork is not null) + { Array.Copy(other.HeadspaceWork!, HeadspaceWork, Mass.Length); Array.Copy(other.WorkCorrection!, WorkCorrection!, Mass.Length); } + if (TickPhase is not null) + { Array.Copy(other.TickPhase!, TickPhase, count); Array.Copy(other.Vaporized!, Vaporized!, count); Array.Copy(other.VaporCorrection!, VaporCorrection!, count); Array.Copy(other.Condensed!, Condensed!, count); Array.Copy(other.CondensedCorrection!, CondensedCorrection!, count); } + } + internal ulong Hash(ulong hash) + { + for (int i = 0; i < Mass.Length; ++i) + { + hash = Numeric.Hash(hash, Mass[i]); hash = Numeric.Hash(hash, MassCorrection[i]); + hash = Numeric.Hash(hash, Energy[i]); hash = Numeric.Hash(hash, EnergyCorrection[i]); + if (HeadspaceWork is not null) { hash = Numeric.Hash(hash, HeadspaceWork[i]); hash = Numeric.Hash(hash, WorkCorrection![i]); } + if (TickPhase is not null) { hash=Numeric.Hash(hash,TickPhase[i]);hash=Numeric.Hash(hash,Vaporized![i]);hash=Numeric.Hash(hash,VaporCorrection![i]);hash=Numeric.Hash(hash,Condensed![i]);hash=Numeric.Hash(hash,CondensedCorrection![i]); } + } + return hash; + } + internal bool Finite() + { + for (int i = 0; i < Mass.Length; ++i) + if (!GearReference.Finite(Mass[i], MassCorrection[i], Energy[i], EnergyCorrection[i]) || Mass[i] < 0 || Mass[i] == 0 && Energy[i] != 0 || + HeadspaceWork is not null && (!Numeric.Finite(HeadspaceWork[i]) || !Numeric.Finite(WorkCorrection![i]))) return false; + if (TickPhase is not null) + for (int i=0;i LiquidTanks.Length != 0; + private void CompileLiquidTanks(ComponentDefinition[] definitions) + { + int slot = 0; + for (int i = 0; i < Components.Length; ++i) + { + if (Components[i].Kind != ComponentKind.LiquidFuelTank) continue; + var c = Components[i]; var d = definitions[i].LiquidFuelTank!; + int injector = Array.FindIndex(LiquidFuelInjectors, x => Components[x.Component].Id == d.InjectorComponent); + Require(injector >= 0, DiagnosticCode.Connection, c.Id, "liquid_fuel_tank.injector_component", "Use the injector whose fuel properties define this tank."); + var rail = LiquidFuelInjectors[injector]; var film = FuelFilms[rail.Film]; + Require(c.A == Components[rail.Component].A, DiagnosticCode.Connection, c.Id, "liquid_fuel_tank.node_a", "The tank and paired injector must use the same receiver."); + double mass = Convert(d.InitialMass, Unit.Kilogram, c.Id, "liquid_fuel_tank.initial_mass"); + double temperature = Convert(d.InitialTemperature, Unit.Kelvin, c.Id, "liquid_fuel_tank.initial_temperature"); + Require(mass >= 0 && film.LiquidTemperatureValid(temperature), + DiagnosticCode.Range, c.Id, "liquid_fuel_tank", "Use nonnegative inventory and liquid temperature inside the film's declared range."); + double energy = film.LiquidState(mass, temperature).ThermalEnergyJoules; + LiquidTanks[slot] = new(i, injector, mass, temperature, energy, rail.Rail.DensityKilogramsPerCubicMeter, rail.HeatingValue); + TankByComponent[i] = slot++; + } + } +} diff --git a/src/Power.Core/LiquidPhaseBoundary.cs b/src/Power.Core/LiquidPhaseBoundary.cs new file mode 100644 index 0000000..051d2bc --- /dev/null +++ b/src/Power.Core/LiquidPhaseBoundary.cs @@ -0,0 +1,106 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed partial class CompiledModel +{ + internal FiniteTankFuelEquilibrium? TankPhaseForInjector(int injector) + { + if (!HasEquilibriumTanks) return null; + int feed = FeedByInjector[injector], tank = feed < 0 ? -1 : LiquidFeeds[feed].Tank; + int headspace = tank < 0 ? -1 : HeadspaceByTank[tank]; + return headspace < 0 ? null : TankHeadspaces[headspace].Equilibrium; + } + internal bool TryLiquidSaturation(int injector, double temperature, double pressure, out double saturation) + { + var finite = TankPhaseForInjector(injector) ?? FuelFilms[LiquidFuelInjectors[injector].Film].FiniteVolume; + return finite is not null ? finite.TrySaturationPressure(temperature, pressure, out saturation) : + FuelFilms[LiquidFuelInjectors[injector].Film].Phase!.TrySaturationPressure(temperature, out saturation); + } + private void ValidateLiquidPhaseSources() + { + foreach (var feed in LiquidFeeds) + { + var phase = FuelFilms[LiquidFuelInjectors[feed.Injector].Film].Phase; + if (phase is null) continue; + int headspace = feed.Tank < 0 ? -1 : HeadspaceByTank[feed.Tank]; + if (headspace >= 0 && TankHeadspaces[headspace].Equilibrium is { } finite) + { + var rail = LiquidFuelInjectors[feed.Injector]; + Require(rail.Rail.InitialMassKilograms == 0 || finite.TrySaturationPressure(rail.SupplyTemperature, rail.Rail.InitialPressurePascals, out double corrected) && + FuelPhaseEquilibrium.PressureAllowsLiquid(rail.Rail.InitialPressurePascals, corrected), + DiagnosticCode.Range, Components[rail.Component].Id, "liquid_fuel_injector.initial_pressure", "Use single-phase rail pressure above the finite-density material's pressure-corrected saturation."); + continue; + } + if (feed.Tank >= 0 && LiquidTanks[feed.Tank].InitialMass == 0) continue; + double pressure = headspace < 0 ? Components[feed.Pump].P2 : + Nodes.First(node => node.Domain == Domain.Gas && node.Index == TankHeadspaces[headspace].Gas).Position; + Require(phase.TrySaturationPressure(feed.SourceTemperature, out double saturation) && FuelPhaseEquilibrium.PressureAllowsLiquid(pressure, saturation), + DiagnosticCode.Range, Components[feed.Component].Id, "liquid_rail_feed.inlet_pressure", + "Absolute liquid inlet pressure must be at least saturation pressure; raise source pressure or lower liquid temperature. Two-phase pump flow is unsupported."); + } + } +} + +public sealed partial class Simulation +{ + private double LiquidRailTemperature(State state, int injector, LiquidRailSample rail) + { + var definition = _model.LiquidFuelInjectors[injector]; + return definition.PressureNode < 0 || rail.MassKilograms == 0 ? definition.SupplyTemperature : + _model.FuelFilms[definition.Film].Law.Temperature(new(rail.MassKilograms, state.LiquidFeeds!.RailEnergy[injector])); + } + + private double LiquidSourceTemperature(State state, int feed) + { + var definition = _model.LiquidFeeds[feed]; + var finite = _model.TankPhaseForInjector(definition.Injector); + if (finite is not null && state.LiquidTanks!.Mass[definition.Tank] == 0) + { + int gas = _model.TankHeadspaces[_model.HeadspaceByTank[definition.Tank]].Gas; + return state.Energy[gas] / state.Mass[gas] / finite.Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin; + } + if (definition.Tank < 0 || state.LiquidTanks!.Mass[definition.Tank] == 0) return definition.SourceTemperature; + return _model.FuelFilms[_model.LiquidFuelInjectors[definition.Injector].Film].Law.Temperature( + new(state.LiquidTanks.Mass[definition.Tank], state.LiquidTanks.Energy[definition.Tank])); + } + + private double LiquidSourcePressure(State state, int feed) + { + var definition = _model.LiquidFeeds[feed]; + int headspace = definition.Tank < 0 ? -1 : _model.HeadspaceByTank[definition.Tank]; + return headspace < 0 ? _model.Components[definition.Pump].P2 : GasPressure(state, _model.TankHeadspaces[headspace].Gas); + } + + private double LiquidRailSaturation(State state, int injector, LiquidRailSample rail) + { + return _model.TryLiquidSaturation(injector, LiquidRailTemperature(state, injector, rail), rail.PressurePascals, out double pressure) ? pressure : double.NaN; + } + + private double LiquidSourceSaturation(State state, int feed) + { + return _model.TryLiquidSaturation(_model.LiquidFeeds[feed].Injector, LiquidSourceTemperature(state, feed), LiquidSourcePressure(state, feed), out double pressure) ? pressure : double.NaN; + } + + private bool LiquidPhasesValid(State state) + { + for (int i = 0; i < _model.LiquidFuelInjectors.Length; ++i) + { + if (_model.FuelFilms[_model.LiquidFuelInjectors[i].Film].Phase is null) continue; + var rail = _model.RailSample(i, state.LiquidInjectors!, state.Hydraulic); + double saturation = LiquidRailSaturation(state, i, rail); + if (!Numeric.Finite(saturation) || rail.MassKilograms > 0 && !FuelPhaseEquilibrium.PressureAllowsLiquid(rail.PressurePascals, saturation)) return false; + } + for (int i = 0; i < _model.LiquidFeeds.Length; ++i) + { + var feed = _model.LiquidFeeds[i]; + if (_model.FuelFilms[_model.LiquidFuelInjectors[feed.Injector].Film].Phase is null) continue; + double saturation = LiquidSourceSaturation(state, i); + bool wet = feed.Tank < 0 || state.LiquidTanks!.Mass[feed.Tank] > 0; + if (!Numeric.Finite(saturation) || wet && _model.TankPhaseForInjector(feed.Injector) is null && !FuelPhaseEquilibrium.PressureAllowsLiquid(LiquidSourcePressure(state, i), saturation)) return false; + } + return true; + } +} diff --git a/src/Power.Core/LiquidRailFeed.cs b/src/Power.Core/LiquidRailFeed.cs new file mode 100644 index 0000000..d96457a --- /dev/null +++ b/src/Power.Core/LiquidRailFeed.cs @@ -0,0 +1,91 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +/// Material/thermal boundary paired with an existing conserving displacement pump. +public sealed record LiquidRailFeedDefinition +{ + public uint InjectorComponent { get; init; } + public uint PumpComponent { get; init; } + public Quantity SupplyTemperature { get; init; } + public uint TankComponent { get; init; } +} +internal sealed record CompiledLiquidFeed(int Component, int Injector, int Pump, int Pressure, int Shaft, + double Displacement, double Density, double SourceTemperature, double SourceThermalEnergy, double HeatingValue, int Tank = -1); +internal sealed class LiquidFeedState +{ + internal readonly double[] Mass, MassCorrection, Thermal, ThermalCorrection, Chemical, ChemicalCorrection; + internal readonly double[] RailEnergy, RailCorrection; + internal LiquidFeedState(int feeds, int injectors) + { + Mass=new double[feeds]; MassCorrection=new double[feeds]; Thermal=new double[feeds]; ThermalCorrection=new double[feeds]; + Chemical=new double[feeds]; ChemicalCorrection=new double[feeds]; RailEnergy=new double[injectors]; RailCorrection=new double[injectors]; + } + internal void CopyFrom(LiquidFeedState other) + { + Array.Copy(other.Mass,Mass,Mass.Length);Array.Copy(other.MassCorrection,MassCorrection,Mass.Length); + Array.Copy(other.Thermal,Thermal,Thermal.Length);Array.Copy(other.ThermalCorrection,ThermalCorrection,Mass.Length); + Array.Copy(other.Chemical,Chemical,Mass.Length);Array.Copy(other.ChemicalCorrection,ChemicalCorrection,Mass.Length); + Array.Copy(other.RailEnergy,RailEnergy,RailEnergy.Length);Array.Copy(other.RailCorrection,RailCorrection,RailEnergy.Length); + } + internal ulong Hash(ulong hash) + { + for(int i=0;i LiquidFeeds.Length!=0; + private void CompileLiquidFeeds(ComponentDefinition[] definitions) + { + int slot=0;var pumps=new HashSet();var pressures=new HashSet();var tanks=new HashSet(); + for(int i=0;iComponents[x.Component].Id==d.InjectorComponent); + int pump=Array.FindIndex(Components,x=>x.Id==d.PumpComponent&&x.Kind==ComponentKind.HydraulicPump); + Require(injector>=0&&pump>=0,DiagnosticCode.Connection,c.Id,"liquid_rail_feed","Use an existing liquid injector and hydraulic displacement pump."); + var p=Components[pump];var rail=LiquidFuelInjectors[injector];var node=Nodes[p.B]; + Require(c.A==Components[rail.Component].A&&p.C<0&&FeedByInjector[injector]<0&&pumps.Add(pump)&&pressures.Add(p.B), + DiagnosticCode.Connection,c.Id,"liquid_rail_feed","A feed owns one injector/pressure node and one explicit-reservoir pump, at the injector receiver."); + Require(node.Storage==rail.Rail.ComplianceCubicMetersPerPascal&&node.Initial==rail.Rail.InitialPressurePascals, + DiagnosticCode.Connection,c.Id,"liquid_rail_feed.pressure_node","Hydraulic pressure storage and initial pressure must match the rail exactly."); + var declaredReturns=definitions.Where(x=>x.Kind==ComponentKind.LiquidRailReturn&&x.LiquidRailReturn!.FeedComponent==c.Id).Select(x=>x.LiquidRailReturn!.ValveComponent).ToHashSet(); + Require(!Components.Any(x=>x.Kind is ComponentKind.HydraulicResistance or ComponentKind.HydraulicOrifice or ComponentKind.HydraulicRelief or ComponentKind.HydraulicSpoolValve&& (x.A==p.B||x.B==p.B)&&!declaredReturns.Contains(x.Id))&& + !Components.Any(x=>x.Kind==ComponentKind.HydraulicPump&&x.Id!=p.Id&&(x.B==p.B||x.C==p.B))&& + !Components.Any(x=>x.Kind==ComponentKind.HydraulicPiston&&(x.B==p.B||x.C==p.B)), + DiagnosticCode.Connection,c.Id,"liquid_rail_feed.pressure_node","The rail pressure node has only its paired pump and injector; untracked hydraulic fluid paths are unsupported."); + int tank=d.TankComponent==0?-1:Array.FindIndex(LiquidTanks,x=>Components[x.Component].Id==d.TankComponent); + Require(d.TankComponent==0 || tank>=0&&LiquidTanks[tank].Injector==injector&&tanks.Add(tank), + DiagnosticCode.Connection,c.Id,"liquid_rail_feed.tank_component","Use one exclusively owned finite tank with matching injector properties."); + Require(tank<0||d.SupplyTemperature==default,DiagnosticCode.Schema,c.Id,"liquid_rail_feed.supply_temperature","A finite tank owns source temperature; omit the external boundary temperature."); + double temperature=tank<0?Convert(d.SupplyTemperature,Unit.Kelvin,c.Id,"liquid_rail_feed.supply_temperature"):LiquidTanks[tank].InitialTemperature;var film=FuelFilms[rail.Film]; + Require(film.LiquidTemperatureValid(temperature),DiagnosticCode.Range,c.Id,"liquid_rail_feed.supply_temperature","Use liquid supply temperature inside the film's declared range."); + LiquidFeeds[slot]=new(i,injector,pump,node.Index,Nodes[p.A].Index,p.P0,rail.Rail.DensityKilogramsPerCubicMeter,temperature,film.LiquidState(1,temperature).ThermalEnergyJoules,rail.HeatingValue,tank); + FeedByInjector[injector]=slot;FeedByComponent[i]=slot;LiquidFuelInjectors[injector]=rail with{PressureNode=node.Index};++slot; + } + Require(tanks.Count==LiquidTanks.Length,DiagnosticCode.Connection,0,"liquid_fuel_tank","Every tank must belong to exactly one liquid rail feed."); + } + internal LiquidRailSample RailSample(int injector, LiquidInjectorState state, HydraulicState? hydraulics) + { + var rail=LiquidFuelInjectors[injector].Rail;int pressure=LiquidFuelInjectors[injector].PressureNode; + if(pressure<0)return rail.StateAfterDelivery(state.Quota.Total[injector]); + double p=hydraulics!.Pressure[pressure];return new(rail.DensityKilogramsPerCubicMeter*(rail.ReferenceVolumeCubicMeters+rail.ComplianceCubicMetersPerPascal*p),p); + } +} diff --git a/src/Power.Core/LiquidRailReturn.cs b/src/Power.Core/LiquidRailReturn.cs new file mode 100644 index 0000000..cf1d56f --- /dev/null +++ b/src/Power.Core/LiquidRailReturn.cs @@ -0,0 +1,146 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +/// Tracked one-way relief return with an explicit fraction of loss heat carried by fuel. +public sealed record LiquidRailReturnDefinition +{ + public uint FeedComponent { get; init; } + public uint ValveComponent { get; init; } + public Quantity FluidHeatFraction { get; init; } +} +internal sealed record CompiledLiquidReturn(int Component, int Feed, int Valve, double HeatFraction); +internal sealed class LiquidReturnState(int count) +{ + internal readonly double[] Mass = new double[count], MassCorrection = new double[count]; + internal readonly double[] Thermal = new double[count], ThermalCorrection = new double[count]; + internal readonly double[] Chemical = new double[count], ChemicalCorrection = new double[count]; + internal readonly double[] Heat = new double[count], HeatCorrection = new double[count]; + internal void CopyFrom(LiquidReturnState other) + { + Array.Copy(other.Mass, Mass, Mass.Length); Array.Copy(other.MassCorrection, MassCorrection, Mass.Length); + Array.Copy(other.Thermal, Thermal, Mass.Length); Array.Copy(other.ThermalCorrection, ThermalCorrection, Mass.Length); + Array.Copy(other.Chemical, Chemical, Mass.Length); Array.Copy(other.ChemicalCorrection, ChemicalCorrection, Mass.Length); + Array.Copy(other.Heat, Heat, Mass.Length); Array.Copy(other.HeatCorrection, HeatCorrection, Mass.Length); + } + internal ulong Hash(ulong hash) + { + for (int i = 0; i < Mass.Length; ++i) + { + hash = Numeric.Hash(hash, Mass[i]); hash = Numeric.Hash(hash, MassCorrection[i]); + hash = Numeric.Hash(hash, Thermal[i]); hash = Numeric.Hash(hash, ThermalCorrection[i]); + hash = Numeric.Hash(hash, Chemical[i]); hash = Numeric.Hash(hash, ChemicalCorrection[i]); + hash = Numeric.Hash(hash, Heat[i]); hash = Numeric.Hash(hash, HeatCorrection[i]); + } + return hash; + } + internal bool Finite() + { + for (int i = 0; i < Mass.Length; ++i) + if (!GearReference.Finite(Mass[i], MassCorrection[i], Thermal[i], ThermalCorrection[i]) || + !GearReference.Finite(Chemical[i], ChemicalCorrection[i], Heat[i], HeatCorrection[i]) || Mass[i] < 0 || Heat[i] < 0) return false; + return true; + } +} + +public sealed partial class CompiledModel +{ + internal CompiledLiquidReturn[] LiquidReturns { get; } + internal int[] ReturnByComponent { get; } + internal int[][] ReturnsByFeed { get; } + internal double[] ReturnHeatFractions { get; } + public bool HasLiquidReturns => LiquidReturns.Length != 0; + private void CompileLiquidReturns(ComponentDefinition[] definitions) + { + int slot = 0; var valves = new HashSet(); + for (int i = 0; i < Components.Length; ++i) + { + if (Components[i].Kind != ComponentKind.LiquidRailReturn) continue; + var c = Components[i]; var d = definitions[i].LiquidRailReturn!; + int feed = Array.FindIndex(LiquidFeeds, x => Components[x.Component].Id == d.FeedComponent); + int valve = Array.FindIndex(Components, x => x.Id == d.ValveComponent && x.Kind == ComponentKind.HydraulicRelief); + Require(feed >= 0 && valve >= 0, DiagnosticCode.Connection, c.Id, "liquid_rail_return", "Use an existing feed and one-way hydraulic relief valve."); + var f = LiquidFeeds[feed]; var p = Components[f.Pump]; var v = Components[valve]; + Require(c.A == Components[f.Component].A && v.A == p.B && v.B < 0 && v.P2 == p.P2 && valves.Add(valve), + DiagnosticCode.Connection, c.Id, "liquid_rail_return.valve_component", "Own a distinct relief at this rail and the pump's prescribed inlet pressure."); + double fraction = Convert(d.FluidHeatFraction, Unit.Fraction, c.Id, "liquid_rail_return.fluid_heat_fraction"); + Require(fraction >= 0 && fraction <= 1, DiagnosticCode.Range, c.Id, + "liquid_rail_return.fluid_heat_fraction", "Use a fluid heat fraction in [0,1]."); + LiquidReturns[slot] = new(i, feed, valve, fraction); ReturnByComponent[i] = slot++; ReturnHeatFractions[valve] = fraction; + } + for (int i = 0; i < LiquidFeeds.Length; ++i) + ReturnsByFeed[i] = Enumerable.Range(0, LiquidReturns.Length).Where(k => LiquidReturns[k].Feed == i).ToArray(); + } +} + +public sealed partial class Simulation +{ + private bool TransferLiquidReturns(State s, int feedSlot, double dt, out double boundaryMass, out double boundaryEnergy) + { + boundaryMass = boundaryEnergy = 0; + var feed = _model.LiquidFeeds[feedSlot]; var routes = _model.ReturnsByFeed[feedSlot]; var state = s.LiquidFeeds!; + double pumpMass = feed.Tank < 0 ? feed.Density * feed.Displacement * dt * _mid[feed.Shaft + 1] + : feed.Density * _hydraulics!.PumpVolume(_model.Components[feed.Pump].Index, _mid[feed.Shaft + 1], dt); + double tank0 = feed.Tank < 0 ? 0 : s.LiquidTanks!.Mass[feed.Tank]; + if (feed.Tank >= 0 && pumpMass >= tank0) pumpMass = tank0; + double returned = 0, recoveredHeat = 0; + foreach (int k in routes) + { + var route = _model.LiquidReturns[k]; int valve = _model.Components[route.Valve].Index; + returned += feed.Density * _hydraulics!.RestrictionVolume(valve, dt); + recoveredHeat += route.HeatFraction * _hydraulics.RestrictionLoss(valve, dt); + } + double rail0 = _returnRailMassBefore[feedSlot], rail1 = _model.RailSample(feed.Injector, s.LiquidInjectors!, s.Hydraulic).MassKilograms; + double tank1 = tank0 - pumpMass + returned, oldRailEnergy = state.RailEnergy[feed.Injector]; + double forward = Math.Max(0, pumpMass), backward = returned + Math.Max(0, -pumpMass), railSum = rail0 + rail1; + if (!GearReference.Finite(pumpMass, returned, recoveredHeat, railSum) || returned < 0 || feed.Tank >= 0 && tank1 < 0 || railSum <= 0) return false; + double outCoefficient = backward / railSum, nextRailEnergy, nextTankEnergy = 0, supplySpecific; + if (outCoefficient > 1) return false; + if (feed.Tank < 0) + { + supplySpecific = feed.SourceThermalEnergy; + nextRailEnergy = (oldRailEnergy * (1 - outCoefficient) + forward * supplySpecific) / (1 + outCoefficient); + } + else + { + double oldTankEnergy = s.LiquidTanks!.Energy[feed.Tank], tankSum = tank0 + tank1; + double inCoefficient = tankSum == 0 ? 0 : forward / tankSum, total = oldRailEnergy + oldTankEnergy + recoveredHeat; + nextRailEnergy = (oldRailEnergy * (1 - outCoefficient) + inCoefficient * (oldTankEnergy + total)) / (1 + inCoefficient + outCoefficient); + nextTankEnergy = total - nextRailEnergy; + if (tank1 == 0) { nextTankEnergy = 0; nextRailEnergy = total; } + supplySpecific = tankSum == 0 ? 0 : (oldTankEnergy + nextTankEnergy) / tankSum; + } + if (rail1 == 0) nextRailEnergy = 0; + double railSpecific = (oldRailEnergy + nextRailEnergy) / railSum; + double pumpCaloric = pumpMass * (pumpMass >= 0 ? supplySpecific : railSpecific), pumpChemical = pumpMass * feed.HeatingValue; + Numeric.Accumulate(pumpMass, ref state.Mass[feedSlot], ref state.MassCorrection[feedSlot]); + Numeric.Accumulate(pumpCaloric, ref state.Thermal[feedSlot], ref state.ThermalCorrection[feedSlot]); + Numeric.Accumulate(pumpChemical, ref state.Chemical[feedSlot], ref state.ChemicalCorrection[feedSlot]); + state.RailEnergy[feed.Injector] = nextRailEnergy; state.RailCorrection[feed.Injector] = 0; + if (feed.Tank < 0) { boundaryMass = pumpMass; boundaryEnergy = pumpCaloric + pumpChemical; } + else + { + s.LiquidTanks!.Mass[feed.Tank] = tank1; s.LiquidTanks.MassCorrection[feed.Tank] = 0; + s.LiquidTanks.Energy[feed.Tank] = nextTankEnergy; s.LiquidTanks.EnergyCorrection[feed.Tank] = 0; + } + foreach (int k in routes) + { + var route = _model.LiquidReturns[k]; int valve = _model.Components[route.Valve].Index; + double mass = feed.Density * _hydraulics!.RestrictionVolume(valve, dt), heat = route.HeatFraction * _hydraulics.RestrictionLoss(valve, dt); + double caloric = mass * railSpecific + heat, chemical = mass * feed.HeatingValue; var returns = s.LiquidReturns!; + Numeric.Accumulate(mass, ref returns.Mass[k], ref returns.MassCorrection[k]); + Numeric.Accumulate(caloric, ref returns.Thermal[k], ref returns.ThermalCorrection[k]); + Numeric.Accumulate(chemical, ref returns.Chemical[k], ref returns.ChemicalCorrection[k]); + Numeric.Accumulate(heat, ref returns.Heat[k], ref returns.HeatCorrection[k]); + if (feed.Tank < 0) { boundaryMass -= mass; boundaryEnergy -= caloric + chemical; } + } + if (feed.Tank < 0) + { + Numeric.Accumulate(boundaryMass, ref s.Mixture!.FuelIn, ref s.Mixture.FuelInCorrection); + Numeric.Accumulate(boundaryMass * feed.HeatingValue, ref s.Mixture.ChemicalIn, ref s.Mixture.ChemicalInCorrection); + } + return GearReference.Finite(nextRailEnergy, nextTankEnergy, boundaryMass, boundaryEnergy); + } +} diff --git a/src/Power.Core/LiquidTankHeadspace.cs b/src/Power.Core/LiquidTankHeadspace.cs new file mode 100644 index 0000000..3831710 --- /dev/null +++ b/src/Power.Core/LiquidTankHeadspace.cs @@ -0,0 +1,155 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed record LiquidTankHeadspaceDefinition +{ + public Quantity Capacity { get; init; } + public uint GasNode { get; init; } + public bool PhaseEquilibrium { get; init; } +} + +public readonly record struct HeadspacePressureWork(double MeanPressurePascals, + double PressureDerivativePascalsPerCubicMeter, double GasEnergyChangeJoules); + +/// Rigid capacity, incompressible liquid and a finite ideal-gas headspace. No implicit vent or pressure source. +public sealed class LiquidTankHeadspace +{ + public double CapacityCubicMeters { get; } + public double LiquidDensityKilogramsPerCubicMeter { get; } + + public LiquidTankHeadspace(double capacityCubicMeters, double liquidDensityKilogramsPerCubicMeter) + { + if (!Numeric.Finite(capacityCubicMeters) || !Numeric.Finite(liquidDensityKilogramsPerCubicMeter) || + capacityCubicMeters <= 0 || liquidDensityKilogramsPerCubicMeter <= 0) + throw new ArgumentException("Use positive finite tank capacity and liquid density."); + CapacityCubicMeters = capacityCubicMeters; + LiquidDensityKilogramsPerCubicMeter = liquidDensityKilogramsPerCubicMeter; + } + + public double GasVolumeCubicMeters(double liquidMassKilograms) => + CapacityCubicMeters - liquidMassKilograms / LiquidDensityKilogramsPerCubicMeter; + + /// Reversible pressure work over a signed liquid-volume withdrawal; positive withdrawal expands the gas. + public static bool TryPressureWork(double gasVolumeCubicMeters, double withdrawalCubicMeters, + double gasEnergyJoules, double gamma, out HeadspacePressureWork work) + { + work = default; + if (!GearReference.Finite(gasVolumeCubicMeters, withdrawalCubicMeters, gasEnergyJoules, gamma) || + gasVolumeCubicMeters <= 0 || gasEnergyJoules <= 0 || gamma <= 1) return false; + double z = withdrawalCubicMeters / gasVolumeCubicMeters; + if (!Numeric.Finite(z) || z <= -1) return false; + double phi, derivative; + if (Math.Abs(gamma * z) < 1e-3) + { + phi = 1; derivative = -.5 * gamma; + double term = 1, slopeTerm = derivative; + for (int n = 1; n <= 7; ++n) + { + double factor = -(gamma + n - 1) * z; + term *= factor / (n + 1); phi += term; + if (n > 1) { slopeTerm *= factor * n / ((n - 1) * (n + 1)); derivative += slopeTerm; } + } + } + else + { + double logarithm = Numeric.Log1p(z); + phi = -Numeric.Expm1(-(gamma - 1) * logarithm) / ((gamma - 1) * z); + derivative = (Math.Exp(-gamma * logarithm) - phi) / z; + } + double pressure = (gamma - 1) * gasEnergyJoules / gasVolumeCubicMeters; + double mean = pressure * phi, slope = pressure / gasVolumeCubicMeters * derivative; + double change = -mean * withdrawalCubicMeters; + if (!GearReference.Finite(mean, slope, change, gasEnergyJoules + change) || mean <= 0 || gasEnergyJoules + change <= 0) return false; + work = new(mean, slope, change); return true; + } +} + +internal sealed record CompiledTankHeadspace(int Tank, int Gas, LiquidTankHeadspace Geometry, int Feed, int Pump, FiniteTankFuelEquilibrium? Equilibrium = null); + +public sealed partial class CompiledModel +{ + internal int[] TankHeadspaceByNode { get; } + internal CompiledTankHeadspace[] TankHeadspaces { get; } + internal int[] HeadspaceByPump { get; } + internal int[] HeadspaceByRestriction { get; } + internal int[] HeadspaceByTank { get; } + public bool HasTankHeadspaces => TankHeadspaces.Length != 0; + public int EquilibriumTankCount { get; private set; } + public bool HasEquilibriumTanks => EquilibriumTankCount != 0; + + private double[] PrepareTankHeadspaces(NodeDefinition[] nodes, ComponentDefinition[] components) + { + var volumes = new double[nodes.Length]; + for (int i = 0; i < components.Length; ++i) + { + var tank = components[i]; + if (tank.Kind != ComponentKind.LiquidFuelTank || tank.LiquidFuelTank?.Headspace is not { } definition) continue; + int gas = Array.FindIndex(nodes, node => node.Id == definition.GasNode); + int injector = Array.FindIndex(components, c => c.Id == tank.LiquidFuelTank.InjectorComponent && c.Kind == ComponentKind.LiquidFuelInjector); + Require(gas >= 0 && nodes[gas].Domain == Domain.Gas && nodes[gas].Id != tank.NodeA && + TankHeadspaceByNode[gas] < 0 && GasCylinderByNode[gas] < 0, + DiagnosticCode.Connection, tank.Id, "liquid_fuel_tank.headspace.gas_node", "Use a distinct gas node with one tank volume owner."); + Require(nodes[gas].Storage == default, DiagnosticCode.Schema, nodes[gas].Id, "storage", "A tank headspace omits storage; capacity and liquid mass determine its volume."); + Require(injector >= 0 && components[injector].LiquidFuelInjector is not null, DiagnosticCode.Connection, + tank.Id, "liquid_fuel_tank.injector_component", "Use the injector whose liquid density defines this tank."); + double capacity = Convert(definition.Capacity, Unit.CubicMeter, tank.Id, "liquid_fuel_tank.headspace.capacity"); + double density = Convert(components[injector].LiquidFuelInjector!.LiquidDensity, Unit.KilogramPerCubicMeter, tank.Id, "liquid_fuel_tank.headspace.density"); + double mass = Convert(tank.LiquidFuelTank.InitialMass, Unit.Kilogram, tank.Id, "liquid_fuel_tank.initial_mass"); + Require(capacity > 0 && density > 0 && mass >= 0 && Numeric.Finite(capacity - mass / density) && capacity - mass / density > 0, + DiagnosticCode.Range, tank.Id, "liquid_fuel_tank.headspace.capacity", "Use positive capacity with a positive initial gas headspace."); + TankHeadspaceByNode[gas] = i; volumes[gas] = capacity - mass / density; + } + return volumes; + } + + private void CompileTankHeadspaceRoutes(ComponentDefinition[] definitions) + { + int slot = 0; + for (int i = 0; i < LiquidTanks.Length; ++i) + { + var tank = LiquidTanks[i]; + if (definitions[tank.Component].LiquidFuelTank!.Headspace is not { } definition) continue; + int node = Array.FindIndex(Nodes, n => n.Id == definition.GasNode); + double capacity = Convert(definition.Capacity, Unit.CubicMeter, Components[tank.Component].Id, "liquid_fuel_tank.headspace.capacity"); + Require(!FuelFilms.Any(f => f.Gas == Nodes[node].Index), DiagnosticCode.Connection, Components[tank.Component].Id, + "liquid_fuel_tank.headspace.gas_node", "The headspace has explicit gas transport and heat links; it cannot also own a liquid film receiver."); + int feed = Array.FindIndex(LiquidFeeds, f => f.Tank == i); + int pump = Components[LiquidFeeds[feed].Pump].Index; + Require(Components[LiquidFeeds[feed].Pump].P2 == 0 && ReturnsByFeed[feed].All(route => Components[LiquidReturns[route].Valve].P2 == 0), + DiagnosticCode.Schema, Components[tank.Component].Id, "liquid_fuel_tank.headspace", "A headspace owns inlet pressure; set paired pump and return reservoir pressure to zero."); + FiniteTankFuelEquilibrium? equilibrium = null; + if (definition.PhaseEquilibrium) + { + var receiver = FuelFilms[LiquidFuelInjectors[tank.Injector].Film]; + var gas = NodeGases[node]!; var mixture = NodeMixtures[node]; var n = Nodes[node]; + Require(receiver.Phase is not null && mixture is not null && mixture.Compatible(NodeMixtures[Components[receiver.Component].A]) && + gas.GasConstantJoulePerKilogramKelvin == receiver.Phase.GasConstantJoulesPerKilogramKelvin && + gas.IsochoricHeatCapacityJoulePerKilogramKelvin == receiver.Law.VaporSpecificHeatJoulesPerKilogramKelvin, + DiagnosticCode.Connection, Components[tank.Component].Id, "liquid_fuel_tank.headspace.phase_equilibrium", + "Use the paired film's phase_equilibrium material and a tracked headspace with matching R, gamma, heating value and stoichiometric ratio."); + try { equilibrium = new(receiver.Phase!, capacity, tank.Density); } + catch (ArgumentException error) { throw new ModelCompileException(DiagnosticCode.Range, Components[tank.Component].Id, "liquid_fuel_tank.headspace.phase_equilibrium", error.Message); } + double mass = n.Position * n.Storage / gas.GasConstantJoulePerKilogramKelvin / n.Initial; + Require(tank.InitialMass + mass < capacity * tank.Density * (1 - 64 * GearReference.Epsilon), + DiagnosticCode.Range, Components[tank.Component].Id, "liquid_fuel_tank.headspace.capacity", "Total liquid, vapor and carrier inventory must have lower mean density than the liquid."); + Require(Math.Abs(n.Initial - tank.InitialTemperature) <= 64 * GearReference.Epsilon * Math.Max(1, tank.InitialTemperature), + DiagnosticCode.Range, Components[tank.Component].Id, "liquid_fuel_tank.headspace.initial_temperature", "An equilibrium tank starts at one gas/liquid temperature."); + Require(equilibrium.TrySaturationPressure(tank.InitialTemperature, n.Position, out double saturation), + DiagnosticCode.Range, Components[tank.Component].Id, "liquid_fuel_tank.headspace.phase_equilibrium", "Initial temperature and pressure must be inside the finite-density phase domain."); + double partial = n.Position * mixture!.Initial.Fuel, tolerance = 128 * GearReference.Epsilon * Math.Max(partial, saturation); + Require(tank.InitialMass == 0 ? partial - saturation <= tolerance : Math.Abs(partial - saturation) <= tolerance, + DiagnosticCode.Range, Components[tank.Component].Id, "liquid_fuel_tank.headspace.initial_fractions", + "Start a wet tank at pressure-corrected vapor saturation, or a dry tank at or below saturation; declare the headspace fuel fraction explicitly."); + ++EquilibriumTankCount; + } + TankHeadspaces[slot] = new(i, Nodes[node].Index, new(capacity, tank.Density), feed, pump, equilibrium); + HeadspaceByTank[i] = slot; + HeadspaceByPump[Components[LiquidFeeds[feed].Pump].Index] = slot; + foreach (int route in ReturnsByFeed[feed]) HeadspaceByRestriction[Components[LiquidReturns[route].Valve].Index] = slot; + ++slot; + } + } +} diff --git a/src/Power.Core/MovingFuelVolume.cs b/src/Power.Core/MovingFuelVolume.cs new file mode 100644 index 0000000..5d6d5e3 --- /dev/null +++ b/src/Power.Core/MovingFuelVolume.cs @@ -0,0 +1,84 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public readonly record struct CompliantFuelWorkTransfer(CompliantFuelPoint Fluid, + double EnergyChangeJoules, double MeanPressurePascals, double EntropyResidualJoulesPerKelvin); + +public sealed partial class CompliantFuelVolume +{ + /// + /// Closed reversible reference-volume work with fixed mass and entropy. Elastic + /// wall energy is included, so work on the fluid-plus-wall system is -integral(p dV0). + /// The returned energy change is also the mechanical work; no extra wall work is added. + /// + public FuelVolumeStatus AdiabaticReferenceVolume(double massKilograms, double storedEnergyJoules, + double oldReferenceVolumeCubicMeters, double newReferenceVolumeCubicMeters, out CompliantFuelWorkTransfer transfer) + { + transfer = default; + var status = FlashAtReferenceVolume(massKilograms, storedEnergyJoules, oldReferenceVolumeCubicMeters, out var initial); + if (status != FuelVolumeStatus.Success) return status; + if (!ReferenceVolumeValid(newReferenceVolumeCubicMeters)) return FuelVolumeStatus.InvalidInput; + double delta = newReferenceVolumeCubicMeters - oldReferenceVolumeCubicMeters; + if (delta == 0) + { transfer = new(initial, 0, initial.PressurePascals, 0); return FuelVolumeStatus.Success; } + + double temperature = initial.TemperatureKelvin, target = initial.EntropyJoulesPerKelvin; + // An incompressible pure-liquid adiabat has exactly constant temperature. + status = EvaluateAtReferenceVolume(temperature, massKilograms, newReferenceVolumeCubicMeters, out var result); + if (status != FuelVolumeStatus.Success) return status; + if (initial.Phase != FuelVolumePhase.Liquid || result.Phase != FuelVolumePhase.Liquid) + { + double lo = Material.MinimumTemperatureKelvin, hi = Material.MaximumTemperatureKelvin; + status = EvaluateAtReferenceVolume(lo, massKilograms, newReferenceVolumeCubicMeters, out var lower); + if (status != FuelVolumeStatus.Success) return status; + status = EvaluateAtReferenceVolume(hi, massKilograms, newReferenceVolumeCubicMeters, out var upper); + if (status != FuelVolumeStatus.Success) return status; + if (target < lower.EntropyJoulesPerKelvin || target > upper.EntropyJoulesPerKelvin) return FuelVolumeStatus.EntropyOutOfRange; + bool converged = false; + for (int iteration = 0; iteration < 80; ++iteration) + { + status = EvaluateAtReferenceVolume(temperature, massKilograms, newReferenceVolumeCubicMeters, out result); + if (status != FuelVolumeStatus.Success) return status; + double residual = result.EntropyJoulesPerKelvin - target; + double correction = residual * temperature / result.HeatCapacityJoulesPerKelvin; + if (!Numeric.Finite(correction)) return FuelVolumeStatus.NoConvergence; + if (Math.Abs(correction) <= 32 * GearReference.Epsilon * Math.Max(1, temperature)) { converged = true; break; } + if (residual > 0) hi = temperature; else lo = temperature; + double next = temperature - correction; + temperature = next > lo && next < hi ? next : (lo + hi) / 2; + } + if (!converged) return FuelVolumeStatus.NoConvergence; + } + double work; + if (initial.Phase == FuelVolumePhase.Liquid && result.Phase == FuelVolumePhase.Liquid) + work = -delta * (.5 * initial.PressurePascals + .5 * result.PressurePascals); + else + { + double cv = Material.Caloric.VaporSpecificHeatJoulesPerKilogramKelvin, cl = Material.Caloric.LiquidSpecificHeatJoulesPerKilogramKelvin; + // Difference the phase variables, not the two large caloric reference energies. + double sensibleCapacity = initial.LiquidMassKilograms * cl + initial.VaporMassKilograms * cv; + work = sensibleCapacity * (result.TemperatureKelvin - initial.TemperatureKelvin) + + (result.VaporMassKilograms - initial.VaporMassKilograms) * Material.LatentInternalEnergy(result.TemperatureKelvin) + + .5 * ComplianceCubicMetersPerPascal * (result.PressurePascals - initial.PressurePascals) * (result.PressurePascals + initial.PressurePascals); + double energyScale = sensibleCapacity * initial.TemperatureKelvin + initial.ElasticEnergyJoules + + massKilograms * Material.LatentInternalEnergy(initial.TemperatureKelvin); + // At roundoff-scale travel, endpoint entropy inversion cannot resolve the + // energy difference. The pressure integral has a stable differential limit. + if (Math.Abs(work) <= 1024 * GearReference.Epsilon * energyScale && + Math.Abs(delta) <= Math.Sqrt(GearReference.Epsilon) * oldReferenceVolumeCubicMeters && initial.Phase == result.Phase) + work = -delta * (.5 * initial.PressurePascals + .5 * result.PressurePascals); + } + double mean = -work / delta; + if (!Numeric.Finite(work) || !Numeric.Finite(mean) || mean <= 0) return FuelVolumeStatus.NoConvergence; + status = FlashAtReferenceVolume(massKilograms, storedEnergyJoules + work, newReferenceVolumeCubicMeters, out result); + if (status != FuelVolumeStatus.Success) return status; + double entropyResidual = result.EntropyJoulesPerKelvin - target; + double tolerance = 512 * GearReference.Epsilon * (Math.Abs(target) + initial.HeatCapacityJoulesPerKelvin + result.HeatCapacityJoulesPerKelvin); + if (Math.Abs(entropyResidual) > tolerance) return FuelVolumeStatus.NoConvergence; + transfer = new(result, work, mean, entropyResidual); + return FuelVolumeStatus.Success; + } +} diff --git a/src/Power.Core/PhaseRelaxationSolver.cs b/src/Power.Core/PhaseRelaxationSolver.cs new file mode 100644 index 0000000..1b1b76e --- /dev/null +++ b/src/Power.Core/PhaseRelaxationSolver.cs @@ -0,0 +1,55 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +namespace Power.Core; +public sealed partial class Simulation +{ + private bool AdvanceDuctInterval(State s,double duration) + { + if(!_model.HasRelaxingFuel)return _fuelDucts is null||_fuelDucts.Advance(s.CompressibleFuel!,s.Temperature,duration); + var state=s.CompressibleFuel!;double remaining=duration; + for(int step=0;remaining>0;++step) + { + if(step>=4096)return false;double h=remaining; + foreach(var duct in _model.FuelDucts) + { + double speed=0,volume=double.PositiveInfinity; + foreach(int slot in duct.Ports){speed=Math.Max(speed,Math.Abs(state.Momentum[slot]/state.Mass[slot])+_model.CompressibleFuels[slot].Law.AcousticSpeedBoundMetersPerSecond);volume=Math.Min(volume,_model.CompressibleVolume(state,slot));} + h=Math.Min(h,.2*volume/(duct.Area*speed)); + } + if(_model.HasRelaxingFuelBoundaries&&_compressibleNozzles is not null) + { + foreach(var nozzle in _model.CompressibleNozzles) + { + double opening=CompressibleNozzleSolver.Opening(nozzle,s.Inputs,s.X);if(opening==0)continue; + if(!EquilibriumFuelDuctSolver.Point(_model,state,nozzle.A,out var a)||!EquilibriumFuelDuctSolver.Point(_model,state,nozzle.B,out var b))return false; + double pressureRounding=128*GearReference.Epsilon*Math.Max(nozzle.Law.Law.LiquidBulkModulusPascals,Math.Max(a.PressurePascals,b.PressurePascals)); + if(a.PressurePascals-b.PressurePascals<=pressureRounding)continue; + if(nozzle.Evaluate(a,b.PressurePascals,opening,out var flow,out _)!=FuelNozzleStatus.Success)return false; + if(flow.MassFlowKilogramsPerSecond>0)h=Math.Min(h,.02*Math.Min(state.Mass[nozzle.A],state.Mass[nozzle.B])/flow.MassFlowKilogramsPerSecond); + } + } + if(!Numeric.Finite(h)||h<=0||remaining-h==remaining||!AdvancePhaseRelaxation(s,h/2))return false; + if(_model.HasRelaxingFuelBoundaries&&_compressibleNozzles is not null&&!_compressibleNozzles.Advance(s.CompressibleNozzles!,state,s.Temperature,s.X,s.Inputs,h/2))return false; + if(_fuelDucts is not null&&!_fuelDucts.Advance(state,s.Temperature,h))return false; + if(_model.HasRelaxingFuelBoundaries&&_compressibleNozzles is not null&&!_compressibleNozzles.Advance(s.CompressibleNozzles!,state,s.Temperature,s.X,s.Inputs,h/2,reverse:true))return false; + if(!AdvancePhaseRelaxation(s,h/2))return false; + remaining=h==remaining?0:remaining-h; + } + return true; + } + private bool AdvancePhaseRelaxation(State s,double seconds) + { + var state=s.CompressibleFuel!; + for(int i=0;i<_model.CompressibleFuels.Length;++i) + { + var f=_model.CompressibleFuels[i];if(f.Relaxation is not {} law)continue; + double mass=state.Mass[i],velocity=state.Momentum[i]/mass,energy=state.Energy[i]/mass-.5*velocity*velocity; + if(!law.Relax(mass/_model.CompressibleVolume(state,i),energy,state.VaporMass![i]/mass,seconds,out var result))return false; + double change=mass*result.VaporMassFractionChange; + Numeric.Accumulate(change,ref state.VaporMass[i],ref state.VaporCorrection![i]);state.PhaseTick![i]+=change; + Numeric.Accumulate(mass*result.SpecificEntropyChangeJoulesPerKilogramKelvin,ref state.PhaseHistory![i,2],ref state.PhaseCorrection![i,2]); + } + return state.Finite(); + } +} diff --git a/src/Power.Core/RelaxingFuel.cs b/src/Power.Core/RelaxingFuel.cs new file mode 100644 index 0000000..8e39f4b --- /dev/null +++ b/src/Power.Core/RelaxingFuel.cs @@ -0,0 +1,91 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +namespace Power.Core; + +public readonly record struct RelaxingFuelPoint(CompressibleFuelPoint Fluid,double ChemicalAffinityJoulesPerKilogram); +public readonly record struct FuelPhaseRelaxation(RelaxingFuelPoint Fluid,double VaporMassFractionChange,double SpecificEntropyChangeJoulesPerKilogramKelvin,double EquilibriumVaporMassFraction); + +/// Mechanical/thermal equilibrium at prescribed phase quality, with chemical relaxation at fixed density and energy. +public sealed partial class RelaxingFuel +{ + public CompressibleFuel Equilibrium {get;} + public ulong RelaxationTimeNanoseconds {get;} + public RelaxingFuel(CompressibleFuel equilibrium,ulong relaxationTimeNanoseconds) + { + Equilibrium=equilibrium??throw new ArgumentNullException(nameof(equilibrium)); + if(relaxationTimeNanoseconds is 0 or >3_600_000_000_000)throw new ArgumentException("Declare a phase relaxation time from 1 ns through one hour."); + RelaxationTimeNanoseconds=relaxationTimeNanoseconds; + } + private double Cold(double p) + { + double k=Equilibrium.LiquidBulkModulusPascals,rho=Equilibrium.ReferenceLiquidDensityKilogramsPerCubicMeter,y=p/k,value; + if(Math.Abs(y)<1e-3){value=0;double power=y*y;for(int n=2;n<=9;++n){value+=(n%2==0?1:-1)*(n-1d)/n*power;power*=y;}} + else value=Numeric.Log1p(y)-y/(1+y); + return k/rho*value; + } + public bool Evaluate(double density,double temperature,double vaporMassFraction,out RelaxingFuelPoint point) + { + point=default;var law=Equilibrium;var material=law.Material;var c=material.Caloric; + if(!GearReference.Finite(density,temperature,vaporMassFraction,0)||density<=0||temperaturematerial.MaximumTemperatureKelvin||vaporMassFraction<0||vaporMassFraction>1)return false; + double x=vaporMassFraction,k=law.LiquidBulkModulusPascals,rho0=law.ReferenceLiquidDensityKilogramsPerCubicMeter,r=material.GasConstantJoulesPerKilogramKelvin; + double v=1/density,p,cl=c.LiquidSpecificHeatJoulesPerKilogramKelvin,cv=c.VaporSpecificHeatJoulesPerKilogramKelvin; + if(x==0)p=k*(density/rho0-1); + else if(x==1)p=density*r*temperature; + else + { + double gasPressure=x*r*temperature*density,occupancy=(1-x)*density/rho0,a=gasPressure/k,b=1-occupancy-a; + if(!Numeric.Finite(a)||!Numeric.Finite(b)||gasPressure>law.MaximumPressurePascals)return false; + double other=2*Math.Sqrt(a),scale=Math.Max(Math.Abs(b),other),root=scale*Math.Sqrt((b/scale)*(b/scale)+(other/scale)*(other/scale)); + p=b>=0?2*gasPressure/(b+root):.5*k*(root-b); + } + if(!Numeric.Finite(p)||p<=0||p>law.MaximumPressurePascals)return false; + double vl=1/rho0/(1+p/k),vv=r*temperature/p,liquidDerivative=(1-x)*vl/(k+p),gasDerivative=x*r*temperature/(p*p),denominator=liquidDerivative+gasDerivative; + double dpT=x==0?0:x*r/p/denominator,capacity=(1-x)*cl+x*cv+(1-x)*p*vl/(k+p)*dpT; + double cp=(1-x)*cl+x*(cv+r),alpha=x*r/cp,soundSquared=v*v/(liquidDerivative+(1-alpha)*gasDerivative); + double logT=Numeric.Log1p((temperature-c.SaturationTemperatureKelvin)/c.SaturationTemperatureKelvin); + double sl=cl*logT,sv=(cv+r)*logT-r*Math.Log(p/material.ReferencePressurePascals)+c.LatentInternalEnergyJoulesPerKilogram/c.SaturationTemperatureKelvin+r; + double ul=cl*temperature+c.LiquidEnergyOffsetJoulesPerKilogram+Cold(p),uv=cv*temperature; + if(!material.TrySaturationPressure(temperature,out double negligible))return false; + double compression=k/rho0*Numeric.Log1p(p/k),affinity=compression-r*temperature*(Math.Log(p)-Math.Log(negligible)); + double energy=(1-x)*ul+x*uv,entropy=(1-x)*sl+x*sv,sound=Math.Sqrt(soundSquared); + if(!GearReference.Finite(energy,entropy,capacity,sound)||!Numeric.Finite(affinity)||capacity<=0||sound<=0)return false; + point=new(new(density,temperature,p,energy,entropy,capacity,sound,x,x==0?FuelVolumePhase.Liquid:x==1?FuelVolumePhase.Vapor:FuelVolumePhase.LiquidVapor),affinity);return true; + } + public bool Flash(double density,double specificInternalEnergy,double vaporMassFraction,out RelaxingFuelPoint point) + { + point=default;if(!Numeric.Finite(specificInternalEnergy))return false; + double lo=Equilibrium.Material.MinimumTemperatureKelvin,hi=Equilibrium.Material.MaximumTemperatureKelvin; + if(!Numeric.Finite(density)||density<=0||!Numeric.Finite(vaporMassFraction)||vaporMassFraction<0||vaporMassFraction>1)return false; + if(vaporMassFraction>0) + { + double p=Equilibrium.MaximumPressurePascals,vl=1/Equilibrium.ReferenceLiquidDensityKilogramsPerCubicMeter/(1+p/Equilibrium.LiquidBulkModulusPascals); + double pressureTemperature=p/(vaporMassFraction*Equilibrium.Material.GasConstantJoulesPerKilogramKelvin)*(1/density-(1-vaporMassFraction)*vl); + if(pressureTemperatureupper.Fluid.SpecificInternalEnergyJoulesPerKilogram+rounding)return false; + if(Math.Abs(specificInternalEnergy-lower.Fluid.SpecificInternalEnergyJoulesPerKilogram)<=rounding){point=lower with{Fluid=lower.Fluid with{SpecificInternalEnergyJoulesPerKilogram=specificInternalEnergy}};return true;} + if(Math.Abs(specificInternalEnergy-upper.Fluid.SpecificInternalEnergyJoulesPerKilogram)<=rounding){point=upper with{Fluid=upper.Fluid with{SpecificInternalEnergyJoulesPerKilogram=specificInternalEnergy}};return true;} + double t=(lo+hi)/2; + for(int i=0;i<80;++i) + { + if(!Evaluate(density,t,vaporMassFraction,out var p))return false; + double error=p.Fluid.SpecificInternalEnergyJoulesPerKilogram-specificInternalEnergy,correction=error/p.Fluid.IsochoricHeatCapacityJoulesPerKilogramKelvin; + if(Math.Abs(correction)<=32*GearReference.Epsilon*Math.Max(1,t)){point=p with{Fluid=p.Fluid with{SpecificInternalEnergyJoulesPerKilogram=specificInternalEnergy}};return true;} + if(error>0)hi=t;else lo=t;double next=t-correction;t=next>lo&&next.5)return Math.Exp(value)-1; + double term=value,sum=value;for(int n=2;n<=20;++n){term*=value/n;sum+=term;}return sum; + } + /// Reversible closed volume work at fixed vapor mass quality. Chemical relaxation is a separate source. + public FuelVolumeStatus AdiabaticVolume(double massKilograms,double internalEnergyJoules, + double oldVolumeCubicMeters,double newVolumeCubicMeters,double vaporMassFraction,out CompressibleFuelWorkTransfer transfer) + { + transfer=default; + if(!GearReference.Finite(massKilograms,internalEnergyJoules,oldVolumeCubicMeters,newVolumeCubicMeters)||massKilograms<=0||oldVolumeCubicMeters<=0||newVolumeCubicMeters<=0||!Numeric.Finite(vaporMassFraction)||vaporMassFraction<0||vaporMassFraction>1)return FuelVolumeStatus.InvalidInput; + if(!Flash(massKilograms/oldVolumeCubicMeters,internalEnergyJoules/massKilograms,vaporMassFraction,out var start))return FuelVolumeStatus.EnergyOutOfRange; + var initial=start.Fluid;double delta=newVolumeCubicMeters-oldVolumeCubicMeters; + if(delta==0){transfer=new(initial,0,initial.PressurePascals,0);return FuelVolumeStatus.Success;} + var law=Equilibrium;var material=law.Material;var c=material.Caloric; + double x=vaporMassFraction,k=law.LiquidBulkModulusPascals,rho0=law.ReferenceLiquidDensityKilogramsPerCubicMeter,r=material.GasConstantJoulesPerKilogramKelvin; + double ratio=delta/oldVolumeCubicMeters,work; + if(x==0) + { + double remainder=ratio-Numeric.Log1p(ratio); + if(Math.Abs(ratio)<1e-3){remainder=0;double power=ratio*ratio;for(int n=2;n<=10;++n){remainder+=(n%2==0?1:-1)*power/n;power*=ratio;}} + work=-initial.PressurePascals*delta+massKilograms*k/rho0*remainder; + } + else if(x==1) + work=massKilograms*c.VaporSpecificHeatJoulesPerKilogramKelvin*initial.TemperatureKelvin*WorkExpm1(-r/c.VaporSpecificHeatJoulesPerKilogramKelvin*Numeric.Log1p(ratio)); + else + { + double cp=(1-x)*c.LiquidSpecificHeatJoulesPerKilogramKelvin+x*(c.VaporSpecificHeatJoulesPerKilogramKelvin+r),alpha=x*r/cp; + if(alpha<=0)return FuelVolumeStatus.NoConvergence; + double p0=initial.PressurePascals,t0=initial.TemperatureKelvin,logP0=Math.Log(p0),target=delta/massKilograms; + double liquid=(1-x)/rho0/(1+p0/k),vapor=x*r*t0/p0; + double lo=Math.Max(Math.Log(double.Epsilon)-logP0,Math.Log(material.MinimumTemperatureKelvin/t0)/alpha); + double hi=Math.Min(Math.Log(law.MaximumPressurePascals)-logP0,Math.Log(material.MaximumTemperatureKelvin/t0)/alpha); + double VolumeChange(double logRatio) + { + double p=p0*Math.Exp(logRatio); + return -liquid*p0*WorkExpm1(logRatio)/(k+p)+vapor*WorkExpm1((alpha-1)*logRatio); + } + if(lo>=hi||VolumeChange(lo)target)return FuelVolumeStatus.EntropyOutOfRange; + double slope0=-liquid*p0/(k+p0)+(alpha-1)*vapor; + double lr=Math.Max(lo,Math.Min(hi,target/slope0));bool converged=false; + for(int iteration=0;iteration<96;++iteration) + { + double error=VolumeChange(lr)-target; + if(Math.Abs(error)<=32*GearReference.Epsilon*Math.Abs(target)){converged=true;break;} + if(error>0)lo=lr;else hi=lr; + double p=p0*Math.Exp(lr),slope=-(1-x)/rho0/(1+p/k)*p/(k+p)+(alpha-1)*vapor*Math.Exp((alpha-1)*lr); + double next=lr-error/slope;lr=next>lo&&nexttolerance)return FuelVolumeStatus.NoConvergence; + transfer=new(end.Fluid,work,mean,residual);return FuelVolumeStatus.Success; + } +} diff --git a/src/Power.Core/Simulation.cs b/src/Power.Core/Simulation.cs index 5929677..b03b882 100644 --- a/src/Power.Core/Simulation.cs +++ b/src/Power.Core/Simulation.cs @@ -5,18 +5,29 @@ namespace Power.Core; /// Independent state. Successful stepping and snapshot reads allocate no managed memory. -public sealed class Simulation +public sealed partial class Simulation { - private sealed class State(int dynamics, int thermal, int components, int gases, MixtureState? mixture, int clutches, int gears, int converters, int hydraulicNodes, int hydraulicComponents, int pumps, int controllers, int linearSprings, int injectors, int films) + private sealed class State(int dynamics, int thermal, int components, int gases, MixtureState? mixture, int clutches, int gears, int converters, int hydraulicNodes, int hydraulicComponents, int pumps, int controllers, int linearSprings, int injectors, int films, CompiledModel? equilibriumModel) { internal readonly double[] X = new double[dynamics], Temperature = new double[thermal], Inputs = new double[components]; internal readonly double[] Mass = new double[gases], Energy = new double[gases]; internal readonly MixtureState? Mixture = mixture; - internal readonly FuelFilmState? Films=films==0?null:new(films); + internal readonly FuelFilmState? Films=films==0?null:new(films,equilibriumModel); internal LiquidInjectorState? LiquidInjectors; + internal LiquidFeedState? LiquidFeeds; + internal LiquidTankState? LiquidTanks; + internal LiquidReturnState? LiquidReturns; + internal EquilibriumFuelState? Fuel; + internal FuelChamberState? FuelChambers; + internal FuelChamberState? CompressibleChambers; + internal CompressibleNozzleState? CompressibleNozzles; + internal FuelDischargeState? FuelDischarges; + internal FuelPipeState? FuelPipes; + internal CompressibleFuelState? CompressibleFuel; internal SolenoidState? Solenoids; internal NeedleDriverState? NeedleDrivers; internal DctControllerState? DctControllers; + internal AtControllerState? AtControllers; internal double[]? PositionCorrection; internal readonly FuelInjectorState? Injectors = injectors == 0 ? null : new(injectors); internal readonly ClutchState? Clutches = clutches == 0 ? null : new(clutches); @@ -35,8 +46,15 @@ internal void CopyFrom(State other) Array.Copy(other.Mass, Mass, Mass.Length); Array.Copy(other.Energy, Energy, Energy.Length); Mixture?.CopyFrom(other.Mixture!); Injectors?.CopyFrom(other.Injectors!);Films?.CopyFrom(other.Films!); LiquidInjectors?.CopyFrom(other.LiquidInjectors!); + LiquidFeeds?.CopyFrom(other.LiquidFeeds!); LiquidTanks?.CopyFrom(other.LiquidTanks!); LiquidReturns?.CopyFrom(other.LiquidReturns!); + Fuel?.CopyFrom(other.Fuel!); FuelChambers?.CopyFrom(other.FuelChambers!); FuelDischarges?.CopyFrom(other.FuelDischarges!); + FuelPipes?.CopyFrom(other.FuelPipes!); + CompressibleFuel?.CopyFrom(other.CompressibleFuel!); + CompressibleChambers?.CopyFrom(other.CompressibleChambers!); + CompressibleNozzles?.CopyFrom(other.CompressibleNozzles!); Solenoids?.CopyFrom(other.Solenoids!); NeedleDrivers?.CopyFrom(other.NeedleDrivers!); DctControllers?.CopyFrom(other.DctControllers!); + AtControllers?.CopyFrom(other.AtControllers!); if (PositionCorrection is not null) Array.Copy(other.PositionCorrection!, PositionCorrection, PositionCorrection.Length); Clutches?.CopyFrom(other.Clutches!); Converters?.CopyFrom(other.Converters!); Hydraulic?.CopyFrom(other.Hydraulic!); @@ -53,6 +71,7 @@ internal void CopyFrom(State other) } private readonly CompiledModel _model; + private readonly double[] _returnRailMassBefore; private State _state, _scratch; private readonly double[] _mid, _temperature, _inputCandidate; private readonly bool[] _inputSeen; @@ -62,6 +81,11 @@ internal void CopyFrom(State other) private readonly FuelFilmSolver? _films; private readonly LiquidFuelInjectorSolver? _liquidInjectors; private readonly HydraulicSolver? _hydraulics; + private readonly EquilibriumFuelSolver? _fuel; + private readonly FuelDischargeSolver? _discharges; + private readonly FuelPipeSolver? _fuelPipes; + private readonly EquilibriumFuelDuctSolver? _fuelDucts; + private readonly CompressibleNozzleSolver? _compressibleNozzles; private readonly ElectricalDynamics? _electrical; private readonly CombustionSolver? _combustion; private readonly ClutchSolver? _clutches; @@ -75,20 +99,37 @@ internal void CopyFrom(State other) internal Simulation(CompiledModel model) { _model = model; + _returnRailMassBefore = model.HasLiquidReturns ? new double[model.LiquidFeeds.Length] : []; if (model.HasBatteries) _electrical = new(model); if (model.Gears is not null) _gears = new(model.Gears); if (model.HasHydraulics) _hydraulics = new(model); + if (model.HasEquilibriumFuelNetwork) _fuel = new(model); + if (model.HasFuelPipes) _fuelPipes = new(model); + if (model.FuelDucts.Length!=0) _fuelDucts = new(model); + if (model.HasCompressibleFuelNozzles) _compressibleNozzles = new(model); if (model.HasConverters || model.HasCoupledHydraulics || model.HasGasPistons || model.HasSolenoids || model.HasTravelStops) { _converters = new(model, _hydraulics); _mechanicalSolver = _converters; } else if (model.CylinderCoupling is not null) _mechanicalSolver = new CylinderSolver(model); if (model.Gas is not null) _gasSolver = new(model); if(model.HasFuelFilms)_films=new(model); + if (model.HasFuelDischarge) _discharges = new(model, _films!); if (model.HasLiquidFuelInjectors) _liquidInjectors = new(model, _films!); if (model.Burners.Any(b => b is not null)) _combustion = new(model); State CreateState() => new(model.DynamicCount, model.ThermalCount, model.ComponentCount, model.GasCount, - model.HasPremixedGas ? new(model) : null, model.ClutchComponents.Length, model.GearComponents.Length, model.ConverterComponents.Length, model.HydraulicCount, model.HydraulicComponents.Length, model.PumpComponents.Length, model.PressureControllers.Length, model.LinearSpringCount, model.FuelInjectors.Length, model.FuelFilms.Length) + model.HasPremixedGas ? new(model) : null, model.ClutchComponents.Length, model.GearComponents.Length, model.ConverterComponents.Length, model.HydraulicCount, model.HydraulicComponents.Length, model.PumpComponents.Length, model.PressureControllers.Length, model.LinearSpringCount, model.FuelInjectors.Length, model.FuelFilms.Length, model.HasEquilibriumFuelFilms ? model : null) { Solenoids = model.HasSolenoids ? new(model.Solenoids.Length) : null, NeedleDrivers = model.NeedleDrivers.Length != 0 ? new(model.NeedleDrivers.Length, model.HasClosurePrediction) : null, DctControllers = model.DctControllers.Length != 0 ? new(model.DctControllers.Length) : null, - PositionCorrection = model.DctControllers.Length != 0 || model.Components.Any(c => c.Kind is ComponentKind.DoublePinionPlanetaryGear or ComponentKind.CarrierGear) + AtControllers = model.AtControllers.Length != 0 ? new(model.AtControllers.Length) : null, + FuelDischarges = model.HasFuelDischarge ? new(model.FuelDischarges.Length) : null, + FuelPipes = model.HasFuelPipes ? new(model.FuelPipes.Length) : null, + CompressibleFuel = model.CompressibleFuels.Length != 0 ? new(model.CompressibleFuels.Length, model.FuelDucts.Length, model.HasCompressibleFuelChambers,model.HasRelaxingFuel) : null, + CompressibleNozzles = model.HasCompressibleFuelNozzles ? new(model.CompressibleNozzles.Length,model.HasEquilibriumFuelNozzles,model.RelaxingNozzleCount!=0) : null, + CompressibleChambers = model.HasCompressibleFuelChambers ? new(model.CompressibleChambers.Length) : null, + FuelChambers = model.HasFuelChambers ? new(model.FuelChambers.Length) : null, + Fuel = model.HasEquilibriumFuelNetwork ? new(model.FuelVolumes.Length, model.FuelLinks.Length, model.HasFuelChambers) : null, + LiquidFeeds = model.HasLiquidFeeds ? new(model.LiquidFeeds.Length,model.LiquidFuelInjectors.Length) : null, + LiquidTanks = model.HasLiquidTanks ? new(model.LiquidTanks.Length, model.HasTankHeadspaces, model.HasEquilibriumTanks ? model : null) : null, + LiquidReturns = model.HasLiquidReturns ? new(model.LiquidReturns.Length) : null, + PositionCorrection = model.HasFuelChambers || model.HasCompressibleFuelChambers || model.DctControllers.Length != 0 || model.Components.Any(c => c.Kind is ComponentKind.DoublePinionPlanetaryGear or ComponentKind.CarrierGear) ? new double[model.DynamicCount] : null }; _state = CreateState(); _scratch = CreateState(); if (model.HasLiquidFuelInjectors) @@ -110,6 +151,19 @@ internal Simulation(CompiledModel model) _intervalAccepted.LiquidInjectors = new(model.LiquidFuelInjectors.Length); } } + for (int i = 0; i < model.FuelVolumes.Length; ++i) + { + _state.Fuel!.Mass[i] = model.FuelVolumes[i].Initial.MassKilograms; _state.Fuel.Energy[i] = model.FuelVolumes[i].Initial.StoredEnergyJoules; + if (_state.Fuel.ReferenceVolume is not null) _state.Fuel.ReferenceVolume[i] = model.FuelVolumes[i].Law.ReferenceVolumeCubicMeters; + } + for (int i = 0; i < model.FuelPipes.Length; ++i) + { _state.FuelPipes!.Flow[i] = model.FuelPipes[i].InitialFlow; _state.FuelPipes.Energy[i] = model.FuelPipes[i].InitialEnergy; } + for(int i=0;i=0&&mass>=s.LiquidTanks!.Mass[feed.Tank]; + if(exhausted)mass=s.LiquidTanks!.Mass[feed.Tank]; + var after=_model.RailSample(feed.Injector,s.LiquidInjectors!,s.Hydraulic);double beforeMass=after.MassKilograms-mass; + if(beforeMass<=0||!Numeric.Finite(mass))return false; + double specific=mass==0?0:mass<0?s.LiquidFeeds.RailEnergy[feed.Injector]/beforeMass:feed.Tank<0?feed.SourceThermalEnergy:s.LiquidTanks!.Energy[feed.Tank]/s.LiquidTanks.Mass[feed.Tank]; + double caloric=exhausted?s.LiquidTanks!.Energy[feed.Tank]:mass*specific,chemical=mass*feed.HeatingValue; + Numeric.Accumulate(mass,ref s.LiquidFeeds.Mass[i],ref s.LiquidFeeds.MassCorrection[i]); + Numeric.Accumulate(caloric,ref s.LiquidFeeds.Thermal[i],ref s.LiquidFeeds.ThermalCorrection[i]); + Numeric.Accumulate(chemical,ref s.LiquidFeeds.Chemical[i],ref s.LiquidFeeds.ChemicalCorrection[i]); + Numeric.Accumulate(caloric,ref s.LiquidFeeds.RailEnergy[feed.Injector],ref s.LiquidFeeds.RailCorrection[feed.Injector]); + if(feed.Tank<0) + { + intake+=mass;enthalpy+=caloric+chemical; + Numeric.Accumulate(mass,ref s.Mixture!.FuelIn,ref s.Mixture.FuelInCorrection); + Numeric.Accumulate(chemical,ref s.Mixture!.ChemicalIn,ref s.Mixture.ChemicalInCorrection); + } + else if(exhausted) + { + s.LiquidTanks!.Mass[feed.Tank]=s.LiquidTanks.MassCorrection[feed.Tank]=0; + s.LiquidTanks.Energy[feed.Tank]=s.LiquidTanks.EnergyCorrection[feed.Tank]=0; + } + else + { + Numeric.Accumulate(-mass,ref s.LiquidTanks!.Mass[feed.Tank],ref s.LiquidTanks.MassCorrection[feed.Tank]); + Numeric.Accumulate(-caloric,ref s.LiquidTanks.Energy[feed.Tank],ref s.LiquidTanks.EnergyCorrection[feed.Tank]); + } + } + if (_model.HasTankHeadspaces && !_hydraulics!.CommitHeadspaces(s.LiquidTanks!, s.Energy)) return false; + if (_model.HasEquilibriumTanks && !EquilibrateTanks(s)) return false; + if (_model.HasEquilibriumFuelFilms && !LiquidPhasesValid(s)) return false; if (_gears is not null) { _mechanicalSolver?.AddGearReactions(_gears.Torque); @@ -478,14 +605,14 @@ private bool Interval(State s, double dt, CancellationToken cancellation, out bo if (Math.Abs(2 * (_mid[injector.Meter.Crank] - s.X[injector.Meter.Crank])) > injector.Meter.Profile.MaximumTravelRadians) return false; for (int i = 0; i < _model.Valves.Length; ++i) if (s.Inputs[i] != 0 && _model.Valves[i] is { } valve && !valve.Resolved(s.X, _mid, dt)) return false; - if (_gasSolver is not null && !splitGas && !_gasSolver.Advance(s.Mass, s.Energy, s.Temperature, s.Inputs, s.X, dt, s.Mixture, s.Injectors)) return false; + if (_gasSolver is not null && !splitGas && !_gasSolver.Advance(s.Mass, s.Energy, s.Temperature, s.Inputs, s.X, dt, s.Mixture, s.Injectors, s.LiquidTanks, s.Films)) return false; foreach (var n in _model.Nodes) if (n.Domain == Domain.Thermal) _temperature[n.Index] = n.Storage * s.Temperature[n.Index] + _model.AmbientForce[n.Index] * (dt / _model.Dt); if (_gasSolver is not null) { for (int w = 0; w < _temperature.Length; ++w) _temperature[w] += _gasSolver.WallHeat[w]; - intake = _gasSolver.ReservoirMass; enthalpy = _gasSolver.ReservoirEnthalpy; + intake += _gasSolver.ReservoirMass; enthalpy += _gasSolver.ReservoirEnthalpy; } if (_hydraulics is not null) { @@ -531,6 +658,26 @@ private bool Interval(State s, double dt, CancellationToken cancellation, out bo loss = dt * s.Inputs[i] / c.P0 * battery.TerminalVoltage * battery.TerminalVoltage; } else if (c.Kind is ComponentKind.TorqueSource or ComponentKind.ForceSource) work += dt * s.Inputs[i] * _mid[_model.Nodes[c.A].Index + 1]; + else if (c.Kind == ComponentKind.CompressibleFuelChamber) + { + int slot = _model.CompressibleChamberByComponent[i]; var chamber = _model.CompressibleChambers[slot]; + double angle = s.X[chamber.Crank], delta = (2 * _mid[chamber.Crank] - angle) - angle; + if (!_model.CompressibleChamberWork(slot, s.CompressibleFuel!, angle, delta, out var change, out double pressureTorque, out double volume)) return false; + Numeric.Accumulate(change.EnergyChangeJoules, ref s.CompressibleFuel!.Energy[chamber.Fuel], ref s.CompressibleFuel.EnergyCorrection[chamber.Fuel]); + s.CompressibleFuel.Volume![chamber.Fuel] = volume; + s.CompressibleChambers!.Torque[slot] += dt * pressureTorque; s.CompressibleChambers.Power[slot] += change.EnergyChangeJoules; + Numeric.Accumulate(change.EnergyChangeJoules, ref s.CompressibleChambers.Work[slot], ref s.CompressibleChambers.Correction[slot]); + } + else if (c.Kind == ComponentKind.FuelChamber) + { + int slot = _model.FuelChamberByComponent[i]; var chamber = _model.FuelChambers[slot]; + double angle = s.X[chamber.Crank], delta = (2 * _mid[chamber.Crank] - angle) - angle; + if (!_model.FuelChamberWork(slot, s.Fuel!, angle, delta, out var chamberWork, out double fuelTorque, out double nextReference)) return false; + Numeric.Accumulate(chamberWork.EnergyChangeJoules, ref s.Fuel!.Energy[chamber.Fuel], ref s.Fuel.EnergyCorrection[chamber.Fuel]); + s.Fuel.ReferenceVolume![chamber.Fuel] = nextReference; + s.FuelChambers!.Torque[slot] += dt * fuelTorque; s.FuelChambers.Power[slot] += chamberWork.EnergyChangeJoules; + Numeric.Accumulate(chamberWork.EnergyChangeJoules, ref s.FuelChambers.Work[slot], ref s.FuelChambers.Correction[slot]); + } else if (c.Kind == ComponentKind.SealedCylinder) { int angle = _model.Nodes[c.A].Index; @@ -548,7 +695,13 @@ private bool Interval(State s, double dt, CancellationToken cancellation, out bo int angle = _model.Nodes[c.A].Index, gas = _model.Nodes[c.B].Index; double delta = (2 * _mid[angle] - s.X[angle]) - s.X[angle]; var cylinder = _model.GasCylinders[i]!; - s.Energy[gas] += cylinder.EnergyChange(s.X[angle], delta, s.Energy[gas], _model.Gas!.Gases[gas].Gamma); + int finiteFilm = _model.FiniteFilmByGas[gas]; + if (finiteFilm >= 0) + { + if (!_model.FiniteReceiverWork(i, s.Films!, s.Mixture!, s.Energy, s.X[angle], delta, 0, out var receiverWork, out _)) return false; + CommitFiniteReceiver(s, finiteFilm, receiverWork.State); + } + else s.Energy[gas] += cylinder.EnergyChange(s.X[angle], delta, s.Energy[gas], _model.Gas!.Gases[gas].Gamma); if (!(s.Energy[gas] > 0) || !Numeric.Finite(s.Energy[gas])) return false; work += cylinder.BackPressureWork(s.X[angle], delta); } @@ -577,18 +730,21 @@ private bool Interval(State s, double dt, CancellationToken cancellation, out bo } if (splitGas) { - if (!_gasSolver!.Advance(s.Mass, s.Energy, s.Temperature, s.Inputs, s.X, dt / 2, s.Mixture, s.Injectors)) return false; + if (!_gasSolver!.Advance(s.Mass, s.Energy, s.Temperature, s.Inputs, s.X, dt / 2, s.Mixture, s.Injectors, s.LiquidTanks, s.Films)) return false; for (int w = 0; w < _temperature.Length; ++w) _temperature[w] += _gasSolver.WallHeat[w]; intake += _gasSolver.ReservoirMass; enthalpy += _gasSolver.ReservoirEnthalpy; } + if (_model.HasEquilibriumTanks && !EquilibrateTanks(s)) return false; // Reverse the first half's operators, including films that share a finite wall. - if (_films is not null && !_films.Advance(s.Films!, s.Mass, s.Energy, s.Mixture!, dt / 2, reverse: true)) return false; + if (_films is not null && !_films.Advance(s.Films!, s.Mass, s.Energy, s.Mixture!, dt / 2, s.X, s.LiquidTanks, reverse: true)) return false; + if (_discharges is not null && !_discharges.Advance(s.FuelDischarges!, s.Fuel!, s.Films!, s.Mixture!, s.Mass, s.Energy, s.X, s.Inputs, s.LiquidTanks, dt / 2, reverse: true)) return false; if (_liquidInjectors is not null) { - if (!_liquidInjectors.Advance(s.LiquidInjectors!, s.Films!, s.X, s.Energy, s.Inputs, dt / 2, reverse: true)) return false; + if (!_liquidInjectors.Advance(s.LiquidInjectors!, s.Films!, s.X, s.Energy, s.Inputs, dt / 2, reverse: true,hydraulics:s.Hydraulic,feedState:s.LiquidFeeds)) return false; // The negligible-volume receiver exports the displacement pressure work. work -= _liquidInjectors.ReceiverWork; } + if (_model.HasEquilibriumFuelFilms && !_films!.Advance(s.Films!, s.Mass, s.Energy, s.Mixture!, 0, s.X, s.LiquidTanks, reverse: true, equilibriumOnly: true)) return false; if(_films is not null)for(int i=0;i<_temperature.Length;++i)_temperature[i]+=_films.WallHeat[i]; if (!(_clutches?.Thermal ?? _model.Thermal).Solve(_temperature)) return false; foreach (var c in _model.Components) @@ -599,6 +755,10 @@ private bool Interval(State s, double dt, CancellationToken cancellation, out bo if (!(_temperature[i] > 0)) return false; s.Temperature[i] = _temperature[i]; } + if (_fuelPipes is not null && !_fuelPipes.Advance(s.FuelPipes!, s.Fuel!, s.Temperature, dt / 2, reverse: true)) return false; + if (_fuel is not null && !_fuel.Advance(s.Fuel!, s.Temperature, s.Inputs, _model.HasFuelChambers || _model.HasFuelPipes ? dt / 2 : dt)) return false; + if((_fuelDucts is not null||_model.HasRelaxingFuel)&&!AdvanceDuctInterval(s,_model.HasRelaxingFuelBoundaries||_model.HasCompressibleFuelChambers&&_fuelDucts is not null?dt/2:dt))return false; + if (!_model.HasRelaxingFuelBoundaries && _compressibleNozzles is not null && !_compressibleNozzles.Advance(s.CompressibleNozzles!,s.CompressibleFuel!,s.Temperature,s.X,s.Inputs,dt/2,reverse:true)) return false; Numeric.Accumulate(work, ref s.Work, ref s.WorkCorrection); Numeric.Accumulate(heat, ref s.Heat, ref s.HeatCorrection); if (_gasSolver is not null) @@ -631,13 +791,18 @@ private double Energy(State s) else if (n.Domain == Domain.Hydraulic) energy += .5 * n.Storage * s.Hydraulic!.Pressure[n.Index] * s.Hydraulic.Pressure[n.Index]; else if (n.Domain == Domain.Thermal) energy += n.Storage * (s.Temperature[n.Index] - n.Initial); } + for (int i = 0; i < _model.FuelVolumes.Length; ++i) energy += s.Fuel!.Energy[i] + s.Fuel.Mass[i] * _model.FuelVolumes[i].HeatingValue; + for(int i=0;i<_model.CompressibleFuels.Length;++i)energy+=s.CompressibleFuel!.Energy[i]+s.CompressibleFuel.Mass[i]*_model.CompressibleFuels[i].HeatingValue; + for (int i = 0; i < _model.FuelPipes.Length; ++i) + { var pipe = _model.FuelPipes[i]; energy += s.FuelPipes!.Energy[i] + .5 * pipe.Inertia * s.FuelPipes.Flow[i] * s.FuelPipes.Flow[i] + pipe.Mass * _model.FuelVolumes[pipe.A].HeatingValue; } + for(int i=0;i<_model.LiquidTanks.Length;++i)energy+=s.LiquidTanks!.Energy[i]+s.LiquidTanks.Mass[i]*_model.LiquidTanks[i].HeatingValue; for(int i=0;i<_model.FuelFilms.Length;++i)energy+=s.Films!.Energy[i]+s.Films.Mass[i]*_model.FuelFilms[i].HeatingValue; for (int i = 0; i < _model.LiquidFuelInjectors.Length; ++i) { var injector = _model.LiquidFuelInjectors[i]; - var rail = injector.Rail.StateAfterDelivery(s.LiquidInjectors!.Quota.Total[i]); - energy += rail.MassKilograms * (injector.SpecificThermalEnergy + injector.HeatingValue) - + injector.Rail.StoredPressureEnergy(rail.PressurePascals); + var rail = _model.RailSample(i,s.LiquidInjectors!,s.Hydraulic); + energy += injector.PressureNode<0 ? rail.MassKilograms*(injector.SpecificThermalEnergy+injector.HeatingValue)+injector.Rail.StoredPressureEnergy(rail.PressurePascals) + : s.LiquidFeeds!.RailEnergy[i]+rail.MassKilograms*injector.HeatingValue; } foreach (var battery in _model.Batteries) { @@ -670,7 +835,7 @@ private double Energy(State s) } private double GasPressure(State s, int gas) => - (_model.Gas!.Gases[gas].Gamma - 1) * s.Energy[gas] / _model.Gas.VolumeAt(gas, s.X); + (_model.Gas!.Gases[gas].Gamma - 1) * s.Energy[gas] / _model.Gas.VolumeAt(gas, s.X, s.LiquidTanks, s.Films); private double GasTemperature(State s, int gas) => s.Energy[gas] / (s.Mass[gas] * _model.Gas!.Gases[gas].IsochoricHeatCapacityJoulePerKilogramKelvin); @@ -688,6 +853,56 @@ private double HydraulicVolumeChange(State s) private bool ObservablesFinite(State s) { + if (_model.HasFiniteFuelReceivers) + foreach (var film in _model.FuelFilms) + if (film.FiniteVolume is { } finite) + { + double cavity = _model.Gas!.CavityVolumeAt(film.Gas, s.X, s.LiquidTanks), gasVolume = cavity - s.Films!.Mass[_model.FilmByComponent[film.Component]] / finite.DensityKilogramsPerCubicMeter; + double total = s.Films.Mass[_model.FilmByComponent[film.Component]] + s.Mass[film.Gas]; + if (!Numeric.Finite(gasVolume) || gasVolume <= 0 || total >= cavity * finite.DensityKilogramsPerCubicMeter * (1 - 64 * GearReference.Epsilon)) return false; + } + if (s.FuelDischarges is not null && !s.FuelDischarges.Finite()) return false; + if(s.CompressibleFuel is not null) + {if(!s.CompressibleFuel.Finite())return false;for(int i=0;i<_model.CompressibleFuels.Length;++i)if(!EquilibriumFuelDuctSolver.Point(_model,s.CompressibleFuel,i,out _))return false;} + if (s.FuelPipes is not null) + { + if (!s.FuelPipes.Finite()) return false; + for (int i = 0; i < _model.FuelPipes.Length; ++i) + { + var pipe = _model.FuelPipes[i]; + if (!EquilibriumFuelSolver.Point(_model.FuelVolumes[pipe.A], s.Fuel!, pipe.A, out var pa) || + !EquilibriumFuelSolver.Point(_model.FuelVolumes[pipe.B], s.Fuel!, pipe.B, out var pb) || + pa.Phase != FuelVolumePhase.Liquid || pb.Phase != FuelVolumePhase.Liquid || + !FuelPipeSolver.LiquidAt(_model.FuelVolumes[pipe.A].Law, FuelPipeSolver.Temperature(_model, pipe, s.FuelPipes.Energy[i]), Math.Min(pa.PressurePascals, pb.PressurePascals))) return false; + } + } + if (s.FuelChambers is not null && !s.FuelChambers.Finite()) return false; + if (s.CompressibleChambers is not null && !s.CompressibleChambers.Finite()) return false; + if (s.CompressibleNozzles is not null && !s.CompressibleNozzles.Finite()) return false; + if (s.Fuel is not null) + { + if (!s.Fuel.Finite()) return false; + for (int i = 0; i < _model.FuelVolumes.Length; ++i) + if (!EquilibriumFuelSolver.Point(_model.FuelVolumes[i], s.Fuel, i, out _)) return false; + } + + if (_model.HasEquilibriumFuelFilms && !LiquidPhasesValid(s)) return false; + if (s.AtControllers is not null && !s.AtControllers.Finite()) return false; + if(s.LiquidFeeds is not null && !s.LiquidFeeds.Finite())return false; + if(s.LiquidTanks is not null && !s.LiquidTanks.Finite())return false; + foreach (var headspace in _model.TankHeadspaces) + { + double volume = headspace.Geometry.GasVolumeCubicMeters(s.LiquidTanks!.Mass[headspace.Tank]); + if (!Numeric.Finite(volume) || volume <= 0 || volume > headspace.Geometry.CapacityCubicMeters) return false; + } + if(s.LiquidReturns is not null && !s.LiquidReturns.Finite())return false; + if(_model.HasLiquidReturns) + for(int i=0;i<_model.LiquidTanks.Length;++i) + { + var tank=_model.LiquidTanks[i];var film=_model.FuelFilms[_model.LiquidFuelInjectors[tank.Injector].Film];var law=film.Law; + double temperature=s.LiquidTanks!.Mass[i]==0?tank.InitialTemperature:law.Temperature(new(s.LiquidTanks.Mass[i],s.LiquidTanks.Energy[i])); + if(!film.LiquidTemperatureValid(temperature))return false; + } if (s.PositionCorrection is not null) foreach (double value in s.PositionCorrection) if (!Numeric.Finite(value)) return false; if (s.Solenoids is not null) { @@ -716,7 +931,7 @@ private bool ObservablesFinite(State s) if (!s.LiquidInjectors.Finite()) return false; for (int i = 0; i < _model.LiquidFuelInjectors.Length; ++i) { - var rail = _model.LiquidFuelInjectors[i].Rail.StateAfterDelivery(s.LiquidInjectors.Quota.Total[i]); + var rail = _model.RailSample(i,s.LiquidInjectors,s.Hydraulic); if (!Numeric.Finite(rail.MassKilograms) || rail.MassKilograms < 0 || !Numeric.Finite(rail.PressurePascals) || rail.PressurePascals < 0) return false; } } @@ -824,9 +1039,20 @@ private ulong Hash(State s) if (s.Injectors is not null) h = s.Injectors.Hash(h); if(s.Films is not null)h=s.Films.Hash(h); if (s.LiquidInjectors is not null) h = s.LiquidInjectors.Hash(h); + if(s.LiquidFeeds is not null)h=s.LiquidFeeds.Hash(h); + if(s.LiquidTanks is not null)h=s.LiquidTanks.Hash(h); + if(s.LiquidReturns is not null)h=s.LiquidReturns.Hash(h); + if (s.Fuel is not null) h = s.Fuel.Hash(h); + if (s.FuelPipes is not null) h = s.FuelPipes.Hash(h); + if(s.CompressibleFuel is not null)h=s.CompressibleFuel.Hash(h); + if(s.CompressibleChambers is not null)h=s.CompressibleChambers.Hash(h); + if(s.CompressibleNozzles is not null)h=s.CompressibleNozzles.Hash(h); + if (s.FuelChambers is not null) h = s.FuelChambers.Hash(h); + if (s.FuelDischarges is not null) h = s.FuelDischarges.Hash(h); if (s.Solenoids is not null) h = s.Solenoids.Hash(h); if (s.NeedleDrivers is not null) h = s.NeedleDrivers.Hash(h); if (s.DctControllers is not null) h = s.DctControllers.Hash(h); + if (s.AtControllers is not null) h = s.AtControllers.Hash(h); if (s.PositionCorrection is not null) foreach (double value in s.PositionCorrection) h = Numeric.Hash(h, value); foreach (double loss in s.DampingHeat) h = Numeric.Hash(h, loss); foreach (double correction in s.DampingCorrection) h = Numeric.Hash(h, correction); @@ -854,8 +1080,12 @@ private bool TryOrificeMassFlow(State state, int component, out double value) private void ChemicalTotals(State state, out double chemical, out double fuelResidual, out double airResidual) { chemical = 0; fuelResidual = 0; airResidual = 0; + for (int i = 0; i < _model.FuelVolumes.Length; ++i) + { chemical += state.Fuel!.Mass[i] * _model.FuelVolumes[i].HeatingValue; fuelResidual -= state.Fuel.Mass[i] - _model.FuelVolumes[i].Initial.MassKilograms; } + foreach (var pipe in _model.FuelPipes) chemical += pipe.Mass * _model.FuelVolumes[pipe.A].HeatingValue; + for(int i=0;i<_model.CompressibleFuels.Length;++i){chemical+=state.CompressibleFuel!.Mass[i]*_model.CompressibleFuels[i].HeatingValue;fuelResidual-=state.CompressibleFuel.Mass[i]-_model.Nodes[_model.CompressibleFuels[i].Node].Position;} var mixture = state.Mixture; if (mixture is null) return; - fuelResidual = mixture.FuelIn; airResidual = mixture.AirIn; + fuelResidual += mixture.FuelIn; airResidual = mixture.AirIn; for (int g = 0; g < _model.GasCount; ++g) if (_model.Gas!.Mixtures[g] is { } composition) { @@ -863,13 +1093,15 @@ private void ChemicalTotals(State state, out double chemical, out double fuelRes fuelResidual -= mixture.Fuel[g] - _model.Gas.InitialFuel[g]; airResidual -= mixture.Air[g] - _model.Gas.InitialAir[g]; } + for(int i=0;i<_model.LiquidTanks.Length;++i){chemical+=state.LiquidTanks!.Mass[i]*_model.LiquidTanks[i].HeatingValue;fuelResidual-=state.LiquidTanks.Mass[i]-_model.LiquidTanks[i].InitialMass;} for(int i=0;i<_model.FuelFilms.Length;++i){chemical+=state.Films!.Mass[i]*_model.FuelFilms[i].HeatingValue;fuelResidual-=state.Films.Mass[i]-_model.FuelFilms[i].InitialMass;} for (int i = 0; i < _model.LiquidFuelInjectors.Length; ++i) { var injector = _model.LiquidFuelInjectors[i]; double delivered = state.LiquidInjectors!.Quota.Total[i]; - chemical += (injector.Rail.InitialMassKilograms - delivered) * injector.HeatingValue; - fuelResidual += delivered; + var rail=_model.RailSample(i,state.LiquidInjectors,state.Hydraulic); + chemical+=rail.MassKilograms*injector.HeatingValue; + if(injector.PressureNode<0)fuelResidual+=delivered;else fuelResidual-=rail.MassKilograms-injector.Rail.InitialMassKilograms; } for (int c = 0; c < _model.ComponentCount; ++c) if (_model.Burners[c] is { } burner) @@ -896,7 +1128,11 @@ public SnapshotInfo ReadSnapshot(Span destination) for (int g = 0; g < _model.GasCount; ++g) gasMass += _state.Mass[g] - _model.Gas!.InitialMass[g]; for(int i=0;i<_model.FuelFilms.Length;++i)gasMass+=_state.Films!.Mass[i]-_model.FuelFilms[i].InitialMass; if (_state.LiquidInjectors is not null) - foreach (double delivered in _state.LiquidInjectors.Quota.Total) gasMass -= delivered; + for(int i=0;i<_model.LiquidFuelInjectors.Length;++i) + if(_model.LiquidFuelInjectors[i].PressureNode<0)gasMass-=_state.LiquidInjectors.Quota.Total[i];else gasMass+=_model.RailSample(i,_state.LiquidInjectors,_state.Hydraulic).MassKilograms-_model.LiquidFuelInjectors[i].Rail.InitialMassKilograms; + for(int t=0;t<_model.LiquidTanks.Length;++t)gasMass+=_state.LiquidTanks!.Mass[t]-_model.LiquidTanks[t].InitialMass; + for (int f = 0; f < _model.FuelVolumes.Length; ++f) gasMass += _state.Fuel!.Mass[f] - _model.FuelVolumes[f].Initial.MassKilograms; + for(int i=0;i<_model.CompressibleFuels.Length;++i)gasMass+=_state.CompressibleFuel!.Mass[i]-_model.Nodes[_model.CompressibleFuels[i].Node].Position; ChemicalTotals(_state, out double chemical, out double fuelResidual, out double airResidual); var mixture = _state.Mixture; for (int i = 0; i < _model.OutputCount; ++i) @@ -911,17 +1147,153 @@ public SnapshotInfo ReadSnapshot(Span destination) ? _model.Nodes[b.Index].Index : -1; bool hydraulicNode = !b.IsComponent && b.Index >= 0 && _model.Nodes[b.Index].Domain == Domain.Hydraulic; bool batteryNode = !b.IsComponent && b.Index >= 0 && _model.Nodes[b.Index].Domain == Domain.Battery; + if(!b.IsComponent&&b.Index>=0&&_model.Nodes[b.Index].Domain is Domain.CompressibleFuel or Domain.RelaxingFuel) + { + int slot=_model.Nodes[b.Index].Index;var state=_state.CompressibleFuel!;var d=_model.CompressibleFuels[slot]; + if(!EquilibriumFuelDuctSolver.Point(_model,state,slot,out var point))throw new InvalidOperationException("Invalid compressible fuel state."); + double mass=state.Mass[slot],velocity=state.Momentum[slot]/mass; + if(d.Relaxation is {} relaxing) + { + double internalEnergy=state.Energy[slot]/mass-.5*velocity*velocity; + if(b.Field is Field.EquilibriumVaporMassFraction or Field.ChemicalAffinity or Field.EvaporatedFuelMass or Field.CondensedFuelMass or Field.EntropyProduced or Field.MassFlow) + { + if(b.Field==Field.EquilibriumVaporMassFraction){if(!d.Law.Flash(mass/_model.CompressibleVolume(state,slot),internalEnergy,out var eq))throw new InvalidOperationException("Invalid equilibrium target.");value=eq.VaporMassFraction;} + else if(b.Field==Field.ChemicalAffinity){if(!relaxing.Flash(mass/_model.CompressibleVolume(state,slot),internalEnergy,point.VaporMassFraction,out var actual))throw new InvalidOperationException("Invalid fixed-quality state.");value=actual.ChemicalAffinityJoulesPerKilogram;} + else value=b.Field==Field.EvaporatedFuelMass?state.PhaseHistory![slot,0]:b.Field==Field.CondensedFuelMass?state.PhaseHistory![slot,1]:b.Field==Field.EntropyProduced?state.PhaseHistory![slot,2]:state.PhaseTick![slot]; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + } + value=b.Field switch{Field.Mass=>mass,Field.Volume=>_model.CompressibleVolume(state,slot),Field.Density=>point.DensityKilogramsPerCubicMeter,Field.Pressure=>point.PressurePascals,Field.Temperature=>point.TemperatureKelvin, + Field.InternalEnergy=>mass*point.SpecificInternalEnergyJoulesPerKilogram,Field.KineticEnergy=>.5*mass*velocity*velocity,Field.LinearSpeed=>velocity,Field.ChemicalEnergy=>mass*d.HeatingValue, + Field.VaporMass=>mass*point.VaporMassFraction,Field.VaporMassFraction=>point.VaporMassFraction,Field.Entropy=>mass*point.SpecificEntropyJoulesPerKilogramKelvin,Field.SoundSpeed=>point.SoundSpeedMetersPerSecond,_=>double.NaN}; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + int ductSlot=b.IsComponent?_model.FuelDuctByComponent[b.Index]:-1; + if(ductSlot>=0) + { + var state=_state.CompressibleFuel!;int history=b.Field switch{Field.MassAtA=>0,Field.MassAtB=>1,Field.EnergyAtA=>2,Field.EnergyAtB=>3,Field.FrictionHeat=>4,Field.FluidHeat=>5,Field.HeatRejected=>6,Field.EntropyProduced=>7,Field.JetImpulse=>8,_=>-1}; + value=b.Field==Field.VaporMassAtA?state.VaporPorts![ductSlot,0]:b.Field==Field.VaporMassAtB?state.VaporPorts![ductSlot,1]:history>=0?state.History[ductSlot,history]:b.Field==Field.MassFlow?state.TickMass[ductSlot]:state.TickImpulse[ductSlot];destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + if (!b.IsComponent && b.Index >= 0 && _model.Nodes[b.Index].Domain == Domain.Fuel) + { + int f = _model.Nodes[b.Index].Index; var definition = _model.FuelVolumes[f]; + if (!EquilibriumFuelSolver.Point(definition, _state.Fuel!, f, out var fuelPoint)) throw new InvalidOperationException("Invalid equilibrium fuel state."); + value = b.Field switch + { + Field.Pressure => fuelPoint.PressurePascals, Field.Temperature => fuelPoint.TemperatureKelvin, Field.Mass => fuelPoint.MassKilograms, + Field.Volume => fuelPoint.VolumeCubicMeters, Field.InternalEnergy => fuelPoint.StoredEnergyJoules, Field.ElasticEnergy => fuelPoint.ElasticEnergyJoules, + Field.VaporMass => fuelPoint.VaporMassKilograms, Field.VaporMassFraction => fuelPoint.VaporMassFraction, Field.VaporVolumeFraction => fuelPoint.VaporVolumeFraction, + Field.Entropy => fuelPoint.EntropyJoulesPerKelvin, Field.SpecificEnthalpy => fuelPoint.SpecificEnthalpyJoulesPerKilogram, + Field.ChemicalEnergy => fuelPoint.MassKilograms * definition.HeatingValue, _ => double.NaN + }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + int discharge = b.IsComponent ? _model.FuelDischargeByComponent[b.Index] : -1; + int pipeSlot = b.IsComponent ? _model.FuelPipeByComponent[b.Index] : -1; + if (pipeSlot >= 0) + { + var pipe = _model.FuelPipes[pipeSlot]; var state = _state.FuelPipes!; double density = _model.FuelVolumes[pipe.A].Law.LiquidDensityKilogramsPerCubicMeter; + value = b.Field switch + { + Field.VolumeFlow => state.Flow[pipeSlot], Field.MassFlow => density * state.TickVolume[pipeSlot], Field.Mass => pipe.Mass, Field.Volume => pipe.Length * pipe.Area, + Field.Temperature => FuelPipeSolver.Temperature(_model, pipe, state.Energy[pipeSlot]), Field.InternalEnergy => state.Energy[pipeSlot], + Field.KineticEnergy => .5 * pipe.Inertia * state.Flow[pipeSlot] * state.Flow[pipeSlot], Field.ChemicalEnergy => pipe.Mass * _model.FuelVolumes[pipe.A].HeatingValue, + Field.ForwardVolume => state.Forward[pipeSlot], Field.ReverseVolume => state.Reverse[pipeSlot], Field.TotalFuelDelivered => density * state.Net[pipeSlot], + Field.HydraulicWork => state.Work[pipeSlot], Field.FrictionHeat => state.Friction[pipeSlot], Field.FluidHeat => state.FluidHeat[pipeSlot], + Field.HeatRejected => state.WallHeat[pipeSlot], Field.EnergyAtA => state.EnergyA[pipeSlot], Field.EnergyAtB => state.EnergyB[pipeSlot], + Field.EntropyProduced => state.Entropy[pipeSlot], _ => double.NaN + }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + if (discharge >= 0) + { + var state = _state.FuelDischarges!; + value = b.Field switch { Field.MassFlow => state.Flow[discharge], Field.TotalFuelDelivered => state.Mass[discharge], Field.TransportEnergy => state.Energy[discharge], + Field.JetKineticEnergy => state.Kinetic[discharge], Field.FluidHeat => state.Heat[discharge], Field.JetImpulse => state.Impulse[discharge], Field.Force => state.Force[discharge], + Field.ThroatPressure => state.Throat[discharge], Field.ExitTemperature => state.ExitTemperature[discharge], Field.ExitVelocity => state.ExitVelocity[discharge], Field.Choked => state.Choked[discharge], _ => double.NaN }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + if(b.Index<0&&b.Field==Field.VaporMassResidual) + {value=0;for(int f=0;f<_model.CompressibleFuels.Length;++f)if(_model.CompressibleFuels[f].Relaxation is not null)value+=_state.CompressibleFuel!.VaporMass![f]-_model.Nodes[_model.CompressibleFuels[f].Node].Position*_model.CompressibleFuels[f].Initial.VaporMassFraction-_state.CompressibleFuel.PhaseHistory![f,0]+_state.CompressibleFuel.PhaseHistory[f,1];destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue;} + int nozzleSlot=b.IsComponent?_model.CompressibleNozzleByComponent[b.Index]:-1; + if(nozzleSlot>=0) + { + var state=_state.CompressibleNozzles!;var d=_model.CompressibleNozzles[nozzleSlot]; + int history=b.Field switch{Field.TotalFuelDelivered=>0,Field.TransportEnergy=>1,Field.JetKineticEnergy=>2,Field.HeatRejected=>3,Field.JetImpulse=>4,Field.EntropyProduced=>5,_=>-1}; + int last=b.Field switch{Field.MassFlow=>0,Field.Force=>1,Field.ThroatPressure=>2,Field.ExitTemperature=>3,Field.ExitVelocity=>4,Field.Choked=>5,Field.VaporMassFraction=>6,_=>-1}; + value=b.Field==Field.TotalVaporDelivered?state.VaporDelivered![nozzleSlot]:b.Field==Field.FluxRelativeUncertainty?state.Uncertainty![nozzleSlot]:history>=0?state.History[nozzleSlot,history]:last>=0?state.Last[nozzleSlot,last]:b.Field==Field.FluidHeat?state.History[nozzleSlot,2]-state.History[nozzleSlot,3]:CompressibleNozzleSolver.Opening(d,_state.Inputs,_state.X); + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + int compressibleChamber = b.IsComponent ? _model.CompressibleChamberByComponent[b.Index] : -1; + if (compressibleChamber >= 0) + { + var chamber = _model.CompressibleChambers[compressibleChamber]; var state = _state.CompressibleChambers!; + value = b.Field switch { Field.Volume => _state.CompressibleFuel!.Volume![chamber.Fuel], Field.Torque => state.Torque[compressibleChamber], + Field.HydraulicPower => state.Power[compressibleChamber], Field.HydraulicWork => state.Work[compressibleChamber], _ => double.NaN }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + int fuelChamber = b.IsComponent ? _model.FuelChamberByComponent[b.Index] : -1; + if (fuelChamber >= 0) + { + var chamber = _model.FuelChambers[fuelChamber]; var state = _state.FuelChambers!; + value = b.Field switch { Field.Volume => _state.Fuel!.ReferenceVolume![chamber.Fuel], Field.Torque => state.Torque[fuelChamber], + Field.HydraulicPower => state.Power[fuelChamber], Field.HydraulicWork => state.Work[fuelChamber], _ => double.NaN }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + int fuelLink = b.IsComponent ? _model.FuelLinkByComponent[b.Index] : -1; + if (fuelLink >= 0) + { + var fuelState = _state.Fuel!; + value = b.Field switch { Field.MassFlow or Field.HeatFlow => fuelState.Flow[fuelLink], Field.VolumeFlow => fuelState.VolumeFlow[fuelLink], + Field.TotalFuelDelivered => fuelState.Transferred[fuelLink], Field.TransportEnergy => fuelState.Enthalpy[fuelLink], Field.EntropyProduced => fuelState.Entropy[fuelLink], _ => double.NaN }; + destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; + } + int returnSlot=b.IsComponent?_model.ReturnByComponent[b.Index]:-1; + if(returnSlot>=0) + { + var route=_model.LiquidReturns[returnSlot];var state=_state.LiquidReturns!; + value=b.Field switch{Field.TotalFuelDelivered=>state.Mass[returnSlot],Field.ReservoirEnthalpy=>state.Thermal[returnSlot],Field.FuelEnergyIn=>state.Chemical[returnSlot],Field.FluidHeat=>state.Heat[returnSlot],Field.MassFlow=>_state.Hydraulic!.Flow[_model.Components[route.Valve].Index]*_model.LiquidFeeds[route.Feed].Density,_=>double.NaN}; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + int tankSlot=b.IsComponent?_model.TankByComponent[b.Index]:-1; + if(tankSlot>=0) + { + var tank=_model.LiquidTanks[tankSlot];var state=_state.LiquidTanks!;double mass=state.Mass[tankSlot]; + value=b.Field switch { Field.Mass=>mass,Field.Volume=>mass/tank.Density,Field.InternalEnergy=>state.Energy[tankSlot],Field.ChemicalEnergy=>mass*tank.HeatingValue, + Field.Pressure => LiquidSourcePressure(_state, _model.FeedByInjector[tank.Injector]), + Field.SaturationPressure => LiquidSourceSaturation(_state, _model.FeedByInjector[tank.Injector]), + Field.CavitationMargin => LiquidSourcePressure(_state, _model.FeedByInjector[tank.Injector]) - LiquidSourceSaturation(_state, _model.FeedByInjector[tank.Injector]), + Field.EvaporatedFuelMass => state.Vaporized![tankSlot], Field.CondensedFuelMass => state.Condensed![tankSlot], Field.MassFlow => state.TickPhase![tankSlot], + Field.VaporPartialPressure => GasPressure(_state, _model.TankHeadspaces[_model.HeadspaceByTank[tankSlot]].Gas) * + _state.Mixture!.Fuel[_model.TankHeadspaces[_model.HeadspaceByTank[tankSlot]].Gas] / _state.Mass[_model.TankHeadspaces[_model.HeadspaceByTank[tankSlot]].Gas], + Field.HydraulicWork => state.HeadspaceWork![tankSlot], + Field.FillFraction => mass / tank.Density / _model.TankHeadspaces[_model.HeadspaceByTank[tankSlot]].Geometry.CapacityCubicMeters, + Field.TankState=>mass==0?1:0,Field.Temperature=>LiquidSourceTemperature(_state, _model.FeedByInjector[tank.Injector]),_=>double.NaN }; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } + int feedSlot=b.IsComponent?_model.FeedByComponent[b.Index]:-1; + if(feedSlot>=0) + { + var feed=_model.LiquidFeeds[feedSlot];var state=_state.LiquidFeeds!; + value=b.Field switch{Field.TotalFuelDelivered=>state.Mass[feedSlot],Field.ReservoirEnthalpy=>state.Thermal[feedSlot],Field.FuelEnergyIn=>state.Chemical[feedSlot], + Field.MassFlow=>_state.Hydraulic!.PumpFlow[_model.Components[feed.Pump].Index]*feed.Density, + Field.Pressure=>LiquidSourcePressure(_state,feedSlot),Field.SaturationPressure=>LiquidSourceSaturation(_state,feedSlot), + Field.CavitationMargin=>LiquidSourcePressure(_state,feedSlot)-LiquidSourceSaturation(_state,feedSlot),_=>double.NaN}; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; + } int liquidSlot = b.IsComponent ? _model.LiquidInjectorByComponent[b.Index] : -1; if (liquidSlot >= 0) { var injector = _model.LiquidFuelInjectors[liquidSlot]; var state = _state.LiquidInjectors!; - var rail = injector.Rail.StateAfterDelivery(state.Quota.Total[liquidSlot]); + var rail = _model.RailSample(liquidSlot,state,_state.Hydraulic); value = b.Field switch { Field.Mass => rail.MassKilograms, Field.Pressure => rail.PressurePascals, - Field.Temperature => injector.SupplyTemperature, + Field.SaturationPressure => LiquidRailSaturation(_state, liquidSlot, rail), + Field.CavitationMargin => rail.PressurePascals - LiquidRailSaturation(_state, liquidSlot, rail), + Field.Temperature => injector.PressureNode<0?injector.SupplyTemperature:_model.FuelFilms[injector.Film].Law.Temperature(new(rail.MassKilograms,_state.LiquidFeeds!.RailEnergy[liquidSlot])), Field.Volume => rail.MassKilograms / injector.Rail.DensityKilogramsPerCubicMeter, - Field.InternalEnergy => rail.MassKilograms * injector.SpecificThermalEnergy + injector.Rail.StoredPressureEnergy(rail.PressurePascals), + Field.InternalEnergy => (injector.PressureNode<0?rail.MassKilograms*injector.SpecificThermalEnergy:_state.LiquidFeeds!.RailEnergy[liquidSlot])+injector.Rail.StoredPressureEnergy(rail.PressurePascals), Field.ChemicalEnergy => rail.MassKilograms * injector.HeatingValue, Field.Opening => injector.Needle?.Opening(_state.X) ?? state.Quota.Opening(liquidSlot, injector.Meter, _state.X), Field.MassFlow => state.Quota.TickFuel[liquidSlot], @@ -954,6 +1326,18 @@ public SnapshotInfo ReadSnapshot(Span destination) destination[i] = new(Channels.Output(b.ObjectId, b.Field), value); continue; } int driverSlot = b.IsComponent ? _model.NeedleDriverByComponent[b.Index] : -1; + int atSlot = b.IsComponent ? _model.AtControllerByComponent[b.Index] : -1; + if (atSlot >= 0) + { + var state=_state.AtControllers!; var controller=_model.AtControllers[atSlot]; + int active=state.Active[atSlot]; + if (!AtControl.Confirmed(_model,controller,active,_state.X,_state.Clutches!)) active=0; + value=b.Field switch { Field.RequestedGear=>_state.Inputs[b.Index], Field.ActualGear=>active, + Field.ShiftPhase=>(int)state.Phase[atSlot], Field.SyncError=>state.Error[atSlot], Field.ControlFault=>(int)state.Fault[atSlot], + Field.SampledPressure=>state.LinePressure[atSlot],Field.LockupState=>(int)AtControl.Lockup(_model,controller,state,atSlot,_state.X,_state.Clutches!), + >=Field.ActuatorIntegralA and <=Field.ActuatorIntegralF=>state.Integral[atSlot][(int)b.Field-(int)Field.ActuatorIntegralA],_=>double.NaN }; + destination[i]=new(Channels.Output(b.ObjectId,b.Field),value); continue; + } int dctSlot = b.IsComponent ? _model.DctControllerByComponent[b.Index] : -1; if (dctSlot >= 0) { @@ -983,7 +1367,9 @@ public SnapshotInfo ReadSnapshot(Span destination) if(filmSlot>=0) { var film=_model.FuelFilms[filmSlot];var filmState=_state.Films!;double mass=filmState.Mass[filmSlot]; - value=b.Field switch{Field.Mass=>mass,Field.Temperature=>film.Law.Temperature(new(mass,filmState.Energy[filmSlot])),Field.InternalEnergy=>filmState.Energy[filmSlot],Field.ChemicalEnergy=>mass*film.HeatingValue,Field.EvaporatedFuelMass=>filmState.Vaporized[filmSlot],Field.MassFlow=>filmState.TickVapor[filmSlot],Field.FilmWallHeat=>filmState.WallHeat[filmSlot],Field.HeatFlow=>mass==0?0:film.Law.ConductanceWattsPerKelvin*(_state.Temperature[film.Wall]-film.Law.Temperature(new(mass,filmState.Energy[filmSlot]))),_=>double.NaN}; + double filmTemperature = mass == 0 && film.Phase is not null ? _state.Energy[film.Gas] / _state.Mass[film.Gas] / film.Law.VaporSpecificHeatJoulesPerKilogramKelvin : film.Law.Temperature(new(mass,filmState.Energy[filmSlot])); + value=b.Field switch{Field.Mass=>mass,Field.Volume=>mass/film.FiniteVolume!.DensityKilogramsPerCubicMeter,Field.Temperature=>filmTemperature,Field.InternalEnergy=>filmState.Energy[filmSlot],Field.ChemicalEnergy=>mass*film.HeatingValue,Field.EvaporatedFuelMass=>filmState.Vaporized[filmSlot],Field.MassFlow=>filmState.TickVapor[filmSlot],Field.FilmWallHeat=>filmState.WallHeat[filmSlot],Field.HeatFlow=>mass==0&&film.Phase is null?0:film.Law.ConductanceWattsPerKelvin*(_state.Temperature[film.Wall]-filmTemperature), + Field.CondensedFuelMass=>filmState.Condensed![filmSlot],Field.VaporPartialPressure=>GasPressure(_state,film.Gas)*_state.Mixture!.Fuel[film.Gas]/_state.Mass[film.Gas],_=>double.NaN}; if(!Numeric.Finite(value))throw new InvalidOperationException("Invalid film channel in committed state.");destination[i]=new(Channels.Output(b.ObjectId,b.Field),value);continue; } double pressure = hydraulicNode ? _state.Hydraulic!.Pressure[_model.Nodes[b.Index].Index] : 0; @@ -997,7 +1383,7 @@ public SnapshotInfo ReadSnapshot(Span destination) : _state.Temperature[_model.Nodes[b.Index].Index]; break; case Field.Pressure: value = hydraulicNode ? pressure : cylinder is not null ? cylinder.Pressure(crank) : GasPressure(_state, volume); break; - case Field.Volume: value = hydraulicNode ? _model.Nodes[b.Index].Storage * pressure : cylinder is not null ? cylinder.GeometryAt(crank).VolumeCubicMeters : gasPiston is not null ? gasPiston.VolumeAt(_state.X[_model.Nodes[_model.Components[b.Index].A].Index]) : movingCylinder!.GeometryAt(crank).VolumeCubicMeters; break; + case Field.Volume: value = hydraulicNode ? _model.Nodes[b.Index].Storage * pressure : volume >= 0 ? _model.Gas!.VolumeAt(volume, _state.X, _state.LiquidTanks, _state.Films) : cylinder is not null ? cylinder.GeometryAt(crank).VolumeCubicMeters : gasPiston is not null ? gasPiston.VolumeAt(_state.X[_model.Nodes[_model.Components[b.Index].A].Index]) : movingCylinder!.GeometryAt(crank).VolumeCubicMeters; break; case Field.Mass: value = cylinder is not null ? cylinder.Mass : _state.Mass[volume]; break; case Field.InternalEnergy: if (b.IsComponent && _model.Components[b.Index].Kind == ComponentKind.HydraulicPiston) @@ -1026,7 +1412,7 @@ public SnapshotInfo ReadSnapshot(Span destination) case Field.FuelBurned: value = mixture!.Burned[b.Index]; break; case Field.BurnFrontier: value = mixture!.Frontier[b.Index]; break; case Field.HeatReleased: value = mixture!.Burned[b.Index] * _model.Gas!.Mixtures[_model.Burners[b.Index]!.Gas]!.Lhv; break; - case Field.FuelEnergyIn: value = mixture!.ChemicalIn; break; + case Field.FuelEnergyIn: value = mixture?.ChemicalIn ?? 0; break; case Field.FuelResidual: value = fuelResidual; break; case Field.FreshAirResidual: value = airResidual; break; case Field.MassFlow: @@ -1128,7 +1514,9 @@ public SnapshotInfo ReadSnapshot(Span destination) case Field.Torque: var c = _model.Components[b.Index]; int movingGas = movingCylinder is null ? -1 : _model.Nodes[c.B].Index; - value = movingCylinder is not null ? movingCylinder.Torque(crank, _state.Energy[movingGas], _model.Gas!.Gases[movingGas].Gamma) + value = movingCylinder is not null ? _model.FiniteFilmByGas[movingGas] >= 0 + ? (GasPressure(_state, movingGas) - movingCylinder.BackPressure) * movingCylinder.GeometryAt(crank).VolumeDerivativeCubicMetersPerRadian + : movingCylinder.Torque(crank, _state.Energy[movingGas], _model.Gas!.Gases[movingGas].Gamma) : cylinder is not null ? cylinder.Torque(crank) : c.Kind is ComponentKind.DcMotor or ComponentKind.BatteryMotor ? c.P2 * _state.X[c.Index] : c.Kind == ComponentKind.HydraulicPump ? _state.Hydraulic!.PumpTorque[c.Index] : c.Kind == ComponentKind.TorqueConverter ? _state.Converters!.PumpTorque[c.Index] diff --git a/src/Power.Core/TankPhaseSolver.cs b/src/Power.Core/TankPhaseSolver.cs new file mode 100644 index 0000000..344ae1c --- /dev/null +++ b/src/Power.Core/TankPhaseSolver.cs @@ -0,0 +1,24 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +namespace Power.Core; + +public sealed partial class Simulation +{ + private bool EquilibrateTanks(State state) + { + foreach (var headspace in _model.TankHeadspaces) + { + if (headspace.Equilibrium is not { } law) continue; + int tank = headspace.Tank, gas = headspace.Gas; var liquid = state.LiquidTanks!; var mixture = state.Mixture!; + if (!law.TryFlash(new(liquid.Mass[tank], liquid.Energy[tank]), mixture.Fuel[gas], mixture.Air[gas] + mixture.Products[gas], state.Energy[gas], out var transfer)) return false; + liquid.Mass[tank] = transfer.Liquid.LiquidMassKilograms; liquid.MassCorrection[tank] = 0; + liquid.Energy[tank] = transfer.Liquid.ThermalEnergyJoules; liquid.EnergyCorrection[tank] = 0; + mixture.Fuel[gas] = transfer.VaporMassKilograms; + state.Mass[gas] = mixture.Fuel[gas] + mixture.Air[gas] + mixture.Products[gas]; state.Energy[gas] = transfer.GasEnergyJoules; + liquid.TickPhase![tank] += transfer.NetEvaporatedMassKilograms; + } + return true; + } +} diff --git a/src/Power.Experiments/LaboratoryCatalog.cs b/src/Power.Experiments/LaboratoryCatalog.cs new file mode 100644 index 0000000..6921a99 --- /dev/null +++ b/src/Power.Experiments/LaboratoryCatalog.cs @@ -0,0 +1,64 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Power.Experiments; + +public sealed record LaboratoryEntry( + [property: JsonRequired] string Name, + [property: JsonRequired] string AssetName, + [property: JsonRequired] string DisplayName, + [property: JsonRequired] bool AgentExample); + +/// Shared inventory for CLI discovery, agent examples and serial laboratory verification. +public static class LaboratoryCatalog +{ + public const string Schema = "power.laboratory_catalog.v1"; + public static IReadOnlyList Entries { get; } = Array.AsReadOnly(Load()); + + public static string ReadSource(string name) + { + if (!Entries.Any(lab => lab.Name == name)) throw new ArgumentException("Unknown laboratory.", nameof(name)); + return Resource($"power.{name}.power.json"); + } + + private sealed record CatalogDocument( + [property: JsonRequired] string Schema, + [property: JsonRequired] LaboratoryEntry[] Laboratories); + + private static LaboratoryEntry[] Load() + { + var document = JsonSerializer.Deserialize(Resource("power.laboratory-catalog.json"), new JsonSerializerOptions + { + PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower, + UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow + }) ?? throw new InvalidDataException("Missing laboratory catalog."); + if (document.Schema != Schema || document.Laboratories is not { Length: > 0 }) + throw new InvalidDataException("Invalid laboratory catalog schema or empty inventory."); + var names = new HashSet(StringComparer.Ordinal); + var assets = new HashSet(StringComparer.OrdinalIgnoreCase); + foreach (var lab in document.Laboratories) + { + if (lab is null || string.IsNullOrEmpty(lab.Name) || !char.IsAsciiLetterLower(lab.Name[0]) || + lab.Name.Any(c => !char.IsAsciiLetterLower(c) && !char.IsAsciiDigit(c) && c != '-') || + string.IsNullOrEmpty(lab.AssetName) || !char.IsAsciiLetter(lab.AssetName[0]) || + lab.AssetName.Any(c => !char.IsAsciiLetterOrDigit(c)) || string.IsNullOrWhiteSpace(lab.DisplayName) || + !names.Add(lab.Name) || !assets.Add(lab.AssetName)) + throw new InvalidDataException("Laboratories require unique names, safe asset names and display names."); + } + if (!document.Laboratories.Any(lab => lab.Name == "electrothermal" && lab.AgentExample)) + throw new InvalidDataException("The default electrothermal agent example is missing."); + return document.Laboratories; + } + + private static string Resource(string name) + { + using var stream = typeof(LaboratoryCatalog).Assembly.GetManifestResourceStream(name) + ?? throw new InvalidDataException($"Missing bundled laboratory resource: {name}."); + using var reader = new StreamReader(stream); + return reader.ReadToEnd(); + } +} diff --git a/src/Power.Experiments/ModelDocument.cs b/src/Power.Experiments/ModelDocument.cs index f3fc7e7..704e123 100644 --- a/src/Power.Experiments/ModelDocument.cs +++ b/src/Power.Experiments/ModelDocument.cs @@ -28,7 +28,8 @@ public PowerAsset ToAsset(string name) ["v_pa"] = Unit.VoltPerPascal, ["v_pa_s"] = Unit.VoltPerPascalSecond, ["c"] = Unit.Coulomb, ["ah"] = Unit.AmpereHour, ["f"] = Unit.Farad, ["fraction_pa"] = Unit.FractionPerPascal, ["fraction_pa_s"] = Unit.FractionPerPascalSecond, - ["m_s"] = Unit.MeterPerSecond, ["n_m"] = Unit.NewtonPerMeter, ["n_s_m"] = Unit.NewtonSecondPerMeter, + ["m_s"] = Unit.MeterPerSecond, ["n_m"] = Unit.NewtonPerMeter, ["n_s_m"] = Unit.NewtonSecondPerMeter, ["n_s"] = Unit.NewtonSecond, + ["pa_s_m3"] = Unit.PascalSecondPerCubicMeter, ["pa_s2_m6"] = Unit.PascalSecondSquaredPerCubicMeterSquared, ["m3_rad"] = Unit.CubicMeterPerRadian, ["m3_pa"] = Unit.CubicMeterPerPascal, ["m3_s_pa"] = Unit.CubicMeterPerSecondPascal, ["m3_s_sqrt_pa"] = Unit.CubicMeterPerSecondSqrtPascal, ["m3_s"] = Unit.CubicMeterPerSecond, ["n"] = Unit.Newton, ["nm_s2_rad2"] = Unit.NewtonMeterSecondSquaredPerRadianSquared, ["none"] = Unit.None, ["kg_m2"] = Unit.KilogramMeterSquared, ["rad"] = Unit.Radian, @@ -43,7 +44,14 @@ public PowerAsset ToAsset(string name) }; private static readonly Dictionary Fields = new(StringComparer.Ordinal) { - ["requested_gear"] = Field.RequestedGear, ["actual_gear"] = Field.ActualGear, ["selected_odd_gear"] = Field.SelectedOddGear, ["selected_even_gear"] = Field.SelectedEvenGear, ["shift_phase"] = Field.ShiftPhase, ["sync_error"] = Field.SyncError, ["control_fault"] = Field.ControlFault, + ["total_vapor_delivered"]=Field.TotalVaporDelivered,["equilibrium_vapor_mass_fraction"]=Field.EquilibriumVaporMassFraction,["chemical_affinity"]=Field.ChemicalAffinity,["vapor_mass_residual"]=Field.VaporMassResidual,["vapor_mass_at_a"]=Field.VaporMassAtA,["vapor_mass_at_b"]=Field.VaporMassAtB, ["flux_relative_uncertainty"] = Field.FluxRelativeUncertainty, ["density"] = Field.Density, ["sound_speed"] = Field.SoundSpeed, ["mass_at_a"] = Field.MassAtA, ["mass_at_b"] = Field.MassAtB, + ["jet_kinetic_energy"] = Field.JetKineticEnergy, ["jet_impulse"] = Field.JetImpulse, ["throat_pressure"] = Field.ThroatPressure, + ["exit_temperature"] = Field.ExitTemperature, ["exit_velocity"] = Field.ExitVelocity, ["choked"] = Field.Choked, + ["forward_volume"] = Field.ForwardVolume, ["reverse_volume"] = Field.ReverseVolume, ["kinetic_energy"] = Field.KineticEnergy, ["energy_at_a"] = Field.EnergyAtA, ["energy_at_b"] = Field.EnergyAtB, + ["requested_gear"] = Field.RequestedGear, ["actual_gear"] = Field.ActualGear, ["selected_odd_gear"] = Field.SelectedOddGear, ["selected_even_gear"] = Field.SelectedEvenGear, ["shift_phase"] = Field.ShiftPhase, ["sync_error"] = Field.SyncError, ["control_fault"] = Field.ControlFault, ["lockup_state"] = Field.LockupState, + ["actuator_integral_a"] = Field.ActuatorIntegralA, ["actuator_integral_b"] = Field.ActuatorIntegralB, ["actuator_integral_c"] = Field.ActuatorIntegralC, ["actuator_integral_d"] = Field.ActuatorIntegralD, ["actuator_integral_e"] = Field.ActuatorIntegralE, ["actuator_integral_f"] = Field.ActuatorIntegralF, ["tank_state"] = Field.TankState, ["fill_fraction"] = Field.FillFraction, + ["vapor_mass"] = Field.VaporMass, ["vapor_mass_fraction"] = Field.VaporMassFraction, ["vapor_volume_fraction"] = Field.VaporVolumeFraction, ["elastic_energy"] = Field.ElasticEnergy, ["entropy"] = Field.Entropy, ["specific_enthalpy"] = Field.SpecificEnthalpy, ["transport_energy"] = Field.TransportEnergy, ["entropy_produced"] = Field.EntropyProduced, + ["condensed_fuel_mass"] = Field.CondensedFuelMass, ["vapor_partial_pressure"] = Field.VaporPartialPressure, ["saturation_pressure"] = Field.SaturationPressure, ["cavitation_margin"] = Field.CavitationMargin, ["copper_heat"] = Field.CopperHeat, ["predicted_fuel_mass"] = Field.PredictedFuelMass, ["prediction_ticks"] = Field.PredictionTicks, ["driver_state"] = Field.DriverState, ["closing_delay_ticks"] = Field.ClosingDelayTicks, ["sampled_pressure"] = Field.SampledPressure, ["pressure_error"] = Field.PressureError, ["integral_voltage"] = Field.IntegralVoltage, ["command_voltage"] = Field.CommandVoltage, @@ -124,18 +132,35 @@ public static ModelDocument Parse(string source) if (Text(root.GetProperty("schema")) != "power.model.v1") throw new ArgumentException("Unsupported schema."); var nodes = Array(root.GetProperty("nodes"), CompiledModel.MaxNodes, 1).Select(n => { - Object(n, ["id", "domain", "initial"], "storage", "position", "gas", "battery"); + Object(n, ["id", "domain", "initial"], "storage", "position", "gas", "battery", "fuel", "initial_velocity", "initial_vapor_mass_fraction"); var domain = Text(n.GetProperty("domain")) switch { - "rotational" => Domain.Rotational, "thermal" => Domain.Thermal, "gas" => Domain.Gas, "hydraulic" => Domain.Hydraulic, "battery" => Domain.Battery, "translational" => Domain.Translational, + "rotational" => Domain.Rotational, "thermal" => Domain.Thermal, "gas" => Domain.Gas, "hydraulic" => Domain.Hydraulic, "battery" => Domain.Battery, "translational" => Domain.Translational, "fuel" => Domain.Fuel, "compressible_fuel" => Domain.CompressibleFuel, "relaxing_fuel" => Domain.RelaxingFuel, _ => throw new ArgumentException("Unknown node domain.") }; - if (domain is Domain.Rotational or Domain.Gas or Domain.Battery or Domain.Translational && !n.TryGetProperty("position", out _)) + if(domain==Domain.CompressibleFuel) Object(n,["id","domain","storage","initial","position","fuel","initial_velocity"]); + if(domain==Domain.RelaxingFuel)Object(n,["id","domain","storage","initial","position","fuel","initial_velocity","initial_vapor_mass_fraction"]); + else if(n.TryGetProperty("initial_vapor_mass_fraction",out _))throw new ArgumentException("Initial vapor quality belongs only to relaxing_fuel nodes."); + if (domain is Domain.Rotational or Domain.Gas or Domain.Battery or Domain.Translational or Domain.Fuel or Domain.CompressibleFuel or Domain.RelaxingFuel && !n.TryGetProperty("position", out _)) throw new ArgumentException("Rotational position and gas pressure must be explicit."); if (domain != Domain.Gas && !n.TryGetProperty("storage", out _)) throw new ArgumentException("Rotational inertia and thermal capacity must be explicit."); GasDefinition? gas = null; BatteryDefinition? battery = null; + EquilibriumFuelDefinition? fuel = null; + if (n.TryGetProperty("fuel", out var sourceFuel)) + { + var materialFields=new string[]{domain is Domain.CompressibleFuel or Domain.RelaxingFuel ? "liquid_bulk_modulus" : "compliance", "liquid_density", "maximum_pressure", "gas_constant", "vapor_specific_heat", "liquid_specific_heat", "reference_temperature", "latent_internal_energy", "reference_pressure", "minimum_temperature", "maximum_temperature", "lower_heating_value"}; + if(domain==Domain.RelaxingFuel)materialFields=[..materialFields,"phase_relaxation_time_ns"];Object(sourceFuel,materialFields); + fuel = new() + { + Compliance = domain is Domain.CompressibleFuel or Domain.RelaxingFuel ? default : Quantity(sourceFuel.GetProperty("compliance")), LiquidBulkModulus = domain is Domain.CompressibleFuel or Domain.RelaxingFuel ? Quantity(sourceFuel.GetProperty("liquid_bulk_modulus")) : default, LiquidDensity = Quantity(sourceFuel.GetProperty("liquid_density")), MaximumPressure = Quantity(sourceFuel.GetProperty("maximum_pressure")), + PhaseRelaxationTimeNanoseconds=domain==Domain.RelaxingFuel?Integer(sourceFuel.GetProperty("phase_relaxation_time_ns"),3_600_000_000_000,1):0, + GasConstant = Quantity(sourceFuel.GetProperty("gas_constant")), VaporSpecificHeat = Quantity(sourceFuel.GetProperty("vapor_specific_heat")), LiquidSpecificHeat = Quantity(sourceFuel.GetProperty("liquid_specific_heat")), + ReferenceTemperature = Quantity(sourceFuel.GetProperty("reference_temperature")), LatentInternalEnergy = Quantity(sourceFuel.GetProperty("latent_internal_energy")), ReferencePressure = Quantity(sourceFuel.GetProperty("reference_pressure")), + MinimumTemperature = Quantity(sourceFuel.GetProperty("minimum_temperature")), MaximumTemperature = Quantity(sourceFuel.GetProperty("maximum_temperature")), LowerHeatingValue = Quantity(sourceFuel.GetProperty("lower_heating_value")) + }; + } if (n.TryGetProperty("battery", out var sourceBattery)) { Object(sourceBattery, ["empty_voltage", "full_voltage", "series_resistance", "polarization_resistance", "polarization_capacitance"], "heat_node"); @@ -160,13 +185,16 @@ public static ModelDocument Parse(string source) gas = new() { GasConstant = Quantity(composition.GetProperty("gas_constant")), Gamma = Number(composition.GetProperty("gamma")), Premixed = premixed }; } return new NodeDefinition(Id(n, "id"), domain, n.TryGetProperty("storage", out var storage) ? Quantity(storage) : default, Quantity(n.GetProperty("initial")), - n.TryGetProperty("position", out var p) ? Quantity(p) : default) { Gas = gas, Battery = battery }; + n.TryGetProperty("position", out var p) ? Quantity(p) : default) { Gas = gas, Battery = battery, Fuel = fuel, InitialVaporMassFraction=domain==Domain.RelaxingFuel?Quantity(n.GetProperty("initial_vapor_mass_fraction")):default, InitialVelocity = domain is Domain.CompressibleFuel or Domain.RelaxingFuel || n.TryGetProperty("initial_velocity", out _) ? Quantity(n.GetProperty("initial_velocity")) : default }; }).ToArray(); var components = Array(root.GetProperty("components"), CompiledModel.MaxComponents).Select(c => { Object(c, ["id", "kind", "node_a"], "node_b", "node_c", "heat_node", "input_channel", "initial_input", "parameters", "valve_timing", "reservoir_fractions"); var kind = Text(c.GetProperty("kind")) switch { + "fuel_chamber" => ComponentKind.FuelChamber, "compressible_fuel_chamber" => ComponentKind.CompressibleFuelChamber, "compressible_fuel_nozzle" => ComponentKind.CompressibleFuelNozzle, "fuel_check_valve" => ComponentKind.FuelCheckValve, "fuel_restriction" => ComponentKind.FuelRestriction, "fuel_heat_link" => ComponentKind.FuelHeatLink, + "fuel_discharge" => ComponentKind.FuelDischarge, "finite_fuel_film" => ComponentKind.FiniteFuelFilm, + "fuel_inertial_pipe" => ComponentKind.FuelInertialPipe, "equilibrium_fuel_duct" => ComponentKind.EquilibriumFuelDuct, "relaxing_fuel_duct" => ComponentKind.RelaxingFuelDuct, "hydraulic_resistance" => ComponentKind.HydraulicResistance, "hydraulic_orifice" => ComponentKind.HydraulicOrifice, "hydraulic_clutch" => ComponentKind.HydraulicClutch, "hydraulic_pump" => ComponentKind.HydraulicPump, "hydraulic_relief" => ComponentKind.HydraulicRelief, @@ -176,23 +204,29 @@ public static ModelDocument Parse(string source) "torque_converter" => ComponentKind.TorqueConverter, "shaft" => ComponentKind.Shaft, "dc_motor" => ComponentKind.DcMotor, "torque_source" => ComponentKind.TorqueSource, "thermal_link" => ComponentKind.ThermalLink, "sealed_cylinder" => ComponentKind.SealedCylinder, - "gas_orifice" => ComponentKind.GasOrifice, "gas_fuel_injector" => ComponentKind.GasFuelInjector, "gas_heat_link" => ComponentKind.GasHeatLink, "fuel_film" => ComponentKind.FuelFilm, "liquid_fuel_injector" => ComponentKind.LiquidFuelInjector, "solenoid" => ComponentKind.Solenoid, "travel_stop" => ComponentKind.TravelStop, "needle_driver" => ComponentKind.NeedleDriver, "dct_controller" => ComponentKind.DualClutchController, + "gas_orifice" => ComponentKind.GasOrifice, "gas_fuel_injector" => ComponentKind.GasFuelInjector, "gas_heat_link" => ComponentKind.GasHeatLink, "fuel_film" => ComponentKind.FuelFilm, "liquid_fuel_injector" => ComponentKind.LiquidFuelInjector, "liquid_rail_feed" => ComponentKind.LiquidRailFeed, "liquid_fuel_tank" => ComponentKind.LiquidFuelTank, "liquid_rail_return" => ComponentKind.LiquidRailReturn, "solenoid" => ComponentKind.Solenoid, "travel_stop" => ComponentKind.TravelStop, "needle_driver" => ComponentKind.NeedleDriver, "dct_controller" => ComponentKind.DualClutchController, "at_controller" => ComponentKind.HydraulicAtController, "gas_cylinder" => ComponentKind.GasCylinder, "gas_piston" => ComponentKind.GasPiston, "premixed_combustion" => ComponentKind.PremixedCombustion, "clutch" => ComponentKind.Clutch, "ideal_gear" => ComponentKind.IdealGear, "planetary_gear" => ComponentKind.PlanetaryGear, "double_pinion_planetary_gear" => ComponentKind.DoublePinionPlanetaryGear, "carrier_gear" => ComponentKind.CarrierGear, _ => throw new ArgumentException("Unknown component kind.") }; - if (kind == ComponentKind.IdealGear) Object(c, ["id", "kind", "node_a", "node_b", "parameters"]); + if (kind is ComponentKind.FuelRestriction or ComponentKind.FuelCheckValve) Object(c, ["id", "kind", "node_a", "node_b", "initial_input", "parameters"], "input_channel"); + else if (kind == ComponentKind.CompressibleFuelNozzle) Object(c,["id","kind","node_a","node_b","heat_node","initial_input","parameters"],"input_channel"); + else if (kind == ComponentKind.FuelDischarge) Object(c, ["id", "kind", "node_a", "node_b", "initial_input", "parameters"], "input_channel", "valve_timing"); + else if (kind is ComponentKind.FuelHeatLink or ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber) Object(c, ["id", "kind", "node_a", "node_b", "parameters"]); + else if (kind is ComponentKind.FuelInertialPipe or ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct) Object(c, ["id", "kind", "node_a", "node_b", "heat_node", "parameters"]); + else if (kind == ComponentKind.IdealGear) Object(c, ["id", "kind", "node_a", "node_b", "parameters"]); else if (kind is ComponentKind.PlanetaryGear or ComponentKind.DoublePinionPlanetaryGear or ComponentKind.CarrierGear) Object(c, ["id", "kind", "node_a", "node_b", "node_c", "parameters"]); else if (kind == ComponentKind.TorqueConverter) Object(c, ["id", "kind", "node_a", "node_b", "parameters"], "heat_node"); else if (kind is ComponentKind.PressureController or ComponentKind.PressureDutyController) Object(c, ["id", "kind", "node_a", "input_channel", "initial_input", "parameters"]); else if (kind == ComponentKind.BatteryMotor) Object(c, ["id", "kind", "node_a", "node_b", "input_channel", "initial_input", "parameters"], "heat_node"); else if (kind == ComponentKind.ResistiveLoad) Object(c, ["id", "kind", "node_a", "initial_input", "parameters"], "input_channel", "heat_node"); - else if (kind == ComponentKind.DualClutchController) Object(c, ["id", "kind", "node_a", "input_channel", "initial_input", "parameters"]); + else if (kind is ComponentKind.DualClutchController or ComponentKind.HydraulicAtController) Object(c, ["id", "kind", "node_a", "input_channel", "initial_input", "parameters"]); else if (kind == ComponentKind.Solenoid) Object(c, ["id", "kind", "node_a", "input_channel", "initial_input", "parameters"], "heat_node"); else if (kind is ComponentKind.TravelStop or ComponentKind.NeedleDriver) Object(c, ["id", "kind", "node_a", "parameters"]); + else if (kind is ComponentKind.LiquidRailFeed or ComponentKind.LiquidFuelTank or ComponentKind.LiquidRailReturn) Object(c,["id","kind","node_a","parameters"]); else if (kind == ComponentKind.LiquidFuelInjector) Object(c, ["id", "kind", "node_a", "input_channel", "initial_input", "parameters"]); - else if(kind==ComponentKind.FuelFilm)Object(c,["id","kind","node_a","node_b","parameters"]); + else if(kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm)Object(c,["id","kind","node_a","node_b","parameters"]); else if (kind == ComponentKind.GasFuelInjector) Object(c, ["id", "kind", "node_a", "node_b", "input_channel", "initial_input", "parameters"]); else if (kind is ComponentKind.HydraulicPiston or ComponentKind.GasPiston) Object(c, ["id", "kind", "node_a", "node_b", "parameters"]); else if (kind == ComponentKind.PistonClutch) Object(c, ["id", "kind", "node_a", "parameters"], "node_b", "heat_node"); @@ -216,12 +250,87 @@ public static ModelDocument Parse(string source) InputChannel = c.TryGetProperty("input_channel", out var channel) ? Integer(channel, long.MaxValue) : 0, InitialInput = c.TryGetProperty("initial_input", out var initial) ? Quantity(initial) : default }; + if(kind==ComponentKind.CompressibleFuelNozzle) + { + var p=c.GetProperty("parameters");Object(p,["area","discharge_coefficient","phase_mode","wall_kinetic_fraction"],"needle_node","closed_position","full_open_position"); + var phase=Text(p.GetProperty("phase_mode")) switch{"frozen"=>FuelDischargePhaseModel.Frozen,"equilibrium"=>FuelDischargePhaseModel.Equilibrium,_=>throw new ArgumentException("Declare frozen or equilibrium compressible nozzle transit explicitly.")}; + bool needle=p.TryGetProperty("needle_node",out _);if(needle!=p.TryGetProperty("closed_position",out _)||needle!=p.TryGetProperty("full_open_position",out _))throw new ArgumentException("Declare nozzle needle node and both positions together."); + return result with{CompressibleNozzle=new(){Area=Quantity(p.GetProperty("area")),DischargeCoefficient=Number(p.GetProperty("discharge_coefficient")),PhaseModel=phase,WallKineticFraction=Quantity(p.GetProperty("wall_kinetic_fraction")), + Needle=needle?new(){NeedleNode=Id(p,"needle_node"),ClosedPosition=Quantity(p.GetProperty("closed_position")),FullOpenPosition=Quantity(p.GetProperty("full_open_position"))}:null}}; + } + if(kind is ComponentKind.EquilibriumFuelDuct or ComponentKind.RelaxingFuelDuct) + { + var duct=c.GetProperty("parameters");Object(duct,["cells","area","linear_resistance","quadratic_resistance","fluid_heat_fraction"]); + return result with{FuelDuct=new(){Cells=Array(duct.GetProperty("cells"),24,1).Select(x=>(uint)Integer(x,uint.MaxValue,1)).ToArray(),Area=Quantity(duct.GetProperty("area")), + LinearResistance=Quantity(duct.GetProperty("linear_resistance")),QuadraticResistance=Quantity(duct.GetProperty("quadratic_resistance")),FluidHeatFraction=Quantity(duct.GetProperty("fluid_heat_fraction"))}}; + } + if (kind == ComponentKind.FuelInertialPipe) + { + var pipe = c.GetProperty("parameters"); + Object(pipe, ["length", "area", "linear_resistance", "quadratic_resistance", "initial_flow", "initial_temperature", "fluid_heat_fraction"]); + return result with { FuelPipe = new() { Length = Quantity(pipe.GetProperty("length")), Area = Quantity(pipe.GetProperty("area")), + LinearResistance = Quantity(pipe.GetProperty("linear_resistance")), QuadraticResistance = Quantity(pipe.GetProperty("quadratic_resistance")), + InitialFlow = Quantity(pipe.GetProperty("initial_flow")), InitialTemperature = Quantity(pipe.GetProperty("initial_temperature")), FluidHeatFraction = Quantity(pipe.GetProperty("fluid_heat_fraction")) } }; + } if (kind is ComponentKind.TorqueSource or ComponentKind.ForceSource) { if (c.TryGetProperty("parameters", out var empty)) Object(empty, []); return result; } if (!c.TryGetProperty("parameters", out var parameters)) throw new ArgumentException("Missing component parameters."); + if (kind is ComponentKind.FuelChamber or ComponentKind.CompressibleFuelChamber) + { + Object(parameters, ["minimum_reference_volume", "swept_volume", "phase"]); + return result with { FuelChamber = new() { MinimumReferenceVolume = Quantity(parameters.GetProperty("minimum_reference_volume")), + SweptVolume = Quantity(parameters.GetProperty("swept_volume")), Phase = Quantity(parameters.GetProperty("phase")) } }; + } + if (kind is ComponentKind.FuelRestriction or ComponentKind.FuelHeatLink or ComponentKind.FuelCheckValve) + { + Object(parameters, ["conductance"]); + return result with { Conductance = Quantity(parameters.GetProperty("conductance")) }; + } + if(kind==ComponentKind.LiquidRailFeed) + { + Object(parameters,["injector_component","pump_component"],"supply_temperature","tank_component"); + return result with{LiquidRailFeed=new(){InjectorComponent=Id(parameters,"injector_component"),PumpComponent=Id(parameters,"pump_component"),TankComponent=parameters.TryGetProperty("tank_component",out var tank)?Id(parameters,"tank_component"):0,SupplyTemperature=parameters.TryGetProperty("supply_temperature",out var temperature)?Quantity(temperature):default}}; + } + if (kind == ComponentKind.LiquidRailReturn) + { + Object(parameters,["feed_component","valve_component","fluid_heat_fraction"]); + return result with{LiquidRailReturn=new(){FeedComponent=Id(parameters,"feed_component"),ValveComponent=Id(parameters,"valve_component"),FluidHeatFraction=Quantity(parameters.GetProperty("fluid_heat_fraction"))}}; + } + if (kind == ComponentKind.LiquidFuelTank) + { + Object(parameters,["injector_component","initial_mass","initial_temperature"],"headspace"); + LiquidTankHeadspaceDefinition? headspace = null; + if (parameters.TryGetProperty("headspace", out var geometry)) + { + Object(geometry, ["capacity", "gas_node"], "phase_equilibrium"); + bool equilibrium = false; + if (geometry.TryGetProperty("phase_equilibrium", out var flag)) + { + if (flag.ValueKind is not (JsonValueKind.True or JsonValueKind.False)) throw new ArgumentException("headspace.phase_equilibrium must be a JSON boolean."); + equilibrium = flag.GetBoolean(); + } + headspace = new() { Capacity = Quantity(geometry.GetProperty("capacity")), GasNode = Id(geometry, "gas_node"), PhaseEquilibrium = equilibrium }; + } + return result with{LiquidFuelTank=new(){InjectorComponent=Id(parameters,"injector_component"),InitialMass=Quantity(parameters.GetProperty("initial_mass")),InitialTemperature=Quantity(parameters.GetProperty("initial_temperature")),Headspace=headspace}}; + } + if (kind == ComponentKind.HydraulicAtController) + { + Object(parameters,["vehicle_node","ring_node","supply_pressure_node","routes","sample_period_ns","release_timeout_ns","apply_timeout_ns","low_supply_timeout_ns","lockup_dwell_ns", + "apply_pressure","pressure_tolerance","minimum_supply_pressure","release_force","minimum_apply_force","proportional_gain","integral_gain","synchronize_tolerance","direction_speed_limit", + "lockup_speed_limit","unlock_speed_limit","minimum_lockup_input_speed","minimum_lockup_forward_range"]); + var routes=parameters.GetProperty("routes");if(routes.ValueKind!=JsonValueKind.Array||routes.GetArrayLength() is <5 or >6)throw new ArgumentException("AT routes require five range elements and optional lockup."); + var bindings=routes.EnumerateArray().Select(route=>{Object(route,["clutch","fill_valve","drain_valve"]);return new AtActuatorRoute(Id(route,"clutch"),Id(route,"fill_valve"),Id(route,"drain_valve"));}).ToArray(); + return result with { HydraulicAtController=new() { VehicleNode=Id(parameters,"vehicle_node"),RingNode=Id(parameters,"ring_node"),SupplyPressureNode=Id(parameters,"supply_pressure_node"),Routes=bindings, + SamplePeriodNanoseconds=Integer(parameters.GetProperty("sample_period_ns"),1_000_000_000,1),ReleaseTimeoutNanoseconds=Integer(parameters.GetProperty("release_timeout_ns"),10_000_000_000,1), + ApplyTimeoutNanoseconds=Integer(parameters.GetProperty("apply_timeout_ns"),10_000_000_000,1),LowSupplyTimeoutNanoseconds=Integer(parameters.GetProperty("low_supply_timeout_ns"),10_000_000_000,1),LockupDwellNanoseconds=Integer(parameters.GetProperty("lockup_dwell_ns"),10_000_000_000), + ApplyPressure=Quantity(parameters.GetProperty("apply_pressure")),PressureTolerance=Quantity(parameters.GetProperty("pressure_tolerance")),MinimumSupplyPressure=Quantity(parameters.GetProperty("minimum_supply_pressure")), + ReleaseForce=Quantity(parameters.GetProperty("release_force")),MinimumApplyForce=Quantity(parameters.GetProperty("minimum_apply_force")),ProportionalGain=Quantity(parameters.GetProperty("proportional_gain")),IntegralGain=Quantity(parameters.GetProperty("integral_gain")), + SynchronizeTolerance=Quantity(parameters.GetProperty("synchronize_tolerance")),DirectionChangeSpeedLimit=Quantity(parameters.GetProperty("direction_speed_limit")),LockupSpeedLimit=Quantity(parameters.GetProperty("lockup_speed_limit")),UnlockSpeedLimit=Quantity(parameters.GetProperty("unlock_speed_limit")), + MinimumLockupInputSpeed=Quantity(parameters.GetProperty("minimum_lockup_input_speed")),MinimumLockupForwardRange=(int)Integer(parameters.GetProperty("minimum_lockup_forward_range"),4,1) } }; + } if (kind == ComponentKind.DualClutchController) { Object(parameters, ["vehicle_node", "odd_clutch", "even_clutch", "selectors", "sample_period_ns", "release_ns", "engage_ns", "synchronize_timeout_ns", "synchronize_tolerance", "direction_speed_limit"]); @@ -278,8 +387,37 @@ public static ModelDocument Parse(string source) } }; } - if(kind==ComponentKind.FuelFilm) - {Object(parameters,["initial_mass","initial_temperature","liquid_specific_heat","saturation_temperature","latent_internal_energy","conductance"]);return result with{Conductance=Quantity(parameters.GetProperty("conductance")),FuelFilm=new(){InitialMass=Quantity(parameters.GetProperty("initial_mass")),InitialTemperature=Quantity(parameters.GetProperty("initial_temperature")),LiquidSpecificHeat=Quantity(parameters.GetProperty("liquid_specific_heat")),SaturationTemperature=Quantity(parameters.GetProperty("saturation_temperature")),LatentInternalEnergy=Quantity(parameters.GetProperty("latent_internal_energy"))}};} + if (kind == ComponentKind.FuelDischarge) + { + Object(parameters, ["film_component", "phase_mode", "wall_kinetic_fraction", "area", "discharge_coefficient"], "needle"); + if (Text(parameters.GetProperty("phase_mode")) != "frozen") throw new ArgumentException("fuel_discharge phase_mode must be frozen."); + InjectorNeedleDefinition? needle = null; + if (parameters.TryGetProperty("needle", out var needleData)) + { Object(needleData, ["needle_node", "closed_position", "full_open_position"]); needle = new() { NeedleNode = Id(needleData, "needle_node"), ClosedPosition = Quantity(needleData.GetProperty("closed_position")), FullOpenPosition = Quantity(needleData.GetProperty("full_open_position")) }; } + return result with { Area = Quantity(parameters.GetProperty("area")), DischargeCoefficient = Number(parameters.GetProperty("discharge_coefficient")), + FuelDischarge = new() { FilmComponent = Id(parameters, "film_component"), PhaseModel = FuelDischargePhaseModel.Frozen, + WallKineticFraction = Quantity(parameters.GetProperty("wall_kinetic_fraction")), Needle = needle } }; + } + if(kind is ComponentKind.FuelFilm or ComponentKind.FiniteFuelFilm) + { + if (kind == ComponentKind.FiniteFuelFilm) + Object(parameters,["initial_mass","initial_temperature","liquid_specific_heat","saturation_temperature","latent_internal_energy","conductance","phase_equilibrium","finite_volume_density"]); + else Object(parameters,["initial_mass","initial_temperature","liquid_specific_heat","saturation_temperature","latent_internal_energy","conductance"],["phase_equilibrium"]); + FuelPhaseEquilibriumDefinition? phaseEquilibrium = null; + if (parameters.TryGetProperty("phase_equilibrium", out var phase)) + { + Object(phase, ["reference_pressure", "minimum_temperature", "maximum_temperature"]); + phaseEquilibrium = new() { ReferencePressure = Quantity(phase.GetProperty("reference_pressure")), + MinimumTemperature = Quantity(phase.GetProperty("minimum_temperature")), MaximumTemperature = Quantity(phase.GetProperty("maximum_temperature")) }; + } + return result with { Conductance = Quantity(parameters.GetProperty("conductance")), FuelFilm = new() + { + InitialMass = Quantity(parameters.GetProperty("initial_mass")), InitialTemperature = Quantity(parameters.GetProperty("initial_temperature")), + LiquidSpecificHeat = Quantity(parameters.GetProperty("liquid_specific_heat")), SaturationTemperature = Quantity(parameters.GetProperty("saturation_temperature")), + LatentInternalEnergy = Quantity(parameters.GetProperty("latent_internal_energy")), PhaseEquilibrium = phaseEquilibrium, + FiniteVolumeDensity = kind == ComponentKind.FiniteFuelFilm ? Quantity(parameters.GetProperty("finite_volume_density")) : default + } }; + } if (kind == ComponentKind.GasFuelInjector) { Object(parameters, ["area", "discharge_coefficient", "crank_node", "cycle_angle", "start_angle", "duration_angle", "maximum_dose"]); diff --git a/src/Power.Experiments/Power.Experiments.csproj b/src/Power.Experiments/Power.Experiments.csproj index e916a08..2c529da 100644 --- a/src/Power.Experiments/Power.Experiments.csproj +++ b/src/Power.Experiments/Power.Experiments.csproj @@ -7,4 +7,8 @@ See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository ro net10.0 + + + + diff --git a/src/Power.Mcp/PowerTools.cs b/src/Power.Mcp/PowerTools.cs index 790dd3d..55f8e8a 100644 --- a/src/Power.Mcp/PowerTools.cs +++ b/src/Power.Mcp/PowerTools.cs @@ -25,7 +25,7 @@ private static CallToolResult Reply(AgentReply reply) [McpServerTool(Name = "get_model_schema", ReadOnly = true, OpenWorld = false, UseStructuredContent = true, OutputSchemaType = typeof(AgentReply)), Description("Get JSON Schema 2020-12 for power.model.v1. The compiler additionally checks dimensions, topology and numerical feasibility.")] public CallToolResult ModelSchema() => Reply(AgentWorkspace.ModelSchema()); - [McpServerTool(Name = "get_example_model", ReadOnly = true, OpenWorld = false, UseStructuredContent = true, OutputSchemaType = typeof(AgentReply)), Description("Get an editable synthetic model and experiment. Names: electrothermal, sealed-cylinder, gas-network, moving-cylinder, crank-timed-cylinder, fired-cylinder, fired-clutch, fired-planetary, fired-converter, fired-hydraulic, fired-pump, fired-pump-losses, electric-pump, pressure-regulated-pump, battery-regulated-pump, piston-actuated-clutch, spool-regulated-pump, gas-accumulator-pump, metered-fired-cylinder, film-fired-cylinder, liquid-injected-cylinder, needle-actuated-cylinder, closure-compensated-cylinder, dual-clutch-transmission, fired-dual-clutch, controlled-dual-clutch, controlled-fired-dual-clutch, ravigneaux-transmission, fired-ravigneaux-converter, resolved-ravigneaux-transmission, fired-resolved-ravigneaux-converter, hydraulic-ravigneaux-transmission, fired-hydraulic-ravigneaux. Parameters are uncalibrated.")] + [McpServerTool(Name = "get_example_model", ReadOnly = true, OpenWorld = false, UseStructuredContent = true, OutputSchemaType = typeof(AgentReply)), Description("Get an editable synthetic model and experiment. Discover available names through get_capabilities.examples. Defaults to electrothermal. Parameters are uncalibrated.")] public CallToolResult ExampleModel(string name = "electrothermal") => Reply(AgentWorkspace.ExampleModel(name)); [McpServerTool(Name = "validate_model", ReadOnly = true, OpenWorld = false, UseStructuredContent = true, OutputSchemaType = typeof(AgentReply)), Description("Validate a model document and experiment without running it. Returns fingerprint, channel IDs/units and structured repair diagnostics.")] diff --git a/tests/Power.Mcp.Tests/Program.cs b/tests/Power.Mcp.Tests/Program.cs index 902f8e9..027d968 100644 --- a/tests/Power.Mcp.Tests/Program.cs +++ b/tests/Power.Mcp.Tests/Program.cs @@ -3,6 +3,7 @@ // See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. using System.Reflection; +using System.Diagnostics; using System.Text.Json; using ModelContextProtocol.Client; using ModelContextProtocol.Protocol; @@ -15,7 +16,7 @@ string configuration = Assembly.GetExecutingAssembly().GetCustomAttribute()!.Configuration; string server = Path.Combine(root.FullName, "src", "Power.Mcp", "bin", configuration, "net10.0", "Power.Mcp.dll"); string dotnet = Environment.GetEnvironmentVariable("DOTNET_HOST_PATH") ?? "dotnet"; -using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(300)); +using var timeout = new CancellationTokenSource(TimeSpan.FromMinutes(30)); var transport = new StdioClientTransport(new StdioClientTransportOptions { Name = "Power integration", Command = dotnet, Arguments = [server], WorkingDirectory = root.FullName @@ -26,10 +27,18 @@ void Require(bool value, string message) { if (!value) throw new InvalidOperationException(message); } +int groupsPassed = 0; +void PassGroup(string description) +{ + ++groupsPassed; + Console.WriteLine("PASS " + description); +} var outputSchemas = new Dictionary(); async Task Call(string name, Dictionary? args = null, bool expectError = false) { - var result = await client.CallToolAsync(name, args, cancellationToken: timeout.Token); + using var operation = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token); + operation.CancelAfter(TimeSpan.FromMinutes(10)); + var result = await client.CallToolAsync(name, args, cancellationToken: operation.Token); Require((result.IsError == true) == expectError, name + " unexpected isError: " + JsonSerializer.Serialize(result)); Require(result.StructuredContent.HasValue, name + " missing structuredContent"); var reply = result.StructuredContent!.Value; @@ -47,7 +56,7 @@ async Task Call(string name, Dictionary? args = nu Require(tools.Count == 12, "Tool discovery incomplete"); Require(tools.All(t => t.ProtocolTool.OutputSchema.HasValue), "Every tool must advertise an output schema"); foreach (var tool in tools) outputSchemas.Add(tool.Name, tool.ProtocolTool.OutputSchema!.Value); -Console.WriteLine("PASS MCP stdio lifecycle / discovery / input and output schemas"); +PassGroup("MCP stdio lifecycle / discovery / input and output schemas"); await Call("get_capabilities"); await Call("get_model_schema"); var example = (await Call("get_example_model")).GetProperty("data"); @@ -56,7 +65,7 @@ async Task Call(string name, Dictionary? args = nu using var bad = JsonDocument.Parse(badText); var invalid = await Call("validate_model", new() { ["document"] = bad.RootElement }, expectError: true); Require(invalid.GetProperty("error").GetProperty("code").GetString() == "model_unit", "Missing actionable diagnostic"); -Console.WriteLine("PASS MCP structured validation error / client recovery"); +PassGroup("MCP structured validation error / client recovery"); var created = (await Call("create_session", new() { ["document"] = example })).GetProperty("data"); string id = created.GetProperty("session_id").GetString()!; var updated = (await Call("set_inputs", new() @@ -74,11 +83,11 @@ async Task Call(string name, Dictionary? args = nu await Call("close_session", new() { ["session_id"] = child, ["expected_revision"] = "0" }); await Call("read_snapshot", new() { ["session_id"] = child }, true); await Call("close_session", new() { ["session_id"] = id, ["expected_revision"] = "2" }); -Console.WriteLine("PASS MCP session / input / step / revision conflict / fork / close"); +PassGroup("MCP session / input / step / revision conflict / fork / close"); var report = (await Call("run_experiment", new() { ["document"] = example })).GetProperty("data"); Require(report.GetProperty("passed").GetBoolean(), "Reference experiment failed over MCP"); Require(!report.TryGetProperty("samples", out _), "Default report should be compact"); -Console.WriteLine("PASS MCP experiment / reproducibility evidence / compact report"); +PassGroup("MCP experiment / reproducibility evidence / compact report"); var exported = (await Call("export_model_asset", new() { ["document"] = example, ["name"] = "MCP model" })).GetProperty("data"); byte[] payload = Convert.FromBase64String(exported.GetProperty("content").GetString()!); Require(Convert.ToHexStringLower(SHA256.HashData(payload)) == exported.GetProperty("asset_sha256").GetString(), "Exported asset hash differs"); @@ -88,21 +97,51 @@ async Task Call(string name, Dictionary? args = nu Require(playback.Advance(imported.DurationNanoseconds) == Power.Core.SimulationStatus.Ok, "Exported experiment could not run"); var snapshot = playback.ReadSnapshot(new Power.Core.Scalar[playback.Model.OutputCount]); Require(snapshot.StateHash.ToString("x16") == report.GetProperty("final_sample").GetProperty("state_hash").GetString(), "Asset and MCP experiment differ"); -Console.WriteLine("PASS MCP portable asset / digest / imported replay"); +PassGroup("MCP portable asset / digest / imported replay"); var cylinder = (await Call("get_example_model", new() { ["name"] = "sealed-cylinder" })).GetProperty("data"); var cylinderReport = (await Call("run_experiment", new() { ["document"] = cylinder })).GetProperty("data"); Require(cylinderReport.GetProperty("passed").GetBoolean(), "Cylinder experiment failed over MCP"); Require(cylinderReport.GetProperty("model").GetProperty("fidelity").GetString() == "sealed_adiabatic_gas", "Cylinder fidelity missing"); var cylinderExport = (await Call("export_model_asset", new() { ["document"] = cylinder, ["name"] = "Sealed cylinder" })).GetProperty("data"); -Require(cylinderExport.GetProperty("format").GetString() == "power.asset.v24", "Wrong cylinder asset version"); +Require(cylinderExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Wrong cylinder asset version"); var cylinderAsset = AssetCodec.Decode(Convert.FromBase64String(cylinderExport.GetProperty("content").GetString()!)); var cylinderPlayback = cylinderAsset.CreatePlayback(); Require(cylinderPlayback.Advance(cylinderAsset.DurationNanoseconds) == Power.Core.SimulationStatus.Ok, "Cylinder playback failed"); Require(cylinderPlayback.ReadSnapshot(new Power.Core.Scalar[cylinderAsset.Model.OutputCount]).StateHash.ToString("x16") == cylinderReport.GetProperty("final_sample").GetProperty("state_hash").GetString(), "Cylinder asset differs from MCP report"); await Call("get_example_model", new() { ["name"] = "unknown" }, true); -Console.WriteLine("PASS MCP cylinder discovery / nonlinear experiment / portable replay / unknown example"); +PassGroup("MCP cylinder discovery / nonlinear experiment / portable replay / unknown example"); var capabilities = (await Call("get_capabilities")).GetProperty("data"); +var catalogStart = new ProcessStartInfo(dotnet) { WorkingDirectory = root.FullName, UseShellExecute = false, + RedirectStandardOutput = true, RedirectStandardError = true }; +catalogStart.ArgumentList.Add(Path.Combine(root.FullName, "src", "Power.Cli", "bin", configuration, "net10.0", "Power.Cli.dll")); +catalogStart.ArgumentList.Add("list-labs"); +using var catalogProcess = Process.Start(catalogStart) ?? throw new InvalidOperationException("Cannot start CLI catalog discovery."); +var catalogOutput = catalogProcess.StandardOutput.ReadToEndAsync(timeout.Token); +var catalogError = catalogProcess.StandardError.ReadToEndAsync(timeout.Token); +await catalogProcess.WaitForExitAsync(timeout.Token); +Require(catalogProcess.ExitCode == 0, "CLI catalog discovery failed: " + await catalogError); +using var catalogDocument = JsonDocument.Parse(await catalogOutput); +var catalog = catalogDocument.RootElement; +Require(catalog.GetProperty("schema").GetString() == "power.laboratory_catalog.v1" && + catalog.GetProperty("calibration").GetString() == "unverified", "CLI catalog contract differs"); +var laboratories = catalog.GetProperty("laboratories").EnumerateArray().ToArray(); +var sourceNames = Directory.EnumerateFiles(Path.Combine(root.FullName, "assets", "labs"), "*.power.json") + .Select(path => Path.GetFileName(path)[..^".power.json".Length]).ToHashSet(StringComparer.Ordinal); +Require(sourceNames.SetEquals(laboratories.Select(lab => lab.GetProperty("name").GetString()!)) && + laboratories.Length == sourceNames.Count, "CLI catalog omits or duplicates a laboratory source"); +var discoveredExamples = capabilities.GetProperty("examples").EnumerateArray().Select(value => value.GetString()!).ToArray(); +Require(discoveredExamples.SequenceEqual(laboratories.Where(lab => lab.GetProperty("agent_example").GetBoolean()) + .Select(lab => lab.GetProperty("name").GetString()!)), "MCP and CLI example inventories differ"); +var discoveredComponents = capabilities.GetProperty("components").EnumerateArray().Select(value => value.GetString()!).ToHashSet(); +foreach (string exampleName in discoveredExamples) +{ + var discovered = (await Call("get_example_model", new() { ["name"] = exampleName })).GetProperty("data"); + Require(discovered.GetProperty("components").EnumerateArray().All(component => + discoveredComponents.Contains(component.GetProperty("kind").GetString()!)), "Example uses an undiscoverable component: " + exampleName); + await Call("validate_model", new() { ["document"] = discovered }); +} +PassGroup("CLI catalog / complete sources / MCP discovery and validation of every example"); Require(capabilities.GetProperty("domains").EnumerateArray().Any(d => d.GetString() == "gas"), "Gas domain not discoverable"); var gas = (await Call("get_example_model", new() { ["name"] = "gas-network" })).GetProperty("data"); await Call("validate_model", new() { ["document"] = gas }); @@ -110,7 +149,7 @@ async Task Call(string name, Dictionary? args = nu Require(gasReport.GetProperty("passed").GetBoolean() && gasReport.GetProperty("model").GetProperty("calibration").GetString() == "unverified", "Gas report evidence mismatch"); var gasExport = (await Call("export_model_asset", new() { ["document"] = gas })).GetProperty("data"); byte[] gasPayload = Convert.FromBase64String(gasExport.GetProperty("content").GetString()!); -Require(gasExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(gasPayload)) == gasExport.GetProperty("asset_sha256").GetString(), "Gas asset integrity mismatch"); +Require(gasExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(gasPayload)) == gasExport.GetProperty("asset_sha256").GetString(), "Gas asset integrity mismatch"); var gasAsset = AssetCodec.Decode(gasPayload); var gasPlayback = gasAsset.CreatePlayback(); var gasValues = new Power.Core.Scalar[gasAsset.Model.OutputCount]; foreach (var boundary in gasReport.GetProperty("samples").EnumerateArray()) @@ -128,14 +167,14 @@ async Task Call(string name, Dictionary? args = nu var gasUnchanged = (await Call("read_snapshot", new() { ["session_id"] = gasId })).GetProperty("data"); Require(gasUnchanged.GetProperty("state_hash").GetString() == gasSession.GetProperty("snapshot").GetProperty("state_hash").GetString() && gasUnchanged.GetProperty("revision").GetString() == "0", "Rejected gas input changed the session"); await Call("close_session", new() { ["session_id"] = gasId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP gas discovery / all asset replay boundaries / opening rejection / unchanged session"); +PassGroup("MCP gas discovery / all asset replay boundaries / opening rejection / unchanged session"); var moving = (await Call("get_example_model", new() { ["name"] = "moving-cylinder" })).GetProperty("data"); var movingValidated = (await Call("validate_model", new() { ["document"] = moving })).GetProperty("data"); Require(movingValidated.GetProperty("model").GetProperty("fidelity").GetString() == "moving_cylinder_gas_exchange", "Moving cylinder not discoverable"); var movingReport = (await Call("run_experiment", new() { ["document"] = moving, ["include_samples"] = true })).GetProperty("data"); Require(movingReport.GetProperty("passed").GetBoolean(), "Moving-cylinder experiment failed"); var movingExport = (await Call("export_model_asset", new() { ["document"] = moving })).GetProperty("data"); -Require(movingExport.GetProperty("format").GetString() == "power.asset.v24", "Moving cylinder export must use the current format"); +Require(movingExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Moving cylinder export must use the current format"); var movingAsset = AssetCodec.Decode(Convert.FromBase64String(movingExport.GetProperty("content").GetString()!)); var movingPlayback = movingAsset.CreatePlayback(); var movingValues = new Power.Core.Scalar[movingAsset.Model.OutputCount]; foreach (var boundary in movingReport.GetProperty("samples").EnumerateArray()) @@ -146,7 +185,7 @@ async Task Call(string name, Dictionary? args = nu Require(movingPlayback.ReadSnapshot(movingValues).StateHash.ToString("x16") == boundary.GetProperty("state_hash").GetString(), "Moving-cylinder replay differs"); Require(movingValues.All(v => v.Value == boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Moving-cylinder observables differ"); } -Console.WriteLine("PASS MCP moving-cylinder discovery / motored experiment / portable replay"); +PassGroup("MCP moving-cylinder discovery / motored experiment / portable replay"); var timed = (await Call("get_example_model", new() { ["name"] = "crank-timed-cylinder" })).GetProperty("data"); var timedValidated = (await Call("validate_model", new() { ["document"] = timed })).GetProperty("data"); Require(timedValidated.GetProperty("model").GetProperty("fidelity").GetString() == "crank_timed_gas_exchange", "Timed model fidelity missing"); @@ -154,7 +193,7 @@ async Task Call(string name, Dictionary? args = nu var timedReport = (await Call("run_experiment", new() { ["document"] = timed, ["include_samples"] = true })).GetProperty("data"); Require(timedReport.GetProperty("passed").GetBoolean() && timedReport.GetProperty("samples").GetArrayLength() == 63, "Crank-timed experiment failed"); var timedExport = (await Call("export_model_asset", new() { ["document"] = timed })).GetProperty("data"); -Require(timedExport.GetProperty("format").GetString() == "power.asset.v24", "Timing uses current asset v6"); +Require(timedExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Timing uses current asset v6"); var timedAsset = AssetCodec.Decode(Convert.FromBase64String(timedExport.GetProperty("content").GetString()!)); Require(timedAsset.Components.Count(c => c.ValveTiming != null) == 2, "Timing definitions lost in export"); var timedPlayback = timedAsset.CreatePlayback(); var timedValues = new Power.Core.Scalar[timedAsset.Model.OutputCount]; @@ -172,7 +211,7 @@ async Task Call(string name, Dictionary? args = nu var timedUnchanged = (await Call("read_snapshot", new() { ["session_id"] = timedId })).GetProperty("data"); Require(timedUnchanged.GetProperty("revision").GetString() == "0" && timedUnchanged.GetProperty("state_hash").GetString() == timedSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected peak opening changed state"); await Call("close_session", new() { ["session_id"] = timedId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP crank timing / changing-speed experiment / all portable boundaries / peak input contract"); +PassGroup("MCP crank timing / changing-speed experiment / all portable boundaries / peak input contract"); var fired = (await Call("get_example_model", new() { ["name"] = "fired-cylinder" })).GetProperty("data"); var firedValidated = (await Call("validate_model", new() { ["document"] = fired })).GetProperty("data"); Require(firedValidated.GetProperty("model").GetProperty("fidelity").GetString() == "premixed_wiebe_combustion", "Combustion fidelity missing"); @@ -180,7 +219,7 @@ async Task Call(string name, Dictionary? args = nu var firedReport = (await Call("run_experiment", new() { ["document"] = fired, ["include_samples"] = true })).GetProperty("data"); Require(firedReport.GetProperty("passed").GetBoolean() && firedReport.GetProperty("samples").GetArrayLength() == 63, "Fired experiment failed"); var firedExport = (await Call("export_model_asset", new() { ["document"] = fired })).GetProperty("data"); -Require(firedExport.GetProperty("format").GetString() == "power.asset.v24", "Combustion requires asset v6"); +Require(firedExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Combustion requires asset v6"); byte[] firedPayload = Convert.FromBase64String(firedExport.GetProperty("content").GetString()!); Require(Convert.ToHexStringLower(SHA256.HashData(firedPayload)) == firedExport.GetProperty("asset_sha256").GetString(), "Fired asset digest mismatch"); var firedAsset = AssetCodec.Decode(firedPayload); var firedPlayback = firedAsset.CreatePlayback(); var firedValues = new Power.Core.Scalar[firedAsset.Model.OutputCount]; @@ -198,7 +237,7 @@ async Task Call(string name, Dictionary? args = nu var firedUnchanged = (await Call("read_snapshot", new() { ["session_id"] = firedId })).GetProperty("data"); Require(firedUnchanged.GetProperty("revision").GetString() == "0" && firedUnchanged.GetProperty("state_hash").GetString() == firedSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected burn input changed state"); await Call("close_session", new() { ["session_id"] = firedId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP combustion discovery / fired load experiment / all asset boundaries / input contract"); +PassGroup("MCP combustion discovery / fired load experiment / all asset boundaries / input contract"); var clutch = (await Call("get_example_model", new() { ["name"] = "fired-clutch" })).GetProperty("data"); var clutchValidated = (await Call("validate_model", new() { ["document"] = clutch })).GetProperty("data"); Require(clutchValidated.GetProperty("model").GetProperty("fidelity").GetString() == "hybrid_clutch_powertrain", "Clutch fidelity missing"); @@ -207,7 +246,7 @@ async Task Call(string name, Dictionary? args = nu Require(clutchReport.GetProperty("passed").GetBoolean() && clutchReport.GetProperty("samples").GetArrayLength() == 67, "Fired-clutch experiment failed"); var clutchExport = (await Call("export_model_asset", new() { ["document"] = clutch })).GetProperty("data"); byte[] clutchPayload = Convert.FromBase64String(clutchExport.GetProperty("content").GetString()!); -Require(clutchExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(clutchPayload)) == clutchExport.GetProperty("asset_sha256").GetString(), "Clutch asset version or digest differs"); +Require(clutchExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(clutchPayload)) == clutchExport.GetProperty("asset_sha256").GetString(), "Clutch asset version or digest differs"); var clutchAsset = AssetCodec.Decode(clutchPayload); var clutchPlayback = clutchAsset.CreatePlayback(); var clutchValues = new Power.Core.Scalar[clutchAsset.Model.OutputCount]; Require(clutchAsset.Components.Single(c => c.Id == 16).Friction!.StaticCapacity.Value == 100, "Clutch capacity lost"); foreach (var boundary in clutchReport.GetProperty("samples").EnumerateArray()) @@ -224,7 +263,7 @@ async Task Call(string name, Dictionary? args = nu var clutchUnchanged = (await Call("read_snapshot", new() { ["session_id"] = clutchId })).GetProperty("data"); Require(clutchUnchanged.GetProperty("revision").GetString() == "0" && clutchUnchanged.GetProperty("state_hash").GetString() == clutchSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected engagement changed state"); await Call("close_session", new() { ["session_id"] = clutchId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP clutch discovery / fired load and heat / every portable boundary / engagement rejection"); +PassGroup("MCP clutch discovery / fired load and heat / every portable boundary / engagement rejection"); var planetary = (await Call("get_example_model", new() { ["name"] = "fired-planetary" })).GetProperty("data"); var planetaryValidated = (await Call("validate_model", new() { ["document"] = planetary })).GetProperty("data"); Require(planetaryValidated.GetProperty("model").GetProperty("fidelity").GetString() == "constrained_gear_powertrain", "Gear fidelity missing"); @@ -233,7 +272,7 @@ async Task Call(string name, Dictionary? args = nu Require(planetaryReport.GetProperty("passed").GetBoolean() && planetaryReport.GetProperty("samples").GetArrayLength() == 84, "Fired planetary experiment failed"); var planetaryExport = (await Call("export_model_asset", new() { ["document"] = planetary })).GetProperty("data"); byte[] planetaryPayload = Convert.FromBase64String(planetaryExport.GetProperty("content").GetString()!); -Require(planetaryExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(planetaryPayload)) == planetaryExport.GetProperty("asset_sha256").GetString(), "Gear asset version or digest differs"); +Require(planetaryExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(planetaryPayload)) == planetaryExport.GetProperty("asset_sha256").GetString(), "Gear asset version or digest differs"); var planetaryAsset = AssetCodec.Decode(planetaryPayload); var planetaryPlayback = planetaryAsset.CreatePlayback(); var planetaryValues = new Power.Core.Scalar[planetaryAsset.Model.OutputCount]; Require(planetaryAsset.Components.Single(c => c.Id == 18).NodeC == 4, "Planetary carrier lost"); foreach (var boundary in planetaryReport.GetProperty("samples").EnumerateArray()) @@ -250,7 +289,7 @@ async Task Call(string name, Dictionary? args = nu var planetaryUnchanged = (await Call("read_snapshot", new() { ["session_id"] = planetaryId })).GetProperty("data"); Require(planetaryUnchanged.GetProperty("revision").GetString() == "0" && planetaryUnchanged.GetProperty("state_hash").GetString() == planetarySession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected brake input changed state"); await Call("close_session", new() { ["session_id"] = planetaryId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP planetary discovery / fired transmission shift / every portable boundary / brake input rejection"); +PassGroup("MCP planetary discovery / fired transmission shift / every portable boundary / brake input rejection"); var converter = (await Call("get_example_model", new() { ["name"] = "fired-converter" })).GetProperty("data"); var converterValidated = (await Call("validate_model", new() { ["document"] = converter })).GetProperty("data"); Require(converterValidated.GetProperty("model").GetProperty("fidelity").GetString() == "quasisteady_converter_powertrain", "Converter fidelity missing"); @@ -259,7 +298,7 @@ async Task Call(string name, Dictionary? args = nu Require(converterReport.GetProperty("passed").GetBoolean() && converterReport.GetProperty("samples").GetArrayLength() == 87, "Fired converter experiment failed"); var converterExport = (await Call("export_model_asset", new() { ["document"] = converter })).GetProperty("data"); byte[] converterPayload = Convert.FromBase64String(converterExport.GetProperty("content").GetString()!); -Require(converterExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(converterPayload)) == converterExport.GetProperty("asset_sha256").GetString(), "Converter asset version or digest differs"); +Require(converterExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(converterPayload)) == converterExport.GetProperty("asset_sha256").GetString(), "Converter asset version or digest differs"); var converterAsset = AssetCodec.Decode(converterPayload); var converterPlayback = converterAsset.CreatePlayback(); var converterValues = new Power.Core.Scalar[converterAsset.Model.OutputCount]; Require(converterAsset.Components.Single(c => c.Id == 20).Converter!.PumpPositive!.Points.Count == 5, "Converter maps lost"); foreach (var boundary in converterReport.GetProperty("samples").EnumerateArray()) @@ -276,7 +315,7 @@ async Task Call(string name, Dictionary? args = nu var converterUnchanged = (await Call("read_snapshot", new() { ["session_id"] = converterId })).GetProperty("data"); Require(converterUnchanged.GetProperty("revision").GetString() == "0" && converterUnchanged.GetProperty("state_hash").GetString() == converterSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected lockup input changed state"); await Call("close_session", new() { ["session_id"] = converterId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP converter discovery / signed maps / fired lockup and shift / every portable boundary / input rejection"); +PassGroup("MCP converter discovery / signed maps / fired lockup and shift / every portable boundary / input rejection"); var hydraulic = (await Call("get_example_model", new() { ["name"] = "fired-hydraulic" })).GetProperty("data"); var hydraulicValidated = (await Call("validate_model", new() { ["document"] = hydraulic })).GetProperty("data"); Require(hydraulicValidated.GetProperty("model").GetProperty("fidelity").GetString() == "compliant_hydraulic_powertrain", "Hydraulic fidelity missing"); @@ -285,7 +324,7 @@ async Task Call(string name, Dictionary? args = nu Require(hydraulicReport.GetProperty("passed").GetBoolean() && hydraulicReport.GetProperty("samples").GetArrayLength() == 89, "Fired hydraulic experiment failed"); var hydraulicExport = (await Call("export_model_asset", new() { ["document"] = hydraulic })).GetProperty("data"); byte[] hydraulicPayload = Convert.FromBase64String(hydraulicExport.GetProperty("content").GetString()!); -Require(hydraulicExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(hydraulicPayload)) == hydraulicExport.GetProperty("asset_sha256").GetString(), "Hydraulic asset version or digest differs"); +Require(hydraulicExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(hydraulicPayload)) == hydraulicExport.GetProperty("asset_sha256").GetString(), "Hydraulic asset version or digest differs"); var hydraulicAsset = AssetCodec.Decode(hydraulicPayload); var hydraulicPlayback = hydraulicAsset.CreatePlayback(); var hydraulicValues = new Power.Core.Scalar[hydraulicAsset.Model.OutputCount]; Require(hydraulicAsset.Components.Single(c => c.Id == 21).HydraulicClutch!.PressureNode == 32, "Hydraulic pressure port lost"); foreach (var boundary in hydraulicReport.GetProperty("samples").EnumerateArray()) @@ -302,7 +341,7 @@ async Task Call(string name, Dictionary? args = nu var hydraulicUnchanged = (await Call("read_snapshot", new() { ["session_id"] = hydraulicId })).GetProperty("data"); Require(hydraulicUnchanged.GetProperty("revision").GetString() == "0" && hydraulicUnchanged.GetProperty("state_hash").GetString() == hydraulicSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected lockup input changed state"); await Call("close_session", new() { ["session_id"] = hydraulicId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP hydraulic discovery / pressure chambers / fired lockup and shift / every portable boundary / input rejection"); +PassGroup("MCP hydraulic discovery / pressure chambers / fired lockup and shift / every portable boundary / input rejection"); var pump = (await Call("get_example_model", new() { ["name"] = "fired-pump" })).GetProperty("data"); var pumpValidated = (await Call("validate_model", new() { ["document"] = pump })).GetProperty("data"); Require(pumpValidated.GetProperty("model").GetProperty("fidelity").GetString() == "shaft_driven_hydraulics", "Pump fidelity missing"); @@ -311,7 +350,7 @@ async Task Call(string name, Dictionary? args = nu Require(pumpReport.GetProperty("passed").GetBoolean() && pumpReport.GetProperty("samples").GetArrayLength() == 89, "Fired pump experiment failed"); var pumpExport = (await Call("export_model_asset", new() { ["document"] = pump })).GetProperty("data"); byte[] pumpPayload = Convert.FromBase64String(pumpExport.GetProperty("content").GetString()!); -Require(pumpExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(pumpPayload)) == pumpExport.GetProperty("asset_sha256").GetString(), "Pump asset version or digest differs"); +Require(pumpExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(pumpPayload)) == pumpExport.GetProperty("asset_sha256").GetString(), "Pump asset version or digest differs"); var pumpAsset = AssetCodec.Decode(pumpPayload); var pumpPlayback = pumpAsset.CreatePlayback(); var pumpValues = new Power.Core.Scalar[pumpAsset.Model.OutputCount]; Require(pumpAsset.Components.Single(c => c.Id == 46).HydraulicPump!.Displacement.Unit == Power.Core.Unit.CubicMeterPerRadian, "Pump pressure port lost"); foreach (var boundary in pumpReport.GetProperty("samples").EnumerateArray()) @@ -328,7 +367,7 @@ async Task Call(string name, Dictionary? args = nu var pumpUnchanged = (await Call("read_snapshot", new() { ["session_id"] = pumpId })).GetProperty("data"); Require(pumpUnchanged.GetProperty("revision").GetString() == "0" && pumpUnchanged.GetProperty("state_hash").GetString() == pumpSession.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected lockup input changed state"); await Call("close_session", new() { ["session_id"] = pumpId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP pump discovery / pressure chambers / fired lockup and shift / every portable boundary / input rejection"); +PassGroup("MCP pump discovery / pressure chambers / fired lockup and shift / every portable boundary / input rejection"); foreach (var laboratory in new[] { (Name: "fired-pump-losses", Boundaries: 89), (Name: "electric-pump", Boundaries: 106) }) { Require(capabilities.GetProperty("pump_assembly").GetProperty("friction_unit").GetString() == "nm_s_rad", "Pump assembly contract missing"); @@ -354,7 +393,7 @@ async Task Call(string name, Dictionary? args = nu var unchanged = (await Call("read_snapshot", new() { ["session_id"] = assemblyId })).GetProperty("data"); Require(unchanged.GetProperty("revision").GetString() == "0" && unchanged.GetProperty("state_hash").GetString() == createdAssembly.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Stale assembly step changed state"); await Call("close_session", new() { ["session_id"] = assemblyId, ["expected_revision"] = "0" }); - Console.WriteLine("PASS MCP " + laboratory.Name + " / physical contracts / every portable boundary / revisions"); + PassGroup("MCP " + laboratory.Name + " / physical contracts / every portable boundary / revisions"); } var regulatedDocument = (await Call("get_example_model", new() { ["name"] = "pressure-regulated-pump" })).GetProperty("data"); Require(capabilities.GetProperty("pressure_controller").GetProperty("units").GetProperty("integral_gain").GetString() == "v_pa_s", "Pressure PI contract missing"); @@ -364,7 +403,7 @@ async Task Call(string name, Dictionary? args = nu Require(regulatedReport.GetProperty("passed").GetBoolean() && regulatedReport.GetProperty("samples").GetArrayLength() == 757, "Pressure-regulated experiment failed"); var regulatedExport = (await Call("export_model_asset", new() { ["document"] = regulatedDocument })).GetProperty("data"); byte[] regulatedPayload = Convert.FromBase64String(regulatedExport.GetProperty("content").GetString()!); -Require(regulatedExport.GetProperty("format").GetString() == "power.asset.v24" && +Require(regulatedExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(regulatedPayload)) == regulatedExport.GetProperty("asset_sha256").GetString(), "Controlled asset integrity differs"); var regulatedAsset = AssetCodec.Decode(regulatedPayload); var regulatedPlayback = regulatedAsset.CreatePlayback(); var regulatedValues = new Power.Core.Scalar[regulatedAsset.Model.OutputCount]; Require(regulatedAsset.Components.Single(c => c.Id == 20).PressureController!.SamplePeriodNanoseconds == 5_000_000, "Control period lost"); @@ -391,7 +430,7 @@ async Task Call(string name, Dictionary? args = nu Require((await Call("read_snapshot", new() { ["session_id"] = regulatedId })).GetProperty("data").GetRawText() == regulatedParent.GetRawText(), "Controller fork changed its parent"); await Call("close_session", new() { ["session_id"] = regulatedFork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = regulatedId, ["expected_revision"] = "2" }); -Console.WriteLine("PASS MCP sampled pressure control / complete asset replay / owned actuator / controller forks"); +PassGroup("MCP sampled pressure control / complete asset replay / owned actuator / controller forks"); var batteryDocument = (await Call("get_example_model", new() { ["name"] = "battery-regulated-pump" })).GetProperty("data"); Require(capabilities.GetProperty("battery").GetProperty("state_of_charge_max").GetInt32() == 1, "Finite battery contract missing"); var batteryValidation = (await Call("validate_model", new() { ["document"] = batteryDocument })).GetProperty("data"); @@ -400,7 +439,7 @@ async Task Call(string name, Dictionary? args = nu Require(batteryReport.GetProperty("passed").GetBoolean() && batteryReport.GetProperty("samples").GetArrayLength() == 761, "Battery experiment failed"); var batteryExport = (await Call("export_model_asset", new() { ["document"] = batteryDocument })).GetProperty("data"); byte[] batteryPayload = Convert.FromBase64String(batteryExport.GetProperty("content").GetString()!); -Require(batteryExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(batteryPayload)) == batteryExport.GetProperty("asset_sha256").GetString(), "Battery payload integrity differs"); +Require(batteryExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(batteryPayload)) == batteryExport.GetProperty("asset_sha256").GetString(), "Battery payload integrity differs"); var batteryAsset = AssetCodec.Decode(batteryPayload); var batteryPlayback = batteryAsset.CreatePlayback(); var batteryValues = new Power.Core.Scalar[batteryAsset.Model.OutputCount]; Require(batteryAsset.Nodes.Single(n => n.Id == 30).Battery!.PolarizationCapacitance.Unit == Power.Core.Unit.Farad, "Polarization parameters lost"); foreach (var boundary in batteryReport.GetProperty("samples").EnumerateArray()) @@ -426,7 +465,7 @@ async Task Call(string name, Dictionary? args = nu Require((await Call("read_snapshot", new() { ["session_id"] = batterySessionId })).GetProperty("data").GetRawText() == batteryParent.GetRawText(), "Battery/controller fork changed parent"); await Call("close_session", new() { ["session_id"] = batteryFork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = batterySessionId, ["expected_revision"] = "1" }); -Console.WriteLine("PASS MCP finite battery / charge and heat / complete replay / duty ownership / independent forks"); +PassGroup("MCP finite battery / charge and heat / complete replay / duty ownership / independent forks"); var pistonDocument = (await Call("get_example_model", new() { ["name"] = "piston-actuated-clutch" })).GetProperty("data"); Require(capabilities.GetProperty("hydraulic_piston").GetProperty("slider_domain").GetString() == "translational", "Piston contract missing"); var pistonValidation = (await Call("validate_model", new() { ["document"] = pistonDocument })).GetProperty("data"); @@ -435,7 +474,7 @@ async Task Call(string name, Dictionary? args = nu Require(pistonReport.GetProperty("passed").GetBoolean() && pistonReport.GetProperty("samples").GetArrayLength() == 761, "Piston experiment failed"); var pistonExport = (await Call("export_model_asset", new() { ["document"] = pistonDocument })).GetProperty("data"); byte[] pistonPayload = Convert.FromBase64String(pistonExport.GetProperty("content").GetString()!); -Require(pistonExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(pistonPayload)) == pistonExport.GetProperty("asset_sha256").GetString(), "Piston payload integrity differs"); +Require(pistonExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(pistonPayload)) == pistonExport.GetProperty("asset_sha256").GetString(), "Piston payload integrity differs"); var pistonAsset = AssetCodec.Decode(pistonPayload); var pistonPlayback = pistonAsset.CreatePlayback(); var pistonValues = new Power.Core.Scalar[pistonAsset.Model.OutputCount]; Require(pistonAsset.Components.Single(c => c.Id == 17).PistonClutch!.PistonComponent == 22, "Contact ownership lost"); foreach (var boundary in pistonReport.GetProperty("samples").EnumerateArray()) @@ -461,14 +500,14 @@ async Task Call(string name, Dictionary? args = nu Require((await Call("read_snapshot", new() { ["session_id"] = pistonSessionId })).GetProperty("data").GetRawText() == pistonParent.GetRawText(), "Piston fork changed parent"); await Call("close_session", new() { ["session_id"] = pistonFork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = pistonSessionId, ["expected_revision"] = "1" }); -Console.WriteLine("PASS MCP dynamic piston / contact-derived force / every portable boundary / revision and independent fork"); +PassGroup("MCP dynamic piston / contact-derived force / every portable boundary / revision and independent fork"); var spoolDocument = (await Call("get_example_model", new() { ["name"] = "spool-regulated-pump" })).GetProperty("data"); Require(capabilities.GetProperty("hydraulic_spool_valve").GetProperty("position_unit").GetString() == "m", "Spool contract missing"); var spoolReport = (await Call("run_experiment", new() { ["document"] = spoolDocument, ["include_samples"] = true })).GetProperty("data"); Require(spoolReport.GetProperty("passed").GetBoolean() && spoolReport.GetProperty("samples").GetArrayLength() == 156, "Spool experiment failed"); var spoolExport = (await Call("export_model_asset", new() { ["document"] = spoolDocument })).GetProperty("data"); byte[] spoolPayload = Convert.FromBase64String(spoolExport.GetProperty("content").GetString()!); -Require(spoolExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(spoolPayload)) == spoolExport.GetProperty("asset_sha256").GetString(), "Spool asset integrity differs"); +Require(spoolExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(spoolPayload)) == spoolExport.GetProperty("asset_sha256").GetString(), "Spool asset integrity differs"); var spoolAsset = AssetCodec.Decode(spoolPayload); var spoolPlayback = spoolAsset.CreatePlayback(); var spoolValues = new Power.Core.Scalar[spoolAsset.Model.OutputCount]; Require(spoolAsset.Model.HasSpoolValves && spoolAsset.Model.Fidelity == "mechanically_regulated_hydraulics" && spoolAsset.Components.Single(c => c.Id == 14).SpoolValve!.PistonComponent == 21, "Spool topology lost"); foreach (var boundary in spoolReport.GetProperty("samples").EnumerateArray()) @@ -485,14 +524,14 @@ async Task Call(string name, Dictionary? args = nu await Call("set_inputs", new() { ["session_id"] = spoolSessionId, ["expected_revision"] = "0", ["values"] = new[] { new { channel = Power.Core.Channels.Output(14, Power.Core.Field.Opening).ToString(), value = 1 } } }, true); Require((await Call("read_snapshot", new() { ["session_id"] = spoolSessionId })).GetProperty("data").GetProperty("state_hash").GetString() == spoolCreated.GetProperty("snapshot").GetProperty("state_hash").GetString(), "Rejected spool write changed state"); await Call("close_session", new() { ["session_id"] = spoolSessionId, ["expected_revision"] = "0" }); -Console.WriteLine("PASS MCP mechanical spool regulation / passive metering / complete asset replay / physical opening ownership"); +PassGroup("MCP mechanical spool regulation / passive metering / complete asset replay / physical opening ownership"); var accumulatorDocument = (await Call("get_example_model", new() { ["name"] = "gas-accumulator-pump" })).GetProperty("data"); Require(capabilities.GetProperty("gas_piston").GetProperty("motion_domain").GetString() == "translational", "Gas piston contract missing"); var accumulatorReport = (await Call("run_experiment", new() { ["document"] = accumulatorDocument, ["include_samples"] = true })).GetProperty("data"); Require(accumulatorReport.GetProperty("passed").GetBoolean() && accumulatorReport.GetProperty("samples").GetArrayLength() == 306, "Accumulator experiment failed"); var accumulatorExport = (await Call("export_model_asset", new() { ["document"] = accumulatorDocument })).GetProperty("data"); byte[] accumulatorPayload = Convert.FromBase64String(accumulatorExport.GetProperty("content").GetString()!); -Require(accumulatorExport.GetProperty("format").GetString() == "power.asset.v24" && Convert.ToHexStringLower(SHA256.HashData(accumulatorPayload)) == accumulatorExport.GetProperty("asset_sha256").GetString(), "Accumulator asset integrity differs"); +Require(accumulatorExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(accumulatorPayload)) == accumulatorExport.GetProperty("asset_sha256").GetString(), "Accumulator asset integrity differs"); var accumulatorAsset = AssetCodec.Decode(accumulatorPayload); var accumulatorPlayback = accumulatorAsset.CreatePlayback(); var accumulatorValues = new Power.Core.Scalar[accumulatorAsset.Model.OutputCount]; Require(accumulatorAsset.Model.HasGasPistons && accumulatorAsset.Model.Fidelity == "gas_accumulator_powertrain", "Gas-fluid geometry lost"); foreach (var boundary in accumulatorReport.GetProperty("samples").EnumerateArray()) @@ -515,13 +554,13 @@ async Task Call(string name, Dictionary? args = nu Require((await Call("read_snapshot", new() { ["session_id"] = accumulatorId })).GetProperty("data").GetRawText() == accumulatorParent.GetRawText(), "Gas-fluid fork changed parent"); await Call("close_session", new() { ["session_id"] = accumulatorFork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = accumulatorId, ["expected_revision"] = "1" }); -Console.WriteLine("PASS MCP gas accumulator / actual energy and temperature / complete asset replay / gas-fluid fork independence"); +PassGroup("MCP gas accumulator / actual energy and temperature / complete asset replay / gas-fluid fork independence"); var meteredDocument=(await Call("get_example_model",new(){["name"]="metered-fired-cylinder"})).GetProperty("data"); Require(capabilities.GetProperty("gas_fuel_injector").GetProperty("input_unit").GetString()=="kg","Fuel dose contract missing"); var meteredReport=(await Call("run_experiment",new(){["document"]=meteredDocument,["include_samples"]=true})).GetProperty("data"); Require(meteredReport.GetProperty("passed").GetBoolean()&&meteredReport.GetProperty("samples").GetArrayLength()==65,"Metered burn experiment failed"); var meteredExport=(await Call("export_model_asset",new(){["document"]=meteredDocument})).GetProperty("data");byte[] meteredPayload=Convert.FromBase64String(meteredExport.GetProperty("content").GetString()!); -Require(meteredExport.GetProperty("format").GetString()=="power.asset.v24"&&Convert.ToHexStringLower(SHA256.HashData(meteredPayload))==meteredExport.GetProperty("asset_sha256").GetString(),"Metered asset integrity differs"); +Require(meteredExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(meteredPayload))==meteredExport.GetProperty("asset_sha256").GetString(),"Metered asset integrity differs"); var meteredAsset=AssetCodec.Decode(meteredPayload);var meteredPlayback=meteredAsset.CreatePlayback();var meteredValues=new Power.Core.Scalar[meteredAsset.Model.OutputCount]; Require(meteredAsset.Model.HasFuelInjectors&&meteredAsset.Model.Fidelity=="metered_fired_powertrain","Metered topology missing"); foreach(var boundary in meteredReport.GetProperty("samples").EnumerateArray()) @@ -537,43 +576,43 @@ async Task Call(string name, Dictionary? args = nu await Call("set_inputs",new(){["session_id"]=meteredFork,["expected_revision"]="0",["values"]=new[]{new{channel="104",value=0.0}}});await Call("step_session",new(){["session_id"]=meteredFork,["expected_revision"]="1",["delta_ns"]="20000000"}); Require((await Call("read_snapshot",new(){["session_id"]=meteredId})).GetProperty("data").GetRawText()==meteredParent.GetRawText(),"Fuel-controller fork changed parent"); await Call("close_session",new(){["session_id"]=meteredFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=meteredId,["expected_revision"]="1"}); -Console.WriteLine("PASS MCP finite fuel rail / cycle dose contract / every export boundary / invalid quota and independent fork"); +PassGroup("MCP finite fuel rail / cycle dose contract / every export boundary / invalid quota and independent fork"); var filmDocument=(await Call("get_example_model",new(){["name"]="film-fired-cylinder"})).GetProperty("data");Require(capabilities.GetProperty("fuel_film").GetProperty("wall").GetString()=="Finite thermal node","Film contract missing"); var filmReport=(await Call("run_experiment",new(){["document"]=filmDocument,["include_samples"]=true})).GetProperty("data");Require(filmReport.GetProperty("passed").GetBoolean()&&filmReport.GetProperty("samples").GetArrayLength()==63,"Film experiment failed"); -var filmExport=(await Call("export_model_asset",new(){["document"]=filmDocument})).GetProperty("data");byte[] filmPayload=Convert.FromBase64String(filmExport.GetProperty("content").GetString()!);Require(filmExport.GetProperty("format").GetString()=="power.asset.v24"&&Convert.ToHexStringLower(SHA256.HashData(filmPayload))==filmExport.GetProperty("asset_sha256").GetString(),"Film asset digest differs"); +var filmExport=(await Call("export_model_asset",new(){["document"]=filmDocument})).GetProperty("data");byte[] filmPayload=Convert.FromBase64String(filmExport.GetProperty("content").GetString()!);Require(filmExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(filmPayload))==filmExport.GetProperty("asset_sha256").GetString(),"Film asset digest differs"); var filmAsset=AssetCodec.Decode(filmPayload);var filmPlayback=filmAsset.CreatePlayback();var filmValues=new Power.Core.Scalar[filmAsset.Model.OutputCount];Require(filmAsset.Model.HasFuelFilms&&filmAsset.Model.Fidelity=="film_evaporation_fired_powertrain","Phase model lost"); foreach(var boundary in filmReport.GetProperty("samples").EnumerateArray()) {ulong at=boundary.GetProperty("time_ns").GetUInt64();while(filmPlayback.TimeNanosecondsv.Value==boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()),"Phase history differs");} var filmCreated=(await Call("create_session",new(){["document"]=filmDocument})).GetProperty("data");string filmId=filmCreated.GetProperty("session_id").GetString()!;await Call("step_session",new(){["session_id"]=filmId,["expected_revision"]="1",["delta_ns"]="20000000"},true);Require((await Call("read_snapshot",new(){["session_id"]=filmId})).GetProperty("data").GetProperty("state_hash").GetString()==filmCreated.GetProperty("snapshot").GetProperty("state_hash").GetString(),"Film conflict mutated state"); await Call("step_session",new(){["session_id"]=filmId,["expected_revision"]="0",["delta_ns"]="20000000"});var filmParent=(await Call("read_snapshot",new(){["session_id"]=filmId})).GetProperty("data");string filmFork=(await Call("fork_session",new(){["session_id"]=filmId,["expected_revision"]="1"})).GetProperty("data").GetProperty("session_id").GetString()!;await Call("set_inputs",new(){["session_id"]=filmFork,["expected_revision"]="0",["values"]=new[]{new{channel="103",value=0.0}}});await Call("step_session",new(){["session_id"]=filmFork,["expected_revision"]="1",["delta_ns"]="20000000"});Require((await Call("read_snapshot",new(){["session_id"]=filmId})).GetProperty("data").GetRawText()==filmParent.GetRawText(),"Film fork changed parent");await Call("close_session",new(){["session_id"]=filmFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=filmId,["expected_revision"]="1"}); -Console.WriteLine("PASS MCP finite liquid phase / heat budget / vapor-only reactant / every export boundary / phase fork"); +PassGroup("MCP finite liquid phase / heat budget / vapor-only reactant / every export boundary / phase fork"); var liquidDocument=(await Call("get_example_model",new(){["name"]="liquid-injected-cylinder"})).GetProperty("data");Require(capabilities.GetProperty("liquid_fuel_injector").GetProperty("density_unit").GetString()=="kg_m3","Liquid contract missing"); var liquidReport=(await Call("run_experiment",new(){["document"]=liquidDocument,["include_samples"]=true})).GetProperty("data");Require(liquidReport.GetProperty("passed").GetBoolean()&&liquidReport.GetProperty("samples").GetArrayLength()==65,"Liquid experiment failed"); -var liquidExport=(await Call("export_model_asset",new(){["document"]=liquidDocument})).GetProperty("data");byte[] liquidPayload=Convert.FromBase64String(liquidExport.GetProperty("content").GetString()!);Require(liquidExport.GetProperty("format").GetString()=="power.asset.v24"&&Convert.ToHexStringLower(SHA256.HashData(liquidPayload))==liquidExport.GetProperty("asset_sha256").GetString(),"Liquid asset digest differs"); +var liquidExport=(await Call("export_model_asset",new(){["document"]=liquidDocument})).GetProperty("data");byte[] liquidPayload=Convert.FromBase64String(liquidExport.GetProperty("content").GetString()!);Require(liquidExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(liquidPayload))==liquidExport.GetProperty("asset_sha256").GetString(),"Liquid asset digest differs"); var liquidAsset=AssetCodec.Decode(liquidPayload);var liquidPlayback=liquidAsset.CreatePlayback();var liquidValues=new Power.Core.Scalar[liquidAsset.Model.OutputCount];Require(liquidAsset.Model.HasLiquidFuelInjectors&&liquidAsset.Model.Fidelity=="liquid_injected_fired_powertrain","Phase model lost"); foreach(var boundary in liquidReport.GetProperty("samples").EnumerateArray()) {ulong at=boundary.GetProperty("time_ns").GetUInt64();while(liquidPlayback.TimeNanosecondsv.Value==boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()),"Phase history differs");} var liquidCreated=(await Call("create_session",new(){["document"]=liquidDocument})).GetProperty("data");string liquidId=liquidCreated.GetProperty("session_id").GetString()!;await Call("step_session",new(){["session_id"]=liquidId,["expected_revision"]="1",["delta_ns"]="20000000"},true);Require((await Call("read_snapshot",new(){["session_id"]=liquidId})).GetProperty("data").GetProperty("state_hash").GetString()==liquidCreated.GetProperty("snapshot").GetProperty("state_hash").GetString(),"Liquid conflict mutated state"); await Call("step_session",new(){["session_id"]=liquidId,["expected_revision"]="0",["delta_ns"]="20000000"});var liquidParent=(await Call("read_snapshot",new(){["session_id"]=liquidId})).GetProperty("data");string liquidFork=(await Call("fork_session",new(){["session_id"]=liquidId,["expected_revision"]="1"})).GetProperty("data").GetProperty("session_id").GetString()!;await Call("set_inputs",new(){["session_id"]=liquidFork,["expected_revision"]="0",["values"]=new[]{new{channel="104",value=0.0}}});await Call("step_session",new(){["session_id"]=liquidFork,["expected_revision"]="1",["delta_ns"]="20000000"});Require((await Call("read_snapshot",new(){["session_id"]=liquidId})).GetProperty("data").GetRawText()==liquidParent.GetRawText(),"Liquid fork changed parent");await Call("close_session",new(){["session_id"]=liquidFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=liquidId,["expected_revision"]="1"}); -Console.WriteLine("PASS MCP finite compliant liquid rail / pressure heat and vapor-only reaction / every export boundary / independent fork"); +PassGroup("MCP finite compliant liquid rail / pressure heat and vapor-only reaction / every export boundary / independent fork"); var needleDocument=(await Call("get_example_model",new(){["name"]="needle-actuated-cylinder"})).GetProperty("data");Require(capabilities.GetProperty("needle_actuation").GetProperty("gradient_unit").GetString()=="h_m","Needle contract missing"); var needleReport=(await Call("run_experiment",new(){["document"]=needleDocument,["include_samples"]=true})).GetProperty("data");Require(needleReport.GetProperty("passed").GetBoolean()&&needleReport.GetProperty("samples").GetArrayLength()==65,"Needle experiment failed"); -var needleExport=(await Call("export_model_asset",new(){["document"]=needleDocument})).GetProperty("data");byte[] needlePayload=Convert.FromBase64String(needleExport.GetProperty("content").GetString()!);Require(needleExport.GetProperty("format").GetString()=="power.asset.v24"&&Convert.ToHexStringLower(SHA256.HashData(needlePayload))==needleExport.GetProperty("asset_sha256").GetString(),"Needle asset digest differs"); +var needleExport=(await Call("export_model_asset",new(){["document"]=needleDocument})).GetProperty("data");byte[] needlePayload=Convert.FromBase64String(needleExport.GetProperty("content").GetString()!);Require(needleExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(needlePayload))==needleExport.GetProperty("asset_sha256").GetString(),"Needle asset digest differs"); var needleAsset=AssetCodec.Decode(needlePayload);var needlePlayback=needleAsset.CreatePlayback();var needleValues=new Power.Core.Scalar[needleAsset.Model.OutputCount];Require(needleAsset.Model.HasNeedleInjectors&&needleAsset.Model.Fidelity=="needle_actuated_fired_powertrain","Phase model lost"); foreach(var boundary in needleReport.GetProperty("samples").EnumerateArray()) {ulong at=boundary.GetProperty("time_ns").GetUInt64();while(needlePlayback.TimeNanosecondsv.Value==boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()),"Phase history differs");} var needleCreated=(await Call("create_session",new(){["document"]=needleDocument})).GetProperty("data");string needleId=needleCreated.GetProperty("session_id").GetString()!;await Call("step_session",new(){["session_id"]=needleId,["expected_revision"]="1",["delta_ns"]="20000000"},true);Require((await Call("read_snapshot",new(){["session_id"]=needleId})).GetProperty("data").GetProperty("state_hash").GetString()==needleCreated.GetProperty("snapshot").GetProperty("state_hash").GetString(),"Needle conflict mutated state"); await Call("step_session",new(){["session_id"]=needleId,["expected_revision"]="0",["delta_ns"]="20000000"});var needleParent=(await Call("read_snapshot",new(){["session_id"]=needleId})).GetProperty("data");string needleFork=(await Call("fork_session",new(){["session_id"]=needleId,["expected_revision"]="1"})).GetProperty("data").GetProperty("session_id").GetString()!;await Call("set_inputs",new(){["session_id"]=needleFork,["expected_revision"]="0",["values"]=new[]{new{channel="104",value=0.0}}});await Call("step_session",new(){["session_id"]=needleFork,["expected_revision"]="1",["delta_ns"]="20000000"});Require((await Call("read_snapshot",new(){["session_id"]=needleId})).GetProperty("data").GetRawText()==needleParent.GetRawText(),"Needle fork changed parent");await Call("close_session",new(){["session_id"]=needleFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=needleId,["expected_revision"]="1"}); -Console.WriteLine("PASS MCP electromagnetic needle / actual delivery magnetic heat and controlled voltage / every export boundary / independent fork"); +PassGroup("MCP electromagnetic needle / actual delivery magnetic heat and controlled voltage / every export boundary / independent fork"); var closureDocument=(await Call("get_example_model",new(){["name"]="closure-compensated-cylinder"})).GetProperty("data");Require(capabilities.GetProperty("closure_prediction").GetProperty("max_physical_ticks").GetInt32()==4096,"Closure contract missing"); var closureReport=(await Call("run_experiment",new(){["document"]=closureDocument,["include_samples"]=true})).GetProperty("data");Require(closureReport.GetProperty("passed").GetBoolean()&&closureReport.GetProperty("samples").GetArrayLength()==65,"Closure experiment failed"); -var closureExport=(await Call("export_model_asset",new(){["document"]=closureDocument})).GetProperty("data");byte[] closurePayload=Convert.FromBase64String(closureExport.GetProperty("content").GetString()!);Require(closureExport.GetProperty("format").GetString()=="power.asset.v24"&&Convert.ToHexStringLower(SHA256.HashData(closurePayload))==closureExport.GetProperty("asset_sha256").GetString(),"Closure asset digest differs"); +var closureExport=(await Call("export_model_asset",new(){["document"]=closureDocument})).GetProperty("data");byte[] closurePayload=Convert.FromBase64String(closureExport.GetProperty("content").GetString()!);Require(closureExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(closurePayload))==closureExport.GetProperty("asset_sha256").GetString(),"Closure asset digest differs"); var closureAsset=AssetCodec.Decode(closurePayload);var closurePlayback=closureAsset.CreatePlayback();var closureValues=new Power.Core.Scalar[closureAsset.Model.OutputCount];Require(closureAsset.Model.HasClosurePrediction&&closureAsset.Model.Fidelity=="closure_compensated_fired_powertrain","Phase model lost"); foreach(var boundary in closureReport.GetProperty("samples").EnumerateArray()) {ulong at=boundary.GetProperty("time_ns").GetUInt64();while(closurePlayback.TimeNanosecondsv.Value==boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()),"Phase history differs");} var closureCreated=(await Call("create_session",new(){["document"]=closureDocument})).GetProperty("data");string closureId=closureCreated.GetProperty("session_id").GetString()!;await Call("step_session",new(){["session_id"]=closureId,["expected_revision"]="1",["delta_ns"]="20000000"},true);Require((await Call("read_snapshot",new(){["session_id"]=closureId})).GetProperty("data").GetProperty("state_hash").GetString()==closureCreated.GetProperty("snapshot").GetProperty("state_hash").GetString(),"Closure conflict mutated state"); await Call("step_session",new(){["session_id"]=closureId,["expected_revision"]="0",["delta_ns"]="20000000"});var closureParent=(await Call("read_snapshot",new(){["session_id"]=closureId})).GetProperty("data");string closureFork=(await Call("fork_session",new(){["session_id"]=closureId,["expected_revision"]="1"})).GetProperty("data").GetProperty("session_id").GetString()!;await Call("set_inputs",new(){["session_id"]=closureFork,["expected_revision"]="0",["values"]=new[]{new{channel="104",value=0.0}}});await Call("step_session",new(){["session_id"]=closureFork,["expected_revision"]="1",["delta_ns"]="20000000"});Require((await Call("read_snapshot",new(){["session_id"]=closureId})).GetProperty("data").GetRawText()==closureParent.GetRawText(),"Closure fork changed parent");await Call("close_session",new(){["session_id"]=closureFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=closureId,["expected_revision"]="1"}); -Console.WriteLine("PASS MCP closure compensation / bounded future replay and actual dose / every export boundary / independent fork"); +PassGroup("MCP closure compensation / bounded future replay and actual dose / every export boundary / independent fork"); foreach (string dctName in new[] { "dual-clutch-transmission", "fired-dual-clutch" }) { var dctDocument = (await Call("get_example_model", new() { ["name"] = dctName })).GetProperty("data"); @@ -601,7 +640,7 @@ async Task Call(string name, Dictionary? args = nu Require((await Call("read_snapshot", new() { ["session_id"] = dctId })).GetProperty("data").GetRawText() == dctParent.GetRawText(), "DCT fork changed parent"); await Call("close_session", new() { ["session_id"] = dctFork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = dctId, ["expected_revision"] = "1" }); - Console.WriteLine("PASS MCP DCT " + dctName + " / complete gear-clutch graph replay / selectors and independent fork"); + PassGroup("MCP DCT " + dctName + " / complete gear-clutch graph replay / selectors and independent fork"); } foreach (string controlledName in new[] { "controlled-dual-clutch", "controlled-fired-dual-clutch" }) { @@ -627,7 +666,7 @@ async Task Call(string name, Dictionary? args = nu await Call("step_session", new() { ["session_id"] = fork, ["expected_revision"] = "1", ["delta_ns"] = "20000000" }); Require((await Call("read_snapshot", new() { ["session_id"] = tcuSession })).GetProperty("data").GetRawText() == parent.GetRawText(), "TCU fork changed parent"); await Call("close_session", new() { ["session_id"] = fork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = tcuSession, ["expected_revision"] = "1" }); - Console.WriteLine("PASS MCP " + controlledName + " / actual sampled TCU histories / owned commands and independent fork"); + PassGroup("MCP " + controlledName + " / actual sampled TCU histories / owned commands and independent fork"); } foreach (string name in new[] { "ravigneaux-transmission", "fired-ravigneaux-converter", "resolved-ravigneaux-transmission", "fired-resolved-ravigneaux-converter", "hydraulic-ravigneaux-transmission", "fired-hydraulic-ravigneaux" }) { @@ -653,6 +692,399 @@ async Task Call(string name, Dictionary? args = nu await Call("step_session", new() { ["session_id"] = fork, ["expected_revision"] = "1", ["delta_ns"] = "20000000" }); Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetRawText() == parent.GetRawText(), "Compound fork changed parent"); await Call("close_session", new() { ["session_id"] = fork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "1" }); - Console.WriteLine("PASS MCP " + name + " / compound ports reactions and heat / complete replay and independent fork"); + PassGroup("MCP " + name + " / compound ports reactions and heat / complete replay and independent fork"); +} +foreach (string atName in new[] { "controlled-hydraulic-ravigneaux", "controlled-fired-hydraulic-ravigneaux" }) +{ + var atDocument = (await Call("get_example_model", new() { ["name"] = atName })).GetProperty("data"); + var atReport = (await Call("run_experiment", new() { ["document"] = atDocument, ["include_samples"] = true })).GetProperty("data"); + Require(atReport.GetProperty("passed").GetBoolean(), "AT feedback experiment failed"); + var atExport = (await Call("export_model_asset", new() { ["document"] = atDocument })).GetProperty("data"); + byte[] atPayload = Convert.FromBase64String(atExport.GetProperty("content").GetString()!); + Require(atExport.GetProperty("format").GetString() == AssetCodec.FormatName && Convert.ToHexStringLower(SHA256.HashData(atPayload)) == atExport.GetProperty("asset_sha256").GetString(), "AT asset integrity differs"); + var atAsset = AssetCodec.Decode(atPayload); var atPlayback = atAsset.CreatePlayback(); var atValues = new Power.Core.Scalar[atAsset.Model.OutputCount]; + Require(atAsset.Model.Fidelity == "sampled_hydraulic_at_control" && atAsset.Model.StateCount <= 128, "AT control state lost"); + foreach (var boundary in atReport.GetProperty("samples").EnumerateArray()) + { + ulong at = boundary.GetProperty("time_ns").GetUInt64(); while (atPlayback.TimeNanoseconds < at) Require(atPlayback.Advance(Math.Min(257 * atAsset.Model.StepNanoseconds, at - atPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "AT playback failed"); + Require(atPlayback.ReadSnapshot(atValues).StateHash.ToString("x16") == boundary.GetProperty("state_hash").GetString() && atValues.All(v => v.Value == boundary.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "AT sampled histories differ"); + } + string atSession = (await Call("create_session", new() { ["document"] = atDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + var atOwned = await Call("set_inputs", new() { ["session_id"] = atSession, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "702", value = 1.0 } } }, true); + Require(atOwned.GetProperty("error").GetProperty("message").GetString()!.Contains("900"), "AT owned-channel guidance missing"); + await Call("set_inputs", new() { ["session_id"] = atSession, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "900", value = 1.5 } } }, true); + await Call("step_session", new() { ["session_id"] = atSession, ["expected_revision"] = "0", ["delta_ns"] = "2000000" }); + var parent = (await Call("read_snapshot", new() { ["session_id"] = atSession })).GetProperty("data"); + string fork = (await Call("fork_session", new() { ["session_id"] = atSession, ["expected_revision"] = "1" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = fork, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "900", value = 0.0 } } }); + await Call("step_session", new() { ["session_id"] = fork, ["expected_revision"] = "1", ["delta_ns"] = "2000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = atSession })).GetProperty("data").GetRawText() == parent.GetRawText(), "AT neutral fork changed parent"); + await Call("close_session", new() { ["session_id"] = fork, ["expected_revision"] = "2" }); await Call("close_session", new() { ["session_id"] = atSession, ["expected_revision"] = "1" }); + PassGroup("MCP " + atName + " / sampled pressure range and lockup histories / owned channels and independent fork"); +} +foreach (string feedName in new[] { "pump-fed-liquid-cylinder", "pump-fed-needle-cylinder", "finite-tank-liquid-cylinder", "finite-tank-needle-cylinder", "recirculating-liquid-cylinder", "recirculating-needle-cylinder" }) +{ + var feedDocument=(await Call("get_example_model",new(){["name"]=feedName})).GetProperty("data"); + var feedReport=(await Call("run_experiment",new(){["document"]=feedDocument,["include_samples"]=true})).GetProperty("data");Require(feedReport.GetProperty("passed").GetBoolean(),"Pump-fed experiment failed"); + var feedExport=(await Call("export_model_asset",new(){["document"]=feedDocument})).GetProperty("data");byte[] feedPayload=Convert.FromBase64String(feedExport.GetProperty("content").GetString()!); + Require(feedExport.GetProperty("format").GetString()==AssetCodec.FormatName&&Convert.ToHexStringLower(SHA256.HashData(feedPayload))==feedExport.GetProperty("asset_sha256").GetString(),"Feed export integrity differs"); + var feedAsset=AssetCodec.Decode(feedPayload);var feedPlayback=feedAsset.CreatePlayback();var feedValues=new Power.Core.Scalar[feedAsset.Model.OutputCount]; + foreach(var row in feedReport.GetProperty("samples").EnumerateArray()) + { + ulong at=row.GetProperty("time_ns").GetUInt64();while(feedPlayback.TimeNanosecondsv.Value==row.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()),"Feed physical histories differ"); + } + string feedSession=(await Call("create_session",new(){["document"]=feedDocument})).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("step_session",new(){["session_id"]=feedSession,["expected_revision"]="0",["delta_ns"]="1000000"});var feedParent=(await Call("read_snapshot",new(){["session_id"]=feedSession})).GetProperty("data"); + string feedFork=(await Call("fork_session",new(){["session_id"]=feedSession,["expected_revision"]="1"})).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs",new(){["session_id"]=feedFork,["expected_revision"]="0",["values"]=new[]{new{channel="950",value=.01}}});await Call("step_session",new(){["session_id"]=feedFork,["expected_revision"]="1",["delta_ns"]="1000000"}); + Require((await Call("read_snapshot",new(){["session_id"]=feedSession})).GetProperty("data").GetRawText()==feedParent.GetRawText(),"Feed fork changed parent"); + await Call("close_session",new(){["session_id"]=feedFork,["expected_revision"]="2"});await Call("close_session",new(){["session_id"]=feedSession,["expected_revision"]="1"}); + PassGroup("MCP "+feedName+" / coupled shaft rail and mixed fuel inventory / complete replay and independent fork"); +} +foreach (string name in new[] { "vented-tank-liquid-cylinder", "vented-tank-needle-cylinder" }) +{ + var tankDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("liquid_fuel_tank").GetProperty("headspace").GetProperty("capacity_unit").GetString() == "m3", "Headspace contract is missing"); + var tankReport = (await Call("run_experiment", new() { ["document"] = tankDocument, ["include_samples"] = true })).GetProperty("data"); + Require(tankReport.GetProperty("passed").GetBoolean() && tankReport.GetProperty("model").GetProperty("fidelity").GetString() == "geometric_tank_liquid_fuel_powertrain", "Headspace experiment failed"); + var headspaceExport = (await Call("export_model_asset", new() { ["document"] = tankDocument })).GetProperty("data"); + var tankAsset = AssetCodec.Decode(Convert.FromBase64String(headspaceExport.GetProperty("content").GetString()!)); + Require(tankAsset.Model.HasTankHeadspaces && headspaceExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Headspace geometry was lost in export"); + var headspacePlayback = tankAsset.CreatePlayback(); var values = new Power.Core.Scalar[tankAsset.Model.OutputCount]; + foreach (var sample in tankReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (headspacePlayback.TimeNanoseconds < time) Require(headspacePlayback.Advance(Math.Min(257 * tankAsset.Model.StepNanoseconds, time - headspacePlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Headspace headspacePlayback failed"); + Require(headspacePlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString(), "Headspace replay hash differs"); + } + var session = (await Call("create_session", new() { ["document"] = tankDocument })).GetProperty("data"); + string sessionId = session.GetProperty("session_id").GetString()!; + var headspaceChild = (await Call("fork_session", new() { ["session_id"] = sessionId, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = headspaceChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "960", value = 0.0 } } }); + await Call("step_session", new() { ["session_id"] = headspaceChild, ["expected_revision"] = "1", ["delta_ns"] = "10000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = sessionId })).GetProperty("data").GetProperty("revision").GetString() == "0", "Vent branch changed its parent"); + await Call("close_session", new() { ["session_id"] = headspaceChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = sessionId, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / dynamic headspace vent ownership complete portable replay and independent branches"); +} +foreach (var (name, vent) in new[] { ("equilibrium-fuel-cell", 1d), ("equilibrium-injected-cylinder", 0d) }) +{ + var equilibriumDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("fuel_film").GetProperty("phase_equilibrium").GetProperty("required_parameters").GetArrayLength() == 3, "Phase contract is missing"); + var equilibriumReport = (await Call("run_experiment", new() { ["document"] = equilibriumDocument, ["include_samples"] = true })).GetProperty("data"); + Require(equilibriumReport.GetProperty("passed").GetBoolean() && equilibriumReport.GetProperty("model").GetProperty("fidelity").GetString() == "equilibrium_liquid_fuel_powertrain", "Equilibrium experiment failed"); + var equilibriumExport = (await Call("export_model_asset", new() { ["document"] = equilibriumDocument })).GetProperty("data"); + var equilibriumAsset = AssetCodec.Decode(Convert.FromBase64String(equilibriumExport.GetProperty("content").GetString()!)); + Require(equilibriumAsset.Model.HasEquilibriumFuelFilms && equilibriumExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Phase properties were lost in export"); + var equilibriumPlayback = equilibriumAsset.CreatePlayback(); var equilibriumValues = new Power.Core.Scalar[equilibriumAsset.Model.OutputCount]; + foreach (var equilibriumSample in equilibriumReport.GetProperty("samples").EnumerateArray()) + { + ulong at = equilibriumSample.GetProperty("time_ns").GetUInt64(); + while (equilibriumPlayback.TimeNanoseconds < at) Require(equilibriumPlayback.Advance(Math.Min(257 * equilibriumAsset.Model.StepNanoseconds, at - equilibriumPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Equilibrium playback failed"); + Require(equilibriumPlayback.ReadSnapshot(equilibriumValues).StateHash.ToString("x16") == equilibriumSample.GetProperty("state_hash").GetString() && + equilibriumValues.All(value => value.Value == equilibriumSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Equilibrium replay differs"); + } + string equilibriumSession = (await Call("create_session", new() { ["document"] = equilibriumDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string equilibriumChild = (await Call("fork_session", new() { ["session_id"] = equilibriumSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = equilibriumChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "960", value = vent } } }); + await Call("step_session", new() { ["session_id"] = equilibriumChild, ["expected_revision"] = "1", ["delta_ns"] = "10000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = equilibriumSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Equilibrium branch changed its parent"); + await Call("close_session", new() { ["session_id"] = equilibriumChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = equilibriumSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / reversible phase supply margins portable replay and independent branches"); +} +foreach (var (name, channel, opening) in new[] { ("equilibrium-tank-supply", "110", 1d), ("equilibrium-tank-fired-cylinder", "960", 0d) }) +{ + var phaseTankDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("liquid_fuel_tank").GetProperty("headspace").GetProperty("phase_equilibrium").GetProperty("optional_boolean").GetString() == "phase_equilibrium", "Finite tank phase contract is missing"); + var phaseTankReport = (await Call("run_experiment", new() { ["document"] = phaseTankDocument, ["include_samples"] = true })).GetProperty("data"); + Require(phaseTankReport.GetProperty("passed").GetBoolean() && phaseTankReport.GetProperty("model").GetProperty("fidelity").GetString() == "equilibrium_tank_liquid_fuel_powertrain", "Tank phase experiment failed"); + var phaseTankExport = (await Call("export_model_asset", new() { ["document"] = phaseTankDocument })).GetProperty("data"); + var phaseTankAsset = AssetCodec.Decode(Convert.FromBase64String(phaseTankExport.GetProperty("content").GetString()!)); + Require(phaseTankAsset.Model.HasEquilibriumTanks && phaseTankExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Tank phase flag was lost"); + var phaseTankPlayback = phaseTankAsset.CreatePlayback(); var phaseTankValues = new Power.Core.Scalar[phaseTankAsset.Model.OutputCount]; + foreach (var phaseTankSample in phaseTankReport.GetProperty("samples").EnumerateArray()) + { + ulong at = phaseTankSample.GetProperty("time_ns").GetUInt64(); + while (phaseTankPlayback.TimeNanoseconds < at) Require(phaseTankPlayback.Advance(Math.Min(257 * phaseTankAsset.Model.StepNanoseconds, at - phaseTankPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Tank phase playback failed"); + Require(phaseTankPlayback.ReadSnapshot(phaseTankValues).StateHash.ToString("x16") == phaseTankSample.GetProperty("state_hash").GetString() && + phaseTankValues.All(value => value.Value == phaseTankSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Tank phase replay differs"); + } + string phaseTankSession = (await Call("create_session", new() { ["document"] = phaseTankDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string phaseTankChild = (await Call("fork_session", new() { ["session_id"] = phaseTankSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = phaseTankChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel, value = opening } } }); + await Call("step_session", new() { ["session_id"] = phaseTankChild, ["expected_revision"] = "1", ["delta_ns"] = "10000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = phaseTankSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Tank phase branch changed its parent"); + await Call("close_session", new() { ["session_id"] = phaseTankChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = phaseTankSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / finite liquid volume phase chemistry work and complete replay with independent branches"); +} +foreach (var (name, channel, opening) in new[] { ("equilibrium-fuel-network", "100", 0d), ("electrothermal-fuel-network", "1100", 0d) }) +{ + var fuelNetworkDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("equilibrium_fuel_network").GetProperty("domain").GetString() == "fuel", "Homogeneous fuel network contract is missing"); + var fuelNetworkReport = (await Call("run_experiment", new() { ["document"] = fuelNetworkDocument, ["include_samples"] = true })).GetProperty("data"); + Require(fuelNetworkReport.GetProperty("passed").GetBoolean() && fuelNetworkReport.GetProperty("model").GetProperty("fidelity").GetString() == "homogeneous_equilibrium_fuel_network", "Fuel network experiment failed"); + var fuelNetworkExport = (await Call("export_model_asset", new() { ["document"] = fuelNetworkDocument })).GetProperty("data"); + var fuelNetworkAsset = AssetCodec.Decode(Convert.FromBase64String(fuelNetworkExport.GetProperty("content").GetString()!)); + Require(fuelNetworkAsset.Model.HasEquilibriumFuelNetwork && fuelNetworkExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Fuel network flag was lost"); + var fuelNetworkPlayback = fuelNetworkAsset.CreatePlayback(); var fuelNetworkValues = new Power.Core.Scalar[fuelNetworkAsset.Model.OutputCount]; + foreach (var fuelNetworkSample in fuelNetworkReport.GetProperty("samples").EnumerateArray()) + { + ulong at = fuelNetworkSample.GetProperty("time_ns").GetUInt64(); + while (fuelNetworkPlayback.TimeNanoseconds < at) Require(fuelNetworkPlayback.Advance(Math.Min(257 * fuelNetworkAsset.Model.StepNanoseconds, at - fuelNetworkPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Fuel network playback failed"); + Require(fuelNetworkPlayback.ReadSnapshot(fuelNetworkValues).StateHash.ToString("x16") == fuelNetworkSample.GetProperty("state_hash").GetString() && + fuelNetworkValues.All(value => value.Value == fuelNetworkSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Fuel network replay differs"); + } + string fuelNetworkSession = (await Call("create_session", new() { ["document"] = fuelNetworkDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string fuelNetworkChild = (await Call("fork_session", new() { ["session_id"] = fuelNetworkSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = fuelNetworkChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel, value = opening } } }); + await Call("step_session", new() { ["session_id"] = fuelNetworkChild, ["expected_revision"] = "1", ["delta_ns"] = "10000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = fuelNetworkSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Fuel network branch changed its parent"); + await Call("close_session", new() { ["session_id"] = fuelNetworkChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = fuelNetworkSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / homogeneous two-phase enthalpy transport heat and every portable boundary with independent branches"); +} +foreach (var (name, channel, opening) in new[] { ("equilibrium-fuel-pump", "100", 0d), ("electric-equilibrium-fuel-pump", "100", 0d) }) +{ + var fuelPumpDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("fuel_chamber").GetProperty("component").GetString() == "fuel_chamber", "Moving fuel chamber contract is missing"); + var fuelPumpReport = (await Call("run_experiment", new() { ["document"] = fuelPumpDocument, ["include_samples"] = true })).GetProperty("data"); + Require(fuelPumpReport.GetProperty("passed").GetBoolean() && fuelPumpReport.GetProperty("model").GetProperty("fidelity").GetString() == "shaft_driven_equilibrium_fuel_pump", "Fuel pump experiment failed"); + var fuelPumpExport = (await Call("export_model_asset", new() { ["document"] = fuelPumpDocument })).GetProperty("data"); + var fuelPumpAsset = AssetCodec.Decode(Convert.FromBase64String(fuelPumpExport.GetProperty("content").GetString()!)); + Require(fuelPumpAsset.Model.HasFuelChambers && fuelPumpExport.GetProperty("format").GetString() == AssetCodec.FormatName, "Fuel pump flag was lost"); + var fuelPumpPlayback = fuelPumpAsset.CreatePlayback(); var fuelPumpValues = new Power.Core.Scalar[fuelPumpAsset.Model.OutputCount]; + foreach (var fuelPumpSample in fuelPumpReport.GetProperty("samples").EnumerateArray()) + { + ulong at = fuelPumpSample.GetProperty("time_ns").GetUInt64(); + while (fuelPumpPlayback.TimeNanoseconds < at) Require(fuelPumpPlayback.Advance(Math.Min(257 * fuelPumpAsset.Model.StepNanoseconds, at - fuelPumpPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Fuel pump playback failed"); + Require(fuelPumpPlayback.ReadSnapshot(fuelPumpValues).StateHash.ToString("x16") == fuelPumpSample.GetProperty("state_hash").GetString() && + fuelPumpValues.All(value => value.Value == fuelPumpSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Fuel pump replay differs"); + } + string fuelPumpSession = (await Call("create_session", new() { ["document"] = fuelPumpDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string fuelPumpChild = (await Call("fork_session", new() { ["session_id"] = fuelPumpSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = fuelPumpChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel, value = opening } } }); + await Call("step_session", new() { ["session_id"] = fuelPumpChild, ["expected_revision"] = "1", ["delta_ns"] = "10000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = fuelPumpSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Fuel pump branch changed its parent"); + await Call("close_session", new() { ["session_id"] = fuelPumpChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = fuelPumpSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / phase-resolving shaft-driven chamber work filling and every portable boundary with independent inlet branches"); +} +foreach (var (name, channel) in new[] { ("finite-volume-fuel-discharge", "100"), ("pump-fed-finite-volume-cylinder", "104") }) +{ + var dischargeDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + var malformedDischarge = System.Text.Json.Nodes.JsonNode.Parse(dischargeDocument.GetRawText())!; + var phaseParameters = malformedDischarge["components"]!.AsArray().Single(c => c!["kind"]!.GetValue() == "fuel_discharge")!["parameters"]!; + foreach (System.Text.Json.Nodes.JsonNode? mode in new System.Text.Json.Nodes.JsonNode?[] + { System.Text.Json.Nodes.JsonValue.Create(1), System.Text.Json.Nodes.JsonValue.Create(true), null }) + { + phaseParameters["phase_mode"] = mode; + using var malformedDocument = JsonDocument.Parse(malformedDischarge.ToJsonString()); + var phaseError = await Call("validate_model", new() { ["document"] = malformedDocument.RootElement }, expectError: true); + Require(phaseError.GetProperty("error").GetProperty("code").GetString() == "invalid_argument", "Malformed phase mode must return a structured input error"); + } + Require(capabilities.GetProperty("fuel_discharge").GetProperty("phase_mode").GetString() == "frozen", "Frozen discharge contract is missing"); + var dischargeReport = (await Call("run_experiment", new() { ["document"] = dischargeDocument, ["include_samples"] = true })).GetProperty("data"); + Require(dischargeReport.GetProperty("passed").GetBoolean() && dischargeReport.GetProperty("model").GetProperty("fidelity").GetString() == "finite_volume_fuel_discharge_powertrain", "Fuel discharge experiment failed"); + var dischargeExport = (await Call("export_model_asset", new() { ["document"] = dischargeDocument })).GetProperty("data"); + var dischargeAsset = AssetCodec.Decode(Convert.FromBase64String(dischargeExport.GetProperty("content").GetString()!)); + Require(dischargeAsset.Model.HasFuelDischarge && dischargeAsset.Model.HasFiniteFuelReceivers, "Finite receiver was lost"); + var dischargePlayback = dischargeAsset.CreatePlayback(); var dischargeValues = new Power.Core.Scalar[dischargeAsset.Model.OutputCount]; + foreach (var dischargeSample in dischargeReport.GetProperty("samples").EnumerateArray()) + { + ulong at = dischargeSample.GetProperty("time_ns").GetUInt64(); + while (dischargePlayback.TimeNanoseconds < at) Require(dischargePlayback.Advance(Math.Min(257 * dischargeAsset.Model.StepNanoseconds, at - dischargePlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Discharge playback failed"); + Require(dischargePlayback.ReadSnapshot(dischargeValues).StateHash.ToString("x16") == dischargeSample.GetProperty("state_hash").GetString() && + dischargeValues.All(value => value.Value == dischargeSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Discharge replay differs"); + } + string dischargeSession = (await Call("create_session", new() { ["document"] = dischargeDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string dischargeChild = (await Call("fork_session", new() { ["session_id"] = dischargeSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = dischargeChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel, value = 0d } } }); + await Call("step_session", new() { ["session_id"] = dischargeChild, ["expected_revision"] = "1", ["delta_ns"] = "1000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = dischargeSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Discharge branch changed its parent"); + await Call("close_session", new() { ["session_id"] = dischargeChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = dischargeSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / frozen choked discharge finite receiver and every portable boundary with independent admission branches"); +} +foreach (var (name, channel, opening) in new[] { ("inertial-fuel-line", "100", 1d), ("inertial-pump-fed-cylinder", "1100", 0d) }) +{ + var pipeDocument = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("fuel_inertial_pipe").GetProperty("component").GetString() == "fuel_inertial_pipe", "Inertial fuel contract is missing"); + var pipeReport = (await Call("run_experiment", new() { ["document"] = pipeDocument, ["include_samples"] = true })).GetProperty("data"); + Require(pipeReport.GetProperty("passed").GetBoolean() && pipeReport.GetProperty("model").GetProperty("fidelity").GetString() == "liquid_inertial_fuel_network", "Inertial pipe experiment failed"); + var pipeExport = (await Call("export_model_asset", new() { ["document"] = pipeDocument })).GetProperty("data"); + var pipeAsset = AssetCodec.Decode(Convert.FromBase64String(pipeExport.GetProperty("content").GetString()!)); + Require(pipeAsset.Model.HasFuelPipes, "Inertial line was lost"); + var pipePlayback = pipeAsset.CreatePlayback(); var pipeValues = new Power.Core.Scalar[pipeAsset.Model.OutputCount]; + foreach (var pipeSample in pipeReport.GetProperty("samples").EnumerateArray()) + { + ulong at = pipeSample.GetProperty("time_ns").GetUInt64(); + while (pipePlayback.TimeNanoseconds < at) Require(pipePlayback.Advance(Math.Min(257 * pipeAsset.Model.StepNanoseconds, at - pipePlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Inertial pipe playback failed"); + Require(pipePlayback.ReadSnapshot(pipeValues).StateHash.ToString("x16") == pipeSample.GetProperty("state_hash").GetString() && + pipeValues.All(value => value.Value == pipeSample.GetProperty("values").GetProperty(value.Channel.ToString()).GetDouble()), "Inertial pipe replay differs"); + } + string pipeSession = (await Call("create_session", new() { ["document"] = pipeDocument })).GetProperty("data").GetProperty("session_id").GetString()!; + string pipeChild = (await Call("fork_session", new() { ["session_id"] = pipeSession, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = pipeChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel, value = opening } } }); + await Call("step_session", new() { ["session_id"] = pipeChild, ["expected_revision"] = "1", ["delta_ns"] = "1000000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = pipeSession })).GetProperty("data").GetProperty("revision").GetString() == "0", "Inertial pipe branch changed parent"); + await Call("close_session", new() { ["session_id"] = pipeChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = pipeSession, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / finite line mass thermal momentum histories and every portable boundary with independent branches"); +} +foreach (string name in new[] { "equilibrium-fuel-condensing-duct", "equilibrium-fuel-flashing-duct" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("equilibrium_fuel_duct").GetProperty("domain").GetString() == "compressible_fuel", "Missing compressible duct contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasEquilibriumFuelDucts, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["delta_ns"] = "10000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / compressible phase momentum and every cell replay with independent branches"); +} +foreach (string name in new[] { "compressible-fuel-chamber-duct", "electric-compressible-fuel-duct" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("compressible_fuel_chamber").GetProperty("domain").GetString() == "compressible_fuel", "Missing compressible duct contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasCompressibleFuelChambers, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel = "200", value = 0d } } }); + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1", ["delta_ns"] = "10000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / shaft work and moving-volume duct replay with independent drive branches"); +} +foreach (string name in new[] { "compressible-fuel-nozzle", "compressible-pump-needle" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("compressible_fuel_nozzle").GetProperty("domain").GetString() == "compressible_fuel", "Missing compressible duct contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasCompressibleFuelNozzles, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel = name == "compressible-fuel-nozzle" ? "100" : "210", value = 0d } } }); + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1", ["delta_ns"] = "10000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / frozen compressible nozzle pump needle replay and independent closure branches"); +} +foreach (string name in new[] { "equilibrium-flashing-nozzle", "equilibrium-pump-needle" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("compressible_fuel_nozzle").GetProperty("domain").GetString() == "compressible_fuel", "Missing compressible duct contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasEquilibriumFuelNozzles, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("set_inputs", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["values"] = new[] { new { channel = name == "equilibrium-flashing-nozzle" ? "100" : "210", value = 0d } } }); + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1", ["delta_ns"] = "10000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "2" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / equilibrium phase flux enclosure complete replay and independent closure branches"); +} +foreach (string name in new[] { "relaxing-fuel-evaporation", "relaxing-fuel-duct" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("relaxing_fuel").GetProperty("domain").GetString() == "relaxing_fuel", "Missing finite-rate phase relaxation contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasRelaxingFuel, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["delta_ns"] = "200000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / finite-rate vapor quality transport complete replay and independent branches"); +} +foreach (string name in new[] { "relaxing-fuel-chamber", "relaxing-pump-needle" }) +{ + var document = (await Call("get_example_model", new() { ["name"] = name })).GetProperty("data"); + Require(capabilities.GetProperty("relaxing_fuel").GetProperty("domain").GetString() == "relaxing_fuel", "Missing finite-rate phase relaxation contract"); + var ductReport = (await Call("run_experiment", new() { ["document"] = document, ["include_samples"] = true })).GetProperty("data"); + Require(ductReport.GetProperty("passed").GetBoolean(), "Equilibrium duct experiment failed"); + var ductExport = (await Call("export_model_asset", new() { ["document"] = document })).GetProperty("data"); + var asset = AssetCodec.Decode(Convert.FromBase64String(ductExport.GetProperty("content").GetString()!)); + Require(asset.Model.HasRelaxingFuelBoundaries, "Duct state was lost"); + var ductPlayback = asset.CreatePlayback(); var values = new Power.Core.Scalar[asset.Model.OutputCount]; + foreach (var sample in ductReport.GetProperty("samples").EnumerateArray()) + { + ulong time = sample.GetProperty("time_ns").GetUInt64(); + while (ductPlayback.TimeNanoseconds < time) Require(ductPlayback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, time - ductPlayback.TimeNanoseconds)) == Power.Core.SimulationStatus.Ok, "Duct ductPlayback failed"); + Require(ductPlayback.ReadSnapshot(values).StateHash.ToString("x16") == sample.GetProperty("state_hash").GetString() && + values.All(v => v.Value == sample.GetProperty("values").GetProperty(v.Channel.ToString()).GetDouble()), "Duct cell replay differs"); + } + string session = (await Call("create_session", new() { ["document"] = document })).GetProperty("data").GetProperty("session_id").GetString()!; + string ductChild = (await Call("fork_session", new() { ["session_id"] = session, ["expected_revision"] = "0" })).GetProperty("data").GetProperty("session_id").GetString()!; + await Call("step_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "0", ["delta_ns"] = "200000" }); + Require((await Call("read_snapshot", new() { ["session_id"] = session })).GetProperty("data").GetProperty("revision").GetString() == "0", "Duct fork changed parent"); + await Call("close_session", new() { ["session_id"] = ductChild, ["expected_revision"] = "1" }); + await Call("close_session", new() { ["session_id"] = session, ["expected_revision"] = "0" }); + PassGroup("MCP " + name + " / finite-rate shaft work frozen vapor metering complete replay and independent branches"); } -Console.WriteLine("37/37 MCP integration groups passed against an actual child server process."); +Console.WriteLine($"{groupsPassed}/{groupsPassed} MCP integration groups passed against an actual child server process."); diff --git a/tests/Power.Tests/AgentChecks.cs b/tests/Power.Tests/AgentChecks.cs index d58b42d..fe8672e 100644 --- a/tests/Power.Tests/AgentChecks.cs +++ b/tests/Power.Tests/AgentChecks.cs @@ -5,6 +5,7 @@ using System.Text.Json; using System.Text.Json.Nodes; using Power.Agent; +using Power.Experiments; using static Power.Tests.CoreChecks; namespace Power.Tests; @@ -14,6 +15,8 @@ internal static class AgentChecks internal static IEnumerable<(string Name, Action Run)> All => [ ("agent discovery / structured model repair", Discovery), + ("laboratory catalog / complete sources bundled examples and immutable inventory", LaboratoryInventory), + ("agent capabilities / exact schema components and complete example discovery", CapabilityCoverage), ("agent revision conflicts / input atomicity / cancellation", Revisions), ("agent branch isolation / filtered snapshots / close", Branches), ("agent session capacity / reclamation", Capacity), @@ -47,6 +50,66 @@ private static void Discovery() Require(AgentWorkspace.ValidateModel(typo.RootElement).Error?.Code == "invalid_argument"); } + private static void LaboratoryInventory() + { + var entries = LaboratoryCatalog.Entries; + var sources = Directory.EnumerateFiles(AppContext.BaseDirectory, "*.power.json") + .Select(path => Path.GetFileName(path)[..^".power.json".Length]).ToHashSet(StringComparer.Ordinal); + Require(sources.SetEquals(entries.Select(lab => lab.Name)) && entries.Count == sources.Count); + Require(entries.Select(lab => lab.AssetName).Distinct(StringComparer.OrdinalIgnoreCase).Count() == entries.Count); + foreach (var lab in entries) + { + string source = File.ReadAllText(Path.Combine(AppContext.BaseDirectory, lab.Name + ".power.json")); + Require(LaboratoryCatalog.ReadSource(lab.Name) == source, "Bundled source differs: " + lab.Name); + Require(!string.IsNullOrWhiteSpace(lab.DisplayName)); + Require(ExperimentRunner.Validate(ModelDocument.Parse(source)).Calibration == "unverified"); + } + Throws(() => ((IList)entries)[0] = entries[0] with { Name = "changed" }); + Throws(() => LaboratoryCatalog.ReadSource("../electrothermal")); + Require(entries.Single(lab => !lab.AgentExample).Name == "thermal-network"); + } + + private static void CapabilityCoverage() + { + var capabilities = Data(AgentWorkspace.Capabilities()); + var advertised = capabilities.GetProperty("examples").EnumerateArray().Select(value => value.GetString()!).ToArray(); + var expected = LaboratoryCatalog.Entries.Where(lab => lab.AgentExample).Select(lab => lab.Name).ToArray(); + Require(advertised.SequenceEqual(expected) && advertised.Distinct().Count() == advertised.Length); + var components = capabilities.GetProperty("components").EnumerateArray().Select(value => value.GetString()!).ToArray(); + var schemaComponents = new HashSet(StringComparer.Ordinal); + void CollectKinds(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Object) + { + if (element.TryGetProperty("properties", out var properties) && properties.TryGetProperty("kind", out var kind) && + kind.TryGetProperty("const", out var name)) schemaComponents.Add(name.GetString()!); + foreach (var property in element.EnumerateObject()) CollectKinds(property.Value); + } + else if (element.ValueKind == JsonValueKind.Array) + foreach (var value in element.EnumerateArray()) CollectKinds(value); + } + CollectKinds(Data(AgentWorkspace.ModelSchema())); + Require(schemaComponents.SetEquals(components) && components.Distinct().Count() == components.Length, + "Components must match the model schema once each. Missing: " + string.Join(", ", schemaComponents.Except(components)) + + "; unexpected: " + string.Join(", ", components.Except(schemaComponents)) + + "; duplicates: " + string.Join(", ", components.GroupBy(name => name).Where(group => group.Count() > 1).Select(group => group.Key))); + foreach (string name in advertised) + { + var example = Data(AgentWorkspace.ExampleModel(name)); + var actual = Data(AgentWorkspace.ValidateModel(example)).GetProperty("model"); + var model = ExperimentRunner.Validate(ModelDocument.Parse(LaboratoryCatalog.ReadSource(name))); + Require(actual.GetProperty("fingerprint").GetString() == model.Fingerprint.ToString("x16")); + Require(example.GetProperty("components").EnumerateArray().All(component => schemaComponents.Contains(component.GetProperty("kind").GetString()!))); + } + Require(Data(AgentWorkspace.ExampleModel()).GetRawText() == Data(AgentWorkspace.ExampleModel("electrothermal")).GetRawText()); + foreach (string name in new[] { "unknown", "thermal-network", "Electrothermal", "../electrothermal" }) + { + var error = AgentWorkspace.ExampleModel(name).Error; + Require(error is { Code: "unknown_example", Field: "name" } && + error.Message == "Available examples: " + string.Join(", ", advertised) + "."); + } + } + private static void Revisions() { var (w, id) = Create(); diff --git a/tests/Power.Tests/AtControllerAssetChecks.cs b/tests/Power.Tests/AtControllerAssetChecks.cs new file mode 100644 index 0000000..a061275 --- /dev/null +++ b/tests/Power.Tests/AtControllerAssetChecks.cs @@ -0,0 +1,51 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class AtControllerAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("AT controller asset / routes pressure feedback clocks and PI state / complete replay / v24", Replay), + ("AT controller asset / bounded typed route records units and forged downgrade", Corruption) + ]; + private static PowerAsset Asset()=>PowerAsset.Create(AtControllerChecks.Model(),"Hydraulic AT feedback",new string('b',64),100_000_000,10_000_000,[],[]); + private static void Compare(PowerAsset a,PowerAsset b) + { + var left=a.CreatePlayback();var right=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount]; + for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds) + { + if(at>left.TimeNanoseconds)Require(left.Advance(at-left.TimeNanoseconds)==SimulationStatus.Ok); + while(right.TimeNanoseconds(()=>AssetCodec.Decode(bad));} + foreach(var change in new[]{(counts+140,-1),(counts+140,65),(counts+144,0),(counts+144,7),(record,-1),(record+16,4),(record+16,7),(record+208,999),(record+212,1234),(record+216,1230),(record+68,(int)Unit.Newton)}) + {var bad=source.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1),change.Item2);Reject(bad);} + var down=source.Take(counts+140).Concat(source.Skip(counts+160).Take(record-counts-160)).Concat(source.Skip(record+208+12*5)).ToArray(); + BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),24);Reject(down); + } +} diff --git a/tests/Power.Tests/AtControllerChecks.cs b/tests/Power.Tests/AtControllerChecks.cs new file mode 100644 index 0000000..c5c466f --- /dev/null +++ b/tests/Power.Tests/AtControllerChecks.cs @@ -0,0 +1,115 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class AtControllerChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("AT feedback / actual pressure contact and physical range lock / release before apply", Shifts), + ("AT feedback / signed reverse moving direction block / neutral recovery", Direction), + ("AT feedback / actual supply loss and apply timeout / safe vent and recovery", Faults), + ("AT feedback / blocked physical drain / release-timeout fault", ReleaseFault), + ("AT feedback / loss of confirmed torque capacity / observable unloaded fault", LockLoss), + ("AT feedback / integer target valve ownership / exact sample clock", Inputs), + ("AT feedback / sampled pressure and bounded PI state / complete transactions", Transactions), + ("AT feedback contracts / typed piston topology timings units and immutable routes", Contracts) + ]; + internal static HydraulicAtControllerDefinition Definition()=>new() + { + VehicleNode=4,RingNode=102,SupplyPressureNode=1100, + Routes=Enumerable.Range(0,5).Select(i=>new AtActuatorRoute((uint)(300+i),(uint)(1230+i),(uint)(1240+i))).ToArray(), + SamplePeriodNanoseconds=1_000_000,ReleaseTimeoutNanoseconds=500_000_000,ApplyTimeoutNanoseconds=800_000_000, + LowSupplyTimeoutNanoseconds=50_000_000,LockupDwellNanoseconds=50_000_000, + ApplyPressure=new(9e5,Unit.Pascal),PressureTolerance=new(1e5,Unit.Pascal),MinimumSupplyPressure=new(2e5,Unit.Pascal), + ReleaseForce=new(1,Unit.Newton),MinimumApplyForce=new(200,Unit.Newton), + ProportionalGain=new(2e-6,Unit.FractionPerPascal),IntegralGain=new(2e-5,Unit.FractionPerPascalSecond), + SynchronizeTolerance=new(1e-5,Unit.RadianPerSecond),DirectionChangeSpeedLimit=new(.1,Unit.RadianPerSecond), + LockupSpeedLimit=new(5,Unit.RadianPerSecond),UnlockSpeedLimit=new(15,Unit.RadianPerSecond), + MinimumLockupInputSpeed=new(30,Unit.RadianPerSecond),MinimumLockupForwardRange=2 + }; + internal static ModelDefinition Model(int requested=1) + { + var mechanical=ResolvedPlanetChecks.Graph(); + var branches=mechanical.Components.Where(c=>c.Kind==ComponentKind.Clutch).OrderBy(c=>c.Id).Select((c,i)=>HydraulicActuationChecks.Branch(c,i,0)).ToArray(); + var hydraulic=new HydraulicActuationAssembly(HydraulicActuationChecks.Parameters()).CreateGraph(HydraulicActuationChecks.Ports(),branches); + return new(){StepNanoseconds=20_000,Nodes=[NodeDefinition.Rotor(1,.2,60),NodeDefinition.Rotor(4,10),NodeDefinition.Thermal(3,1000,300),..mechanical.Nodes,..hydraulic.Nodes], + Components=[..mechanical.Components.Where(c=>c.Kind!=ComponentKind.Clutch),..hydraulic.Components, + ComponentDefinition.Torque(10,1,500,20),ComponentDefinition.Torque(11,4,501,0),ComponentDefinition.AtControl(1400,1,900,requested,Definition())]}; + } + private static void Ok(SimulationStatus s){if(s!=SimulationStatus.Ok)throw new InvalidOperationException(s.ToString());} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Shifts() + { + var s=CompiledModel.Compile(Model()).CreateSimulation(); + foreach(int range in new[]{1,2,3,4,3,2,1}) + { + Ok(s.SubmitInputs([new(900,range)]));Ok(s.Step(500_000_000)); + Near(Value(s,1400,Field.ControlFault),0,0);Near(Value(s,1400,Field.ActualGear),range,0); + double ratio=new RavigneauxTransmissionAssembly(RavigneauxChecks.Parameters()).RangeReduction(range)*4; + Near(Value(s,1,Field.Speed),ratio*Value(s,4,Field.Speed),1e-7);Near(Value(s,0,Field.EnergyResidual),0,1e-6); + } + Ok(s.SubmitInputs([new(900,0)]));Ok(s.Step(500_000_000));Near(Value(s,1400,Field.ActualGear),0,0);Near(Value(s,1400,Field.ShiftPhase),(int)AtShiftPhase.Neutral,0); + foreach(uint id in Enumerable.Range(300,5).Select(i=>(uint)i))Require(Value(s,id,Field.ClampForce)<=1); + } + private static void Direction() + { + var s=CompiledModel.Compile(Model(-1)).CreateSimulation();Ok(s.Step(800_000_000));Near(Value(s,1400,Field.ActualGear),-1,0);Require(Value(s,4,Field.Speed)<0); + Ok(s.SubmitInputs([new(900,1)]));Ok(s.Step(1_000_000));Near(Value(s,1400,Field.ControlFault),(int)AtControlFault.DirectionChangeBlocked,0); + Ok(s.SubmitInputs([new(900,0)]));Ok(s.Step(500_000_000));Near(Value(s,1400,Field.ControlFault),0,0);Near(Value(s,1400,Field.ActualGear),0,0); + } + private static void Faults() + { + var d=Model();var definitions=d.Components.ToArray();int fill=Array.FindIndex(definitions,c=>c.Id==1231); + definitions[fill]=definitions[fill] with{HydraulicRestriction=new(){Coefficient=new(0,Unit.CubicMeterPerSecondPascal)}}; + var s=CompiledModel.Compile(d with{Components=definitions}).CreateSimulation();Ok(s.Step(900_000_000));Near(Value(s,1400,Field.ControlFault),(int)AtControlFault.ApplyTimeout,0); + Ok(s.SubmitInputs([new(900,4)]));Ok(s.Step(800_000_000));Near(Value(s,1400,Field.ControlFault),0,0);Near(Value(s,1400,Field.ActualGear),4,0); + d=Model();var nodes=d.Nodes.ToArray();int line=Array.FindIndex(nodes,n=>n.Id==1100);nodes[line]=nodes[line] with{Initial=new(0,Unit.Pascal)}; + definitions=d.Components.ToArray();int ctl=Array.FindIndex(definitions,c=>c.Id==1400);definitions[ctl]=definitions[ctl] with{HydraulicAtController=Definition() with{MinimumSupplyPressure=new(2e6,Unit.Pascal)}}; + s=CompiledModel.Compile(d with{Nodes=nodes,Components=definitions}).CreateSimulation();Ok(s.Step(100_000_000));Near(Value(s,1400,Field.ControlFault),(int)AtControlFault.LowSupplyPressure,0); + } + private static void ReleaseFault() + { + var d=Model();var components=d.Components.ToArray();int drain=Array.FindIndex(components,c=>c.Id==1241); + components[drain]=components[drain] with{HydraulicRestriction=new(){Coefficient=new(0,Unit.CubicMeterPerSecondPascal)}}; + var s=CompiledModel.Compile(d with{Components=components}).CreateSimulation();Ok(s.Step(500_000_000));Near(Value(s,1400,Field.ActualGear),1,0); + Ok(s.SubmitInputs([new(900,2)]));Ok(s.Step(600_000_000));Near(Value(s,1400,Field.ControlFault),(int)AtControlFault.ReleaseTimeout,0);Near(Value(s,1400,Field.ActualGear),0,0); + Require(Value(s,301,Field.ClampForce)>1); + } + private static void LockLoss() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();Ok(s.Step(500_000_000));Near(Value(s,1400,Field.ActualGear),1,0); + Ok(s.SubmitInputs([new(500,400)]));Ok(s.Step(1_000_000_000));Near(Value(s,1400,Field.ControlFault),(int)AtControlFault.ConfirmedLockLost,0);Near(Value(s,1400,Field.ActualGear),0,0); + } + private static void Inputs() + { + var model=CompiledModel.Compile(Model(0));var s=model.CreateSimulation();var before=Snapshot(s); + Require(s.SubmitInputs([new(900,1.5)])==SimulationStatus.InvalidInput&&Snapshot(s)==before); + Require(s.SubmitInputs([new(702,1)])==SimulationStatus.ControlledInput&&model.TryGetControlCommand(702,out var command)&&command.Id==900); + Require(s.Step(1_000_000,[new(0,900,1.5)])==SimulationStatus.InvalidInput&&Snapshot(s)==before); + Ok(s.SubmitInputs([new(900,1)]));Ok(s.Step(20_000));Near(Value(s,1400,Field.ActualGear),0,0); + Require(model.Channels.Count(c=>c.IsInput)==3&&model.StateCount==99); + } + private static void Transactions() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();var before=Snapshot(s);Require(s.Step(10_000_000,new CancellationToken(true))==SimulationStatus.Cancelled&&Snapshot(s)==before); + var fork=s.Fork();Ok(s.Step(10_000_000));for(int i=0;i<10;++i)Ok(fork.Step(1_000_000));Require(Snapshot(s)==Snapshot(fork)); + before=Snapshot(s);Require(s.Step(10_000_000,[new(before.TimeNanoseconds+5_000_000,500,double.MaxValue)])==SimulationStatus.NumericalFailure&&Snapshot(s)==before); + var values=new Scalar[s.Model.OutputCount];for(int i=0;i<10;++i){Ok(s.Step(20_000));s.ReadSnapshot(values);}long bytes=GC.GetAllocatedBytesForCurrentThread(); + for(int i=0;i<100;++i){Ok(s.Step(20_000));s.ReadSnapshot(values);}Require(bytes==GC.GetAllocatedBytesForCurrentThread()); + foreach(Field field in new[]{Field.ActuatorIntegralA,Field.ActuatorIntegralB,Field.ActuatorIntegralC,Field.ActuatorIntegralD,Field.ActuatorIntegralE})Require(Math.Abs(Value(s,1400,field))<=1); + } + private static void Contracts() + { + var routes=Definition().Routes.ToArray();var owned=Definition() with{Routes=routes};routes[0]=new(999,1,2);Require(owned.Routes[0].Clutch==300); + var d=Model();int ctl=Array.FindIndex(d.Components,c=>c.Id==1400); + foreach(var bad in new[]{Definition() with{SamplePeriodNanoseconds=999_999},Definition() with{ApplyPressure=new(9e5,Unit.Newton)},Definition() with{Routes=Definition().Routes.Reverse().ToArray()}}) + {var components=d.Components.ToArray();components[ctl]=components[ctl] with{HydraulicAtController=bad};Throws(()=>CompiledModel.Compile(d with{Components=components}));} + } +} diff --git a/tests/Power.Tests/AtControllerIntegrationChecks.cs b/tests/Power.Tests/AtControllerIntegrationChecks.cs new file mode 100644 index 0000000..e6ea829 --- /dev/null +++ b/tests/Power.Tests/AtControllerIntegrationChecks.cs @@ -0,0 +1,65 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class AtControllerIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("controlled AT / sensor-confirmed up-down ranges pressure PI / every portable boundary", Replay), + ("controlled fired AT / engine hydraulics and automatic physical lockup / complete state", Fired), + ("AT feedback agent / owned-valve repair integral requests / independent neutral fork", Sessions) + ]; + private static string Source(string name)=>File.ReadAllText(Path.Combine(AppContext.BaseDirectory,name+".power.json")); + private static double V(SampleReport s,uint id,Field field)=>s.Values[Channels.Output(id,field).ToString()]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static ExperimentReport Check(string name,int boundaries,int states) + { + var document=ModelDocument.Parse(Source(name));var report=ExperimentRunner.Evaluate(document); + Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Replay.BoundariesChecked==boundaries&&report.Model.StateCount==states&&report.Model.Fidelity=="sampled_hydraulic_at_control"); + var asset=AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name)));var playback=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + foreach(var s in report.Samples) + { + while(playback.TimeNanosecondsv.Value==s.Values[v.Channel.ToString()])); + Near(V(s,0,Field.EnergyResidual),0,1e-6);Near(V(s,0,Field.HydraulicVolumeResidual),0,1e-14);Require(V(s,1400,Field.ControlFault)==0); + foreach(uint gear in new uint[]{200,201,202,203,204})Near(V(s,gear,Field.ConstraintError),0,1e-8); + int actual=(int)V(s,1400,Field.ActualGear); + if(actual!=0)Near(V(s,102,Field.Speed)*new RavigneauxTransmissionAssembly(RavigneauxChecks.Parameters()).RangeReduction(actual),V(s,name.StartsWith("controlled-fired")?8U:1U,Field.Speed),1e-7); + } + return report; + } + private static void Replay() + { + var report=Check("controlled-hydraulic-ravigneaux",451,99); + foreach(var item in new[]{(1,500_000_000UL),(2,1_100_000_000UL),(3,1_700_000_000UL),(4,2_300_000_000UL),(3,2_900_000_000UL),(2,3_500_000_000UL),(1,4_400_000_000UL)}) + Near(V(report.Samples.Single(s=>s.TimeNs==item.Item2),1400,Field.ActualGear),item.Item1,0); + } + private static void Fired() + { + var report=Check("controlled-fired-hydraulic-ravigneaux",221,122);var last=report.Samples[^1]; + Near(V(last,1400,Field.ActualGear),4,0);Near(V(last,1400,Field.LockupState),(int)AtLockupPhase.Locked,0); + Require(V(last,21,Field.ClampForce)>200&&V(last,15,Field.HeatReleased)>300&&V(last,1200,Field.HydraulicWork)>0); + Near(V(last,1,Field.Speed),V(last,8,Field.Speed),1e-7); + } + private static void Sessions() + { + var workspace=new AgentWorkspace();var example=Data(AgentWorkspace.ExampleModel("controlled-hydraulic-ravigneaux")); + string id=Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!,before=Data(workspace.ReadSnapshot(id)).GetRawText(); + var owned=workspace.SetInputs(id,"0",[new("702",1)]);Require(owned.Error?.Code=="controlled_input"&&owned.Error.Message.Contains("900")&&owned.Error.Message.Contains("requested_gear")); + Require(workspace.SetInputs(id,"0",[new("900",1.5)]).Error?.Code=="invalid_input"); + Require(workspace.StepSession(id,"0","2000000",new CancellationToken(true)).Error?.Code=="cancelled"&&Data(workspace.ReadSnapshot(id)).GetRawText()==before); + Data(workspace.StepSession(id,"0","2000000"));string parent=Data(workspace.ReadSnapshot(id)).GetRawText(); + string fork=Data(workspace.ForkSession(id,"1")).GetProperty("session_id").GetString()!;Data(workspace.SetInputs(fork,"0",[new("900",0)]));Data(workspace.StepSession(fork,"1","2000000")); + Require(Data(workspace.ReadSnapshot(id)).GetRawText()==parent);Data(workspace.CloseSession(fork,"2"));Data(workspace.CloseSession(id,"1")); + } +} diff --git a/tests/Power.Tests/BatteryAssetChecks.cs b/tests/Power.Tests/BatteryAssetChecks.cs index e2ec98e..080d631 100644 --- a/tests/Power.Tests/BatteryAssetChecks.cs +++ b/tests/Power.Tests/BatteryAssetChecks.cs @@ -50,7 +50,7 @@ private static void Compare(PowerAsset first, PowerAsset second) private static void Replay() { var original = Asset(); byte[] bytes = AssetCodec.Encode(original); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(original.Components.SequenceEqual(decoded.Components) && original.Nodes.SequenceEqual(decoded.Nodes)); Require(original.Model.Fingerprint == decoded.Model.Fingerprint && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(original, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "pressure-regulated-pump-v12.powerasset")); @@ -67,7 +67,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), battery = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count, duty = battery + 68; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), battery = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count, duty = battery + 68; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } void Change(int offset, int value) @@ -78,7 +78,7 @@ void Change(int offset, int value) var duplicate = bytes.Take(battery + 68).Concat(bytes.Skip(battery).Take(68)).Concat(bytes.Skip(battery + 68)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 84), 2); Reject(duplicate); var missing = bytes.Take(battery).Concat(bytes.Skip(battery + 68)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 84), 0); Reject(missing); - var downgrade = bytes.Take(counts + 84).Concat(bytes.Skip(counts + 140).Take(battery - counts - 140)).Concat(bytes.Skip(duty + 80)).ToArray(); + var downgrade = bytes.Take(counts + 84).Concat(bytes.Skip(counts + 160).Take(battery - counts - 160)).Concat(bytes.Skip(duty + 80)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 12); Reject(downgrade); var isolated = PowerAsset.Create(BatteryChecks.LoadModel() with { Components = [] }, "Isolated battery", new string('a', 64), 100_000_000, 10_000_000, [], []); Require(AssetCodec.Decode(AssetCodec.Encode(isolated)).Model.HasBatteries); diff --git a/tests/Power.Tests/ClosurePredictionAssetChecks.cs b/tests/Power.Tests/ClosurePredictionAssetChecks.cs index e5bfd51..89dd0a2 100644 --- a/tests/Power.Tests/ClosurePredictionAssetChecks.cs +++ b/tests/Power.Tests/ClosurePredictionAssetChecks.cs @@ -32,7 +32,7 @@ private static void Compare(PowerAsset a, PowerAsset b) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Model.HasClosurePrediction); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasClosurePrediction); Require(asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "needle-actuated-cylinder-v20.powerasset")); Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 20 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "4d87e996d92a50508cfcffac610551b84220f2b3055f5b104c8ec7ec64ca9a2e"); @@ -43,7 +43,7 @@ private static void Corruption() { var asset = Asset(); byte[] source = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int driver = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36 + 40 + 64 + 120 + 28 + 40 + 32; + int driver = FuelPhaseEquilibriumAssetChecks.FilmOffset(asset, source) + 100 + 120 + 28 + 40 + 32; void Reject(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); Throws(() => AssetCodec.Decode(data)); } foreach (ulong horizon in new ulong[] { 1, 99_999, 40_970_000, ulong.MaxValue }) diff --git a/tests/Power.Tests/ClutchAssetChecks.cs b/tests/Power.Tests/ClutchAssetChecks.cs index 89177b7..2f35976 100644 --- a/tests/Power.Tests/ClutchAssetChecks.cs +++ b/tests/Power.Tests/ClutchAssetChecks.cs @@ -54,7 +54,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); @@ -69,7 +69,7 @@ void Change(int offset, int value) BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 48), 0); Reject(missing); var duplicate = bytes.Take(extension + 28).Concat(bytes.Skip(extension).Take(28)).Concat(bytes.Skip(extension + 28)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 48), 2); Reject(duplicate); - var oldVersion = bytes.Take(counts + 48).Concat(bytes.Skip(counts + 140).Take(extension - counts - 140)).Concat(bytes.Skip(extension + 28)).ToArray(); + var oldVersion = bytes.Take(counts + 48).Concat(bytes.Skip(counts + 160).Take(extension - counts - 160)).Concat(bytes.Skip(extension + 28)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(oldVersion.AsSpan(8), 6); Reject(oldVersion); var wrongCapacity = (byte[])bytes.Clone(); BitConverter.GetBytes(25.0).CopyTo(wrongCapacity, extension + 16); Reject(wrongCapacity); } diff --git a/tests/Power.Tests/CombustionAssetChecks.cs b/tests/Power.Tests/CombustionAssetChecks.cs index a79ec54..4d41656 100644 --- a/tests/Power.Tests/CombustionAssetChecks.cs +++ b/tests/Power.Tests/CombustionAssetChecks.cs @@ -66,7 +66,7 @@ private static void Corruption() { var asset = Asset(); byte[] source = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int mixtures = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 * 2 + 36 * 2 + 72 + 44; + int mixtures = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 * 2 + 36 * 2 + 72 + 44; int reservoirs = mixtures + 40 * 2, burners = reservoirs + 20; void Reject(byte[] bytes) { @@ -85,7 +85,7 @@ void Remove(int offset, int size, int countOffset, int remaining) Remove(mixtures, 40, counts + 36, 1); Remove(reservoirs, 20, counts + 40, 0); Remove(burners, 56, counts + 44, 0); var duplicate = source.Take(burners + 56).Concat(source.Skip(burners).Take(56)).Concat(source.Skip(burners + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 44), 2); Reject(duplicate); - var oldVersion = source.Take(counts + 36).Concat(source.Skip(counts + 140).Take(mixtures - counts - 140)).Concat(source.Skip(burners + 56)).ToArray(); + var oldVersion = source.Take(counts + 36).Concat(source.Skip(counts + 160).Take(mixtures - counts - 160)).Concat(source.Skip(burners + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(oldVersion.AsSpan(8), 5); Reject(oldVersion); } } diff --git a/tests/Power.Tests/CompliantFuelVolumeChecks.cs b/tests/Power.Tests/CompliantFuelVolumeChecks.cs new file mode 100644 index 0000000..7852006 --- /dev/null +++ b/tests/Power.Tests/CompliantFuelVolumeChecks.cs @@ -0,0 +1,336 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class CompliantFuelVolumeChecks +{ + private const double R = 287, Cv = 717.5, Cl = 2000, Tr = 400, Pref = 100000, Latent = 300000; + private const double Density = 750, V0 = 8e-7, Compliance = 5e-13, Limit = 20_000_000; + private const double Offset = (Cv - Cl) * Tr - Latent; + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("compliant fuel / pure-fluid chemical potentials and Clapeyron relation", Coexistence), + ("compliant fuel / three phase branches / caloric entropy and volume derivatives", Branches), + ("compliant fuel / mass-energy flash / phase boundaries and explicit limits", RoundTrip), + ("compliant fuel / independent entropy maximization with elastic wall", EntropyMaximum), + ("compliant fuel / open-system Gibbs derivatives include wall energy", Gibbs), + ("compliant fuel / finite-bath heat / conservation second law and first-order refinement", HeatReference), + ("compliant fuel / evaporation condensation / heat direction and finite bath bounds", HeatLimits), + ("compliant fuel / rigid ideal-gas and incompressible density limits / extensivity", Limits), + ("compliant fuel / actionable rejections / immutable concurrent allocation-free closure", Contracts) + ]; + private static FuelPhaseEquilibrium Material(double pressure = Pref) => new(new(Cl, Cv, Tr, Latent, 0), R, pressure, 200, 600); + private static CompliantFuelVolume Law(double volume = V0, double compliance = Compliance, double density = Density, double limit = Limit) => + new(Material(), volume, compliance, density, limit); + private static void Ok(FuelVolumeStatus status) + { if (status != FuelVolumeStatus.Success) Require(false, status.ToString()); } + private static double P0(double t) => Pref * Math.Pow(t / Tr, (Cv + R - Cl) / R) * Math.Exp(Offset / R * (1 / t - 1 / Tr)); + private static double Sl(double t) => Cl * Math.Log(t / Tr); + private static double Sv(double t, double p) => (Cv + R) * Math.Log(t / Tr) - R * Math.Log(p / Pref) + Latent / Tr + R; + + // Independent pressure-space bisection, rather than the production log-Newton solve. + private static double ReferenceSaturation(double t) + { + double reference = P0(t), lo = reference, hi = Math.E * reference; + for (int i = 0; i < 75; ++i) + { + double p = (lo + hi) / 2; + if (Math.Log(p / reference) > p / (Density * R * t)) hi = p; else lo = p; + } + return (lo + hi) / 2; + } + + private static void Coexistence() + { + var law = Law(); + foreach (double t in new[] { 200d, 220, 300, 400, 550, 600 }) + { + Ok(law.Saturation(t, out var sat)); + Near(sat.PressurePascals, ReferenceSaturation(t), 2e-8); + double hl = Cl * t + Offset + sat.PressurePascals / Density, hv = (Cv + R) * t; + Near(hv - t * Sv(t, sat.PressurePascals), hl - t * Sl(t), 1e-8); + Near(sat.LatentEnthalpyJoulesPerKilogram, hv - hl, 1e-9); + Near(Sv(t, sat.PressurePascals) - Sl(t), sat.LatentEnthalpyJoulesPerKilogram / t, 1e-10); + Near(sat.PressureDerivativePascalsPerKelvin, + (hv - hl) / (t * (R * t / sat.PressurePascals - 1 / Density)), 1e-10); + if (t is > 200 and < 600) + Near(sat.PressureDerivativePascalsPerKelvin, (ReferenceSaturation(t + .001) - ReferenceSaturation(t - .001)) / .002, 2e-7); + Require(sat.PressurePascals > P0(t) && sat.VaporSpecificVolumeCubicMetersPerKilogram > sat.LiquidSpecificVolumeCubicMetersPerKilogram); + } + } + + private static void CheckPoint(CompliantFuelPoint point) + { + double t = point.TemperatureKelvin, p = point.PressurePascals, liquid = point.LiquidMassKilograms, vapor = point.VaporMassKilograms; + Near(liquid + vapor, point.MassKilograms, 1e-18); + Near(liquid / Density + vapor * R * t / p, point.VolumeCubicMeters, 1e-20); + Near(point.VolumeCubicMeters, V0 + Compliance * p, 1e-20); + Near(point.StoredEnergyJoules, liquid * (Cl * t + Offset) + vapor * Cv * t + .5 * Compliance * p * p, 1e-11); + Near(point.EntropyJoulesPerKelvin, liquid * Sl(t) + vapor * Sv(t, p), 1e-13); + Near(point.SpecificEnthalpyJoulesPerKilogram, + (point.FluidInternalEnergyJoules + p * point.VolumeCubicMeters) / point.MassKilograms, 1e-8); + Require(point.HeatCapacityJoulesPerKelvin > 0 && point.VaporMassFraction is >= 0 and <= 1 && point.VaporVolumeFraction is >= 0 and <= 1.000000000000001); + } + + private static void Branches() + { + var law = Law(); + foreach (var (mass, expected) in new[] { (.001, FuelVolumePhase.Liquid), (.0003, FuelVolumePhase.LiquidVapor), (1e-8, FuelVolumePhase.Vapor) }) + { + foreach (double t in new[] { 250d, 350, 450, 550 }) + { + Ok(law.Evaluate(t, mass, out var point)); CheckPoint(point); Require(point.Phase == expected); + Ok(law.Evaluate(t - .001, mass, out var low)); Ok(law.Evaluate(t + .001, mass, out var high)); + Near((high.StoredEnergyJoules - low.StoredEnergyJoules) / .002, point.HeatCapacityJoulesPerKelvin, 2e-8); + Near(t * (high.EntropyJoulesPerKelvin - low.EntropyJoulesPerKelvin) / .002, point.HeatCapacityJoulesPerKelvin, 2e-8); + if (expected == FuelVolumePhase.Liquid) + { Near(point.PressurePascals, (mass / Density - V0) / Compliance, 1e-7); Require(point.PressurePascals > ReferenceSaturation(t)); } + else if (expected == FuelVolumePhase.Vapor) + Require(point.PressurePascals < ReferenceSaturation(t)); + else Near(point.PressurePascals, ReferenceSaturation(t), 2e-8); + } + } + } + + private static void RoundTrip() + { + var law = Law(); + foreach (double t in new[] { 200d, 200.00001, 250, 350, 400, 500, 599.99999, 600 }) + { + Ok(law.Saturation(t, out var saturation)); + double volume = V0 + Compliance * saturation.PressurePascals; + double wet = Density * volume, dry = volume / saturation.VaporSpecificVolumeCubicMetersPerKilogram; + foreach (double mass in new[] { 1e-10, dry * (1 - 1e-7), dry, dry * (1 + 1e-7), .0003, wet * (1 - 1e-7), wet, wet * (1 + 1e-7), .003, law.MaximumMassKilograms }) + { + Ok(law.Evaluate(t, mass, out var original)); Ok(law.Flash(mass, original.StoredEnergyJoules, out var flashed)); + Near(flashed.TemperatureKelvin, t, 1e-9); Near(flashed.StoredEnergyJoules, original.StoredEnergyJoules, 0); + Near(flashed.VaporMassKilograms, original.VaporMassKilograms, 1e-15); CheckPoint(flashed); + Require(flashed == Flash(law, mass, original.StoredEnergyJoules), "Flash was not deterministic."); + } + foreach (double boundary in new[] { dry, wet }) + { + Ok(law.Evaluate(t, boundary * (1 - 1e-9), out var left)); Ok(law.Evaluate(t, boundary * (1 + 1e-9), out var right)); + Near(left.StoredEnergyJoules, right.StoredEnergyJoules, 2e-6); Near(left.PressurePascals, right.PressurePascals, .003); + } + } + } + + private static CompliantFuelPoint Flash(CompliantFuelVolume law, double mass, double energy) + { Ok(law.Flash(mass, energy, out var point)); return point; } + + // For each trial phase mass, eliminate temperature from energy and solve the + // resulting quadratic mechanical balance. No saturation relation is used here. + private static (double T, double P, double S) Trial(double mass, double vapor, double energy) + { + double liquid = mass - vapor, capacity = liquid * Cl + vapor * Cv; + double p; + if (vapor == 0) p = (mass / Density - V0) / Compliance; + else + { + double b = V0 - liquid / Density, a = Compliance * (1 + vapor * R / (2 * capacity)); + double d = vapor * R / capacity * (energy - liquid * Offset); + double root = Math.Sqrt(b * b + 4 * a * d); + p = b >= 0 ? 2 * d / (b + root) : (root - b) / (2 * a); + } + double t = (energy - liquid * Offset - .5 * Compliance * p * p) / capacity; + if (!double.IsFinite(t) || t is < 200 or > 600 || p <= 0 || p > Limit || p / (Density * R * t) >= 1) + return (t, p, double.NegativeInfinity); + return (t, p, liquid * Sl(t) + (vapor == 0 ? 0 : vapor * Sv(t, p))); + } + + private static void EntropyMaximum() + { + var law = Law(); + foreach (var (t, mass) in new[] { (300d, .001), (420d, .0003), (530d, .0002), (350d, 1e-8) }) + { + Ok(law.Evaluate(t, mass, out var original)); double energy = original.StoredEnergyJoules; + int best = 0; double maximum = double.NegativeInfinity; + for (int i = 0; i <= 512; ++i) + { double s = Trial(mass, mass * i / 512, energy).S; if (s > maximum) { best = i; maximum = s; } } + double lo = mass * Math.Max(0, best - 1) / 512, hi = mass * Math.Min(512, best + 1) / 512; + double ratio = (Math.Sqrt(5) - 1) / 2, a = hi - ratio * (hi - lo), b = lo + ratio * (hi - lo); + for (int i = 0; i < 110; ++i) + if (Trial(mass, a, energy).S < Trial(mass, b, energy).S) { lo = a; a = b; b = lo + ratio * (hi - lo); } + else { hi = b; b = a; a = hi - ratio * (hi - lo); } + double vapor = (lo + hi) / 2; + if (Trial(mass, 0, energy).S >= Trial(mass, vapor, energy).S) vapor = 0; + if (Trial(mass, mass, energy).S >= Trial(mass, vapor, energy).S) vapor = mass; + var result = Trial(mass, vapor, energy); + Near(result.S, original.EntropyJoulesPerKelvin, 1e-10); + // An entropy maximum is flat: binary64 entropy rounding bounds its + // location through curvature, rather than through root-solver precision. + double distance = Math.Min(original.VaporMassKilograms, mass - original.VaporMassKilograms) * .001; + double tolerance = 1e-12 * mass; + if (distance > 0) + { + double curvature = (2 * original.EntropyJoulesPerKelvin - Trial(mass, original.VaporMassKilograms - distance, energy).S - + Trial(mass, original.VaporMassKilograms + distance, energy).S) / (distance * distance); + Require(curvature > 0); + tolerance += Math.Sqrt(32 * 2.2204460492503131e-16 * Math.Abs(original.EntropyJoulesPerKelvin) / curvature); + } + Near(vapor, original.VaporMassKilograms, tolerance); + Near(result.T, t, 2e-5); + for (int i = 0; i <= 256; ++i) + Require(Trial(mass, mass * i / 256, energy).S <= original.EntropyJoulesPerKelvin + 2e-12, "Flash lowered total entropy."); + } + // Superheated liquid at low vessel pressure must evaporate rather than stay metastable. + const double initialMass = .00065, initialT = 500; + double pressure = (initialMass / Density - V0) / Compliance; + double initialEnergy = initialMass * (Cl * initialT + Offset) + .5 * Compliance * pressure * pressure; + var flashed = Flash(law, initialMass, initialEnergy); + Require(flashed.Phase == FuelVolumePhase.LiquidVapor && flashed.VaporMassKilograms > 0); + Require(flashed.EntropyJoulesPerKelvin > initialMass * Sl(initialT)); + } + + private static void Gibbs() + { + var law = Law(); + foreach (double mass in new[] { .001, .0003, 1e-8 }) + { + Ok(law.Evaluate(400, mass, out var point)); + double de = mass * .1, dm = mass * 1e-6; + var higher = Flash(law, mass, point.StoredEnergyJoules + de); var lower = Flash(law, mass, point.StoredEnergyJoules - de); + Near((higher.EntropyJoulesPerKelvin - lower.EntropyJoulesPerKelvin) / (2 * de), 1 / 400d, 1e-10); + higher = Flash(law, mass + dm, point.StoredEnergyJoules); lower = Flash(law, mass - dm, point.StoredEnergyJoules); + double chemicalPotential = point.SpecificEnthalpyJoulesPerKilogram - 400 * point.EntropyJoulesPerKelvin / mass; + Near(-400 * (higher.EntropyJoulesPerKelvin - lower.EntropyJoulesPerKelvin) / (2 * dm), chemicalPotential, .01); + } + } + + private static (double Energy, double Vapor, double Pressure) ReferencePoint(double t, double mass) + { + double p = ReferenceSaturation(t), volume = V0 + Compliance * p; + double vapor; + if (mass >= Density * volume) { p = (mass / Density - V0) / Compliance; vapor = 0; } + else if (mass <= p * volume / (R * t)) + { p = (-V0 + Math.Sqrt(V0 * V0 + 4 * Compliance * mass * R * t)) / (2 * Compliance); vapor = mass; } + else vapor = (Density * volume - mass) / (Density * R * t / p - 1); + return ((mass - vapor) * (Cl * t + Offset) + vapor * Cv * t + .5 * Compliance * p * p, vapor, p); + } + + private static double ReferenceTemperature(double energy, double mass) + { + double lo = 200, hi = 600; + for (int i = 0; i < 52; ++i) + { double t = (lo + hi) / 2; if (ReferencePoint(t, mass).Energy > energy) hi = t; else lo = t; } + return (lo + hi) / 2; + } + + private static void HeatReference() + { + var law = Law(); const double mass = .00065, wallCapacity = 3, conductance = .6, duration = 6; + Ok(law.Evaluate(300, mass, out var initial)); + double Rate(double energy) => conductance * ((600 + (initial.StoredEnergyJoules - energy) / wallCapacity) - ReferenceTemperature(energy, mass)); + double Integrate(int steps) + { + double energy = initial.StoredEnergyJoules, h = duration / steps; + for (int i = 0; i < steps; ++i) + { + double a = Rate(energy), b = Rate(energy + h / 2 * a), c = Rate(energy + h / 2 * b), d = Rate(energy + h * c); + energy += h / 6 * (a + 2 * b + 2 * c + d); + } + return energy; + } + double reference = Integrate(2000); Near(reference, Integrate(4000), 2e-6); + double previous = 0; var errors = new List(); + foreach (int steps in new[] { 32, 64, 128, 256 }) + { + double energy = initial.StoredEnergyJoules, wall = 600; var point = initial; + for (int i = 0; i < steps; ++i) + { + Ok(law.AdvanceHeat(mass, energy, wall, wallCapacity, conductance, duration / steps, out var transfer)); + point = transfer.Fluid; energy = point.StoredEnergyJoules; wall = transfer.WallTemperatureKelvin; + Require(transfer.EntropyChangeJoulesPerKelvin >= -1e-13); + Near(transfer.EnergyResidualJoules, 0, 5e-13); + } + Require(point.Phase == FuelVolumePhase.LiquidVapor && point.VaporMassKilograms > 0); + Near(energy + wallCapacity * wall, initial.StoredEnergyJoules + wallCapacity * 600, 2e-10); + double error = Math.Abs(energy - reference); + if (previous > 0) Require(previous / error is > 1.8 and < 2.2, $"Compliant volume heat refinement: {previous:R} / {error:R}"); + previous = error; errors.Add(error); + } + Console.WriteLine("Compliant fuel finite-bath energy errors (J): " + string.Join(", ", errors.Select(v => v.ToString("R")))); + } + + private static void HeatLimits() + { + var law = Law(); const double mass = .0003; + Ok(law.Evaluate(400, mass, out var initial)); + foreach (double bath in new[] { 250d, 400d, 550d }) + { + foreach (double h in new[] { 0d, .001, 1d, 1e8 }) + { + Ok(law.AdvanceHeat(mass, initial.StoredEnergyJoules, bath, 1.5, .2, h, out var transfer)); + var point = transfer.Fluid; + Require(point.TemperatureKelvin >= Math.Min(bath, 400) - 1e-10 && point.TemperatureKelvin <= Math.Max(bath, 400) + 1e-10); + Require(transfer.WallTemperatureKelvin >= Math.Min(bath, 400) - 1e-10 && transfer.WallTemperatureKelvin <= Math.Max(bath, 400) + 1e-10); + Require(transfer.EntropyChangeJoulesPerKelvin >= -1e-13); Near(transfer.EnergyResidualJoules, 0, 1e-12); + if (h == 0) { Near(transfer.HeatFromWallJoules, 0, 0); Near(point.StoredEnergyJoules, initial.StoredEnergyJoules, 0); } + else if (bath > 400) Require(point.VaporMassKilograms > initial.VaporMassKilograms && transfer.HeatFromWallJoules > 0); + else if (bath < 400) Require(point.VaporMassKilograms < initial.VaporMassKilograms && transfer.HeatFromWallJoules < 0); + } + } + } + + private static void Limits() + { + var rigid = Law(compliance: 1e-20); var tank = new FiniteTankFuelEquilibrium(Material(), V0, Density); + foreach (double mass in new[] { .0003, 1e-8 }) + { + Ok(rigid.Evaluate(400, mass, out var point)); Require(tank.TryPoint(400, mass, 0, out var reference)); + Near(point.PressurePascals, reference.PressurePascals, 1e-5); Near(point.VaporMassKilograms, reference.VaporMassKilograms, 1e-15); + Near(point.FluidInternalEnergyJoules, reference.ThermalEnergyJoules, 1e-9); + if (point.Phase == FuelVolumePhase.Vapor) Near(point.PressurePascals, mass * R * 400 / V0, 1e-7); + } + Ok(Law(density: 1e15).Saturation(400, out var dense)); Near(dense.PressurePascals, Pref, 1e-7); + var law = Law(); Ok(law.Evaluate(400, .0003, out var original)); + foreach (double factor in new[] { 1e-6, 1e6 }) + { + var scaled = Law(volume: V0 * factor, compliance: Compliance * factor); + Ok(scaled.Evaluate(400, .0003 * factor, out var point)); + Near(point.PressurePascals, original.PressurePascals, 1e-7); + Near(point.StoredEnergyJoules / factor, original.StoredEnergyJoules, 1e-10); + Near(point.EntropyJoulesPerKelvin / factor, original.EntropyJoulesPerKelvin, 1e-13); + Near(point.VaporMassFraction, original.VaporMassFraction, 1e-14); + } + } + + private static void Contracts() + { + Throws(() => new CompliantFuelVolume(null!, V0, Compliance, Density, Limit)); + foreach (double bad in new[] { -1d, 0, double.NaN, double.PositiveInfinity }) + { + Throws(() => Law(volume: bad)); Throws(() => Law(compliance: bad)); + Throws(() => Law(density: bad)); Throws(() => Law(limit: bad)); + } + Throws(() => Law(limit: Density * R * 200)); + Throws(() => Law(limit: 100000)); + Throws(() => Law(compliance: 1e-30)); + Throws(() => new CompliantFuelVolume(Material(1e8), V0, Compliance, Density, Limit)); + var law = Law(); + Require(law.Evaluate(400, 0, out var failed) == FuelVolumeStatus.MassOutOfRange && failed == default); + Require(law.Evaluate(400, law.MaximumMassKilograms * 1.001, out failed) == FuelVolumeStatus.MassOutOfRange && failed == default); + Require(law.Evaluate(199, .0003, out failed) == FuelVolumeStatus.TemperatureOutOfRange && failed == default); + Require(law.Flash(.0003, double.NaN, out failed) == FuelVolumeStatus.InvalidInput && failed == default); + Ok(law.Evaluate(200, .0003, out var lower)); Ok(law.Evaluate(600, .0003, out var upper)); + Require(law.Flash(.0003, lower.StoredEnergyJoules - 1, out failed) == FuelVolumeStatus.EnergyOutOfRange && failed == default); + Require(law.Flash(.0003, upper.StoredEnergyJoules + 1, out failed) == FuelVolumeStatus.EnergyOutOfRange && failed == default); + Require(law.AdvanceHeat(.0003, lower.StoredEnergyJoules, 300, 0, 1, .1, out var heat) == FuelVolumeStatus.InvalidInput && heat == default); + Require(law.AdvanceHeat(.0003, upper.StoredEnergyJoules, 1000, 1, 10, 100, out heat) == FuelVolumeStatus.EnergyOutOfRange && heat == default); + Ok(law.Evaluate(400, .0003, out var point)); var expected = Flash(law, .0003, point.StoredEnergyJoules); + Parallel.For(0, 32, _ => Require(Flash(law, .0003, point.StoredEnergyJoules) == expected)); + for (int i = 0; i < 40; ++i) Ok(law.AdvanceHeat(.0003, point.StoredEnergyJoules, 450, 2, .1, .01, out _)); + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 100; ++i) + { + Ok(law.Evaluate(400, .0003, out _)); Ok(law.Flash(.0003, point.StoredEnergyJoules, out _)); + Ok(law.AdvanceHeat(.0003, point.StoredEnergyJoules, 450, 2, .1, .01, out _)); + } + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Thermodynamic closure allocated."); + } +} diff --git a/tests/Power.Tests/CompressibleChamberAssetChecks.cs b/tests/Power.Tests/CompressibleChamberAssetChecks.cs new file mode 100644 index 0000000..1603a11 --- /dev/null +++ b/tests/Power.Tests/CompressibleChamberAssetChecks.cs @@ -0,0 +1,40 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class CompressibleChamberAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("compressible chamber asset / coupled geometry every replay boundary and authentic v36", Replay), + ("compressible chamber asset / typed geometry units ownership and downgrade rejection", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(CompressibleChamberChecks.Model(true), "Compressible chamber", new string('c',64), 100000, 10000, [], []); + private static void Sign(byte[] b) => SHA256.HashData(b.AsSpan(0, b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left=a.CreatePlayback();var right=b.CreatePlayback();var l=new Scalar[a.Model.OutputCount];var r=new Scalar[b.Model.OutputCount]; + for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds) + {if(at>left.TimeNanoseconds)Require(left.Advance(at-left.TimeNanoseconds)==SimulationStatus.Ok);while(right.TimeNanoseconds(()=>AssetCodec.Decode(b));} + foreach(int offset in new[]{0,12,24,36}){var b=encoded.ToArray();BinaryPrimitives.WriteInt32LittleEndian(b.AsSpan(geometry+offset),int.MaxValue);Reject(b);} + var downgrade=encoded.ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8),36);Reject(downgrade); + Reject(encoded.Take(geometry).Concat(encoded.Skip(geometry+40)).ToArray()); + } +} diff --git a/tests/Power.Tests/CompressibleChamberChecks.cs b/tests/Power.Tests/CompressibleChamberChecks.cs new file mode 100644 index 0000000..fcf1ff6 --- /dev/null +++ b/tests/Power.Tests/CompressibleChamberChecks.cs @@ -0,0 +1,210 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; +namespace Power.Tests; + +internal static class CompressibleChamberChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("compressible chamber work / exact liquid cold integral and ideal-vapor adiabat", AnalyticWork), + ("compressible chamber work / independent equilibrium entropy inversion and pressure quadrature", PhaseWork), + ("compressible chamber / closed phase-changing shaft work and entropy", Closed), + ("compressible chamber / independent liquid shaft ODE second-order refinement", LiquidReference), + ("compressible chamber duct / independent ideal-vapor method-of-lines RK4 refinement", DuctReference), + ("compressible chamber duct / phase change gear clutch and hydraulic composition", Composition), + ("compressible chamber / rollback cancellation branch independence and zero allocations", Transactions), + ("compressible chamber / units geometry ownership and immutable compilation", Contracts) + ]; + internal static FuelChamberDefinition Geometry => new() { MinimumReferenceVolume = new(1e-7, Unit.CubicMeter), SweptVolume = new(2e-7, Unit.CubicMeter), Phase = new(0, Unit.Radian) }; + internal static ModelDefinition Model(bool duct = false, bool vapor = false, ulong tick = 1000) + { + var material = EquilibriumDuctChecks.Material(vapor); double t = vapor ? 500 : 350, angle = duct ? .5 : 0, speed = duct ? 5000 : 100; + double volume = 1e-7 + 2e-7 * Math.Pow(Math.Sin(angle / 2), 2), density = vapor ? 1e5 / (287 * t) : 750 * (1 + 2e5 / 1.5e9); + var nodes = new List { NodeDefinition.Rotor(4, 1e-5, speed, angle), NodeDefinition.CompressibleFuelVolume(1, volume, volume * density, t, material), NodeDefinition.Thermal(3, 1, 350) }; + var components = new List { ComponentDefinition.CompressibleChamber(12, 4, 1, Geometry) }; + if (duct) + { + nodes.Add(NodeDefinition.CompressibleFuelVolume(2, .001, .001 * density, t, material)); + for (uint id = 100; id < 104; ++id) nodes.Add(NodeDefinition.CompressibleFuelVolume(id, .025e-6, .025e-6 * density, t, material)); + components.Add(ComponentDefinition.EquilibriumDuct(10, 1, 2, 3, new() { Cells = new uint[] { 100, 101, 102, 103 }, Area = new(1e-6, Unit.SquareMeter), + LinearResistance = new(0, Unit.PascalSecondPerCubicMeter), QuadraticResistance = new(0, Unit.PascalSecondSquaredPerCubicMeterSquared), FluidHeatFraction = new(.5, Unit.Fraction) })); + } + return new() { StepNanoseconds = tick, Nodes = nodes.ToArray(), Components = components.ToArray() }; + } + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Step(Simulation s, ulong duration) => Require(s.Step(duration) == SimulationStatus.Ok, "Compressible chamber interval failed."); + private static void Balance(Simulation s) { Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); } + private static void AnalyticWork() + { + var law = CompressibleFuelChecks.Law(); const double mass = 1e-4, pressure = 1e6; + double volume = mass / (750 * (1 + pressure / 1.5e9)); Require(law.Evaluate(mass / volume, 300, out var initial)); + foreach (double ratio in new[] { -.0001, .0001, 1e-12 }) + { + double next = volume * (1 + ratio); Require(law.AdiabaticVolume(mass, mass * initial.SpecificInternalEnergyJoulesPerKilogram, volume, next, out var w) == FuelVolumeStatus.Success); + double expected = 1.5e9 * ((next - volume) - mass / 750 * Math.Log(next / volume)); + Near(w.EnergyChangeJoules, expected, 1e-12); Near(w.Fluid.TemperatureKelvin, 300, 2e-10); Near(w.EntropyResidualJoulesPerKelvin, 0, 1e-12); + } + volume = mass * 287 * 500 / 10000; Require(law.Evaluate(mass / volume, 500, out initial)); Require(initial.Phase == FuelVolumePhase.Vapor); + foreach (double ratio in new[] { .8, 1.2, 1 + 1e-12 }) + { + Require(law.AdiabaticVolume(mass, mass * 717.5 * 500, volume, volume * ratio, out var w) == FuelVolumeStatus.Success); + Near(w.Fluid.TemperatureKelvin, 500 * Math.Pow(ratio, -.4), 1e-10); + Near(w.EnergyChangeJoules, mass * 717.5 * 500 * (Math.Pow(ratio, -.4) - 1), 1e-12); + Near(w.Fluid.PressurePascals * Math.Pow(ratio, 1.4), 10000, 1e-8); + } + Require(law.AdiabaticVolume(0, 1, 1, 1, out var bad) == FuelVolumeStatus.InvalidInput && bad == default); + } + // Independent scalar chemical-potential equality and entropy inversion. No production EOS is called here. + private static (double Pressure, double Energy, double Entropy) Reference(double density, double t) + { + const double k = 1.5e9, rho0 = 750, r = 287, cl = 2000, cv = 717.5; + double lo = 1, hi = 20e6, logT = Math.Log(t / 400), p0 = 1e5 * Math.Exp((cv + r - cl) / r * logT - 813000 / r * (1 / t - 1d / 400)); + for (int i = 0; i < 80; ++i) { double p = (lo + hi) / 2; if (r * t * Math.Log(p / p0) - k / rho0 * Math.Log(1 + p / k) > 0) hi = p; else lo = p; } + double pressure = (lo + hi) / 2, vl = 1 / (rho0 * (1 + pressure / k)), vv = r * t / pressure, v = 1 / density, quality = (v - vl) / (vv - vl); + if (quality < 0) { quality = 0; pressure = k * (density / rho0 - 1); } + if (quality > 1) { quality = 1; pressure = density * r * t; } + double y = pressure / k, cold = k / rho0 * (Math.Log(1 + y) - y / (1 + y)); + return (pressure, (1 - quality) * (cl * t - 813000 + cold) + quality * cv * t, + (1 - quality) * cl * logT + quality * ((cv + r) * logT - r * Math.Log(pressure / 1e5) + 1037)); + } + private static (double Pressure, double Energy, double Entropy) Isentrope(double density, double entropy) + { + double lo = 200, hi = 600; + for (int i = 0; i < 60; ++i) { double t = (lo + hi) / 2; if (Reference(density, t).Entropy > entropy) hi = t; else lo = t; } + return Reference(density, (lo + hi) / 2); + } + private static void PhaseWork() + { + var law = CompressibleFuelChecks.Law(); const double mass = 1e-4, volume = 5e-7; + Require(law.Evaluate(mass / volume, 350, out var p)); Require(p.Phase == FuelVolumePhase.LiquidVapor); + double entropy = Reference(mass / volume, 350).Entropy; + Require(law.AdiabaticVolume(mass, mass * p.SpecificInternalEnergyJoulesPerKilogram, volume, 2 * volume, out var work) == FuelVolumeStatus.Success); + var end = Isentrope(mass / (2 * volume), entropy); Near(work.Fluid.PressurePascals, end.Pressure, 1e-6); Near(work.Fluid.SpecificInternalEnergyJoulesPerKilogram, end.Energy, 2e-7); + double integral = 0; const int count = 256; double h = volume / count; + for (int i = 0; i <= count; ++i) integral += (i == 0 || i == count ? 1 : i % 2 == 0 ? 2 : 4) * Isentrope(mass / (volume + i * h), entropy).Pressure; + Near(work.EnergyChangeJoules, -integral * h / 3, 2e-9); + Require(law.AdiabaticVolume(mass, mass * p.SpecificInternalEnergyJoulesPerKilogram + work.EnergyChangeJoules, 2 * volume, volume, out var reverse) == FuelVolumeStatus.Success); + Near(work.EnergyChangeJoules + reverse.EnergyChangeJoules, 0, 1e-10); + } + private static void Closed() + { + var s = CompiledModel.Compile(Model(tick: 50000)).CreateSimulation(); double initial = Value(s, 1, Field.InternalEnergy), entropy = Value(s, 1, Field.Entropy), speed = Value(s, 4, Field.Speed); + double peak = 0; + for (int i = 0; i < 10; ++i) + { + Step(s, 1000000); Balance(s); peak = Math.Max(peak, Value(s, 1, Field.VaporMassFraction)); + Near(Value(s, 1, Field.InternalEnergy) - initial, Value(s, 12, Field.HydraulicWork), 2e-9); + Near(.5e-5 * (Math.Pow(Value(s, 4, Field.Speed), 2) - speed * speed) + Value(s, 12, Field.HydraulicWork), 0, 2e-9); + Near(Value(s, 1, Field.Entropy), entropy, 2e-10); Near(Value(s, 1, Field.Volume), Value(s, 12, Field.Volume), 0); + } + Require(peak > 0); Console.WriteLine($"Compressible closed chamber peak vapor fraction: {peak:R}."); + } + private static void LiquidReference() + { + const double min = 1e-7, sweep = 1e-10, inertia = 1e-8, duration = .002; + double initialVolume = min + sweep * (1 - Math.Cos(.4)) / 2, mass = initialVolume * 750 * (1 + 2e6 / 1.5e9); + double Acceleration(double angle) => 1.5e9 * (mass / (750 * (min + sweep * (1 - Math.Cos(angle)) / 2)) - 1) * sweep * Math.Sin(angle) / (2 * inertia); + (double Angle, double Speed) Integrate(int count) + { + double angle = .4, speed = 20, h = duration / count; + for (int i = 0; i < count; ++i) + { + double a = Acceleration(angle), b = Acceleration(angle + h * speed / 2), c = Acceleration(angle + h * (speed + h * a / 2) / 2), d = Acceleration(angle + h * (speed + h * b / 2)); + angle += h / 6 * (speed + 2 * (speed + h * a / 2) + 2 * (speed + h * b / 2) + speed + h * c); speed += h / 6 * (a + 2 * b + 2 * c + d); + } + return (angle, speed); + } + var exact = Integrate(4000); var finer = Integrate(8000); Near(exact.Angle, finer.Angle, 1e-12); Near(exact.Speed, finer.Speed, 1e-10); + var errors = new List(); + foreach (ulong tick in new ulong[] { 100000, 50000, 25000, 12500 }) + { + var d = new ModelDefinition { StepNanoseconds = tick, Nodes = [NodeDefinition.Rotor(4, inertia, 20, .4), NodeDefinition.CompressibleFuelVolume(1, initialVolume, mass, 300, EquilibriumDuctChecks.Material())], + Components = [ComponentDefinition.CompressibleChamber(12, 4, 1, Geometry with { MinimumReferenceVolume = new(min, Unit.CubicMeter), SweptVolume = new(sweep, Unit.CubicMeter) })] }; + var s = CompiledModel.Compile(d).CreateSimulation(); Step(s, 2000000); Balance(s); Near(Value(s, 1, Field.Temperature), 300, 2e-8); + errors.Add(Math.Max(Math.Abs(Value(s, 4, Field.Angle) - exact.Angle), Math.Abs(Value(s, 4, Field.Speed) - exact.Speed) / 20)); + } + Console.WriteLine("Compressible liquid chamber normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + for (int i = 1; i < errors.Count; ++i) Require(errors[i - 1] / errors[i] is > 3.4 and < 4.6); + } + private static void DuctReference() + { + // Independent RK4 of the semi-discrete Euler balances with a moving mixed chamber. + // The ideal-gas closure is analytic; the production phase inversion and work split are not used. + const int cells = 6, dimension = 2 + 3 * cells; const double duration = .0001; + double Volume(int i, double angle) => i == 0 ? 1e-7 + 1e-7 * (1 - Math.Cos(angle)) : i == cells - 1 ? .001 : .025e-6; + double[] initial = new double[dimension]; initial[0] = .5; initial[1] = 5000; + for (int i = 0; i < cells; ++i) { initial[2 + 3 * i] = Volume(i, .5) * 1e5 / (287 * 500); initial[4 + 3 * i] = initial[2 + 3 * i] * 717.5 * 500; } + void Rates(double[] x, double[] rate) + { + Array.Clear(rate); rate[0] = x[1]; double speed = Math.Sqrt(1.5e9 / 750); + for (int i = 0; i < cells; ++i) speed = Math.Max(speed, Math.Abs(x[3 + 3 * i] / x[2 + 3 * i]) + Math.Sqrt(1.5e9 / 750)); + double Pressure(int i) => .4 * (x[4 + 3 * i] - .5 * x[3 + 3 * i] * x[3 + 3 * i] / x[2 + 3 * i]) / Volume(i, x[0]); + double chamberPressure = Pressure(0); rate[1] = chamberPressure * 1e-7 * Math.Sin(x[0]) / 1e-5; rate[4] = -chamberPressure * 1e-7 * Math.Sin(x[0]) * x[1]; + for (int face = 0; face < cells - 1; ++face) + { + int l = 2 + 3 * face, r = l + 3; double vl = Volume(face, x[0]), vr = Volume(face + 1, x[0]), ul = x[l + 1] / x[l], ur = x[r + 1] / x[r]; + double mass = 1e-6 * (.5 * (x[l + 1] / vl + x[r + 1] / vr) - .5 * speed * (x[r] / vr - x[l] / vl)); + double momentum = 1e-6 * (.5 * (x[l + 1] * ul / vl + Pressure(face) + x[r + 1] * ur / vr + Pressure(face + 1)) - .5 * speed * (x[r + 1] / vr - x[l + 1] / vl)); + double energy = 1e-6 * (.5 * ((x[l + 2] / vl + Pressure(face)) * ul + (x[r + 2] / vr + Pressure(face + 1)) * ur) - .5 * speed * (x[r + 2] / vr - x[l + 2] / vl)); + rate[l] -= mass; rate[r] += mass; rate[l + 2] -= energy; rate[r + 2] += energy; + if (face > 0) rate[l + 1] -= momentum; if (face + 1 < cells - 1) rate[r + 1] += momentum; + } + } + double[] Integrate(int count) + { + var x = initial.ToArray(); double[] a = new double[dimension], b = new double[dimension], c = new double[dimension], d = new double[dimension], y = new double[dimension]; double h = duration / count; + for (int i = 0; i < count; ++i) + { + Rates(x, a); for (int j = 0; j < dimension; ++j) y[j] = x[j] + h * a[j] / 2; Rates(y, b); + for (int j = 0; j < dimension; ++j) y[j] = x[j] + h * b[j] / 2; Rates(y, c); + for (int j = 0; j < dimension; ++j) y[j] = x[j] + h * c[j]; Rates(y, d); + for (int j = 0; j < dimension; ++j) x[j] += h / 6 * (a[j] + 2 * b[j] + 2 * c[j] + d[j]); + } + return x; + } + var reference = Integrate(4000); var finer = Integrate(8000); Near(reference[2], finer[2], 1e-17); Near(reference[1], finer[1], 1e-8); + var errors = new List(); + foreach (ulong tick in new ulong[] { 1000, 500, 250, 125 }) + { + var s = CompiledModel.Compile(Model(true, true, tick)).CreateSimulation(); Step(s, 100000); Balance(s); + double error = Math.Abs(Value(s, 1, Field.Mass) - reference[2]) / initial[2]; + for (int i = 1; i < cells - 1; ++i) error = Math.Max(error, Math.Abs(Value(s, (uint)(99 + i), Field.Mass) - reference[2 + 3 * i]) / initial[2 + 3 * i]); + errors.Add(error); + } + Console.WriteLine("Compressible moving duct RK4 normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + for (int i = 1; i < errors.Count; ++i) Require(errors[i - 1] / errors[i] is > 1.7 and < 2.3); + } + private static void Composition() + { + var d = Model(true); d = d with { Nodes = [..d.Nodes, NodeDefinition.Rotor(5, 1e-5, 2500), NodeDefinition.Rotor(6, 1e-5), NodeDefinition.Hydraulic(7, 1e-10, 1e5)], + Components = [..d.Components, ComponentDefinition.IdealGear(20, 4, 5, 2), ComponentDefinition.Clutch(21, 5, 6, .1, .05, 300, .5, heat: 3), ComponentDefinition.DisplacementPump(22, 5, 7, 1e-9, reservoirPressure: 1e5)] }; + var s = CompiledModel.Compile(d).CreateSimulation(); Step(s, 100000); Balance(s); + Require(Value(s, 1, Field.VaporMassFraction) > 0); Require(Value(s, 10, Field.MassAtA) != 0); + Near(Value(s, 4, Field.Speed), 2 * Value(s, 5, Field.Speed), 1e-9); + } + private static void Transactions() + { + var d = Model(true, true); d = d with { Components = [..d.Components, ComponentDefinition.Torque(20, 4, 200, 0)] }; + var s = CompiledModel.Compile(d).CreateSimulation(); var branch = s.Fork(); Step(s, 10000); for (int i = 0; i < 10; ++i) Step(branch, 1000); Require(Snapshot(s) == Snapshot(branch)); var before = Snapshot(s); + Require(s.Step(10000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(10000, [new(before.TimeNanoseconds + 5000, 200, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + Require(branch.SubmitInputs([new(200, .1)]) == SimulationStatus.Ok); Step(branch, 1000); Require(Snapshot(s) == before); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 20; ++i) { Step(s, 1000); s.ReadSnapshot(values); } + long allocation = GC.GetAllocatedBytesForCurrentThread(); for (int i = 0; i < 20; ++i) { Step(s, 1000); s.ReadSnapshot(values); } Require(GC.GetAllocatedBytesForCurrentThread() == allocation); + } + private static void Contracts() + { + var d = Model(true); var c = d.Components[0]; var compiled = CompiledModel.Compile(d); + Require(!CompiledModel.TryCompile(d with { Components = [..d.Components, c with { Id = 13 }] }, out _, out _)); + Require(!CompiledModel.TryCompile(d with { Components = [c with { NodeB = 100 }, d.Components[1]] }, out _, out _)); + Require(!CompiledModel.TryCompile(d with { Components = [c with { FuelChamber = Geometry with { SweptVolume = new(1, Unit.Kelvin) } }, d.Components[1]] }, out _, out var diagnostic) && diagnostic!.Code == DiagnosticCode.Unit); + Require(!CompiledModel.TryCompile(d with { Nodes = d.Nodes.Select(n => n.Id == 1 ? n with { Storage = new(1e-6, Unit.CubicMeter) } : n).ToArray() }, out _, out _)); + d.Components[0] = c with { FuelChamber = Geometry with { SweptVolume = new(3e-7, Unit.CubicMeter) } }; + var old = compiled.CreateSimulation(); var fresh = CompiledModel.Compile(Model(true)).CreateSimulation(); Step(old, 1000); Step(fresh, 1000); Require(Snapshot(old) == Snapshot(fresh)); + } +} diff --git a/tests/Power.Tests/CompressibleChamberIntegrationChecks.cs b/tests/Power.Tests/CompressibleChamberIntegrationChecks.cs new file mode 100644 index 0000000..03a0442 --- /dev/null +++ b/tests/Power.Tests/CompressibleChamberIntegrationChecks.cs @@ -0,0 +1,47 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class CompressibleChamberIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("compressible chamber documents / shaft phase work electric drive and every portable boundary", Documents), + ("compressible chamber agent / typed geometry structured errors revisions and drive branches", Sessions) + ]; + private static JsonElement Data(AgentReply r) { Require(r.Ok, r.Error?.Message ?? "Expected success."); return r.Data!.Value; } + private static void Documents() + { + foreach (string name in new[] { "compressible-fuel-chamber-duct", "electric-compressible-fuel-duct" }) + { + var document = ModelDocument.Load(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "shaft_driven_compressible_fuel"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var row in report.Samples) + { + while (playback.TimeNanoseconds < row.TimeNs) Require(playback.Advance(Math.Min(7 * asset.Model.StepNanoseconds, row.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(v => v.Value == row.Values[v.Channel.ToString()])); + } + } + } + private static void Sessions() + { + var capabilities = Data(AgentWorkspace.Capabilities()); Require(capabilities.GetProperty("compressible_fuel_chamber").GetProperty("domain").GetString() == "compressible_fuel"); + var document = Data(AgentWorkspace.ExampleModel("electric-compressible-fuel-duct")); var workspace = new AgentWorkspace(); + string parent = Data(workspace.CreateSession(document)).GetProperty("session_id").GetString()!, child = Data(workspace.ForkSession(parent, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(child, "0", [new("200", 0)])); Data(workspace.StepSession(child, "1", "10000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("revision").GetString() == "0"); Require(workspace.StepSession(child, "0", "1000").Error?.Code == "revision_conflict"); + Data(workspace.StepSession(parent, "0", "10000")); Require(Data(workspace.ReadSnapshot(parent)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(child)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(parent, "1")); Data(workspace.CloseSession(child, "2")); + var bad = JsonNode.Parse(document.GetRawText())!; var chamber = bad["components"]!.AsArray().Single(c => c!["kind"]!.GetValue() == "compressible_fuel_chamber")!; + chamber["parameters"]!["swept_volume"]!["unit"] = "k"; Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code == "model_unit"); + chamber["parameters"]!["swept_volume"]!["unit"] = "m3"; chamber["node_b"] = 4; Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + } +} diff --git a/tests/Power.Tests/CompressibleFuelChecks.cs b/tests/Power.Tests/CompressibleFuelChecks.cs new file mode 100644 index 0000000..32dea8e --- /dev/null +++ b/tests/Power.Tests/CompressibleFuelChecks.cs @@ -0,0 +1,74 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; + +internal static class CompressibleFuelChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("compressible fuel / independent liquid pressure cold work and ideal vapor", Limits), + ("compressible fuel / chemical equilibrium Clapeyron and caloric derivatives", Equilibrium), + ("compressible fuel / Gibbs relation and independent isentropic acoustic derivative", Sound), + ("compressible fuel / mass-energy inversion bounds and zero allocations", Flash) + ]; + internal static CompressibleFuel Law(double bulk = 1.5e9) => new(new(new(2000, 717.5, 400, 300000, 0), 287, 100000, 200, 600), 750, bulk, 20e6); + private static CompressibleFuelPoint Point(CompressibleFuel law, double rho, double t) { Require(law.Evaluate(rho,t,out var p)); return p; } + private static void Limits() + { + var law=Law(); const double p=1e6,t=300,rho0=750,k=1.5e9; + double rho=rho0*(1+p/k), v=1/rho, v0=1/rho0; + var liquid=Point(law,rho,t); Require(liquid.Phase==FuelVolumePhase.Liquid); + Near(liquid.PressurePascals,p,2e-7); Near(liquid.SoundSpeedMetersPerSecond,Math.Sqrt(k/rho0),1e-12); + double cold=k*(v-v0-v0*Math.Log(v/v0)); + Near(liquid.SpecificInternalEnergyJoulesPerKilogram,2000*t-813000+cold,2e-10); + var vapor=Point(law,.1,500);Require(vapor.Phase==FuelVolumePhase.Vapor); + Near(vapor.PressurePascals,.1*287*500,1e-10);Near(vapor.SpecificInternalEnergyJoulesPerKilogram,717.5*500,1e-10); + Near(vapor.SoundSpeedMetersPerSecond,Math.Sqrt(1.4*287*500),1e-12); + } + private static void Equilibrium() + { + var law=Law();foreach(double t in new[]{300d,400,500}) + { + Require(law.TrySaturation(t,out var sat)); double vl=sat.LiquidSpecificVolumeCubicMetersPerKilogram,vv=sat.VaporSpecificVolumeCubicMetersPerKilogram; + var l=Point(law,1/vl,t);var v=Point(law,1/vv,t); + Near(l.SpecificInternalEnergyJoulesPerKilogram+sat.PressurePascals*vl-t*l.SpecificEntropyJoulesPerKilogramKelvin, + v.SpecificInternalEnergyJoulesPerKilogram+sat.PressurePascals*vv-t*v.SpecificEntropyJoulesPerKilogramKelvin,2e-7); + Require(law.TrySaturation(t-.001,out var before)); Require(law.TrySaturation(t+.001,out var after)); + Near((after.PressurePascals-before.PressurePascals)/.002,sat.PressureDerivativePascalsPerKelvin,2e-5); + double rho=1/(.8*vl+.2*vv);var mid=Point(law,rho,t);Require(mid.Phase==FuelVolumePhase.LiquidVapor); + Near(mid.VaporMassFraction,.2,1e-13); + Near((Point(law,rho,t+.001).SpecificInternalEnergyJoulesPerKilogram-Point(law,rho,t-.001).SpecificInternalEnergyJoulesPerKilogram)/.002,mid.IsochoricHeatCapacityJoulesPerKilogramKelvin,2e-5); + } + } + private static void Sound() + { + var law=Law();Require(law.TrySaturation(400,out var sat)); + foreach(double rho in new[]{751d,1/(.9*sat.LiquidSpecificVolumeCubicMetersPerKilogram+.1*sat.VaporSpecificVolumeCubicMetersPerKilogram),.1}) + { + var p=Point(law,rho,400);double dv=1/rho*1e-5; + double IsentropicPressure(double v) + { + double lo=390,hi=410; + for(int i=0;i<60;++i){double t=(lo+hi)/2; if(Point(law,1/v,t).SpecificEntropyJoulesPerKilogramKelvin>p.SpecificEntropyJoulesPerKilogramKelvin)hi=t;else lo=t;} + return Point(law,1/v,(lo+hi)/2).PressurePascals; + } + double derivative=(IsentropicPressure(1/rho+dv)-IsentropicPressure(1/rho-dv))/(2*dv); + Near(-derivative/(rho*rho),p.SoundSpeedMetersPerSecond*p.SoundSpeedMetersPerSecond,3e-3); + var left=Point(law,1/(1/rho-dv),400);var right=Point(law,1/(1/rho+dv),400); + Near((right.SpecificInternalEnergyJoulesPerKilogram-left.SpecificInternalEnergyJoulesPerKilogram)/(2*dv), + 400*(right.SpecificEntropyJoulesPerKilogramKelvin-left.SpecificEntropyJoulesPerKilogramKelvin)/(2*dv)-p.PressurePascals,.2); + } + } + private static void Flash() + { + var law=Law();foreach(double rho in new[]{.1,2,30,100,750,755})foreach(double t in new[]{250d,350,450,550}) + {var p=Point(law,rho,t);Require(law.Flash(rho,p.SpecificInternalEnergyJoulesPerKilogram,out var recovered));Near(recovered.TemperatureKelvin,t,2e-9);Near(recovered.SpecificInternalEnergyJoulesPerKilogram,p.SpecificInternalEnergyJoulesPerKilogram,0);} + Require(!law.Evaluate(0,300,out var bad)&&bad==default);Require(!law.Flash(750,1e20,out bad)&&bad==default); + var initial=Point(law,30,400);for(int n=0;n<30;++n)Require(law.Flash(30,initial.SpecificInternalEnergyJoulesPerKilogram,out _)); + long before=GC.GetAllocatedBytesForCurrentThread();for(int n=0;n<100;++n)Require(law.Flash(30,initial.SpecificInternalEnergyJoulesPerKilogram,out _));Require(GC.GetAllocatedBytesForCurrentThread()==before); + } +} diff --git a/tests/Power.Tests/CompressibleNozzleAssetChecks.cs b/tests/Power.Tests/CompressibleNozzleAssetChecks.cs new file mode 100644 index 0000000..064d891 --- /dev/null +++ b/tests/Power.Tests/CompressibleNozzleAssetChecks.cs @@ -0,0 +1,33 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class CompressibleNozzleAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("compressible nozzle asset / frozen phase needle complete replay and authentic v37",Replay), + ("compressible nozzle asset / typed record bounds units unused needle and downgrade rejection",Corruption)]; + private static PowerAsset Asset(bool pump=false)=>PowerAsset.Create(pump?CompressibleNozzleChecks.PumpModel():CompressibleNozzleChecks.Model(),"Compressible nozzle",new string('c',64),1000000,100000,[],[]); + private static void Sign(byte[] b)=>SHA256.HashData(b.AsSpan(0,b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + {var l=a.CreatePlayback();var r=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount];for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds){if(at>l.TimeNanoseconds)Require(l.Advance(at-l.TimeNanoseconds)==SimulationStatus.Ok);while(r.TimeNanoseconds(()=>AssetCodec.Decode(b));} + foreach(int offset in new[]{0,12,24,36,40,52,64}){var b=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(b.AsSpan(record+offset),int.MaxValue);Reject(b);} + var unused=bytes.ToArray();BinaryPrimitives.WriteDoubleLittleEndian(unused.AsSpan(record+44),1);Reject(unused); + var downgrade=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8),37);Reject(downgrade);Reject(bytes.Take(record).Concat(bytes.Skip(record+68)).ToArray()); + } +} diff --git a/tests/Power.Tests/CompressibleNozzleChecks.cs b/tests/Power.Tests/CompressibleNozzleChecks.cs new file mode 100644 index 0000000..ac6c9c5 --- /dev/null +++ b/tests/Power.Tests/CompressibleNozzleChecks.cs @@ -0,0 +1,76 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; +namespace Power.Tests; +internal static class CompressibleNozzleChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("compressible nozzle / finite vapor enthalpy kinetic wall heat entropy and complete ledgers",Conservation), + ("compressible nozzle / independent analytic choked blowdown first-order refinement",Blowdown), + ("compressible nozzle / one-way closure and finite pressure equalization",Closure), + ("compressible nozzle / shaft duct supply check valves and physical needle",Pump), + ("compressible nozzle / scheduled closure rollback cancellation forks zero allocations",Transactions), + ("compressible nozzle / units material internal-cell ownership and needle contracts",Contracts)]; + internal static CompressibleFuelNozzleDefinition Nozzle(double area=1e-8,double fraction=.4)=>new(){Area=new(area,Unit.SquareMeter),DischargeCoefficient=.7,PhaseModel=FuelDischargePhaseModel.Frozen,WallKineticFraction=new(fraction,Unit.Fraction)}; + internal static ModelDefinition Model(ulong tick=10000) + {var m=EquilibriumDuctChecks.Material(true);return new(){StepNanoseconds=tick,Nodes=[NodeDefinition.CompressibleFuelVolume(1,1e-5,1e-5*2e5/(287*500),500,m),NodeDefinition.CompressibleFuelVolume(2,1,1e5/(287*500),500,m),NodeDefinition.Thermal(3,1,350)],Components=[ComponentDefinition.CompressibleNozzleValve(10,1,2,3,Nozzle(),100)]};} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Step(Simulation s,ulong ns){var status=s.Step(ns);if(status!=SimulationStatus.Ok)throw new InvalidOperationException("Compressible nozzle failed: "+status);} + private static void Balance(Simulation s){Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14);Near(Value(s,0,Field.FuelResidual),0,1e-14);} + private static void Conservation() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();double mass=Value(s,1,Field.Mass),energy=Value(s,1,Field.InternalEnergy);Step(s,1000000);Balance(s); + double transferred=Value(s,10,Field.TotalFuelDelivered);Require(transferred>0);Near(mass-Value(s,1,Field.Mass),transferred,1e-18);Near(energy-Value(s,1,Field.InternalEnergy),Value(s,10,Field.TransportEnergy),2e-15); + Near(Value(s,10,Field.HeatRejected),.4*Value(s,10,Field.JetKineticEnergy),1e-17);Near(Value(s,10,Field.FluidHeat),.6*Value(s,10,Field.JetKineticEnergy),1e-17);Near(Value(s,3,Field.Temperature)-350,Value(s,10,Field.HeatRejected),3e-12); + Require(Value(s,10,Field.EntropyProduced)>0&&Value(s,10,Field.JetImpulse)>0&&Value(s,10,Field.Choked)==1); + } + private static void Blowdown() + { + const double t0=500,p0=2e5,volume=1e-5,duration=.005,gamma=1.4;double m0=volume*p0/(287*t0),rate=.7e-8/volume*Math.Sqrt(gamma*287*t0)*Math.Pow(2/(gamma+1),(gamma+1)/(2*(gamma-1))); + double exact=m0*Math.Pow(1+(gamma-1)/2*rate*duration,-2/(gamma-1));var errors=new List(); + foreach(ulong tick in new ulong[]{1000000,500000,250000,125000}){var s=CompiledModel.Compile(Model(tick)).CreateSimulation();Step(s,5000000);Balance(s);Require(Value(s,10,Field.Choked)==1);errors.Add(Math.Abs(Value(s,1,Field.Mass)-exact)/m0);} + Console.WriteLine("Compressible nozzle analytic blowdown errors: "+string.Join(", ",errors.Select(x=>x.ToString("R"))));for(int i=1;i1.8 and <2.2); + } + private static void Closure() + { + var d=Model();d=d with{Nodes=d.Nodes.Select(n=>n.Id==2?n with{Storage=new(1e-5,Unit.CubicMeter),Position=new(1e-5*3e5/(287*500),Unit.Kilogram)}:n).ToArray()};var closed=CompiledModel.Compile(d).CreateSimulation();double mass=Value(closed,1,Field.Mass);Step(closed,100000);Near(Value(closed,1,Field.Mass),mass,0);Near(Value(closed,10,Field.TotalFuelDelivered),0,0); + d=Model(1000000);d=d with{Nodes=d.Nodes.Select(n=>n.Id==2?n with{Storage=new(1e-5,Unit.CubicMeter),Position=new(1e-5*1e5/(287*500),Unit.Kilogram)}:n).ToArray(),Components=[d.Components[0] with{CompressibleNozzle=Nozzle(1e-6)}]}; + var s=CompiledModel.Compile(d).CreateSimulation();Step(s,100000000);Balance(s);Require(Value(s,1,Field.Pressure)>=Value(s,2,Field.Pressure)-1e-4); + } + internal static ModelDefinition PumpModel() + { + var d=CompressibleChamberChecks.Model(true);var m=EquilibriumDuctChecks.Material();double Density(double p)=>750*(1+p/1.5e9); + var nodes=d.Nodes.Select(n=>n.Id==2?n with{Storage=new(1e-6,Unit.CubicMeter),Position=new(1e-6*Density(3e5),Unit.Kilogram)}:n.Id>=100?n with{Position=new(n.Storage.Value*Density(3e5),Unit.Kilogram)}:n).ToList(); + nodes.Add(NodeDefinition.CompressibleFuelVolume(5,.001,.001*Density(3e5),350,m));nodes.Add(NodeDefinition.CompressibleFuelVolume(6,1e-4,1e-4*Density(5e5),350,m));nodes.Add(NodeDefinition.Translational(7,.002,0,.001)); + var duct=d.Components[1] with{NodeA=5,NodeB=2};var outlet=Nozzle(1e-7) with{Needle=new(){NeedleNode=7,ClosedPosition=new(0,Unit.Meter),FullOpenPosition=new(.001,Unit.Meter)}}; + nodes=nodes.Select(n=>n.Id==4?n with{Initial=new(500,Unit.RadianPerSecond)}:n).ToList();outlet=outlet with{Area=new(2e-6,Unit.SquareMeter)}; + return d with{StepNanoseconds=10000,Nodes=nodes.ToArray(),Components=[d.Components[0],duct,ComponentDefinition.CompressibleNozzleValve(20,2,1,3,Nozzle(4e-6)),ComponentDefinition.CompressibleNozzleValve(21,1,6,3,outlet,210),ComponentDefinition.LinearSpring(30,7,0,1000,.2,heat:3),ComponentDefinition.SolenoidCoil(31,7,3,220,2,.02,4,voltage:2,current:1),ComponentDefinition.StrokeStop(32,7,0,.001,10000)]}; + } + private static void Pump() + { + var s=CompiledModel.Compile(PumpModel()).CreateSimulation();double rail=Value(s,6,Field.Mass); + for(int i=0;i<2000;++i){var status=s.Step(10000);Require(status==SimulationStatus.Ok,$"Pump failed at {i*10000} ns; chamber p={Value(s,1,Field.Pressure):R}, T={Value(s,1,Field.Temperature):R}, inlet p={Value(s,2,Field.Pressure):R}, rail p={Value(s,6,Field.Pressure):R}.");}Balance(s); + Require(Value(s,20,Field.TotalFuelDelivered)>0&&Value(s,21,Field.TotalFuelDelivered)>0);Near(Value(s,6,Field.Mass)-rail,Value(s,21,Field.TotalFuelDelivered),1e-16); + Require(Value(s,21,Field.Opening)>=0&&Value(s,21,Field.Opening)<=1);Console.WriteLine($"Compressible pump nozzle delivery: {Value(s,21,Field.TotalFuelDelivered):R} kg."); + } + private static void Transactions() + { + var definition=Model();definition=definition with{Nodes=[..definition.Nodes,NodeDefinition.Rotor(4,.1)],Components=[..definition.Components,ComponentDefinition.Torque(20,4,200,0)]}; + var s=CompiledModel.Compile(definition).CreateSimulation();var replay=s.Fork();Step(s,100000);for(int i=0;i<10;++i)Step(replay,10000);Require(Snapshot(s)==Snapshot(replay));var before=Snapshot(s); + Require(s.Step(100000,cancellationToken:new CancellationToken(true))==SimulationStatus.Cancelled&&Snapshot(s)==before); + var failed=s.Step(100000,[new(before.TimeNanoseconds+50000,100,2)]);Require(failed==SimulationStatus.InvalidInput&&Snapshot(s)==before,"Invalid scheduled opening returned "+failed); + Require(s.Step(100000,[new(before.TimeNanoseconds+50000,200,double.MaxValue)])==SimulationStatus.NumericalFailure&&Snapshot(s)==before); + var child=s.Fork();var closing=child.SubmitInputs([new(100,0)]);Require(closing==SimulationStatus.Ok,"Closing command returned "+closing);Step(child,100000);Require(Snapshot(s)==before); + var values=new Scalar[s.Model.OutputCount];for(int i=0;i<20;++i){Step(s,10000);s.ReadSnapshot(values);}long allocation=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<20;++i){Step(s,10000);s.ReadSnapshot(values);}Require(GC.GetAllocatedBytesForCurrentThread()==allocation); + } + private static void Contracts() + { + var d=Model();Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0] with{NodeB=1}]},out _,out _)); + Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0] with{CompressibleNozzle=Nozzle() with{Area=new(1,Unit.Kelvin)}}]},out _,out var diagnostic)&&diagnostic!.Code==DiagnosticCode.Unit); + Require(!CompiledModel.TryCompile(d with{Nodes=d.Nodes.Select(n=>n.Id==2?n with{Fuel=n.Fuel! with{LiquidBulkModulus=new(1e9,Unit.Pascal)}}:n).ToArray()},out _,out _)); + Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0] with{CompressibleNozzle=Nozzle() with{Needle=new(){NeedleNode=3,ClosedPosition=new(0,Unit.Meter),FullOpenPosition=new(.001,Unit.Meter)}}}]},out _,out _)); + } +} diff --git a/tests/Power.Tests/CompressibleNozzleIntegrationChecks.cs b/tests/Power.Tests/CompressibleNozzleIntegrationChecks.cs new file mode 100644 index 0000000..f68230c --- /dev/null +++ b/tests/Power.Tests/CompressibleNozzleIntegrationChecks.cs @@ -0,0 +1,36 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class CompressibleNozzleIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("compressible nozzle documents / finite discharge pump needle every portable boundary",Documents), + ("compressible nozzle agent / frozen phase structured repair opening revisions and forks",Sessions)]; + private static JsonElement Data(AgentReply reply){Require(reply.Ok,reply.Error?.Message??"Expected success.");return reply.Data!.Value;} + private static void Documents() + { + foreach(string name in new[]{"compressible-fuel-nozzle","compressible-pump-needle"}) + { + var d=ModelDocument.Load(Path.Combine(AppContext.BaseDirectory,name+".power.json"));var report=ExperimentRunner.Evaluate(d);Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="frozen_compressible_fuel_nozzle_network"); + var a=AssetCodec.Decode(AssetCodec.Encode(d.ToAsset(name)));var p=a.CreatePlayback();var values=new Scalar[a.Model.OutputCount]; + foreach(var row in report.Samples){while(p.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()]));} + } + } + private static void Sessions() + { + var capability=Data(AgentWorkspace.Capabilities());Require(capability.GetProperty("compressible_fuel_nozzle").GetProperty("phase_mode").GetString()=="frozen"); + var d=Data(AgentWorkspace.ExampleModel("compressible-fuel-nozzle"));var w=new AgentWorkspace();string parent=Data(w.CreateSession(d)).GetProperty("session_id").GetString()!,child=Data(w.ForkSession(parent,"0")).GetProperty("session_id").GetString()!; + Data(w.SetInputs(child,"0",[new("100",0)]));Data(w.StepSession(child,"1","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("revision").GetString()=="0");Require(w.StepSession(child,"0","10000").Error?.Code=="revision_conflict"); + Data(w.StepSession(parent,"0","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("state_hash").GetString()!=Data(w.ReadSnapshot(child)).GetProperty("state_hash").GetString());Data(w.CloseSession(parent,"1"));Data(w.CloseSession(child,"2")); + var bad=JsonNode.Parse(d.GetRawText())!;bad["components"]![0]!["parameters"]!["phase_mode"]="relaxed";Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + bad["components"]![0]!["parameters"]!["phase_mode"]="frozen";bad["components"]![0]!["parameters"]!["area"]!["unit"]="k";Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code=="model_unit"); + } +} diff --git a/tests/Power.Tests/ConverterAssetChecks.cs b/tests/Power.Tests/ConverterAssetChecks.cs index 3b975bb..b33884d 100644 --- a/tests/Power.Tests/ConverterAssetChecks.cs +++ b/tests/Power.Tests/ConverterAssetChecks.cs @@ -27,7 +27,7 @@ private static PowerAsset Asset() private static void Replay() { var original = Asset(); var bytes = AssetCodec.Encode(original); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(decoded.Components.SequenceEqual(original.Components) && decoded.Model.Fingerprint == original.Model.Fingerprint); Require(AssetCodec.Encode(decoded).SequenceEqual(bytes)); var a = original.CreatePlayback(); var b = decoded.CreatePlayback(); var values = new Scalar[a.Model.OutputCount]; @@ -53,7 +53,7 @@ private static void Replay() private static void Corruption() { var asset=Asset(); var bytes=AssetCodec.Encode(asset); - int counts=78+Encoding.UTF8.GetByteCount(asset.Name), extension=counts+140+44*asset.Nodes.Count+156*asset.Components.Count; + int counts=78+Encoding.UTF8.GetByteCount(asset.Name), extension=counts+160+44*asset.Nodes.Count+156*asset.Components.Count; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0,bad.Length-32)).CopyTo(bad,bad.Length-32); @@ -70,7 +70,7 @@ void Change(int offset,int value) Change(second,0); // Re-signed duplicate extension must not replace the first converter. Change(extension+20+24,(int)Unit.NewtonMeter); // Wrong dimension in a map point. var altered=(byte[])bytes.Clone(); BinaryPrimitives.WriteDoubleLittleEndian(altered.AsSpan(extension+20),-.9); Reject(altered); - var down=bytes.Take(counts+56).Concat(bytes.Skip(counts+140).Take(extension-counts-140)).Concat(bytes.Skip(second+20+28*8)).ToArray(); + var down=bytes.Take(counts+56).Concat(bytes.Skip(counts+160).Take(extension-counts-160)).Concat(bytes.Skip(second+20+28*8)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),8); Reject(down); } } diff --git a/tests/Power.Tests/ConverterIntegrationChecks.cs b/tests/Power.Tests/ConverterIntegrationChecks.cs index 6f9b877..21f8a4f 100644 --- a/tests/Power.Tests/ConverterIntegrationChecks.cs +++ b/tests/Power.Tests/ConverterIntegrationChecks.cs @@ -74,7 +74,7 @@ void Reject(Action mutate,string code) Require(JsonNode.DeepEquals(JsonNode.Parse(Source),JsonNode.Parse(example.GetRawText()))); var capability=Data(AgentWorkspace.Capabilities()); Require(capability.GetProperty("converter").GetProperty("maps").GetArrayLength()==4); - Require(capability.GetProperty("asset_format").GetString()=="power.asset.v24" && capability.GetProperty("readable_asset_formats").GetArrayLength()==24); + Require(capability.GetProperty("asset_format").GetString()==AssetCodec.FormatName && capability.GetProperty("readable_asset_formats").GetArrayLength()==AssetCodec.FormatVersion); var workspace=new AgentWorkspace(); var created=Data(workspace.CreateSession(example)); string id=created.GetProperty("session_id").GetString()!; string before=Data(workspace.ReadSnapshot(id)).GetRawText(); Require(workspace.SetInputs(id,"0",[new("106",1.01)]).Error is { Code:"invalid_input",CurrentRevision:"0" }); diff --git a/tests/Power.Tests/DctControllerAssetChecks.cs b/tests/Power.Tests/DctControllerAssetChecks.cs index fe84635..0f559b3 100644 --- a/tests/Power.Tests/DctControllerAssetChecks.cs +++ b/tests/Power.Tests/DctControllerAssetChecks.cs @@ -32,7 +32,7 @@ private static void Compare(PowerAsset a, PowerAsset b) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Model.Fidelity == "sampled_dual_clutch_control"); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.Fidelity == "sampled_dual_clutch_control"); Require(bytes.SequenceEqual(AssetCodec.Encode(decoded))); var controller = decoded.Components.Single(c => c.Kind == ComponentKind.DualClutchController).DualClutchController!; Require(controller.Selectors.SequenceEqual(Enumerable.Range(300, 8).Select(i => (uint)i)) && controller.SamplePeriodNanoseconds == 1_000_000); @@ -44,14 +44,14 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] source = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int record = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 28 * 10 + 8 * 12; + int record = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 28 * 10 + 8 * 12; void Reject(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); Throws(() => AssetCodec.Decode(data)); } foreach (int count in new[] { -1, 65, int.MaxValue }) { var bad = source.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(counts + 136), count); Reject(bad); } foreach (var edit in new[] { (record, 0), (record + 8, 401), (record + 20, 300), (record + 88, (int)Unit.NewtonMeter) }) { var bad = source.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(edit.Item1), edit.Item2); Reject(bad); } var period = source.ToArray(); BinaryPrimitives.WriteUInt64LittleEndian(period.AsSpan(record + 48), 99999); Reject(period); var missing = source.Take(record).Concat(source.Skip(record + 104)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 136), 0); Reject(missing); - var down = source.Take(counts + 136).Concat(source.Skip(counts + 140).Take(record - counts - 140)).Concat(source.Skip(record + 104)).ToArray(); + var down = source.Take(counts + 136).Concat(source.Skip(counts + 160).Take(record - counts - 160)).Concat(source.Skip(record + 104)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8), 21); Reject(down); } } diff --git a/tests/Power.Tests/EngineChecks.cs b/tests/Power.Tests/EngineChecks.cs index 215b93c..b604ff3 100644 --- a/tests/Power.Tests/EngineChecks.cs +++ b/tests/Power.Tests/EngineChecks.cs @@ -163,7 +163,7 @@ private static void Contracts() Require(decoded.Components[0].Cylinder == Gas && decoded.Model.Fingerprint == compiled.Fingerprint); Require(AssetCodec.Encode(decoded).SequenceEqual(encoded)); var forged = (byte[])encoded.Clone(); - int extensionOffset = 218 + Encoding.UTF8.GetByteCount(asset.Name) + 44 * asset.Nodes.Count + 156 * asset.Components.Count; + int extensionOffset = 238 + Encoding.UTF8.GetByteCount(asset.Name) + 44 * asset.Nodes.Count + 156 * asset.Components.Count; // Redirect gas parameters to the torque source, retaining a valid digest. forged[extensionOffset] = 1; SHA256.HashData(forged.AsSpan(0, forged.Length - 32)).CopyTo(forged, forged.Length - 32); diff --git a/tests/Power.Tests/EquilibriumDuctAssetChecks.cs b/tests/Power.Tests/EquilibriumDuctAssetChecks.cs new file mode 100644 index 0000000..fba177b --- /dev/null +++ b/tests/Power.Tests/EquilibriumDuctAssetChecks.cs @@ -0,0 +1,37 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class EquilibriumDuctAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("equilibrium duct asset / full cell state and immutable topology / authentic v35",Replay), + ("equilibrium duct asset / bounded variable cells bulk units and downgrade rejection",Corruption)]; + private static PowerAsset Asset(ModelDefinition? d=null)=>PowerAsset.Create(d??EquilibriumDuctChecks.Model(),"Equilibrium duct",new string('c',64),100000,10000,[],[]); + private static void Sign(byte[] b)=>SHA256.HashData(b.AsSpan(0,b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + {var l=a.CreatePlayback();var r=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount];for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds){if(at>l.TimeNanoseconds)Require(l.Advance(at-l.TimeNanoseconds)==SimulationStatus.Ok);while(r.TimeNanoseconds(()=>AssetCodec.Decode(data));} + foreach(int count in new[]{0,25,int.MaxValue}){var bad=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(duct+4),count);Reject(bad);} + foreach(int offset in new[]{0,16,28,40,52}){var bad=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(duct+offset),int.MaxValue);Reject(bad);} + var duplicate=bytes.ToArray();BinaryPrimitives.WriteUInt32LittleEndian(duplicate.AsSpan(duct+60),100);Reject(duplicate); + var downgrade=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8),35);Reject(downgrade); + Reject(bytes.Take(duct).Concat(bytes.Skip(duct+72)).ToArray()); + } +} diff --git a/tests/Power.Tests/EquilibriumDuctChecks.cs b/tests/Power.Tests/EquilibriumDuctChecks.cs new file mode 100644 index 0000000..cc88314 --- /dev/null +++ b/tests/Power.Tests/EquilibriumDuctChecks.cs @@ -0,0 +1,94 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; +namespace Power.Tests; + +internal static class EquilibriumDuctChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("equilibrium duct / phase-changing transport complete mass energy momentum and entropy", Phase), + ("equilibrium duct / uniform equilibrium and conservative finite-wall drag", UniformDrag), + ("equilibrium duct / independent small-amplitude vapor acoustics / mesh refinement", Acoustic), + ("equilibrium duct / branches cancellation late rollback and allocation-free state", Transactions), + ("equilibrium duct / explicit cell ownership material and velocity contracts", Contracts) + ]; + internal static EquilibriumFuelDefinition Material(bool vapor=false)=>EquilibriumFuelNetworkChecks.Material with + {Compliance=default,LiquidBulkModulus=new(1.5e9,Unit.Pascal),ReferencePressure=new(vapor?1e6:1e5,Unit.Pascal)}; + internal static ModelDefinition Model(int count=4,bool vapor=false,bool uniform=false,double speed=0,double resistance=0) + { + var material=Material(vapor);var eos=new CompressibleFuel(new(new(2000,717.5,400,300000,0),287,material.ReferencePressure.Value,200,600),750,1.5e9,20e6); + double rhoA,rhoB,t=vapor?500:350; + if(vapor){rhoA=(uniform?1e5:2e5)/(287*t);rhoB=1e5/(287*t);} + else{Require(eos.TrySaturation(t,out var sat));rhoA=uniform?1/(.9*sat.LiquidSpecificVolumeCubicMetersPerKilogram+.1*sat.VaporSpecificVolumeCubicMetersPerKilogram):750*(1+2e5/1.5e9);rhoB=1/(.9*sat.LiquidSpecificVolumeCubicMetersPerKilogram+.1*sat.VaporSpecificVolumeCubicMetersPerKilogram);} + var nodes=new List{NodeDefinition.CompressibleFuelVolume(1,.001,.001*rhoA,t,material),NodeDefinition.CompressibleFuelVolume(2,.001,.001*rhoB,t,material),NodeDefinition.Thermal(3,1,350)}; + var ids=new List();double volume=.1e-6/count; + for(int i=0;is.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Step(Simulation s,ulong ns){var status=s.Step(ns);Require(status==SimulationStatus.Ok,"Duct failed: "+status);} + private static void Balance(Simulation s){Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14);Near(Value(s,0,Field.FuelResidual),0,1e-14);} + private static void Phase() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();double initialQuality=Value(s,100,Field.VaporMassFraction),massA=Value(s,1,Field.Mass),massB=Value(s,2,Field.Mass); + Step(s,100_000);Balance(s);Require(Value(s,100,Field.VaporMassFraction)!=initialQuality&&Value(s,10,Field.EntropyProduced)>0); + Near(massA-Value(s,1,Field.Mass),Value(s,10,Field.MassAtA),1e-16);Near(Value(s,2,Field.Mass)-massB,Value(s,10,Field.MassAtB),1e-16); + double momentum=0;for(uint i=100;i<104;++i)momentum+=Value(s,i,Field.Mass)*Value(s,i,Field.LinearSpeed); + Near(momentum+Value(s,10,Field.JetImpulse),0,1e-12); + Console.WriteLine($"Equilibrium duct phase: first-cell quality {initialQuality:R} -> {Value(s,100,Field.VaporMassFraction):R}; entropy {Value(s,10,Field.EntropyProduced):R} J/K."); + var expansion=Model();double reservoirDensity=expansion.Nodes.Single(n=>n.Id==2).Position.Value/.001,liquidDensity=750*(1+2e5/1.5e9); + expansion=expansion with{Nodes=expansion.Nodes.Select(n=>n.Id==1?n with{Position=new(reservoirDensity*n.Storage.Value,Unit.Kilogram)}:n.Id>=100?n with{Position=new(liquidDensity*n.Storage.Value,Unit.Kilogram)}:n).ToArray()}; + var boiling=CompiledModel.Compile(expansion).CreateSimulation();Near(Value(boiling,100,Field.VaporMassFraction),0,0);Step(boiling,100000);Balance(boiling); + Require(Value(boiling,100,Field.VaporMassFraction)>0&&Value(boiling,103,Field.VaporMassFraction)>0); + Near(Value(boiling,100,Field.Mass),Value(boiling,103,Field.Mass),1e-15);Near(Value(boiling,100,Field.LinearSpeed),-Value(boiling,103,Field.LinearSpeed),1e-9); + Console.WriteLine($"Equilibrium duct expansion: end-cell vapor fraction {Value(boiling,100,Field.VaporMassFraction):R}."); + } + private static void UniformDrag() + { + var uniform=CompiledModel.Compile(Model(uniform:true)).CreateSimulation();var initial=new Scalar[uniform.Model.OutputCount];uniform.ReadSnapshot(initial);Step(uniform,10_000);Balance(uniform); + for(uint i=100;i<104;++i){Near(Value(uniform,i,Field.LinearSpeed),0,1e-12);Near(Value(uniform,i,Field.VaporMassFraction),.1,1e-10);} + var drag=CompiledModel.Compile(Model(vapor:true,uniform:true,speed:2,resistance:1e12)).CreateSimulation();Step(drag,20_000);Balance(drag); + Require(Value(drag,10,Field.FrictionHeat)>0);Near(Value(drag,10,Field.FluidHeat),Value(drag,10,Field.FrictionHeat)/2,1e-16); + Near(Value(drag,3,Field.Temperature)-350,Value(drag,10,Field.HeatRejected),3e-12); + } + private static void Acoustic() + { + var errors=new List();const double length=.1,amplitude=10,temperature=500,pressure=1e5,gamma=1.4;double density=pressure/(287*temperature),sound=Math.Sqrt(gamma*287*temperature),time=1e-5; + double Bump(double x)=>Math.Exp(-Math.Pow((x-.05)/.01,2)); + double Average(double left,double right,double shift) + {double sum=0;const int count=64;double h=(right-left)/count;for(int j=0;j<=count;++j)sum+=(j==0||j==count?1:j%2==0?2:4)*Bump(left+j*h+shift);return sum*h/3/(right-left);} + foreach(int count in new[]{8,16,24}) + { + var d=Model(count,true,true);double dx=length/count; + d=d with{Nodes=d.Nodes.Select(n=> + {if(n.Id<100)return n;double perturbation=amplitude*Average((n.Id-100)*dx,(n.Id-99)*dx,0),rho=density+perturbation/(sound*sound); + return NodeDefinition.CompressibleFuelVolume(n.Id,n.Storage.Value,n.Storage.Value*rho,(pressure+perturbation)/(287*rho),Material(true));}).ToArray()}; + var s=CompiledModel.Compile(d).CreateSimulation();Step(s,10000);Balance(s);double error=0; + for(int i=0;ix.ToString("R"))));Require(errors[2]n.Id==1?n with{InitialVelocity=new(1,Unit.MeterPerSecond)}:n).ToArray()};Require(!CompiledModel.TryCompile(bad,out _,out _)); + bad=d with{Nodes=d.Nodes.Select(n=>n.Id==100?n with{Fuel=n.Fuel! with{LiquidBulkModulus=new(1e9,Unit.Pascal)}}:n).ToArray()};Require(!CompiledModel.TryCompile(bad,out _,out _)); + } +} diff --git a/tests/Power.Tests/EquilibriumDuctIntegrationChecks.cs b/tests/Power.Tests/EquilibriumDuctIntegrationChecks.cs new file mode 100644 index 0000000..41bbec9 --- /dev/null +++ b/tests/Power.Tests/EquilibriumDuctIntegrationChecks.cs @@ -0,0 +1,35 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class EquilibriumDuctIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("equilibrium duct documents / condensation vapor formation and every cell boundary",Documents), + ("equilibrium duct agent / explicit velocity cell topology structured errors and forks",Sessions)]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static void Documents() + { + foreach(string name in new[]{"equilibrium-fuel-condensing-duct","equilibrium-fuel-flashing-duct"}) + { + var doc=ModelDocument.Load(Path.Combine(AppContext.BaseDirectory,name+".power.json"));var report=ExperimentRunner.Evaluate(doc);Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="equilibrium_compressible_fuel_transport"); + var asset=AssetCodec.Decode(AssetCodec.Encode(doc.ToAsset(name)));var play=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + foreach(var row in report.Samples){while(play.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()]));Near(row.Values[Channels.Output(0,Field.EnergyResidual).ToString()],0,2e-7);} + } + } + private static void Sessions() + { + var capability=Data(AgentWorkspace.Capabilities());Require(capability.GetProperty("equilibrium_fuel_duct").GetProperty("domain").GetString()=="compressible_fuel"); + var example=Data(AgentWorkspace.ExampleModel("equilibrium-fuel-flashing-duct"));var w=new AgentWorkspace();string parent=Data(w.CreateSession(example)).GetProperty("session_id").GetString()!,child=Data(w.ForkSession(parent,"0")).GetProperty("session_id").GetString()!; + Data(w.StepSession(child,"0","10000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("revision").GetString()=="0");Require(w.StepSession(child,"0","1000").Error?.Code=="revision_conflict");Data(w.StepSession(parent,"0","10000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("state_hash").GetString()==Data(w.ReadSnapshot(child)).GetProperty("state_hash").GetString());Data(w.CloseSession(parent,"1"));Data(w.CloseSession(child,"1")); + var bad=JsonNode.Parse(example.GetRawText())!;var node=bad["nodes"]![0]!;node.AsObject().Remove("initial_velocity");Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + node["initial_velocity"]=new JsonObject{["value"]=0,["unit"]="m_s"};node["fuel"]!["liquid_bulk_modulus"]!["unit"]="k";Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code=="model_unit"); + } +} diff --git a/tests/Power.Tests/EquilibriumFuelNetworkAssetChecks.cs b/tests/Power.Tests/EquilibriumFuelNetworkAssetChecks.cs new file mode 100644 index 0000000..68d20fe --- /dev/null +++ b/tests/Power.Tests/EquilibriumFuelNetworkAssetChecks.cs @@ -0,0 +1,58 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class EquilibriumFuelNetworkAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel network asset / complete phase transport histories / authentic v31 upgrade", Replay), + ("fuel network asset / inferred bounded material records / corruption and forged downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(EquilibriumFuelNetworkChecks.Model(heat: true), "Fuel network", new string('e', 64), 200_000_000, 10_000_000, + [new(50_000_000, 100, 0), new(100_000_000, 100, 1)], []); + private static void Sign(byte[] bytes) => SHA256.HashData(bytes.AsSpan(0, bytes.Length - 32)).CopyTo(bytes, bytes.Length - 32); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong time = 0; time <= a.DurationNanoseconds; time += a.SampleEveryNanoseconds) + { + if (time > left.TimeNanoseconds) Require(left.Advance(time - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < time) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, time - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var restored = AssetCodec.Decode(bytes); + Require(restored.Model.HasEquilibriumFuelNetwork && bytes.SequenceEqual(AssetCodec.Encode(restored))); Compare(asset, restored); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "equilibrium-tank-supply-v31.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 31 && + Convert.ToHexStringLower(SHA256.HashData(fixture)) == "8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349"); + var old = AssetCodec.Decode(fixture); Require(old.Model.HasEquilibriumTanks && !old.Model.HasEquilibriumFuelNetwork && old.Model.Fingerprint.ToString("x16") == "6b0e2b783c7a15f0"); + var upgraded = AssetCodec.Encode(old); var back = upgraded.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(back.AsSpan(8), 31); Sign(back); + Require(back.SequenceEqual(fixture)); Compare(old, AssetCodec.Decode(upgraded)); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); + int table = bytes.Length - 32 - 24 * asset.Inputs.Count - 33 * asset.Checks.Count - 2 * 148; + void Reject(byte[] bad) { Sign(bad); Throws(() => AssetCodec.Decode(bad)); } + foreach (int index in new[] { -1, 2, int.MaxValue }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(table), index); Reject(bad); } + var duplicate = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(table + 148), 0); Reject(duplicate); + var unit = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(unit.AsSpan(table + 12), (int)Unit.Kelvin); Reject(unit); + var density = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(density.AsSpan(table + 16), 0); Reject(density); + var missing = bytes.Take(table).Concat(bytes.Skip(table + 148)).ToArray(); Reject(missing); + var downgrade = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 31); Reject(downgrade); + Reject(bytes.Concat(new byte[4]).ToArray()); + } +} diff --git a/tests/Power.Tests/EquilibriumFuelNetworkChecks.cs b/tests/Power.Tests/EquilibriumFuelNetworkChecks.cs new file mode 100644 index 0000000..aad62a5 --- /dev/null +++ b/tests/Power.Tests/EquilibriumFuelNetworkChecks.cs @@ -0,0 +1,251 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class EquilibriumFuelNetworkChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("equilibrium fuel network / integrated liquid to two-phase flow / enthalpy mass energy entropy", Transfer), + ("equilibrium fuel network / reverse flow and finite-bath heat / complete ledgers", ReverseHeat), + ("equilibrium fuel network / connected paths and heat-driven reversal / entropy accounting", ConnectedPaths), + ("equilibrium fuel network / independent liquid pressure exponential and numerical heating refinement", LiquidReference), + ("equilibrium fuel network / independent two-phase transport and finite-wall ODE / refinement", PhaseReference), + ("equilibrium fuel network / scheduled batches cancellation forks rollback and zero allocations", Transactions), + ("equilibrium fuel network / late mechanical failure rolls back all fuel histories", LateRollback), + ("equilibrium fuel network / speculative clutch capture and shared heat / exact batch replay", HybridComposition), + ("equilibrium fuel network / explicit material units ownership limits and immutable compilation", Contracts) + ]; + internal static EquilibriumFuelDefinition Material => new() + { + Compliance = new(5e-13, Unit.CubicMeterPerPascal), LiquidDensity = new(750, Unit.KilogramPerCubicMeter), MaximumPressure = new(20e6, Unit.Pascal), + GasConstant = new(287, Unit.JoulePerKilogramKelvin), VaporSpecificHeat = new(717.5, Unit.JoulePerKilogramKelvin), LiquidSpecificHeat = new(2000, Unit.JoulePerKilogramKelvin), + ReferenceTemperature = new(400, Unit.Kelvin), LatentInternalEnergy = new(300000, Unit.JoulePerKilogram), ReferencePressure = new(100000, Unit.Pascal), + MinimumTemperature = new(200, Unit.Kelvin), MaximumTemperature = new(600, Unit.Kelvin), LowerHeatingValue = new(44e6, Unit.JoulePerKilogram) + }; + internal static ModelDefinition Model(ulong step = 100_000, bool reverse = false, bool heat = false) => new() + { + StepNanoseconds = step, + Nodes = [NodeDefinition.FuelVolume(1, 8e-7, reverse ? .0003 : .00065, reverse ? 300 : 400, Material), + NodeDefinition.FuelVolume(2, 8e-7, reverse ? .00065 : .0003, reverse ? 400 : 300, Material), NodeDefinition.Thermal(3, 2, 500)], + Components = heat ? [ComponentDefinition.FuelRestriction(10, 1, 2, 1e-11, 100), ComponentDefinition.FuelHeatLink(11, 2, 3, .2)] : [ComponentDefinition.FuelRestriction(10, 1, 2, 1e-11, 100)] + }; + private static SnapshotInfo Snapshot(Simulation simulation) => simulation.ReadSnapshot(new Scalar[simulation.Model.OutputCount]); + private static void Step(Simulation simulation, ulong time) => Require(simulation.Step(time) == SimulationStatus.Ok, "Equilibrium fuel step failed."); + private static void Balances(Simulation simulation) + { Near(Value(simulation, 0, Field.EnergyResidual), 0, 1e-7); Near(Value(simulation, 0, Field.MassResidual), 0, 1e-15); Near(Value(simulation, 0, Field.FuelResidual), 0, 1e-15); } + private static void Transfer() + { + var s = CompiledModel.Compile(Model()).CreateSimulation(); + Require(s.Model.Fidelity == "homogeneous_equilibrium_fuel_network"); + double initialMass = Value(s, 1, Field.Mass) + Value(s, 2, Field.Mass), initialEnergy = Value(s, 1, Field.InternalEnergy) + Value(s, 2, Field.InternalEnergy); + double entropy = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy); + Near(Value(s, 1, Field.VaporMass), 0, 0); Require(Value(s, 2, Field.VaporMass) > 0); + for (int i = 0; i < 10; ++i) + { + Step(s, 20_000_000); Balances(s); + double next = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy); Require(next >= entropy - 1e-12); entropy = next; + } + Near(Value(s, 1, Field.Mass) + Value(s, 2, Field.Mass), initialMass, 1e-16); + Near(Value(s, 1, Field.InternalEnergy) + Value(s, 2, Field.InternalEnergy), initialEnergy, 1e-11); + Require(Value(s, 1, Field.VaporMass) > 0 && Value(s, 10, Field.TotalFuelDelivered) > 0); + Near(Value(s, 1, Field.Mass) + Value(s, 10, Field.TotalFuelDelivered), .00065, 1e-16); + Require(Value(s, 10, Field.EntropyProduced) > 0); + Console.WriteLine($"Equilibrium fuel transfer: mass={Value(s, 10, Field.TotalFuelDelivered):R}, source vapor={Value(s, 1, Field.VaporMass):R}, entropy={Value(s, 10, Field.EntropyProduced):R}"); + } + private static void ReverseHeat() + { + var forward = CompiledModel.Compile(Model()).CreateSimulation(); var reverse = CompiledModel.Compile(Model(reverse: true)).CreateSimulation(); + Step(forward, 100_000_000); Step(reverse, 100_000_000); + Near(Value(forward, 1, Field.Mass), Value(reverse, 2, Field.Mass), 1e-17); + Near(Value(forward, 10, Field.TotalFuelDelivered), -Value(reverse, 10, Field.TotalFuelDelivered), 1e-17); + Near(Value(forward, 10, Field.TransportEnergy), -Value(reverse, 10, Field.TransportEnergy), 1e-12); + var heat = CompiledModel.Compile(Model(heat: true)).CreateSimulation(); Step(heat, 200_000_000); Balances(heat); + Require(Value(heat, 3, Field.Temperature) < 500 && Value(heat, 11, Field.TransportEnergy) > 0 && Value(heat, 11, Field.EntropyProduced) > 0); + } + private static void ConnectedPaths() + { + var definition = new ModelDefinition + { + StepNanoseconds = 1_000_000, + Nodes = [NodeDefinition.FuelVolume(1, 8e-7, .0003, 350, Material), NodeDefinition.FuelVolume(2, 8e-7, .0003, 400, Material), + NodeDefinition.Thermal(3, 2, 600), NodeDefinition.FuelVolume(4, 8e-7, .0001, 300, Material)], + Components = [ComponentDefinition.FuelRestriction(10, 1, 2, 1e-13), ComponentDefinition.FuelRestriction(11, 2, 4, 3e-14), ComponentDefinition.FuelHeatLink(12, 1, 3, 1)] + }; + var s = CompiledModel.Compile(definition).CreateSimulation(); double entropy = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy) + Value(s, 4, Field.Entropy); + bool negative = false, positive = false; + for (int i = 0; i < 50; ++i) + { + Step(s, 10_000_000); double flow = Value(s, 10, Field.MassFlow); negative |= flow < 0; positive |= flow > 0; Balances(s); + } + Require(negative && positive, "Heating did not reverse the actual pressure-driven flow."); + double change = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy) + Value(s, 4, Field.Entropy) - entropy + 2 * Math.Log(Value(s, 3, Field.Temperature) / 600); + Near(change, Value(s, 10, Field.EntropyProduced) + Value(s, 11, Field.EntropyProduced) + Value(s, 12, Field.EntropyProduced), 2e-11); + Require(change > 0); + } + + private static void LiquidReference() + { + const double c = 5e-13, k = 1e-11, duration = .02, density = 750, cl = 2000; + const double p0 = (.00065 / density - 8e-7) / c, p1 = (.00064 / density - 8e-7) / c; + double exactGap = (p0 - p1) * Math.Exp(-2 * k * duration / c), exactMass = .00064 + (p0 - p1 - exactGap) * density * c / 2; + double exactTemperature = 300 + c * ((p0 - p1) * (p0 - p1) - exactGap * exactGap) / 4 / exactMass / cl; + double previous = 0; var errors = new List(); + foreach (ulong tick in new ulong[] { 500_000, 250_000, 125_000, 62_500 }) + { + var definition = Model(tick) with { Nodes = [NodeDefinition.FuelVolume(1, 8e-7, .00065, 300, Material), NodeDefinition.FuelVolume(2, 8e-7, .00064, 300, Material)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 20_000_000); Balances(s); + double discreteGap = (p0 - p1) / Math.Pow(1 + 2 * k * tick * 1e-9 / c, duration / (tick * 1e-9)); + Near(Value(s, 1, Field.Pressure) - Value(s, 2, Field.Pressure), discreteGap, 1e-5); + Near(Value(s, 1, Field.Pressure) + Value(s, 2, Field.Pressure), p0 + p1, 1e-5); + Require(Value(s, 1, Field.VaporMass) == 0 && Value(s, 2, Field.VaporMass) == 0); + double error = Math.Max(Math.Abs(Value(s, 2, Field.Pressure) - (p0 + p1 - exactGap) / 2) / p0, + Math.Max(Math.Abs(Value(s, 1, Field.Temperature) - 300), Math.Abs(Value(s, 2, Field.Temperature) - exactTemperature)) / 300); + if (previous > 0) Require(previous / error is > 1.8 and < 2.2); + previous = error; errors.Add(error); + } + Console.WriteLine("Equilibrium fuel liquid-limit normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + } + + // Independent saturation pressure and mass-energy inversion. The production + // flash, temperature derivatives and pairwise Newton solve are not called. + private static (double P, double V, double H, double T) Reference(double mass, double energy) + { + (double E, double P, double V, double H) Point(double t) + { + const double r = 287, cv = 717.5, cl = 2000, density = 750, v0 = 8e-7, c = 5e-13, offset = -813000; + double p0 = 100000 * Math.Pow(t / 400, (cv + r - cl) / r) * Math.Exp(offset / r * (1 / t - 1 / 400d)); + double lo = p0, hi = p0 * Math.E; + for (int n = 0; n < 64; ++n) + { double middle = (lo + hi) / 2; if (Math.Log(middle / p0) > middle / (density * r * t)) hi = middle; else lo = middle; } + double p = (lo + hi) / 2, v = v0 + c * p, vapor; + if (mass >= density * v) { p = (mass / density - v0) / c; vapor = 0; } + else if (mass <= p * v / (r * t)) { p = (-v0 + Math.Sqrt(v0 * v0 + 4 * c * mass * r * t)) / (2 * c); vapor = mass; } + else vapor = (density * v - mass) / (density * r * t / p - 1); + v = v0 + c * p; + double fluid = (mass - vapor) * (cl * t + offset) + vapor * cv * t; + return (fluid + .5 * c * p * p, p, v, (fluid + p * v) / mass); + } + double low = 200, high = 600; + for (int n = 0; n < 52; ++n) { double t = (low + high) / 2; if (Point(t).E > energy) high = t; else low = t; } + double temperature = (low + high) / 2; var result = Point(temperature); return (result.P, result.V, result.H, temperature); + } + private static void PhaseReference() + { + var initial = CompiledModel.Compile(Model(heat: true)).CreateSimulation(); + double[] start = [Value(initial, 1, Field.Mass), Value(initial, 1, Field.InternalEnergy), Value(initial, 2, Field.Mass), Value(initial, 2, Field.InternalEnergy), 500]; + void Rates(double[] x, double[] rate) + { + var a = Reference(x[0], x[1]); var b = Reference(x[2], x[3]); + double flow = 1e-11 * (a.P - b.P) * (a.P >= b.P ? x[0] / a.V : x[2] / b.V); + double enthalpy = flow * (flow >= 0 ? a.H : b.H), heat = .2 * (x[4] - b.T); + rate[0] = -flow; rate[1] = -enthalpy; rate[2] = flow; rate[3] = enthalpy + heat; rate[4] = -heat / 2; + } + double[] Integrate(int count) + { + double[] x = start.ToArray(), stage = new double[5], a = new double[5], b = new double[5], c = new double[5], d = new double[5]; double h = .05 / count; + for (int i = 0; i < count; ++i) + { + Rates(x, a); for (int j = 0; j < 5; ++j) stage[j] = x[j] + h * a[j] / 2; Rates(stage, b); + for (int j = 0; j < 5; ++j) stage[j] = x[j] + h * b[j] / 2; Rates(stage, c); + for (int j = 0; j < 5; ++j) stage[j] = x[j] + h * c[j]; Rates(stage, d); + for (int j = 0; j < 5; ++j) x[j] += h / 6 * (a[j] + 2 * b[j] + 2 * c[j] + d[j]); + } + return x; + } + var reference = Integrate(1000); var finer = Integrate(2000); + for (int j = 0; j < 5; ++j) Near(reference[j], finer[j], j is 0 or 2 ? 1e-11 : 2e-6); + double previous = 0; var errors = new List(); + foreach (ulong tick in new ulong[] { 1_000_000, 500_000, 250_000, 125_000 }) + { + var s = CompiledModel.Compile(Model(tick, heat: true)).CreateSimulation(); Step(s, 50_000_000); Balances(s); + double[] result = [Value(s, 1, Field.Mass), Value(s, 1, Field.InternalEnergy), Value(s, 2, Field.Mass), Value(s, 2, Field.InternalEnergy), Value(s, 3, Field.Temperature)]; + double error = 0; + for (int j = 0; j < 5; ++j) error = Math.Max(error, Math.Abs(result[j] - reference[j]) / (j is 0 or 2 ? .00065 : j == 4 ? 500 : 100)); + if (previous > 0) Require(previous / error is > 1.6 and < 2.4, $"Two-phase network refinement: {previous:R}/{error:R}"); + previous = error; errors.Add(error); Require(Value(s, 1, Field.VaporMass) > 0); + } + Console.WriteLine("Equilibrium fuel two-phase wall ODE normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + } + private static void Transactions() + { + var s = CompiledModel.Compile(Model(heat: true)).CreateSimulation(); var replay = s.Fork(); + ScheduledInput[] events = [new(20_000_000, 100, .5), new(50_000_000, 100, 0), new(100_000_000, 100, 1)]; + Require(s.Step(200_000_000, events) == SimulationStatus.Ok); + for (int i = 0; i < 20; ++i) + { + ulong time = (ulong)i * 10_000_000; + var local = events.Where(e => e.TimeNanoseconds >= time && e.TimeNanoseconds < time + 10_000_000).ToArray(); + Require(replay.Step(10_000_000, local) == SimulationStatus.Ok); + } + Require(Snapshot(s) == Snapshot(replay)); var before = Snapshot(s); + Require(s.Step(100_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.SubmitInputs([new(100, 1.01)]) == SimulationStatus.InvalidInput && Snapshot(s) == before); + var branch = s.Fork(); Require(branch.SubmitInputs([new(100, 0)]) == SimulationStatus.Ok); Step(branch, 20_000_000); Require(Snapshot(s) == before); + var values = new Scalar[s.Model.OutputCount]; + for (int i = 0; i < 20; ++i) { Step(s, 100_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 20; ++i) { Step(s, 100_000); s.ReadSnapshot(values); } + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Fuel network stepping allocated."); + } + private static void Contracts() + { + var definition = Model(); var compiled = CompiledModel.Compile(definition); + definition.Nodes[0] = definition.Nodes[0] with { Fuel = Material with { LowerHeatingValue = new(43e6, Unit.JoulePerKilogram) } }; + Require(!CompiledModel.TryCompile(definition, out _, out var mismatch) && mismatch!.Field == "fuel.material"); + var invalid = Model() with { Nodes = Model().Nodes.Select(n => n.Id == 1 ? n with { Fuel = Material with { LiquidDensity = new(750, Unit.Kelvin) } } : n).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var unit) && unit!.Code == DiagnosticCode.Unit); + invalid = Model() with { Components = [ComponentDefinition.FuelRestriction(10, 1, 0, 1e-11)] }; + Require(!CompiledModel.TryCompile(invalid, out _, out var port) && port!.Code == DiagnosticCode.Connection); + invalid = Model() with { Nodes = Model().Nodes.Select(n => n.Id == 1 ? n with { Position = new(0, Unit.Kilogram) } : n).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out _)); + var a = compiled.CreateSimulation(); var b = CompiledModel.Compile(Model()).CreateSimulation(); Step(a, 1_000_000); Step(b, 1_000_000); Require(Snapshot(a) == Snapshot(b)); + var capacityNodes = Enumerable.Range(1, 32).Select(id => NodeDefinition.FuelVolume((uint)id, 8e-7, .0003, 350, Material)).ToArray(); + var links = Enumerable.Range(0, 13).Select(id => ComponentDefinition.FuelRestriction((uint)(100 + id), 1, (uint)(2 + id), 1e-11)).ToArray(); + Require(CompiledModel.Compile(new() { Nodes = capacityNodes, Components = links.Take(12).ToArray() }).StateCount == 124); + Require(!CompiledModel.TryCompile(new() { Nodes = capacityNodes, Components = links }, out _, out var limit) && limit!.Code == DiagnosticCode.Capacity); + // Finite per-tick mass can overflow when normalized to kg/s. This is a + // numeric-scale fixture, not a plausible measured fuel or flow coefficient. + var extremeMaterial = Material with + { + LiquidDensity = new(1e308, Unit.KilogramPerCubicMeter), GasConstant = new(1e-300, Unit.JoulePerKilogramKelvin), + VaporSpecificHeat = new(1e-300, Unit.JoulePerKilogramKelvin), LiquidSpecificHeat = new(2e-300, Unit.JoulePerKilogramKelvin), + LatentInternalEnergy = new(3e-298, Unit.JoulePerKilogram), ReferencePressure = new(.001, Unit.Pascal), LowerHeatingValue = new(1e-298, Unit.JoulePerKilogram) + }; + var extreme = CompiledModel.Compile(new() + { + StepNanoseconds = 1, + Nodes = [NodeDefinition.FuelVolume(1, 1e-4, 1e308 * (1e-4 + 5e-13 * 1e6), 300, extremeMaterial), + NodeDefinition.FuelVolume(2, 1e-4, 1e308 * (1e-4 + 5e-13 * 5e5), 300, extremeMaterial)], + Components = [ComponentDefinition.FuelRestriction(10, 1, 2, 1e-5)] + }).CreateSimulation(); + var initial = Snapshot(extreme); + Require(extreme.Step(1) == SimulationStatus.NumericalFailure && Snapshot(extreme) == initial, "Overflowing mean flow was published or partially committed."); + } + private static void LateRollback() + { + var definition = Model(heat: true); + definition = definition with { Nodes = [..definition.Nodes, NodeDefinition.Rotor(4, .1)], Components = [..definition.Components, ComponentDefinition.Torque(20, 4, 200, 0)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 10_000_000); var before = Snapshot(s); var reference = s.Fork(); + Require(s.Step(100_000_000, [new(before.TimeNanoseconds + 20_000_000, 200, double.MaxValue)]) == SimulationStatus.NumericalFailure); + Require(Snapshot(s) == before, "Late failure retained fuel mass, energy, input or histories."); + Step(s, 50_000_000); Step(reference, 50_000_000); Require(Snapshot(s) == Snapshot(reference)); + } + private static void HybridComposition() + { + var definition = Model(1_000_000, heat: true); + definition = definition with { Nodes = [..definition.Nodes, NodeDefinition.Rotor(4, .1, 20), NodeDefinition.Rotor(5, .2)], + Components = [..definition.Components, ComponentDefinition.Clutch(20, 4, 5, 5, 5, 200, heat: 3)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); var replay = s.Fork(); + Step(s, 500_000_000); for (int i = 0; i < 100; ++i) Step(replay, 5_000_000); + Require(Snapshot(s) == Snapshot(replay)); Balances(s); + Require(Value(s, 20, Field.ClutchMode) == (int)ClutchMode.Locked && Value(s, 20, Field.FrictionHeat) > 0); + Require(Value(s, 11, Field.TransportEnergy) > 0 && Value(s, 10, Field.TotalFuelDelivered) > 0); + } +} diff --git a/tests/Power.Tests/EquilibriumFuelNetworkIntegrationChecks.cs b/tests/Power.Tests/EquilibriumFuelNetworkIntegrationChecks.cs new file mode 100644 index 0000000..f6ff2ab --- /dev/null +++ b/tests/Power.Tests/EquilibriumFuelNetworkIntegrationChecks.cs @@ -0,0 +1,61 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class EquilibriumFuelNetworkIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel network documents / two-phase and electromechanical heat / every portable boundary", Documents), + ("fuel network agent / units strict material errors revisions and independent branches", Sessions) + ]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static double Value(SampleReport row, uint id, Field field) => row.Values[Channels.Output(id, field).ToString()]; + private static void Documents() + { + foreach (string name in new[] { "equilibrium-fuel-network", "electrothermal-fuel-network" }) + { + var document = ModelDocument.Load(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "homogeneous_equilibrium_fuel_network"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var row in report.Samples) + { + while (playback.TimeNanoseconds < row.TimeNs) Require(playback.Advance(Math.Min(257 * asset.Model.StepNanoseconds, row.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(value => value.Value == row.Values[value.Channel.ToString()])); + Near(Value(row, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(row, 0, Field.MassResidual), 0, 1e-14); Near(Value(row, 0, Field.FuelResidual), 0, 1e-14); + } + uint source = name == "equilibrium-fuel-network" ? 1U : 1002U; + Require(Value(report.Samples[^1], source, Field.VaporMass) > 0); + } + } + private static void Sessions() + { + var capability = Data(AgentWorkspace.Capabilities()); + Require(capability.GetProperty("equilibrium_fuel_network").GetProperty("domain").GetString() == "fuel" && capability.GetProperty("asset_format").GetString() == AssetCodec.FormatName); + var example = Data(AgentWorkspace.ExampleModel("equilibrium-fuel-network")); var workspace = new AgentWorkspace(); + string parent = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!; + string child = Data(workspace.ForkSession(parent, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(child, "0", [new("100", 0)])); Data(workspace.StepSession(child, "1", "10000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("revision").GetString() == "0"); + Data(workspace.StepSession(parent, "0", "10000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(child)).GetProperty("state_hash").GetString()); + var snapshot = Data(workspace.ReadSnapshot(parent)); var badInput = workspace.SetInputs(parent, "1", [new("100", -1)]); + Require(!badInput.Ok && Data(workspace.ReadSnapshot(parent)).GetRawText() == snapshot.GetRawText()); + Data(workspace.CloseSession(parent, "1")); Data(workspace.CloseSession(child, "2")); + var bad = JsonNode.Parse(example.GetRawText())!; + bad["nodes"]![0]!["fuel"]!["compliance"]!["unit"] = "k"; + var validation = AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement); Require(!validation.Ok); + bad = JsonNode.Parse(example.GetRawText())!; bad["nodes"]![0]!["fuel"]!["implicit_oem_density"] = 750; + Throws(() => ModelDocument.Parse(bad.ToJsonString())); + } +} diff --git a/tests/Power.Tests/EquilibriumNozzleAssetChecks.cs b/tests/Power.Tests/EquilibriumNozzleAssetChecks.cs new file mode 100644 index 0000000..e6b692a --- /dev/null +++ b/tests/Power.Tests/EquilibriumNozzleAssetChecks.cs @@ -0,0 +1,32 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Core; +using Power.Assets; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class EquilibriumNozzleAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("equilibrium nozzle asset / mode uncertainty and every replay boundary authentic v38",Replay), + ("equilibrium nozzle asset / phase mode version gating and typed corruption",Corruption)]; + private static PowerAsset Asset()=>PowerAsset.Create(EquilibriumNozzleGraphChecks.Model(),"Equilibrium nozzle",new string('c',64),1000000,100000,[],[]); + private static void Sign(byte[] b)=>SHA256.HashData(b.AsSpan(0,b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + {var l=a.CreatePlayback();var r=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount];for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds){if(at>l.TimeNanoseconds)Require(l.Advance(at-l.TimeNanoseconds)==SimulationStatus.Ok);while(r.TimeNanoseconds(()=>AssetCodec.Decode(b));} + foreach(int mode in new[]{0,3,int.MaxValue}){var b=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(b.AsSpan(record+24),mode);Reject(b);} + foreach(int version in new[]{37,38}){var b=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(b.AsSpan(8),version);Reject(b);} + } +} diff --git a/tests/Power.Tests/EquilibriumNozzleChecks.cs b/tests/Power.Tests/EquilibriumNozzleChecks.cs new file mode 100644 index 0000000..d87de2e --- /dev/null +++ b/tests/Power.Tests/EquilibriumNozzleChecks.cs @@ -0,0 +1,80 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class EquilibriumNozzleChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("equilibrium nozzle closure / pressure entropy inverse and saturation inversion",Inversion), + ("equilibrium nozzle / gas and compressible-liquid analytic flux enclosure",Analytic), + ("equilibrium nozzle / flashing and wet critical flux independent global reference",Flashing), + ("equilibrium nozzle / frozen versus equilibrium phase entropy energy and sonic scope",Phase), + ("equilibrium nozzle / bounds closed reverse calls independent use zero allocation",Contracts)]; + private static EquilibriumFuelNozzlePoint Point(EquilibriumFuelNozzle n,double density,double t,double back) + {var status=n.Evaluate(density,t,back,1,out var p);if(status!=FuelNozzleStatus.Success)throw new InvalidOperationException($"Equilibrium nozzle failed: {status}, rho={density:R}, T={t:R}, back={back:R}.");return p;} + private static void Inversion() + { + var law=CompressibleFuelChecks.Law(); + foreach(double t in new[]{200d,250,350,450,550,600})foreach(double rho in new[]{.1,2,100,751}) + {Require(law.Evaluate(rho,t,out var p));Require(law.TryPressureEntropy(p.PressurePascals,p.SpecificEntropyJoulesPerKilogramKelvin,out var q),$"Inverse failed {rho:R}/{t:R}.");Near(q.DensityKilogramsPerCubicMeter/rho,1,3e-10);Near(q.TemperatureKelvin,t,2e-9);Near(q.SpecificInternalEnergyJoulesPerKilogram,p.SpecificInternalEnergyJoulesPerKilogram,3e-6);} + foreach(double t in new[]{250d,350,450,550}){Require(law.TrySaturation(t,out var sat));Require(law.TrySaturationAtPressure(sat.PressurePascals,out double recovered,out _));Near(recovered,t,2e-9);} + } + private static void Enclosure(double expected,double actual,double uncertainty) + {Require(uncertainty>=0&&uncertainty<=EquilibriumFuelNozzle.MaximumFluxRelativeUncertainty*(1+1e-9));Require(actual<=expected*(1+2e-8)&&expected<=actual*(1+uncertainty+2e-8),$"Flux {actual:R} +/- {uncertainty:R} does not enclose {expected:R}.");} + private static void Analytic() + { + var law=CompressibleFuelChecks.Law();var n=new EquilibriumFuelNozzle(law,1e-8,.7); + var gasLaw=new CompressibleFuel(new(new(2000,717.5,400,300000,0),287,1e6,200,600),750,1.5e9,20e6); + var gas=Point(new(gasLaw,1e-8,.7),2e5/(287*500),500,1e5);double exact=.7e-8*2e5*Math.Sqrt(1.4/(287*500))*Math.Pow(2/2.4,3);Enclosure(exact,gas.MassFlowKilogramsPerSecond,gas.FluxRelativeUncertainty); + Near(gas.ThroatPressurePascals,2e5*Math.Pow(2/2.4,3.5),1e-6);Require(gas.Choked); + var liquid=Point(n,750*(1+1e6/1.5e9),300,5e5);double drop=1.5e9/750*Math.Log((1.5e9+1e6)/(1.5e9+5e5));exact=.7e-8*750*(1+5e5/1.5e9)*Math.Sqrt(2*drop);Enclosure(exact,liquid.MassFlowKilogramsPerSecond,liquid.FluxRelativeUncertainty);Require(!liquid.Choked); + var soft=Point(new(CompressibleFuelChecks.Law(1e5),1e-8,.7),8250,300,5e4);double pressure=1.1e6*Math.Exp(-.5)-1e5;exact=.7e-8*750*(1+pressure/1e5)*Math.Sqrt(1e5/750);Enclosure(exact,soft.MassFlowKilogramsPerSecond,soft.FluxRelativeUncertainty); + } + private static (double Density,double Enthalpy,double Quality,double Temperature) Reference(double p,double entropy) + { + const double cl=2000,cv=717.5,r=287,k=1.5e9,rho0=750; + double Saturation(double t) + {double lo=1,hi=20e6,p0=1e5*Math.Exp((cv+r-cl)/r*Math.Log(t/400)-813000/r*(1/t-1d/400));for(int i=0;i<70;++i){double a=(lo+hi)/2;if(r*t*Math.Log(a/p0)-k/rho0*Math.Log(1+a/k)>0)hi=a;else lo=a;}return(lo+hi)/2;} + double tl=400*Math.Exp(entropy/cl);if(tl>=200&&tl<=600&&p>=Saturation(tl))return(rho0*(1+p/k),cl*tl-813000+k/rho0*Math.Log(1+p/k),0,tl); + double tv=400*Math.Exp((entropy+r*Math.Log(p/1e5)-1037)/(cv+r));if(tv>=200&&tv<=600&&p<=Saturation(tv))return(p/(r*tv),(cv+r)*tv,1,tv); + double min=200,max=600,compression=k/rho0*Math.Log(1+p/k); + for(int i=0;i<70;++i){double t=(min+max)/2,p0=1e5*Math.Exp((cv+r-cl)/r*Math.Log(t/400)-813000/r*(1/t-1d/400));if(r*t*Math.Log(p/p0)-compression>0)min=t;else max=t;} + double temperature=(min+max)/2,sl=cl*Math.Log(temperature/400),sv=(cv+r)*Math.Log(temperature/400)-r*Math.Log(p/1e5)+1037,x=(entropy-sl)/(sv-sl); + double volume=(1-x)/(rho0*(1+p/k))+x*r*temperature/p,h=((1-x)*cl+x*(cv+r))*temperature-(1-x)*813000+(1-x)*compression; + return(1/volume,h,x,temperature); + } + private static void Flashing() + { + var law=CompressibleFuelChecks.Law();Require(law.TrySaturation(350,out var sat));var nozzle=new EquilibriumFuelNozzle(law,1e-8,.7); + foreach(double rho in new[]{750*(1+5e5/1.5e9),1/(.9*sat.LiquidSpecificVolumeCubicMetersPerKilogram+.1*sat.VaporSpecificVolumeCubicMetersPerKilogram)}) + { + Require(law.Evaluate(rho,350,out var source));double back=20000,h0=source.SpecificInternalEnergyJoulesPerKilogram+source.PressurePascals/rho;var p=Point(nozzle,rho,350,back); + double Flux(double pressure){var q=Reference(pressure,source.SpecificEntropyJoulesPerKilogramKelvin);return .7e-8*q.Density*Math.Sqrt(2*Math.Max(0,h0-q.Enthalpy));} + const int count=4000;double best=0,bestP=back,delta=(source.PressurePascals-back)/count; + for(int i=0;i<=count;++i){double pressure=back+i*delta,value=Flux(pressure);if(value>best){best=value;bestP=pressure;}} + double lo=Math.Max(back,bestP-delta),hi=Math.Min(source.PressurePascals,bestP+delta); + for(int i=0;i<80;++i){double a=lo+(hi-lo)/3,b=hi-(hi-lo)/3;if(Flux(a)>Flux(b))hi=b;else lo=a;}best=Math.Max(best,Flux((lo+hi)/2)); + if(source.Phase==FuelVolumePhase.Liquid)best=Math.Max(best,Flux(sat.PressurePascals));Enclosure(best,p.MassFlowKilogramsPerSecond,p.FluxRelativeUncertainty); + var end=Reference(back,source.SpecificEntropyJoulesPerKilogramKelvin);Near(p.VaporMassFraction,end.Quality,2e-9);Near(p.ExitTemperatureKelvin,end.Temperature,2e-8);Require(p.VaporMassFraction>source.VaporMassFraction&&p.Choked); + Console.WriteLine($"Equilibrium nozzle reference: rho={rho:R}, rate={p.MassFlowKilogramsPerSecond:R}, throat={p.ThroatPressurePascals:R}, uncertainty={p.FluxRelativeUncertainty:R}, exit_quality={p.VaporMassFraction:R}."); + } + } + private static void Phase() + { + var law=CompressibleFuelChecks.Law();Require(law.Evaluate(750*(1+5e5/1.5e9),350,out var source));var eq=Point(new(law,1e-8,.7),source.DensityKilogramsPerCubicMeter,350,20000); + var frozen=new FrozenCompressibleFuelNozzle(law,1e-8,.7);Require(frozen.Evaluate(source.PressurePascals,350,0,20000,1,out var f)==FuelNozzleStatus.Success); + Require(eq.VaporMassFraction>0&&f.VaporMassFraction==0&&eq.MassFlowKilogramsPerSecond All=>[ + ("equilibrium nozzle graph / flashing mass enthalpy jet heat entropy and numerical enclosure",Balances), + ("equilibrium nozzle graph / independent analytic vapor blowdown first-order refinement",Blowdown), + ("equilibrium nozzle graph / shaft duct inlet outlet and actual solenoid needle",Pump), + ("equilibrium nozzle graph / exact replay whole rollback cancellation forks and allocations",Transactions), + ("equilibrium nozzle graph / explicit phase selection and mode-specific channels",Contracts)]; + internal static ModelDefinition Model(ulong tick=10000) + { + var law=CompressibleFuelChecks.Law();Require(law.TrySaturationAtPressure(20000,out double t,out var sat));double density=1/(.8*sat.LiquidSpecificVolumeCubicMetersPerKilogram+.2*sat.VaporSpecificVolumeCubicMetersPerKilogram);var material=EquilibriumDuctChecks.Material(); + return new(){StepNanoseconds=tick,Nodes=[NodeDefinition.CompressibleFuelVolume(1,1e-5,1e-5*750*(1+5e5/1.5e9),350,material),NodeDefinition.CompressibleFuelVolume(2,1e-4,1e-4*density,t,material),NodeDefinition.Thermal(3,1,350)], + Components=[ComponentDefinition.CompressibleNozzleValve(10,1,2,3,CompressibleNozzleChecks.Nozzle() with{PhaseModel=FuelDischargePhaseModel.Equilibrium},100)]}; + } + internal static ModelDefinition PumpModel() + {var d=CompressibleNozzleChecks.PumpModel();return d with{Components=d.Components.Select(c=>c.CompressibleNozzle is {} n?c with{CompressibleNozzle=n with{PhaseModel=FuelDischargePhaseModel.Equilibrium}}:c).ToArray()};} + private static void Step(Simulation s,ulong ns){var status=s.Step(ns);if(status!=SimulationStatus.Ok)throw new InvalidOperationException("Equilibrium graph failed: "+status);} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s){Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14);Near(Value(s,0,Field.FuelResidual),0,1e-14);} + private static void Balances() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();double mass=Value(s,1,Field.Mass),energy=Value(s,1,Field.InternalEnergy);Step(s,1000000);Balance(s); + Require(s.Model.HasEquilibriumFuelNozzles&&s.Model.Fidelity=="equilibrium_compressible_fuel_nozzle_network");Near(mass-Value(s,1,Field.Mass),Value(s,10,Field.TotalFuelDelivered),1e-17); + Near(energy-Value(s,1,Field.InternalEnergy),Value(s,10,Field.TransportEnergy),1e-11);Near(Value(s,3,Field.Temperature)-350,Value(s,10,Field.HeatRejected),3e-12); + Require(Value(s,10,Field.VaporMassFraction)>0&&Value(s,10,Field.EntropyProduced)>=0);Require(Value(s,10,Field.FluxRelativeUncertainty) is >=0 and <=EquilibriumFuelNozzle.MaximumFluxRelativeUncertainty); + } + private static void Pump() + { + var s=CompiledModel.Compile(PumpModel()).CreateSimulation();Step(s,20000000);Balance(s);Require(Value(s,20,Field.TotalFuelDelivered)>0&&Value(s,21,Field.TotalFuelDelivered)>0); + Require(Value(s,20,Field.FluxRelativeUncertainty)<=EquilibriumFuelNozzle.MaximumFluxRelativeUncertainty&&Value(s,21,Field.FluxRelativeUncertainty)<=EquilibriumFuelNozzle.MaximumFluxRelativeUncertainty); + Console.WriteLine($"Equilibrium pump needle delivery: {Value(s,21,Field.TotalFuelDelivered):R} kg."); + } + private static void Blowdown() + { + const double t0=500,p0=2e5,volume=1e-5,duration=.005,gamma=1.4;double m0=volume*p0/(287*t0),rate=.7e-8/volume*Math.Sqrt(gamma*287*t0)*Math.Pow(2/(gamma+1),(gamma+1)/(2*(gamma-1))); + double exact=m0*Math.Pow(1+(gamma-1)/2*rate*duration,-2/(gamma-1));var errors=new List(); + foreach(ulong tick in new ulong[]{1000000,500000,250000,125000}) + { + var d=CompressibleNozzleChecks.Model(tick);d=d with{Components=d.Components.Select(c=>c with{CompressibleNozzle=c.CompressibleNozzle! with{PhaseModel=FuelDischargePhaseModel.Equilibrium}}).ToArray()}; + var s=CompiledModel.Compile(d).CreateSimulation();Step(s,5000000);Balance(s);Require(Value(s,10,Field.Choked)==1);errors.Add(Math.Abs(Value(s,1,Field.Mass)-exact)/m0); + } + Console.WriteLine("Equilibrium nozzle analytic blowdown errors: "+string.Join(", ",errors.Select(x=>x.ToString("R"))));for(int i=1;i1.8 and <2.2); + } + private static void Transactions() + { + var d=Model();d=d with{Nodes=[..d.Nodes,NodeDefinition.Rotor(4,.1)],Components=[..d.Components,ComponentDefinition.Torque(20,4,200,0)]}; + var s=CompiledModel.Compile(d).CreateSimulation();var replay=s.Fork();Step(s,100000);for(int i=0;i<10;++i)Step(replay,10000);Require(Snapshot(s)==Snapshot(replay));var before=Snapshot(s); + Require(s.Step(100000,cancellationToken:new CancellationToken(true))==SimulationStatus.Cancelled&&Snapshot(s)==before); + Require(s.Step(100000,[new(before.TimeNanoseconds+50000,200,double.MaxValue)])==SimulationStatus.NumericalFailure&&Snapshot(s)==before); + var child=s.Fork();Require(child.SubmitInputs([new(100,0)])==SimulationStatus.Ok);Step(child,100000);Require(Snapshot(s)==before); + var values=new Scalar[s.Model.OutputCount];for(int i=0;i<5;++i){Step(s,10000);s.ReadSnapshot(values);}long allocation=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<10;++i){Step(s,10000);s.ReadSnapshot(values);}Require(GC.GetAllocatedBytesForCurrentThread()==allocation); + } + private static void Contracts() + { + var frozen=CompiledModel.Compile(CompressibleNozzleChecks.Model());Require(!frozen.HasEquilibriumFuelNozzles&&!frozen.Channels.Any(c=>c.Id==Channels.Output(10,Field.FluxRelativeUncertainty))); + var d=Model();Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0] with{CompressibleNozzle=d.Components[0].CompressibleNozzle! with{PhaseModel=(FuelDischargePhaseModel)3}}]},out _,out _)); + var compiled=CompiledModel.Compile(d);d.Components[0]=d.Components[0] with{CompressibleNozzle=d.Components[0].CompressibleNozzle! with{PhaseModel=FuelDischargePhaseModel.Frozen}}; + Require(compiled.HasEquilibriumFuelNozzles&&compiled.StateCount==frozen.StateCount+1); + } +} diff --git a/tests/Power.Tests/EquilibriumNozzleIntegrationChecks.cs b/tests/Power.Tests/EquilibriumNozzleIntegrationChecks.cs new file mode 100644 index 0000000..70f0435 --- /dev/null +++ b/tests/Power.Tests/EquilibriumNozzleIntegrationChecks.cs @@ -0,0 +1,35 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Core; +using Power.Agent; +using Power.Assets; +using Power.Experiments; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class EquilibriumNozzleIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("equilibrium nozzle documents / flashing and pump needle complete uncertainty replay",Documents), + ("equilibrium nozzle agent / explicit phase error repair revisions and independent closure",Sessions)]; + private static JsonElement Data(AgentReply reply){Require(reply.Ok,reply.Error?.Message??"Expected success.");return reply.Data!.Value;} + private static void Documents() + { + foreach(string name in new[]{"equilibrium-flashing-nozzle","equilibrium-pump-needle"}) + { + var d=ModelDocument.Load(Path.Combine(AppContext.BaseDirectory,name+".power.json"));var r=ExperimentRunner.Evaluate(d);Require(r.Passed&&r.Replay.SampleHashesMatch&&r.Model.Fidelity=="equilibrium_compressible_fuel_nozzle_network"); + var a=AssetCodec.Decode(AssetCodec.Encode(d.ToAsset(name)));var p=a.CreatePlayback();var values=new Scalar[a.Model.OutputCount]; + foreach(var row in r.Samples){while(p.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()]));} + } + } + private static void Sessions() + { + var cap=Data(AgentWorkspace.Capabilities());Require(cap.GetProperty("compressible_fuel_nozzle").GetProperty("phase_modes").EnumerateArray().Any(v=>v.GetString()=="equilibrium")); + var d=Data(AgentWorkspace.ExampleModel("equilibrium-flashing-nozzle"));var w=new AgentWorkspace();string parent=Data(w.CreateSession(d)).GetProperty("session_id").GetString()!,child=Data(w.ForkSession(parent,"0")).GetProperty("session_id").GetString()!; + Data(w.SetInputs(child,"0",[new("100",0)]));Data(w.StepSession(child,"1","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("revision").GetString()=="0");Require(w.StepSession(child,"0","10000").Error?.Code=="revision_conflict"); + Data(w.StepSession(parent,"0","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("state_hash").GetString()!=Data(w.ReadSnapshot(child)).GetProperty("state_hash").GetString());Data(w.CloseSession(parent,"1"));Data(w.CloseSession(child,"2")); + var bad=JsonNode.Parse(d.GetRawText())!;bad["components"]![0]!["parameters"]!["phase_mode"]="relaxed";Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + } +} diff --git a/tests/Power.Tests/FiniteFuelReceiverChecks.cs b/tests/Power.Tests/FiniteFuelReceiverChecks.cs new file mode 100644 index 0000000..0d29b36 --- /dev/null +++ b/tests/Power.Tests/FiniteFuelReceiverChecks.cs @@ -0,0 +1,48 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FiniteFuelReceiverChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("finite receiver / variable cavity state / unchanged tank wrapper and displacement", State), + ("finite receiver / independent ideal-gas adiabatic work and entropy", Dry), + ("finite receiver / closed wet pressure work and finite-bath second law", Wet) + ]; + private static FiniteTankFuelEquilibrium Law() => new(FrozenFuelNozzleChecks.Material(), 1e-4, 750); + private static void State() + { + var law = Law(); Require(law.TryPoint(350, .002, .0005, out var point)); Require(law.TryPointAtCapacity(350, .002, .0005, 1e-4, out var same) && same == point); + Near(point.GasVolumeCubicMeters + point.LiquidMassKilograms / 750, 1e-4, 1e-20); + Require(law.TryFlashEnergyAtCapacity(.002, .0005, point.ThermalEnergyJoules, 1e-4, out var state)); Near(state.TemperatureKelvin, 350, 1e-9); + Require(law.TryFlash(state.Liquid, state.VaporMassKilograms, .0005, state.GasEnergyJoules, out var old)); Near(old.TemperatureKelvin, state.TemperatureKelvin, 1e-9); + Require(!law.TryPointAtCapacity(350, .002, .0005, 1e-7, out _)); + } + private static void Dry() + { + var law = Law(); const double carrier = .0001, energy = carrier * 717.5 * 350; + foreach (double next in new[] { 8e-5, 1.25e-4 }) + { + Require(law.TryAdiabaticCapacity(0, carrier, energy, 1e-4, next, out var work)); + double temperature = 350 * Math.Pow(1e-4 / next, .4); + Near(work.State.TemperatureKelvin, temperature, 1e-9); Near(work.EnergyChangeJoules, carrier * 717.5 * temperature - energy, 1e-11); Near(work.EntropyResidualJoulesPerKelvin, 0, 1e-12); + } + } + private static void Wet() + { + var law = Law(); const double fuel = .002, carrier = .0005, wallT = 500, wallC = 2; + Require(law.TryPoint(350, fuel, carrier, out var initial)); double entropy = law.Entropy(initial, carrier); + Require(law.TryAdiabaticCapacity(fuel, carrier, initial.ThermalEnergyJoules, 1e-4, 1.2e-4, out var work)); + Near(work.EntropyResidualJoulesPerKelvin, 0, 2e-11); Require(work.EnergyChangeJoules < 0); + Require(law.TryHeatAtCapacity(fuel, carrier, initial.ThermalEnergyJoules, 1e-4, wallT, wallC, .1, .01, out var heat)); + Require(law.TryPoint(heat.TemperatureKelvin, fuel, carrier, out var point)); + Near(heat.Liquid.ThermalEnergyJoules + heat.GasEnergyJoules + wallC * heat.WallTemperatureKelvin, initial.ThermalEnergyJoules + wallC * wallT, 1e-10); + Require(law.Entropy(point, carrier) - entropy + wallC * Math.Log(heat.WallTemperatureKelvin / wallT) >= -1e-12); + } +} diff --git a/tests/Power.Tests/Fixtures/README.md b/tests/Power.Tests/Fixtures/README.md index 7369c3f..e78cf8e 100644 --- a/tests/Power.Tests/Fixtures/README.md +++ b/tests/Power.Tests/Fixtures/README.md @@ -217,3 +217,189 @@ Fingerprint: `63d28eb32bc4cfb2`. Source SHA-256: `ResolvedPlanetAssetChecks` retains its digest and exact every-boundary upgraded replay. Do not regenerate the fixture with the current writer. The Power! GPL license and Unity Linking Exception apply. + +## Hydraulic AT plant version 24 + +`fired-hydraulic-ravigneaux-v24.powerasset` retains verified v24 output before +adding the feedback controller records. Source: +`assets/labs/fired-hydraulic-ravigneaux.power.json`; name: `Fired hydraulic +Ravigneaux laboratory`. Retained locally on 2026-10-05 from the v24 checkpoint. +SHA-256: `6d6dc0f3b17ae1dfdcda59fc45ca7db63d260fb954c8c51567f9b00bab783ecc`. +Fingerprint: `4e83efb34de63922`. Tests retain the original digest and exact +old/upgraded physical replay. Do not regenerate this fixture with the current +encoder. The Power! GPL license and Unity Linking Exception apply. + +## Closure-compensated injector version 25 + +`closure-compensated-cylinder-v25.powerasset` retains the verified v25 writer output +before adding liquid feed records. Source: `assets/labs/closure-compensated-cylinder.power.json`. +Retained locally on 2026-10-05 from checkpoint `0d5a985`; no later writer output +is substituted. SHA-256: `df400d7e72a2375c6b6185e7206162f2dd8f74ecd52c1862b0bedca6c03ba6dc`. +Fingerprint: `ddefea6d870e7e75`. `LiquidRailFeedAssetChecks` retains its digest +and exact every-boundary old/upgraded replay. Do not regenerate this fixture +with the current writer. The Power! GPL license and Unity Linking Exception apply. + +## Pump-fed liquid rail version 26 + +`pump-fed-liquid-cylinder-v26.powerasset` retains the verified v26 writer output +before finite tank records. Source: `assets/labs/pump-fed-liquid-cylinder.power.json`. +Retained on 2026-10-05 from checkpoint `144ac3d`. SHA-256: +`b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d`. Fingerprint: +`22cbbe4a983098f4`. `LiquidFuelTankAssetChecks` retains the original digest +and exact every-boundary old/upgraded replay. Do not regenerate this fixture +with the current writer. The Power! GPL license and Unity Linking Exception apply. + +## Finite liquid tank version 27 + +`finite-tank-liquid-cylinder-v27.powerasset` retains verified v27 writer output +before tracked relief returns. Source: `assets/labs/finite-tank-liquid-cylinder.power.json`. +Retained on 2026-10-05 from checkpoint `85eebeb`. SHA-256: +`ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62`. Fingerprint: +`f7ee4872a034c885`. `LiquidRailReturnAssetChecks` preserves the digest and exact +every-boundary old/upgraded replay. Do not regenerate this fixture with the +current writer. The Power! GPL license and Unity Linking Exception apply. + +## Recirculating fuel version 28 + +`recirculating-liquid-cylinder-v28.powerasset` retains v28 writer output before +geometric tank headspace records. Source: `assets/labs/recirculating-liquid-cylinder.power.json`. +Retained on 2026-10-08 from the encoder/model sources at `90e70cd`, before changing +the asset format. SHA-256: `3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57`. +Fingerprint: `8c295e86019b787b`. `TankHeadspaceAssetChecks` checks its digest and +every-boundary old/upgraded replay. Do not regenerate it with the current writer. +The Power! GPL license and Unity Linking Exception apply. + +## Vented tank v29 + +`vented-tank-liquid-cylinder-v29.powerasset` was retained on 2026-10-13 from the +unmodified v29 encoder and laboratory at commit `ca443cbd218bd678a1de6e579ddfe99826659555`. +It preserves headspace geometry and every replay boundary before the v30 film extension. +Do not regenerate it with the current encoder. + +SHA-256: `e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d`. +Original Power! material remains GPL-3.0-or-later with the Unity Linking Exception. + +## Equilibrium injected cylinder v30 + +`equilibrium-injected-cylinder-v30.powerasset` was retained on 2026-10-20 from the +unmodified v30 encoder and laboratory at commit `b91662388d1f09d72455531097bd88844c89f138`. +It preserves receiver phase equilibrium and single-phase liquid-supply checks before +the finite-volume tank phase flag. Keep these authentic bytes when extending the writer. + +SHA-256: `c246723026ac3cbdd69b3e0015b29a161d15c85865e94f3054507cd9c7bc2335`. +Original Power! material remains GPL-3.0-or-later with the Unity Linking Exception. + +## Equilibrium tank supply v31 + +`equilibrium-tank-supply-v31.powerasset` was retained on 2026-10-20 from the +unmodified v31 encoder and laboratory at commit `d36f416c882925474dbfb2d25f81e39bd70e0211`. +It preserves the finite-volume tank phase state before the fuel-network extension. +Keep these authentic bytes when extending the writer. + +SHA-256: `8042d65c3171a71cd79eaa0b49ba733a232a805bd4ed429d23a93e5821016349`. +Original Power! material remains GPL-3.0-or-later with the Unity Linking Exception. + +## Equilibrium fuel network v32 + +`equilibrium-fuel-network-v32.powerasset` was retained on 2026-10-20 from the +unmodified v32 encoder and laboratory at commit `904b97a95df5e08dbbc838a648d363a16ac07d56`. +It preserves homogeneous fuel transport and finite-wall heat before moving chamber geometry. +Keep these authentic bytes when extending the writer. + +SHA-256: `dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e`. +Original Power! material remains GPL-3.0-or-later with the Unity Linking Exception. + +## Equilibrium fuel pump v33 + +`equilibrium-fuel-pump-v33.powerasset` was retained on 2026-10-20 from the +unmodified v33 encoder and laboratory at commit `0fd4036c04e7e31029b7ec6f37a74c4c1643e447`. +It preserves shaft-driven phase-resolving fuel pumping before finite receiver +displacement and frozen-quality nozzle records. Keep these authentic bytes. + +SHA-256: `3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba`. +`FuelDischargeAssetChecks` checks the digest and every original/upgraded replay +boundary. The Power! GPL license and Unity Linking Exception apply. + +## Pump-fed finite-volume cylinder v34 + +`pump-fed-finite-volume-cylinder-v34.powerasset` retains the v34 writer output +from commit `529542e047a52d1a5b3a1096a01b9774421b347a`, copied before changing +the encoder on 2026-10-23. It preserves pump, physical needle, frozen-quality +discharge and finite receiver records before the inertial liquid line extension. + +SHA-256: `51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587`. +`FuelPipeAssetChecks` verifies the authentic digest and every original/upgraded +replay boundary. Keep these original bytes. The Power! GPL license and Unity +Linking Exception apply. + +## Inertial pump-fed cylinder v35 + +`inertial-pump-fed-cylinder-v35.powerasset` retains the v35 writer output +from commit `02c547866dea045eebc70424bbb60091c17082fd`, copied before changing +the encoder on 2026-10-23. It preserves the liquid-only inertial line, pump, +physical needle and finite receiver before compressible equilibrium duct records. + +SHA-256: `a5f8117c0240e888ee9cd9556f13cf668aff5d50ca8e9afad1c6d053310a4ac4`. +`EquilibriumDuctAssetChecks` verifies the authentic digest and every original +and upgraded replay boundary. Keep these original bytes. The Power! GPL license +and Unity Linking Exception apply. + +## Equilibrium condensing duct v36 + +`equilibrium-fuel-condensing-duct-v36.powerasset` retains the v36 writer output +from commit `8210aa8bd1ca66d28d06906de0261204bd515a3d`, copied before changing +the encoder on 2026-10-26. It preserves compressible equilibrium cells and the +conservative duct before shaft-driven moving reservoir records. + +SHA-256: `093420e1031206913600e1581ed717012194d303f60f8afec7595a324f789cc5`. +`CompressibleChamberAssetChecks` verifies the authentic digest and every original +and upgraded replay boundary. Keep these original bytes. The Power! GPL license +and Unity Linking Exception apply. + +## Compressible chamber duct v37 + +`compressible-fuel-chamber-duct-v37.powerasset` retains the v37 writer output +from commit `7872d783a6432a029a43b99524e4277862fb3c94`, copied before changing +the encoder on 2026-11-17. It preserves shaft-driven compressible chamber and +duct records before the frozen compressible nozzle extension. + +SHA-256: `60dd76119b8079bf5c9ac731026cd4ced1893b36470816955008847e8bbb3db7`. +`CompressibleNozzleAssetChecks` verifies the authentic digest and every original +and upgraded replay boundary. Keep these original bytes. The Power! GPL license +and Unity Linking Exception apply. + +## Compressible pump and needle v38 + +`compressible-pump-needle-v38.powerasset` retains the v38 writer output from +commit `f22508fb6d8be280404abe424dd4e25f4033ed2d`, copied before changing the +encoder on 2026-11-17. It preserves the shaft, duct, physical needle and frozen +compressible nozzle records before equilibrium transit and flux diagnostics. + +SHA-256: `b8469401c7a4469a603aa81ef34ca70d9fc98bbc7e56aa7877a4fa65a153e195`. +`EquilibriumNozzleAssetChecks` verifies the authentic digest and every original +and upgraded replay boundary. Keep these original bytes. The Power! GPL license +and Unity Linking Exception apply. + +## Equilibrium pump and needle v39 + +`equilibrium-pump-needle-v39.powerasset` retains the v39 writer output from +commit `81f650101c1d455363d5146268494d03b60ee631`, copied before changing the +encoder on 2026-11-17. It retains the equilibrium nozzle and global flux +enclosure contract before independent vapor quality and finite phase relaxation. + +SHA-256: `95b49037e29e2f6be15291cbb45ea8c053e976aa9e3a0df9a9806a00725bcfac`. +`RelaxingFuelAssetChecks` verifies its original digest, exact v39 bytes and all +original/upgraded replay boundaries. Keep these original bytes. The Power! GPL +license and Unity Linking Exception apply. + +## Relaxing fuel duct v40 + +`relaxing-fuel-duct-v40.powerasset` retains the v40 writer output from commit +`dd26554d6926d6fd51bea736c3d84685a2f5266a`, copied before changing the encoder +on 2026-11-17. It retains explicit phase quality, relaxation time and conservative +vapor transport before relaxing moving chambers and frozen metering boundaries. + +SHA-256: `17d1ac4e78cb9835faa8f50b0bae30c4c6d84ecc86e7936ad03ab416e3978d39`. +`RelaxingBoundaryAssetChecks` verifies the authentic digest, original v40 bytes +and every original/upgraded replay boundary. Keep these original bytes. The +Power! GPL license and Unity Linking Exception apply. diff --git a/tests/Power.Tests/Fixtures/closure-compensated-cylinder-v25.powerasset b/tests/Power.Tests/Fixtures/closure-compensated-cylinder-v25.powerasset new file mode 100644 index 0000000..08b7987 Binary files /dev/null and b/tests/Power.Tests/Fixtures/closure-compensated-cylinder-v25.powerasset differ diff --git a/tests/Power.Tests/Fixtures/compressible-fuel-chamber-duct-v37.powerasset b/tests/Power.Tests/Fixtures/compressible-fuel-chamber-duct-v37.powerasset new file mode 100644 index 0000000..11e2d76 Binary files /dev/null and b/tests/Power.Tests/Fixtures/compressible-fuel-chamber-duct-v37.powerasset differ diff --git a/tests/Power.Tests/Fixtures/compressible-pump-needle-v38.powerasset b/tests/Power.Tests/Fixtures/compressible-pump-needle-v38.powerasset new file mode 100644 index 0000000..6fba18b Binary files /dev/null and b/tests/Power.Tests/Fixtures/compressible-pump-needle-v38.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-fuel-condensing-duct-v36.powerasset b/tests/Power.Tests/Fixtures/equilibrium-fuel-condensing-duct-v36.powerasset new file mode 100644 index 0000000..4c4b088 Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-fuel-condensing-duct-v36.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset b/tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset new file mode 100644 index 0000000..61e1ee2 Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-fuel-network-v32.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-fuel-pump-v33.powerasset b/tests/Power.Tests/Fixtures/equilibrium-fuel-pump-v33.powerasset new file mode 100644 index 0000000..011b956 Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-fuel-pump-v33.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset b/tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset new file mode 100644 index 0000000..8ba35a5 Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-injected-cylinder-v30.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-pump-needle-v39.powerasset b/tests/Power.Tests/Fixtures/equilibrium-pump-needle-v39.powerasset new file mode 100644 index 0000000..9784a87 Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-pump-needle-v39.powerasset differ diff --git a/tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset b/tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset new file mode 100644 index 0000000..70a808f Binary files /dev/null and b/tests/Power.Tests/Fixtures/equilibrium-tank-supply-v31.powerasset differ diff --git a/tests/Power.Tests/Fixtures/finite-tank-liquid-cylinder-v27.powerasset b/tests/Power.Tests/Fixtures/finite-tank-liquid-cylinder-v27.powerasset new file mode 100644 index 0000000..09494c0 Binary files /dev/null and b/tests/Power.Tests/Fixtures/finite-tank-liquid-cylinder-v27.powerasset differ diff --git a/tests/Power.Tests/Fixtures/fired-hydraulic-ravigneaux-v24.powerasset b/tests/Power.Tests/Fixtures/fired-hydraulic-ravigneaux-v24.powerasset new file mode 100644 index 0000000..24bc683 Binary files /dev/null and b/tests/Power.Tests/Fixtures/fired-hydraulic-ravigneaux-v24.powerasset differ diff --git a/tests/Power.Tests/Fixtures/inertial-pump-fed-cylinder-v35.powerasset b/tests/Power.Tests/Fixtures/inertial-pump-fed-cylinder-v35.powerasset new file mode 100644 index 0000000..aa3221d Binary files /dev/null and b/tests/Power.Tests/Fixtures/inertial-pump-fed-cylinder-v35.powerasset differ diff --git a/tests/Power.Tests/Fixtures/pump-fed-finite-volume-cylinder-v34.powerasset b/tests/Power.Tests/Fixtures/pump-fed-finite-volume-cylinder-v34.powerasset new file mode 100644 index 0000000..4f35f4f Binary files /dev/null and b/tests/Power.Tests/Fixtures/pump-fed-finite-volume-cylinder-v34.powerasset differ diff --git a/tests/Power.Tests/Fixtures/pump-fed-liquid-cylinder-v26.powerasset b/tests/Power.Tests/Fixtures/pump-fed-liquid-cylinder-v26.powerasset new file mode 100644 index 0000000..512a197 Binary files /dev/null and b/tests/Power.Tests/Fixtures/pump-fed-liquid-cylinder-v26.powerasset differ diff --git a/tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset b/tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset new file mode 100644 index 0000000..1deb3d6 Binary files /dev/null and b/tests/Power.Tests/Fixtures/recirculating-liquid-cylinder-v28.powerasset differ diff --git a/tests/Power.Tests/Fixtures/relaxing-fuel-duct-v40.powerasset b/tests/Power.Tests/Fixtures/relaxing-fuel-duct-v40.powerasset new file mode 100644 index 0000000..a80b073 Binary files /dev/null and b/tests/Power.Tests/Fixtures/relaxing-fuel-duct-v40.powerasset differ diff --git a/tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset b/tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset new file mode 100644 index 0000000..a20e48c Binary files /dev/null and b/tests/Power.Tests/Fixtures/vented-tank-liquid-cylinder-v29.powerasset differ diff --git a/tests/Power.Tests/FrozenCompressibleNozzleChecks.cs b/tests/Power.Tests/FrozenCompressibleNozzleChecks.cs new file mode 100644 index 0000000..8fcfacf --- /dev/null +++ b/tests/Power.Tests/FrozenCompressibleNozzleChecks.cs @@ -0,0 +1,67 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class FrozenCompressibleNozzleChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("frozen compressible nozzle / exact liquid work and analytic gas choking",Limits), + ("frozen compressible nozzle / independent pressure integral entropy and frozen sonic derivative",Thermodynamics), + ("frozen compressible nozzle / global maximum dense pressure scan and incompressible limit",Maximum), + ("frozen compressible nozzle / bounds closed and reverse states zero allocations",Contracts)]; + private static FrozenCompressibleFuelNozzlePoint Point(FrozenCompressibleFuelNozzle law,double p,double t,double x,double back,double opening=1) + {Require(law.Evaluate(p,t,x,back,opening,out var result)==FuelNozzleStatus.Success);return result;} + private static void Limits() + { + var law=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(),1e-8,.7);var liquid=Point(law,1e6,300,0,2e5); + double drop=1.5e9/750*Math.Log((1.5e9+1e6)/(1.5e9+2e5)),rho=750*(1+2e5/1.5e9); + Near(liquid.MassFlowKilogramsPerSecond,.7e-8*rho*Math.Sqrt(2*drop),1e-15);Require(!liquid.Choked);Near(liquid.ExitTemperatureKelvin,300,0); + var gas=Point(law,2e5,500,1,50000);double critical=2e5*Math.Pow(2/2.4,1.4/.4); + Near(gas.ThroatPressurePascals,critical,1e-7);Require(gas.Choked);Near(gas.ThroatVelocityMetersPerSecond,gas.FrozenThroatSoundSpeedMetersPerSecond,1e-9); + Near(gas.MassFlowKilogramsPerSecond,.7e-8*2e5*Math.Sqrt(1.4/(287*500))*Math.Pow(2/2.4,2.4/.8),1e-16); + var weak=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(1e5),1e-8,.7);var soft=Point(weak,1e6,300,0,5e4); + Near(soft.ThroatPressurePascals,1.1e6*Math.Exp(-.5)-1e5,1e-7);Require(soft.Choked);Near(soft.ThroatVelocityMetersPerSecond,Math.Sqrt(1e5/750),1e-10); + } + private static double Volume(double pressure,double t0,double p0,double x,double bulk) + {double cp=(1-x)*2000+x*1004.5,temperature=t0*Math.Pow(pressure/p0,x*287/cp);return (1-x)/(750*(1+pressure/bulk))+x*287*temperature/pressure;} + private static double Integral(double lo,double hi,double t,double p,double x,double bulk) + {const int count=4096;double h=(hi-lo)/count,sum=0;for(int i=0;i<=count;++i)sum+=(i==0||i==count?1:i%2==0?2:4)*Volume(lo+i*h,t,p,x,bulk);return sum*h/3;} + private static void Thermodynamics() + { + var law=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(),1e-8,.7); + foreach(double x in new[]{0d,.01,.2,.9,1}) + { + var q=Point(law,5e5,500,x,1e5);double expected=Integral(1e5,5e5,500,5e5,x,1.5e9); + Near(q.KineticEnergyJoulesPerKilogram,expected,Math.Max(1e-7,expected*1e-9)); + Near(q.ExitInternalEnergyJoulesPerKilogram+q.ExitPressureWorkJoulesPerKilogram+q.KineticEnergyJoulesPerKilogram,q.StagnationEnthalpyJoulesPerKilogram,3e-9); + double cp=(1-x)*2000+x*1004.5;Near(cp*Math.Log(q.ExitTemperatureKelvin/500)-x*287*Math.Log(1e5/5e5),0,1e-10); + if(q.Choked) + { + double p=q.ThroatPressurePascals,h=p*1e-5,v=Volume(p,500,5e5,x,1.5e9),derivative=(Volume(p+h,500,5e5,x,1.5e9)-Volume(p-h,500,5e5,x,1.5e9))/(2*h); + Near(q.FrozenThroatSoundSpeedMetersPerSecond,Math.Sqrt(-v*v/derivative),1e-6); + } + } + } + private static void Maximum() + { + foreach(double x in new[]{.001,.1,.5,1}) + { + var law=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(),1e-8,.7);var q=Point(law,4e5,500,x,8e4);double best=0; + for(int i=0;i<=2000;++i){double p=8e4+(4e5-8e4)*i/2000,cp=(1-x)*2000+x*1004.5,t=500*Math.Pow(p/4e5,x*287/cp); + double drop=cp*(500-t)+(1-x)*1.5e9/750*Math.Log((1.5e9+4e5)/(1.5e9+p));best=Math.Max(best,.7e-8*Math.Sqrt(2*Math.Max(0,drop))/Volume(p,500,4e5,x,1.5e9));} + Near(q.MassFlowKilogramsPerSecond,best,q.MassFlowKilogramsPerSecond*2e-6); + } + var rigid=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(1e15),1e-8,.7);var incompressible=Point(rigid,5e5,350,0,1e5); + Near(incompressible.MassFlowKilogramsPerSecond,.7e-8*Math.Sqrt(2*750*4e5),1e-12); + } + private static void Contracts() + { + var law=new FrozenCompressibleFuelNozzle(CompressibleFuelChecks.Law(),1e-8,.7); + Near(Point(law,1e5,300,1,2e5).MassFlowKilogramsPerSecond,0,0);Near(Point(law,1e5,300,1,1,0).MassFlowKilogramsPerSecond,0,0); + Require(law.Evaluate(1e5,300,1,1,1,out _)==FuelNozzleStatus.TemperatureOutOfRange); + Require(law.Evaluate(1e5,300,1.1,1e4,1,out var bad)==FuelNozzleStatus.InvalidInput&&bad==default); + for(int i=0;i<30;++i)Point(law,4e5,500,.1,1e5);long allocated=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<100;++i)Point(law,4e5,500,.1,1e5);Require(GC.GetAllocatedBytesForCurrentThread()==allocated); + } +} diff --git a/tests/Power.Tests/FrozenFuelNozzleChecks.cs b/tests/Power.Tests/FrozenFuelNozzleChecks.cs new file mode 100644 index 0000000..751b7c8 --- /dev/null +++ b/tests/Power.Tests/FrozenFuelNozzleChecks.cs @@ -0,0 +1,99 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FrozenFuelNozzleChecks +{ + private const double R = 287, Cv = 717.5, Cl = 2000, Density = 750, Area = 1e-8, Cd = .7; + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("frozen nozzle / incompressible Bernoulli and effective-area limit", Liquid), + ("frozen nozzle / independent ideal-gas subcritical and choked limits", Gas), + ("frozen nozzle / independent mixture flux maximum and frozen sonic condition", Mixture), + ("frozen nozzle / energy entropy momentum phase freezing and allocation-free bounds", Contracts) + ]; + internal static FuelPhaseEquilibrium Material() => new(new(Cl, Cv, 400, 300000, 0), R, 100000, 200, 600); + internal static FrozenFuelNozzle Law() => new(Material(), Density, Area, Cd); + private static void Ok(FuelNozzleStatus status) { if (status != FuelNozzleStatus.Success) Require(false, status.ToString()); } + private static void Liquid() + { + var law = Law(); Ok(law.Evaluate(8e5, 300, 0, 1e5, 1, out var point)); + double velocity = Math.Sqrt(2 * (8e5 - 1e5) / Density); + Near(point.ExitVelocityMetersPerSecond, velocity, 1e-12); Near(point.MassFlowKilogramsPerSecond, Cd * Area * Density * velocity, 1e-16); + Near(point.ExitTemperatureKelvin, 300, 0); Near(point.KineticEnergyJoulesPerKilogram, 7e5 / Density, 1e-10); Require(!point.Choked); + Ok(law.Evaluate(8e5, 300, 0, 1e5, .3, out var partial)); Near(partial.MassFlowKilogramsPerSecond, .3 * point.MassFlowKilogramsPerSecond, 1e-17); + Ok(law.Evaluate(8e5, 300, 1e-14, 1e5, 1, out var limit)); Near(limit.MassFlowKilogramsPerSecond, point.MassFlowKilogramsPerSecond, 1e-14); + } + private static void Gas() + { + var law = Law(); const double pressure = 6e5, temperature = 500, gamma = 1.4; + double critical = Math.Pow(2 / (gamma + 1), gamma / (gamma - 1)); + foreach (double ratio in new[] { .95, .8, critical, .3, .2 }) + { + Ok(law.Evaluate(pressure, temperature, 1, pressure * ratio, 1, out var point)); + double effectiveRatio = Math.Max(ratio, critical); + double flux = pressure / Math.Sqrt(R * temperature) * Math.Sqrt(2 * gamma / (gamma - 1) * + (Math.Pow(effectiveRatio, 2 / gamma) - Math.Pow(effectiveRatio, (gamma + 1) / gamma))); + Near(point.MassFlowKilogramsPerSecond, Cd * Area * flux, 1e-15); + Near(point.ThroatPressurePascals, pressure * effectiveRatio, 1e-7); + Near(point.ExitTemperatureKelvin, temperature * Math.Pow(ratio, (gamma - 1) / gamma), 1e-10); + } + Ok(law.Evaluate(pressure, temperature, 1, pressure * .2, 1, out var low)); Ok(law.Evaluate(pressure, temperature, 1, pressure * .3, 1, out var high)); + Require(low.Choked && high.Choked); Near(low.MassFlowKilogramsPerSecond, high.MassFlowKilogramsPerSecond, 1e-17); + } + private static void Mixture() + { + var law = Law(); const double pressure = 8e5, temperature = 500, ratio = .08; + foreach (double quality in new[] { .0001, .01, .1, .5, .9 }) + { + double cp = (1 - quality) * Cl + quality * (Cv + R), exponent = quality * R / cp, liquidVolume = (1 - quality) / Density; + double Flux(double r) + { + double t = temperature * Math.Pow(r, exponent), v = liquidVolume + quality * R * t / (pressure * r); + double drop = cp * (temperature - t) + liquidVolume * pressure * (1 - r); + return Math.Sqrt(2 * drop) / v; + } + // Independent pressure-ratio golden-section maximum of the direct energy law. + double lo = ratio, hi = 1, golden = (Math.Sqrt(5) - 1) / 2, a = hi - golden * (hi - lo), b = lo + golden * (hi - lo); + for (int i = 0; i < 120; ++i) + if (Flux(a) > Flux(b)) { hi = b; b = a; a = hi - golden * (hi - lo); } + else { lo = a; a = b; b = lo + golden * (hi - lo); } + double maximumAt = (lo + hi) / 2; if (Flux(ratio) >= Flux(maximumAt)) maximumAt = ratio; + Ok(law.Evaluate(pressure, temperature, quality, pressure * ratio, 1, out var point)); + Near(point.MassFlowKilogramsPerSecond, Cd * Area * Flux(maximumAt), 1e-12); + Near(point.ThroatPressurePascals, pressure * maximumAt, .2); + if (point.Choked) + { + double rc = point.ThroatPressurePascals / pressure, tc = temperature * Math.Pow(rc, exponent), v = liquidVolume + quality * R * tc / point.ThroatPressurePascals; + double soundSquared = v * v * point.ThroatPressurePascals * point.ThroatPressurePascals / (quality * R * tc * (1 - exponent)); + double velocitySquared = 2 * (cp * (temperature - tc) + liquidVolume * pressure * (1 - rc)); + Near(velocitySquared, soundSquared, 2e-7); + } + } + } + private static void Contracts() + { + var law = Law(); + foreach (double quality in new[] { 0d, .01, .5, 1d }) + { + Ok(law.Evaluate(8e5, 500, quality, 2e5, 1, out var p)); + Near(p.StagnationEnthalpyJoulesPerKilogram, p.ExitInternalEnergyJoulesPerKilogram + p.ExitPressureWorkJoulesPerKilogram + p.KineticEnergyJoulesPerKilogram, 2e-9); + double cp = (1 - quality) * Cl + quality * (Cv + R); + Near(cp * Math.Log(p.ExitTemperatureKelvin / 500) - quality * R * Math.Log(.25), 0, 1e-10); + Near(p.JetMomentumNewtons, p.MassFlowKilogramsPerSecond * p.ExitVelocityMetersPerSecond, 0); + Near(p.VaporMassFraction, quality, 0); + } + Require(law.Evaluate(8e5, 100, .5, 2e5, 1, out var failed) == FuelNozzleStatus.TemperatureOutOfRange && failed == default); + Require(law.Evaluate(8e5, 500, 1, 1, 1, out failed) == FuelNozzleStatus.TemperatureOutOfRange && failed == default); + Require(law.Evaluate(8e5, 500, 1.1, 1e5, 1, out failed) == FuelNozzleStatus.InvalidInput && failed == default); + Ok(law.Evaluate(8e5, 500, .5, 9e5, 1, out var closed)); Near(closed.MassFlowKilogramsPerSecond, 0, 0); + for (int i = 0; i < 30; ++i) Ok(law.Evaluate(8e5, 500, .5, 1e5, 1, out _)); + long allocated = GC.GetAllocatedBytesForCurrentThread(); for (int i = 0; i < 100; ++i) Ok(law.Evaluate(8e5, 500, .5, 1e5, 1, out _)); + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Frozen nozzle allocated."); + } +} diff --git a/tests/Power.Tests/FuelChamberAssetChecks.cs b/tests/Power.Tests/FuelChamberAssetChecks.cs new file mode 100644 index 0000000..bb040e8 --- /dev/null +++ b/tests/Power.Tests/FuelChamberAssetChecks.cs @@ -0,0 +1,55 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelChamberAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel chamber asset / moving geometry shaft histories and authentic v32 upgrade", Replay), + ("fuel chamber asset / inferred bounded geometry records / invalid ownership and downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(FuelChamberChecks.Model(), "Fuel chamber pump", new string('f', 64), 100_000_000, 5_000_000, + [new(50_000_000, 100, 0), new(75_000_000, 100, 1)], []); + private static void Sign(byte[] bytes) => SHA256.HashData(bytes.AsSpan(0, bytes.Length - 32)).CopyTo(bytes, bytes.Length - 32); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong time = 0; time <= a.DurationNanoseconds; time += a.SampleEveryNanoseconds) + { + if (time > left.TimeNanoseconds) Require(left.Advance(time - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < time) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, time - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var restored = AssetCodec.Decode(bytes); + Require(restored.Model.HasFuelChambers && bytes.SequenceEqual(AssetCodec.Encode(restored))); Compare(asset, restored); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "equilibrium-fuel-network-v32.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 32 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "dc53c55f9ed58503a4e37d3b9a57ace52e5aac8196fdb5707bb555c47f3a593e"); + var old = AssetCodec.Decode(fixture); Require(old.Model.HasEquilibriumFuelNetwork && !old.Model.HasFuelChambers && old.Model.Fingerprint.ToString("x16") == "e27805e1a2c808d1"); + var upgraded = AssetCodec.Encode(old); var back = upgraded.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(back.AsSpan(8), 32); Sign(back); Require(back.SequenceEqual(fixture)); + Compare(old, AssetCodec.Decode(upgraded)); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); int geometry = bytes.Length - 32 - 24 * asset.Inputs.Count - 33 * asset.Checks.Count - 40; + void Reject(byte[] bad) { Sign(bad); Throws(() => AssetCodec.Decode(bad)); } + foreach (int index in new[] { -1, 0, int.MaxValue }) { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(geometry), index); Reject(bad); } + var unit = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(unit.AsSpan(geometry + 12), (int)Unit.Kelvin); Reject(unit); + var volume = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(volume.AsSpan(geometry + 16), -1); Reject(volume); + var phase = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(phase.AsSpan(geometry + 28), double.NaN); Reject(phase); + var downgrade = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 32); Reject(downgrade); + Reject(bytes.Take(geometry).Concat(bytes.Skip(geometry + 40)).ToArray()); + var strip = bytes.Take(geometry).Concat(bytes.Skip(geometry + 40)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(strip.AsSpan(8), 32); Reject(strip); + } +} diff --git a/tests/Power.Tests/FuelChamberChecks.cs b/tests/Power.Tests/FuelChamberChecks.cs new file mode 100644 index 0000000..178eab1 --- /dev/null +++ b/tests/Power.Tests/FuelChamberChecks.cs @@ -0,0 +1,241 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class FuelChamberChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel chamber / sinusoidal volume / closed phase work and coupled shaft energy", Closed), + ("fuel chamber / finite inlet outlet check valves / starvation vapor and full ledgers", Pump), + ("fuel chamber / independent simultaneous liquid shaft-pressure ODE / second-order refinement", LiquidReference), + ("fuel chamber / independent phase-changing filling delivery and shaft ODE / refinement", PumpReference), + ("fuel chamber / hydraulic gear and speculative clutch composition / complete replay", Composition), + ("fuel chamber / valve forks cancellation late rollback and zero allocations", Transactions), + ("fuel chamber / static ideal check valve closes against reverse pressure", CheckValve), + ("fuel chamber / ownership geometry units and immutable models", Contracts) + ]; + private static SnapshotInfo Snapshot(Simulation simulation) => simulation.ReadSnapshot(new Scalar[simulation.Model.OutputCount]); + private static void Step(Simulation simulation, ulong time) => Require(simulation.Step(time) == SimulationStatus.Ok, "Fuel chamber step failed."); + private static void Balance(Simulation simulation) + { Near(Value(simulation, 0, Field.EnergyResidual), 0, 3e-6); Near(Value(simulation, 0, Field.MassResidual), 0, 1e-14); Near(Value(simulation, 0, Field.FuelResidual), 0, 1e-14); } + internal static FuelChamberDefinition Geometry => new() { MinimumReferenceVolume = new(1e-7, Unit.CubicMeter), SweptVolume = new(2e-7, Unit.CubicMeter), Phase = new(0, Unit.Radian) }; + internal static ModelDefinition Model(ulong tick = 50_000, bool flow = true, double inlet = 1e-11) + { + var material = EquilibriumFuelNetworkChecks.Material; + var chamber = material with { Compliance = new(5e-14, Unit.CubicMeterPerPascal) }; + NodeDefinition[] nodes = [NodeDefinition.FuelVolume(1, 1e-4, 750 * (1e-4 + 5e-10 * 1e5), 300, material with { Compliance = new(5e-10, Unit.CubicMeterPerPascal) }), + NodeDefinition.FuelVolume(2, 1e-7, 750 * (1e-7 + 5e-14 * 1e5), 300, chamber), + NodeDefinition.FuelVolume(3, 8e-7, 750 * (8e-7 + 5e-12 * 3e5), 300, material with { Compliance = new(5e-12, Unit.CubicMeterPerPascal) }), + NodeDefinition.Rotor(4, .001, 100)]; + ComponentDefinition[] components = flow ? [ComponentDefinition.FuelCheckValve(10, 1, 2, inlet, 100), ComponentDefinition.FuelCheckValve(11, 2, 3, 1e-9), + ComponentDefinition.FuelChamberPump(12, 4, 2, Geometry)] : [ComponentDefinition.FuelChamberPump(12, 4, 2, Geometry)]; + return new() { StepNanoseconds = tick, Nodes = nodes, Components = components }; + } + private static void Closed() + { + var geometry = new SinusoidalFuelChamber(1e-7, 2e-7, 0); + Near(geometry.ReferenceVolumeAt(0), 1e-7, 0); Near(geometry.ReferenceVolumeAt(Math.PI), 3e-7, 1e-22); + Near(geometry.VolumeDerivativeAt(.4), (geometry.ReferenceVolumeAt(.400001) - geometry.ReferenceVolumeAt(.399999)) / .000002, 1e-16); + var s = CompiledModel.Compile(Model(flow: false)).CreateSimulation(); + double energy = Value(s, 2, Field.InternalEnergy), entropy = Value(s, 2, Field.Entropy), speed = Value(s, 4, Field.Speed), vapor = 0; + for (int i = 0; i < 20; ++i) + { + Step(s, 10_000_000); Balance(s); vapor = Math.Max(vapor, Value(s, 2, Field.VaporMass)); + Near(Value(s, 2, Field.InternalEnergy) - energy, Value(s, 12, Field.HydraulicWork), 2e-10); + Near(.5 * .001 * (Value(s, 4, Field.Speed) * Value(s, 4, Field.Speed) - speed * speed) + Value(s, 12, Field.HydraulicWork), 0, 2e-9); + Near(Value(s, 2, Field.Entropy), entropy, 2e-9); + Near(Value(s, 12, Field.Volume), geometry.ReferenceVolumeAt(Value(s, 4, Field.Angle)), 1e-19); + } + Require(vapor > 0); Console.WriteLine($"Closed fuel chamber maximum vapor: {vapor:R} kg."); + } + private static void Pump() + { + double Run(double coefficient) + { + var s = CompiledModel.Compile(Model(inlet: coefficient)).CreateSimulation(); double source = Value(s, 1, Field.Mass), chamber = Value(s, 2, Field.Mass), receiver = Value(s, 3, Field.Mass); + double peakVapor = 0; + for (int i = 0; i < 20; ++i) + { + Require(s.Step(10_000_000) == SimulationStatus.Ok, $"Fuel pump inlet {coefficient:R} batch failed."); + Balance(s); peakVapor = Math.Max(peakVapor, Value(s, 2, Field.VaporMass)); + Near(source - Value(s, 1, Field.Mass), Value(s, 10, Field.TotalFuelDelivered), 1e-14); + Near(Value(s, 3, Field.Mass) - receiver, Value(s, 11, Field.TotalFuelDelivered), 1e-15); + Near(Value(s, 2, Field.Mass) - chamber, Value(s, 10, Field.TotalFuelDelivered) - Value(s, 11, Field.TotalFuelDelivered), 1e-15); + Require(Value(s, 10, Field.MassFlow) >= 0 && Value(s, 11, Field.MassFlow) >= 0); + } + Require(Value(s, 11, Field.TotalFuelDelivered) > 0 && Value(s, 12, Field.HydraulicWork) > 0 && Value(s, 4, Field.Speed) < 100); + Console.WriteLine($"Fuel chamber inlet {coefficient:R}: delivered {Value(s, 11, Field.TotalFuelDelivered):R} kg, peak vapor {peakVapor:R} kg."); + return Value(s, 11, Field.TotalFuelDelivered); + } + double starved = Run(1e-11), supplied = Run(3e-10); Require(supplied > starved); + } + private static void LiquidReference() + { + const double minimum = 1e-7, swept = 1e-7, compliance = 1e-12, inertia = .0005, duration = .02; + double referenceVolume = minimum + swept * (1 - Math.Cos(.4)) / 2, mass = 750 * (referenceVolume + compliance * 1e6); + (double Angle, double Speed) Integrate(int count) + { + double angle = .4, speed = 20, h = duration / count; + double Acceleration(double theta) => ((mass / 750 - minimum - swept * (1 - Math.Cos(theta)) / 2) / compliance) * swept * Math.Sin(theta) / 2 / inertia; + for (int i = 0; i < count; ++i) + { + double a = Acceleration(angle), b = Acceleration(angle + h * speed / 2), c = Acceleration(angle + h * (speed + h * a / 2) / 2), d = Acceleration(angle + h * (speed + h * b / 2)); + angle += h / 6 * (speed + 2 * (speed + h * a / 2) + 2 * (speed + h * b / 2) + speed + h * c); + speed += h / 6 * (a + 2 * b + 2 * c + d); + } + return (angle, speed); + } + var exact = Integrate(2000); var finer = Integrate(4000); Near(exact.Angle, finer.Angle, 1e-12); Near(exact.Speed, finer.Speed, 1e-10); + double previous = 0; var errors = new List(); + foreach (ulong tick in new ulong[] { 500_000, 250_000, 125_000, 62_500 }) + { + var definition = new ModelDefinition + { + StepNanoseconds = tick, + Nodes = [NodeDefinition.Rotor(4, inertia, 20, .4), NodeDefinition.FuelVolume(2, referenceVolume, mass, 300, EquilibriumFuelNetworkChecks.Material with { Compliance = new(compliance, Unit.CubicMeterPerPascal) })], + Components = [ComponentDefinition.FuelChamberPump(12, 4, 2, new() { MinimumReferenceVolume = new(minimum, Unit.CubicMeter), SweptVolume = new(swept, Unit.CubicMeter), Phase = new(0, Unit.Radian) })] + }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 20_000_000); Balance(s); + double error = Math.Max(Math.Abs(Value(s, 4, Field.Angle) - exact.Angle), Math.Abs(Value(s, 4, Field.Speed) - exact.Speed) / 20); + if (previous > 0) Require(previous / error is > 3.5 and < 4.5, $"Liquid chamber refinement: {previous:R}/{error:R}"); + previous = error; errors.Add(error); Near(Value(s, 2, Field.Temperature), 300, 1e-8); Near(Value(s, 2, Field.VaporMass), 0, 0); + } + Console.WriteLine("Fuel chamber closed-liquid normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + } + private static void Composition() + { + var definition = Model(100_000); + definition = definition with + { + Nodes = [..definition.Nodes, NodeDefinition.Hydraulic(5, 1e-11, 1e5), NodeDefinition.Rotor(6, .002, 50), NodeDefinition.Rotor(7, .001)], + Components = [..definition.Components, ComponentDefinition.DisplacementPump(20, 4, 5, 1e-10), + new() { Id = 21, Kind = ComponentKind.IdealGear, NodeA = 4, NodeB = 6, Ratio = 2 }, ComponentDefinition.Clutch(22, 4, 7, 2, 1, 200)] + }; + var s = CompiledModel.Compile(definition).CreateSimulation(); var replay = s.Fork(); Step(s, 200_000_000); + for (int i = 0; i < 20; ++i) Step(replay, 10_000_000); + Require(Snapshot(s) == Snapshot(replay)); Balance(s); + Near(Value(s, 4, Field.Speed), 2 * Value(s, 6, Field.Speed), 1e-9); + Require(Value(s, 22, Field.ClutchMode) == (int)ClutchMode.Locked && Value(s, 20, Field.HydraulicWork) > 0 && Value(s, 11, Field.TotalFuelDelivered) > 0); + } + private static double ReferenceSaturation(double t) + { + const double r = 287, cv = 717.5, cl = 2000, offset = -813000; + double p0 = 1e5 * Math.Pow(t / 400, (cv + r - cl) / r) * Math.Exp(offset / r * (1 / t - 1 / 400d)); + double lo = p0, hi = p0 * Math.E; + for (int i = 0; i < 64; ++i) { double p = (lo + hi) / 2; if (Math.Log(p / p0) > p / (750 * r * t)) hi = p; else lo = p; } + return (lo + hi) / 2; + } + private static (double Energy, double Pressure, double Volume, double Enthalpy, double Temperature) ReferencePoint(double t, double mass, double v0, double compliance) + { + double p = ReferenceSaturation(t), v = v0 + compliance * p, vapor; + if (mass >= 750 * v) { p = (mass / 750 - v0) / compliance; vapor = 0; } + else if (mass <= p * v / (287 * t)) { p = 2 * mass * 287 * t / (v0 + Math.Sqrt(v0 * v0 + 4 * compliance * mass * 287 * t)); vapor = mass; } + else vapor = (750 * v - mass) / (750 * 287 * t / p - 1); + v = v0 + compliance * p; + double fluid = (mass - vapor) * (2000 * t - 813000) + vapor * 717.5 * t; + return (fluid + .5 * compliance * p * p, p, v, (fluid + p * v) / mass, t); + } + private static (double Energy, double Pressure, double Volume, double Enthalpy, double Temperature) ReferenceState(double mass, double energy, double v0, double compliance) + { + // Try the independently eliminated single-phase relations before the + // bisection of equilibrium energy. No production closure is called. + double liquidPressure = (mass / 750 - v0) / compliance; + double liquidT = (energy - .5 * compliance * liquidPressure * liquidPressure + mass * 813000) / (mass * 2000); + if (liquidT is >= 200 and <= 600 && liquidPressure > 0 && liquidPressure >= ReferenceSaturation(liquidT)) return ReferencePoint(liquidT, mass, v0, compliance); + if (energy > 0) + { + double a = compliance * (717.5 / 287 + .5), b = 717.5 / 287 * v0; + double p = 2 * energy / (b + Math.Sqrt(b * b + 4 * a * energy)), t = p * (v0 + compliance * p) / mass / 287; + if (t is >= 200 and <= 600 && p <= ReferenceSaturation(t)) return ReferencePoint(t, mass, v0, compliance); + } + double lo = 200, hi = 600; + for (int i = 0; i < 52; ++i) { double t = (lo + hi) / 2; if (ReferencePoint(t, mass, v0, compliance).Energy > energy) hi = t; else lo = t; } + return ReferencePoint((lo + hi) / 2, mass, v0, compliance); + } + private static void PumpReference() + { + var definition = Model(); const double duration = .075; + double[] initial = [0, 100, definition.Nodes[0].Position.Value, definition.Nodes[1].Position.Value, definition.Nodes[2].Position.Value, + ReferencePoint(300, definition.Nodes[0].Position.Value, 1e-4, 5e-10).Energy, + ReferencePoint(300, definition.Nodes[1].Position.Value, 1e-7, 5e-14).Energy, + ReferencePoint(300, definition.Nodes[2].Position.Value, 8e-7, 5e-12).Energy, 0]; + void Rates(double[] x, double[] rate) + { + double geometricVolume = 1e-7 + 1e-7 * (1 - Math.Cos(x[0])), volumeRate = 1e-7 * Math.Sin(x[0]) * x[1]; + var source = ReferenceState(x[2], x[5], 1e-4, 5e-10); var chamber = ReferenceState(x[3], x[6], geometricVolume, 5e-14); var rail = ReferenceState(x[4], x[7], 8e-7, 5e-12); + double inlet = 1e-11 * Math.Max(0, source.Pressure - chamber.Pressure) * x[2] / source.Volume; + double outlet = 1e-9 * Math.Max(0, chamber.Pressure - rail.Pressure) * x[3] / chamber.Volume; + rate[0] = x[1]; rate[1] = chamber.Pressure * 1e-7 * Math.Sin(x[0]) / .001; + rate[2] = -inlet; rate[3] = inlet - outlet; rate[4] = outlet; + rate[5] = -inlet * source.Enthalpy; rate[6] = inlet * source.Enthalpy - outlet * chamber.Enthalpy - chamber.Pressure * volumeRate; rate[7] = outlet * chamber.Enthalpy; rate[8] = outlet; + } + double[] Integrate(int steps) + { + double[] x = initial.ToArray(), stage = new double[9], a = new double[9], b = new double[9], c = new double[9], d = new double[9]; double h = duration / steps; + for (int n = 0; n < steps; ++n) + { + Rates(x, a); for (int j = 0; j < 9; ++j) stage[j] = x[j] + h * a[j] / 2; Rates(stage, b); + for (int j = 0; j < 9; ++j) stage[j] = x[j] + h * b[j] / 2; Rates(stage, c); + for (int j = 0; j < 9; ++j) stage[j] = x[j] + h * c[j]; Rates(stage, d); + for (int j = 0; j < 9; ++j) x[j] += h / 6 * (a[j] + 2 * b[j] + 2 * c[j] + d[j]); + } + return x; + } + var reference = Integrate(16000); var finer = Integrate(32000); + double referenceDifference = 0; + for (int j = 0; j < 9; ++j) + referenceDifference = Math.Max(referenceDifference, Math.Abs(reference[j] - finer[j]) / (j is 2 or 3 or 4 or 8 ? initial[3] : j == 1 ? 100 : j == 0 ? 1 : 100)); + Console.WriteLine($"Fuel chamber independent RK4 refinement difference: {referenceDifference:R}."); + Require(referenceDifference < 1e-8, "The independent reference needs further refinement."); + var errors = new List(); + foreach (ulong tick in new ulong[] { 50_000, 25_000, 12_500, 6_250 }) + { + var s = CompiledModel.Compile(Model(tick)).CreateSimulation(); Step(s, 75_000_000); Balance(s); + double error = Math.Max(Math.Abs(Value(s, 4, Field.Speed) - reference[1]) / 100, + Math.Max(Math.Abs(Value(s, 2, Field.Mass) - reference[3]), Math.Abs(Value(s, 11, Field.TotalFuelDelivered) - reference[8])) / initial[3]); + errors.Add(error); + } + Console.WriteLine("Fuel chamber phase-changing pump normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + for (int j = 1; j < errors.Count; ++j) Require(errors[j - 1] / errors[j] is > 1.6 and < 2.4, $"Phase-changing pump refinement: {errors[j - 1]:R}/{errors[j]:R}"); + } + private static void Transactions() + { + var definition = Model(); definition = definition with { Components = [..definition.Components, ComponentDefinition.Torque(20, 4, 200, 0)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 10_000_000); var before = Snapshot(s); var replay = s.Fork(); + Require(s.Step(100_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(100_000_000, [new(before.TimeNanoseconds + 20_000_000, 200, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var branch = s.Fork(); Require(branch.SubmitInputs([new(100, 0)]) == SimulationStatus.Ok); Step(branch, 20_000_000); Require(Snapshot(s) == before); + Step(s, 50_000_000); for (int i = 0; i < 10; ++i) Step(replay, 5_000_000); Require(Snapshot(s) == Snapshot(replay)); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 20; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 20; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Moving chamber stepping allocated."); + } + private static void Contracts() + { + var definition = Model(); var compiled = CompiledModel.Compile(definition); + var duplicate = definition with { Components = [..definition.Components, ComponentDefinition.FuelChamberPump(13, 4, 2, Geometry)] }; + Require(!CompiledModel.TryCompile(duplicate, out _, out var owner) && owner!.Field == "fuel_chamber.node_b"); + var wrong = definition with { Components = definition.Components.Select(c => c.FuelChamber is null ? c : c with { FuelChamber = Geometry with { SweptVolume = new(1, Unit.Kelvin) } }).ToArray() }; + Require(!CompiledModel.TryCompile(wrong, out _, out var unit) && unit!.Code == DiagnosticCode.Unit); + wrong = definition with { Nodes = definition.Nodes.Select(n => n.Id == 2 ? n with { Storage = new(2e-7, Unit.CubicMeter) } : n).ToArray() }; + Require(!CompiledModel.TryCompile(wrong, out _, out var initial) && initial!.Field == "fuel_chamber.initial_volume"); + var before = compiled.CreateSimulation(); definition.Components[^1] = ComponentDefinition.FuelChamberPump(12, 4, 2, Geometry with { SweptVolume = new(3e-7, Unit.CubicMeter) }); + var copy = CompiledModel.Compile(Model()).CreateSimulation(); Step(before, 1_000_000); Step(copy, 1_000_000); Require(Snapshot(before) == Snapshot(copy)); + } + private static void CheckValve() + { + var definition = EquilibriumFuelNetworkChecks.Model(reverse: true); + definition = definition with { Components = [ComponentDefinition.FuelCheckValve(10, 1, 2, 1e-11)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); double mass = Value(s, 1, Field.Mass), energy = Value(s, 1, Field.InternalEnergy); + Step(s, 10_000_000); Balance(s); Near(Value(s, 1, Field.Mass), mass, 0); Near(Value(s, 1, Field.InternalEnergy), energy, 0); + Near(Value(s, 10, Field.TotalFuelDelivered), 0, 0); Near(Value(s, 10, Field.TransportEnergy), 0, 0); + } +} diff --git a/tests/Power.Tests/FuelChamberIntegrationChecks.cs b/tests/Power.Tests/FuelChamberIntegrationChecks.cs new file mode 100644 index 0000000..ed93edf --- /dev/null +++ b/tests/Power.Tests/FuelChamberIntegrationChecks.cs @@ -0,0 +1,56 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelChamberIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel pump documents / inlet-starved and electric supply / every portable boundary", Documents), + ("fuel pump agent / geometry units ownership revisions and independent inlet branch", Sessions) + ]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static double V(SampleReport row, uint id, Field field) => row.Values[Channels.Output(id, field).ToString()]; + private static void Documents() + { + foreach (string name in new[] { "equilibrium-fuel-pump", "electric-equilibrium-fuel-pump" }) + { + var document = ModelDocument.Load(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "shaft_driven_equilibrium_fuel_pump"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var row in report.Samples) + { + while (playback.TimeNanoseconds < row.TimeNs) Require(playback.Advance(Math.Min(257 * asset.Model.StepNanoseconds, row.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(value => value.Value == row.Values[value.Channel.ToString()])); + Near(V(row, 0, Field.EnergyResidual), 0, 3e-6); Near(V(row, 0, Field.MassResidual), 0, 1e-14); Near(V(row, 0, Field.FuelResidual), 0, 1e-14); + Require(V(row, 10, Field.MassFlow) >= 0 && V(row, 11, Field.MassFlow) >= 0); + } + Require(V(report.Samples[^1], 11, Field.TotalFuelDelivered) > 0 && V(report.Samples[^1], 12, Field.HydraulicWork) > 0); + if (name == "equilibrium-fuel-pump") Require(report.Samples.Any(row => V(row, 2, Field.VaporMass) > 0)); + } + } + private static void Sessions() + { + var capability = Data(AgentWorkspace.Capabilities()); Require(capability.GetProperty("fuel_chamber").GetProperty("component").GetString() == "fuel_chamber"); + var example = Data(AgentWorkspace.ExampleModel("equilibrium-fuel-pump")); var workspace = new AgentWorkspace(); + string parent = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!, child = Data(workspace.ForkSession(parent, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(child, "0", [new("100", 0)])); Data(workspace.StepSession(child, "1", "10000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("revision").GetString() == "0"); + Data(workspace.StepSession(parent, "0", "10000000")); Require(Data(workspace.ReadSnapshot(parent)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(child)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(parent, "1")); Data(workspace.CloseSession(child, "2")); + var bad = JsonNode.Parse(example.GetRawText())!; var chamber = bad["components"]!.AsArray().Single(c => c!["kind"]!.GetValue() == "fuel_chamber")!; + chamber["parameters"]!["swept_volume"]!["unit"] = "k"; Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + chamber["parameters"]!["swept_volume"]!["unit"] = "m3"; chamber["parameters"]!["implicit_oem_cam"] = true; + Throws(() => ModelDocument.Parse(bad.ToJsonString())); + } +} diff --git a/tests/Power.Tests/FuelDischargeAssetChecks.cs b/tests/Power.Tests/FuelDischargeAssetChecks.cs new file mode 100644 index 0000000..5242597 --- /dev/null +++ b/tests/Power.Tests/FuelDischargeAssetChecks.cs @@ -0,0 +1,61 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelDischargeAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel discharge asset / finite density frozen transit needle histories and authentic v33 replay", Replay), + ("fuel discharge asset / bounded typed records phase mode density needle and downgrade rejection", Corruption) + ]; + private static PowerAsset Asset(bool needle = false) => PowerAsset.Create(FuelDischargeChecks.Model(needle: needle), "Finite fuel discharge", new string('a', 64), + 10_000_000, 1_000_000, [new(5_000_000, 100, 0), new(7_000_000, 100, 1)], []); + private static void Sign(byte[] bytes) => SHA256.HashData(bytes.AsSpan(0, bytes.Length - 32)).CopyTo(bytes, bytes.Length - 32); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong time = 0; time <= a.DurationNanoseconds; time += a.SampleEveryNanoseconds) + { + if (time > left.TimeNanoseconds) Require(left.Advance(time - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < time) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, time - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + foreach (bool needle in new[] { false, true }) + { + var original = Asset(needle); var bytes = AssetCodec.Encode(original); var decoded = AssetCodec.Decode(bytes); + Require(decoded.Model.HasFiniteFuelReceivers && decoded.Model.HasFuelDischarge && bytes.SequenceEqual(AssetCodec.Encode(decoded))); + Require(original.Components.SequenceEqual(decoded.Components)); Compare(original, decoded); + } + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "equilibrium-fuel-pump-v33.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 33 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "3e3804c7277baea26c330c47a319669c5f61142486fb73f127679e56192fe9ba"); + var old = AssetCodec.Decode(fixture); Require(old.Model.HasFuelChambers && !old.Model.HasFuelDischarge && old.Model.Fingerprint.ToString("x16") == "30f8057b21ff5860"); + var upgraded = AssetCodec.Encode(old); var back = upgraded.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(back.AsSpan(8), 33); Sign(back); Require(back.SequenceEqual(fixture)); + Compare(old, AssetCodec.Decode(upgraded)); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); + int discharge = bytes.Length - 32 - 24 * asset.Inputs.Count - 52, film = discharge - 148 - 112; + void Reject(byte[] bad) { Sign(bad); Throws(() => AssetCodec.Decode(bad)); } + foreach (int offset in new[] { discharge, discharge + 4, discharge + 8, discharge + 20, discharge + 24, film + 108 }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(offset), int.MaxValue); Reject(bad); } + foreach (double value in new[] { double.NaN, -1d, 2d }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(bad.AsSpan(discharge + 12), value); Reject(bad); } + var density = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(density.AsSpan(film + 100), 0); Reject(density); + var orphan = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(orphan.AsSpan(discharge + 28), .001); Reject(orphan); + var downgrade = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 33); Reject(downgrade); + Reject(bytes.Take(discharge).Concat(bytes.Skip(discharge + 52)).ToArray()); + } +} diff --git a/tests/Power.Tests/FuelDischargeChecks.cs b/tests/Power.Tests/FuelDischargeChecks.cs new file mode 100644 index 0000000..b2574e2 --- /dev/null +++ b/tests/Power.Tests/FuelDischargeChecks.cs @@ -0,0 +1,192 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class FuelDischargeChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel discharge / finite liquid displacement energy kinetic heat and total entropy", Transfer), + ("fuel discharge / moving cylinder phase work and real needle gating", MovingNeedle), + ("fuel discharge / frozen mixture sonic limiting into finite receiver", Mixture), + ("finite receiver / existing liquid injector displacement work remains internal", LegacyLiquid), + ("fuel discharge / independent liquid-nozzle finite-receiver heat and momentum ODE", Reference), + ("fuel discharge / full batch replay cancellation late rollback forks and zero allocations", Transactions), + ("fuel discharge / explicit transit material ports and density contracts", Contracts) + ]; + internal static EquilibriumFuelDefinition Material => EquilibriumFuelNetworkChecks.Material with + { LiquidSpecificHeat = new(800, Unit.JoulePerKilogramKelvin), MaximumTemperature = new(2500, Unit.Kelvin) }; + internal static FuelFilmDefinition Film => new() + { + InitialMass = new(0, Unit.Kilogram), InitialTemperature = new(350, Unit.Kelvin), LiquidSpecificHeat = Material.LiquidSpecificHeat, + SaturationTemperature = Material.ReferenceTemperature, LatentInternalEnergy = Material.LatentInternalEnergy, FiniteVolumeDensity = Material.LiquidDensity, + PhaseEquilibrium = new() { ReferencePressure = Material.ReferencePressure, MinimumTemperature = Material.MinimumTemperature, MaximumTemperature = Material.MaximumTemperature } + }; + internal static GasDefinition Gas => new() + { + GasConstant = Material.GasConstant, Gamma = 1.4, + Premixed = new() { LowerHeatingValue = Material.LowerHeatingValue, StoichiometricAirFuelRatio = 14.7, InitialFractions = new(0, 1) } + }; + internal static ModelDefinition Model(double wallFraction = 1, bool moving = false, bool needle = false) + { + NodeDefinition[] nodes = [NodeDefinition.Rotor(1, .1, 50, Math.PI), moving ? NodeDefinition.CylinderGas(2, 1e5, 350) with { Gas = Gas } : NodeDefinition.GasVolume(2, 1e-5, 1e5, 350) with { Gas = Gas }, + NodeDefinition.Thermal(3, 1, 350), NodeDefinition.FuelVolume(4, 8e-7, 750 * (8e-7 + 5e-13 * 8e5), 300, Material)]; + var discharge = new FuelDischargeDefinition { FilmComponent = 11, PhaseModel = FuelDischargePhaseModel.Frozen, WallKineticFraction = new(wallFraction, Unit.Fraction), + Needle = needle ? new() { NeedleNode = 5, ClosedPosition = new(0, Unit.Meter), FullOpenPosition = new(.001, Unit.Meter) } : null }; + ComponentDefinition[] components = [ComponentDefinition.FiniteLiquidFilm(11, 2, 3, 0, Film), ComponentDefinition.FuelDischargeNozzle(12, 4, 2, discharge, 2e-8, .7, 100)]; + if (moving) components = [ComponentDefinition.GasCylinder(10, 1, 2, MovingCylinderChecks.Geometry), ..components]; + if (needle) { nodes = [..nodes, NodeDefinition.Translational(5, .001)]; components = [..components, ComponentDefinition.Force(13, 5, 200, 0)]; } + return new() { StepNanoseconds = 100_000, Nodes = nodes, Components = components }; + } + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Step(Simulation s, ulong time) => Require(s.Step(time) == SimulationStatus.Ok, "Fuel discharge step failed."); + private static void Balance(Simulation s) + { Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); } + private static double Entropy(Simulation s, double cavity) + { + var caloric = new EquilibriumFuelFilm(800, 717.5, 400, 300000, 0); var material = new FuelPhaseEquilibrium(caloric, 287, 1e5, 200, 2500); + var law = new FiniteTankFuelEquilibrium(material, cavity, 750); + double fuel = Value(s, 11, Field.Mass) + Value(s, 2, Field.FuelMass), carrier = Value(s, 2, Field.FreshAirMass) + Value(s, 2, Field.ProductMass); + Require(law.TryPoint(Value(s, 2, Field.Temperature), fuel, carrier, out var point)); + return Value(s, 4, Field.Entropy) + law.Entropy(point, carrier) + Math.Log(Value(s, 3, Field.Temperature) / 350); + } + private static void Transfer() + { + foreach (double fraction in new[] { 0d, .5, 1d }) + { + var s = CompiledModel.Compile(Model(fraction)).CreateSimulation(); double mass = Value(s, 4, Field.Mass), sourceEnergy = Value(s, 4, Field.InternalEnergy), entropy = Entropy(s, 1e-5); + for (int n = 0; n < 10; ++n) { Step(s, 2_000_000); Balance(s); } + double delivered = Value(s, 12, Field.TotalFuelDelivered); Require(delivered > 0); + Near(mass - Value(s, 4, Field.Mass), delivered, 1e-16); + Near(sourceEnergy - Value(s, 4, Field.InternalEnergy), Value(s, 12, Field.TransportEnergy), 2e-11); + Near(Value(s, 12, Field.FluidHeat), fraction * Value(s, 12, Field.JetKineticEnergy), 2e-12); + Near(Value(s, 3, Field.Temperature) - 350, Value(s, 12, Field.FluidHeat), 1e-10); + Near(Value(s, 2, Field.Volume) + Value(s, 11, Field.Volume), 1e-5, 1e-20); + Require(Entropy(s, 1e-5) >= entropy - 1e-11 && Value(s, 12, Field.JetImpulse) > 0 && Value(s, 12, Field.Force) > 0); + Near(Value(s, 0, Field.SourceWork), 0, 0); + Console.WriteLine($"Finite receiver wall fraction {fraction:R}: delivered {delivered:R} kg; liquid displacement {Value(s, 11, Field.Volume):R} m3."); + } + } + private static void MovingNeedle() + { + var s = CompiledModel.Compile(Model(moving: true)).CreateSimulation(); Step(s, 10_000_000); Balance(s); + Near(Value(s, 2, Field.Volume) + Value(s, 11, Field.Volume), Value(s, 10, Field.Volume), 1e-18); + var gated = CompiledModel.Compile(Model(needle: true)).CreateSimulation(); Step(gated, 1_000_000); Near(Value(gated, 12, Field.TotalFuelDelivered), 0, 0); + Require(gated.SubmitInputs([new(200, 1)]) == SimulationStatus.Ok); Step(gated, 1_000_000); Balance(gated); + Require(Value(gated, 5, Field.Displacement) > 0 && Value(gated, 12, Field.TotalFuelDelivered) > 0); + } + private static void Contracts() + { + var definition = Model(); + var invalid = definition with { Components = definition.Components.Select(c => c.FuelDischarge is null ? c : c with { FuelDischarge = c.FuelDischarge with { PhaseModel = 0 } }).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var mode) && mode!.Field == "fuel_discharge.phase_mode"); + invalid = definition with { Nodes = definition.Nodes.Select(n => n.Id == 4 ? n with { Fuel = Material with { LiquidDensity = new(800, Unit.KilogramPerCubicMeter) } } : n).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var material) && material!.Field == "fuel_discharge.material"); + invalid = definition with { Components = definition.Components.Select(c => c.FuelFilm is null ? c : c with { FuelFilm = Film with { FiniteVolumeDensity = new(750, Unit.Kelvin) } }).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var unit) && unit!.Code == DiagnosticCode.Unit); + } + private static void Mixture() + { + var definition = Model(); definition = definition with { Nodes = definition.Nodes.Select(n => n.Id == 4 ? NodeDefinition.FuelVolume(4, 8e-7, 1e-5, 500, Material) : n).ToArray() }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Require(Value(s, 4, Field.VaporMassFraction) is > 0 and < 1); + Step(s, 2_000_000); Balance(s); Require(Value(s, 12, Field.Choked) == 1 && Value(s, 12, Field.ThroatPressure) > Value(s, 2, Field.Pressure)); + Require(Value(s, 12, Field.TotalFuelDelivered) > 0 && Value(s, 12, Field.JetKineticEnergy) > 0); + } + private static void LegacyLiquid() + { + var definition = LiquidFuelInjectorChecks.Model(); + definition = definition with { Components = definition.Components.Select(c => c.FuelFilm is null ? c : + c with { Kind = ComponentKind.FiniteFuelFilm, FuelFilm = Film with { InitialTemperature = new(300, Unit.Kelvin) } }).ToArray() }; + var s = CompiledModel.Compile(definition).CreateSimulation(); double cavity = Value(s, 2, Field.Volume); + Step(s, 50_000_000); Balance(s); + Require(Value(s, 12, Field.TotalFuelDelivered) > 0 && Value(s, 12, Field.HydraulicWork) > 0); + Near(Value(s, 0, Field.SourceWork), 0, 0); + Near(Value(s, 2, Field.Volume) + Value(s, 10, Field.Volume), cavity, 1e-20); + } + private static (double P, double T) ReferenceReceiver(double fuel, double carrier, double energy) + { + const double r = 287, cv = 717.5, cl = 800, offset = -333000, capacity = 1e-5; + (double P, double E) At(double t) + { + double p0 = 1e5 * Math.Pow(t / 400, (cv + r - cl) / r) * Math.Exp(offset / r * (1 / t - 1 / 400d)); + double F(double vapor) + { + if (vapor == 0) return double.NegativeInfinity; + double gasVolume = capacity - (fuel - vapor) / 750; + return Math.Log(vapor * r * t / gasVolume / p0) - (vapor + carrier) / (750 * gasVolume); + } + double lo = 0, hi = fuel; + if (fuel > 0 && F(fuel) > 0) + for (int i = 0; i < 64; ++i) { double middle = (lo + hi) / 2; if (F(middle) > 0) hi = middle; else lo = middle; } + else lo = hi; + double vapor = (lo + hi) / 2, liquid = fuel - vapor; + double pressure = (carrier + vapor) * r * t / (capacity - liquid / 750); + double stored = liquid * (cl * t + offset) + (carrier + vapor) * cv * t; + return (pressure, stored); + } + double lower = 200, upper = 2500; + for (int i = 0; i < 52; ++i) { double t = (lower + upper) / 2; if (At(t).E > energy) upper = t; else lower = t; } + double temperature = (lower + upper) / 2; return (At(temperature).P, temperature); + } + private static void Reference() + { + const double carrier = 1e5 * 1e-5 / (287 * 350), duration = .02, wallFraction = .5; + double[] initial = [8e5, 0, carrier * 717.5 * 350, 350, 0, 0]; + void Rates(double[] x, double[] rate) + { + var receiver = ReferenceReceiver(x[1], carrier, x[2]); double head = Math.Max(0, x[0] - receiver.P); + double velocity = Math.Sqrt(2 * head / 750), flow = .7 * 2e-8 * 750 * velocity, kinetic = head / 750; + double enthalpy = 800 * 300 - 333000 + x[0] / 750; + rate[0] = -flow / (750 * 5e-13); rate[1] = flow; rate[2] = flow * (enthalpy - wallFraction * kinetic); + rate[3] = wallFraction * flow * kinetic; rate[4] = flow * kinetic; rate[5] = flow * velocity; + } + double[] Integrate(int count) + { + double[] x = initial.ToArray(), stage = new double[6], a = new double[6], b = new double[6], c = new double[6], d = new double[6]; double h = duration / count; + for (int n = 0; n < count; ++n) + { + Rates(x, a); for (int j = 0; j < 6; ++j) stage[j] = x[j] + h * a[j] / 2; Rates(stage, b); + for (int j = 0; j < 6; ++j) stage[j] = x[j] + h * b[j] / 2; Rates(stage, c); + for (int j = 0; j < 6; ++j) stage[j] = x[j] + h * c[j]; Rates(stage, d); + for (int j = 0; j < 6; ++j) x[j] += h / 6 * (a[j] + 2 * b[j] + 2 * c[j] + d[j]); + } + return x; + } + var reference = Integrate(1000); var finer = Integrate(2000); + for (int j = 0; j < 6; ++j) Near(reference[j], finer[j], j == 0 ? 1e-4 : j == 1 ? 1e-12 : 1e-8); + var errors = new List(); + foreach (ulong tick in new ulong[] { 200_000, 100_000, 50_000, 25_000 }) + { + var definition = Model(wallFraction) with { StepNanoseconds = tick }; var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 20_000_000); Balance(s); + double[] values = [Value(s, 4, Field.Pressure), Value(s, 12, Field.TotalFuelDelivered), Value(s, 11, Field.InternalEnergy) + Value(s, 2, Field.InternalEnergy), + Value(s, 3, Field.Temperature), Value(s, 12, Field.JetKineticEnergy), Value(s, 12, Field.JetImpulse)]; + double error = 0; + for (int j = 0; j < 6; ++j) error = Math.Max(error, Math.Abs(values[j] - reference[j]) / (j == 0 ? 8e5 : j == 1 ? 1e-5 : j == 3 ? 350 : j == 2 ? 3 : .01)); + errors.Add(error); + } + Console.WriteLine("Finite receiver discharge ODE normalized errors: " + string.Join(", ", errors.Select(e => e.ToString("R")))); + for (int j = 1; j < errors.Count; ++j) Require(errors[j - 1] / errors[j] is > 1.6 and < 2.4, $"Finite receiver discharge refinement: {errors[j - 1]:R}/{errors[j]:R}"); + } + private static void Transactions() + { + var definition = Model(moving: true); definition = definition with { Components = [..definition.Components, ComponentDefinition.Torque(20, 1, 200, 0)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); var replay = s.Fork(); + ScheduledInput[] events = [new(2_000_000, 100, .5), new(5_000_000, 100, 0), new(7_000_000, 100, 1)]; + Require(s.Step(10_000_000, events) == SimulationStatus.Ok); + for (ulong time = 0; time < 10_000_000; time += 1_000_000) + Require(replay.Step(1_000_000, events.Where(e => e.TimeNanoseconds >= time && e.TimeNanoseconds < time + 1_000_000).ToArray()) == SimulationStatus.Ok); + Require(Snapshot(s) == Snapshot(replay)); var before = Snapshot(s); + Require(s.Step(10_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(10_000_000, [new(before.TimeNanoseconds + 2_000_000, 200, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var branch = s.Fork(); Require(branch.SubmitInputs([new(100, 0)]) == SimulationStatus.Ok); Step(branch, 1_000_000); Require(Snapshot(s) == before); + var values = new Scalar[s.Model.OutputCount]; for (int n = 0; n < 20; ++n) { Step(s, 100_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); for (int n = 0; n < 20; ++n) { Step(s, 100_000); s.ReadSnapshot(values); } + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Fuel discharge stepping allocated."); + } +} diff --git a/tests/Power.Tests/FuelDischargeIntegrationChecks.cs b/tests/Power.Tests/FuelDischargeIntegrationChecks.cs new file mode 100644 index 0000000..cd98556 --- /dev/null +++ b/tests/Power.Tests/FuelDischargeIntegrationChecks.cs @@ -0,0 +1,73 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelDischargeIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel discharge documents / choked receiver and pump solenoid fired cylinder / every portable boundary", Documents), + ("fuel discharge agent / explicit phase density diagnostics revisions and independent admission branch", Sessions) + ]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static double V(SampleReport row, uint id, Field field) => row.Values[Channels.Output(id, field).ToString()]; + private static void Documents() + { + foreach (string name in new[] { "finite-volume-fuel-discharge", "pump-fed-finite-volume-cylinder" }) + { + var document = ModelDocument.Load(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "finite_volume_fuel_discharge_powertrain", name + " KPIs or replay failed."); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var row in report.Samples) + { + while (playback.TimeNanoseconds < row.TimeNs) Require(playback.Advance(Math.Min(257 * asset.Model.StepNanoseconds, row.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(value => value.Value == row.Values[value.Channel.ToString()])); + Near(V(row, 0, Field.EnergyResidual), 0, 4e-6); Near(V(row, 0, Field.MassResidual), 0, 1e-14); Near(V(row, 0, Field.FuelResidual), 0, 1e-14); + if (name == "pump-fed-finite-volume-cylinder") Near(V(row, 2, Field.Volume) + V(row, 16, Field.Volume), V(row, 10, Field.Volume), 1e-18); + } + if (name == "pump-fed-finite-volume-cylinder") + { + Require(V(report.Samples[^1], 17, Field.TotalFuelDelivered) > 1e-6 && V(report.Samples[^1], 15, Field.FuelBurned) > 1e-7); + Require(report.Samples.Any(row => V(row, 6, Field.Displacement) > .0001) && V(report.Samples[^1], 111, Field.TotalFuelDelivered) > 1e-5); + Console.WriteLine($"Pump/needle/discharge fired cylinder: fuel admitted {V(report.Samples[^1], 17, Field.TotalFuelDelivered):R} kg; burned {V(report.Samples[^1], 15, Field.FuelBurned):R} kg."); + } + } + } + private static void Sessions() + { + var capability = Data(AgentWorkspace.Capabilities()); Require(capability.GetProperty("fuel_discharge").GetProperty("phase_mode").GetString() == "frozen"); + Require(capability.GetProperty("readable_asset_formats").GetArrayLength() == AssetCodec.FormatVersion); + var example = Data(AgentWorkspace.ExampleModel("finite-volume-fuel-discharge")); var workspace = new AgentWorkspace(); + string parent = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!, child = Data(workspace.ForkSession(parent, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(child, "0", [new("100", 0)])); Data(workspace.StepSession(child, "1", "1000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("revision").GetString() == "0"); + Require(workspace.StepSession(child, "0", "1000000").Error?.Code == "revision_conflict"); + Data(workspace.StepSession(parent, "0", "1000000")); Require(Data(workspace.ReadSnapshot(parent)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(child)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(parent, "1")); Data(workspace.CloseSession(child, "2")); + var bad = JsonNode.Parse(example.GetRawText())!; var nozzle = bad["components"]!.AsArray().Single(c => c!["kind"]!.GetValue() == "fuel_discharge")!; + nozzle["parameters"]!["phase_mode"] = "equilibrium"; Throws(() => ModelDocument.Parse(bad.ToJsonString())); + foreach (JsonNode? mode in new JsonNode?[] { JsonValue.Create(1), JsonValue.Create(true), null }) + { + nozzle["parameters"]!["phase_mode"] = mode; + Throws(() => ModelDocument.Parse(bad.ToJsonString())); + using var malformed = JsonDocument.Parse(bad.ToJsonString()); + Require(AgentWorkspace.ValidateModel(malformed.RootElement).Error?.Code == "invalid_argument"); + Require(AgentWorkspace.ExportModelAsset(malformed.RootElement).Error?.Code == "invalid_argument"); + Require(workspace.CreateSession(malformed.RootElement).Error?.Code == "invalid_argument"); + } + nozzle["parameters"]!["phase_mode"] = "frozen"; nozzle["parameters"]!["wall_kinetic_fraction"]!["unit"] = "k"; + Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code == "model_unit"); + nozzle["parameters"]!["wall_kinetic_fraction"]!["unit"] = "fraction"; nozzle["parameters"]!["implicit_oem_nozzle"] = true; + Throws(() => ModelDocument.Parse(bad.ToJsonString())); + } +} diff --git a/tests/Power.Tests/FuelFilmAssetChecks.cs b/tests/Power.Tests/FuelFilmAssetChecks.cs index a053a32..6f92e25 100644 --- a/tests/Power.Tests/FuelFilmAssetChecks.cs +++ b/tests/Power.Tests/FuelFilmAssetChecks.cs @@ -22,18 +22,18 @@ private static void Compare(PowerAsset old,PowerAsset updated) } private static void Replay() { - var asset=Asset();byte[] bytes=AssetCodec.Encode(asset);var decoded=AssetCodec.Decode(bytes);Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==24&&decoded.Model.Fidelity=="finite_liquid_film_evaporation");Require(asset.Components.SequenceEqual(decoded.Components)&&bytes.SequenceEqual(AssetCodec.Encode(decoded)));Compare(asset,decoded); + var asset=Asset();byte[] bytes=AssetCodec.Encode(asset);var decoded=AssetCodec.Decode(bytes);Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==AssetCodec.FormatVersion&&decoded.Model.Fidelity=="finite_liquid_film_evaporation");Require(asset.Components.SequenceEqual(decoded.Components)&&bytes.SequenceEqual(AssetCodec.Encode(decoded)));Compare(asset,decoded); byte[] fixture=File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory,"Fixtures","metered-fired-cylinder-v17.powerasset"));Require(Convert.ToHexStringLower(SHA256.HashData(fixture))=="d51dc0968bc3d154b2c3b227f74b7210215d4ee00c5a47e8dd16dc1d71cd5da1"); var original=AssetCodec.Decode(fixture);Require(original.Model.Fingerprint.ToString("x16")=="099db1021c8df1fe"&&!original.Model.HasFuelFilms);Compare(original,AssetCodec.Decode(AssetCodec.Encode(original)));var final=original.CreatePlayback();Require(final.Advance(original.DurationNanoseconds)==SimulationStatus.Ok);AssetChecks.Reference(final,(16,Field.TotalFuelDelivered,28e-6,1e-15),(15,Field.HeatReleased,1228.918308706072,1e-6)); } private static void Corruption() { - var asset=Asset();byte[] source=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name),record=counts+140+44*asset.Nodes.Count+156*asset.Components.Count+24+40; + var asset=Asset();byte[] source=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name),record=counts+160+44*asset.Nodes.Count+156*asset.Components.Count+24+40; void Reject(byte[] data){SHA256.HashData(data.AsSpan(0,data.Length-32)).CopyTo(data,data.Length-32);Throws(()=>AssetCodec.Decode(data));} foreach(int count in new[]{-1,65,int.MaxValue}){var bad=source.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(counts+112),count);Reject(bad);} foreach(var change in new[]{(0,1),(12,(int)Unit.Joule),(60,(int)Unit.Kelvin)}){var bad=source.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(record+change.Item1),change.Item2);Reject(bad);} - var duplicate=source.Take(record+64).Concat(source.Skip(record).Take(64)).Concat(source.Skip(record+64)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts+112),2);Reject(duplicate); - var missing=source.Take(record).Concat(source.Skip(record+64)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts+112),0);Reject(missing); - var old=source.Take(counts+112).Concat(source.Skip(counts+140).Take(record-counts-140)).Concat(source.Skip(record+64)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(old.AsSpan(8),17);Reject(old); + var duplicate=source.Take(record+100).Concat(source.Skip(record).Take(100)).Concat(source.Skip(record+100)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts+112),2);Reject(duplicate); + var missing=source.Take(record).Concat(source.Skip(record+100)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts+112),0);Reject(missing); + var old=source.Take(counts+112).Concat(source.Skip(counts+160).Take(record-counts-160)).Concat(source.Skip(record+100)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(old.AsSpan(8),17);Reject(old); } } diff --git a/tests/Power.Tests/FuelInjectorAssetChecks.cs b/tests/Power.Tests/FuelInjectorAssetChecks.cs index 2293f79..f03ff4d 100644 --- a/tests/Power.Tests/FuelInjectorAssetChecks.cs +++ b/tests/Power.Tests/FuelInjectorAssetChecks.cs @@ -34,7 +34,7 @@ private static void Compare(PowerAsset original,PowerAsset updated) private static void Replay() { var asset=Asset();byte[] data=AssetCodec.Encode(asset);var decoded=AssetCodec.Decode(data); - Require(BinaryPrimitives.ReadInt32LittleEndian(data.AsSpan(8))==24&&decoded.Model.Fidelity=="cycle_fuel_metering"); + Require(BinaryPrimitives.ReadInt32LittleEndian(data.AsSpan(8))==AssetCodec.FormatVersion&&decoded.Model.Fidelity=="cycle_fuel_metering"); Require(asset.Components.SequenceEqual(decoded.Components)&&data.SequenceEqual(AssetCodec.Encode(decoded)));Compare(asset,decoded); byte[] fixture=File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory,"Fixtures","gas-accumulator-pump-v16.powerasset")); Require(Convert.ToHexStringLower(SHA256.HashData(fixture))=="72f0ee5b3180b763de091674565b2b8f2cbd61f80a3e4ab46e9694ad153a79c7"); @@ -44,12 +44,12 @@ private static void Replay() } private static void Corruption() { - var asset=Asset();byte[] source=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name),record=counts+140+44*asset.Nodes.Count+156*asset.Components.Count+24*2+36+40*2; + var asset=Asset();byte[] source=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name),record=counts+160+44*asset.Nodes.Count+156*asset.Components.Count+24*2+36+40*2; void Reject(byte[] data){SHA256.HashData(data.AsSpan(0,data.Length-32)).CopyTo(data,data.Length-32);Throws(()=>AssetCodec.Decode(data));} foreach(int count in new[]{-1,65,int.MaxValue}){var bad=source.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(counts+108),count);Reject(bad);} foreach(var change in new[]{(0,1),(4,2),(52,(int)Unit.Joule)}){var bad=source.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(record+change.Item1),change.Item2);Reject(bad);} var duplicate=source.Take(record+56).Concat(source.Skip(record).Take(56)).Concat(source.Skip(record+56)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts+108),2);Reject(duplicate); var missing=source.Take(record).Concat(source.Skip(record+56)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts+108),0);Reject(missing); - var downgraded=source.Take(counts+108).Concat(source.Skip(counts+140).Take(record-counts-140)).Concat(source.Skip(record+56)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8),16);Reject(downgraded); + var downgraded=source.Take(counts+108).Concat(source.Skip(counts+160).Take(record-counts-160)).Concat(source.Skip(record+56)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8),16);Reject(downgraded); } } diff --git a/tests/Power.Tests/FuelPhaseEquilibriumAssetChecks.cs b/tests/Power.Tests/FuelPhaseEquilibriumAssetChecks.cs new file mode 100644 index 0000000..b469875 --- /dev/null +++ b/tests/Power.Tests/FuelPhaseEquilibriumAssetChecks.cs @@ -0,0 +1,74 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelPhaseEquilibriumAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel phase asset / pressure interval and complete condensation replay / authentic v29", Replay), + ("fuel phase asset / malformed properties lengths ownership and forged downgrade", Corruption) + ]; + internal static int FilmOffset(PowerAsset asset, byte[] bytes) + { + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), offset = counts + 160; + foreach (var (index, size) in new (int, int)[] { (0,44),(1,156),(4,116),(5,24),(6,36),(7,72),(8,44),(9,40),(10,20), + (11,56),(12,28),(13,8),(14,20),(15,28),(16,40),(17,64),(18,32),(19,16),(20,80),(21,68),(22,80),(23,104),(24,40),(25,32),(26,56),(27,56) }) + offset += BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(counts + 4 * index)) * size; + return offset; + } + internal static byte[] Version29(PowerAsset asset, byte[] bytes) + { + if (BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) >= 31) bytes = TankPhaseAssetChecks.Version30(asset, bytes); + int count = asset.Components.Count(c => c.FuelFilm is not null), start = FilmOffset(asset, bytes); + var result = new List(bytes.Take(start)); + for (int i = 0; i < count; ++i) result.AddRange(bytes.Skip(start + 100 * i).Take(64)); + result.AddRange(bytes.Skip(start + 100 * count)); + var old = result.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(old.AsSpan(8), 29); Sign(old); return old; + } + private static void Sign(byte[] bytes) => SHA256.HashData(bytes.AsSpan(0, bytes.Length - 32)).CopyTo(bytes, bytes.Length - 32); + private static PowerAsset Asset() => PowerAsset.Create(FuelPhaseEquilibriumChecks.Model(wall: 250, vent: 1e-6), + "Fuel phase equilibrium", new string('c', 64), 400_000_000, 10_000_000, [new(200_000_000, 110, 0)], []); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong at = 0; at <= a.DurationNanoseconds; at += a.SampleEveryNanoseconds) + { + if (at > left.TimeNanoseconds) Require(left.Advance(at - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < at) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, at - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasEquilibriumFuelFilms); + Require(asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); + byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "vented-tank-liquid-cylinder-v29.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 29 && + Convert.ToHexStringLower(SHA256.HashData(fixture)) == "e7f48291b8c9817af7d2eec61b989854d5200130cd4a0987f42e49c21d36d16d"); + var old = AssetCodec.Decode(fixture); Require(!old.Model.HasEquilibriumFuelFilms && old.Model.Fingerprint.ToString("x16") == "3e1af7af1d0de7c7"); + var upgraded = AssetCodec.Encode(old); Require(Version29(old, upgraded).SequenceEqual(fixture)); Compare(old, AssetCodec.Decode(upgraded)); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); int offset = FilmOffset(asset, bytes); + void Reject(byte[] bad) { Sign(bad); Throws(() => AssetCodec.Decode(bad)); } + foreach (var (field, value) in new[] { (72, (int)Unit.Kelvin), (84, (int)Unit.Pascal), (96, (int)Unit.Kilogram) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(offset + field), value); Reject(bad); } + foreach (var (field, value) in new[] { (64, -1d), (76, 500d), (88, 1000d) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(bad.AsSpan(offset + field), value); Reject(bad); } + var absent = bytes.ToArray(); Array.Clear(absent, offset + 64, 12); Reject(absent); + Reject(Version29(asset, bytes)); + var truncated = bytes.Take(offset + 88).Concat(bytes.Skip(offset + 100)).ToArray(); Reject(truncated); + } +} diff --git a/tests/Power.Tests/FuelPhaseEquilibriumChecks.cs b/tests/Power.Tests/FuelPhaseEquilibriumChecks.cs new file mode 100644 index 0000000..46dc0fa --- /dev/null +++ b/tests/Power.Tests/FuelPhaseEquilibriumChecks.cs @@ -0,0 +1,336 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class FuelPhaseEquilibriumChecks +{ + private const double R = 287, Cv = R / .4, Cl = 2000, Reference = 350, Pressure = 30000, Latent = 300000; + private const double Offset = (Cv - Cl) * Reference - Latent; + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel phase / chemical-potential saturation reference and Clapeyron slope", Saturation), + ("fuel phase / independent entropy maximum / evaporation condensation and dry vapor", Flash), + ("fuel phase / finite wall energy and entropy / dry cooling and curve limits", FiniteBath), + ("fuel phase graph / reversible mass histories and complete ledgers", Closed), + ("fuel phase shared wall / equilibrium and legacy films retain independent histories", SharedWall), + ("fuel phase vent / independent simultaneous thermal and enthalpy ODE / refinement", Transport), + ("fuel phase moving chamber / independent equilibrium crank-work ODE / refinement", Moving), + ("fuel phase cavitation / inlet and rail saturation margins / complete rollback", Cavitation), + ("fuel phase transactions / condensation rollback cancellation forks and allocations", Transactions), + ("fuel phase contracts / property interval units ownership and immutable compilation", Contracts) + ]; + + internal static FuelPhaseEquilibriumDefinition Phase(double pressure = Pressure, double min = 200, double max = 550) => new() + { + ReferencePressure = new(pressure, Unit.Pascal), MinimumTemperature = new(min, Unit.Kelvin), MaximumTemperature = new(max, Unit.Kelvin) + }; + internal static FuelFilmDefinition Film(double liquid = .003) => new() + { + InitialMass = new(liquid, Unit.Kilogram), InitialTemperature = new(Reference, Unit.Kelvin), + LiquidSpecificHeat = new(Cl, Unit.JoulePerKilogramKelvin), SaturationTemperature = new(Reference, Unit.Kelvin), + LatentInternalEnergy = new(Latent, Unit.JoulePerKilogram), PhaseEquilibrium = Phase() + }; + private static GasDefinition Gas(double fraction = .3) => new() + { + GasConstant = new(R, Unit.JoulePerKilogramKelvin), Gamma = 1.4, + Premixed = new() { LowerHeatingValue = new(44e6, Unit.JoulePerKilogram), StoichiometricAirFuelRatio = 14.7, InitialFractions = new(fraction, 1 - fraction) } + }; + internal static ModelDefinition Model(ulong tick = 1_000_000, double wall = 430, double conductance = 1, double vent = 0) => new() + { + StepNanoseconds = tick, + Nodes = [NodeDefinition.Rotor(1, 1), NodeDefinition.GasVolume(2, .01, 100000, Reference) with { Gas = Gas() }, NodeDefinition.Thermal(3, 20, wall)], + Components = [ComponentDefinition.LiquidFilm(10, 2, 3, conductance, Film()), ComponentDefinition.Torque(11, 1, 100, 0), + ComponentDefinition.GasReservoir(12, 2, vent == 0 ? 1e-6 : vent, 1000, 350, .7, 110, vent == 0 ? 0 : 1) with { ReservoirFractions = new(0, 1) }] + }; + private static FuelPhaseEquilibrium Law(double conductance = 0) => new(new(Cl, Cv, Reference, Latent, conductance), R, Pressure, 200, 550); + private static void Step(Simulation s, ulong time) => Require(s.Step(time) == SimulationStatus.Ok, "Equilibrium step failed."); + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Ledgers(Simulation s) + { + Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 2e-14); + Near(Value(s, 0, Field.FuelResidual), 0, 2e-14); Near(Value(s, 0, Field.FreshAirResidual), 0, 2e-14); + } + private static double SaturationReference(double t) => Pressure * Math.Pow(t / Reference, (Cv + R - Cl) / R) * Math.Exp(Offset / R * (1 / t - 1 / Reference)); + + private static void Saturation() + { + var phase = Law(); Require(phase.TrySaturationPressure(Reference, out double reference)); Near(reference, Pressure, 0); + double prior = 0; + foreach (double t in new[] { 200d, 300d, 350d, 450d, 550d }) + { + Require(phase.TrySaturationPressure(t, out double p) && p > prior); prior = p; + Near(p, SaturationReference(t), 2e-9); + Near(phase.LatentEnthalpy(t), (Cv + R) * t - (Cl * t + Offset), 1e-9); + if (t == 200 || t == 550) continue; + Require(phase.TrySaturationPressure(t + .001, out double high)); Require(phase.TrySaturationPressure(t - .001, out double low)); + Near((Math.Log(high) - Math.Log(low)) / .002, ((Cv + R - Cl) * t - Offset) / (R * t * t), 1e-11); + } + var equalCp = new FuelPhaseEquilibrium(new(Cv + R, Cv, Reference, Latent, 0), R, Pressure, 200, 600); + Require(equalCp.TrySaturationPressure(420, out double constantLatent)); + Near(constantLatent, Pressure * Math.Exp((Latent + R * Reference) / R * (1 / Reference - 1.0 / 420)), 1e-9); + Require(!phase.TrySaturationPressure(199, out _) && !phase.TrySaturationPressure(551, out _)); + Throws(() => new FuelPhaseEquilibrium(new(Cl, Cv, Reference, Latent, 0), R, Pressure, 200, 1000)); + } + + private static double Entropy(double liquid, double liquidTemperature, double vapor, double carrier, double gasTemperature, double volume) + { + double entropy = liquid * Cl * Math.Log(liquidTemperature / Reference); + if (vapor > 0) entropy += vapor * ((Cv + R) * Math.Log(gasTemperature / Reference) - R * Math.Log(vapor * R * gasTemperature / volume / Pressure) + (Latent + R * Reference) / Reference); + if (carrier > 0) entropy += carrier * (Cv * Math.Log(gasTemperature / Reference) + R * Math.Log(volume * Pressure / (carrier * R * Reference))); + return entropy; + } + + // Independent fixed-U,V entropy maximization, with vapor mass as the optimization variable. + private static (double Vapor, double Temperature) EntropyMaximum(double energy, double fuel, double carrier, double volume) + { + double Temperature(double vapor) => (energy - (fuel - vapor) * Offset) / ((carrier + vapor) * Cv + (fuel - vapor) * Cl); + double Entropy(double vapor) + { + double t = Temperature(vapor), liquid = fuel - vapor; + if (t <= 0 || liquid > 0 && (t < 200 || t > 550)) return double.NegativeInfinity; + return FuelPhaseEquilibriumChecks.Entropy(liquid, t, vapor, carrier, t, volume); + } + double lo = 0, hi = fuel, ratio = (Math.Sqrt(5) - 1) / 2; + double a = hi - ratio * (hi - lo), b = lo + ratio * (hi - lo); + for (int i = 0; i < 100; ++i) + { + if (Entropy(a) < Entropy(b)) { lo = a; a = b; b = lo + ratio * (hi - lo); } + else { hi = b; b = a; a = hi - ratio * (hi - lo); } + } + double result = (lo + hi) / 2; + if (Entropy(fuel) >= Entropy(result)) result = fuel; + return (result, Temperature(result)); + } + + private static void Flash() + { + var law = Law(); + foreach (var (liquid, vapor, gasTemperature, liquidTemperature, carrier) in new[] + { + (.003, .001, 350d, 350d, .007), (.001, .005, 350d, 350d, .007), (0d, .005, 350d, 350d, .007), + (0d, .0001, 900d, 350d, .007), (.002, .002, 410d, 300d, .007), (.001, .005, 350d, 350d, 0d) + }) + { + const double volume = .01; + var state = law.CreateLiquidState(liquid, liquidTemperature); double gasEnergy = (vapor + carrier) * Cv * gasTemperature; + Require(law.TryAdvance(state, vapor, carrier, gasEnergy, volume, 350, 20, 0, out var result)); + var expected = EntropyMaximum(state.ThermalEnergyJoules + gasEnergy, liquid + vapor, carrier, volume); + Near(result.VaporMassKilograms, expected.Vapor, 3e-10); Near(result.TemperatureKelvin, expected.Temperature, 4e-5); + Near(result.Liquid.LiquidMassKilograms + result.VaporMassKilograms, liquid + vapor, 2e-18); + Near(result.Liquid.ThermalEnergyJoules + result.GasEnergyJoules, state.ThermalEnergyJoules + gasEnergy, 1e-10); + Near(result.HeatFromWallJoules, 0, 0); Near(result.WallTemperatureKelvin, 350, 0); + Require(Entropy(result.Liquid.LiquidMassKilograms, result.TemperatureKelvin, result.VaporMassKilograms, carrier, result.TemperatureKelvin, volume) >= + Entropy(liquid, liquidTemperature, vapor, carrier, gasTemperature, volume) - 1e-10, "Adiabatic flash decreased entropy."); + if (result.Liquid.LiquidMassKilograms > 0) + { Require(law.TrySaturationPressure(result.TemperatureKelvin, out double p)); Near(result.VaporMassKilograms * R * result.TemperatureKelvin / volume, p, 1e-8); } + } + } + + private static void FiniteBath() + { + var phase = Law(3); const double mass = .01, capacity = mass * Cv, wallCapacity = 20, wall = 250, gas = 450, dt = .1; + Require(phase.TryAdvance(new(0, 0), 0, mass, capacity * gas, .01, wall, wallCapacity, dt, out var result)); + double q = dt * 3 * (wall - gas) / (1 + dt * 3 * (1 / capacity + 1 / wallCapacity)); + Near(result.HeatFromWallJoules, q, 1e-12); Near(result.TemperatureKelvin, gas + q / capacity, 1e-12); + Near(result.GasEnergyJoules + wallCapacity * result.WallTemperatureKelvin, capacity * gas + wallCapacity * wall, 1e-10); + Require(!phase.TryAdvance(new(.001, -1e9), .001, mass, 100, .01, 250, 20, dt, out _)); + Require(!phase.TryAdvance(new(0, 1), .001, mass, 100, .01, 250, 20, dt, out _)); + Require(!phase.TryAdvance(new(0, 0), .1, mass, 1e9, .00001, 250, 20, dt, out _)); + foreach (double temperature in new[] { 200d, 550d }) + { + Require(phase.TryPoint(temperature, .02, .01, .01, out var point)); + var liquid = phase.CreateLiquidState(point.LiquidMassKilograms, temperature); + Require(phase.TryAdvance(liquid, point.VaporMassKilograms, .01, (.01 + point.VaporMassKilograms) * Cv * temperature, .01, temperature, 20, 0, out var edge)); + Near(edge.TemperatureKelvin, temperature, 1e-9); + } + Require(phase.TryPoint(Reference, .006, .007, .01, out var equilibrium)); + var wet = phase.CreateLiquidState(equilibrium.LiquidMassKilograms, Reference); + foreach (double bath in new[] { 250d, 350d, 500d }) + foreach (double interval in new[] { .001, 1d, 100d }) + { + double initialEntropy = Entropy(wet.LiquidMassKilograms, Reference, equilibrium.VaporMassKilograms, .007, Reference, .01) + 20 * Math.Log(bath / Reference); + Require(phase.TryAdvance(wet, equilibrium.VaporMassKilograms, .007, (.007 + equilibrium.VaporMassKilograms) * Cv * Reference, .01, bath, 20, interval, out var next)); + double entropy = Entropy(next.Liquid.LiquidMassKilograms, next.TemperatureKelvin, next.VaporMassKilograms, .007, next.TemperatureKelvin, .01) + 20 * Math.Log(next.WallTemperatureKelvin / Reference); + Require(entropy >= initialEntropy - 1e-10, "Finite-wall exchange decreased total entropy."); + } + } + + private static void Closed() + { + foreach (double wall in new[] { 250d, 430d }) + { + var s = CompiledModel.Compile(Model(wall: wall)).CreateSimulation(); double fuel = Value(s, 10, Field.Mass) + Value(s, 2, Field.FuelMass); + Step(s, 2_000_000_000); Ledgers(s); + double liquid = Value(s, 10, Field.Mass), vapor = Value(s, 2, Field.FuelMass), t = Value(s, 10, Field.Temperature); + Near(liquid + vapor, fuel, 1e-14); Near(t, Value(s, 2, Field.Temperature), 1e-8); + Require(liquid > 0); Near(Value(s, 10, Field.VaporPartialPressure), SaturationReference(t), 1e-7); + Near(.003 - liquid, Value(s, 10, Field.EvaporatedFuelMass) - Value(s, 10, Field.CondensedFuelMass), 1e-14); + Require(wall > Reference ? Value(s, 10, Field.MassFlow) > 0 : Value(s, 10, Field.MassFlow) < 0); + Require(wall > Reference ? Value(s, 10, Field.EvaporatedFuelMass) > 0 : Value(s, 10, Field.CondensedFuelMass) > 0); + } + } + + private static double[] Integrate(double[] initial, double duration, int steps, Action rates) + { + var state = initial.ToArray(); var stage = new double[state.Length]; var a = new double[state.Length]; + var b = new double[state.Length]; var c = new double[state.Length]; var d = new double[state.Length]; double h = duration / steps; + for (int n = 0; n < steps; ++n) + { + rates(state, a); for (int i = 0; i < state.Length; ++i) stage[i] = state[i] + h / 2 * a[i]; + rates(stage, b); for (int i = 0; i < state.Length; ++i) stage[i] = state[i] + h / 2 * b[i]; + rates(stage, c); for (int i = 0; i < state.Length; ++i) stage[i] = state[i] + h * c[i]; + rates(stage, d); for (int i = 0; i < state.Length; ++i) state[i] += h / 6 * (a[i] + 2 * b[i] + 2 * c[i] + d[i]); + } + return state; + } + private static void SharedWall() + { + foreach (bool equilibrium in new[] { false, true }) + { + var original = Model(); var second = FuelFilmChecks.Definition() with { PhaseEquilibrium = equilibrium ? Phase(100000, 200, 600) : null }; + var model = original with + { + Nodes = [..original.Nodes, NodeDefinition.GasVolume(4, .01, 100000, 300) with { Gas = Gas(0) }], + Components = [..original.Components, ComponentDefinition.LiquidFilm(14, 4, 3, .1, second)] + }; + var s = CompiledModel.Compile(model).CreateSimulation(); Step(s, 2_000_000_000); Ledgers(s); + double condensed = equilibrium ? Value(s, 14, Field.CondensedFuelMass) : 0; + Near(20e-6 - Value(s, 14, Field.Mass), Value(s, 14, Field.EvaporatedFuelMass) - condensed, 1e-14); + Near(.003 - Value(s, 10, Field.Mass), Value(s, 10, Field.EvaporatedFuelMass) - Value(s, 10, Field.CondensedFuelMass), 1e-14); + Require(s.Model.EquilibriumFilmCount == (equilibrium ? 2 : 1)); + } + } + private static (double Vapor, double Energy, double Capacity, double Latent) ReferencePoint(double t, double fuel, double carrier, double volume) + { + double vapor = Math.Min(fuel, SaturationReference(t) * volume / (R * t)), liquid = fuel - vapor, latent = (Cv - Cl) * t - Offset; + return (vapor, (carrier + vapor) * Cv * t + liquid * (Cl * t + Offset), + (carrier + vapor) * Cv + liquid * Cl + (liquid > 0 ? vapor * latent * latent / (R * t * t) : 0), latent); + } + private static void Transport() { TransportReference(430); TransportReference(250); } + private static void TransportReference(double wall) + { + const double volume = .01, area = 1e-5, duration = .4; + double mass = 1e5 * volume / (R * Reference), fuel = .003 + .3 * mass, carrier = .7 * mass; + double[] initial = [carrier, fuel, Reference, wall, 0, 0]; + void Rates(double[] state, double[] rate) + { + var point = ReferencePoint(state[2], state[1], state[0], volume); double gas = state[0] + point.Vapor; + Require(point.Vapor < state[1]); double pressure = gas * R * state[2] / volume; + Require(pressure > 2000); + double flow = .7 * area * pressure / Math.Sqrt(R * state[2]) * Math.Sqrt(1.4) * Math.Pow(2 / 2.4, 3); + double vaporFlow = flow * point.Vapor / gas, carrierFlow = flow - vaporFlow; + double heat = state[3] - state[2], liquidSpecific = Cl * state[2] + Offset; + rate[0] = -carrierFlow; rate[1] = -vaporFlow; + rate[2] = (heat - flow * (Cv + R) * state[2] + carrierFlow * Cv * state[2] + vaporFlow * liquidSpecific) / point.Capacity; + rate[3] = -heat / 20; + double netPhase = point.Vapor * point.Latent / (R * state[2] * state[2]) * rate[2] + vaporFlow; + rate[4] = Math.Max(0, netPhase); rate[5] = Math.Max(0, -netPhase); + } + var reference = Integrate(initial, duration, 4000, Rates); var finer = Integrate(initial, duration, 8000, Rates); + for (int i = 0; i < 6; ++i) Near(reference[i], finer[i], 1e-9); + double previous = 0; var errors = new List(); + foreach (ulong step in new ulong[] { 20_000_000, 10_000_000, 5_000_000, 2_500_000 }) + { + var s = CompiledModel.Compile(Model(step, wall: wall, vent: area)).CreateSimulation(); Step(s, 400_000_000); Ledgers(s); + double error = Math.Max(Math.Abs(Value(s, 2, Field.Temperature) - reference[2]) / 100, Math.Abs(Value(s, 10, Field.Mass) + Value(s, 2, Field.FuelMass) - reference[1]) / fuel); + error = Math.Max(error, Math.Abs(Value(s, 10, Field.EvaporatedFuelMass) - reference[4]) / fuel); + error = Math.Max(error, Math.Abs(Value(s, 10, Field.CondensedFuelMass) - reference[5]) / fuel); + if (previous > 0) Require(previous / error > 1.7 && previous / error < 2.3, $"Phase transport refinement: {previous:R} / {error:R}"); + previous = error; errors.Add(error); + } + Console.WriteLine($"Phase vent normalized errors ({wall:R} K wall): " + string.Join(", ", errors.Select(v => v.ToString("R")))); + } + + private static void Moving() + { + const double area = Math.PI * .086 * .086 / 4, radius = .043, rod = .143, duration = .02; + (double Volume, double Derivative) Geometry(double angle) + { + double sin = Math.Sin(angle), cos = Math.Cos(angle), root = Math.Sqrt(rod * rod - radius * radius * sin * sin); + return (area * .086 / 9 + area * (radius * (1 - cos) + rod - root), area * (radius * sin + radius * radius * sin * cos / root)); + } + double volume = Geometry(.5).Volume, mass = 1e5 * volume / (R * Reference), fuel = .00002 + .3 * mass, carrier = .7 * mass; + double[] initial = [.5, 20, Reference]; + void Rates(double[] state, double[] rate) + { + var geometry = Geometry(state[0]); var point = ReferencePoint(state[2], fuel, carrier, geometry.Volume); + double pressure = (carrier + point.Vapor) * R * state[2] / geometry.Volume; + rate[0] = state[1]; rate[1] = (pressure - 100000) * geometry.Derivative / .1; + rate[2] = -(pressure + (point.Vapor < fuel ? point.Vapor * point.Latent / geometry.Volume : 0)) * geometry.Derivative * state[1] / point.Capacity; + } + var reference = Integrate(initial, duration, 4000, Rates); var finer = Integrate(initial, duration, 8000, Rates); + for (int i = 0; i < 3; ++i) Near(reference[i], finer[i], 1e-9); + double previous = 0; var errors = new List(); + foreach (ulong step in new ulong[] { 500_000, 250_000, 125_000, 62_500 }) + { + var definition = new ModelDefinition + { + StepNanoseconds = step, + Nodes = [NodeDefinition.Rotor(1, .1, 20, .5), NodeDefinition.CylinderGas(2, 100000, Reference) with { Gas = Gas() }, NodeDefinition.Thermal(3, 20, Reference)], + Components = [ComponentDefinition.GasCylinder(10, 1, 2, MovingCylinderChecks.Geometry), ComponentDefinition.LiquidFilm(11, 2, 3, 0, Film(.00002))] + }; + var s = CompiledModel.Compile(definition).CreateSimulation(); Step(s, 20_000_000); Ledgers(s); + double error = Math.Max(Math.Abs(Value(s, 1, Field.Speed) - reference[1]) / 20, Math.Abs(Value(s, 2, Field.Temperature) - reference[2]) / Reference); + if (previous > 0) Require(previous / error > 1.7 && previous / error < 2.3, $"Phase crank refinement: {previous:R} / {error:R}"); + previous = error; errors.Add(error); + } + Console.WriteLine("Phase crank normalized errors: " + string.Join(", ", errors.Select(v => v.ToString("R")))); + } + + internal static ModelDefinition Supply(ulong tick = 50_000) => TankHeadspaceChecks.Model(tick) with + { + Components = TankHeadspaceChecks.Model(tick).Components.Select(c => c.FuelFilm is null ? c : + c with { FuelFilm = c.FuelFilm with { PhaseEquilibrium = Phase(100000, 200, 600) } }).ToArray() + }; + private static void Cavitation() + { + var definition = Supply(); var s = CompiledModel.Compile(definition).CreateSimulation(); + Step(s, 50_000_000); Ledgers(s); + Require(Value(s, 22, Field.CavitationMargin) > 0 && Value(s, 12, Field.CavitationMargin) > 0); + Near(Value(s, 22, Field.CavitationMargin), Value(s, 40, Field.Pressure) - Value(s, 22, Field.SaturationPressure), 1e-8); + Near(Value(s, 21, Field.CavitationMargin), Value(s, 22, Field.CavitationMargin), 0); + var before = Snapshot(s); Require(s.Step(250_000_000) == SimulationStatus.NumericalFailure && Snapshot(s) == before, "Cavitating batch was not rolled back."); + var invalid = definition with { Nodes = definition.Nodes.Select(n => n.Id == 40 ? NodeDefinition.CylinderGas(40, 1000, 300) : n).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var inlet) && inlet!.Field == "liquid_rail_feed.inlet_pressure"); + invalid = definition with { Components = definition.Components.Select(c => c.LiquidFuelInjector is null ? c : c with { LiquidFuelInjector = c.LiquidFuelInjector with { InitialPressure = new(1000, Unit.Pascal) } }).ToArray() }; + Require(!CompiledModel.TryCompile(invalid, out _, out var rail) && rail!.Field == "liquid_fuel_injector.initial_pressure"); + var saturated = definition with { Components = definition.Components.Select(c => c.LiquidFuelTank is null ? c : c with { LiquidFuelTank = c.LiquidFuelTank with { InitialTemperature = new(400, Unit.Kelvin) } }).ToArray() }; + var onset = CompiledModel.Compile(saturated).CreateSimulation(); Near(Value(onset, 22, Field.CavitationMargin), 0, 2e-8); + var atBoundary = Snapshot(onset); Require(onset.Step(saturated.StepNanoseconds) == SimulationStatus.NumericalFailure && Snapshot(onset) == atBoundary); + var below = saturated with { Nodes = saturated.Nodes.Select(n => n.Id == 40 ? NodeDefinition.CylinderGas(40, 100000 - .0001, 300) : n).ToArray() }; + Require(!CompiledModel.TryCompile(below, out _, out _), "Roundoff allowance admitted a resolved pressure deficit."); + } + + private static void Transactions() + { + var s = CompiledModel.Compile(Model(wall: 250, vent: 1e-6)).CreateSimulation(); Step(s, 20_000_000); var before = Snapshot(s); + Require(Value(s, 10, Field.CondensedFuelMass) > 0); + Require(s.Step(100_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(100_000_000, [new(before.TimeNanoseconds + 50_000_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var replay = s.Fork(); Step(s, 100_000_000); for (int i = 0; i < 10; ++i) Step(replay, 10_000_000); Require(Snapshot(s) == Snapshot(replay)); + var branch = s.Fork(); var original = Snapshot(s); Require(branch.SubmitInputs([new(110, 0)]) == SimulationStatus.Ok); Step(branch, 20_000_000); Require(Snapshot(s) == original); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 20; ++i) { Step(s, 1_000_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); for (int i = 0; i < 50; ++i) { Step(s, 1_000_000); s.ReadSnapshot(values); } + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Phase stepping allocated."); Ledgers(s); + } + + private static void Contracts() + { + var definition = Model(); var film = definition.Components[0]; + foreach (var phase in new[] { Phase(-1), Phase(Pressure, 400, 500), Phase(Pressure, 200, 1000), Phase() with { ReferencePressure = new(1, Unit.Kelvin) } }) + { + var invalid = definition with { Components = [film with { FuelFilm = film.FuelFilm! with { PhaseEquilibrium = phase } }, ..definition.Components.Skip(1)] }; + Require(!CompiledModel.TryCompile(invalid, out _, out _)); + } + Require(!CompiledModel.TryCompile(definition with { Components = [..definition.Components, ComponentDefinition.LiquidFilm(15, 2, 3, 1, FuelFilmChecks.Definition())] }, out _, out var duplicate) && duplicate!.Code == DiagnosticCode.Connection); + var compiled = CompiledModel.Compile(definition); definition.Components[0] = film with { FuelFilm = film.FuelFilm! with { PhaseEquilibrium = Phase(20000) } }; + Require(compiled.Fingerprint != CompiledModel.Compile(definition).Fingerprint); + var a = compiled.CreateSimulation(); var b = CompiledModel.Compile(Model()).CreateSimulation(); Step(a, 20_000_000); Step(b, 20_000_000); Require(Snapshot(a) == Snapshot(b)); + } +} diff --git a/tests/Power.Tests/FuelPhaseEquilibriumIntegrationChecks.cs b/tests/Power.Tests/FuelPhaseEquilibriumIntegrationChecks.cs new file mode 100644 index 0000000..19bfc76 --- /dev/null +++ b/tests/Power.Tests/FuelPhaseEquilibriumIntegrationChecks.cs @@ -0,0 +1,81 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelPhaseEquilibriumIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("equilibrium fuel cell / bidirectional phase evidence / every portable boundary", Cell), + ("equilibrium injected engine / vapor-only burn supply margins and full ledgers", Engine), + ("equilibrium fuel agent / strict properties units ownership revision and branches", Sessions) + ]; + private static string Source(string name) => File.ReadAllText(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); + private static double V(SampleReport row, uint id, Field field) => row.Values[Channels.Output(id, field).ToString()]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static ExperimentReport Check(string name) + { + var document = ModelDocument.Parse(Source(name)); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "equilibrium_liquid_fuel_powertrain"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var row in report.Samples) + { + while (playback.TimeNanoseconds < row.TimeNs) Require(playback.Advance(Math.Min(257 * asset.Model.StepNanoseconds, row.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(v => v.Value == row.Values[v.Channel.ToString()])); + Near(V(row, 0, Field.EnergyResidual), 0, 1e-6); Near(V(row, 0, Field.MassResidual), 0, 1e-13); + Near(V(row, 0, Field.FuelResidual), 0, 1e-13); Near(V(row, 0, Field.FreshAirResidual), 0, 1e-13); + } + return report; + } + private static void Cell() + { + var report = Check("equilibrium-fuel-cell"); var final = report.Samples[^1]; + Require(V(final, 10, Field.EvaporatedFuelMass) > 0 && V(final, 10, Field.CondensedFuelMass) > 0); + Require(report.Samples.Any(row => V(row, 10, Field.MassFlow) > 0) && report.Samples.Any(row => V(row, 10, Field.MassFlow) < 0)); + foreach (var row in report.Samples) + { + Near(.003 - V(row, 10, Field.Mass), V(row, 10, Field.EvaporatedFuelMass) - V(row, 10, Field.CondensedFuelMass), 1e-14); + Near(V(row, 10, Field.Temperature), V(row, 2, Field.Temperature), 1e-8); + } + } + private static void Engine() + { + var report = Check("equilibrium-injected-cylinder"); Require(V(report.Samples[^1], 15, Field.HeatReleased) > 300); + foreach (var row in report.Samples) + { + Near(V(row, 16, Field.Mass) + V(row, 16, Field.EvaporatedFuelMass) - V(row, 16, Field.CondensedFuelMass), V(row, 17, Field.TotalFuelDelivered), 1e-14); + Require(V(row, 17, Field.CavitationMargin) >= 0 && V(row, 1513, Field.CavitationMargin) >= 0); + Near(V(row, 1513, Field.CavitationMargin), V(row, 1513, Field.Pressure) - V(row, 1513, Field.SaturationPressure), 1e-8); + Near(V(row, 0, Field.HydraulicVolumeResidual), 0, 1e-14); + } + } + private static void Sessions() + { + var workspace = new AgentWorkspace(); var example = Data(AgentWorkspace.ExampleModel("equilibrium-fuel-cell")); + var contract = Data(AgentWorkspace.Capabilities()).GetProperty("fuel_film").GetProperty("phase_equilibrium"); + Require(contract.GetProperty("required_parameters").EnumerateArray().Any(item => item.GetString() == "reference_pressure")); + string id = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!; + string fork = Data(workspace.ForkSession(id, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(fork, "0", [new("960", 1)])); + Require(!workspace.StepSession(fork, "0", "10000000").Ok); + Data(workspace.StepSession(fork, "1", "10000000")); + Require(Data(workspace.ReadSnapshot(id)).GetProperty("revision").GetString() == "0"); + Data(workspace.StepSession(id, "0", "10000000")); + Require(Data(workspace.ReadSnapshot(id)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(fork)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(fork, "2")); Data(workspace.CloseSession(id, "1")); + var bad = workspace.CreateSession(JsonDocument.Parse(example.GetRawText().Replace("\"reference_pressure\":", "\"reference_pressure_typo\":")).RootElement); + Require(!bad.Ok && bad.Error?.Code == "invalid_argument"); + var document = ModelDocument.Parse(Source("equilibrium-fuel-cell")); var components = document.Model.Components.ToArray(); int index = Array.FindIndex(components, c => c.Kind == ComponentKind.FuelFilm); + components[index] = components[index] with { FuelFilm = components[index].FuelFilm! with { PhaseEquilibrium = components[index].FuelFilm!.PhaseEquilibrium! with { ReferencePressure = new(30000, Unit.Kelvin) } } }; + Require(!CompiledModel.TryCompile(document.Model with { Components = components }, out _, out var error) && error!.Code == DiagnosticCode.Unit && error.Field == "fuel_film.phase_equilibrium.reference_pressure"); + } +} diff --git a/tests/Power.Tests/FuelPipeAssetChecks.cs b/tests/Power.Tests/FuelPipeAssetChecks.cs new file mode 100644 index 0000000..ec7ee33 --- /dev/null +++ b/tests/Power.Tests/FuelPipeAssetChecks.cs @@ -0,0 +1,54 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelPipeAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel pipe asset / own thermal kinetic and directional histories / authentic v34 replay", Replay), + ("fuel pipe asset / inferred bounded record geometry units phase and downgrade rejection", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(FuelPipeChecks.Model(), "Inertial liquid fuel", new string('b', 64), 20_000_000, 1_000_000, [], []); + private static void Sign(byte[] bytes) => SHA256.HashData(bytes.AsSpan(0, bytes.Length - 32)).CopyTo(bytes, bytes.Length - 32); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong time = 0; time <= a.DurationNanoseconds; time += a.SampleEveryNanoseconds) + { + if (time > left.TimeNanoseconds) Require(left.Advance(time - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < time) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, time - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); + Require(decoded.Model.HasFuelPipes && asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "pump-fed-finite-volume-cylinder-v34.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 34 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "51c0f51ef6ff0db9d84d952793da0fe2592f855f12302a96774294193d02b587"); + var old = AssetCodec.Decode(fixture); Require(!old.Model.HasFuelPipes && old.Model.HasFuelDischarge && old.Model.Fingerprint.ToString("x16") == "e4225e412bfa9802"); + var upgraded = AssetCodec.Encode(old); var back = upgraded.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(back.AsSpan(8), 34); Sign(back); Require(back.SequenceEqual(fixture)); + Compare(old, AssetCodec.Decode(upgraded)); + } + private static void Corruption() + { + var bytes = AssetCodec.Encode(Asset()); int record = bytes.Length - 32 - 88; + void Reject(byte[] data) { Sign(data); Throws(() => AssetCodec.Decode(data)); } + foreach (int index in new[] { -1, 1, int.MaxValue }) { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(record), index); Reject(bad); } + foreach (int offset in new[] { 12, 24, 36, 48, 60, 72, 84 }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(record + offset), int.MaxValue); Reject(bad); } + foreach (var (offset, value) in new[] { (4, 0d), (16, -1d), (28, -1d), (40, double.NaN), (64, 900d), (76, 1.1) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(bad.AsSpan(record + offset), value); Reject(bad); } + var downgrade = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 34); Reject(downgrade); + Reject(bytes.Take(record).Concat(bytes.Skip(record + 88)).ToArray()); + } +} diff --git a/tests/Power.Tests/FuelPipeChecks.cs b/tests/Power.Tests/FuelPipeChecks.cs new file mode 100644 index 0000000..223c90e --- /dev/null +++ b/tests/Power.Tests/FuelPipeChecks.cs @@ -0,0 +1,143 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class FuelPipeChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel pipe / own liquid caloric chemical and kinetic inventories / finite wall", Inventories), + ("fuel pipe / independent finite-compliance harmonic momentum / first-order refinement", Harmonic), + ("fuel pipe / independent nonlinear momentum and three-temperature RK4 / refinement", Reference), + ("fuel pipe / physical reversal gross directional volumes and pair entropy", Reversal), + ("fuel pipe / complete forks cancellation late rollback batching and zero allocations", Transactions), + ("fuel pipe / speculative clutch interval histories / complete batching", Clutch), + ("fuel pipe / liquid-only material geometry and heat-port contracts", Contracts) + ]; + internal static EquilibriumFuelDefinition Material => EquilibriumFuelNetworkChecks.Material with { Compliance = new(5e-12, Unit.CubicMeterPerPascal) }; + internal static FuelInertialPipeDefinition Definition(double linear = 1e10, double quadratic = 1e16, double fraction = .5) => new() + { + Length = new(.1, Unit.Meter), Area = new(1e-8, Unit.SquareMeter), LinearResistance = new(linear, Unit.PascalSecondPerCubicMeter), + QuadraticResistance = new(quadratic, Unit.PascalSecondSquaredPerCubicMeterSquared), InitialFlow = new(0, Unit.CubicMeterPerSecond), + InitialTemperature = new(310, Unit.Kelvin), FluidHeatFraction = new(fraction, Unit.Fraction) + }; + internal static ModelDefinition Model(ulong tick = 100_000, double linear = 1e10, double quadratic = 1e16, double fraction = .5, bool sameTemperature = false) => new() + { + StepNanoseconds = tick, + Nodes = [NodeDefinition.FuelVolume(1, 1e-5, 750 * (1e-5 + 5e-12 * 6e5), sameTemperature ? 300 : 320, Material), + NodeDefinition.FuelVolume(2, 1e-5, 750 * (1e-5 + 5e-12 * 4e5), 300, Material), NodeDefinition.Thermal(3, 1, 300)], + Components = [ComponentDefinition.InertialFuelPipe(10, 1, 2, 3, Definition(linear, quadratic, fraction) with { InitialTemperature = new(sameTemperature ? 300 : 310, Unit.Kelvin) })] + }; + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Step(Simulation s, ulong ns) + { if (s.Step(ns) != SimulationStatus.Ok) throw new InvalidOperationException("Inertial pipe step failed at " + Snapshot(s).TimeNanoseconds); } + private static void Balance(Simulation s) { Near(Value(s, 0, Field.EnergyResidual), 0, 3e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); } + private static void Inventories() + { + foreach (double fraction in new[] { 0d, .5, 1d }) + { + var s = CompiledModel.Compile(Model(fraction: fraction)).CreateSimulation(); + double energyA = Value(s, 1, Field.InternalEnergy), energyB = Value(s, 2, Field.InternalEnergy), energyLine = Value(s, 10, Field.InternalEnergy), sourceMass = Value(s, 1, Field.Mass); + Near(Value(s, 10, Field.Mass), 7.5e-7, 1e-21); Near(Value(s, 10, Field.ChemicalEnergy), 7.5e-7 * 44e6, 1e-12); + Step(s, 20_000_000); Balance(s); + Near(energyA - Value(s, 1, Field.InternalEnergy), Value(s, 10, Field.EnergyAtA), 2e-11); + Near(Value(s, 2, Field.InternalEnergy) - energyB, Value(s, 10, Field.EnergyAtB), 2e-11); + Near(Value(s, 10, Field.InternalEnergy) - energyLine, Value(s, 10, Field.EnergyAtA) - Value(s, 10, Field.EnergyAtB) - Value(s, 10, Field.HydraulicWork) + Value(s, 10, Field.FluidHeat), 2e-11); + Near(Value(s, 10, Field.KineticEnergy), Value(s, 10, Field.HydraulicWork) - Value(s, 10, Field.FrictionHeat), 2e-11); + Near(Value(s, 10, Field.FluidHeat), fraction * Value(s, 10, Field.FrictionHeat), 2e-12); + Near(Value(s, 3, Field.Temperature) - 300, Value(s, 10, Field.HeatRejected), 2e-12); + Near(sourceMass - Value(s, 1, Field.Mass), Value(s, 10, Field.TotalFuelDelivered), 1e-16); + Require(Value(s, 10, Field.EntropyProduced) >= 0 && Value(s, 10, Field.Temperature) > 310); + } + } + private static void Harmonic() + { + const double inertia = 7.5e9, slope = 4e11, duration = .1; double omega = Math.Sqrt(slope / inertia); + double exact = 2e5 / (inertia * omega) * Math.Sin(omega * duration); var errors = new List(); + foreach (ulong tick in new ulong[] { 2_000_000, 1_000_000, 500_000, 250_000 }) + { + var s = CompiledModel.Compile(Model(tick, 0, 0, sameTemperature: true)).CreateSimulation(); Step(s, 100_000_000); Balance(s); + errors.Add(Math.Abs(Value(s, 10, Field.VolumeFlow) - exact) / exact); + Require(Value(s, 10, Field.FrictionHeat) == 0 && Value(s, 10, Field.EntropyProduced) > 0); + } + Console.WriteLine("Fuel pipe finite-compliance harmonic normalized errors: " + string.Join(", ", errors.Select(x => x.ToString("R")))); + for (int n = 1; n < errors.Count; ++n) Require(errors[n - 1] / errors[n] is > 1.8 and < 2.2); + } + private static void Reference() + { + double[] Integrate(int count) + { + double[] x = [6e5, 4e5, 0, 320, 300, 310, 300, 0], a = new double[8], b = new double[8], c = new double[8], d = new double[8], stage = new double[8]; double h = .02 / count; + void Rate(double[] y, double[] rate) + { + double q = y[2], mass = 750 * Math.Abs(q), friction = 1e10 * q * q + 1e16 * Math.Abs(q * q * q); + rate[0] = -q / 5e-12; rate[1] = q / 5e-12; rate[2] = (y[0] - y[1] - 1e10 * q - 1e16 * q * Math.Abs(q)) / 7.5e9; + rate[3] = q >= 0 ? 0 : mass / (750 * (1e-5 + 5e-12 * y[0])) * (y[5] - y[3]); + rate[4] = q <= 0 ? 0 : mass / (750 * (1e-5 + 5e-12 * y[1])) * (y[5] - y[4]); + rate[5] = mass / 7.5e-7 * ((q >= 0 ? y[3] : y[4]) - y[5]) + .5 * friction / (7.5e-7 * 2000); + rate[6] = .5 * friction; rate[7] = friction; + } + for (int n = 0; n < count; ++n) + { + Rate(x, a); for (int j = 0; j < 8; ++j) stage[j] = x[j] + h * a[j] / 2; Rate(stage, b); + for (int j = 0; j < 8; ++j) stage[j] = x[j] + h * b[j] / 2; Rate(stage, c); + for (int j = 0; j < 8; ++j) stage[j] = x[j] + h * c[j]; Rate(stage, d); + for (int j = 0; j < 8; ++j) x[j] += h / 6 * (a[j] + 2 * b[j] + 2 * c[j] + d[j]); + } + return x; + } + var reference = Integrate(10000); var finer = Integrate(20000); for (int j = 0; j < 8; ++j) Near(reference[j], finer[j], j < 2 ? 1e-7 : 1e-10); + var errors = new List(); + foreach (ulong tick in new ulong[] { 200_000, 100_000, 50_000, 25_000 }) + { + var s = CompiledModel.Compile(Model(tick)).CreateSimulation(); Step(s, 20_000_000); Balance(s); + double[] values = [Value(s, 1, Field.Pressure), Value(s, 2, Field.Pressure), Value(s, 10, Field.VolumeFlow), Value(s, 1, Field.Temperature), Value(s, 2, Field.Temperature), Value(s, 10, Field.Temperature), Value(s, 3, Field.Temperature), Value(s, 10, Field.FrictionHeat)]; + double error = 0; for (int j = 0; j < 8; ++j) error = Math.Max(error, Math.Abs(values[j] - reference[j]) / (j < 2 ? 6e5 : j == 2 ? 1e-6 : j == 7 ? .01 : 320)); errors.Add(error); + } + Console.WriteLine("Fuel pipe nonlinear thermal RK4 normalized errors: " + string.Join(", ", errors.Select(x => x.ToString("R")))); + for (int n = 1; n < errors.Count; ++n) Require(errors[n - 1] / errors[n] is > 1.7 and < 2.3); + } + private static void Reversal() + { + var s = CompiledModel.Compile(Model(100_000, 0, 0, sameTemperature: true)).CreateSimulation(); + double entropy = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy); + Step(s, 600_000_000); Balance(s); + Require(Value(s, 10, Field.ForwardVolume) > 0 && Value(s, 10, Field.ReverseVolume) > 0 && Value(s, 10, Field.VolumeFlow) < 0); + double lineT = Value(s, 10, Field.Temperature), totalEntropy = Value(s, 1, Field.Entropy) + Value(s, 2, Field.Entropy) + 7.5e-7 * 2000 * Math.Log(lineT / 300); + Near(totalEntropy - entropy, Value(s, 10, Field.EntropyProduced), 2e-10); + Near(Value(s, 10, Field.FrictionHeat), 0, 0); + } + private static void Transactions() + { + var definition = Model(); definition = definition with { Nodes = [..definition.Nodes, NodeDefinition.Rotor(4, .1)], Components = [..definition.Components, ComponentDefinition.Torque(20, 4, 100, 0)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); var replay = s.Fork(); Step(s, 10_000_000); for (int i = 0; i < 100; ++i) Step(replay, 100_000); Require(Snapshot(s) == Snapshot(replay)); + var before = Snapshot(s); Require(s.Step(1_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(1_000_000, [new(before.TimeNanoseconds + 500_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var branch = s.Fork(); Step(branch, 1_000_000); Require(Snapshot(s) == before); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 20; ++i) { Step(s, 100_000); s.ReadSnapshot(values); } + long allocation = GC.GetAllocatedBytesForCurrentThread(); for (int i = 0; i < 20; ++i) { Step(s, 100_000); s.ReadSnapshot(values); } + Require(GC.GetAllocatedBytesForCurrentThread() == allocation); + } + private static void Clutch() + { + var definition = Model(); definition = definition with { Nodes = [..definition.Nodes, NodeDefinition.Rotor(4, .1, .01), NodeDefinition.Rotor(5, .1)], + Components = [..definition.Components, ComponentDefinition.Clutch(20, 4, 5, 1, 1, 100, 1, heat: 3)] }; + var s = CompiledModel.Compile(definition).CreateSimulation(); var replay = s.Fork(); Step(s, 2_000_000); for (int i = 0; i < 20; ++i) Step(replay, 100_000); Require(Snapshot(s) == Snapshot(replay)); Balance(s); + } + private static void Contracts() + { + var definition = Model(); + var bad = definition with { Components = [definition.Components[0] with { FuelPipe = Definition() with { Length = new(.1, Unit.Kelvin) } }] }; + Require(!CompiledModel.TryCompile(bad, out _, out var diagnostic) && diagnostic!.Code == DiagnosticCode.Unit); + bad = definition with { Components = [definition.Components[0] with { HeatNode = 0 }] }; Require(!CompiledModel.TryCompile(bad, out _, out _)); + bad = definition with { Nodes = definition.Nodes.Select(n => n.Id == 1 ? n with { Fuel = Material with { LiquidSpecificHeat = new(2100, Unit.JoulePerKilogramKelvin) } } : n).ToArray() }; Require(!CompiledModel.TryCompile(bad, out _, out _)); + bad = definition with { Nodes = definition.Nodes.Select(n => n.Id == 1 ? n with { Position = new(.0001, Unit.Kilogram) } : n).ToArray() }; Require(!CompiledModel.TryCompile(bad, out _, out _)); + var unresolved = CompiledModel.Compile(Model(200_000_000)).CreateSimulation(); var before = Snapshot(unresolved); Require(unresolved.Step(200_000_000) == SimulationStatus.NumericalFailure && Snapshot(unresolved) == before); + } +} diff --git a/tests/Power.Tests/FuelPipeIntegrationChecks.cs b/tests/Power.Tests/FuelPipeIntegrationChecks.cs new file mode 100644 index 0000000..ac40457 --- /dev/null +++ b/tests/Power.Tests/FuelPipeIntegrationChecks.cs @@ -0,0 +1,59 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class FuelPipeIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("fuel pipe documents / finite thermal line and actual pump needle fired cylinder / every portable boundary", Documents), + ("fuel pipe agent / no direct opening liquid-only units and independent inlet branch", Sessions) + ]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static double V(SampleReport sample, uint id, Field field) => sample.Values[Channels.Output(id, field).ToString()]; + private static void Documents() + { + foreach (string name in new[] { "inertial-fuel-line", "inertial-pump-fed-cylinder" }) + { + var document = ModelDocument.Load(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "liquid_inertial_fuel_network"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var playback = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + foreach (var sample in report.Samples) + { + while (playback.TimeNanoseconds < sample.TimeNs) Require(playback.Advance(Math.Min(257 * asset.Model.StepNanoseconds, sample.TimeNs - playback.TimeNanoseconds)) == SimulationStatus.Ok); + Require(playback.ReadSnapshot(values).StateHash.ToString("x16") == sample.StateHash && values.All(v => v.Value == sample.Values[v.Channel.ToString()])); + Near(V(sample, 0, Field.EnergyResidual), 0, 4e-6); Near(V(sample, 0, Field.MassResidual), 0, 1e-14); Near(V(sample, 0, Field.FuelResidual), 0, 1e-14); + } + uint pipe = name == "inertial-fuel-line" ? 10u : 116u; var final = report.Samples[^1]; + Require(V(final, pipe, Field.FrictionHeat) > 0 && V(final, pipe, Field.EntropyProduced) > 0 && V(final, pipe, Field.ForwardVolume) > 0); + if (name == "inertial-fuel-line") Require(V(final, pipe, Field.ReverseVolume) > 1e-9); + else Require(V(final, 17, Field.TotalFuelDelivered) > 1e-6 && V(final, 15, Field.FuelBurned) > 1e-7 && V(final, 112, Field.HydraulicWork) > 0); + } + } + private static void Sessions() + { + var capability = Data(AgentWorkspace.Capabilities()); Require(capability.GetProperty("fuel_inertial_pipe").GetProperty("component").GetString() == "fuel_inertial_pipe"); + var example = Data(AgentWorkspace.ExampleModel("inertial-fuel-line")); var workspace = new AgentWorkspace(); + string parent = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!, child = Data(workspace.ForkSession(parent, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(child, "0", [new("100", 1)])); Data(workspace.StepSession(child, "1", "10000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("revision").GetString() == "0"); Data(workspace.StepSession(parent, "0", "10000000")); + Require(Data(workspace.ReadSnapshot(parent)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(child)).GetProperty("state_hash").GetString()); + Require(workspace.StepSession(child, "0", "1000000").Error?.Code == "revision_conflict"); Data(workspace.CloseSession(parent, "1")); Data(workspace.CloseSession(child, "2")); + var bad = JsonNode.Parse(example.GetRawText())!; var pipe = bad["components"]!.AsArray().Single(c => c!["kind"]!.GetValue() == "fuel_inertial_pipe")!; + pipe["parameters"]!["linear_resistance"]!["unit"] = "k"; Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code == "model_unit"); + pipe["parameters"]!["linear_resistance"]!["unit"] = "pa_s_m3"; pipe["initial_input"] = new JsonObject { ["value"] = 0, ["unit"] = "fraction" }; + Throws(() => ModelDocument.Parse(bad.ToJsonString())); pipe.AsObject().Remove("initial_input"); + foreach (JsonNode? invalid in new JsonNode?[] { JsonValue.Create(1), JsonValue.Create(true), null }) + { pipe["parameters"]!["fluid_heat_fraction"] = invalid; Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); } + } +} diff --git a/tests/Power.Tests/GasAssetChecks.cs b/tests/Power.Tests/GasAssetChecks.cs index 20d482d..243df74 100644 --- a/tests/Power.Tests/GasAssetChecks.cs +++ b/tests/Power.Tests/GasAssetChecks.cs @@ -41,7 +41,7 @@ private static PowerAsset Sample() => PowerAsset.Create(new() private static void RoundTrip() { var asset = Sample(); var bytes = AssetCodec.Encode(asset); var restored = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(restored.Nodes.SequenceEqual(asset.Nodes) && restored.Components.SequenceEqual(asset.Components)); Require(restored.SourceSha256 == asset.SourceSha256 && restored.Inputs.SequenceEqual(asset.Inputs) && restored.Checks.SequenceEqual(asset.Checks)); Require(restored.Model.Fingerprint == asset.Model.Fingerprint && AssetCodec.Encode(restored).SequenceEqual(bytes)); @@ -64,7 +64,7 @@ private static void Corruption() { var asset = Sample(); byte[] source = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int tables = counts + 140; + int tables = counts + 160; int gasExtensions = tables + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 116; int orificeExtensions = gasExtensions + 24 * 2; void RejectInt(int offset, int value) diff --git a/tests/Power.Tests/GasIntegrationChecks.cs b/tests/Power.Tests/GasIntegrationChecks.cs index b12dce3..3baf75e 100644 --- a/tests/Power.Tests/GasIntegrationChecks.cs +++ b/tests/Power.Tests/GasIntegrationChecks.cs @@ -97,7 +97,7 @@ private static void Agent() { var capabilities = Data(AgentWorkspace.Capabilities()); Require(capabilities.GetProperty("domains").EnumerateArray().Any(d => d.GetString() == "gas")); - Require(capabilities.GetProperty("asset_format").GetString() == "power.asset.v24" && capabilities.GetProperty("readable_asset_formats").GetArrayLength() == 24); + Require(capabilities.GetProperty("asset_format").GetString() == AssetCodec.FormatName && capabilities.GetProperty("readable_asset_formats").GetArrayLength() == AssetCodec.FormatVersion); var example = Data(AgentWorkspace.ExampleModel("gas-network")); Require(JsonNode.DeepEquals(JsonNode.Parse(example.GetRawText()), JsonNode.Parse(Source))); var workspace = new AgentWorkspace(); diff --git a/tests/Power.Tests/GasPistonAssetChecks.cs b/tests/Power.Tests/GasPistonAssetChecks.cs index 85b1224..8604a78 100644 --- a/tests/Power.Tests/GasPistonAssetChecks.cs +++ b/tests/Power.Tests/GasPistonAssetChecks.cs @@ -36,7 +36,7 @@ private static void Compare(PowerAsset old, PowerAsset updated) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Model.Fidelity == "linear_gas_actuation"); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.Fidelity == "linear_gas_actuation"); Require(asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "spool-regulated-pump-v15.powerasset")); Require(Convert.ToHexStringLower(SHA256.HashData(fixture)) == "67b976a27ca0bd7343ca6b024c5bc736e14f48326945da841785ade43b61f14b"); @@ -48,13 +48,13 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] source = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), record = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), record = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24; void Reject(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); Throws(() => AssetCodec.Decode(data)); } foreach (int count in new[] { -1, 65, int.MaxValue }) { var bad = source.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(counts + 104), count); Reject(bad); } foreach (var replacement in new[] { (0, 1), (4, 0), (16, (int)Unit.Meter), (28, (int)Unit.Kilogram) }) { var bad = source.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(record + replacement.Item1), replacement.Item2); Reject(bad); } var duplicate = source.Take(record + 56).Concat(source.Skip(record).Take(56)).Concat(source.Skip(record + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 104), 2); Reject(duplicate); var missing = source.Take(record).Concat(source.Skip(record + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 104), 0); Reject(missing); - var downgraded = source.Take(counts + 104).Concat(source.Skip(counts + 140).Take(record - counts - 140)).Concat(source.Skip(record + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 15); Reject(downgraded); + var downgraded = source.Take(counts + 104).Concat(source.Skip(counts + 160).Take(record - counts - 160)).Concat(source.Skip(record + 56)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 15); Reject(downgraded); } } diff --git a/tests/Power.Tests/GearAssetChecks.cs b/tests/Power.Tests/GearAssetChecks.cs index 2142373..13be119 100644 --- a/tests/Power.Tests/GearAssetChecks.cs +++ b/tests/Power.Tests/GearAssetChecks.cs @@ -28,7 +28,7 @@ private static PowerAsset Asset() private static void Replay() { var original = Asset(); var bytes = AssetCodec.Encode(original); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(decoded.Components.SequenceEqual(original.Components) && decoded.Model.Fingerprint == original.Model.Fingerprint); Require(AssetCodec.Encode(decoded).SequenceEqual(bytes)); var a = original.CreatePlayback(); var b = decoded.CreatePlayback(); var values = new Scalar[a.Model.OutputCount]; @@ -57,7 +57,7 @@ private static void Corruption() { var asset = Asset(); var bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int extension = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count; + int extension = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); @@ -73,7 +73,7 @@ void Change(int offset, int value) BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 52), 1); Reject(missing); var duplicate = bytes.Take(extension + 8).Concat(bytes.Skip(extension).Take(8)).Concat(bytes.Skip(extension + 8)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 52), 3); Reject(duplicate); - var downgraded = bytes.Take(counts + 52).Concat(bytes.Skip(counts + 140).Take(extension - counts - 140)).Concat(bytes.Skip(extension + 16)).ToArray(); + var downgraded = bytes.Take(counts + 52).Concat(bytes.Skip(counts + 160).Take(extension - counts - 160)).Concat(bytes.Skip(extension + 16)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 7); Reject(downgraded); } } diff --git a/tests/Power.Tests/GearIntegrationChecks.cs b/tests/Power.Tests/GearIntegrationChecks.cs index 86c4d91..ba8107d 100644 --- a/tests/Power.Tests/GearIntegrationChecks.cs +++ b/tests/Power.Tests/GearIntegrationChecks.cs @@ -83,7 +83,7 @@ void Reject(Action mutate, string code) Require(JsonNode.DeepEquals(JsonNode.Parse(Source), JsonNode.Parse(example.GetRawText()))); var capabilities = Data(AgentWorkspace.Capabilities()); Require(capabilities.GetProperty("gears").GetProperty("initial_speed_policy").GetString() == "require_compatible_no_impulse"); - Require(capabilities.GetProperty("asset_format").GetString() == "power.asset.v24" && capabilities.GetProperty("readable_asset_formats").GetArrayLength() == 24); + Require(capabilities.GetProperty("asset_format").GetString() == AssetCodec.FormatName && capabilities.GetProperty("readable_asset_formats").GetArrayLength() == AssetCodec.FormatVersion); var workspace = new AgentWorkspace(); var created = Data(workspace.CreateSession(example)); string id = created.GetProperty("session_id").GetString()!; string before = Data(workspace.ReadSnapshot(id)).GetRawText(); Require(workspace.SetInputs(id, "0", [new("104", 1), new("105", 1.01)]).Error is { Code: "invalid_input", CurrentRevision: "0" }); diff --git a/tests/Power.Tests/HydraulicAssetChecks.cs b/tests/Power.Tests/HydraulicAssetChecks.cs index a4ba0be..05d1673 100644 --- a/tests/Power.Tests/HydraulicAssetChecks.cs +++ b/tests/Power.Tests/HydraulicAssetChecks.cs @@ -23,7 +23,7 @@ private static PowerAsset Asset() => PowerAsset.Create(HydraulicChecks.ClutchMod private static void Replay() { var original=Asset(); var bytes=AssetCodec.Encode(original); var decoded=AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==AssetCodec.FormatVersion); Require(decoded.Nodes.SequenceEqual(original.Nodes) && decoded.Components.SequenceEqual(original.Components)); Require(decoded.Model.Fingerprint==original.Model.Fingerprint && AssetCodec.Encode(decoded).SequenceEqual(bytes)); var a=original.CreatePlayback(); var b=decoded.CreatePlayback(); @@ -49,7 +49,7 @@ private static void Replay() private static void Corruption() { var asset=Asset(); var bytes=AssetCodec.Encode(asset); - int counts=78+Encoding.UTF8.GetByteCount(asset.Name), extension=counts+140+44*asset.Nodes.Count+156*asset.Components.Count; + int counts=78+Encoding.UTF8.GetByteCount(asset.Name), extension=counts+160+44*asset.Nodes.Count+156*asset.Components.Count; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0,bad.Length-32)).CopyTo(bad,bad.Length-32); Throws(()=>AssetCodec.Decode(bad)); } void Change(int offset,int value) @@ -62,7 +62,7 @@ void Change(int offset,int value) var missing=bytes.Take(extension).Concat(bytes.Skip(extension+40)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts+64),1); Reject(missing); var duplicate=bytes.Take(actuator+64).Concat(bytes.Skip(actuator).Take(64)).Concat(bytes.Skip(actuator+64)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts+68),2); Reject(duplicate); - var down=bytes.Take(counts+64).Concat(bytes.Skip(counts+140).Take(extension-counts-140)).Concat(bytes.Skip(actuator+64)).ToArray(); + var down=bytes.Take(counts+64).Concat(bytes.Skip(counts+160).Take(extension-counts-160)).Concat(bytes.Skip(actuator+64)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),9); Reject(down); // A hydraulic node without any extensions must still reject a pre-v10 downgrade. var single=PowerAsset.Create(new(){StepNanoseconds=1_000_000,Nodes=[NodeDefinition.Hydraulic(1,1e-12,1e6)],Components=[]},"Isolated",new string('d',64),1_000_000,1_000_000,[],[]); diff --git a/tests/Power.Tests/HydraulicIntegrationChecks.cs b/tests/Power.Tests/HydraulicIntegrationChecks.cs index 1a69cb4..b7e10b1 100644 --- a/tests/Power.Tests/HydraulicIntegrationChecks.cs +++ b/tests/Power.Tests/HydraulicIntegrationChecks.cs @@ -74,7 +74,7 @@ void Reject(Action change,string code) Reject(n=>n["nodes"]![8]!["initial"]!["value"]=-1,"model_range"); var example=Data(AgentWorkspace.ExampleModel("fired-hydraulic")); Require(JsonNode.DeepEquals(JsonNode.Parse(Source),JsonNode.Parse(example.GetRawText()))); var capability=Data(AgentWorkspace.Capabilities()); Require(capability.GetProperty("hydraulics").GetProperty("pressure_reference").GetString()=="nonnegative_gauge_common_tank"); - Require(capability.GetProperty("asset_format").GetString()=="power.asset.v24" && capability.GetProperty("readable_asset_formats").GetArrayLength()==24); + Require(capability.GetProperty("asset_format").GetString()==AssetCodec.FormatName && capability.GetProperty("readable_asset_formats").GetArrayLength()==AssetCodec.FormatVersion); var workspace=new AgentWorkspace(); var created=Data(workspace.CreateSession(example)); string id=created.GetProperty("session_id").GetString()!; string before=Data(workspace.ReadSnapshot(id)).GetRawText(); Require(workspace.SetInputs(id,"0",[new("106",1),new("116",-1)]).Error is {Code:"invalid_input",CurrentRevision:"0"}); diff --git a/tests/Power.Tests/LiquidColumnChecks.cs b/tests/Power.Tests/LiquidColumnChecks.cs new file mode 100644 index 0000000..9c644ca --- /dev/null +++ b/tests/Power.Tests/LiquidColumnChecks.cs @@ -0,0 +1,116 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidColumnChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("liquid column / geometry momentum and independent lossless work", Lossless), + ("liquid column / independent exponential and hyperbolic-tangent limits / second order", Limits), + ("liquid column / opposing flow volumes reversal work and irreversible heat", Reversal), + ("liquid column / passive decay finite entropy and physical steady limits", Passivity), + ("liquid column / independent changing-pressure RK4 refinement", Reference), + ("liquid column / bounds coarse-step rejection immutability and zero allocation", Contracts) + ]; + private static LiquidColumn Law(double linear = 1e10, double quadratic = 1e16) => new(.1, 1e-8, 750, linear, quadratic, 300, 3000); + private static LiquidColumnStep Step(LiquidColumn law, double q, double pa, double pb, double h) + { + var status = law.Advance(new(q), pa, pb, h, out var step); Require(status == LiquidColumnStatus.Success, "Liquid column interval: " + status); + Near(step.EnergyResidualJoules, 0, 2e-15); Require(step.FrictionHeatJoules >= 0 && step.EntropyProducedJoulesPerKelvin >= 0); + return step; + } + private static void Lossless() + { + var law = Law(0, 0); Near(law.InertancePascalSecondSquaredPerCubicMeter, 7.5e9, 0); Near(law.ColumnMassKilograms, 7.5e-7, 1e-21); + foreach (double initial in new[] { -1e-6, 0d, 1e-6 }) + { + var step = Step(law, initial, 2e5, 1e5, .02); double next = initial + .02 * 1e5 / 7.5e9; + Near(step.State.VolumeFlowCubicMetersPerSecond, next, 1e-21); + Near(step.TransferredVolumeCubicMeters, .02 * initial + .5 * 1e5 / 7.5e9 * .02 * .02, 1e-22); + Near(step.KineticEnergyChangeJoules, .5 * 7.5e9 * (next * next - initial * initial), 1e-17); + Near(step.FrictionHeatJoules, 0, 0); + } + } + private static void Limits() + { + foreach (bool quadratic in new[] { false, true }) + { + var law = quadratic ? Law(0, 1e16) : Law(1e10, 0); var errors = new List(); const double duration = .2, pressure = 1e5; + double exact = quadratic ? Math.Sqrt(pressure / 1e16) * Math.Tanh(Math.Sqrt(pressure * 1e16) * duration / 7.5e9) : pressure / 1e10 * (1 - Math.Exp(-1e10 * duration / 7.5e9)); + foreach (int count in new[] { 10, 20, 40, 80 }) + { + double flow = 0; for (int n = 0; n < count; ++n) flow = Step(law, flow, 2e5, 1e5, duration / count).State.VolumeFlowCubicMetersPerSecond; + errors.Add(Math.Abs(flow - exact) / exact); + } + Console.WriteLine("Liquid column " + (quadratic ? "quadratic" : "linear") + " normalized errors: " + string.Join(", ", errors.Select(x => x.ToString("R")))); + for (int n = 1; n < errors.Count; ++n) Require(errors[n - 1] / errors[n] is > 3.8 and < 4.2); + } + } + private static void Reversal() + { + var law = Law(); var step = Step(law, 1e-7, 1e5, 2e5, .02); + Require(step.InternalIntervals == 2 && step.State.VolumeFlowCubicMetersPerSecond < 0 && step.ForwardVolumeCubicMeters > 0 && step.ReverseVolumeCubicMeters > 0 && step.FrictionHeatJoules > 0); + Near(step.PressureWorkJoules, -1e5 * step.TransferredVolumeCubicMeters, 1e-17); + var mirror = Step(law, -1e-7, 2e5, 1e5, .02); + Near(step.ForwardVolumeCubicMeters, mirror.ReverseVolumeCubicMeters, 1e-22); Near(step.ReverseVolumeCubicMeters, mirror.ForwardVolumeCubicMeters, 1e-22); + Near(step.FrictionHeatJoules, mirror.FrictionHeatJoules, 1e-17); + var free = Step(Law(0, 0), 1e-7, 1e5, 2e5, .02); Near(free.FrictionHeatJoules, 0, 0); + } + private static void Passivity() + { + foreach (double initial in new[] { -1e-6, 1e-6 }) + { + var law = Law(); double flow = initial, heat = 0; + for (int n = 0; n < 1000; ++n) + { + var step = Step(law, flow, 1e5, 1e5, .001); Require(Math.Abs(step.State.VolumeFlowCubicMetersPerSecond) <= Math.Abs(flow)); + heat += step.FrictionHeatJoules; Near(step.EntropyProducedJoulesPerKelvin, step.FrictionHeatJoules / 300, 0); flow = step.State.VolumeFlowCubicMetersPerSecond; + } + Near(heat + .5 * 7.5e9 * flow * flow, .5 * 7.5e9 * initial * initial, 2e-16); + } + double equilibrium = (-1e10 + Math.Sqrt(1e20 + 4e21)) / 2e16; + var fixedPoint = Step(Law(), equilibrium, 2e5, 1e5, .01); Near(fixedPoint.State.VolumeFlowCubicMetersPerSecond, equilibrium, 1e-20); + } + private static void Reference() + { + const double duration = .3; + double Pressure(double t) => 1e5 * Math.Cos(2 * Math.PI * t / duration); + double Rate(double t, double q) => (Pressure(t) - 1e10 * q - 1e16 * q * Math.Abs(q)) / 7.5e9; + double Rk4(int count) + { + double q = 1e-7, h = duration / count; + for (int n = 0; n < count; ++n) { double t = n * h, a = Rate(t, q), b = Rate(t + h / 2, q + h * a / 2), c = Rate(t + h / 2, q + h * b / 2), d = Rate(t + h, q + h * c); q += h / 6 * (a + 2 * b + 2 * c + d); } + return q; + } + double reference = Rk4(20000); Near(reference, Rk4(40000), 1e-18); var errors = new List(); + foreach (int count in new[] { 100, 200, 400, 800 }) + { + var law = Law(); double q = 1e-7, h = duration / count; + for (int n = 0; n < count; ++n) q = Step(law, q, 2e5 + Pressure((n + .5) * h), 2e5, h).State.VolumeFlowCubicMetersPerSecond; + errors.Add(Math.Abs(q - reference) / 1e-6); + } + Console.WriteLine("Liquid column changing-pressure normalized errors: " + string.Join(", ", errors.Select(x => x.ToString("R")))); + for (int n = 1; n < errors.Count; ++n) Require(errors[n - 1] / errors[n] is > 3.7 and < 4.3); + } + private static void Contracts() + { + var law = Law(); var state = new LiquidColumnState(1e-6); + Require(law.Advance(state, 2999, 1e5, .01, out var rejected) == LiquidColumnStatus.PressureOutOfRange && rejected == default); + Require(law.Advance(state, 1e5, 1e5, 100, out rejected) == LiquidColumnStatus.StepTooLarge && rejected == default); + Require(law.Advance(state, 1e5, 1e5, double.NaN, out rejected) == LiquidColumnStatus.InvalidInput && rejected == default); + Require(law.Advance(new(double.PositiveInfinity), 1e5, 1e5, .01, out rejected) == LiquidColumnStatus.InvalidInput && rejected == default); + Throws(() => new LiquidColumn(.1, 0, 750, 0, 0, 300, 3000)); + Throws(() => new LiquidColumn(.1, 1e-8, 750, -1, 0, 300, 3000)); + var baseline = Step(law, state.VolumeFlowCubicMetersPerSecond, 2e5, 1e5, .01); + for (int n = 0; n < 30; ++n) Require(Step(law, state.VolumeFlowCubicMetersPerSecond, 2e5, 1e5, .01) == baseline); + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int n = 0; n < 100; ++n) Require(law.Advance(state, 2e5, 1e5, .01, out _) == LiquidColumnStatus.Success); + Require(GC.GetAllocatedBytesForCurrentThread() == allocated && state.VolumeFlowCubicMetersPerSecond == 1e-6); + } +} diff --git a/tests/Power.Tests/LiquidFuelInjectorAssetChecks.cs b/tests/Power.Tests/LiquidFuelInjectorAssetChecks.cs index f269f47..015e758 100644 --- a/tests/Power.Tests/LiquidFuelInjectorAssetChecks.cs +++ b/tests/Power.Tests/LiquidFuelInjectorAssetChecks.cs @@ -37,7 +37,7 @@ private static void Compare(PowerAsset original, PowerAsset upgraded) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Model.HasLiquidFuelInjectors); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasLiquidFuelInjectors); Require(asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "film-fired-cylinder-v18.powerasset")); @@ -52,7 +52,7 @@ private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int record = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36 + 40 + 64; + int record = FuelPhaseEquilibriumAssetChecks.FilmOffset(asset, bytes) + 100; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); @@ -70,7 +70,7 @@ void Reject(byte[] bad) BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 116), 2); Reject(duplicate); var missing = bytes.Take(record).Concat(bytes.Skip(record + 120)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 116), 0); Reject(missing); - var downgrade = bytes.Take(counts + 116).Concat(bytes.Skip(counts + 140).Take(record - counts - 140)).Concat(bytes.Skip(record + 120)).ToArray(); + var downgrade = bytes.Take(counts + 116).Concat(bytes.Skip(counts + 160).Take(record - counts - 160)).Concat(bytes.Skip(record + 120)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 18); Reject(downgrade); } } diff --git a/tests/Power.Tests/LiquidFuelTankAssetChecks.cs b/tests/Power.Tests/LiquidFuelTankAssetChecks.cs new file mode 100644 index 0000000..f982691 --- /dev/null +++ b/tests/Power.Tests/LiquidFuelTankAssetChecks.cs @@ -0,0 +1,50 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidFuelTankAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("finite tank asset / empty inventory histories exact replay authentic v26", Replay), + ("finite tank asset / counts links units exclusivity forged v26 downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(LiquidFuelTankChecks.Model(), "Finite tank", new string('a', 64), 50_000_000, 1_000_000, [], []); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong at = 0; at <= a.DurationNanoseconds; at += a.SampleEveryNanoseconds) + { + if (at > left.TimeNanoseconds) Require(left.Advance(at - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < at) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, at - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasLiquidTanks); + Require(bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "pump-fed-liquid-cylinder-v26.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 26 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "b57fa9c5ff4814e9fe898882fe7146465b68878f61423805f23e5f717bfb995d"); + var old = AssetCodec.Decode(fixture); Compare(old, AssetCodec.Decode(AssetCodec.Encode(old))); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), tank = bytes.Length - 84, feed = tank - 28; + void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } + foreach (var change in new[] { (counts + 152, -1), (counts + 152, 0), (counts + 152, 65), (tank, -1), (tank + 4, 10), (tank + 16, (int)Unit.Pascal), (feed + 24, 12) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1), change.Item2); Reject(bad); } + var down = bytes.Take(counts + 152).Concat(bytes.Skip(counts + 160).Take(feed + 24 - counts - 160)).Concat(bytes.Skip(tank + 32)).ToArray(); + BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8), 26); Reject(down); + } +} diff --git a/tests/Power.Tests/LiquidFuelTankChecks.cs b/tests/Power.Tests/LiquidFuelTankChecks.cs new file mode 100644 index 0000000..28e7a7c --- /dev/null +++ b/tests/Power.Tests/LiquidFuelTankChecks.cs @@ -0,0 +1,103 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class LiquidFuelTankChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("finite fuel tank / analytic exhaustion shaft work and dry pumping", Exhaustion), + ("finite fuel tank / internal mass caloric chemical inventory and nozzle delivery", Inventory), + ("finite fuel tank / signed return caloric mixing and empty restart", Return), + ("finite fuel tank / independent wet ODE and dry boundary refinement", Reference), + ("finite fuel tank / complete rollback forks cancellation zero allocations ownership", Transactions) + ]; + internal static ModelDefinition Model(double mass = 1e-6, double temperature = 340, double speed = 100, double dose = 0, ulong tick = 20_000) + { + var d = LiquidRailFeedChecks.Model(tick, dose, speed: speed); + var components = d.Components.ToArray(); + components[^1] = components[^1] with { LiquidRailFeed = components[^1].LiquidRailFeed! with { SupplyTemperature = default, TankComponent = 22 } }; + return d with { Components = [..components, ComponentDefinition.FuelTank(22, 2, new() { InjectorComponent = 12, InitialMass = new(mass, Unit.Kilogram), InitialTemperature = new(temperature, Unit.Kelvin) })] }; + } + private static void Step(Simulation s, ulong ns) => Require(s.Step(ns) == SimulationStatus.Ok); + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s) + { + Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); + Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); Near(Value(s, 0, Field.HydraulicVolumeResidual), 0, 1e-16); + Near(Value(s, 0, Field.FuelEnergyIn), 0, 0); + } + private static void Exhaustion() + { + const double mass = 1e-6, rho = 750, compliance = 5e-13, p0 = 800_000, pin = 100_000, inertia = .02; + var s = CompiledModel.Compile(Model()).CreateSimulation(); Step(s, 50_000_000); + double p = p0 + mass / (rho * compliance); + double work = .5 * compliance * (p * p - p0 * p0) - pin * mass / rho; + Near(Value(s, 22, Field.Mass), 0, 0); Near(Value(s, 22, Field.InternalEnergy), 0, 0); Near(Value(s, 22, Field.TankState), 1, 0); + Near(Value(s, 12, Field.Mass), .0005 + mass, 1e-14); Near(Value(s, 5, Field.Pressure), p, 1e-5); + Near(Value(s, 4, Field.Speed), Math.Sqrt(10000 - 2 * work / inertia), 1e-9); + Near(Value(s, 20, Field.HydraulicWork), work, 1e-10); Near(Value(s, 20, Field.VolumeFlow), 0, 0); Near(Value(s, 20, Field.Torque), 0, 0); + Balance(s); + var empty = CompiledModel.Compile(Model(mass: 0)).CreateSimulation(); Step(empty, 5_000_000); + Near(Value(empty, 4, Field.Speed), 100, 0); Near(Value(empty, 5, Field.Pressure), p0, 0); Balance(empty); + } + private static void Inventory() + { + var s = CompiledModel.Compile(Model(mass: 20e-6, dose: 8e-6)).CreateSimulation(); Step(s, 100_000_000); + double supplied = Value(s, 21, Field.TotalFuelDelivered), discharged = Value(s, 12, Field.TotalFuelDelivered); + Require(supplied > 0 && discharged > 0); Near(Value(s, 22, Field.Mass) + supplied, 20e-6, 1e-14); + Near(Value(s, 12, Field.Mass) + discharged, .0005 + supplied, 1e-14); + Near(Value(s, 22, Field.Temperature), 340, 1e-8); Require(Value(s, 12, Field.Temperature) > 300); + Balance(s); + } + private static void Return() + { + foreach (double initial in new[] { 0, 10e-6 }) + { + var s = CompiledModel.Compile(Model(mass: initial, speed: -100)).CreateSimulation(); Step(s, 20_000_000); + Require(Value(s, 22, Field.Mass) > initial && Value(s, 21, Field.TotalFuelDelivered) < 0); + double temperature = Value(s, 22, Field.Temperature); + Require(temperature >= 300 - 1e-8 && temperature < 340); Near(Value(s, 22, Field.TankState), 0, 0); + Balance(s); + } + } + private static void Reference() + { + // Independent continuous wet solution and exact dry inventory endpoint. + const double displacement = 1e-7, compliance = 5e-13, inertia = .02, time = .01; + double frequency = displacement / Math.Sqrt(inertia * compliance); + double pressure = 100_000 + 700_000 * Math.Cos(frequency * time) + displacement * 100 / (compliance * frequency) * Math.Sin(frequency * time); + double previous = double.PositiveInfinity; + foreach (ulong tick in new ulong[] { 1_000_000, 500_000, 250_000 }) + { + var d = Model(mass: .01, tick: tick); var components = d.Components.ToArray(); + int pump = Array.FindIndex(components, c => c.Id == 20); + components[pump] = ComponentDefinition.DisplacementPump(20, 4, 5, displacement, reservoirPressure: 100_000); + var s = CompiledModel.Compile(d with { Components = components }).CreateSimulation(); Step(s, 10_000_000); + double error = Math.Abs(Value(s, 5, Field.Pressure) - pressure); + Require(error < previous); previous = error; Balance(s); + var dry = CompiledModel.Compile(Model(tick: tick)).CreateSimulation(); Step(dry, 50_000_000); + Near(Value(dry, 22, Field.Mass), 0, 0); Balance(dry); + } + } + private static void Transactions() + { + var d = Model(); var s = CompiledModel.Compile(d).CreateSimulation(); var before = Snapshot(s); + Require(s.Step(50_000_000, new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(50_000_000, [new(30_000_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var fork = s.Fork(); Step(s, 50_000_000); for (int i = 0; i < 50; ++i) Step(fork, 1_000_000); Require(Snapshot(s) == Snapshot(fork)); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 10; ++i) { Step(s, 20_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 100; ++i) { Step(s, 20_000); s.ReadSnapshot(values); } + Require(allocated == GC.GetAllocatedBytesForCurrentThread()); + var components = d.Components.ToArray(); components[^2] = components[^2] with { LiquidRailFeed = components[^2].LiquidRailFeed! with { SupplyTemperature = new(320, Unit.Kelvin) } }; + Throws(() => CompiledModel.Compile(d with { Components = components })); + Throws(() => CompiledModel.Compile(d with { Components = d.Components.Take(d.Components.Count() - 2).Append(d.Components[^1]).ToArray() })); + } +} diff --git a/tests/Power.Tests/LiquidFuelTankIntegrationChecks.cs b/tests/Power.Tests/LiquidFuelTankIntegrationChecks.cs new file mode 100644 index 0000000..1859772 --- /dev/null +++ b/tests/Power.Tests/LiquidFuelTankIntegrationChecks.cs @@ -0,0 +1,55 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidFuelTankIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("finite tank liquid engine / pressure caloric chemical and mass ledgers / every boundary", Liquid), + ("finite tank physical needle engine / actual lift dose and rail replenishment / every boundary", Needle), + ("finite tank agent / actionable pressure ownership and thermal errors / forks", Sessions) + ]; + private static string Source(string name)=>File.ReadAllText(Path.Combine(AppContext.BaseDirectory,name+".power.json")); + private static double V(SampleReport s,uint id,Field f)=>s.Values[Channels.Output(id,f).ToString()]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static ExperimentReport Check(string name) + { + var doc=ModelDocument.Parse(Source(name));var report=ExperimentRunner.Evaluate(doc);Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="finite_tank_liquid_fuel_powertrain"); + var asset=AssetCodec.Decode(AssetCodec.Encode(doc.ToAsset(name)));var play=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + uint injector=doc.Model.Components.Single(c=>c.Kind==ComponentKind.LiquidFuelInjector).Id; + double initial=doc.Model.Components.Single(c=>c.Id==injector).LiquidFuelInjector!.InitialMass.Value; + foreach(var row in report.Samples) + { + while(play.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()])); + Near(V(row,injector,Field.Mass)+V(row,injector,Field.TotalFuelDelivered),initial+V(row,1511,Field.TotalFuelDelivered),1e-12); + Near(V(row,1513,Field.Mass)+V(row,1511,Field.TotalFuelDelivered),2e-5,1e-14); + Near(V(row,0,Field.FuelEnergyIn),V(row,0,Field.ChemicalEnergy)-V(report.Samples[0],0,Field.ChemicalEnergy)+V(row,15,Field.HeatReleased),2e-7); + Near(V(row,injector,Field.Pressure),V(row,1501,Field.Pressure),0);Near(V(row,0,Field.EnergyResidual),0,1e-6); + Near(V(row,0,Field.MassResidual),0,1e-13);Near(V(row,0,Field.FuelResidual),0,1e-13);Near(V(row,0,Field.HydraulicVolumeResidual),0,1e-14); + } + Require(V(report.Samples[^1],1513,Field.TankState)==1&&V(report.Samples[^1],1513,Field.Mass)==0); + Require(V(report.Samples[^1],1510,Field.HydraulicWork)>0&&V(report.Samples[^1],1511,Field.TotalFuelDelivered)>0);return report; + } + private static void Liquid(){var r=Check("finite-tank-liquid-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300);} + private static void Needle(){var r=Check("finite-tank-needle-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300&&r.Model.StateCount<=128);} + private static void Sessions() + { + var w=new AgentWorkspace();var example=Data(AgentWorkspace.ExampleModel("finite-tank-liquid-cylinder"));string id=Data(w.CreateSession(example)).GetProperty("session_id").GetString()!; + Data(w.StepSession(id,"0","1000000"));string parent=Data(w.ReadSnapshot(id)).GetRawText();string fork=Data(w.ForkSession(id,"1")).GetProperty("session_id").GetString()!; + Data(w.SetInputs(fork,"0",[new("950",.01)]));Data(w.StepSession(fork,"1","1000000"));Require(Data(w.ReadSnapshot(id)).GetRawText()==parent); + Data(w.CloseSession(fork,"2"));Data(w.CloseSession(id,"1")); + var doc=ModelDocument.Parse(Source("finite-tank-liquid-cylinder"));var nodes=doc.Model.Nodes.ToArray();int rail=Array.FindIndex(nodes,n=>n.Id==1501);nodes[rail]=nodes[rail] with{Storage=new(1e-13,Unit.CubicMeterPerPascal)}; + Require(!CompiledModel.TryCompile(doc.Model with{Nodes=nodes},out _,out var error)&&error!.Code==DiagnosticCode.Connection); + } +} diff --git a/tests/Power.Tests/LiquidRailFeedAssetChecks.cs b/tests/Power.Tests/LiquidRailFeedAssetChecks.cs new file mode 100644 index 0000000..c6f1834 --- /dev/null +++ b/tests/Power.Tests/LiquidRailFeedAssetChecks.cs @@ -0,0 +1,50 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidRailFeedAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("liquid feed asset / mixed caloric rail pressure pump histories / replay / authentic v25", Replay), + ("liquid feed asset / bounded links temperatures typed coverage / forged downgrade", Corruption) + ]; + private static PowerAsset Asset()=>PowerAsset.Create(LiquidRailFeedChecks.Model(dose:8e-6),"Pump-fed rail",new string('a',64),20_000_000,1_000_000,[],[]); + private static void Compare(PowerAsset a,PowerAsset b) + { + var left=a.CreatePlayback();var right=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount]; + for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds) + { + if(at>left.TimeNanoseconds)Require(left.Advance(at-left.TimeNanoseconds)==SimulationStatus.Ok); + while(right.TimeNanoseconds(()=>AssetCodec.Decode(bad));} + foreach(var change in new[]{(counts+148,-1),(counts+148,0),(counts+148,65),(record,-1),(record+4,10),(record+8,12),(record+20,(int)Unit.Pascal)}) + {var bad=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1),change.Item2);Reject(bad);} + var down=bytes.Take(counts+148).Concat(bytes.Skip(counts+160).Take(record-counts-160)).Concat(bytes.Skip(record+28)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),25);Reject(down); + } +} diff --git a/tests/Power.Tests/LiquidRailFeedChecks.cs b/tests/Power.Tests/LiquidRailFeedChecks.cs new file mode 100644 index 0000000..2071bfb --- /dev/null +++ b/tests/Power.Tests/LiquidRailFeedChecks.cs @@ -0,0 +1,101 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class LiquidRailFeedChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("liquid rail pump / analytic shaft-pressure exchange / work and material boundary", Pump), + ("liquid rail pump / caloric mixing and inventory / coupled nozzle and complete ledgers", Mixing), + ("liquid rail pump / signed return flow / source and receiver pressure work", Return), + ("liquid rail pump / independent simultaneous pressure-mass-temperature ODE / refinement", Reference), + ("liquid feed transactions / late failure cancellation forks / zero allocations", Transactions), + ("liquid feed contracts / one rail owner matching pressure storage and thermal reference", Contracts) + ]; + internal static ModelDefinition Model(ulong tick=20_000,double dose=0,double temperature=340,double speed=100) + { + var d=LiquidFuelInjectorChecks.Model(tick,dose); + return d with{Nodes=[..d.Nodes,NodeDefinition.Rotor(4,.02,speed),NodeDefinition.Hydraulic(5,5e-13,800_000)], + Components=[..d.Components,ComponentDefinition.DisplacementPump(20,4,5,1e-9,reservoirPressure:100_000), + ComponentDefinition.RailFeed(21,2,new(){InjectorComponent=12,PumpComponent=20,SupplyTemperature=new(temperature,Unit.Kelvin)})]}; + } + private static void Ok(SimulationStatus s){if(s!=SimulationStatus.Ok)throw new InvalidOperationException(s.ToString());} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s) + { + Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14); + Near(Value(s,0,Field.FuelResidual),0,1e-14);Near(Value(s,0,Field.FreshAirResidual),0,1e-14);Near(Value(s,0,Field.HydraulicVolumeResidual),0,1e-16); + } + private static void Pump() + { + const double d=1e-9,c=5e-13,j=.02,time=.1;double f=d/Math.Sqrt(j*c); + double expectedW=100*Math.Cos(f*time)-d*700_000/(j*f)*Math.Sin(f*time); + double expectedP=100_000+700_000*Math.Cos(f*time)+d*100/(c*f)*Math.Sin(f*time); + var s=CompiledModel.Compile(Model()).CreateSimulation();Ok(s.Step(100_000_000)); + Near(Value(s,4,Field.Speed),expectedW,1e-9);Near(Value(s,5,Field.Pressure),expectedP,1e-5); + Near(Value(s,12,Field.Pressure),Value(s,5,Field.Pressure),0);Near(Value(s,21,Field.TotalFuelDelivered),750*c*(expectedP-800_000),1e-13); + Near(Value(s,12,Field.Mass),.0005+Value(s,21,Field.TotalFuelDelivered),1e-13);Require(Value(s,20,Field.HydraulicWork)>0);Balance(s); + } + private static void Mixing() + { + var s=CompiledModel.Compile(Model(dose:8e-6)).CreateSimulation();Ok(s.Step(100_000_000));double supplied=Value(s,21,Field.TotalFuelDelivered),delivered=Value(s,12,Field.TotalFuelDelivered); + Near(Value(s,12,Field.Mass)+Value(s,10,Field.Mass),.0005+supplied,1e-13);Near(Value(s,10,Field.Mass),delivered,1e-14); + Require(supplied>0&&delivered>0&&Value(s,12,Field.Temperature)>300&&Value(s,10,Field.Temperature)>=300); + Balance(s); + } + private static void Return() + { + var s=CompiledModel.Compile(Model(speed:-100,temperature:300)).CreateSimulation();Ok(s.Step(20_000_000)); + Require(Value(s,21,Field.TotalFuelDelivered)<0&&Value(s,21,Field.FuelEnergyIn)<0&&Value(s,12,Field.Mass)<.0005); + Near(Value(s,12,Field.Temperature),300,1e-9);Balance(s); + } + private static void Reference() + { + double pressureReceiver=Value(CompiledModel.Compile(Model()).CreateSimulation(),2,Field.Pressure); + var film=FuelFilmChecks.Definition();double cp=film.LiquidSpecificHeat.Value,sat=film.SaturationTemperature.Value; + var gas=FuelFilmChecks.Model().Nodes[1].Gas!;double vapor=gas.GasConstant.Value/(gas.Gamma-1);double offset=(vapor-cp)*sat-film.LatentInternalEnergy.Value; + double u0=cp*300+offset,source=cp*340+offset,referenceVolume=.0005/750-5e-13*800_000; + double[] x=[100,800_000,.0005*u0,0,0];const double h=5e-7,time=.005; + double[] F(double[] q) + { + double mass=750*(referenceVolume+5e-13*q[1]),u=q[2]/mass; + double injection=.8e-7*Math.Sqrt(2*750*Math.Max(0,q[1]-pressureReceiver)),supply=750*1e-9*q[0]; + return[-1e-9*(q[1]-100_000)/.02,(1e-9*q[0]-injection/750)/5e-13,supply*source-injection*u,injection,injection*u]; + } + for(int n=0;n<(int)(time/h);++n) + { + var a=F(x);var b=F(x.Select((v,i)=>v+.5*h*a[i]).ToArray());var c=F(x.Select((v,i)=>v+.5*h*b[i]).ToArray());var d=F(x.Select((v,i)=>v+h*c[i]).ToArray()); + for(int i=0;i(()=>CompiledModel.Compile(d with{Nodes=nodes})); + var components=d.Components.ToArray();components[^1]=components[^1] with{LiquidRailFeed=new(){InjectorComponent=12,PumpComponent=20,SupplyTemperature=new(1000,Unit.Kelvin)}};Throws(()=>CompiledModel.Compile(d with{Components=components})); + Throws(()=>CompiledModel.Compile(d with{Components=[..d.Components,ComponentDefinition.HydraulicResistance(30,5,0,1e-12)]})); + } +} diff --git a/tests/Power.Tests/LiquidRailFeedIntegrationChecks.cs b/tests/Power.Tests/LiquidRailFeedIntegrationChecks.cs new file mode 100644 index 0000000..4805902 --- /dev/null +++ b/tests/Power.Tests/LiquidRailFeedIntegrationChecks.cs @@ -0,0 +1,52 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidRailFeedIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("pump-fed liquid engine / pressure caloric chemical and mass ledgers / every boundary", Liquid), + ("pump-fed physical needle engine / actual lift dose and rail replenishment / every boundary", Needle), + ("liquid supply agent / actionable pressure ownership and thermal errors / forks", Sessions) + ]; + private static string Source(string name)=>File.ReadAllText(Path.Combine(AppContext.BaseDirectory,name+".power.json")); + private static double V(SampleReport s,uint id,Field f)=>s.Values[Channels.Output(id,f).ToString()]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static ExperimentReport Check(string name) + { + var doc=ModelDocument.Parse(Source(name));var report=ExperimentRunner.Evaluate(doc);Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="pump_fed_liquid_fuel_powertrain"); + var asset=AssetCodec.Decode(AssetCodec.Encode(doc.ToAsset(name)));var play=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + uint injector=doc.Model.Components.Single(c=>c.Kind==ComponentKind.LiquidFuelInjector).Id; + double initial=doc.Model.Components.Single(c=>c.Id==injector).LiquidFuelInjector!.InitialMass.Value; + foreach(var row in report.Samples) + { + while(play.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()])); + Near(V(row,injector,Field.Mass)+V(row,injector,Field.TotalFuelDelivered),initial+V(row,1511,Field.TotalFuelDelivered),1e-12); + Near(V(row,injector,Field.Pressure),V(row,1501,Field.Pressure),0);Near(V(row,0,Field.EnergyResidual),0,1e-6); + Near(V(row,0,Field.MassResidual),0,1e-13);Near(V(row,0,Field.FuelResidual),0,1e-13);Near(V(row,0,Field.HydraulicVolumeResidual),0,1e-14); + } + Require(V(report.Samples[^1],1510,Field.HydraulicWork)>0&&V(report.Samples[^1],1511,Field.TotalFuelDelivered)>0);return report; + } + private static void Liquid(){var r=Check("pump-fed-liquid-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300);} + private static void Needle(){var r=Check("pump-fed-needle-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300&&r.Model.StateCount<=128);} + private static void Sessions() + { + var w=new AgentWorkspace();var example=Data(AgentWorkspace.ExampleModel("pump-fed-liquid-cylinder"));string id=Data(w.CreateSession(example)).GetProperty("session_id").GetString()!; + Data(w.StepSession(id,"0","1000000"));string parent=Data(w.ReadSnapshot(id)).GetRawText();string fork=Data(w.ForkSession(id,"1")).GetProperty("session_id").GetString()!; + Data(w.SetInputs(fork,"0",[new("950",.01)]));Data(w.StepSession(fork,"1","1000000"));Require(Data(w.ReadSnapshot(id)).GetRawText()==parent); + Data(w.CloseSession(fork,"2"));Data(w.CloseSession(id,"1")); + var doc=ModelDocument.Parse(Source("pump-fed-liquid-cylinder"));var nodes=doc.Model.Nodes.ToArray();int rail=Array.FindIndex(nodes,n=>n.Id==1501);nodes[rail]=nodes[rail] with{Storage=new(1e-13,Unit.CubicMeterPerPascal)}; + Require(!CompiledModel.TryCompile(doc.Model with{Nodes=nodes},out _,out var error)&&error!.Code==DiagnosticCode.Connection); + } +} diff --git a/tests/Power.Tests/LiquidRailReturnAssetChecks.cs b/tests/Power.Tests/LiquidRailReturnAssetChecks.cs new file mode 100644 index 0000000..0303ac7 --- /dev/null +++ b/tests/Power.Tests/LiquidRailReturnAssetChecks.cs @@ -0,0 +1,51 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidRailReturnAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("liquid return asset / complete heat mass histories and authentic v27 replay", Replay), + ("liquid return asset / counts ownership fraction units and forged v27 downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(LiquidRailReturnChecks.Model(), "Liquid return", new string('a', 64), 20_000_000, 1_000_000, [], []); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong at = 0; at <= a.DurationNanoseconds; at += a.SampleEveryNanoseconds) + { + if (at > left.TimeNanoseconds) Require(left.Advance(at - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < at) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, at - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasLiquidReturns); + Require(bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "finite-tank-liquid-cylinder-v27.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 27 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "ee344fad148d226c223145d610b18f84912060bc722fee980cae6515ceea3d62"); + var old = AssetCodec.Decode(fixture); Compare(old, AssetCodec.Decode(AssetCodec.Encode(old))); + } + private static void Corruption() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), record = bytes.Length - 56; + void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } + foreach (var change in new[] { (counts + 160, -1), (counts + 160, 0), (counts + 160, 65), (record, -1), (record + 4, 20), (record + 8, 12), (record + 20, (int)Unit.Pascal) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1), change.Item2); Reject(bad); } + var range = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(range.AsSpan(record + 12), 2); Reject(range); + var down = bytes.Take(counts + 160).Concat(bytes.Skip(counts + 160).Take(record - counts - 160)).Concat(bytes.Skip(record + 24)).ToArray(); + BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8), 27); Reject(down); + } +} diff --git a/tests/Power.Tests/LiquidRailReturnChecks.cs b/tests/Power.Tests/LiquidRailReturnChecks.cs new file mode 100644 index 0000000..146e903 --- /dev/null +++ b/tests/Power.Tests/LiquidRailReturnChecks.cs @@ -0,0 +1,130 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class LiquidRailReturnChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("liquid return / independent relief pressure decay and carried heat", Decay), + ("liquid recirculation / thermal fractions full inventory and energy ledgers", Mixing), + ("liquid return / explicit external caloric chemical and pressure boundaries", External), + ("liquid recirculation / independent simultaneous mass thermal pressure ODE refinement", Reference), + ("liquid return / multiple routes ownership closures and allocation-free rollback", Transactions) + ]; + internal static ModelDefinition Model(double fraction = 1, ulong tick = 50_000, bool finite = true, double speed = 100) + { + var d = finite ? LiquidFuelTankChecks.Model(mass: .0001, tick: tick, speed: speed) : LiquidRailFeedChecks.Model(tick, speed: speed); + return d with { Components = [..d.Components, ComponentDefinition.PressureRelief(30, 5, 0, 1e-12, 200_000, reservoirPressure: 100_000), + ComponentDefinition.RailReturn(31, 2, new() { FeedComponent = 21, ValveComponent = 30, FluidHeatFraction = new(fraction, Unit.Fraction) })] }; + } + private static void Step(Simulation s, ulong dt) => Require(s.Step(dt) == SimulationStatus.Ok); + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s) + { + Near(Value(s, 0, Field.EnergyResidual), 0, 3e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); + Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); Near(Value(s, 0, Field.HydraulicVolumeResidual), 0, 1e-16); + } + private static double Caloric(Simulation s) => Value(s, 12, Field.InternalEnergy) - .5 * 5e-13 * Math.Pow(Value(s, 5, Field.Pressure), 2) + Value(s, 22, Field.InternalEnergy); + private static void Decay() + { + var d = Model(speed: 0); d = d with { Components = [..d.Components, ComponentDefinition.Clutch(32, 4, 0, 10, 8)] }; + var s = CompiledModel.Compile(d).CreateSimulation(); double caloric = Caloric(s); Step(s, 100_000_000); + double p = 300_000 + 500_000 * Math.Exp(-.2), volume = 5e-13 * (800_000 - p); + double heat = .5 * 5e-13 * (800_000 * 800_000d - p * p) - 100_000 * volume; + Near(Value(s, 4, Field.Speed), 0, 1e-15); Near(Value(s, 5, Field.Pressure), p, 1e-3); + Near(Value(s, 31, Field.TotalFuelDelivered), 750 * volume, 1e-12); Near(Value(s, 31, Field.FluidHeat), heat, 1e-9); + Near(Caloric(s) - caloric, Value(s, 31, Field.FluidHeat), 1e-9); Near(Value(s, 0, Field.HeatRejected), 0, 1e-14); Balance(s); + } + private static void Mixing() + { + foreach (double fraction in new[] { 0, .5, 1 }) + { + var s = CompiledModel.Compile(Model(fraction)).CreateSimulation(); double initial = Caloric(s); Step(s, 50_000_000); + double pump = Value(s, 21, Field.TotalFuelDelivered), returned = Value(s, 31, Field.TotalFuelDelivered); + Require(returned > 0 && pump > 0); Near(Value(s, 22, Field.Mass) + pump - returned, .0001, 1e-14); + Near(Value(s, 12, Field.Mass) - pump + returned, .0005, 1e-14); + Near(Value(s, 31, Field.FluidHeat), fraction * Value(s, 30, Field.FluidHeat), 1e-13); + Near(Caloric(s) - initial, Value(s, 31, Field.FluidHeat), 2e-9); + Require(Value(s, 22, Field.Temperature) > 300 && Value(s, 22, Field.Temperature) < 340); Balance(s); + } + var d = Model(.5); var components = d.Components.ToArray(); + components[Array.FindIndex(components, c => c.Id == 30)] = ComponentDefinition.PressureRelief(30, 5, 0, 1e-12, 200_000, reservoirPressure: 100_000, heat: 3); + var wall = CompiledModel.Compile(d with { Components = components }).CreateSimulation(); double initialTemperature = Value(wall, 3, Field.Temperature); + Step(wall, 50_000_000); + Near(.2 * (Value(wall, 3, Field.Temperature) - initialTemperature), .5 * Value(wall, 30, Field.FluidHeat), 1e-10); + Near(Value(wall, 0, Field.HeatRejected), 0, 1e-14); Balance(wall); + } + private static void External() + { + foreach (double speed in new[] { 100d, -100d }) + { + var s = CompiledModel.Compile(Model(finite: false, speed: speed)).CreateSimulation(); Step(s, 20_000_000); + double net = Value(s, 21, Field.TotalFuelDelivered) - Value(s, 31, Field.TotalFuelDelivered); + Near(Value(s, 0, Field.FuelEnergyIn), net * 44e6, 1e-9); + Near(Value(s, 12, Field.Mass), .0005 + net, 1e-14); Balance(s); + } + } + private static void Reference() + { + var law = FuelFilmChecks.Definition(); var gas = FuelFilmChecks.Model().Nodes[1].Gas!; + double cp = law.LiquidSpecificHeat.Value, sat = law.SaturationTemperature.Value, cv = gas.GasConstant.Value / (gas.Gamma - 1); + double offset = (cv - cp) * sat - law.LatentInternalEnergy.Value; + const double time = .05, h = 5e-6, reference = .0005 / 750 - 5e-13 * 800_000; + double[] x = [100, 800_000, .0005 * (cp * 300 + offset), .0001 * (cp * 340 + offset), 0, 0, 0]; + double[] F(double[] q) + { + double rail = 750 * (reference + 5e-13 * q[1]), tank = .0006 - rail; + double pump = 750e-9 * q[0], flow = 1e-12 * Math.Max(0, q[1] - 300_000), returned = 750 * flow; + double transfer = pump * q[3] / tank - returned * q[2] / rail, heat = flow * (q[1] - 100_000); + return [-1e-9 * (q[1] - 100_000) / .02, (1e-9 * q[0] - flow) / 5e-13, transfer, -transfer + heat, pump, returned, heat]; + } + for (int n = 0; n < (int)Math.Round(time / h); ++n) + { + var a = F(x); var b = F(x.Select((v, i) => v + .5 * h * a[i]).ToArray()); + var c = F(x.Select((v, i) => v + .5 * h * b[i]).ToArray()); var d = F(x.Select((v, i) => v + h * c[i]).ToArray()); + for (int i = 0; i < x.Length; ++i) x[i] += h * (a[i] + 2 * b[i] + 2 * c[i] + d[i]) / 6; + } + double previous = double.PositiveInfinity; + foreach (ulong tick in new ulong[] { 1_000_000, 500_000, 250_000 }) + { + var s = CompiledModel.Compile(Model(tick: tick)).CreateSimulation(); Step(s, 50_000_000); + double railEnergy = Value(s, 12, Field.InternalEnergy) - .5 * 5e-13 * Math.Pow(Value(s, 5, Field.Pressure), 2); + double error = Math.Abs(Value(s, 5, Field.Pressure) - x[1]) / 1e6 + Math.Abs(railEnergy - x[2]) / 100 + Math.Abs(Value(s, 22, Field.InternalEnergy) - x[3]) / 100; + Require(error < previous); previous = error; Balance(s); + } + Require(previous < 1e-6); + } + private static void Transactions() + { + var d = Model(); var s = CompiledModel.Compile(d).CreateSimulation(); var before = Snapshot(s); + Require(s.Step(10_000_000, new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(10_000_000, [new(5_000_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var fork = s.Fork(); Step(s, 20_000_000); for (int i = 0; i < 20; ++i) Step(fork, 1_000_000); Require(Snapshot(s) == Snapshot(fork)); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 10; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); for (int i = 0; i < 100; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + Require(allocated == GC.GetAllocatedBytesForCurrentThread()); + Throws(() => CompiledModel.Compile(d with { Components = [..d.Components, ComponentDefinition.RailReturn(33, 2, new() { FeedComponent = 21, ValveComponent = 30, FluidHeatFraction = new(0, Unit.Fraction) })] })); + var components = d.Components.ToArray(); components[^1] = components[^1] with { LiquidRailReturn = components[^1].LiquidRailReturn! with { FluidHeatFraction = new(2, Unit.Fraction) } }; + Throws(() => CompiledModel.Compile(d with { Components = components })); + var multiple = d with { Components = [..d.Components, ComponentDefinition.PressureRelief(34, 5, 0, 1e-13, 250_000, reservoirPressure: 100_000), + ComponentDefinition.RailReturn(35, 2, new() { FeedComponent = 21, ValveComponent = 34, FluidHeatFraction = new(.5, Unit.Fraction) })] }; + var m = CompiledModel.Compile(multiple).CreateSimulation(); Step(m, 10_000_000); Require(Value(m, 35, Field.TotalFuelDelivered) > 0); Balance(m); + // Unsupported tank boiling fails after physical heat transfer and rolls back the full batch. + var hot = Model(speed: 0); var hotNodes = hot.Nodes.ToArray(); var hotComponents = hot.Components.ToArray(); + hotNodes[Array.FindIndex(hotNodes, n => n.Id == 5)] = NodeDefinition.Hydraulic(5, 5e-13, 1e9); + int injector = Array.FindIndex(hotComponents, c => c.Id == 12), tank = Array.FindIndex(hotComponents, c => c.Id == 22); + hotComponents[injector] = hotComponents[injector] with { LiquidFuelInjector = hotComponents[injector].LiquidFuelInjector! with { InitialMass = new(1, Unit.Kilogram), InitialPressure = new(1e9, Unit.Pascal) } }; + hotComponents[tank] = hotComponents[tank] with { LiquidFuelTank = hotComponents[tank].LiquidFuelTank! with { InitialMass = new(1e-6, Unit.Kilogram), InitialTemperature = new(300, Unit.Kelvin) } }; + hotComponents[Array.FindIndex(hotComponents, c => c.Id == 30)] = ComponentDefinition.PressureRelief(30, 5, 0, 1e-15, 200_000, reservoirPressure: 100_000); + var boiling = CompiledModel.Compile(hot with { Nodes = hotNodes, Components = [..hotComponents, ComponentDefinition.Clutch(32, 4, 0, 10, 8)] }).CreateSimulation(); + before = Snapshot(boiling); Require(boiling.Step(1_000_000) == SimulationStatus.NumericalFailure && Snapshot(boiling) == before); + Step(boiling, 50_000); Balance(boiling); + } +} diff --git a/tests/Power.Tests/LiquidRailReturnIntegrationChecks.cs b/tests/Power.Tests/LiquidRailReturnIntegrationChecks.cs new file mode 100644 index 0000000..557fa9a --- /dev/null +++ b/tests/Power.Tests/LiquidRailReturnIntegrationChecks.cs @@ -0,0 +1,56 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class LiquidRailReturnIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=> + [ + ("liquid recirculation liquid engine / pressure caloric chemical and mass ledgers / every boundary", Liquid), + ("liquid recirculation physical needle engine / actual lift dose and rail replenishment / every boundary", Needle), + ("liquid recirculation agent / actionable pressure ownership and thermal errors / forks", Sessions) + ]; + private static string Source(string name)=>File.ReadAllText(Path.Combine(AppContext.BaseDirectory,name+".power.json")); + private static double V(SampleReport s,uint id,Field f)=>s.Values[Channels.Output(id,f).ToString()]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static ExperimentReport Check(string name) + { + var doc=ModelDocument.Parse(Source(name));var report=ExperimentRunner.Evaluate(doc);Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="recirculating_liquid_fuel_powertrain"); + var asset=AssetCodec.Decode(AssetCodec.Encode(doc.ToAsset(name)));var play=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + uint injector=doc.Model.Components.Single(c=>c.Kind==ComponentKind.LiquidFuelInjector).Id; + double initial=doc.Model.Components.Single(c=>c.Id==injector).LiquidFuelInjector!.InitialMass.Value; + foreach(var row in report.Samples) + { + while(play.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()])); + Near(V(row,injector,Field.Mass)+V(row,injector,Field.TotalFuelDelivered),initial+V(row,1511,Field.TotalFuelDelivered)-V(row,1515,Field.TotalFuelDelivered),1e-12); + Near(V(row,1513,Field.Mass)+V(row,1511,Field.TotalFuelDelivered)-V(row,1515,Field.TotalFuelDelivered),2e-5,1e-14); + Near(V(row,0,Field.FuelEnergyIn),V(row,0,Field.ChemicalEnergy)-V(report.Samples[0],0,Field.ChemicalEnergy)+V(row,15,Field.HeatReleased),2e-7); + Near(V(row,1515,Field.FluidHeat),V(row,1514,Field.FluidHeat),1e-12); + Near(V(row,injector,Field.Pressure),V(row,1501,Field.Pressure),0);Near(V(row,0,Field.EnergyResidual),0,1e-6); + Near(V(row,0,Field.MassResidual),0,1e-13);Near(V(row,0,Field.FuelResidual),0,1e-13);Near(V(row,0,Field.HydraulicVolumeResidual),0,1e-14); + } + Require(V(report.Samples[^1],1515,Field.TotalFuelDelivered)>0&&V(report.Samples[^1],1515,Field.FluidHeat)>0); + Require(V(report.Samples[^1],1510,Field.HydraulicWork)>0&&V(report.Samples[^1],1511,Field.TotalFuelDelivered)>0);return report; + } + private static void Liquid(){var r=Check("recirculating-liquid-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300);} + private static void Needle(){var r=Check("recirculating-needle-cylinder");Require(V(r.Samples[^1],15,Field.HeatReleased)>300&&r.Model.StateCount<=128);} + private static void Sessions() + { + var w=new AgentWorkspace();var example=Data(AgentWorkspace.ExampleModel("recirculating-liquid-cylinder"));string id=Data(w.CreateSession(example)).GetProperty("session_id").GetString()!; + Data(w.StepSession(id,"0","1000000"));string parent=Data(w.ReadSnapshot(id)).GetRawText();string fork=Data(w.ForkSession(id,"1")).GetProperty("session_id").GetString()!; + Data(w.SetInputs(fork,"0",[new("950",.01)]));Data(w.StepSession(fork,"1","1000000"));Require(Data(w.ReadSnapshot(id)).GetRawText()==parent); + Data(w.CloseSession(fork,"2"));Data(w.CloseSession(id,"1")); + var doc=ModelDocument.Parse(Source("recirculating-liquid-cylinder"));var nodes=doc.Model.Nodes.ToArray();int rail=Array.FindIndex(nodes,n=>n.Id==1501);nodes[rail]=nodes[rail] with{Storage=new(1e-13,Unit.CubicMeterPerPascal)}; + Require(!CompiledModel.TryCompile(doc.Model with{Nodes=nodes},out _,out var error)&&error!.Code==DiagnosticCode.Connection); + } +} diff --git a/tests/Power.Tests/MovingCylinderChecks.cs b/tests/Power.Tests/MovingCylinderChecks.cs index 562fcde..200ce1e 100644 --- a/tests/Power.Tests/MovingCylinderChecks.cs +++ b/tests/Power.Tests/MovingCylinderChecks.cs @@ -211,7 +211,7 @@ void Reject(ModelDefinition definition, DiagnosticCode code) var a = asset.CreatePlayback(); var b = decoded.CreatePlayback(); Ok(a.Advance(100_000_000)); Ok(b.Advance(100_000_000)); Require(a.ReadSnapshot(new Scalar[a.Model.OutputCount]) == b.ReadSnapshot(new Scalar[b.Model.OutputCount])); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int extension = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36; + int extension = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36; var forged = (byte[])bytes.Clone(); BinaryPrimitives.WriteInt32LittleEndian(forged.AsSpan(extension), 1); SHA256.HashData(forged.AsSpan(0, forged.Length - 32)).CopyTo(forged, forged.Length - 32); Throws(() => AssetCodec.Decode(forged)); @@ -228,7 +228,7 @@ void Reject(ModelDefinition definition, DiagnosticCode code) var mixedDecoded = AssetCodec.Decode(mixedBytes); Require(mixedDecoded.Components.SequenceEqual(mixed.Components) && mixedDecoded.Model.Fingerprint == mixed.Model.Fingerprint); int mixedCounts = 78 + Encoding.UTF8.GetByteCount(mixed.Name); - int movingStart = mixedCounts + 140 + 44 * mixed.Nodes.Count + 156 * mixed.Components.Count + 116 + 24 * 2 + 36; + int movingStart = mixedCounts + 160 + 44 * mixed.Nodes.Count + 156 * mixed.Components.Count + 116 + 24 * 2 + 36; void RejectBytes(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); @@ -238,7 +238,7 @@ void RejectBytes(byte[] data) var negative = (byte[])mixedBytes.Clone(); BinaryPrimitives.WriteInt32LittleEndian(negative.AsSpan(mixedCounts + 28), -1); RejectBytes(negative); var missing = mixedBytes.Take(movingStart).Concat(mixedBytes.Skip(movingStart + 72)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(mixedCounts + 28), 1); RejectBytes(missing); - var downVersion = mixedBytes.Take(mixedCounts + 28).Concat(mixedBytes.Skip(mixedCounts + 140).Take(movingStart - mixedCounts - 140)) + var downVersion = mixedBytes.Take(mixedCounts + 28).Concat(mixedBytes.Skip(mixedCounts + 160).Take(movingStart - mixedCounts - 160)) .Concat(mixedBytes.Skip(movingStart + 144)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downVersion.AsSpan(8), 3); RejectBytes(downVersion); byte[] v3Bytes = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "gas-network-v3.powerasset")); diff --git a/tests/Power.Tests/MovingFuelVolumeChecks.cs b/tests/Power.Tests/MovingFuelVolumeChecks.cs new file mode 100644 index 0000000..7e90653 --- /dev/null +++ b/tests/Power.Tests/MovingFuelVolumeChecks.cs @@ -0,0 +1,107 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class MovingFuelVolumeChecks +{ + private const double R = 287, Cv = 717.5, Cl = 2000, Offset = -813000, Density = 750, C = 5e-13, V0 = 8e-7; + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("moving fuel volume / incompressible reversible pressure work / unchanged constitutive wrappers", Liquid), + ("moving fuel volume / independent ideal-vapor adiabat with elastic wall", Vapor), + ("moving fuel volume / independent two-phase entropy inversion / closed work", Phase), + ("moving fuel volume / small travel closed cycles validity and zero allocations", Limits) + ]; + internal static CompliantFuelVolume Law() => new(new(new(Cl, Cv, 400, 300000, 0), R, 100000, 200, 600), V0, C, Density, 20e6); + private static void Ok(FuelVolumeStatus status) { if (status != FuelVolumeStatus.Success) Require(false, status.ToString()); } + private static void Liquid() + { + var law = Law(); Ok(law.Evaluate(300, .00065, out var initial)); + Ok(law.EvaluateAtReferenceVolume(300, .00065, V0, out var same)); Require(initial == same); + foreach (double next in new[] { V0 - 1e-8, V0 + 1e-8 }) + { + Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, initial.StoredEnergyJoules, V0, next, out var result)); + double p = (initial.MassKilograms / Density - next) / C; + Near(result.Fluid.PressurePascals, p, 1e-8); Near(result.Fluid.TemperatureKelvin, 300, 1e-10); + Near(result.EnergyChangeJoules, -(next - V0) * (initial.PressurePascals + p) / 2, 1e-14); + Near(result.Fluid.StoredEnergyJoules, initial.StoredEnergyJoules + result.EnergyChangeJoules, 0); + Near(result.EntropyResidualJoulesPerKelvin, 0, 1e-13); + } + } + private static void Vapor() + { + var law = Law(); Ok(law.Evaluate(500, 1e-8, out var initial)); + foreach (double next in new[] { V0 * .8, V0 * 1.25 }) + { + const double gamma = 1.4; double invariant = initial.PressurePascals * Math.Pow(initial.VolumeCubicMeters, gamma); + double lo = 0, hi = initial.PressurePascals * 10; + for (int i = 0; i < 80; ++i) { double p = (lo + hi) / 2; if (p * Math.Pow(next + C * p, gamma) > invariant) hi = p; else lo = p; } + double pressure = (lo + hi) / 2, volume = next + C * pressure, t = pressure * volume / (initial.MassKilograms * R); + double energy = initial.MassKilograms * Cv * t + .5 * C * pressure * pressure; + Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, initial.StoredEnergyJoules, V0, next, out var result)); + Require(result.Fluid.Phase == FuelVolumePhase.Vapor); + Near(result.Fluid.TemperatureKelvin, t, 1e-9); Near(result.Fluid.PressurePascals, pressure, 1e-7); + Near(result.EnergyChangeJoules, energy - initial.StoredEnergyJoules, 1e-13); Near(result.EntropyResidualJoulesPerKelvin, 0, 1e-15); + } + } + private static (double S, double E, double P) Reference(double temperature, double mass, double referenceVolume) + { + double p0 = 100000 * Math.Pow(temperature / 400, (Cv + R - Cl) / R) * Math.Exp(Offset / R * (1 / temperature - 1 / 400d)); + double lo = p0, hi = p0 * Math.E; + for (int i = 0; i < 75; ++i) + { double p = (lo + hi) / 2; if (Math.Log(p / p0) > p / (Density * R * temperature)) hi = p; else lo = p; } + double pressure = (lo + hi) / 2, volume = referenceVolume + C * pressure; + double vapor; + if (mass >= Density * volume) { pressure = (mass / Density - referenceVolume) / C; vapor = 0; } + else if (mass <= pressure * volume / (R * temperature)) + { pressure = (Math.Sqrt(referenceVolume * referenceVolume + 4 * C * mass * R * temperature) - referenceVolume) / (2 * C); vapor = mass; } + else vapor = (Density * volume - mass) / (Density * R * temperature / pressure - 1); + double entropy = (mass - vapor) * Cl * Math.Log(temperature / 400) + vapor * ((Cv + R) * Math.Log(temperature / 400) - R * Math.Log(pressure / 100000) + 300000 / 400d + R); + double energy = (mass - vapor) * (Cl * temperature + Offset) + vapor * Cv * temperature + .5 * C * pressure * pressure; + return (entropy, energy, pressure); + } + private static void Phase() + { + var law = Law(); const double mass = .0003; + foreach (double t in new[] { 280d, 400d, 520d }) + { + var initial = Reference(t, mass, V0); + foreach (double next in new[] { V0 * .75, V0 * 1.25 }) + { + double lo = 200, hi = 600; + for (int i = 0; i < 65; ++i) { double mid = (lo + hi) / 2; if (Reference(mid, mass, next).S > initial.S) hi = mid; else lo = mid; } + double expectedT = (lo + hi) / 2; var expected = Reference(expectedT, mass, next); + Ok(law.AdiabaticReferenceVolume(mass, initial.E, V0, next, out var result)); + Require(result.Fluid.Phase == FuelVolumePhase.LiquidVapor); + Near(result.Fluid.TemperatureKelvin, expectedT, 1e-9); Near(result.Fluid.PressurePascals, expected.P, 1e-6); + Near(result.EnergyChangeJoules, expected.E - initial.E, 2e-10); Near(result.EntropyResidualJoulesPerKelvin, 0, 2e-12); + } + } + } + private static void Limits() + { + var law = Law(); Ok(law.Evaluate(400, .0003, out var initial)); + foreach (double relative in new[] { 1e-6, 1e-8, 1e-10, 1e-12, 1e-14 }) + { + double next = V0 * (1 + relative); Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, initial.StoredEnergyJoules, V0, next, out var move)); + Near(move.MeanPressurePascals, initial.PressurePascals, .5); + } + double volume = V0, energy = initial.StoredEnergyJoules; + for (int n = 1; n <= 1000; ++n) + { + double next = n == 1000 ? V0 : V0 + .1 * V0 * Math.Sin(n * 2 * Math.PI / 1000); + Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, energy, volume, next, out var result)); energy = result.Fluid.StoredEnergyJoules; volume = next; + } + Near(energy, initial.StoredEnergyJoules, 2e-9); + Require(law.AdiabaticReferenceVolume(.0003, initial.StoredEnergyJoules, V0, -1, out var bad) == FuelVolumeStatus.InvalidInput && bad == default); + for (int n = 0; n < 20; ++n) Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, initial.StoredEnergyJoules, V0, V0 * 1.01, out _)); + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int n = 0; n < 50; ++n) Ok(law.AdiabaticReferenceVolume(initial.MassKilograms, initial.StoredEnergyJoules, V0, V0 * 1.01, out _)); + Require(GC.GetAllocatedBytesForCurrentThread() == allocated, "Moving-volume work allocated."); + } +} diff --git a/tests/Power.Tests/PistonAssetChecks.cs b/tests/Power.Tests/PistonAssetChecks.cs index bd442b6..b445d0e 100644 --- a/tests/Power.Tests/PistonAssetChecks.cs +++ b/tests/Power.Tests/PistonAssetChecks.cs @@ -36,7 +36,7 @@ private static void Compare(PowerAsset original, PowerAsset decoded) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(asset.Nodes.SequenceEqual(decoded.Nodes) && asset.Components.SequenceEqual(decoded.Components)); Require(asset.Model.Fingerprint == decoded.Model.Fingerprint && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "battery-regulated-pump-v13.powerasset")); @@ -50,7 +50,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), piston = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 40 * 2, clutch = piston + 104; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), piston = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 40 * 2, clutch = piston + 104; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } void Change(int offset, int value) @@ -61,7 +61,7 @@ void Change(int offset, int value) var duplicate = bytes.Take(piston + 104).Concat(bytes.Skip(piston).Take(104)).Concat(bytes.Skip(piston + 104)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 92), 2); Reject(duplicate); var missing = bytes.Take(piston).Concat(bytes.Skip(piston + 104)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 92), 0); Reject(missing); - var downgrade = bytes.Take(counts + 92).Concat(bytes.Skip(counts + 140).Take(piston - counts - 140)).Concat(bytes.Skip(clutch + 40)).ToArray(); + var downgrade = bytes.Take(counts + 92).Concat(bytes.Skip(counts + 160).Take(piston - counts - 160)).Concat(bytes.Skip(clutch + 40)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 13); Reject(downgrade); } } diff --git a/tests/Power.Tests/PressureControllerAssetChecks.cs b/tests/Power.Tests/PressureControllerAssetChecks.cs index 953182c..8b10347 100644 --- a/tests/Power.Tests/PressureControllerAssetChecks.cs +++ b/tests/Power.Tests/PressureControllerAssetChecks.cs @@ -38,7 +38,7 @@ private static void Compare(PowerAsset original, PowerAsset upgraded) private static void Replay() { var original = Asset(); byte[] bytes = AssetCodec.Encode(original); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); Require(original.Components.SequenceEqual(decoded.Components) && original.Nodes.SequenceEqual(decoded.Nodes)); Require(original.Model.Fingerprint == decoded.Model.Fingerprint && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(original, decoded); @@ -53,7 +53,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 40 + 32; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 40 + 32; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } void Change(int offset, int value) @@ -66,7 +66,7 @@ void Change(int offset, int value) BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 80), 2); Reject(duplicate); var missing = bytes.Take(extension).Concat(bytes.Skip(extension + 80)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 80), 0); Reject(missing); - var downgrade = bytes.Take(counts + 80).Concat(bytes.Skip(counts + 140).Take(extension - counts - 140)).Concat(bytes.Skip(extension + 80)).ToArray(); + var downgrade = bytes.Take(counts + 80).Concat(bytes.Skip(counts + 160).Take(extension - counts - 160)).Concat(bytes.Skip(extension + 80)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 11); Reject(downgrade); Throws(() => PowerAsset.Create(PressureControllerChecks.Plant(), "Owned voltage", new string('b', 64), 100_000_000, 10_000_000, [new(25_000_000, 100, 0)], [])); diff --git a/tests/Power.Tests/Program.cs b/tests/Power.Tests/Program.cs index fc1b2f2..aa4457b 100644 --- a/tests/Power.Tests/Program.cs +++ b/tests/Power.Tests/Program.cs @@ -11,7 +11,7 @@ string sample = Path.Combine(AppContext.BaseDirectory, "electrothermal.power.json"); string source = File.ReadAllText(sample); -var checks = CoreChecks.All.Concat(AssetChecks.All).Concat(EngineChecks.All).Concat(GasChecks.All).Concat(ClutchChecks.All).Concat(IdealGearChecks.All).Concat(DctControllerChecks.All).Concat(DctControllerAssetChecks.All).Concat(DctControllerIntegrationChecks.All).Concat(RavigneauxIntegrationChecks.All).Concat(ResolvedPlanetIntegrationChecks.All).Concat(HydraulicActuationChecks.All).Concat(HydraulicActuationIntegrationChecks.All).Concat(ResolvedPlanetChecks.All).Concat(ResolvedPlanetAssetChecks.All).Concat(RavigneauxChecks.All).Concat(RavigneauxAssetChecks.All).Concat(DualClutchChecks.All).Concat(DualClutchIntegrationChecks.All).Concat(PumpChecks.All).Concat(PumpAssemblyChecks.All).Concat(PressureControllerChecks.All).Concat(BatteryChecks.All).Concat(PistonChecks.All).Concat(SpoolChecks.All).Concat(SpoolAssetChecks.All).Concat(SpoolIntegrationChecks.All).Concat(PistonAssetChecks.All).Concat(PistonIntegrationChecks.All).Concat(BatteryAssetChecks.All).Concat(BatteryIntegrationChecks.All).Concat(PressureControllerAssetChecks.All).Concat(PressureControllerIntegrationChecks.All).Concat(PumpAssetChecks.All).Concat(HydraulicChecks.All).Concat(HydraulicAssetChecks.All).Concat(ConverterChecks.All).Concat(ConverterAssetChecks.All).Concat(GearModelChecks.All).Concat(GearAssetChecks.All).Concat(ClutchModelChecks.All).Concat(ClutchAssetChecks.All).Concat(GasPistonChecks.All).Concat(GasPistonAssetChecks.All).Concat(GasPistonIntegrationChecks.All).Concat(GasModelChecks.All).Concat(GasAssetChecks.All).Concat(MovingCylinderChecks.All).Concat(ValveTimingChecks.All).Concat(ClosurePredictionChecks.All).Concat(ClosurePredictionAssetChecks.All).Concat(ClosurePredictionIntegrationChecks.All).Concat(SolenoidChecks.All).Concat(SolenoidAssetChecks.All).Concat(SolenoidIntegrationChecks.All).Concat(LiquidFuelInjectorChecks.All).Concat(LiquidFuelInjectorAssetChecks.All).Concat(LiquidFuelInjectorIntegrationChecks.All).Concat(FuelFilmChecks.All).Concat(FuelFilmAssetChecks.All).Concat(FuelFilmIntegrationChecks.All).Concat(FuelInjectorChecks.All).Concat(FuelInjectorAssetChecks.All).Concat(FuelInjectorIntegrationChecks.All).Concat(CombustionChecks.All).Concat(CombustionAssetChecks.All).Concat(GasIntegrationChecks.All).Concat(MovingCylinderIntegrationChecks.All).Concat(ValveTimingIntegrationChecks.All).Concat(CombustionIntegrationChecks.All).Concat(ClutchIntegrationChecks.All).Concat(GearIntegrationChecks.All).Concat(ConverterIntegrationChecks.All).Concat(HydraulicIntegrationChecks.All).Concat(PumpIntegrationChecks.All).Concat(PumpAssemblyIntegrationChecks.All).Concat(AgentChecks.All).Concat(new (string, Action)[] +var checks = CoreChecks.All.Concat(RelaxingBoundaryIntegrationChecks.All).Concat(RelaxingFuelWorkChecks.All).Concat(RelaxingBoundaryChecks.All).Concat(RelaxingBoundaryAssetChecks.All).Concat(RelaxingFuelIntegrationChecks.All).Concat(RelaxingFuelChecks.All).Concat(RelaxingFuelGraphChecks.All).Concat(RelaxingFuelAssetChecks.All).Concat(EquilibriumNozzleIntegrationChecks.All).Concat(EquilibriumNozzleChecks.All).Concat(EquilibriumNozzleGraphChecks.All).Concat(EquilibriumNozzleAssetChecks.All).Concat(CompressibleNozzleIntegrationChecks.All).Concat(FrozenCompressibleNozzleChecks.All).Concat(CompressibleNozzleChecks.All).Concat(CompressibleNozzleAssetChecks.All).Concat(CompressibleChamberIntegrationChecks.All).Concat(CompressibleChamberChecks.All).Concat(CompressibleChamberAssetChecks.All).Concat(CompressibleFuelChecks.All).Concat(EquilibriumDuctChecks.All).Concat(EquilibriumDuctAssetChecks.All).Concat(EquilibriumDuctIntegrationChecks.All).Concat(FuelPipeChecks.All).Concat(FuelPipeAssetChecks.All).Concat(FuelPipeIntegrationChecks.All).Concat(LiquidColumnChecks.All).Concat(FuelDischargeChecks.All).Concat(FuelDischargeAssetChecks.All).Concat(FuelDischargeIntegrationChecks.All).Concat(FrozenFuelNozzleChecks.All).Concat(FiniteFuelReceiverChecks.All).Concat(FuelChamberChecks.All).Concat(FuelChamberAssetChecks.All).Concat(FuelChamberIntegrationChecks.All).Concat(MovingFuelVolumeChecks.All).Concat(EquilibriumFuelNetworkChecks.All).Concat(EquilibriumFuelNetworkAssetChecks.All).Concat(EquilibriumFuelNetworkIntegrationChecks.All).Concat(CompliantFuelVolumeChecks.All).Concat(TankPhaseChecks.All).Concat(TankPhaseAssetChecks.All).Concat(TankPhaseIntegrationChecks.All).Concat(FuelPhaseEquilibriumChecks.All).Concat(FuelPhaseEquilibriumAssetChecks.All).Concat(FuelPhaseEquilibriumIntegrationChecks.All).Concat(AssetChecks.All).Concat(EngineChecks.All).Concat(GasChecks.All).Concat(ClutchChecks.All).Concat(IdealGearChecks.All).Concat(DctControllerChecks.All).Concat(DctControllerAssetChecks.All).Concat(DctControllerIntegrationChecks.All).Concat(RavigneauxIntegrationChecks.All).Concat(ResolvedPlanetIntegrationChecks.All).Concat(LiquidFuelTankAssetChecks.All).Concat(LiquidRailReturnAssetChecks.All).Concat(LiquidRailReturnChecks.All).Concat(LiquidFuelTankChecks.All).Concat(TankHeadspaceChecks.All).Concat(TankHeadspaceAssetChecks.All).Concat(TankHeadspaceIntegrationChecks.All).Concat(LiquidRailFeedChecks.All).Concat(LiquidRailFeedAssetChecks.All).Concat(LiquidRailReturnIntegrationChecks.All).Concat(LiquidFuelTankIntegrationChecks.All).Concat(LiquidRailFeedIntegrationChecks.All).Concat(AtControllerChecks.All).Concat(AtControllerAssetChecks.All).Concat(AtControllerIntegrationChecks.All).Concat(HydraulicActuationChecks.All).Concat(HydraulicActuationIntegrationChecks.All).Concat(ResolvedPlanetChecks.All).Concat(ResolvedPlanetAssetChecks.All).Concat(RavigneauxChecks.All).Concat(RavigneauxAssetChecks.All).Concat(DualClutchChecks.All).Concat(DualClutchIntegrationChecks.All).Concat(PumpChecks.All).Concat(PumpAssemblyChecks.All).Concat(PressureControllerChecks.All).Concat(BatteryChecks.All).Concat(PistonChecks.All).Concat(SpoolChecks.All).Concat(SpoolAssetChecks.All).Concat(SpoolIntegrationChecks.All).Concat(PistonAssetChecks.All).Concat(PistonIntegrationChecks.All).Concat(BatteryAssetChecks.All).Concat(BatteryIntegrationChecks.All).Concat(PressureControllerAssetChecks.All).Concat(PressureControllerIntegrationChecks.All).Concat(PumpAssetChecks.All).Concat(HydraulicChecks.All).Concat(HydraulicAssetChecks.All).Concat(ConverterChecks.All).Concat(ConverterAssetChecks.All).Concat(GearModelChecks.All).Concat(GearAssetChecks.All).Concat(ClutchModelChecks.All).Concat(ClutchAssetChecks.All).Concat(GasPistonChecks.All).Concat(GasPistonAssetChecks.All).Concat(GasPistonIntegrationChecks.All).Concat(GasModelChecks.All).Concat(GasAssetChecks.All).Concat(MovingCylinderChecks.All).Concat(ValveTimingChecks.All).Concat(ClosurePredictionChecks.All).Concat(ClosurePredictionAssetChecks.All).Concat(ClosurePredictionIntegrationChecks.All).Concat(SolenoidChecks.All).Concat(SolenoidAssetChecks.All).Concat(SolenoidIntegrationChecks.All).Concat(LiquidFuelInjectorChecks.All).Concat(LiquidFuelInjectorAssetChecks.All).Concat(LiquidFuelInjectorIntegrationChecks.All).Concat(FuelFilmChecks.All).Concat(FuelFilmAssetChecks.All).Concat(FuelFilmIntegrationChecks.All).Concat(FuelInjectorChecks.All).Concat(FuelInjectorAssetChecks.All).Concat(FuelInjectorIntegrationChecks.All).Concat(CombustionChecks.All).Concat(CombustionAssetChecks.All).Concat(GasIntegrationChecks.All).Concat(MovingCylinderIntegrationChecks.All).Concat(ValveTimingIntegrationChecks.All).Concat(CombustionIntegrationChecks.All).Concat(ClutchIntegrationChecks.All).Concat(GearIntegrationChecks.All).Concat(ConverterIntegrationChecks.All).Concat(HydraulicIntegrationChecks.All).Concat(PumpIntegrationChecks.All).Concat(PumpAssemblyIntegrationChecks.All).Concat(AgentChecks.All).Concat(new (string, Action)[] { ("cylinder JSON / all replay boundaries / strict parameters / pressure checks", () => { diff --git a/tests/Power.Tests/PumpAssetChecks.cs b/tests/Power.Tests/PumpAssetChecks.cs index 06330b5..c28bf67 100644 --- a/tests/Power.Tests/PumpAssetChecks.cs +++ b/tests/Power.Tests/PumpAssetChecks.cs @@ -41,13 +41,13 @@ private static void Replay() private static void Corruption() { var asset=Asset();var bytes=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name); - int pump=counts+140+44*asset.Nodes.Count+156*asset.Components.Count+40+64,relief=pump+32; + int pump=counts+160+44*asset.Nodes.Count+156*asset.Components.Count+40+64,relief=pump+32; void Reject(byte[] bad){SHA256.HashData(bad.AsSpan(0,bad.Length-32)).CopyTo(bad,bad.Length-32);Throws(()=>AssetCodec.Decode(bad));} void Change(int offset,int value){var bad=(byte[])bytes.Clone();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(offset),value);Reject(bad);} Change(counts+72,-1);Change(counts+72,65);Change(counts+72,0);Change(counts+76,0);Change(counts+76,65); Change(pump,-1);Change(pump,1);Change(pump+4,3);Change(pump+4,1);Change(pump+16,(int)Unit.CubicMeter);Change(pump+28,(int)Unit.NewtonMeter); Change(relief,0);Change(relief,4);Change(relief+12,(int)Unit.NewtonMeter); var duplicate=bytes.Take(pump+32).Concat(bytes.Skip(pump).Take(32)).Concat(bytes.Skip(pump+32)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts+72),2);Reject(duplicate); - var down=bytes.Take(counts+72).Concat(bytes.Skip(counts+140).Take(pump-counts-140)).Concat(bytes.Skip(relief+16)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),10);Reject(down); + var down=bytes.Take(counts+72).Concat(bytes.Skip(counts+160).Take(pump-counts-160)).Concat(bytes.Skip(relief+16)).ToArray();BinaryPrimitives.WriteInt32LittleEndian(down.AsSpan(8),10);Reject(down); } } diff --git a/tests/Power.Tests/RavigneauxAssetChecks.cs b/tests/Power.Tests/RavigneauxAssetChecks.cs index 29ca084..a8bb3f4 100644 --- a/tests/Power.Tests/RavigneauxAssetChecks.cs +++ b/tests/Power.Tests/RavigneauxAssetChecks.cs @@ -32,7 +32,7 @@ private static void Compare(PowerAsset a, PowerAsset b) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Components.SequenceEqual(asset.Components)); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Components.SequenceEqual(asset.Components)); Require(bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "controlled-dual-clutch-v22.powerasset")); Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 22 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "db90df5fa9ca90067341abdcaf8c3a4a38316794a4b3c8ecc7c89a852375c24e"); @@ -41,7 +41,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int record = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 28 * 5; + int record = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 28 * 5; void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } foreach (var change in new[] { (counts + 52, -1), (counts + 52, 0), (counts + 52, 65), (record + 8, 0), (record + 12, 0), (record + 12, 101) }) { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1), change.Item2); Reject(bad); } diff --git a/tests/Power.Tests/RelaxingBoundaryAssetChecks.cs b/tests/Power.Tests/RelaxingBoundaryAssetChecks.cs new file mode 100644 index 0000000..7baf6b7 --- /dev/null +++ b/tests/Power.Tests/RelaxingBoundaryAssetChecks.cs @@ -0,0 +1,30 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Core; +using Power.Assets; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class RelaxingBoundaryAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing boundary asset / moving work vapor metering and authentic v40 replay",Replay), + ("relaxing boundary asset / old-format topology and equilibrium transit rejection",Corruption)]; + private static PowerAsset Asset(ModelDefinition d)=>PowerAsset.Create(d,"Relaxing boundary",new string('d',64),100000,10000,[],[]); + private static void Sign(byte[] b)=>SHA256.HashData(b.AsSpan(0,b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + {var left=a.CreatePlayback();var right=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount];for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds){if(at>left.TimeNanoseconds)Require(left.Advance(at-left.TimeNanoseconds)==SimulationStatus.Ok);while(right.TimeNanoseconds(()=>AssetCodec.Decode(bytes));} + var forged=AssetCodec.Encode(Asset(RelaxingBoundaryChecks.NozzleModel()));int nozzle=forged.Length-32-68;BinaryPrimitives.WriteInt32LittleEndian(forged.AsSpan(nozzle+24),(int)FuelDischargePhaseModel.Equilibrium);Sign(forged);Throws(()=>AssetCodec.Decode(forged)); + } +} diff --git a/tests/Power.Tests/RelaxingBoundaryChecks.cs b/tests/Power.Tests/RelaxingBoundaryChecks.cs new file mode 100644 index 0000000..fa023b6 --- /dev/null +++ b/tests/Power.Tests/RelaxingBoundaryChecks.cs @@ -0,0 +1,92 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; +namespace Power.Tests; +internal static class RelaxingBoundaryChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing chamber / independent phase inventory shaft work energy and entropy",Chamber), + ("relaxing nozzle / frozen vapor inventory enthalpy wall heat and entropy",Nozzle), + ("relaxing pump / duct supply shaft check valves and physical needle",Pump), + ("relaxing chamber / independent ideal-vapor shaft ODE refinement",MechanicalReference), + ("relaxing boundaries / coupled finite-rate transport temporal refinement",Refinement), + ("relaxing boundaries / shared reservoirs receive phase source once",Shared), + ("relaxing boundaries / complete rollback cancellation forks and zero allocations",Transactions), + ("relaxing boundaries / domain transit geometry ownership and immutable contracts",Contracts)]; + internal static ModelDefinition NozzleModel(ulong tick=1000,ulong tau=1000000,double area=1e-8) + { + var m=RelaxingFuelGraphChecks.Material(tau); + return new(){StepNanoseconds=tick,Nodes=[NodeDefinition.RelaxingFuelVolume(1,1e-5,1e-5*RelaxingFuelChecks.Density(2e5,450,.3),450,m,.3),NodeDefinition.RelaxingFuelVolume(2,1e-4,1e-4*RelaxingFuelChecks.Density(1e5,450,.1),450,m,.1),NodeDefinition.Thermal(3,1,350)],Components=[ComponentDefinition.CompressibleNozzleValve(10,1,2,3,CompressibleNozzleChecks.Nozzle(area),100)]}; + } + internal static ModelDefinition ChamberModel(ulong tick=10000) + { + var m=RelaxingFuelGraphChecks.Material();return new(){StepNanoseconds=tick,Nodes=[NodeDefinition.RelaxingFuelVolume(1,1e-7,1e-7*RelaxingFuelChecks.Density(1e5,450,.3),450,m,.3),NodeDefinition.Rotor(4,1e-5,100)],Components=[ComponentDefinition.CompressibleChamber(12,4,1,CompressibleChamberChecks.Geometry)]}; + } + internal static ModelDefinition PumpModel() + { + var d=CompressibleNozzleChecks.PumpModel();var law=CompressibleFuelChecks.Law(); + return d with{Nodes=d.Nodes.Select(n=>{if(n.Domain!=Domain.CompressibleFuel)return n;Require(law.Evaluate(n.Position.Value/n.Storage.Value,n.Initial.Value,out var p));double rho=RelaxingFuelChecks.Density(p.PressurePascals,n.Initial.Value,.001);return n with{Domain=Domain.RelaxingFuel,Position=new(n.Storage.Value*rho,Unit.Kilogram),InitialVaporMassFraction=new(.001,Unit.Fraction),Fuel=n.Fuel! with{PhaseRelaxationTimeNanoseconds=1000000}};}).ToArray(),Components=d.Components.Select(c=>c.Kind==ComponentKind.EquilibriumFuelDuct?c with{Kind=ComponentKind.RelaxingFuelDuct}:c).ToArray()}; + } + private static void Step(Simulation s,ulong ns){var status=s.Step(ns);if(status!=SimulationStatus.Ok)throw new InvalidOperationException("Relaxing boundary failed at "+Snapshot(s).TimeNanoseconds+": "+status);} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s){Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14);Near(Value(s,0,Field.FuelResidual),0,1e-14);Near(Value(s,0,Field.VaporMassResidual),0,1e-14);} + private static void Chamber() + { + var s=CompiledModel.Compile(ChamberModel()).CreateSimulation();double vapor=Value(s,1,Field.VaporMass),energy=Value(s,1,Field.InternalEnergy),entropy=Value(s,1,Field.Entropy);Step(s,20000000);Balance(s); + Near(Value(s,1,Field.InternalEnergy)-energy,Value(s,12,Field.HydraulicWork),1e-12);Near(Value(s,1,Field.VaporMass)-vapor,Value(s,1,Field.EvaporatedFuelMass)-Value(s,1,Field.CondensedFuelMass),1e-18); + Near(Value(s,1,Field.Entropy)-entropy,Value(s,1,Field.EntropyProduced),1e-12);Require(Value(s,1,Field.EntropyProduced)>0&&Value(s,12,Field.Volume)!=1e-7); + } + private static void Nozzle() + { + var s=CompiledModel.Compile(NozzleModel(tau:3600000000000)).CreateSimulation();double va=Value(s,1,Field.VaporMass),vb=Value(s,2,Field.VaporMass);Step(s,1000000);Balance(s);double transfer=Value(s,10,Field.TotalVaporDelivered);Require(transfer>0); + Near(Value(s,1,Field.VaporMass)-va,-transfer+Value(s,1,Field.EvaporatedFuelMass)-Value(s,1,Field.CondensedFuelMass),1e-18);Near(Value(s,2,Field.VaporMass)-vb,transfer+Value(s,2,Field.EvaporatedFuelMass)-Value(s,2,Field.CondensedFuelMass),1e-18); + Near(transfer,.3*Value(s,10,Field.TotalFuelDelivered),1e-15);Require(Math.Abs(Value(s,1,Field.VaporMassFraction)-Value(s,1,Field.EquilibriumVaporMassFraction))>1e-3); + Near(Value(s,10,Field.HeatRejected)+Value(s,10,Field.FluidHeat),Value(s,10,Field.JetKineticEnergy),1e-16);Require(Value(s,10,Field.EntropyProduced)>0); + } + private static void Pump() + { + var s=CompiledModel.Compile(PumpModel()).CreateSimulation();double vapor=Value(s,6,Field.VaporMass);for(int i=0;i<2000;++i)Step(s,10000);Balance(s); + Require(Value(s,20,Field.TotalFuelDelivered)>0&&Value(s,21,Field.TotalFuelDelivered)>0&&Value(s,21,Field.TotalVaporDelivered)>0); + Near(Value(s,6,Field.VaporMass)-vapor,Value(s,21,Field.TotalVaporDelivered)+Value(s,6,Field.EvaporatedFuelMass)-Value(s,6,Field.CondensedFuelMass),1e-16);Require(Value(s,21,Field.Opening) is >=0 and <=1); + Console.WriteLine($"Relaxing pump needle delivery: mass={Value(s,21,Field.TotalFuelDelivered):R}, vapor={Value(s,21,Field.TotalVaporDelivered):R} kg."); + } + private static void MechanicalReference() + { + const double initialAngle=.6,initialSpeed=100,duration=.002,minimum=1e-7,swept=2e-7,inertia=1e-5; + double Volume(double a)=>minimum+swept*Math.Pow(Math.Sin(a/2),2);double v0=Volume(initialAngle); + double Acceleration(double angle)=>1e5*Math.Pow(v0/Volume(angle),1.4)*swept*.5*Math.Sin(angle)/inertia; + double angle=initialAngle,speed=initialSpeed,h=duration/20000; + for(int i=0;i<20000;++i){double a1=speed,b1=Acceleration(angle),a2=speed+h*b1/2,b2=Acceleration(angle+h*a1/2),a3=speed+h*b2/2,b3=Acceleration(angle+h*a2/2),a4=speed+h*b3,b4=Acceleration(angle+h*a3);angle+=h*(a1+2*a2+2*a3+a4)/6;speed+=h*(b1+2*b2+2*b3+b4)/6;} + var errors=new List();foreach(ulong tick in new ulong[]{100000,50000,25000,12500}) + { + var m=EquilibriumDuctChecks.Material(true) with{PhaseRelaxationTimeNanoseconds=1000000};var d=new ModelDefinition{StepNanoseconds=tick,Nodes=[NodeDefinition.RelaxingFuelVolume(1,v0,v0*1e5/(287*500),500,m,1),NodeDefinition.Rotor(4,inertia,initialSpeed,initialAngle)],Components=[ComponentDefinition.CompressibleChamber(12,4,1,CompressibleChamberChecks.Geometry)]};var s=CompiledModel.Compile(d).CreateSimulation();Step(s,2000000);Balance(s);errors.Add(Math.Abs(Value(s,4,Field.Speed)-speed)); + } + Console.WriteLine("Relaxing chamber independent vapor shaft errors: "+string.Join(", ",errors.Select(x=>x.ToString("R"))));for(int i=1;i3.7 and <4.3); + } + private static void Refinement() + { + var reference=CompiledModel.Compile(NozzleModel(50,1000000,1e-5)).CreateSimulation();Step(reference,100000);double exact=Value(reference,1,Field.VaporMassFraction);var errors=new List(); + foreach(ulong tick in new ulong[]{4000,2000,1000,500}){var s=CompiledModel.Compile(NozzleModel(tick,1000000,1e-5)).CreateSimulation();Step(s,100000);Balance(s);errors.Add(Math.Abs(Value(s,1,Field.VaporMassFraction)-exact));} + Console.WriteLine("Relaxing boundary temporal quality errors: "+string.Join(", ",errors.Select(x=>x.ToString("R"))));for(int i=1;ierrors[i]); + } + private static void Shared() + { + var d=NozzleModel(10000);d=d with{Components=[d.Components[0] with{InitialInput=new(0,Unit.Fraction)},d.Components[0] with{Id=11,InputChannel=101,InitialInput=new(0,Unit.Fraction)}]};var s=CompiledModel.Compile(d).CreateSimulation();double initial=Value(s,1,Field.VaporMassFraction),target=Value(s,1,Field.EquilibriumVaporMassFraction);Step(s,2000000);Balance(s);Near(Value(s,1,Field.VaporMassFraction),target+(initial-target)*Math.Exp(-2),3e-14); + } + private static void Transactions() + { + var d=NozzleModel();d=d with{Nodes=[..d.Nodes,NodeDefinition.Rotor(4,.1)],Components=[..d.Components,ComponentDefinition.Torque(20,4,200,0)]};var s=CompiledModel.Compile(d).CreateSimulation();var fork=s.Fork();Step(s,10000);for(int i=0;i<10;++i)Step(fork,1000);Require(Snapshot(s)==Snapshot(fork));var before=Snapshot(s); + Require(s.Step(10000,cancellationToken:new CancellationToken(true))==SimulationStatus.Cancelled&&Snapshot(s)==before);Require(s.Step(10000,[new(before.TimeNanoseconds+5000,200,double.MaxValue)])==SimulationStatus.NumericalFailure&&Snapshot(s)==before);Step(fork,1000);Require(Snapshot(s)==before); + var values=new Scalar[s.Model.OutputCount];for(int i=0;i<10;++i){Step(s,1000);s.ReadSnapshot(values);}long allocation=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<20;++i){Step(s,1000);s.ReadSnapshot(values);}Require(GC.GetAllocatedBytesForCurrentThread()==allocation); + } + private static void Contracts() + { + var d=NozzleModel();Require(!CompiledModel.TryCompile(d with{Nodes=d.Nodes.Select(n=>n.Id==2?NodeDefinition.CompressibleFuelVolume(2,n.Storage.Value,n.Position.Value,n.Initial.Value,EquilibriumDuctChecks.Material()):n).ToArray()},out _,out _)); + Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0] with{CompressibleNozzle=d.Components[0].CompressibleNozzle! with{PhaseModel=FuelDischargePhaseModel.Equilibrium}}]},out _,out var diagnostic)&&diagnostic?.Field=="compressible_nozzle.phase_mode"); + d=ChamberModel();Require(!CompiledModel.TryCompile(d with{Components=[d.Components[0],d.Components[0] with{Id=13}]},out _,out _));var model=CompiledModel.Compile(d);Require(model.HasRelaxingFuelBoundaries&&model.Fidelity=="homogeneous_relaxing_fuel_boundaries"); + d=NozzleModel(tau:3600000000000);d=d with{Nodes=d.Nodes.Select(n=>n.Id==2?n with{Position=new(n.Storage.Value*RelaxingFuelChecks.Density(2e5,450,.1),Unit.Kilogram)}:n).ToArray()};var closed=CompiledModel.Compile(d).CreateSimulation();Step(closed,1000);Near(Value(closed,10,Field.TotalFuelDelivered),0,0); + } +} diff --git a/tests/Power.Tests/RelaxingBoundaryIntegrationChecks.cs b/tests/Power.Tests/RelaxingBoundaryIntegrationChecks.cs new file mode 100644 index 0000000..f6e78f0 --- /dev/null +++ b/tests/Power.Tests/RelaxingBoundaryIntegrationChecks.cs @@ -0,0 +1,33 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Core; +using Power.Agent; +using Power.Assets; +using Power.Experiments; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class RelaxingBoundaryIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing boundary documents / shaft pump needle phase and complete portable evidence",Documents), + ("relaxing boundary agent / discoverable transit limits actionable errors and forks",Sessions)]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static void Documents() + { + foreach(string name in new[]{"relaxing-fuel-chamber","relaxing-pump-needle"}) + { + var d=ModelDocument.Load(Path.Combine(AppContext.BaseDirectory,name+".power.json"));var r=ExperimentRunner.Evaluate(d);Require(r.Passed&&r.Replay.SampleHashesMatch&&r.Model.Fidelity=="homogeneous_relaxing_fuel_boundaries");var a=AssetCodec.Decode(AssetCodec.Encode(d.ToAsset(name)));var p=a.CreatePlayback();var values=new Scalar[a.Model.OutputCount]; + foreach(var row in r.Samples){while(p.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()]));} + } + } + private static void Sessions() + { + var caps=Data(AgentWorkspace.Capabilities());Require(caps.GetProperty("version").GetString()=="0.46.0"&&caps.GetProperty("compressible_fuel_nozzle").GetProperty("domains").EnumerateArray().Any(x=>x.GetString()=="relaxing_fuel")); + var document=Data(AgentWorkspace.ExampleModel("relaxing-pump-needle"));var w=new AgentWorkspace();string parent=Data(w.CreateSession(document)).GetProperty("session_id").GetString()!,child=Data(w.ForkSession(parent,"0")).GetProperty("session_id").GetString()!; + Data(w.StepSession(child,"0","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("revision").GetString()=="0"&&w.StepSession(child,"0","100000").Error?.Code=="revision_conflict");Data(w.StepSession(parent,"0","100000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("state_hash").GetString()==Data(w.ReadSnapshot(child)).GetProperty("state_hash").GetString());Data(w.CloseSession(parent,"1"));Data(w.CloseSession(child,"1")); + var bad=JsonNode.Parse(document.GetRawText())!;var nozzle=bad["components"]!.AsArray().First(c=>c!["kind"]!.GetValue()=="compressible_fuel_nozzle")!;nozzle["parameters"]!["phase_mode"]="equilibrium";var reply=AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement);Require(!reply.Ok&&reply.Error?.Code=="model_schema"); + } +} diff --git a/tests/Power.Tests/RelaxingFuelAssetChecks.cs b/tests/Power.Tests/RelaxingFuelAssetChecks.cs new file mode 100644 index 0000000..a9e8cd3 --- /dev/null +++ b/tests/Power.Tests/RelaxingFuelAssetChecks.cs @@ -0,0 +1,34 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Core; +using Power.Assets; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class RelaxingFuelAssetChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing asset / quality time phase histories portable replay authentic v39",Replay), + ("relaxing asset / material extension time quality units and downgrade rejection",Corruption)]; + private static PowerAsset Asset(bool duct=false)=>PowerAsset.Create(RelaxingFuelGraphChecks.Model(duct),"Relaxing fuel",new string('c',64),100000,10000,[],[]); + private static void Sign(byte[] b)=>SHA256.HashData(b.AsSpan(0,b.Length-32)).CopyTo(b,b.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + {var l=a.CreatePlayback();var r=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount];for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds){if(at>l.TimeNanoseconds)Require(l.Advance(at-l.TimeNanoseconds)==SimulationStatus.Ok);while(r.TimeNanoseconds(()=>AssetCodec.Decode(b));} + foreach(ulong tau in new ulong[]{0,3_600_000_000_001,ulong.MaxValue}){var b=bytes.ToArray();BinaryPrimitives.WriteUInt64LittleEndian(b.AsSpan(material+160),tau);Reject(b);} + foreach(double quality in new[]{-1d,1.1,double.NaN}){var b=bytes.ToArray();BinaryPrimitives.WriteDoubleLittleEndian(b.AsSpan(material+168),quality);Reject(b);} + var unit=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(unit.AsSpan(material+176),(int)Unit.Kelvin);Reject(unit); + var downgrade=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8),39);Reject(downgrade);Reject(bytes.Take(material+160).Concat(bytes.Skip(material+180)).ToArray()); + } +} diff --git a/tests/Power.Tests/RelaxingFuelChecks.cs b/tests/Power.Tests/RelaxingFuelChecks.cs new file mode 100644 index 0000000..0eccc44 --- /dev/null +++ b/tests/Power.Tests/RelaxingFuelChecks.cs @@ -0,0 +1,72 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class RelaxingFuelChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing fuel / independent fixed-quality volume energy entropy and frozen acoustics",Closure), + ("relaxing fuel / monotone fixed-quality mass-energy inversion and caloric derivative",Flash), + ("relaxing fuel / chemical affinity is fixed-energy entropy gradient",Affinity), + ("relaxing fuel / exact isolated quality kinetics energy and entropy convergence",Relaxation), + ("relaxing fuel / equilibrium limit frozen bound transactions and zero allocation",Contracts)]; + internal static RelaxingFuel Law(ulong tau=1000000)=>new(CompressibleFuelChecks.Law(),tau); + internal static double Density(double p,double t,double x)=>1/((1-x)/(750*(1+p/1.5e9))+x*287*t/p); + private static RelaxingFuelPoint Point(RelaxingFuel law,double density,double t,double x) + {Require(law.Evaluate(density,t,x,out var p));return p;} + private static void Closure() + { + var law=Law();foreach(double x in new[]{0d,.01,.3,.9,1}) + { + const double p=1e5,t=450;double rho=Density(p,t,x);var q=Point(law,rho,t,x);Near(q.Fluid.PressurePascals,p,1e-6); + double y=p/1.5e9,cold=1.5e9/750*(Math.Log(1+y)-y/(1+y)),expected=(1-x)*(2000*t-813000+cold)+x*717.5*t; + Near(q.Fluid.SpecificInternalEnergyJoulesPerKilogram,expected,2e-8); + var nozzle=new FrozenCompressibleFuelNozzle(law.Equilibrium,1e-8,.7);Require(nozzle.Evaluate(p,t,x,p,0,out var n)==FuelNozzleStatus.Success);Near(q.Fluid.SoundSpeedMetersPerSecond,n.FrozenThroatSoundSpeedMetersPerSecond,1e-8); + double entropy=(1-x)*2000*Math.Log(t/400)+x*(1004.5*Math.Log(t/400)-287*Math.Log(p/1e5)+1037);Near(q.Fluid.SpecificEntropyJoulesPerKilogramKelvin,entropy,1e-9); + } + } + private static void Flash() + { + var law=Law();foreach(double x in new[]{0d,.01,.3,.9,1})foreach(double t in new[]{250d,350,450,550}) + { + double rho=Density(1e5,t,x);var p=Point(law,rho,t,x);Require(law.Flash(rho,p.Fluid.SpecificInternalEnergyJoulesPerKilogram,x,out var q));Near(q.Fluid.TemperatureKelvin,t,2e-9);Near(q.Fluid.VaporMassFraction,x,0); + double derivative=(Point(law,rho,t+.001,x).Fluid.SpecificInternalEnergyJoulesPerKilogram-Point(law,rho,t-.001,x).Fluid.SpecificInternalEnergyJoulesPerKilogram)/.002;Near(derivative,p.Fluid.IsochoricHeatCapacityJoulesPerKilogramKelvin,2e-4); + } + } + private static void PressureBoundFlash() + { + var law=Law();foreach(double x in new[]{.01,.3,1}){double rho=Density(19e6,500,x);var p=Point(law,rho,500,x);Require(law.Flash(rho,p.Fluid.SpecificInternalEnergyJoulesPerKilogram,x,out var recovered));Near(recovered.Fluid.TemperatureKelvin,500,2e-9);} + } + private static void Affinity() + { + var law=Law();foreach(double x in new[]{.1,.3,.7}) + { + double rho=Density(1e5,450,x);var p=Point(law,rho,450,x);const double dx=1e-5;double energy=p.Fluid.SpecificInternalEnergyJoulesPerKilogram; + Require(law.Flash(rho,energy,x-dx,out var left));Require(law.Flash(rho,energy,x+dx,out var right)); + Near((right.Fluid.SpecificEntropyJoulesPerKilogramKelvin-left.Fluid.SpecificEntropyJoulesPerKilogramKelvin)/(2*dx),p.ChemicalAffinityJoulesPerKilogram/p.Fluid.TemperatureKelvin,2e-4); + } + } + private static void Relaxation() + { + var law=Law();foreach(var initial in new[]{(Pressure:1e5,Temperature:450d,Quality:.3),(Pressure:3e5,Temperature:350d,Quality:.1)}) + { + double rho=Density(initial.Pressure,initial.Temperature,initial.Quality);var p=Point(law,rho,initial.Temperature,initial.Quality);double energy=p.Fluid.SpecificInternalEnergyJoulesPerKilogram; + Require(law.Equilibrium.Flash(rho,energy,out var target));Require(Math.Abs(target.VaporMassFraction-initial.Quality)>1e-3); + Require(law.Relax(rho,energy,initial.Quality,.002,out var result));double expected=target.VaporMassFraction+(initial.Quality-target.VaporMassFraction)*Math.Exp(-2); + Near(result.Fluid.Fluid.VaporMassFraction,expected,2e-15);Near(result.Fluid.Fluid.SpecificInternalEnergyJoulesPerKilogram,energy,0);Require(result.SpecificEntropyChangeJoulesPerKilogramKelvin>=0); + double quality=initial.Quality,entropy=p.Fluid.SpecificEntropyJoulesPerKilogramKelvin; + for(int i=0;i<20;++i){Require(law.Relax(rho,energy,quality,.0001,out var step));Require(step.Fluid.Fluid.SpecificEntropyJoulesPerKilogramKelvin>=entropy-1e-9);quality=step.Fluid.Fluid.VaporMassFraction;entropy=step.Fluid.Fluid.SpecificEntropyJoulesPerKilogramKelvin;} + Near(quality,expected,2e-14);Console.WriteLine($"Relaxing fuel isolated: x={initial.Quality:R}, equilibrium={target.VaporMassFraction:R}, after_2tau={quality:R}, entropy_change={result.SpecificEntropyChangeJoulesPerKilogramKelvin:R} J/kg/K."); + } + } + private static void Contracts() + { + PressureBoundFlash(); + var law=Law();double rho=Density(1e5,450,.3);var p=Point(law,rho,450,.3);double energy=p.Fluid.SpecificInternalEnergyJoulesPerKilogram; + Require(law.Relax(rho,energy,.3,1,out var result));Require(law.Equilibrium.Flash(rho,energy,out var target));Near(result.Fluid.Fluid.VaporMassFraction,target.VaporMassFraction,0);Require(result.Fluid.Fluid.SoundSpeedMetersPerSecond>=target.SoundSpeedMetersPerSecond); + Require(!law.Evaluate(0,450,.3,out var bad)&&bad==default);Require(!law.Relax(rho,energy,.3,-1,out var invalid)&&invalid==default);Throws(()=>Law(0)); + for(int i=0;i<10;++i)Require(law.Relax(rho,energy,.3,.001,out _));long allocation=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<100;++i)Require(law.Relax(rho,energy,.3,.001,out _));Require(GC.GetAllocatedBytesForCurrentThread()==allocation); + } +} diff --git a/tests/Power.Tests/RelaxingFuelGraphChecks.cs b/tests/Power.Tests/RelaxingFuelGraphChecks.cs new file mode 100644 index 0000000..581e645 --- /dev/null +++ b/tests/Power.Tests/RelaxingFuelGraphChecks.cs @@ -0,0 +1,92 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; +namespace Power.Tests; +internal static class RelaxingFuelGraphChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing graph / exact isolated relaxation source and complete vapor balance",Closed), + ("relaxing duct / conservative vapor advection mass momentum energy and entropy",Transport), + ("relaxing duct / finite relaxation time sensitivity with complete inventories",Sensitivity), + ("relaxing duct / combined transport-source temporal refinement",Refinement), + ("relaxing duct / stiff relaxation equilibrium transport limit at resolved CFL",EquilibriumLimit), + ("relaxing duct / independent frozen acoustic cell-average mesh refinement",Acoustic), + ("relaxing graph / rollback cancellation branches and zero allocations",Transactions), + ("relaxing graph / domain material quality and bounded time contracts",Contracts)]; + internal static EquilibriumFuelDefinition Material(ulong tau=1000000)=>EquilibriumDuctChecks.Material() with{PhaseRelaxationTimeNanoseconds=tau}; + internal static ModelDefinition Model(bool duct=true,ulong tick=1000,ulong tau=1000000) + { + var material=Material(tau);double rhoA=RelaxingFuelChecks.Density(2e5,450,.3),rhoB=RelaxingFuelChecks.Density(1e5,450,.3); + if(!duct)return new(){StepNanoseconds=tick,Nodes=[NodeDefinition.RelaxingFuelVolume(1,1e-4,1e-4*rhoB,450,material,.3)],Components=[]}; + var nodes=new List{NodeDefinition.RelaxingFuelVolume(1,1e-4,1e-4*rhoA,450,material,.3),NodeDefinition.RelaxingFuelVolume(2,1e-4,1e-4*rhoB,450,material,.3),NodeDefinition.Thermal(3,1,350)}; + for(uint id=100;id<104;++id)nodes.Add(NodeDefinition.RelaxingFuelVolume(id,.025e-6,.025e-6*rhoB,450,material,.3)); + return new(){StepNanoseconds=tick,Nodes=nodes.ToArray(),Components=[ComponentDefinition.RelaxingDuct(10,1,2,3,new(){Cells=new uint[]{100,101,102,103},Area=new(1e-6,Unit.SquareMeter),LinearResistance=new(0,Unit.PascalSecondPerCubicMeter),QuadraticResistance=new(0,Unit.PascalSecondSquaredPerCubicMeterSquared),FluidHeatFraction=new(.5,Unit.Fraction)})]}; + } + private static void Step(Simulation s,ulong ns){var status=s.Step(ns);if(status!=SimulationStatus.Ok)throw new InvalidOperationException("Relaxing graph failed: "+status);} + private static SnapshotInfo Snapshot(Simulation s)=>s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s){Near(Value(s,0,Field.EnergyResidual),0,2e-7);Near(Value(s,0,Field.MassResidual),0,1e-14);Near(Value(s,0,Field.FuelResidual),0,1e-14);Near(Value(s,0,Field.VaporMassResidual),0,1e-14);} + private static void Closed() + { + var s=CompiledModel.Compile(Model(false,100000)).CreateSimulation();double initial=Value(s,1,Field.VaporMassFraction),target=Value(s,1,Field.EquilibriumVaporMassFraction),mass=Value(s,1,Field.Mass),energy=Value(s,1,Field.InternalEnergy); + Step(s,2000000);Balance(s);Near(Value(s,1,Field.VaporMassFraction),target+(initial-target)*Math.Exp(-2),2e-14);Near(Value(s,1,Field.Mass),mass,0);Near(Value(s,1,Field.InternalEnergy),energy,0); + Near(Value(s,1,Field.EvaporatedFuelMass)-Value(s,1,Field.CondensedFuelMass),mass*(Value(s,1,Field.VaporMassFraction)-initial),2e-17);Require(Value(s,1,Field.EntropyProduced)>0); + } + private static void Transport() + { + var s=CompiledModel.Compile(Model()).CreateSimulation();double massA=Value(s,1,Field.Mass),massB=Value(s,2,Field.Mass),vaporA=Value(s,1,Field.VaporMass),vaporB=Value(s,2,Field.VaporMass); + Step(s,100000);Balance(s);Near(massA-Value(s,1,Field.Mass),Value(s,10,Field.MassAtA),1e-17);Near(Value(s,2,Field.Mass)-massB,Value(s,10,Field.MassAtB),1e-17); + Near(Value(s,1,Field.VaporMass)-vaporA,-Value(s,10,Field.VaporMassAtA)+Value(s,1,Field.EvaporatedFuelMass)-Value(s,1,Field.CondensedFuelMass),2e-17); + Near(Value(s,2,Field.VaporMass)-vaporB,Value(s,10,Field.VaporMassAtB)+Value(s,2,Field.EvaporatedFuelMass)-Value(s,2,Field.CondensedFuelMass),2e-17); + double momentum=0;for(uint id=100;id<104;++id)momentum+=Value(s,id,Field.Mass)*Value(s,id,Field.LinearSpeed);Near(momentum+Value(s,10,Field.JetImpulse),0,1e-12); + Require(Value(s,10,Field.EntropyProduced)>=0&&Value(s,100,Field.EntropyProduced)>=0);Require(Value(s,10,Field.VaporMassAtA)!=0); + } + private static void Sensitivity() + { + var fast=CompiledModel.Compile(Model(tau:10000)).CreateSimulation();var slow=CompiledModel.Compile(Model(tau:10000000)).CreateSimulation();Step(fast,100000);Step(slow,100000);Balance(fast);Balance(slow); + double a=Math.Abs(Value(fast,100,Field.VaporMassFraction)-Value(fast,100,Field.EquilibriumVaporMassFraction)),b=Math.Abs(Value(slow,100,Field.VaporMassFraction)-Value(slow,100,Field.EquilibriumVaporMassFraction));Require(a();foreach(ulong tick in new ulong[]{4000,2000,1000,500}){var s=CompiledModel.Compile(Model(tick:tick)).CreateSimulation();Step(s,100000);Balance(s);errors.Add(Math.Abs(Value(s,100,Field.VaporMassFraction)-exact));} + Console.WriteLine("Relaxing duct temporal quality errors: "+string.Join(", ",errors.Select(x=>x.ToString("R"))));for(int i=1;ierrors[i]); + } + private static void Transactions() + { + var d=Model();d=d with{Nodes=[..d.Nodes,NodeDefinition.Rotor(4,.1)],Components=[..d.Components,ComponentDefinition.Torque(20,4,200,0)]};var s=CompiledModel.Compile(d).CreateSimulation();var replay=s.Fork();Step(s,10000);for(int i=0;i<10;++i)Step(replay,1000);Require(Snapshot(s)==Snapshot(replay));var before=Snapshot(s); + Require(s.Step(10000,cancellationToken:new CancellationToken(true))==SimulationStatus.Cancelled&&Snapshot(s)==before);Require(s.Step(10000,[new(before.TimeNanoseconds+5000,200,double.MaxValue)])==SimulationStatus.NumericalFailure&&Snapshot(s)==before); + Step(replay,1000);Require(Snapshot(s)==before);var values=new Scalar[s.Model.OutputCount];for(int i=0;i<10;++i){Step(s,1000);s.ReadSnapshot(values);}long allocation=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<20;++i){Step(s,1000);s.ReadSnapshot(values);}Require(GC.GetAllocatedBytesForCurrentThread()==allocation); + } + private static void EquilibriumLimit() + { + var d=EquilibriumDuctChecks.Model();d=d with{StepNanoseconds=1000};var law=CompressibleFuelChecks.Law(); + var r=d with{Nodes=d.Nodes.Select(n=>{if(n.Domain!=Domain.CompressibleFuel)return n;Require(law.Evaluate(n.Position.Value/n.Storage.Value,n.Initial.Value,out var p));return n with{Domain=Domain.RelaxingFuel,Fuel=n.Fuel! with{PhaseRelaxationTimeNanoseconds=1},InitialVaporMassFraction=new(p.VaporMassFraction,Unit.Fraction)};}).ToArray(),Components=d.Components.Select(c=>c with{Kind=ComponentKind.RelaxingFuelDuct}).ToArray()}; + var a=CompiledModel.Compile(d).CreateSimulation();var b=CompiledModel.Compile(r).CreateSimulation();Step(a,10000);Step(b,10000);Balance(b); + for(uint id=100;id<104;++id){Near(Value(a,id,Field.Pressure),Value(b,id,Field.Pressure),1e-6);Near(Value(a,id,Field.Temperature),Value(b,id,Field.Temperature),1e-9);} + } + private static void Acoustic() + { + var law=RelaxingFuelChecks.Law(3_600_000_000_000);Require(law.Equilibrium.TrySaturation(450,out var sat));double pressure=sat.PressurePascals,density=RelaxingFuelChecks.Density(pressure,450,.3);Require(law.Evaluate(density,450,.3,out var initial)); + double sound=initial.Fluid.SoundSpeedMetersPerSecond,alpha=.3*287/(.7*2000+.3*1004.5);const double length=.1,amplitude=10,time=1e-5; + double Bump(double x)=>Math.Exp(-Math.Pow((x-.05)/.02,2)); + double Average(double left,double right,double shift){double sum=0,h=(right-left)/64;for(int i=0;i<=64;++i)sum+=(i==0||i==64?1:i%2==0?2:4)*Bump(left+i*h+shift);return sum*h/3/(right-left);} + var errors=new List();foreach(int count in new[]{4,8,12}) + { + var material=Material(3_600_000_000_000);var nodes=new List{NodeDefinition.RelaxingFuelVolume(1,.001,.001*density,450,material,.3),NodeDefinition.RelaxingFuelVolume(2,.001,.001*density,450,material,.3),NodeDefinition.Thermal(3,1,350)};var ids=new List();double dx=length/count,volume=1e-7/count; + for(int i=0;ix.ToString("R"))));Require(errors[2] All=>[ + ("relaxing documents / isolated source and phase transport complete portable histories",Documents), + ("relaxing agent / explicit quality time units structured errors revisions and forks",Sessions)]; + private static JsonElement Data(AgentReply r){Require(r.Ok,r.Error?.Message??"Expected success.");return r.Data!.Value;} + private static void Documents() + { + foreach(string name in new[]{"relaxing-fuel-evaporation","relaxing-fuel-duct"}) + { + var d=ModelDocument.Load(Path.Combine(AppContext.BaseDirectory,name+".power.json"));var r=ExperimentRunner.Evaluate(d);Require(r.Passed&&r.Replay.SampleHashesMatch&&r.Model.Fidelity=="homogeneous_relaxing_fuel_transport");var a=AssetCodec.Decode(AssetCodec.Encode(d.ToAsset(name)));var p=a.CreatePlayback();var values=new Scalar[a.Model.OutputCount]; + foreach(var row in r.Samples){while(p.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()]));} + } + } + private static void Sessions() + { + Require(Data(AgentWorkspace.Capabilities()).GetProperty("relaxing_fuel").GetProperty("domain").GetString()=="relaxing_fuel");var d=Data(AgentWorkspace.ExampleModel("relaxing-fuel-evaporation"));var w=new AgentWorkspace();string parent=Data(w.CreateSession(d)).GetProperty("session_id").GetString()!,child=Data(w.ForkSession(parent,"0")).GetProperty("session_id").GetString()!; + Data(w.StepSession(child,"0","200000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("revision").GetString()=="0");Require(w.StepSession(child,"0","100000").Error?.Code=="revision_conflict");Data(w.StepSession(parent,"0","200000"));Require(Data(w.ReadSnapshot(parent)).GetProperty("state_hash").GetString()==Data(w.ReadSnapshot(child)).GetProperty("state_hash").GetString());Data(w.CloseSession(parent,"1"));Data(w.CloseSession(child,"1")); + var bad=JsonNode.Parse(d.GetRawText())!;bad["nodes"]![0]!["fuel"]!["phase_relaxation_time_ns"]=0;Require(!AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Ok); + bad["nodes"]![0]!["fuel"]!["phase_relaxation_time_ns"]=1000000;bad["nodes"]![0]!["initial_vapor_mass_fraction"]!["unit"]="k";Require(AgentWorkspace.ValidateModel(JsonDocument.Parse(bad.ToJsonString()).RootElement).Error?.Code=="model_unit"); + } +} diff --git a/tests/Power.Tests/RelaxingFuelWorkChecks.cs b/tests/Power.Tests/RelaxingFuelWorkChecks.cs new file mode 100644 index 0000000..6e826b2 --- /dev/null +++ b/tests/Power.Tests/RelaxingFuelWorkChecks.cs @@ -0,0 +1,80 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. +using Power.Core; +using static Power.Tests.CoreChecks; +namespace Power.Tests; +internal static class RelaxingFuelWorkChecks +{ + internal static IEnumerable<(string Name,Action Run)> All=>[ + ("relaxing work / independent pure liquid and ideal vapor adiabats",Limits), + ("relaxing work / independent frozen entropy inversion and pressure quadrature",Mixed), + ("relaxing work / cancellation-safe infinitesimal volume increments",Small), + ("relaxing work / reversible volume cycle at conserved vapor quality",Cycle), + ("relaxing work / bounded pressure temperature and actionable failures",Bounds), + ("relaxing work / allocation-free reversible transfer",Allocations)]; + private static (double Mass,double Volume,double Energy) Initial(double p,double t,double x) + { + const double mass=1e-4;var law=RelaxingFuelChecks.Law();double density=RelaxingFuelChecks.Density(p,t,x);Require(law.Evaluate(density,t,x,out var q));return(mass,mass/density,mass*q.Fluid.SpecificInternalEnergyJoulesPerKilogram); + } + private static void Limits() + { + var law=RelaxingFuelChecks.Law();foreach(double x in new[]{0d,1}) + { + var a=Initial(x==0?1e6:1e5,450,x); + foreach(double ratio in x==0?new[]{-.0001,.0001}:new[]{-.1,.1}) + { + double next=a.Volume*(1+ratio);Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,next,x,out var q)==FuelVolumeStatus.Success); + double expected=x==0?1.5e9*((next-a.Volume)-a.Mass/750*Math.Log(next/a.Volume)):a.Mass*717.5*450*(Math.Pow(1+ratio,-.4)-1); + Near(q.EnergyChangeJoules,expected,1e-12);Near(q.Fluid.VaporMassFraction,x,0);Near(q.Fluid.TemperatureKelvin,x==0?450:450*Math.Pow(1+ratio,-.4),1e-10); + } + } + } + // Direct fixed-quality entropy relation and scalar volume inversion, independent of production work and flash. + private static double ReferencePressure(double volume,double mass,double p0,double t0,double x) + { + double alpha=x*287/((1-x)*2000+x*1004.5),lo=p0/4,hi=p0*4; + for(int i=0;i<100;++i){double p=(lo+hi)/2,t=t0*Math.Pow(p/p0,alpha),v=mass*((1-x)/(750*(1+p/1.5e9))+x*287*t/p);if(v>volume)lo=p;else hi=p;} + return(lo+hi)/2; + } + private static void Mixed() + { + var law=RelaxingFuelChecks.Law();foreach(double x in new[]{.01,.3,.9})foreach(double ratio in new[]{.8,1.2}) + { + var a=Initial(1e5,450,x);double next=a.Volume*ratio;Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,next,x,out var q)==FuelVolumeStatus.Success); + double p=ReferencePressure(next,a.Mass,1e5,450,x),alpha=x*287/((1-x)*2000+x*1004.5);Near(q.Fluid.PressurePascals,p,1e-6);Near(q.Fluid.TemperatureKelvin,450*Math.Pow(p/1e5,alpha),1e-9); + double sum=0,h=(next-a.Volume)/2000;for(int i=0;i<=2000;++i)sum+=(i==0||i==2000?1:i%2==0?2:4)*ReferencePressure(a.Volume+i*h,a.Mass,1e5,450,x); + Near(q.EnergyChangeJoules,-sum*h/3,2e-11);Near(q.EntropyResidualJoulesPerKelvin,0,1e-12); + } + } + private static void Small() + { + var law=RelaxingFuelChecks.Law();var a=Initial(1e5,450,.3); + foreach(double ratio in new[]{1e-3,1e-4,2e-4,1e-8,1e-10,1e-12,1e-14,-1e-4,-1e-8,-1e-12}) + { + double next=a.Volume*(1+ratio);var status=law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,next,.3,out var q);Require(status==FuelVolumeStatus.Success,"Tiny reversible work failed: "+status); + Near(q.MeanPressurePascals,1e5,Math.Max(.003,2*Math.Abs(ratio)*1e5));Require(q.EnergyChangeJoules*(next-a.Volume)<0); + } + } + private static void Cycle() + { + var law=RelaxingFuelChecks.Law();var a=Initial(1e5,450,.3); + Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume*.8,.3,out var compression)==FuelVolumeStatus.Success); + Require(law.AdiabaticVolume(a.Mass,a.Energy+compression.EnergyChangeJoules,a.Volume*.8,a.Volume,.3,out var expansion)==FuelVolumeStatus.Success); + Near(compression.EnergyChangeJoules+expansion.EnergyChangeJoules,0,2e-12);Near(expansion.Fluid.TemperatureKelvin,450,1e-10);Near(expansion.Fluid.VaporMassFraction,.3,0); + } + private static void Bounds() + { + var law=RelaxingFuelChecks.Law();var a=Initial(1e5,450,.3); + Require(law.AdiabaticVolume(0,a.Energy,a.Volume,a.Volume,.3,out var bad)==FuelVolumeStatus.InvalidInput&&bad==default); + Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume,-1,out _)==FuelVolumeStatus.InvalidInput); + Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume*1e30,.3,out _)!=FuelVolumeStatus.Success); + Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume,.3,out var same)==FuelVolumeStatus.Success&&same.EnergyChangeJoules==0); + } + private static void Allocations() + { + var law=RelaxingFuelChecks.Law();var a=Initial(1e5,450,.3); + for(int i=0;i<10;++i)Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume*.9,.3,out _)==FuelVolumeStatus.Success); + long before=GC.GetAllocatedBytesForCurrentThread();for(int i=0;i<100;++i)Require(law.AdiabaticVolume(a.Mass,a.Energy,a.Volume,a.Volume*.9,.3,out _)==FuelVolumeStatus.Success);Require(GC.GetAllocatedBytesForCurrentThread()==before); + } +} diff --git a/tests/Power.Tests/ResolvedPlanetAssetChecks.cs b/tests/Power.Tests/ResolvedPlanetAssetChecks.cs index e6b8f50..c2bea2d 100644 --- a/tests/Power.Tests/ResolvedPlanetAssetChecks.cs +++ b/tests/Power.Tests/ResolvedPlanetAssetChecks.cs @@ -32,7 +32,7 @@ private static void Compare(PowerAsset a,PowerAsset b) private static void Replay() { var asset=Asset();byte[] bytes=AssetCodec.Encode(asset);var decoded=AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==24&&decoded.Components.SequenceEqual(asset.Components)&&decoded.Nodes.SequenceEqual(asset.Nodes)); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8))==AssetCodec.FormatVersion&&decoded.Components.SequenceEqual(asset.Components)&&decoded.Nodes.SequenceEqual(asset.Nodes)); Require(bytes.SequenceEqual(AssetCodec.Encode(decoded)));Compare(asset,decoded); byte[] fixture=File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory,"Fixtures","ravigneaux-transmission-v23.powerasset")); Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8))==23&&Convert.ToHexStringLower(SHA256.HashData(fixture))=="f2bd390e8ecf013e5843ed3352ccf2a2828133b541fc61d7927995f8ac1dc2e2"); @@ -41,7 +41,7 @@ private static void Replay() private static void Corruption() { var asset=Asset();byte[] bytes=AssetCodec.Encode(asset);int counts=78+Encoding.UTF8.GetByteCount(asset.Name); - int record=counts+140+44*asset.Nodes.Count+156*asset.Components.Count+28*5; + int record=counts+160+44*asset.Nodes.Count+156*asset.Components.Count+28*5; void Reject(byte[] bad){SHA256.HashData(bad.AsSpan(0,bad.Length-32)).CopyTo(bad,bad.Length-32);Throws(()=>AssetCodec.Decode(bad));} foreach(var change in new[]{(counts+52,-1),(counts+52,0),(counts+52,65),(record,-1),(record+4,0),(record+4,100),(record+8,0)}) {var bad=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1),change.Item2);Reject(bad);} diff --git a/tests/Power.Tests/SolenoidAssetChecks.cs b/tests/Power.Tests/SolenoidAssetChecks.cs index 9c0aac4..0b29e2e 100644 --- a/tests/Power.Tests/SolenoidAssetChecks.cs +++ b/tests/Power.Tests/SolenoidAssetChecks.cs @@ -36,7 +36,7 @@ private static void Compare(PowerAsset a, PowerAsset b) private static void Replay() { var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); - Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == 24 && decoded.Model.HasNeedleInjectors && decoded.Model.HasSolenoids); + Require(BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.HasNeedleInjectors && decoded.Model.HasSolenoids); Require(asset.Components.SequenceEqual(decoded.Components) && bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "liquid-injected-cylinder-v19.powerasset")); Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 19 && Convert.ToHexStringLower(SHA256.HashData(fixture)) == "4ff5f6180006d53be5ffb6ef0663cc6de4af45f35f39dc4d52fd7e00e8cdd8c5"); @@ -53,7 +53,7 @@ void Reject(byte[] bad) Throws(() => AssetCodec.Decode(bad)); } var asset = Asset(); byte[] bytes = AssetCodec.Encode(asset); int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name); - int coil = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36 + 40 + 64 + 120; + int coil = FuelPhaseEquilibriumAssetChecks.FilmOffset(asset, bytes) + 100 + 120; int stop = coil + 28, needle = stop + 40, driver = needle + 32; foreach (int field in new[] { 120, 124, 128, 132 }) { @@ -69,12 +69,12 @@ void Reject(byte[] bad) var missing = bytes.Take(record.Item1).Concat(bytes.Skip(record.Item1 + record.Item2)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + record.Item3), 0); Reject(missing); } - var downgrade = bytes.Take(counts + 120).Concat(bytes.Skip(counts + 140).Take(coil - counts - 140)).Concat(bytes.Skip(driver + 40)).ToArray(); + var downgrade = bytes.Take(counts + 120).Concat(bytes.Skip(counts + 160).Take(coil - counts - 160)).Concat(bytes.Skip(driver + 40)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgrade.AsSpan(8), 19); Reject(downgrade); var baseModel = SolenoidChecks.Model(); var two = Asset(baseModel with { Components = [..baseModel.Components, ComponentDefinition.SolenoidCoil(12, 1, 2, 101, 4, .002, 8)] }); var pair = AssetCodec.Encode(two); int pairCounts = 78 + Encoding.UTF8.GetByteCount(two.Name); - int first = pairCounts + 140 + 44 * two.Nodes.Count + 156 * two.Components.Count; - var duplicate = pair.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(first + 28), 1); Reject(duplicate); + int first = pairCounts + 160 + 44 * two.Nodes.Count + 156 * two.Components.Count; + var duplicate = pair.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(first + 28), BinaryPrimitives.ReadInt32LittleEndian(pair.AsSpan(first))); Reject(duplicate); } } diff --git a/tests/Power.Tests/SpoolAssetChecks.cs b/tests/Power.Tests/SpoolAssetChecks.cs index f20155f..facaf52 100644 --- a/tests/Power.Tests/SpoolAssetChecks.cs +++ b/tests/Power.Tests/SpoolAssetChecks.cs @@ -36,7 +36,7 @@ private static void Compare(PowerAsset old, PowerAsset updated) private static void Replay() { var asset = Asset(); byte[] data = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(data); - Require(BinaryPrimitives.ReadInt32LittleEndian(data.AsSpan(8)) == 24 && decoded.Model.Fidelity == "mechanically_regulated_hydraulics"); + Require(BinaryPrimitives.ReadInt32LittleEndian(data.AsSpan(8)) == AssetCodec.FormatVersion && decoded.Model.Fidelity == "mechanically_regulated_hydraulics"); Require(asset.Components.SequenceEqual(decoded.Components) && data.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); byte[] fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "piston-actuated-clutch-v14.powerasset")); Require(Convert.ToHexStringLower(SHA256.HashData(fixture)) == "72e0605d00972a58e2f5358aa8cbd44417e81cf1c452a20ab9661eac0919bae0"); @@ -48,7 +48,7 @@ private static void Replay() private static void Corruption() { var asset = Asset(); byte[] source = AssetCodec.Encode(asset); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), land = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 80 + 104; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), land = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 80 + 104; void Reject(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); Throws(() => AssetCodec.Decode(data)); } foreach (int count in new[] { -1, 65, int.MaxValue }) { var bad = source.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(counts + 100), count); Reject(bad); } foreach (var replacement in new[] { (0, 0), (4, 999), (16, (int)Unit.Radian) }) @@ -56,7 +56,7 @@ private static void Corruption() var duplicate = source.Take(land + 32).Concat(source.Skip(land).Take(32)).Concat(source.Skip(land + 32)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 100), 2); Reject(duplicate); var missing = source.Take(land).Concat(source.Skip(land + 32)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 100), 0); Reject(missing); - var downgraded = source.Take(counts + 100).Concat(source.Skip(counts + 140).Take(land - counts - 140)).Concat(source.Skip(land + 32)).ToArray(); + var downgraded = source.Take(counts + 100).Concat(source.Skip(counts + 160).Take(land - counts - 160)).Concat(source.Skip(land + 32)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 14); Reject(downgraded); } } diff --git a/tests/Power.Tests/TankHeadspaceAssetChecks.cs b/tests/Power.Tests/TankHeadspaceAssetChecks.cs new file mode 100644 index 0000000..ec3fd77 --- /dev/null +++ b/tests/Power.Tests/TankHeadspaceAssetChecks.cs @@ -0,0 +1,53 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class TankHeadspaceAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("tank headspace asset / complete geometry vent histories exact replay / authentic v28", Replay), + ("tank headspace asset / forged geometry units links capacity and downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(TankHeadspaceChecks.Model(ventArea: 2e-8), "Tank headspace", + new string('a', 64), 20_000_000, 1_000_000, [], []); + private static void Compare(PowerAsset a, PowerAsset b) + { + var left = a.CreatePlayback(); var right = b.CreatePlayback(); var lv = new Scalar[a.Model.OutputCount]; var rv = new Scalar[b.Model.OutputCount]; + for (ulong at = 0; at <= a.DurationNanoseconds; at += a.SampleEveryNanoseconds) + { + if (at > left.TimeNanoseconds) Require(left.Advance(at - left.TimeNanoseconds) == SimulationStatus.Ok); + while (right.TimeNanoseconds < at) Require(right.Advance(Math.Min(257 * b.Model.StepNanoseconds, at - right.TimeNanoseconds)) == SimulationStatus.Ok); + Require(left.ReadSnapshot(lv) == right.ReadSnapshot(rv) && lv.SequenceEqual(rv)); + } + } + private static void Replay() + { + var asset = Asset(); var bytes = AssetCodec.Encode(asset); var decoded = AssetCodec.Decode(bytes); + Require(decoded.Model.HasTankHeadspaces && BinaryPrimitives.ReadInt32LittleEndian(bytes.AsSpan(8)) == AssetCodec.FormatVersion); + Require(bytes.SequenceEqual(AssetCodec.Encode(decoded))); Compare(asset, decoded); + var fixture = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "recirculating-liquid-cylinder-v28.powerasset")); + Require(BinaryPrimitives.ReadInt32LittleEndian(fixture.AsSpan(8)) == 28 && + Convert.ToHexStringLower(SHA256.HashData(fixture)) == "3c871df37c63e671efdbaf34730a70fced19840f0fb9f1b1e5655b31d6cd2a57"); + var old = AssetCodec.Decode(fixture); Require(!old.Model.HasTankHeadspaces); Compare(old, AssetCodec.Decode(AssetCodec.Encode(old))); + } + private static void Corruption() + { + var bytes = AssetCodec.Encode(Asset()); int tank = bytes.Length - 84; + void Reject(byte[] bad) { SHA256.HashData(bad.AsSpan(0, bad.Length - 32)).CopyTo(bad, bad.Length - 32); Throws(() => AssetCodec.Decode(bad)); } + foreach (var change in new[] { (tank + 40, (int)Unit.Pascal), (tank + 44, 0), (tank + 44, 2) }) + { var bad = bytes.ToArray(); BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(change.Item1), change.Item2); Reject(bad); } + var full = bytes.ToArray(); BinaryPrimitives.WriteDoubleLittleEndian(full.AsSpan(tank + 32), 1e-12); Reject(full); + var version29 = FuelPhaseEquilibriumAssetChecks.Version29(Asset(), bytes); int oldTank = version29.Length - 80; + var downgraded = version29.Take(oldTank + 32).Concat(version29.Skip(oldTank + 48)).ToArray(); + BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 28); Reject(downgraded); + } +} diff --git a/tests/Power.Tests/TankHeadspaceChecks.cs b/tests/Power.Tests/TankHeadspaceChecks.cs new file mode 100644 index 0000000..1448bfb --- /dev/null +++ b/tests/Power.Tests/TankHeadspaceChecks.cs @@ -0,0 +1,151 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class TankHeadspaceChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("tank headspace / independent adiabatic work and pressure derivative", Law), + ("tank headspace / coupled closed expansion compression and internal pressure work", Closed), + ("tank headspace / relief compression heat fractions and complete ledgers", Relief), + ("tank headspace / independent simultaneous shaft rail gas ODE refinement", Reference), + ("tank headspace / finite vent transport and independent valve branches", Vent), + ("tank headspace / complete rollback cancellation forks allocations and ownership", Transactions) + ]; + + internal static ModelDefinition Model(ulong tick = 50_000, double speed = 100, bool relief = false, double ventArea = 0, double fraction = 1) + { + var source = relief ? LiquidRailReturnChecks.Model(fraction, tick, speed: speed) + : LiquidFuelTankChecks.Model(mass: .0001, speed: speed, tick: tick); + var components = source.Components.Select(c => c.Id == 20 ? ComponentDefinition.DisplacementPump(20, 4, 5, 1e-9) + : c.Id == 22 ? c with { LiquidFuelTank = c.LiquidFuelTank! with { Headspace = new() { Capacity = new(.0001 / 750 + 1e-8, Unit.CubicMeter), GasNode = 40 } } } + : c.Id == 30 ? ComponentDefinition.PressureRelief(30, 5, 0, 1e-12, 200_000) : c).ToArray(); + return source with { Nodes = [..source.Nodes, NodeDefinition.CylinderGas(40, 100_000, 300)], + Components = ventArea == 0 ? components : [..components, ComponentDefinition.GasReservoir(41, 40, ventArea, 100_000, 300, channel: 110)] }; + } + + private static void Step(Simulation s, ulong time) => Require(s.Step(time) == SimulationStatus.Ok, "Headspace step failed."); + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s) + { + Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); + Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); Near(Value(s, 0, Field.HydraulicVolumeResidual), 0, 1e-16); + Near(Value(s, 0, Field.HydraulicWork), 0, 0); + } + + private static void Law() + { + foreach (double gamma in new[] { 1.01, 1.4, 5.0 }) + foreach (double fraction in new[] { -.5, -.001, 0, 1e-14, .001, .4 }) + { + const double volume = 2e-5, energy = 10; + double change = fraction * volume; + Require(LiquidTankHeadspace.TryPressureWork(volume, change, energy, gamma, out var work)); + double expected = energy * (Math.Pow(1 + fraction, 1 - gamma) - 1); + Near(work.GasEnergyChangeJoules, expected, 1e-12); + Near(work.MeanPressurePascals * change + work.GasEnergyChangeJoules, 0, 1e-13); + double epsilon = 1e-7 * volume; + Require(LiquidTankHeadspace.TryPressureWork(volume, change + epsilon, energy, gamma, out var high)); + Require(LiquidTankHeadspace.TryPressureWork(volume, change - epsilon, energy, gamma, out var low)); + Near(work.PressureDerivativePascalsPerCubicMeter / 1e11, + (high.MeanPressurePascals - low.MeanPressurePascals) / (2 * epsilon) / 1e11, 1e-6); + } + Require(!LiquidTankHeadspace.TryPressureWork(1, -1, 10, 1.4, out _)); + Require(!LiquidTankHeadspace.TryPressureWork(0, 1, 10, 1.4, out _)); + } + + private static void Closed() + { + foreach (double speed in new[] { -100d, 100d }) + { + var s = CompiledModel.Compile(Model(speed: speed)).CreateSimulation(); + double initialEnergy = Value(s, 40, Field.InternalEnergy), initialVolume = Value(s, 40, Field.Volume); + Step(s, 20_000_000); + double volume = Value(s, 40, Field.Volume), expected = initialEnergy * Math.Pow(initialVolume / volume, .4); + Near(Value(s, 40, Field.InternalEnergy), expected, 1e-13); + Near(Value(s, 40, Field.Pressure), 100_000 * Math.Pow(initialVolume / volume, 1.4), 1e-6); + Near(Value(s, 22, Field.HydraulicWork), initialEnergy - expected, 1e-13); + Near(Value(s, 22, Field.Volume) + volume, .0001 / 750 + 1e-8, 1e-21); + Near(Value(s, 22, Field.Pressure), Value(s, 40, Field.Pressure), 0); + Require(speed > 0 ? volume > initialVolume : volume < initialVolume); Balance(s); + } + } + + private static void Relief() + { + foreach (double fraction in new[] { 0d, .5, 1d }) + { + var d = Model(speed: 0, relief: true, fraction: fraction); + var s = CompiledModel.Compile(d with { Components = [..d.Components, ComponentDefinition.Clutch(32, 4, 0, 10, 8)] }).CreateSimulation(); + double oldGas = Value(s, 40, Field.InternalEnergy); Step(s, 10_000_000); + double p = Value(s, 5, Field.Pressure), gasChange = Value(s, 40, Field.InternalEnergy) - oldGas; + double loss = .5 * 5e-13 * (800_000 * 800_000d - p * p) - gasChange; + Require(gasChange > 0 && p < 800_000); Near(Value(s, 30, Field.FluidHeat), loss, 1e-10); + Near(Value(s, 31, Field.FluidHeat), fraction * loss, 1e-10); + Near(Value(s, 22, Field.HydraulicWork), -gasChange, 1e-13); Balance(s); + } + } + + private static void Reference() + { + // Independent continuous shaft/rail/headspace equations, integrated with RK4. + const double time = .02, h = 1e-6, gamma = 1.4, compliance = 5e-13, displacement = 1e-9; + double[] state = [100, 800_000, 100_000 * 1e-8 / (gamma - 1)]; + double[] Rates(double[] q) + { + double volume = 1e-8 + compliance * (q[1] - 800_000); + double pressure = (gamma - 1) * q[2] / volume; + double rate = displacement * q[0] - 1e-12 * Math.Max(0, q[1] - pressure - 200_000); + return [-displacement * (q[1] - pressure) / .02, rate / compliance, -pressure * rate]; + } + for (int step = 0; step < (int)Math.Round(time / h); ++step) + { + var a = Rates(state); var b = Rates(state.Select((v, i) => v + h * .5 * a[i]).ToArray()); + var c = Rates(state.Select((v, i) => v + h * .5 * b[i]).ToArray()); var d = Rates(state.Select((v, i) => v + h * c[i]).ToArray()); + for (int i = 0; i < state.Length; ++i) state[i] += h * (a[i] + 2 * b[i] + 2 * c[i] + d[i]) / 6; + } + double previous = double.PositiveInfinity; + foreach (ulong tick in new ulong[] { 1_000_000, 500_000, 250_000 }) + { + var s = CompiledModel.Compile(Model(tick, relief: true)).CreateSimulation(); Step(s, 20_000_000); + double error = Math.Abs(Value(s, 5, Field.Pressure) - state[1]) / 1e6 + Math.Abs(Value(s, 40, Field.InternalEnergy) - state[2]); + Require(error < previous && (double.IsPositiveInfinity(previous) || previous / error > 3.5), "Expected second-order headspace refinement."); + previous = error; Balance(s); + } + Require(previous < 1e-5); + } + + private static void Vent() + { + var open = CompiledModel.Compile(Model(ventArea: 2e-8)).CreateSimulation(); var closed = open.Fork(); + Require(closed.SubmitInputs([new(110, 0)]) == SimulationStatus.Ok); + double gas = Value(open, 40, Field.Mass); Step(open, 30_000_000); Step(closed, 30_000_000); + Require(Value(open, 40, Field.Mass) > gas && Value(open, 40, Field.Pressure) > Value(closed, 40, Field.Pressure)); + Require(Value(open, 0, Field.ReservoirEnthalpy) > 0); Near(Value(closed, 40, Field.Mass), gas, 0); + Balance(open); Balance(closed); + } + + private static void Transactions() + { + var model = Model(ventArea: 2e-8, relief: true); var s = CompiledModel.Compile(model).CreateSimulation(); var before = Snapshot(s); + Require(s.Step(10_000_000, new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(10_000_000, [new(5_000_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var fork = s.Fork(); Step(s, 10_000_000); for (int i = 0; i < 10; ++i) Step(fork, 1_000_000); Require(Snapshot(s) == Snapshot(fork)); + var values = new Scalar[s.Model.OutputCount]; for (int i = 0; i < 10; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + long allocated = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 100; ++i) { Step(s, 50_000); s.ReadSnapshot(values); } + Require(allocated == GC.GetAllocatedBytesForCurrentThread()); + var nodes = model.Nodes.ToArray(); nodes[^1] = nodes[^1] with { Storage = new(1e-8, Unit.CubicMeter) }; + Throws(() => CompiledModel.Compile(model with { Nodes = nodes })); + var components = model.Components.ToArray(); int tank = Array.FindIndex(components, c => c.Id == 22); + components[tank] = components[tank] with { LiquidFuelTank = components[tank].LiquidFuelTank! with { Headspace = new() { GasNode = 40, Capacity = new(1e-9, Unit.CubicMeter) } } }; + Throws(() => CompiledModel.Compile(model with { Components = components })); + } +} diff --git a/tests/Power.Tests/TankHeadspaceIntegrationChecks.cs b/tests/Power.Tests/TankHeadspaceIntegrationChecks.cs new file mode 100644 index 0000000..c93c5f9 --- /dev/null +++ b/tests/Power.Tests/TankHeadspaceIntegrationChecks.cs @@ -0,0 +1,67 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class TankHeadspaceIntegrationChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("vented tank liquid engine / dynamic inlet gas liquid energy and every-boundary replay", Liquid), + ("vented tank needle engine / actual delivery phase and independent gas inventory", Needle), + ("tank headspace agent / ownership units strict geometry and vent branches", Sessions) + ]; + private static string Source(string name) => File.ReadAllText(Path.Combine(AppContext.BaseDirectory, name + ".power.json")); + private static double V(SampleReport sample, uint id, Field field) => sample.Values[Channels.Output(id, field).ToString()]; + private static JsonElement Data(AgentReply reply) { Require(reply.Ok, reply.Error?.Message ?? "Expected success."); return reply.Data!.Value; } + private static ExperimentReport Check(string name) + { + var document = ModelDocument.Parse(Source(name)); var report = ExperimentRunner.Evaluate(document); + Require(report.Passed && report.Replay.SampleHashesMatch && report.Model.Fidelity == "geometric_tank_liquid_fuel_powertrain"); + var asset = AssetCodec.Decode(AssetCodec.Encode(document.ToAsset(name))); var play = asset.CreatePlayback(); var values = new Scalar[asset.Model.OutputCount]; + uint injector = document.Model.Components.Single(c => c.Kind == ComponentKind.LiquidFuelInjector).Id; + double initialRail = document.Model.Components.Single(c => c.Id == injector).LiquidFuelInjector!.InitialMass.Value; + foreach (var row in report.Samples) + { + while (play.TimeNanoseconds < row.TimeNs) Require(play.Advance(Math.Min(257 * asset.Model.StepNanoseconds, row.TimeNs - play.TimeNanoseconds)) == SimulationStatus.Ok); + Require(play.ReadSnapshot(values).StateHash.ToString("x16") == row.StateHash && values.All(v => v.Value == row.Values[v.Channel.ToString()])); + Near(V(row, 1513, Field.Mass) + V(row, 1511, Field.TotalFuelDelivered) - V(row, 1515, Field.TotalFuelDelivered), 2e-5, 1e-14); + Near(V(row, injector, Field.Mass) + V(row, injector, Field.TotalFuelDelivered), initialRail + V(row, 1511, Field.TotalFuelDelivered) - V(row, 1515, Field.TotalFuelDelivered), 1e-13); + Near(V(row, 1513, Field.Volume) + V(row, 1520, Field.Volume), 2e-7, 1e-20); + Near(V(row, 1513, Field.Pressure), V(row, 1520, Field.Pressure), 0); + Near(V(row, 0, Field.EnergyResidual), 0, 1e-6); Near(V(row, 0, Field.MassResidual), 0, 1e-13); + Near(V(row, 0, Field.FuelResidual), 0, 1e-13); Near(V(row, 0, Field.HydraulicVolumeResidual), 0, 1e-14); + Near(V(row, 0, Field.HydraulicWork), 0, 0); + } + Require(V(report.Samples[^1], 15, Field.HeatReleased) > 300 && report.Model.StateCount <= 128); + Require(report.Samples.Max(row => V(row, 1520, Field.Pressure)) - report.Samples.Min(row => V(row, 1520, Field.Pressure)) > 100); + return report; + } + private static void Liquid() => Check("vented-tank-liquid-cylinder"); + private static void Needle() => Check("vented-tank-needle-cylinder"); + private static void Sessions() + { + var workspace = new AgentWorkspace(); var example = Data(AgentWorkspace.ExampleModel("vented-tank-liquid-cylinder")); + string id = Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!; + string fork = Data(workspace.ForkSession(id, "0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(fork, "0", [new("960", 0)])); Data(workspace.StepSession(fork, "1", "10000000")); + Require(Data(workspace.ReadSnapshot(id)).GetProperty("revision").GetString() == "0"); + Data(workspace.StepSession(id, "0", "10000000")); + Require(Data(workspace.ReadSnapshot(id)).GetProperty("state_hash").GetString() != Data(workspace.ReadSnapshot(fork)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(fork, "2")); Data(workspace.CloseSession(id, "1")); + var bad = workspace.CreateSession(JsonDocument.Parse(example.GetRawText().Replace("\"capacity\":", "\"capacity_typo\":")).RootElement); + Require(!bad.Ok && bad.Error?.Code == "invalid_argument"); + var document = ModelDocument.Parse(Source("vented-tank-liquid-cylinder")); var components = document.Model.Components.ToArray(); + int tank = Array.FindIndex(components, c => c.Id == 1513); + components[tank] = components[tank] with { LiquidFuelTank = components[tank].LiquidFuelTank! with { Headspace = components[tank].LiquidFuelTank!.Headspace! with { Capacity = new(2e-7, Unit.Pascal) } } }; + Require(!CompiledModel.TryCompile(document.Model with { Components = components }, out _, out var error) && error!.Code == DiagnosticCode.Unit); + } +} diff --git a/tests/Power.Tests/TankPhaseAssetChecks.cs b/tests/Power.Tests/TankPhaseAssetChecks.cs new file mode 100644 index 0000000..828ac42 --- /dev/null +++ b/tests/Power.Tests/TankPhaseAssetChecks.cs @@ -0,0 +1,58 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Buffers.Binary; +using System.Security.Cryptography; +using Power.Assets; +using Power.Core; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class TankPhaseAssetChecks +{ + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("tank phase asset / complete fuel and displacement histories / authentic v30", Replay), + ("tank phase asset / invalid flags geometry composition and forged downgrade", Corruption) + ]; + private static PowerAsset Asset() => PowerAsset.Create(TankPhaseChecks.Model(vent:1e-10), "Finite tank phase equilibrium", new string('d',64),20_000_000,1_000_000,[],[]); + internal static byte[] Version30(PowerAsset asset, byte[] bytes) + { + int tanks=asset.Components.Count(c=>c.LiquidFuelTank is not null),returns=asset.Components.Count(c=>c.LiquidRailReturn is not null); + int end=bytes.Length-32-24*asset.Inputs.Count-33*asset.Checks.Count-24*returns,start=end-52*tanks; + var output=new List(bytes.Take(start)); + for(int i=0;iSHA256.HashData(bytes.AsSpan(0,bytes.Length-32)).CopyTo(bytes,bytes.Length-32); + private static void Compare(PowerAsset a,PowerAsset b) + { + var left=a.CreatePlayback();var right=b.CreatePlayback();var lv=new Scalar[a.Model.OutputCount];var rv=new Scalar[b.Model.OutputCount]; + for(ulong at=0;at<=a.DurationNanoseconds;at+=a.SampleEveryNanoseconds) + { + if(at>left.TimeNanoseconds)Require(left.Advance(at-left.TimeNanoseconds)==SimulationStatus.Ok); + while(right.TimeNanoseconds(()=>AssetCodec.Decode(bad));} + foreach(int value in new[]{-1,2,int.MaxValue}){var bad=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(bad.AsSpan(tank+48),value);Reject(bad);} + var absent=bytes.ToArray();Array.Clear(absent,tank+32,16);Reject(absent); + var disabled=bytes.ToArray();BinaryPrimitives.WriteInt32LittleEndian(disabled.AsSpan(tank+48),0);Reject(disabled); + Reject(Version30(asset,bytes)); + } +} diff --git a/tests/Power.Tests/TankPhaseChecks.cs b/tests/Power.Tests/TankPhaseChecks.cs new file mode 100644 index 0000000..7867e19 --- /dev/null +++ b/tests/Power.Tests/TankPhaseChecks.cs @@ -0,0 +1,276 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using Power.Core; +using static Power.Tests.CoreChecks; +using static Power.Tests.GearModelChecks; + +namespace Power.Tests; + +internal static class TankPhaseChecks +{ + private const double R = 287, Cv = R / .4, Cl = 2000, Tr = 400, Pref = 100000, Latent = 300000, Density = 750; + private const double Offset = (Cv - Cl) * Tr - Latent; + internal static IEnumerable<(string Name, Action Run)> All => + [ + ("tank phase / finite liquid volume chemical potentials and caloric derivative", Chemical), + ("tank phase / independent entropy maximum / closed U,V flash and density bounds", Flash), + ("tank phase / liquid pickup and reverse return / mass volume energy and phase ledgers", Graph), + ("tank phase / simultaneous relief caloric return / complete conserving inventories", Relief), + ("tank phase / independent shaft rail source equilibrium ODE / first-order refinement", PumpReference), + ("tank phase / independent vent wall and phase-flow ODE / first-order refinement", VentReference), + ("tank phase / complete rollback cancellation branches and zero allocations", Transactions), + ("tank phase / dry source liquid-only pickup and initial rail pressure guard", Dry), + ("tank phase / explicit material composition initial equilibrium and immutable ownership", Contracts) + ]; + private static FuelPhaseEquilibrium Material() => new(new(Cl, Cv, Tr, Latent, 0), R, Pref, 200, 600); + private static FiniteTankFuelEquilibrium Law(double volume = 2e-5, double density = Density) => new(Material(), volume, density); + private static double P0(double t) => Pref * Math.Pow(t / Tr, (Cv + R - Cl) / R) * Math.Exp(Offset / R * (1 / t - 1 / Tr)); + private static void Step(Simulation s, ulong time) => Require(s.Step(time) == SimulationStatus.Ok, "Tank phase step failed."); + private static SnapshotInfo Snapshot(Simulation s) => s.ReadSnapshot(new Scalar[s.Model.OutputCount]); + private static void Balance(Simulation s) + { + Near(Value(s, 0, Field.EnergyResidual), 0, 2e-7); Near(Value(s, 0, Field.MassResidual), 0, 1e-14); + Near(Value(s, 0, Field.FuelResidual), 0, 1e-14); Near(Value(s, 0, Field.HydraulicVolumeResidual), 0, 1e-16); + Near(Value(s, 0, Field.HydraulicWork), 0, 0); + } + internal static ModelDefinition Model(ulong tick = 50_000, double speed = 100, double vent = 0, double heat = 0, bool relief = false) + { + var original = TankHeadspaceChecks.Model(tick, speed, relief, ventArea: vent); + double initialTemperature = original.Components.Single(c => c.LiquidFuelTank is not null).LiquidFuelTank!.InitialTemperature.Value; + double fraction = P0(initialTemperature) * Math.Exp(100000 / (Density * R * initialTemperature)) / 100000; + var nodes = original.Nodes.Select(n => n.Id != 40 ? n : NodeDefinition.CylinderGas(40, 100000, initialTemperature) with + { + Gas = new() { GasConstant = new(R, Unit.JoulePerKilogramKelvin), Gamma = 1.4, + Premixed = new() { LowerHeatingValue = new(44e6, Unit.JoulePerKilogram), StoichiometricAirFuelRatio = 14.7, InitialFractions = new(fraction, 1 - fraction) } } + }).ToArray(); + var components = original.Components.Select(c => c.FuelFilm is not null ? c with { FuelFilm = c.FuelFilm with { PhaseEquilibrium = FuelPhaseEquilibriumChecks.Phase(Pref, 200, 600) } } : + c.LiquidFuelTank is not null ? c with { LiquidFuelTank = c.LiquidFuelTank with { Headspace = c.LiquidFuelTank.Headspace! with { PhaseEquilibrium = true } } } : + c.Id == 41 ? c with { DischargeCoefficient = .7, ReservoirPressure = new(1000, Unit.Pascal), ReservoirFractions = new(0, 1) } : c).ToArray(); + if (heat > 0) { nodes = [..nodes, NodeDefinition.Thermal(60, .2, 360)]; components = [..components, ComponentDefinition.GasHeatLink(61, 40, 60, heat)]; } + return original with { Nodes = nodes, Components = components }; + } + + private static void Chemical() + { + var law = Law(); + foreach (double t in new[] { 220d, 300d, 400d, 550d }) + { + Require(law.TryPoint(t, .006, .0001, out var point) && point.LiquidMassKilograms > 0); + Near(point.GasVolumeCubicMeters + point.LiquidMassKilograms / Density, 2e-5, 1e-20); + double chemicalResidual = R * t * Math.Log(point.VaporPressurePascals / P0(t)) - point.PressurePascals / Density; + Near(chemicalResidual, 0, 2e-8); + Require(law.TrySaturationPressure(t, point.PressurePascals, out double saturation)); Near(saturation, point.VaporPressurePascals, 1e-7); + Require(law.TryPoint(t + .001, .006, .0001, out var high)); Require(law.TryPoint(t - .001, .006, .0001, out var low)); + Near((high.ThermalEnergyJoules - low.ThermalEnergyJoules) / .002, point.HeatCapacityJoulesPerKelvin, 1e-7); + } + var limit = Law(.01, 1e12); Require(limit.TryPoint(350, .006, .007, out var finite)); + Require(Material().TryPoint(350, .006, .007, .01, out var negligible)); + Near(finite.VaporMassKilograms, negligible.VaporMassKilograms, 1e-13); + Require(!law.TryPoint(350, .014, .001, out _) && !law.TrySaturationPressure(350, Density * R * 350, out _)); + } + + private static double Entropy(double liquid, double liquidTemperature, double vapor, double carrier, double gasTemperature, double capacity) + { + double volume = capacity - liquid / Density; + if (volume <= 0 || liquidTemperature <= 0 || gasTemperature <= 0) return double.NegativeInfinity; + double entropy = liquid * Cl * Math.Log(liquidTemperature / Tr); + if (vapor > 0) entropy += vapor * ((Cv + R) * Math.Log(gasTemperature / Tr) - R * Math.Log(vapor * R * gasTemperature / volume / Pref) + (Latent + R * Tr) / Tr); + if (carrier > 0) entropy += carrier * (Cv * Math.Log(gasTemperature / Tr) + R * Math.Log(volume * Pref / (carrier * R * Tr))); + return entropy; + } + private static (double Vapor, double Temperature) EntropyMaximum(double energy, double fuel, double carrier, double volume) + { + double T(double vapor) => (energy - (fuel - vapor) * Offset) / ((carrier + vapor) * Cv + (fuel - vapor) * Cl); + double S(double vapor) + { + double t = T(vapor); return t < 200 || t > 600 ? double.NegativeInfinity : Entropy(fuel - vapor, t, vapor, carrier, t, volume); + } + double lo = 0, hi = fuel, ratio = (Math.Sqrt(5) - 1) / 2, a = hi - ratio * (hi - lo), b = lo + ratio * (hi - lo); + for (int i = 0; i < 110; ++i) + if (S(a) < S(b)) { lo = a; a = b; b = lo + ratio * (hi - lo); } + else { hi = b; b = a; a = hi - ratio * (hi - lo); } + double result = (lo + hi) / 2; if (S(fuel) >= S(result)) result = fuel; + return (result, T(result)); + } + private static void Flash() + { + const double capacity = 2e-5; + foreach (var (liquid, vapor, carrier, tl, tg) in new[] + { + (.006, 1e-7, .0001, 350d, 350d), (.006, .0001, .0001, 350d, 350d), (0d, .0001, .0001, 300d, 300d), + (.003, .0001, 0d, 300d, 500d), (0d, 1e-9, .0001, 500d, 500d) + }) + { + var law = Law(capacity); var initial = Material().CreateLiquidState(liquid, tl); double gasEnergy = (carrier + vapor) * Cv * tg; + Require(law.TryFlash(initial, vapor, carrier, gasEnergy, out var flash)); + var reference = EntropyMaximum(initial.ThermalEnergyJoules + gasEnergy, liquid + vapor, carrier, capacity); + Near(flash.VaporMassKilograms, reference.Vapor, 3e-11); Near(flash.TemperatureKelvin, reference.Temperature, 2e-6); + Near(flash.VaporMassKilograms + flash.Liquid.LiquidMassKilograms, liquid + vapor, 1e-18); + Near(flash.GasEnergyJoules + flash.Liquid.ThermalEnergyJoules, gasEnergy + initial.ThermalEnergyJoules, 1e-10); + double actualLiquidTemperature = flash.Liquid.LiquidMassKilograms == 0 ? flash.TemperatureKelvin : Material().Caloric.Temperature(flash.Liquid); + double actualGasTemperature = flash.GasEnergyJoules / (carrier + flash.VaporMassKilograms) / Cv; + Require(Entropy(flash.Liquid.LiquidMassKilograms, actualLiquidTemperature, flash.VaporMassKilograms, carrier, actualGasTemperature, capacity) >= + Entropy(liquid, tl, vapor, carrier, tg, capacity) - 1e-10, "Finite-volume flash decreased entropy."); + } + Require(!Law().TryFlash(new(.014, .014 * (Cl * 300 + Offset)), .001, .001, 1000, out _)); + } + + private static void Graph() + { + foreach (double speed in new[] { 100d, -100d }) + { + var s = CompiledModel.Compile(Model(speed: speed)).CreateSimulation(); + double initialLiquid = Value(s, 22, Field.Mass), initialVapor = Value(s, 40, Field.FuelMass), initialVolume = Value(s, 22, Field.Volume) + Value(s, 40, Field.Volume); + double initialEntropy = SourceAndRailEntropy(s); + Step(s, 20_000_000); Balance(s); + double net = Value(s, 22, Field.EvaporatedFuelMass) - Value(s, 22, Field.CondensedFuelMass), supplied = Value(s, 21, Field.TotalFuelDelivered); + Near(Value(s, 22, Field.Mass) + Value(s, 40, Field.FuelMass) + supplied, initialLiquid + initialVapor, 1e-14); + Near(initialLiquid - Value(s, 22, Field.Mass), supplied + net, 1e-14); + Near(Value(s, 40, Field.FuelMass) - initialVapor, net, 1e-14); + Near(Value(s, 22, Field.Volume) + Value(s, 40, Field.Volume), initialVolume, 1e-21); + Near(Value(s, 22, Field.Temperature), Value(s, 40, Field.Temperature), 1e-8); + Near(Value(s, 22, Field.SaturationPressure), Value(s, 22, Field.VaporPartialPressure), 1e-5); + Require(speed > 0 ? net > 0 : net < 0); + Require(SourceAndRailEntropy(s) >= initialEntropy - 1e-10, "Adiabatic liquid pickup/return decreased total material entropy."); + } + } + private static double SourceAndRailEntropy(Simulation s) + { + double liquid=Value(s,22,Field.Mass),vapor=Value(s,40,Field.FuelMass),carrier=Value(s,40,Field.Mass)-vapor; + double capacity=Value(s,22,Field.Volume)+Value(s,40,Field.Volume); + return Entropy(liquid,Value(s,22,Field.Temperature),vapor,carrier,Value(s,40,Field.Temperature),capacity) + + Value(s,12,Field.Mass)*Cl*Math.Log(Value(s,12,Field.Temperature)/Tr); + } + private static void Relief() + { + foreach (double fraction in new[] { 0d, .5, 1d }) + { + var definition = Model(speed: 0, relief: true); + definition = definition with { Components = definition.Components.Select(c => c.LiquidRailReturn is null ? c : c with { LiquidRailReturn = c.LiquidRailReturn with { FluidHeatFraction = new(fraction, Unit.Fraction) } }).ToArray() }; + var s = CompiledModel.Compile(definition).CreateSimulation(); double initial = Value(s, 22, Field.Mass) + Value(s, 40, Field.FuelMass); + Step(s, 20_000_000); Balance(s); Require(Value(s, 31, Field.TotalFuelDelivered) > 0); + Near(Value(s, 22, Field.Mass) + Value(s, 40, Field.FuelMass) + Value(s, 21, Field.TotalFuelDelivered) - Value(s, 31, Field.TotalFuelDelivered), initial, 1e-14); + } + } + + // Independent bisection of chemical potentials, followed by simultaneous RK4 of + // shaft, rail, total source inventories, equilibrium temperature and finite wall. + private static (double Vapor, double Volume, double Pressure, double Capacity, double FuelEnergyDerivative, double CarrierEnergyDerivative, double VaporT, double VaporFuel, double VaporCarrier) ReferencePoint(double t, double fuel, double carrier, double capacity) + { + double F(double vapor) + { + double volume = capacity - (fuel - vapor) / Density; + return vapor == 0 ? double.NegativeInfinity : Math.Log(vapor * R * t / volume / P0(t)) - (carrier + vapor) / (Density * volume); + } + double lo = 0, hi = fuel; + if (F(fuel) > 0) + for (int i = 0; i < 75; ++i) { double mid = (lo + hi) / 2; if (F(mid) > 0) hi = mid; else lo = mid; } + else lo = hi; + double vapor = (lo + hi) / 2, liquid = fuel - vapor, volumeAt = capacity - liquid / Density, pressure = (carrier + vapor) * R * t / volumeAt; + double latent = (Cv - Cl) * t - Offset, vt = 0, vf = 0, vc = 0; + if (liquid > 0) + { + double b = Density * capacity - fuel, z = b + vapor, denominator = b * b + carrier * vapor; + vt = latent / (R * t * t) * vapor * z * z / denominator; + vf = -vapor * (b - carrier) / denominator; vc = vapor * z / denominator; + } + return (vapor, volumeAt, pressure, (carrier + vapor) * Cv + liquid * Cl + latent * vt, + Cl * t + Offset + latent * vf, Cv * t + latent * vc, vt, vf, vc); + } + private static void PumpReference() => Reference(0, 0); + private static void VentReference() => Reference(1e-10, .02); + private static void Reference(double ventArea, double conductance) + { + const double capacity = .0001 / Density + 1e-8, duration = .02; + var baseline = CompiledModel.Compile(Model(vent: ventArea, heat: conductance)).CreateSimulation(); + double fuel = Value(baseline, 22, Field.Mass) + Value(baseline, 40, Field.FuelMass), carrier = Value(baseline, 40, Field.Mass) - Value(baseline, 40, Field.FuelMass); + double[] initial = [100, 800000, fuel, carrier, Value(baseline, 22, Field.Temperature), .0005 * (Cl * 300 + Offset), 360, 0, 0]; + void Rates(double[] state, double[] rate) + { + var point = ReferencePoint(state[4], state[2], state[3], capacity); + double railMass = Density * ((.0005 / Density - 5e-13 * 800000) + 5e-13 * state[1]); + double q = 1e-9 * state[0], pump = Density * q, ul = pump >= 0 ? Cl * state[4] + Offset : state[5] / railMass; + double heat = conductance * (state[6] - state[4]), flow = 0; + if (ventArea > 0) + { + Require(point.Pressure > 2000); + flow = .7 * ventArea * point.Pressure / Math.Sqrt(R * state[4]) * Math.Sqrt(1.4) * Math.Pow(2 / 2.4, 3); + } + double vaporOut = flow * point.Vapor / (state[3] + point.Vapor), carrierOut = flow - vaporOut; + rate[0] = -1e-9 * (state[1] - point.Pressure) / .02; + rate[1] = q / 5e-13; rate[2] = -pump - vaporOut; rate[3] = -carrierOut; + double energy = heat - pump * ul - point.Pressure * q - flow * (Cv + R) * state[4]; + rate[4] = (energy - point.FuelEnergyDerivative * rate[2] - point.CarrierEnergyDerivative * rate[3]) / point.Capacity; + rate[5] = pump * ul; rate[6] = -heat / .2; + double phase = point.VaporT * rate[4] + point.VaporFuel * rate[2] + point.VaporCarrier * rate[3] + vaporOut; + rate[7] = Math.Max(0, phase); rate[8] = Math.Max(0, -phase); + } + double[] Integrate(int count) + { + var state = initial.ToArray(); var stage = new double[9]; var a = new double[9]; var b = new double[9]; var c = new double[9]; var d = new double[9]; double h = duration / count; + for (int n = 0; n < count; ++n) + { + Rates(state, a); for (int i = 0; i < 9; ++i) stage[i] = state[i] + h / 2 * a[i]; Rates(stage, b); + for (int i = 0; i < 9; ++i) stage[i] = state[i] + h / 2 * b[i]; Rates(stage, c); + for (int i = 0; i < 9; ++i) stage[i] = state[i] + h * c[i]; Rates(stage, d); + for (int i = 0; i < 9; ++i) state[i] += h / 6 * (a[i] + 2 * b[i] + 2 * c[i] + d[i]); + } + return state; + } + var reference = Integrate(2000); var finer = Integrate(4000); + for (int i = 0; i < 9; ++i) Near(reference[i], finer[i], i == 1 ? 1e-6 : 1e-8); + var errors = new List(); double previous = 0; + foreach (ulong tick in new ulong[] { 400_000, 200_000, 100_000, 50_000 }) + { + var s = CompiledModel.Compile(Model(tick, vent: ventArea, heat: conductance)).CreateSimulation(); Step(s, 20_000_000); Balance(s); + double error = Math.Max(Math.Abs(Value(s, 22, Field.Temperature) - reference[4]) / 100, Math.Abs(Value(s, 40, Field.FuelMass) + Value(s, 22, Field.Mass) - reference[2]) / fuel); + error = Math.Max(error, Math.Abs(Value(s, 22, Field.EvaporatedFuelMass) - reference[7]) / fuel); + error = Math.Max(error, Math.Abs(Value(s, 22, Field.CondensedFuelMass) - reference[8]) / fuel); + if (previous > 0) Require(previous / error > 1.65 && previous / error < 2.4, $"Tank phase refinement: {previous:R} / {error:R}"); + errors.Add(error); previous = error; + } + Console.WriteLine($"Finite tank phase ODE errors (vent {ventArea:R}, heat {conductance:R}): " + string.Join(", ", errors.Select(e => e.ToString("R")))); + } + + private static void Transactions() + { + var s = CompiledModel.Compile(Model(vent: 1e-10)).CreateSimulation(); Step(s, 10_000_000); var before = Snapshot(s); + Require(s.Step(10_000_000, cancellationToken: new CancellationToken(true)) == SimulationStatus.Cancelled && Snapshot(s) == before); + Require(s.Step(10_000_000, [new(before.TimeNanoseconds + 5_000_000, 100, double.MaxValue)]) == SimulationStatus.NumericalFailure && Snapshot(s) == before); + var replay = s.Fork(); Step(s, 10_000_000); for (int i=0;i<10;++i) Step(replay, 1_000_000); Require(Snapshot(s)==Snapshot(replay)); + var fork = s.Fork(); before=Snapshot(s); Require(fork.SubmitInputs([new(110,0)])==SimulationStatus.Ok); Step(fork,10_000_000); Require(Snapshot(s)==before); + var values=new Scalar[s.Model.OutputCount];for(int i=0;i<10;++i){Step(s,50_000);s.ReadSnapshot(values);}long allocated=GC.GetAllocatedBytesForCurrentThread(); + for(int i=0;i<40;++i){Step(s,50_000);s.ReadSnapshot(values);}Require(GC.GetAllocatedBytesForCurrentThread()==allocated,"Tank phase stepping allocated."); + } + private static void Contracts() + { + var definition=Model(); + var wrong=definition with{Nodes=definition.Nodes.Select(n=>n.Id==40? n with{Gas=n.Gas! with{Gamma=1.35}}:n).ToArray()}; + Require(!CompiledModel.TryCompile(wrong,out _,out var gas)&&gas!.Field=="liquid_fuel_tank.headspace.phase_equilibrium"); + wrong=definition with{Nodes=definition.Nodes.Select(n=>n.Id==40? n with{Gas=n.Gas! with{Premixed=n.Gas!.Premixed! with{InitialFractions=new(0,1)}}}:n).ToArray()}; + Require(!CompiledModel.TryCompile(wrong,out _,out var fraction)&&fraction!.Field=="liquid_fuel_tank.headspace.initial_fractions"); + wrong=definition with{Components=definition.Components.Select(c=>c.FuelFilm is null?c:c with{FuelFilm=c.FuelFilm with{PhaseEquilibrium=null}}).ToArray()}; + Require(!CompiledModel.TryCompile(wrong,out _,out _)); + var compiled=CompiledModel.Compile(definition);int index=Array.FindIndex(definition.Components,c=>c.LiquidFuelTank is not null); + definition.Components[index]=definition.Components[index] with{LiquidFuelTank=definition.Components[index].LiquidFuelTank! with{Headspace=definition.Components[index].LiquidFuelTank!.Headspace! with{PhaseEquilibrium=false}}}; + Require(compiled.Fingerprint!=CompiledModel.Compile(definition).Fingerprint); + var a=compiled.CreateSimulation();var b=CompiledModel.Compile(Model()).CreateSimulation();Step(a,1_000_000);Step(b,1_000_000);Require(Snapshot(a)==Snapshot(b)); + } + private static void Dry() + { + var definition=Model(); + definition=definition with { Components=definition.Components.Select(c=>c.LiquidFuelTank is null?c:c with{LiquidFuelTank=c.LiquidFuelTank with{InitialMass=new(0,Unit.Kilogram)}}).ToArray() }; + var dry=CompiledModel.Compile(definition).CreateSimulation();double initialRail=Value(dry,12,Field.Mass); + Step(dry,10_000_000);Balance(dry); + Near(Value(dry,21,Field.TotalFuelDelivered),0,1e-15);Near(Value(dry,12,Field.Mass),initialRail,1e-15); + Require(Value(dry,40,Field.FuelMass)>0&&Value(dry,22,Field.Mass)<1e-15,"Dry pickup consumed source vapor or manufactured a liquid inventory."); + var bad=definition with + { + Nodes=definition.Nodes.Select(n=>n.Id==5?NodeDefinition.Hydraulic(5,5e-13,100000):n).ToArray(), + Components=definition.Components.Select(c=>c.LiquidFuelInjector is null?c:c with{LiquidFuelInjector=c.LiquidFuelInjector with{InitialPressure=new(100000,Unit.Pascal),SupplyTemperature=new(400,Unit.Kelvin)}}).ToArray() + }; + Require(!CompiledModel.TryCompile(bad,out _,out var error)&&error!.Field=="liquid_fuel_injector.initial_pressure","A dry source bypassed the paired rail phase boundary."); + } +} diff --git a/tests/Power.Tests/TankPhaseIntegrationChecks.cs b/tests/Power.Tests/TankPhaseIntegrationChecks.cs new file mode 100644 index 0000000..31b47e6 --- /dev/null +++ b/tests/Power.Tests/TankPhaseIntegrationChecks.cs @@ -0,0 +1,74 @@ +// Copyright (C) 2026 Power! contributors +// Licensed under GPL-3.0-or-later with the Unity Linking Exception. +// See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository root. + +using System.Text.Json; +using System.Text.Json.Nodes; +using Power.Agent; +using Power.Assets; +using Power.Core; +using Power.Experiments; +using static Power.Tests.CoreChecks; + +namespace Power.Tests; + +internal static class TankPhaseIntegrationChecks +{ + internal static IEnumerable<(string Name,Action Run)> All => + [ + ("equilibrium tank supply / reversal vented chemistry and every portable boundary",Supply), + ("equilibrium tank engine / finite liquid displacement pressure work and full fuel ledger",Engine), + ("equilibrium tank agent / strict flag material errors revisions and independent vent branches",Sessions) + ]; + private static string Source(string name)=>File.ReadAllText(Path.Combine(AppContext.BaseDirectory,name+".power.json")); + private static double V(SampleReport row,uint id,Field field)=>row.Values[Channels.Output(id,field).ToString()]; + private static JsonElement Data(AgentReply reply){Require(reply.Ok,reply.Error?.Message??"Expected success.");return reply.Data!.Value;} + private static ExperimentReport Check(string name,uint tank,uint gas,uint feed,uint? returned) + { + var doc=ModelDocument.Parse(Source(name));var report=ExperimentRunner.Evaluate(doc); + Require(report.Passed&&report.Replay.SampleHashesMatch&&report.Model.Fidelity=="equilibrium_tank_liquid_fuel_powertrain"); + var asset=AssetCodec.Decode(AssetCodec.Encode(doc.ToAsset(name)));var playback=asset.CreatePlayback();var values=new Scalar[asset.Model.OutputCount]; + var definition=doc.Model.Components.Single(c=>c.Id==tank).LiquidFuelTank!; + foreach(var row in report.Samples) + { + while(playback.TimeNanosecondsv.Value==row.Values[v.Channel.ToString()])); + double phase=V(row,tank,Field.EvaporatedFuelMass)-V(row,tank,Field.CondensedFuelMass); + Near(definition.InitialMass.Value-V(row,tank,Field.Mass),V(row,feed,Field.TotalFuelDelivered)-(returned is null?0:V(row,returned.Value,Field.TotalFuelDelivered))+phase,1e-13); + Near(V(row,tank,Field.Volume)+V(row,gas,Field.Volume),definition.Headspace!.Capacity.Value,1e-20); + Near(V(row,tank,Field.Temperature),V(row,gas,Field.Temperature),1e-8); + if(V(row,tank,Field.Mass)>0)Near(V(row,tank,Field.VaporPartialPressure),V(row,tank,Field.SaturationPressure),1e-5); + Near(V(row,0,Field.EnergyResidual),0,1e-6);Near(V(row,0,Field.MassResidual),0,1e-13);Near(V(row,0,Field.FuelResidual),0,1e-13);Near(V(row,0,Field.HydraulicVolumeResidual),0,1e-14); + } + return report; + } + private static void Supply() + { + var report=Check("equilibrium-tank-supply",22,40,21,null); + Require(report.Samples.Any(row=>V(row,22,Field.MassFlow)>0)&&report.Samples.Any(row=>V(row,22,Field.MassFlow)<0)); + Require(report.Samples.Any(row=>V(row,4,Field.Speed)>0)&&report.Samples.Any(row=>V(row,4,Field.Speed)<0)); + Require(V(report.Samples[^1],0,Field.FuelEnergyIn)<0,"Fuel-bearing source vent lost its chemical boundary."); + } + private static void Engine() + { + var report=Check("equilibrium-tank-fired-cylinder",1513,1520,1511,1515); + Require(V(report.Samples[^1],15,Field.HeatReleased)>300&&V(report.Samples[^1],1520,Field.FuelMass)>0); + } + private static void Sessions() + { + var workspace=new AgentWorkspace();var example=Data(AgentWorkspace.ExampleModel("equilibrium-tank-supply")); + Require(Data(AgentWorkspace.Capabilities()).GetProperty("liquid_fuel_tank").GetProperty("headspace").GetProperty("phase_equilibrium").GetProperty("optional_boolean").GetString()=="phase_equilibrium"); + string id=Data(workspace.CreateSession(example)).GetProperty("session_id").GetString()!; + string fork=Data(workspace.ForkSession(id,"0")).GetProperty("session_id").GetString()!; + Data(workspace.SetInputs(fork,"0",[new("110",1)]));Data(workspace.StepSession(fork,"1","10000000")); + Require(Data(workspace.ReadSnapshot(id)).GetProperty("revision").GetString()=="0"); + Data(workspace.StepSession(id,"0","10000000"));Require(Data(workspace.ReadSnapshot(id)).GetProperty("state_hash").GetString()!=Data(workspace.ReadSnapshot(fork)).GetProperty("state_hash").GetString()); + Data(workspace.CloseSession(fork,"2"));Data(workspace.CloseSession(id,"1")); + var invalid=JsonNode.Parse(example.GetRawText())!; + var tank=invalid["components"]!.AsArray().Single(c=>c!["kind"]!.GetValue()=="liquid_fuel_tank")!; + tank["parameters"]!["headspace"]!["phase_equilibrium"]="true"; + var bad=workspace.CreateSession(JsonDocument.Parse(invalid.ToJsonString()).RootElement);Require(!bad.Ok&&bad.Error?.Code=="invalid_argument"); + var doc=ModelDocument.Parse(Source("equilibrium-tank-supply"));var nodes=doc.Model.Nodes.Select(n=>n.Id==40?n with{Gas=n.Gas! with{Gamma=1.35}}:n).ToArray(); + Require(!CompiledModel.TryCompile(doc.Model with{Nodes=nodes},out _,out var error)&&error!.Field=="liquid_fuel_tank.headspace.phase_equilibrium"); + } +} diff --git a/tests/Power.Tests/ValveTimingChecks.cs b/tests/Power.Tests/ValveTimingChecks.cs index d1d7296..5c02df8 100644 --- a/tests/Power.Tests/ValveTimingChecks.cs +++ b/tests/Power.Tests/ValveTimingChecks.cs @@ -161,7 +161,7 @@ void Reject(ComponentDefinition c, DiagnosticCode code) var a = asset.CreatePlayback(); var b = decoded.CreatePlayback(); Ok(a.Advance(400_000_000)); while (!b.Completed) Ok(b.Advance(Math.Min(1_700_000, decoded.DurationNanoseconds - b.TimeNanoseconds))); Require(a.ReadSnapshot(new Scalar[model.OutputCount]) == b.ReadSnapshot(new Scalar[model.OutputCount])); - int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 140 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36; + int counts = 78 + Encoding.UTF8.GetByteCount(asset.Name), extension = counts + 160 + 44 * asset.Nodes.Count + 156 * asset.Components.Count + 24 + 36; void RejectBytes(byte[] data) { SHA256.HashData(data.AsSpan(0, data.Length - 32)).CopyTo(data, data.Length - 32); @@ -173,7 +173,7 @@ void RejectBytes(byte[] data) BinaryPrimitives.WriteInt32LittleEndian(missing.AsSpan(counts + 32), 0); RejectBytes(missing); var duplicate = bytes.Take(extension + 44).Concat(bytes.Skip(extension).Take(44)).Concat(bytes.Skip(extension + 44)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(duplicate.AsSpan(counts + 32), 2); RejectBytes(duplicate); - var downgraded = bytes.Take(counts + 32).Concat(bytes.Skip(counts + 140).Take(extension - counts - 140)).Concat(bytes.Skip(extension + 44)).ToArray(); + var downgraded = bytes.Take(counts + 32).Concat(bytes.Skip(counts + 160).Take(extension - counts - 160)).Concat(bytes.Skip(extension + 44)).ToArray(); BinaryPrimitives.WriteInt32LittleEndian(downgraded.AsSpan(8), 4); RejectBytes(downgraded); byte[] v4Bytes = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, "Fixtures", "moving-cylinder-v4.powerasset")); Require(Convert.ToHexStringLower(SHA256.HashData(v4Bytes)) == "1e73cac5346fdafd3ddae159e658e1e8156aaa69281627842372eeecf08cf325"); diff --git a/tests/Power.UnityCompatibility/Power.UnityCompatibility.csproj b/tests/Power.UnityCompatibility/Power.UnityCompatibility.csproj index ad199fe..6ffa852 100644 --- a/tests/Power.UnityCompatibility/Power.UnityCompatibility.csproj +++ b/tests/Power.UnityCompatibility/Power.UnityCompatibility.csproj @@ -9,7 +9,37 @@ See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository ro ../../Unity/Assets/Plugins/Power.Core.dll ../../Unity/Assets/Plugins/Power.Assets.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33,6 +63,16 @@ See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository ro + + + + + + + + + + @@ -57,6 +97,10 @@ See COPYING.NOTICE, LICENSE, and UNITY-LINKING-EXCEPTION.md in the repository ro + + + + diff --git a/tests/Power.UnityCompatibility/Program.cs b/tests/Power.UnityCompatibility/Program.cs index 838ef31..232bd13 100644 --- a/tests/Power.UnityCompatibility/Program.cs +++ b/tests/Power.UnityCompatibility/Program.cs @@ -12,7 +12,7 @@ CoreChecks.Require(framework == ".NETStandard,Version=v2.1", $"Wrong assembly under test: {framework}"); CoreChecks.Require(typeof(AssetCodec).Assembly.GetCustomAttribute()?.FrameworkName == ".NETStandard,Version=v2.1"); int failed = 0, total = 0; -foreach (var (name, run) in CoreChecks.All.Concat(AssetChecks.All).Concat(EngineChecks.All).Concat(GasChecks.All).Concat(ClutchChecks.All).Concat(IdealGearChecks.All).Concat(DctControllerChecks.All).Concat(DctControllerAssetChecks.All).Concat(HydraulicActuationChecks.All).Concat(ResolvedPlanetChecks.All).Concat(ResolvedPlanetAssetChecks.All).Concat(RavigneauxChecks.All).Concat(RavigneauxAssetChecks.All).Concat(DualClutchChecks.All).Concat(PumpChecks.All).Concat(PumpAssemblyChecks.All).Concat(PressureControllerChecks.All).Concat(BatteryChecks.All).Concat(PistonChecks.All).Concat(SpoolChecks.All).Concat(SpoolAssetChecks.All).Concat(PistonAssetChecks.All).Concat(BatteryAssetChecks.All).Concat(PressureControllerAssetChecks.All).Concat(PumpAssetChecks.All).Concat(HydraulicChecks.All).Concat(HydraulicAssetChecks.All).Concat(ConverterChecks.All).Concat(ConverterAssetChecks.All).Concat(GearModelChecks.All).Concat(GearAssetChecks.All).Concat(ClutchModelChecks.All).Concat(ClutchAssetChecks.All).Concat(GasPistonChecks.All).Concat(GasPistonAssetChecks.All).Concat(GasModelChecks.All).Concat(GasAssetChecks.All).Concat(MovingCylinderChecks.All).Concat(ValveTimingChecks.All).Concat(ClosurePredictionChecks.All).Concat(ClosurePredictionAssetChecks.All).Concat(SolenoidChecks.All).Concat(SolenoidAssetChecks.All).Concat(LiquidFuelInjectorChecks.All).Concat(LiquidFuelInjectorAssetChecks.All).Concat(FuelFilmChecks.All).Concat(FuelFilmAssetChecks.All).Concat(FuelInjectorChecks.All).Concat(FuelInjectorAssetChecks.All).Concat(CombustionChecks.All).Concat(CombustionAssetChecks.All)) +foreach (var (name, run) in CoreChecks.All.Concat(RelaxingFuelWorkChecks.All).Concat(RelaxingBoundaryChecks.All).Concat(RelaxingBoundaryAssetChecks.All).Concat(RelaxingFuelChecks.All).Concat(RelaxingFuelGraphChecks.All).Concat(RelaxingFuelAssetChecks.All).Concat(EquilibriumNozzleChecks.All).Concat(EquilibriumNozzleGraphChecks.All).Concat(EquilibriumNozzleAssetChecks.All).Concat(FrozenCompressibleNozzleChecks.All).Concat(CompressibleNozzleChecks.All).Concat(CompressibleNozzleAssetChecks.All).Concat(CompressibleChamberChecks.All).Concat(CompressibleChamberAssetChecks.All).Concat(CompressibleFuelChecks.All).Concat(EquilibriumDuctChecks.All).Concat(EquilibriumDuctAssetChecks.All).Concat(FuelPipeChecks.All).Concat(FuelPipeAssetChecks.All).Concat(LiquidColumnChecks.All).Concat(FuelDischargeChecks.All).Concat(FuelDischargeAssetChecks.All).Concat(FrozenFuelNozzleChecks.All).Concat(FiniteFuelReceiverChecks.All).Concat(FuelChamberChecks.All).Concat(FuelChamberAssetChecks.All).Concat(MovingFuelVolumeChecks.All).Concat(EquilibriumFuelNetworkChecks.All).Concat(EquilibriumFuelNetworkAssetChecks.All).Concat(CompliantFuelVolumeChecks.All).Concat(TankPhaseChecks.All).Concat(TankPhaseAssetChecks.All).Concat(FuelPhaseEquilibriumChecks.All).Concat(FuelPhaseEquilibriumAssetChecks.All).Concat(AssetChecks.All).Concat(EngineChecks.All).Concat(GasChecks.All).Concat(ClutchChecks.All).Concat(IdealGearChecks.All).Concat(DctControllerChecks.All).Concat(DctControllerAssetChecks.All).Concat(LiquidFuelTankAssetChecks.All).Concat(LiquidRailReturnAssetChecks.All).Concat(LiquidRailReturnChecks.All).Concat(LiquidFuelTankChecks.All).Concat(TankHeadspaceChecks.All).Concat(TankHeadspaceAssetChecks.All).Concat(LiquidRailFeedChecks.All).Concat(LiquidRailFeedAssetChecks.All).Concat(AtControllerChecks.All).Concat(AtControllerAssetChecks.All).Concat(HydraulicActuationChecks.All).Concat(ResolvedPlanetChecks.All).Concat(ResolvedPlanetAssetChecks.All).Concat(RavigneauxChecks.All).Concat(RavigneauxAssetChecks.All).Concat(DualClutchChecks.All).Concat(PumpChecks.All).Concat(PumpAssemblyChecks.All).Concat(PressureControllerChecks.All).Concat(BatteryChecks.All).Concat(PistonChecks.All).Concat(SpoolChecks.All).Concat(SpoolAssetChecks.All).Concat(PistonAssetChecks.All).Concat(BatteryAssetChecks.All).Concat(PressureControllerAssetChecks.All).Concat(PumpAssetChecks.All).Concat(HydraulicChecks.All).Concat(HydraulicAssetChecks.All).Concat(ConverterChecks.All).Concat(ConverterAssetChecks.All).Concat(GearModelChecks.All).Concat(GearAssetChecks.All).Concat(ClutchModelChecks.All).Concat(ClutchAssetChecks.All).Concat(GasPistonChecks.All).Concat(GasPistonAssetChecks.All).Concat(GasModelChecks.All).Concat(GasAssetChecks.All).Concat(MovingCylinderChecks.All).Concat(ValveTimingChecks.All).Concat(ClosurePredictionChecks.All).Concat(ClosurePredictionAssetChecks.All).Concat(SolenoidChecks.All).Concat(SolenoidAssetChecks.All).Concat(LiquidFuelInjectorChecks.All).Concat(LiquidFuelInjectorAssetChecks.All).Concat(FuelFilmChecks.All).Concat(FuelFilmAssetChecks.All).Concat(FuelInjectorChecks.All).Concat(FuelInjectorAssetChecks.All).Concat(CombustionChecks.All).Concat(CombustionAssetChecks.All)) { ++total; try { run(); Console.WriteLine($"PASS {name}"); } diff --git a/tools/Build.cs b/tools/Build.cs index 684d42f..9e4723f 100644 --- a/tools/Build.cs +++ b/tools/Build.cs @@ -9,6 +9,7 @@ // model lab for the libpower C ABI, its test suite, and a Python-semantics JSON // DOM shared by those tools. #:property AllowUnsafeBlocks=true +#:property PublishAot=false using System.ComponentModel; using System.Diagnostics; using System.Globalization; @@ -67,47 +68,24 @@ async Task Run(string executable, params string[] arguments) // Deliberately serialize compilation and tests to keep desktop memory pressure bounded. await Run(dotnet, "build", "Power.slnx", "-c", "Release", "--nologo", "--disable-build-servers", "-m:1", "-p:UseSharedCompilation=false"); string cli = Path.Combine(root, "src", "Power.Cli", "bin", "Release", "net10.0", "Power.Cli.dll"); - foreach (var lab in new[] { (File: "electrothermal", Asset: "Electrothermal", Name: "Electrothermal laboratory"), - (File: "thermal-network", Asset: "ThermalNetwork", Name: "Thermal exchange laboratory"), - (File: "sealed-cylinder", Asset: "SealedCylinder", Name: "Sealed cylinder laboratory"), - (File: "gas-network", Asset: "GasNetwork", Name: "Gas exchange laboratory"), - (File: "moving-cylinder", Asset: "MovingCylinder", Name: "Moving cylinder laboratory"), - (File: "crank-timed-cylinder", Asset: "CrankTimedCylinder", Name: "Crank-timed cylinder laboratory"), - (File: "fired-cylinder", Asset: "FiredCylinder", Name: "Premixed fired cylinder laboratory"), - (File: "fired-clutch", Asset: "FiredClutch", Name: "Fired clutch laboratory"), - (File: "fired-pump", Asset: "FiredPump", Name: "Fired pump transmission laboratory"), - (File: "fired-pump-losses", Asset: "FiredPumpLosses", Name: "Fired transmission with pump losses"), - (File: "electric-pump", Asset: "ElectricPump", Name: "Electric pump and pressure clutch laboratory"), - (File: "pressure-regulated-pump", Asset: "PressureRegulatedPump", Name: "Pressure-regulated electric pump laboratory"), - (File: "battery-regulated-pump", Asset: "BatteryRegulatedPump", Name: "Battery-fed regulated pump laboratory"), - (File: "piston-actuated-clutch", Asset: "PistonActuatedClutch", Name: "Dynamic piston clutch laboratory"), - (File: "spool-regulated-pump", Asset: "SpoolRegulatedPump", Name: "Mechanical spool regulator laboratory"), - (File: "gas-accumulator-pump", Asset: "GasAccumulatorPump", Name: "Gas accumulator pump laboratory"), - (File: "metered-fired-cylinder", Asset: "MeteredFiredCylinder", Name: "Metered fuel fired cylinder laboratory"), - (File: "film-fired-cylinder", Asset: "FilmFiredCylinder", Name: "Finite liquid film fired cylinder laboratory"), - (File: "liquid-injected-cylinder", Asset: "LiquidInjectedCylinder", Name: "Liquid injection and evaporation laboratory"), - (File: "needle-actuated-cylinder", Asset: "NeedleActuatedCylinder", Name: "Electromagnetic needle fired cylinder laboratory"), - (File: "closure-compensated-cylinder", Asset: "ClosureCompensatedCylinder", Name: "Predictive needle closing laboratory"), - (File: "dual-clutch-transmission", Asset: "DualClutchTransmission", Name: "Seven-speed dual-clutch laboratory"), - (File: "fired-dual-clutch", Asset: "FiredDualClutch", Name: "Fired dual-clutch powertrain laboratory"), - (File: "hydraulic-ravigneaux-transmission", Asset: "HydraulicRavigneauxTransmission", Name: "Hydraulic Ravigneaux actuation laboratory"), - (File: "fired-hydraulic-ravigneaux", Asset: "FiredHydraulicRavigneaux", Name: "Fired hydraulic Ravigneaux laboratory"), - (File: "resolved-ravigneaux-transmission", Asset: "ResolvedRavigneauxTransmission", Name: "Resolved planet transmission laboratory"), - (File: "fired-resolved-ravigneaux-converter", Asset: "FiredResolvedRavigneauxConverter", Name: "Fired resolved planet laboratory"), - (File: "ravigneaux-transmission", Asset: "RavigneauxTransmission", Name: "Ravigneaux transmission laboratory"), - (File: "fired-ravigneaux-converter", Asset: "FiredRavigneauxConverter", Name: "Fired Ravigneaux converter laboratory"), - (File: "controlled-dual-clutch", Asset: "ControlledDualClutch", Name: "Sampled DCT controller laboratory"), - (File: "controlled-fired-dual-clutch", Asset: "ControlledFiredDualClutch", Name: "Controlled fired DCT laboratory"), - (File: "fired-hydraulic", Asset: "FiredHydraulic", Name: "Fired hydraulic transmission laboratory"), - (File: "fired-converter", Asset: "FiredConverter", Name: "Fired torque converter laboratory"), - (File: "fired-planetary", Asset: "FiredPlanetary", Name: "Fired planetary transmission laboratory") }) - await Run(dotnet, cli, "export", $"assets/labs/{lab.File}.power.json", "--name", lab.Name, - "--output", $"Unity/Assets/Generated/Resources/{lab.Asset}.powerasset"); + var catalog = (JObj)PowerJson.Parse(Shell.Capture(root, [dotnet, cli, "list-labs"]), false, false); + if (((JStr)catalog["schema"]).Text != "power.laboratory_catalog.v1") + throw new ToolError("CLI returned an unsupported laboratory catalog."); + var laboratories = (JArr)catalog["laboratories"]; + var catalogNames = laboratories.Select(value => ((JStr)value["name"]).Text).Order(StringComparer.Ordinal).ToArray(); + var sourceNames = Directory.EnumerateFiles(Path.Combine(root, "assets", "labs"), "*.power.json") + .Select(path => Path.GetFileName(path)[..^".power.json".Length]).Order(StringComparer.Ordinal).ToArray(); + if (!catalogNames.SequenceEqual(sourceNames)) + throw new ToolError("Laboratory catalog must cover every assets/labs/*.power.json file exactly once."); + foreach (var lab in laboratories) + await Run(dotnet, cli, "export", $"assets/labs/{((JStr)lab["name"]).Text}.power.json", + "--name", ((JStr)lab["display_name"]).Text, + "--output", $"Unity/Assets/Generated/Resources/{((JStr)lab["asset_name"]).Text}.powerasset"); if (mode == "verify") { foreach (string project in new[] { "Power.Tests", "Power.UnityCompatibility", "Power.Mcp.Tests" }) await Run(dotnet, Path.Combine(root, "tests", project, "bin", "Release", "net10.0", project + ".dll")); - foreach (string lab in new[] { "electrothermal", "thermal-network", "sealed-cylinder", "gas-network", "moving-cylinder", "crank-timed-cylinder", "fired-cylinder", "fired-clutch", "fired-planetary", "fired-converter", "fired-hydraulic", "fired-pump", "fired-pump-losses", "electric-pump", "pressure-regulated-pump", "battery-regulated-pump", "piston-actuated-clutch", "spool-regulated-pump", "gas-accumulator-pump", "metered-fired-cylinder", "film-fired-cylinder", "liquid-injected-cylinder", "needle-actuated-cylinder", "closure-compensated-cylinder", "dual-clutch-transmission", "fired-dual-clutch", "controlled-dual-clutch", "controlled-fired-dual-clutch", "ravigneaux-transmission", "fired-ravigneaux-converter", "resolved-ravigneaux-transmission", "fired-resolved-ravigneaux-converter", "hydraulic-ravigneaux-transmission", "fired-hydraulic-ravigneaux" }) + foreach (var lab in catalogNames) await Run(dotnet, cli, $"assets/labs/{lab}.power.json", "--output", $"artifacts/reports/{lab}.json"); Console.WriteLine("Managed verification passed. Unity Editor/Play/IL2CPP require separate Unity validation."); return NativeVerify.Run(root);