<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://design3d.app/</id>
  <title>design3d blog - Posts tagged system architecture</title>
  <updated>2026-12-03T23:49:38.393355+00:00</updated>
  <link href="https://design3d.app/"/>
  <link href="https://design3d.app/blog/tag/system-architecture/atom.xml" rel="self"/>
  <generator uri="https://ablog.readthedocs.io/" version="0.11.13">ABlog</generator>
  <entry>
    <id>https://design3d.app/blog/posts/high-speed-train-designed-by-an-agent.html</id>
    <title>A double-deck high-speed train, designed by architecture and system iterations</title>
    <updated>2026-12-03T00:00:00+00:00</updated>
    <author>
      <name>Steven Masfaraud</name>
    </author>
    <content type="html">&lt;section id="a-double-deck-high-speed-train-designed-by-architecture-and-system-iterations"&gt;

&lt;img alt="The leading power car of the trainset, along the platform and under the overhead contact line" src="https://design3d.app/_images/high_speed_train.jpg" /&gt;
&lt;p&gt;The high-speed train showcase of design3d is a double-deck trainset inspired by the Alstom TGV M: two power cars and
nine trailers, 202 m long, running on 60E1 rails along a platform, under the overhead contact line of a high-speed
line. It is designed the way a system architect works: the architecture allocates to each system an envelope,
interfaces and a mass budget; each system is designed in its envelope and reports the issues it cannot solve; the
architecture changes its parameters, allocates again, and the systems are designed again, until they all fit.&lt;/p&gt;
&lt;p&gt;It was written by a coding agent, Claude Code with the Claude Opus 5.5 model, driven by its designer in 78 prompts
over three days, about 9 hours of active conversation. What the agent wrote is not a model of one trainset: it is a
design program, made of an architecture loop and of sizing algorithms for each system, that designs the trainset again
from its parameters. This post tells how, and gives the prompts to do it again.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://design3d.app/showcases/high-speed-train.html"&gt;Open the 3D view of the trainset&lt;/a&gt;, or the
&lt;a class="reference external" href="https://design3d.app/showcases/trailer-architecture.html"&gt;architecture of a trailer&lt;/a&gt; with its envelopes. The code is in
&lt;a class="reference external" href="https://github.com/masfaraud/design3d/tree/master/scripts/showcases/high_speed_train"&gt;scripts/showcases/high_speed_train&lt;/a&gt;.&lt;/p&gt;
&lt;section id="the-setup"&gt;
&lt;h2&gt;The setup&lt;/h2&gt;
&lt;p&gt;design3d is a Python CAD modeler made to design 3D models from code: the agent writes Python, runs it, reads the
checks it prints, and iterates. The agent showed a commented diff before each commit. The designer reviewed the model
in the 3D viewer and steered the design.&lt;/p&gt;
&lt;p&gt;The showcase reused the pattern of an earlier car showcase, where a first prompt had asked for “a car.py that
assembles subassemblies (classes) instantiated from the architecture parameters”, with a recursive product tree and
constraints checked at each build.&lt;/p&gt;
&lt;p&gt;In numbers:&lt;/p&gt;
&lt;div class="pst-scrollable-table-container"&gt;&lt;table class="table"&gt;
&lt;thead&gt;
&lt;tr class="row-odd"&gt;&lt;th class="head"&gt;&lt;p&gt;&lt;/p&gt;&lt;/th&gt;
&lt;th class="head"&gt;&lt;p&gt;&lt;/p&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;Conversation&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;78 prompts over 3 days, about 9 hours of active conversation (pauses over 10 minutes excluded)&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;Result&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;about 7,100 lines of Python (a main script and 11 modules)&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;Inputs&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;composition, gauge and decks, smallest curve radius, maximum axle load, traction needs, comfort requirements&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;Iterations&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;the architecture converges in 4 to 5 iterations, at each run&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;Checks&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;constraints checked at each run, and the masses compared with published figures&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/section&gt;
&lt;section id="a-design-program-not-a-drawing"&gt;
&lt;h2&gt;A design program, not a drawing&lt;/h2&gt;
&lt;p&gt;The agent did not search for a geometry that happens to pass the checks, prompt after prompt. It wrote the algorithms
a system architect and the system engineers would follow: allocate the envelopes, interfaces and mass budgets, design
each system in its envelope, collect the design issues, change the architecture parameters that resolve them, and
start again until every system fits. The traction chain is sized from the performance requirements, the air
conditioning from a heat balance, the staircase from the rules of stair design, the clearances from the smallest curve.&lt;/p&gt;
&lt;p&gt;These algorithms run again at each execution. Changing the number of trailers, the curve radius, the axle load limit
or the traction needs is changing an input and running the script: the architecture is allocated again, the systems
are designed again, and the loop resolves the new conflicts by itself.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="step-by-step"&gt;
&lt;h2&gt;Step by step&lt;/h2&gt;
&lt;section id="the-founding-prompt"&gt;
&lt;h3&gt;The founding prompt&lt;/h3&gt;
&lt;p&gt;The first prompt set the whole method, and asked for a plan and questions before any code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Taking the car showcase as an example, make a high-speed train showcase after a TGV M trainset (bogies between the
cars, two decks) for the dimensions and the general architecture. Write an architecture-oriented file in two steps:
allocation of volumes and design interfaces to and between the systems; design of the systems in their constrained
volume, respecting the interfaces. If a problem arises at the design level, report it back to iterate on the
interfaces and the volumes. Keep the integrator’s view: do not detail the inside of the systems when it has no value
for the assembly. Model the carbody quite finely (think about its manufacturing and deduce the parts to design). The
design of the systems can have several levels of detail (functional reasoning, 2D, coarse 3D, then detailed 3D).
Make a plan of how you intend to do it and ask me questions on the approach before implementing.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The agent proposed envelopes, interfaces, allocations and design issues as the core objects, an iteration loop, a
gauge module, and a carbody built from aluminium extrusions, and asked six questions. The answers chose a complete
trainset with less detail rather than one detailed car, a maximum number of iterations, a 17 t axle load limit, and
“Russian doll” levels of detail that can be refined later.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="the-architecture-loop-on-purpose"&gt;
&lt;h3&gt;The architecture loop, on purpose&lt;/h3&gt;
&lt;p&gt;The initial values of some architecture parameters are deliberately tight, so that the loop has something to solve at
each run:&lt;/p&gt;
&lt;div class="pst-scrollable-table-container"&gt;&lt;table class="table"&gt;
&lt;thead&gt;
&lt;tr class="row-odd"&gt;&lt;th class="head"&gt;&lt;p&gt;Issue reported by a system&lt;/p&gt;&lt;/th&gt;
&lt;th class="head"&gt;&lt;p&gt;Architecture parameter changed&lt;/p&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;The trailer bogies need a higher carbody support&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;support height 1,060 → 1,100 mm&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;The transformer needs a longer space between the power car bogies&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;bogie spacing 9.80 → 10.05 m&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;The air conditioning no longer fits over the bogie&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;upper floor 2,320 → 2,340 mm&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;The gangway platform follows&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;headroom 1,780 → 1,760 mm&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;The last line was not planned: a cascade found by the loop itself.&lt;/p&gt;
&lt;figure class="align-default" id="id1"&gt;
&lt;img alt="An intermediate trailer with its architecture envelopes" src="https://design3d.app/_images/high_speed_train_architecture.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;The architecture of an intermediate trailer: the envelopes allocated to the carbody, the bogie, the door and staircase, the air conditioning and the gangway, around the systems designed inside them.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="realism-asked-for-by-the-designer"&gt;
&lt;h3&gt;Realism, asked for by the designer&lt;/h3&gt;
&lt;p&gt;Many prompts were short corrections from a look at the 3D view: use the real 60E1 rail and wheel profiles; give the
power car the same section as the trailers for the aerodynamics, with a recessed flat roof for the pantograph; add
bogie fairings; cut the windows into the skin; merge the side panels by boolean union; put the belt rail inside the
skin rather than in it.&lt;/p&gt;
&lt;p&gt;Some revealed real design problems:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;The lowered pantograph hits the fairing.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The pan head was 1,950 mm wide in a 1,240 mm recess. Instead of moving the geometry, the agent bounded the envelope
of the pantograph by the recess and added an architecture rule that widens the recess (to 2,010 mm) when the
pantograph asks for it. Most corrections ended this way: a rule or a check in the architecture, rather than a patch
of the geometry, so that the same error cannot come back.&lt;/p&gt;
&lt;figure class="align-default" id="id2"&gt;
&lt;img alt="The raised pantograph under the contact wire" src="https://design3d.app/_images/high_speed_train_pantograph.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;The raised pantograph of the rear power car, its working height given by the contact wire through an interface, above the recess widened for the lowered pan head.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="systems-sized-from-their-needs"&gt;
&lt;h3&gt;Systems sized from their needs&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Is there a way to give a mass to a volume other than volume times density? I am thinking of the electrical
equipment. I want a summary electrical design from the high level traction needs, giving the dimensions and masses
to integrate, and the power car designed to accommodate them.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The traction chain is now sized from the performance requirements: maximum speed, accelerations, running resistance
and adhesion give 7.3 MW at the wheel rim (7.8 MW for the real TGV M), and technology ratios give the dimensions and
masses of the motors, converters, transformer and auxiliary converter. The transformer sized this way is the one
asking for a longer space between the bogies. Later, asking “why is our power car empty next to the TGV M?” led to
the missing equipment and more realistic ratios.&lt;/p&gt;
&lt;figure class="align-default" id="id3"&gt;
&lt;img alt="The leading power car with its equipment, body hidden" src="https://design3d.app/_images/high_speed_train_traction.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;The leading power car with its body hidden: the traction equipment sized from the performance requirements (converters, auxiliary converter, cabinets), the transformer under the floor and the motors in the bogies.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The air conditioning is sized by the heat balance of a trailer (26.2 kW of cooling, a 786 kg unit), the ventilation
grilles of the power car by the airflow its losses need (2.05 m² instead of 1.26 m²).&lt;/p&gt;
&lt;/section&gt;
&lt;section id="the-staircase-eight-times"&gt;
&lt;h3&gt;The staircase, eight times&lt;/h3&gt;
&lt;p&gt;The L-shaped staircase that climbs from the doors to the upper deck, over the bogie, took the most iterations. The
method was given in one prompt: design the steps first, then the structure on them, and hand the floor the cut-out it
needs. The designer then redirected it eight times: against a side wall, straight, the door steps designed first
with the threshold as the first step, the staircase driving the position of the doors, split at a lowered gangway
platform with at most 3 or 4 risers, and finally a straight flight ending with a quarter turn, as on the TGV Duplex,
which gave back 0.66 m of platform. The steps follow the Blondel rule: 11 risers of 178 mm for a 274 mm going.&lt;/p&gt;
&lt;figure class="align-default" id="id4"&gt;
&lt;img alt="Cutaway of the door end of a trailer with its staircase" src="https://design3d.app/_images/hst-1.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;The door end of a trailer, side wall and roof hidden: the door steps, the staircase with its quarter turn up to the upper deck, the vestibule and the gangway platform.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="clearances-from-the-smallest-curve"&gt;
&lt;h3&gt;Clearances from the smallest curve&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;To set the margin between the wheels of the bogie and the car, take an assumption of maximum curvature for this kind
of train, deduce the maximum steering angle of the bogie, and the limit of the car with a 20 mm margin
(parameter). From this, deduce the space between the cars, and reduce it as much as possible with a parametrized
margin.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;A 150 m radius gives a 3.6° steering angle: the end zones of the cars went from 2.40 to 2.14 m, and the gap between
the cars from 0.60 to 0.23 m.&lt;/p&gt;
&lt;figure class="align-default" id="id5"&gt;
&lt;img alt="A bogie between two trailers" src="https://design3d.app/_images/high_speed_train_bogie.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;A bogie shared by two trailers, its fairings hidden: the ends of the cars are as close to the wheels as the smallest curve allows.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="the-mass-budget-held-honestly"&gt;
&lt;h3&gt;The mass budget, held honestly&lt;/h3&gt;
&lt;p&gt;The 17 t axle load is checked at each run. When the bogie fairings were added, the axle load reached exactly 17.0 t;
when it was exceeded, the agent was asked to list the parts to lighten first, and a massive 450 kg underframe became a
welded frame. When the nose was split in two to hide a Scharfenberg coupler, the 480 kg coupler made the power car
45 kg too heavy: the agent refused to adjust masses to make the check pass, and offered options. The designer chose
a lighter transformer technology (1.9 kg/kVA).&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Compare the carbody values with the information you could find.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The power car without its bogies weighs 49.9 t, against about 50 t published for the TGV M, and the trainset 408 t
against 413.5 t in service.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="who-did-what"&gt;
&lt;h2&gt;Who did what&lt;/h2&gt;
&lt;p&gt;The agent wrote the design program: the architecture loop, the sizing of the systems, and the rules and checks that
fix the root causes of the collisions; it also said when the design did not respect a constraint. The designer set the method in the first prompt, gave the engineering
judgment (real profiles, the TGV Duplex staircase, the curve radius assumption, the transformer technology), and
looked at the model: almost every geometric error was first seen in the 3D view, then turned into a rule or a check
of the program, which applies at every run, whatever the parameters.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="the-prompts-to-do-it-again"&gt;
&lt;h2&gt;The prompts to do it again&lt;/h2&gt;
&lt;p&gt;Here are the prompts of this conversation, condensed, to design a similar system with a coding agent and design3d
installed from PyPI. Replace the bracketed parts with your own product.&lt;/p&gt;
&lt;ol class="arabic simple" start="0"&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;In a new folder under git, create a Python virtual environment and install design3d from PyPI
(&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;pip&lt;/span&gt; &lt;span class="pre"&gt;install&lt;/span&gt; &lt;span class="pre"&gt;design3d&lt;/span&gt;&lt;/code&gt;). Learn its API from the documentation (https://design3d.app) and with &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;help()&lt;/span&gt;&lt;/code&gt; on the
classes you use. Write the design as a Python package of modules called by one main script, which prints the checks
of the design, opens the 3D views with &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;VolumeModel.babylonjs()&lt;/span&gt;&lt;/code&gt; and exports a STEP file. Before each commit, show
me a commented diff.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Design a [product, after a reference model] with design3d. Write an architecture-oriented script in two steps:
(a) allocate envelopes, interfaces and mass budgets to each system; (b) design each system inside its envelope, and
report the design issues back to the architecture, which resolves them and iterates, up to a maximum number of
iterations. Keep an integrator’s view, and model the structure from its manufacturing process. Allow nested levels
of detail (functional, coarse 3D, detailed 3D). Propose a plan and ask me your questions before implementing.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;[Your answers.] Implement it, cite your reference data, start from deliberately tight parameters so that the
iterations show, and print the checks against the published figures.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Use the real standard profiles for [the interface parts], and add the environment ([track, platform, overhead
line]). Parametrize [the mechanism] by its working height, given by the environment through an interface, and
show it in its two states.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;[A defect seen in the 3D view: a gap, a collision.] Find the root cause. If the architecture could not see it,
bound the envelope or add a resolution rule and a check, rather than patching the geometry.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;When a budget is exceeded, list the coarse parts to redesign first, heaviest first, with the expected saving.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Add a summary sizing of [subsystem] from the high level needs (performance, loads), with technology ratios
giving dimensions and masses, and design the host so that it accommodates them.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Design [the interior element]: first the elements in contact with the user, then the structure on them, then hand
the cut-outs to the neighboring parts. Let it drive the position of [the doors]. Size [the air conditioning] from a
parametrized heat balance and give it the volume it needs.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Derive the clearances from a worst case assumption ([the smallest curve radius gives the steering angle]), with
parametrized margins, and tighten the layout to the minimum.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;List the parts by increasing mass, and compare the totals with the published figures you can find. Do not adjust
masses to make a constraint pass: offer me options.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Change [an input: the number of cars, the curve radius] and run the design again: check that the architecture
loop converges and report what changed.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Between these prompts, look at the 3D view: it is where most corrections of this showcase started.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
</content>
    <link href="https://design3d.app/blog/posts/high-speed-train-designed-by-an-agent.html"/>
    <summary>The high-speed train showcase of design3d is a double-deck trainset inspired by the Alstom TGV M: two power cars and
nine trailers, 202 m long, running on 60E1 rails along a platform, under the overhead contact line of a high-speed
line. It is designed the way a system architect works: the architecture allocates to each system an envelope,
interfaces and a mass budget; each system is designed in its envelope and reports the issues it cannot solve; the
architecture changes its parameters, allocates again, and the systems are designed again, until they all fit.It was written by a coding agent, Claude Code with the Claude Opus 5.5 model, driven by its designer in 78 prompts
over three days, about 9 hours of active conversation. What the agent wrote is not a model of one trainset: it is a
design program, made of an architecture loop and of sizing algorithms for each system, that designs the trainset again
from its parameters. This post tells how, and gives the prompts to do it again.The leading power car of the trainset, along the platform and under the overhead contact line</summary>
    <category term="agenticengineering" label="agentic engineering"/>
    <category term="railway" label="railway"/>
    <category term="showcase" label="showcase"/>
    <category term="systemarchitecture" label="system architecture"/>
    <published>2026-12-03T00:00:00+00:00</published>
  </entry>
</feed>
