<?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</title>
  <updated>2026-12-03T23:49:38.255074+00:00</updated>
  <link href="https://design3d.app/"/>
  <link href="https://design3d.app/blog/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>
  <entry>
    <id>https://design3d.app/blog/posts/substation-designed-by-an-agent.html</id>
    <title>A 63/20 kV substation on real plots, designed by a coding agent</title>
    <updated>2026-12-03T00:00:00+00:00</updated>
    <author>
      <name>Steven Masfaraud</name>
    </author>
    <content type="html">&lt;section id="a-63-20-kv-substation-on-real-plots-designed-by-a-coding-agent"&gt;
&lt;span id="a-6320-kv-substation-on-real-plots-designed-by-a-coding-agent"&gt;&lt;/span&gt;
&lt;img alt="The substation designed on the plot of l'Horme, with its three incoming lines" src="https://design3d.app/_images/substation1.jpg" /&gt;
&lt;p&gt;The substation showcase of design3d is an outdoor 63/20 kV substation designed on three real plots of the Loire and
Rhône (France), read from OpenStreetMap. Everything in it is computed: the clearances in air come from the insulation
levels of IEC 61936-1, the post insulators are sized for the pollution of the site, each bay is laid out by
iterations on its clearances, the transformers are sized from their rating, and the whole is placed on the plot with
the largest margin, its terminal towers at the real towers of the incoming lines.&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 22 prompts
over two evenings, about 2.5 hours of active conversation. What the agent wrote is not a model of one substation: it is
a design program, made of sizing and layout algorithms, that designs the substation again for any plot, voltage or
rating given as input. 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/substation-of-poste-electrique-de-l-horme.html"&gt;Open the 3D view of the substation of l’Horme&lt;/a&gt;, or
&lt;a class="reference external" href="https://design3d.app/showcases/"&gt;browse all the 3D views&lt;/a&gt;. The code is in
&lt;a class="reference external" href="https://github.com/masfaraud/design3d/tree/master/scripts/showcases/substation"&gt;scripts/showcases/substation&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. Nothing is drawn by hand, and every geometric question (does this conductor keep its
clearance from that post? is this part inside the fence?) is answered by computation.&lt;/p&gt;
&lt;p&gt;The agent showed a commented diff before each commit, one commit per design step. The designer reviewed each step in
the 3D viewer and steered the design.&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;22 prompts, 2 sessions, about 2.5 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 5,100 lines of Python (a main script and 11 modules), 3 GeoJSON plots, 7 commits&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;the plot (GeoJSON from OpenStreetMap) and its incoming lines, voltages, transformer rating, short-circuit current, pollution class, altitude&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;Checks&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;126 constraints checked at each run&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;Run&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;the whole script, with its 3 substations, runs in about 2 minutes&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
an engineer would follow: derive the clearances from the voltages, size the insulators by iterations on their profile,
move the parameter that resolves each violated clearance until the bay converges, choose the order of the bays by
cost, search the placement with the largest margin. These algorithms run again at each execution, from the inputs.&lt;/p&gt;
&lt;p&gt;Changing the plot, the voltage or the pollution of the site is changing an input and running the script: the
insulators, the bays, the transformer and the layout are designed again, and the 126 constraints are checked again.
This is how the same program designs the three substations of this post, on three very different plots.&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="choosing-the-showcase"&gt;
&lt;h3&gt;Choosing the showcase&lt;/h3&gt;
&lt;p&gt;The first prompt did not name the substation. It asked for ideas:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Propose ideas for an energy showcase that would involve design with architecture, pre-sizing and geometric
calculations.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The agent proposed seven: a wind turbine (its own favorite), a dam, a solar tower, a PV farm, a tidal turbine, a small
modular reactor, and an HV/MV substation. The designer picked the substation, precisely because it has a layout:
many apparatuses whose positions are constrained by clearances, on a plot of limited size. The agent then detailed it
as a 63/20 kV air insulated substation with two 36 MVA transformers, a 20 kA short-circuit current and 12 MV
feeders, with three levels of design (topology, bays, layout), the sizing laws to use and the geometric checks to
make.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="a-real-plot-as-an-input"&gt;
&lt;h3&gt;A real plot as an input&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Identify a plot on OSM of a substation that could match, to get a realistic footprint. This polygon should be an
input of the calculation.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;This prompt anchored the whole showcase in reality. The agent queried the 63/20 kV substations of OpenStreetMap,
picked the one of Sury-le-Comtal (4,445 m²) for its clean outline, saved it as GeoJSON with its ODbL attribution,
and wrote a small module projecting it to local meters and loading it as a design3d polygon. From then on, the plot
was a constraint like any other.&lt;/p&gt;
&lt;figure class="align-default" id="id1"&gt;
&lt;img alt="Three plots from OpenStreetMap with their incoming lines" src="https://design3d.app/_images/substation_osm_plots.png" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;The inputs: the three plots read from OpenStreetMap, with the real incoming lines and their last towers (the two other plots came in a later step).&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="clearances-and-insulators"&gt;
&lt;h3&gt;Clearances and insulators&lt;/h3&gt;
&lt;p&gt;The first step implemented the insulation coordination: the nominal voltages give the insulation levels of IEC 60038
and IEC 61936-1, from which derive the clearances in air (630 mm phase to earth at 72.5 kV), the height of live
parts over the walkways, and the clearance to the fence, which leaves inside the plot the area where live parts may
stand.&lt;/p&gt;
&lt;p&gt;The post insulators are then designed for these levels and for the pollution of the site. The required creepage
distance is not computed by a formula: it is measured on the 2D profile whose revolution builds the insulator, and
the number and spacing of the sheds are found by iterations. The result, 12 sheds 56 mm apart for an 817 mm tall
insulator, is close to a commercial C4-325 post (770 mm).&lt;/p&gt;
&lt;figure class="align-default" id="id2"&gt;
&lt;img alt="The two post insulators in 3D" src="https://design3d.app/_images/substation_insulators.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 1: the 24 kV and 72.5 kV post insulators, built by revolution of their 2D profiles, whose length between the flanges is the creepage distance: 12 sheds for 72.5 kV.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="a-bay-laid-out-by-its-clearances"&gt;
&lt;h3&gt;A bay laid out by its clearances&lt;/h3&gt;
&lt;p&gt;The line bay is where the method shows best. Every live and earthed part (busbars, disconnectors, circuit breaker,
instrument transformers, gantry) is reduced to capsules around 3D line segments, and every clearance is checked by
computation. The algorithm starts from deliberately tight parameters and, at each iteration, changes the one
architecture parameter that resolves each violated clearance:&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;Violation found&lt;/p&gt;&lt;/th&gt;
&lt;th class="head"&gt;&lt;p&gt;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;A riser 381 mm from a busbar, 630 mm required&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;busbars raised by 200 mm steps, from 4.25 to 5.25 m&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;&lt;td&gt;&lt;p&gt;Open disconnector blades too close to the next phase&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;phase spacing from 1.13 to 1.28 m&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;&lt;td&gt;&lt;p&gt;Outer phases too close to the gantry posts&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;lateral margin increased, bay width 4.62 m&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;The bay converges in 6 iterations, with 27 checks passing, at every run. The agent also caught one of its own errors
on the way:
heights must be measured from the low point of the conductor, not of its capsule, otherwise the instrument
transformers came out 16 cm too low.&lt;/p&gt;
&lt;figure class="align-default" id="id3"&gt;
&lt;img alt="The line bay of the substation, up to the gantry" src="https://design3d.app/_images/substation_bay.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 2: the line bay, from the busbars to the gantry, laid out by iterations on its clearances.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="outside-the-fence-the-overhead-line"&gt;
&lt;h3&gt;Outside the fence: the overhead line&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Could you add a high voltage tower?&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;A short prompt, a whole module: the sag of the line over its ruling span (7.93 m for 300 m spans), the phase spacing
of EN 50341, a 19.7 m lattice tower of 148 members with its earth wire peak placed for a 30° shielding angle, and its
crossarms grown in 7 iterations until the jumpers keep their clearance from the members. The slack span to the gantry
of the substation sags 0.77 m.&lt;/p&gt;
&lt;figure class="align-default" id="id4"&gt;
&lt;img alt="The lattice tower and the slack span to the gantry" src="https://design3d.app/_images/substation_tower.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 3: the terminal tower of the overhead line, and the slack span to the gantry of the substation.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="the-transformer-sized-from-its-rating"&gt;
&lt;h3&gt;The transformer, sized from its rating&lt;/h3&gt;
&lt;p&gt;The 36 MVA transformer is sized like a real one: 65.6 V per turn, a stepped core of 8 steps with a fill factor of
0.941 (the optimum, found with scipy, is 0.942), a winding height found by bisection to get a short-circuit impedance
of 17 %, the no-load and load losses, ONAN cooling by 8 radiators, 16.6 m³ of oil, 48.7 t, and the retention pit
that holds the oil.&lt;/p&gt;
&lt;figure class="align-default" id="id5"&gt;
&lt;img alt="The transformer and its active part" src="https://design3d.app/_images/substation_transformer.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 4: the 36 MVA transformer in its retention pit, with its radiators, conservator and bushings, beside its active part (core and windings) sized from the rating.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="the-layout-chosen-by-cost"&gt;
&lt;h3&gt;The layout, chosen by cost&lt;/h3&gt;
&lt;p&gt;The layout makes the bays agree on the parameters of the busbars running through them, chooses their order along the
busbars by cost over all the permutations (firewalls between neighboring transformers, staggered towers, MV cables),
adds the MV building, the road and the cable trenches, and searches the placement with the largest margin on the
plot.&lt;/p&gt;
&lt;figure class="align-default" id="id6"&gt;
&lt;img alt="Top view of the substation on its plot" src="https://design3d.app/_images/substation_layout_top.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 5: the layout on the plot of Sury-le-Comtal, seen from above: the line bay, the busbars, the two transformer bays, the MV building and the road, with the terminal tower outside the fence.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="three-plots-real-lines"&gt;
&lt;h3&gt;Three plots, real lines&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Find two other plots, a more cramped one and an odd-shaped one, and run the calculation three times. Identify the
incoming lines to place the towers correctly.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;This is where the design program proves itself. The agent added le Grand Verger (2,047 m², two lines arriving 56°
apart) and l’Horme (3,206 m², three lines, 90 % of its convex hull) as new inputs, and the program now places the
terminal towers at the real last towers of the lines, read from OpenStreetMap.
Doing so, it found that Sury-le-Comtal has only one incoming line, and removed the second line it had assumed. The
angled lines needed new design features (fitting lengths, jumpers offset outwards), and the agent admitted that its
35° limit on the line deviation was arbitrary: it became a 45° parameter, without which le Grand Verger had no
solution. Once generalized this way, the program designs the three substations in one run, and would design a fourth
from a new GeoJSON file.&lt;/p&gt;
&lt;figure class="align-default" id="id7"&gt;
&lt;img alt="The substation of le Grand Verger, with its two incoming lines" src="https://design3d.app/_images/substation_grand_verger.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 6: the cramped plot of le Grand Verger, with its two lines arriving 56° apart.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/section&gt;
&lt;section id="what-the-designer-saw"&gt;
&lt;h3&gt;What the designer saw&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;The gantries of Grand Verger are outside the fence.&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Typed while the agent was working, from a look at the 3D view. The design checked the live parts against the fence,
but not the earthed structures, such as the posts of the gantries. A constraint on the hull of the structures was added
to the placement, so that no part, live or earthed, can stand outside the fence on any plot.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="flexible-conductors"&gt;
&lt;h3&gt;Flexible conductors&lt;/h3&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;p&gt;Shouldn’t we use sweeps for the electric cables?&lt;/p&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;The flexible conductors (downleads, slack spans, jumpers) are now sweeps of their circular section along smooth
B-spline curves interpolating the points computed by the design, the same points used for the clearance checks: they
follow the layout wherever the program places the apparatuses.&lt;/p&gt;
&lt;figure class="align-default" id="id8"&gt;
&lt;img alt="Close view of the gantry and its flexible conductors" src="https://design3d.app/_images/substation_sweeps.jpg" /&gt;
&lt;figcaption&gt;
&lt;p&gt;&lt;span class="caption-text"&gt;Step 7: the flexible conductors (downleads, slack spans, jumpers) are sweeps of their section along B-spline curves.&lt;/span&gt;&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&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: it chose and applied the standards, turned them into sizing and layout
algorithms, and reported honestly what it had assumed (the line on Sury-le-Comtal, the 35° limit). The designer chose
the subject, asked for real inputs (a real plot, then the real lines), looked at the result, and spotted what the
checks did not cover. The result belongs to the code, not to the conversation: anyone can run it again with other
inputs.&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 system.&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;Propose ideas of [domain] systems I could design in Python with design3d, combining an architecture, a pre-sizing
from physical laws and geometric calculations. For the one I pick, detail the inputs, the sizing laws with their
standards, the geometric checks, the modules and a step-by-step plan. Ask me your questions before writing code.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Find a real site on OpenStreetMap whose footprint fits this [system], save its polygon as GeoJSON with its
attribution, and make it an input of the calculation: project it to local meters and load it as a design3d
&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;ClosedPolygon2D&lt;/span&gt;&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Step 1: implement the governing standards (insulation levels and clearances). Size the first component by
iterations, measuring the requirement on the geometry itself: the creepage distance is the length of the 2D
profile that a design3d &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;RevolvedProfile&lt;/span&gt;&lt;/code&gt; revolves. Print the iteration log.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Step 2: design one functional unit (a bay). Reduce every live and earthed part to capsules around 3D line
segments, check every clearance by computation, and on each violation change the one architecture parameter that
resolves it, until convergence. Report which violation moved which parameter.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Add the interfacing equipment outside the fence (terminal tower and overhead line), sized from the sag and phase
spacing rules, and checked with the same clearance model.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Size the main component (the transformer) from its rating: core, windings for the target impedance, losses,
cooling, oil, masses. Then build its geometry.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Do the layout: make the units agree on their shared parameters, choose their order by a cost function, add the
auxiliary works, and place everything on the plot with the largest margin. Check that every part, live or earthed,
stays inside the fence.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Run the same design on two more real plots, a cramped one and an odd-shaped one, and place the towers at the real
incoming lines from OpenStreetMap. Report the margins, and the assumptions that had to become parameters.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Model the flexible conductors as design3d &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;Sweep&lt;/span&gt;&lt;/code&gt; of their section along B-spline curves interpolating the
points used by the clearance checks.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Make every assumption an input or a parameter of the specification, so that I can run the design again on
another site.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Between these prompts, look at the 3D view: the most useful corrections of this showcase came from it.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
</content>
    <link href="https://design3d.app/blog/posts/substation-designed-by-an-agent.html"/>
    <summary>The substation showcase of design3d is an outdoor 63/20 kV substation designed on three real plots of the Loire and
Rhône (France), read from OpenStreetMap. Everything in it is computed: the clearances in air come from the insulation
levels of IEC 61936-1, the post insulators are sized for the pollution of the site, each bay is laid out by
iterations on its clearances, the transformers are sized from their rating, and the whole is placed on the plot with
the largest margin, its terminal towers at the real towers of the incoming lines.It was written by a coding agent, Claude Code with the Claude Opus 5.5 model, driven by its designer in 22 prompts
over two evenings, about 2.5 hours of active conversation. What the agent wrote is not a model of one substation: it is
a design program, made of sizing and layout algorithms, that designs the substation again for any plot, voltage or
rating given as input. This post tells how, and gives the prompts to do it again.The substation designed on the plot of l'Horme, with its three incoming lines</summary>
    <category term="OpenStreetMap" label="OpenStreetMap"/>
    <category term="agenticengineering" label="agentic engineering"/>
    <category term="energy" label="energy"/>
    <category term="showcase" label="showcase"/>
    <category term="substation" label="substation"/>
    <published>2026-12-03T00:00:00+00:00</published>
  </entry>
</feed>
