[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-457791-105":59,"doc-detail-457791-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","a-python-based-flow-solver-for-numerical-simulations-using-an-immersed-boundary-method-on-single-gpus","A Python-based flow solver for numerical simulations using an immersed boundary method on single GPUs","","Efficiently implements three-dimensional incompressible flow simulation around moving bodies with complex geometries on single GPUs using Nvidia CUDA through Numba and Python. The framework employs an Immersed Boundary Method tailored for GPU execution and leverages different grid architectures to maximize performance. By targeting a single GPU, it avoids intra- and inter-node communication and keeps all simulation data in global GPU memory. The work details numerical methodology, GPU algorithm implementation, and memory management, and validates results against a CPU parallel solver. Tests report 34–54x peak speedup and demonstrate strong scaling across two GPU applications.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-python-based-flow-solver-for-numerical-simulations-using-an-immersed-boundary-method-on-single-gpus/457791/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-python-based-flow-solver-for-numerical-simulations-using-an-immersed-boundary-method-on-single-gpus/457791.png","ImageObject",300,407,{"name":92,"@type":93},"OmBimo","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-09-30",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the Python-based flow solver address?","Question",{"text":113,"@type":114},"It simulates three-dimensional incompressible flow around moving bodies with complex geometries using an immersed boundary method.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does the single-GPU design affect communication overhead?",{"text":118,"@type":114},"Targeting a single GPU eliminates intra- and inter-node communication, reducing potential overheads.",{"name":120,"@type":111,"acceptedAnswer":121},"How is performance evaluated and what speedup is reported?",{"text":122,"@type":114},"Results are compared with an analogous CPU-based parallel solver, showing the single-GPU code is 34–54 times faster at peak performance (96–128 CPU cores).","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},457791,1791379856,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":24,"preview_urls":147},962090893581,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Author Manuscr ipt Author Manuscr ipt Author Manuscr ipt Author Manuscript  \n\n| | HHS Public Access\u003Cbr>Author manuscript\u003Cbr>Comput Fluids. Author manuscript; available in PMC 2026 January 09. |\n| --- | --- |\n\nPublished in final edited form as:  \nComput Fluids. 2025 February 15; 288: . doi:10.1016/j.compfluid.2024.106511 .  \nA Python-based flow solver for numerical simulations using an immersed boundary method on single GPUs  \nM. Guerrero-Hurtadoa, J. M. Catalána,* , M. Moricheb, A. Gonzaloc, O. Floresaa Department of Aerospace Engineering, Universidad Carlos III de Madrid, Spain  \nb Institute of Fluid Mechanics and Heat Transfer, Technische Universität Wien, Austria c Department of Mechanical Engineering, University of Washington, Seattle, WA, United States  \nAbstract  \nWe present an efficient implementation for the simulation of three-dimensional, incompressible flow around moving bodies with complex geometries on single GPUs, based on Nvidia CUDA through Numba and Python. The flow is solved in this framework through an implementation of the Immersed Boundary Method tailored for the GPU, where different GPU grid architectures are exploited to optimize the overall performance. By targeting a single-GPU, we eliminate the need for both intra-and inter-node communication, which can potentially introduce overheads. With this approach, all simulation data remains in the GPU’s global memory at all times. We provide details about the numerical methodology, the implementation of the algorithm in the GPU and the memory management, critical in single-GPU implementations. Additionally, we verify the results comparing with our analogous CPU-based parallel solver and assess satisfactorily the efficiency of the code in terms of the relative computing time of the different operations and the scaling of the CPU code compared to a single GPU case. Overall, our tests show that the single-GPU code is between 34 to 54 times faster than the CPU solver in peak performance (96–128 CPU cores) .  \nThis speedup mainly comes from the change in the method of solution of the linear systems of equations, while the speedup in sections of the algorithm that are equivalent in the CPU and GPU implementations is more modest (i.e., ×1.6−3 speedup in the computation of the non-linear terms) . Finally, we showcase the performance of this new GPU implementation in two applications of interest, one for external flows (i.e., bioinspired aerodynamics) and one for internal flows (i.e., cardiovascular flows), demonstrating the strong scaling of the code in two different GPU cards (hardware) .  \nThis is an open access article under the CC BY-NC-ND license ([http://creativecommons.org/licenses/by-nc-nd/4.0/](http://creativecommons.org/licenses/by-nc-nd/4.0/)).  \n*Corresponding author. jcatalan@ing.uc3m.es (J.M. Catalán) .  \nCRediT authorship contribution statement  \nM. Guerrero-Hurtado: Writing – review & editing, Writing – original draft, Visualization, Validation, Software, Methodology, Investigation, Formal analysis, Data curation, Conceptualization. J.M. Catalán: Writing – review & editing, Writing – original draft, Visualization, Validation, Software, Methodology, Investigation, Formal analysis, Data curation, Conceptualization. M. Moriche: Writing – review & editing, Validation, Software, Conceptualization. A. Gonzalo: Writing – review & editing, Validation, Software.  \nO. Flores: Writing – review & editing, Supervision, Methodology, Funding acquisition, Conceptualization.  \nDeclaration of competing interest  \nThe authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.  \nAuthor Manuscr ipt Author Manuscr ipt Author Manuscr ipt Author Manuscript  \nGuerrero-Hurtado et al. Page 2  \nKeywords  \nImmersed boundary methods; High-performance computing; Fluid dynamics; Cardiovascular flows; Fluid–structure-interaction; Computational engineering   \n1. Introduction  \nO","cbCaipypm6FkLFzd","https://ap.wps.com/l/cbCaipypm6FkLFzd","pdf",3976738,48,"English","# Abstract\n# Introduction\n## Background: numerical simulation of moving/deforming bodies\n## Grid-based approaches: body-conformal vs non-body-conformal\n## Immersed boundary method overview","[{\"question\":\"What problem does the Python-based flow solver address?\",\"answer\":\"It simulates three-dimensional incompressible flow around moving bodies with complex geometries using an immersed boundary method.\"},{\"question\":\"How does the single-GPU design affect communication overhead?\",\"answer\":\"Targeting a single GPU eliminates intra- and inter-node communication, reducing potential overheads.\"},{\"question\":\"How is performance evaluated and what speedup is reported?\",\"answer\":\"Results are compared with an analogous CPU-based parallel solver, showing the single-GPU code is 34–54 times faster at peak performance (96–128 CPU cores).\"}]","A Python-based flow solver for numerical simulations using an immersed boundary method on single GPUs | PDF",1790750479,121,[148,152,156,160,164],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2b7fbf0bce9cc4906146db480d2b57fa.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d7393978f1483c8a9075b19898f85b98.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b9be4d82b3a697ba74fab12962b94318.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5a644c36e43667a02baa4dc78ad0d6e0.webp",980,1268,{"page_no":24,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1599d83561d2c7cf3cc078c983722b46.webp",979,1267]