Skip to content
Beta.gtm@modelscript/gtsuite 15 diagnostic rules
Parser WASM GLR
Diagnostics 15 rules
DAE Arena Lowering
Simulation Native Solvers
Projections Modelica, SysML v2, SSP
Live ExampleTurboGdiEngine1D.gtm

GT-SUITE 1D Turbocharged Direct-Injection Engine Flowpath

1D gas-dynamics network coupling ambient intake, centrifugal compressor, charge-air intercooler, intake manifold, cylinder, and exhaust turbine.

Playground
Source (34 lines)
1# GT-SUITE 1D Turbocharged Engine Gas-Dynamics Model
2Object EndEnvironment "AmbientAir" {
3  Pressure = 1.01325
4  Temperature = 298.15
5}
6Object Compressor "TurboCompressor" {
7  RPM = 115000.0
8  PressureRatio = 2.15
9  Efficiency = 0.76
10}
11Object PipeRound "ChargeAirCooler" {
12  Diameter = 62.0
13  Length = 420.0
14  WallTemp = 315.0
15}
16Object FlowSplit "IntakeManifold" {
17  Volume = 3.2
18  InitialPressure = 2.10
19  InitialTemperature = 322.0
20}
21Object EngCylinder "Cylinder1" {
22  Bore = 82.5
23  Stroke = 88.0
24  CompressionRatio = 10.5
25}
26Object Turbine "ExhaustTurbine" {
27  PressureRatio = 1.95
28  Efficiency = 0.74
29}
30Link "AmbientAir" -> "TurboCompressor"
31Link "TurboCompressor" -> "ChargeAirCooler"
32Link "ChargeAirCooler" -> "IntakeManifold"
33Link "IntakeManifold" -> "Cylinder1"
34Link "Cylinder1" -> "ExhaustTurbine"
GT-SUITE 1D Thermo-Fluid Engine Network
GT-SUITE / GT-POWER Engine Schematic: EngineModel Rated Speed: 3000 RPM | Air-Fuel Lambda: 1 Air Inlet COMP Intercooler ε = 0.85 Intake Manifold Plenum C1 C2 C3 C4 Exhaust Manifold Plenum TURB Turbocharger Shaft (J = 8e-5 kg m²) Tailpipe
Drag to pan · Click % to reset

GT-SUITE / GT-POWER Modeling (.gtm, .gtd, .gtx, .gt) ​

The @modelscript/gtsuite package (languages/gtsuite) provides native compilation, simulation, analysis, and multi-domain projections for Gamma Technologies GT-SUITE and GT-POWER 1D engine, powertrain, turbocharging, and thermo-fluid dynamic simulation models.


Supported File Specifications ​

ExtensionFormatKey Structural Features
.gtm / .gtdGT-SUITE Model DeckASCII and XML representations of cylinders, plenums, runners, valves, injectors, and turbochargers
.dat / .mapTabular Component MapsCompressor and turbine pressure ratio vs. corrected mass flow and efficiency performance maps
.gdx / .csvTrajectory ResultsCrank-resolved in-cylinder pressure, temperature, burn rate, and emissions time series

Architecture & Compilation Pipeline ​

Rendering diagram...

Pre-Flight Powertrain Linter Rules ​

15 rules8 warning7 error Run with msx lint

CodeRuleSeverityMessage
M9001cfl-acoustic-violationwarningPipe '<pipeId>' cell length violates acoustic CFL condition: simulation dt (<value> \xB5s) exceeds stability limit (<value> \xB5s).
M9002compressor-surge-hazardwarningCompressor '<compId>' operating point (PR = <value>, \u1E41 = <value> kg/s) falls into the aerodynamic surge region.
M9003compressor-choke-limitwarningCompressor '<compId>' mass flow (<value> kg/s) exceeds maximum choke/stonewall sonic flow capacity.
M9004valve-profile-overlap-errorerrorValve '<valveId>' kinematic profile defect: <reason>.
M9005compression-ratio-invaliderrorCylinder '<cylId>' compression ratio (<value>) is physically unrealistic (must be between 6.0 and 26.0).
M9006unconnected-plenum-nodeerrorFlow split or plenum '<plenumId>' has no connected flow paths or boundary conditions.
M9007discharge-coefficient-out-of-boundswarningValve or orifice '<valveId>' discharge coefficient (<value>) is non-physical (must satisfy 0.0 < Cd <= 1.0).
M9008knock-margin-deficitwarningCylinder '<cylId>' operates in severe autoignition/knock hazard (CR = <value>, ignition anchor = <value>\xB0 CA BTDC).
M9009missing-boundary-pressureerrorEnvironment node '<envId>' has invalid or uninitialized static pressure (<= 0 Pa).
M9010turbine-expansion-ratio-excesswarningTurbine '<turbId>' expansion ratio (<value>) exceeds single-stage choked limit (> 4.5).
M9011intercooler-effectiveness-invalidwarningIntercooler '<icId>' thermal effectiveness (<value>) violates 2nd Law of Thermodynamics (must satisfy 0.0 < eff <= 1.0).
M9012air-fuel-equivalence-out-of-boundserrorAir-fuel equivalence ratio lambda (<value>) is outside combustible flammability limits (0.50 <= lambda <= 2.50).
M9013negative-pipe-dimensionserrorPipe '<pipeId>' has non-positive <dim> (<value> m).
M9014injector-timing-conflicterrorInjector '<injId>' start of injection (<value>\xB0 CA) falls outside valid cycle window (-360\xB0 to +720\xB0).
M9015isolated-shaft-inertiawarningTurbocharger shaft '<shaftId>' has no linked compressor or turbine rotating components.

Generated from languages/gtsuite/src/lints/index.ts. All languages →


Headless CLI Operations (msx gtsuite) ​

bash
# Print model summary
msx gtsuite summary cases/Turbo4Cyl.gtm

# Run pre-flight static analysis
msx gtsuite lint cases/Turbo4Cyl.gtm

# Run in-WASM transient thermodynamic simulation
msx gtsuite simulate cases/Turbo4Cyl.gtm --duration=0.5 --out=trajectories.csv

# Evaluate formal verification gates (BSFC, boost, emissions, knock)
msx gtsuite verify cases/Turbo4Cyl.gtm --max-bsfc=240.0 --max-boost=2.8 --max-nox=60.0

# Export vector schematic SVG diagram
msx gtsuite diagram cases/Turbo4Cyl.gtm --view=schematic --out=engine_schematic.svg

# Project to Modelica and SysML v2
msx gtsuite to-modelica cases/Turbo4Cyl.gtm --out=Engine.mo
msx gtsuite to-sysml2 cases/Turbo4Cyl.gtm --out=Engine.sysml

Open-Core under the GNU AGPL v3 License; Enterprise Edition (ee/) under the ModelScript Enterprise License. • Trademark Policy