Can ChatGPT Implement Finite Element Models for Geotechnical Engineering Applications?

IF 3.4 2区 工程技术 Q2 ENGINEERING, GEOLOGICAL International Journal for Numerical and Analytical Methods in Geomechanics Pub Date : 2025-02-06 DOI:10.1002/nag.3956
Taegu Kim, Tae Sup Yun, Hyoung Suk Suh
{"title":"Can ChatGPT Implement Finite Element Models for Geotechnical Engineering Applications?","authors":"Taegu Kim, Tae Sup Yun, Hyoung Suk Suh","doi":"10.1002/nag.3956","DOIUrl":null,"url":null,"abstract":"This study assesses the capability of ChatGPT to generate finite element code for geotechnical engineering applications from a set of prompts. We tested three different initial boundary value problems using a hydro‐mechanically coupled formulation for unsaturated soils, including the dissipation of excess pore water pressure through fluid mass diffusion in one‐dimensional space, time‐dependent differential settlement of a strip footing, and gravity‐driven seepage. For each case, initial prompting involved providing ChatGPT with necessary information for finite element implementation, such as balance and constitutive equations, problem geometry, initial and boundary conditions, material properties, and spatiotemporal discretization and solution strategies. Any errors and unexpected results were further addressed through prompt augmentation processes until the ChatGPT‐generated finite element code passed the verification/validation test. Our results demonstrate that ChatGPT required minimal code revisions when using the FEniCS finite element library, owing to its high‐level interfaces that enable efficient programming. In contrast, the MATLAB code generated by ChatGPT necessitated extensive prompt augmentations and/or direct human intervention, as it involves a significant amount of low‐level programming required for finite element analysis, such as constructing shape functions or assembling global matrices. Given that prompt engineering for this task requires an understanding of the mathematical formulation and numerical techniques, this study suggests that while a large language model may not yet replace human programmers, it can greatly assist in the implementation of numerical models.","PeriodicalId":13786,"journal":{"name":"International Journal for Numerical and Analytical Methods in Geomechanics","volume":"163 1","pages":""},"PeriodicalIF":3.4000,"publicationDate":"2025-02-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal for Numerical and Analytical Methods in Geomechanics","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1002/nag.3956","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ENGINEERING, GEOLOGICAL","Score":null,"Total":0}
引用次数: 0

Abstract

This study assesses the capability of ChatGPT to generate finite element code for geotechnical engineering applications from a set of prompts. We tested three different initial boundary value problems using a hydro‐mechanically coupled formulation for unsaturated soils, including the dissipation of excess pore water pressure through fluid mass diffusion in one‐dimensional space, time‐dependent differential settlement of a strip footing, and gravity‐driven seepage. For each case, initial prompting involved providing ChatGPT with necessary information for finite element implementation, such as balance and constitutive equations, problem geometry, initial and boundary conditions, material properties, and spatiotemporal discretization and solution strategies. Any errors and unexpected results were further addressed through prompt augmentation processes until the ChatGPT‐generated finite element code passed the verification/validation test. Our results demonstrate that ChatGPT required minimal code revisions when using the FEniCS finite element library, owing to its high‐level interfaces that enable efficient programming. In contrast, the MATLAB code generated by ChatGPT necessitated extensive prompt augmentations and/or direct human intervention, as it involves a significant amount of low‐level programming required for finite element analysis, such as constructing shape functions or assembling global matrices. Given that prompt engineering for this task requires an understanding of the mathematical formulation and numerical techniques, this study suggests that while a large language model may not yet replace human programmers, it can greatly assist in the implementation of numerical models.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
求助全文
约1分钟内获得全文 去求助
来源期刊
CiteScore
6.40
自引率
12.50%
发文量
160
审稿时长
9 months
期刊介绍: The journal welcomes manuscripts that substantially contribute to the understanding of the complex mechanical behaviour of geomaterials (soils, rocks, concrete, ice, snow, and powders), through innovative experimental techniques, and/or through the development of novel numerical or hybrid experimental/numerical modelling concepts in geomechanics. Topics of interest include instabilities and localization, interface and surface phenomena, fracture and failure, multi-physics and other time-dependent phenomena, micromechanics and multi-scale methods, and inverse analysis and stochastic methods. Papers related to energy and environmental issues are particularly welcome. The illustration of the proposed methods and techniques to engineering problems is encouraged. However, manuscripts dealing with applications of existing methods, or proposing incremental improvements to existing methods – in particular marginal extensions of existing analytical solutions or numerical methods – will not be considered for review.
期刊最新文献
Macro‐ and Microscopic Mechanisms of Soil Arching Evolution Under the Impact of Noncentered Tunnel A Decomposition–Consolidation Model for the Production Behavior of Gas Hydrate‐Bearing Sediments Influence of Aperture on Shear Behavior of Non‐Persistent Joint: Insights from Grain‐Based Modeling Mechanical Behaviors of Rigid Pile Composite Foundation in Yellow River Alluvial Plain Subjected to Soil Water Content Variations General Geometric Reconstruction Method of Failure Criteria for Lattice Spring Model
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1