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

Jay Arcities, Pavel Popov, Eric J Ching, Kamal Viswanath, Ryan F Johnson
7/2/2026
physics.comp-phcs.LG

No confident code implementation found for this paper.

Abstract

Machine learning has shown promise for physics applications, but integrating Python-based libraries into high-performance C++ solvers can create performance bottlenecks. We present CodeJeNN, which addresses this gap by auto-generating self-contained C++ code from trained Keras models for inference.

Show full abstract

This eliminates external dependencies through 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 (eager and optimized) and a computational fluid dynamics (CFD) simulation of a hydrogen-air mixing layer in which viscosity is modeled using a neural network, showing that the generated models integrate directly into a solver while remaining efficient and accurate.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{arcities2026codejenn,
  title  = {CodeJeNN: A simple C++ neural network generator for physics applications},
  author = {Jay Arcities and Pavel Popov and Eric J Ching and Kamal Viswanath and Ryan F Johnson},
  year   = {2026},
  eprint = {2607.02746},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.02746v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.02746.svg)](https://codeofpaper.com/paper/2607.02746)

Discussion