Can LLMs Do CAD/CAE? A Breakdown of the Engineering Pipeline
Treating "an LLM independently designs an engine" as a single claim almost always leads to the wrong conclusion. In practice it is a pipeline of retrieval, modeling, solving, and visualization, each stage backed by decades of mature technology. This article breaks the pipeline down stage by stage, explains that the LLM's role is orchestration and code generation rather than a geometry kernel or numerical solver, and provides illustrative code, trust-validation checkpoints, and a reproducible evaluation method for judging the real benefits and risks in your own scenario.
Treating narratives like “an LLM independently completes an engine design” as a single unit of evaluation almost inevitably produces the wrong conclusion. What is actually happening is an engineering pipeline chained together from retrieval, modeling, solving, and visualization, and every link in that chain rests on a technical core that has been mature for decades. This article breaks the pipeline down link by link, defines the responsibility boundary of each stage, and shows that the LLM’s role is that of orchestrator and code generator, not geometry kernel or numerical solver. It also includes illustrative code, trust-validation checkpoints, and a reproducible capability evaluation method so you can judge the real payoff and the risks of such a solution in your own context.
1. First, decompose the “one-sentence task” into verifiable engineering stages
The description in the demo can be decomposed losslessly into four subtasks:
- Retrieve part documentation and technical parameters online;
- Build a parametric CAD model of the part;
- Call a CFD solver to iterate and optimize the design;
- Generate a result animation in a 3D rendering environment.
The key point is that these four steps span four entirely different problem classes: knowledge acquisition, geometric representation, numerical computation, and result presentation. Their correctness criteria differ as well — step one is judged by source traceability, step two by geometric validity and constraint satisfaction, step three by numerical convergence and mesh independence, and step four purely by visual appearance. Summarizing all of it as “the LLM did it” collapses four different acceptance standards into one.
2. Responsibility boundaries, stage by stage
2.1 Document retrieval and parameter extraction: the hard part is “trustworthy,” not “able to search”
What LLMs are good at is turning unstructured text into structured fields: extracting rated power, bore and stroke, and compression ratio from a spec sheet into key-value pairs, then performing unit conversion and dimensional consistency checks. The real engineering difficulty is that parameters must be bound to a version and a source, conflicting data needs adjudication rules, and standards or regulatory clauses cannot rely on the model’s memory.
The engineering practice is to separate retrieval from generation: the retrieval layer is responsible for recalling the source text and preserving provenance, while the model only extracts and normalizes. Any value that flows downstream must carry a source identifier and a confidence score.
2.2 CAD modeling: the model emits scripts, the kernel solves the geometry
The substance of parametric modeling is the feature tree and the constraint system, and geometric validity is guaranteed by the modeling kernel’s constraint solver. What the LLM produces here is not a solid body but the script and parameter table that drive the modeling API. Its ceiling therefore depends on two things: whether the script executes in the kernel without errors, and whether the generated feature order satisfies topological and assembly constraints.
# Illustrative: the model generates parameters and a modeling script;# geometric validity is verified by the kernelparams = {"bore": 86.0, "stroke": 92.0, "rods": 6, "deck": 220.0}script = f"""model = new_part()for i in range({params['rods']}):cyl = model.cylinder(radius={params['bore']}/2, height={params['deck']})cyl.translate(x=i*{params['bore']})model.revolve_crankcase()return model"""model = execute(script) # the kernel executes; failure means invalid outputassert model.is_watertight() # hard check on geometric validityassert model.interference() == 0 # assembly interference check
Note that validation is a hard gate: a high generation failure rate is the norm, so you must allow a multi-round “generate — execute — error — fix” loop rather than expecting a one-shot result.
2.3 CFD iterative optimization: the solver does the numerics, the model does the search strategy
Mesh generation, discretization schemes, turbulence models, and convergence criteria belong to numerical methods and the solver; the LLM does not replace them. What the model can contribute is process orchestration and optimization strategy: expressing design variables, constraints, and objective functions as a parameter sweep or a surrogate-model-driven optimization loop, and parsing logs to decide whether the mesh needs refinement.
# Illustrative: surrogate-model-driven optimization loop;# the evaluation function calls the solver internallyfor step in range(N):x = optimizer.suggest() # propose candidate design variablesy = run_cfd(x, mesh_refine=2) # the solver returns the objective quantityif not y.converged:x = refine_mesh(x); continue # refine the mesh first if not convergedoptimizer.update(x, y) # update the surrogate model
The benefit here is less time spent hand-writing sweep scripts and organizing results, not higher solution accuracy. Accuracy is still determined by mesh-independence verification, turbulence model selection, and boundary condition setup.
2.4 Rendering and animation: a presentation layer, not part of design decisions
3D rendering and animation are a means of communicating results. They are easily misread as “design capability,” but rendering feeds back no physical quantity and should not enter the acceptance chain.
3. Engineering constraints you must add before production
- Geometry and assembly validation: watertightness, interference, minimum wall thickness, and manufacturability rules, all enforced as automated gates.
- Simulation credibility: mesh independence and comparison against test or analytical solutions, forming verification and validation (V&V) records.
- Traceability: parameters, scripts, solver configurations, software versions, and random seeds stored together to guarantee reproducibility.
- Compute and cost: batch optimization is a distributed batch workload that needs queues, object storage, and elastic containers to carry it; general-purpose cloud capabilities such as container platforms, object storage, message queues, log services, and monitoring and alerting (for example those offered by Baidu AI Cloud) can serve as the runtime foundation for such a pipeline.
- Data compliance: confidential drawings and parameters require a clear boundary between internal and external networks and a masking strategy.
4. How to evaluate this capability objectively
Avoid being led by demo results; use controlled experiments under fixed conditions:
- Fix the input package (the same parameter table and operating conditions) and fix the toolchain versions;
- Record the first-pass success rate, the average number of correction rounds, and the number of human interventions;
- Record the geometry validation pass rate, the simulation convergence rate, and the deviation of the objective quantity;
- Have domain engineers blind-rate the usability of the results.
Among these metrics, “first-pass success rate” and “number of human interventions” are the most telling, because they directly reflect real labor-hour savings.
5. Conclusion
The real value of these demos lies in automating repetitive cross-tool work: writing scripts, running sweeps, organizing logs, and producing figures. The geometry kernel, the numerical solver, and the rendering engine each provide specialized capabilities that cannot be substituted, and the LLM is the orchestration layer between them. When evaluating such a solution, look at closed-loop validation and reproducibility rather than crediting the output of the entire pipeline to a single model — and by the same token, do not dismiss the model’s real progress in orchestration and code generation just because one pipeline is not yet fully connected.
