CORTEXA
← Browse
arxivphysics.comp-phcs.LG2026-07-02

CodeJeNN: A simple C++ neural network generator for physics applications

Jay Arcities, Pavel Popov, Eric J Ching, Kamal Viswanath, Ryan F Johnson

Machine learning has shown speedups for numerical methods in physics applications, but integrating Python-based libraries into high-performance C++ solvers creates performance bottlenecks. We present CodeJeNN, which bridges this gap by auto-generating self-contained C++ code from trained Keras models for inference. This eliminates external dependencies through minimal inlined functions, allowing seamless integration into existing frameworks. We describe the Keras-to-C++ workflow, supported architectures, and limitations. CodeJeNN is demonstrated through inference benchmarks against Keras in eager and JIT modes and a CFD test case modeling viscosity in a hydrogen-air mixing layer, showing speedups without sacrificing accuracy.

View free PDFSource page

Related papers

arxivcs.LGmath.NAmath.OCphysics.comp-ph2026-07-02

An Optimisation Framework for the Well-Conditioned Training of Physics-Informed Neural Networks

Joseph Webb, Sadok Jerad, Coralia Cartis

Physics-informed neural networks (PINNs) have emerged as a promising route to solve partial differential equations, yet they have struggled to reach the precision of classical solvers. The obstacle is increasingly understood to be one of optimisation, owing to the severely ill-co…

View free PDFSource page
arxivcs.LGphysics.comp-ph2026-07-22

Interval and fuzzy physics-augmented neural networks (iPANN and fPANN) for uncertainty quantification and propagation in constitutive modeling

Somesh Pratap Singh, Govinda Anantha Padmanabha, Jingye Tan, Steven Yang, Reese E. Jones, D. Thomas Seidl, et al.

Constitutive modeling under uncertainty remains a central challenge for reliable mechanics simulations, particularly when the available stress-deformation data are sparse, noisy, or heterogeneous. We propose interval and fuzzy physics-augmented neural networks (iPANNs and fPANNs)…

View free PDFSource page
arxivcs.LGmath.NAphysics.comp-ph2026-07-07

Physics-Informed Neural Embeddings of PDE Solution Families

Raul Jimenez, Svitlana Mayboroda, Pavlos Protopapas, Leonid Sarieddine, David N. Spergel, Pedro Tarancón-Álvarez

We introduce a physics-informed framework for learning finite-dimensional embeddings of solution families of partial differential equations. The method uses a multihead Physics-Informed Neural Network in which a shared body learns a latent manifold representing the solution space…

View free PDFSource page
arxivcs.LGphysics.comp-ph2026-07-08

Asymmetric Focal Loss Improves Graph Neural Network Prediction of Drug-Drug Interactions

Faranak Hatami, Mousa Moradi

Background: Graph neural networks improve computational prediction of polypharmacy side effects, but standard binary cross-entropy training allocates equal capacity to well-classified and difficult examples, potentially missing clinically significant interactions. We evaluated wh…

View free PDFSource page
arxivcs.LGphysics.comp-ph2026-07-06

A Physics-Regulated Neural Framework for Learning 3D Grain Growth Dynamics

Zhihui Tian, Kang Yang, Michael Tonks, Amanda R. Krause, Joel B. Harley

Grain growth is governed by the reduction in grain boundary energy and exhibits well-established statistical scaling laws. Developing data-driven surrogates that preserve these physical invariants while remaining computationally scalable remains challenging, especially in 3D. We…

View free PDFSource page
arxivcs.LGphysics.comp-ph2026-07-24

Latent PDE mapping for efficient physics-informed learning across geometries with limited data

Ingvild Askim Adde, Mary M. Maleckar, Gabriel Balaban

In this study, we introduce latent PDE mapping, a broadly applicable physics-informed learning technique designed to enable efficient geometric generalization with sparse training data. Latent PDE mapping pulls back geometry-specific PDE residuals and boundary conditions to a pre…

View free PDFSource page