SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.07234 · 2022

PARC: Physics-Aware Recurrent Convolutional Neural Networks to Assimilate Meso-scale Reactive Mechanics of Energetic Materials

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2204.07234.json · badge: /api/ran/2204.07234.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
stephenbaek/parc canonical (classifier label)
classifier basis not recorded on the link
9 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_hotspot_tempNarea Ran
ran on a synthesized input
stephenbaek/parc/parc/visualization.py
code served (permissive licence) · get_code("506f0763495a653b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create synthetic temperature data
# Shape: (n_cases, width, height, n_timesteps)
# Using distinct dimensions: 2 cases, 4 width, 3 height, 5 timesteps
n_cases = 2
width = 4
height = 3
n_timesteps = 5

# Generate temperature data with some values above the hotspot threshold (875)
T_cases = np.random.uniform(800, 950, size=(n_cases, width, height, n_timesteps))

# Define case range to process (process first case only for speed)
cases_range = (0, 1)

ARGS = {
    "T_cases": T_cases,
    "cases_range": cases_range,
    "n_timesteps": n_timesteps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_hotspot_tempNarea_rateOfChange Ran
ran on a synthesized input
stephenbaek/parc/parc/visualization.py
code served (permissive licence) · get_code("8ef49ede4dca00c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small temperature dataset with shape [n_cases, width, height, timesteps]
# Using distinct dimensions: 3 cases, 4 width, 5 height, 16 timesteps
n_cases = 3
width = 4
height = 5
n_timesteps = 16

# Generate synthetic temperature data with some values above the hotspot threshold (875)
np.random.seed(42)
T_cases = np.random.uniform(800, 950, size=(n_cases, width, height, n_timesteps))

# Define the range of cases to process
cases_range = (0, 2)  # Process first 2 cases out of 3

ARGS = {
    "T_cases": T_cases,
    "cases_range": cases_range,
    "n_timesteps": n_timesteps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_KLD Ran
ran on a synthesized input
stephenbaek/parc/parc/metrics.py
code served (permissive licence) · get_code("e7ed94c9b5d8be0c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small numpy arrays for y_true and y_pred
# The function computes statistics (mean, std) and KL-divergence
# We need arrays with some variance to avoid division issues
y_true = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y_pred = np.array([1.5, 2.5, 2.8, 4.2, 4.9])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_quantitative_evaluation_sensitivity Ran
ran on a synthesized input
stephenbaek/parc/parc/metrics.py
code served (permissive licence) · get_code("b8e7c2fa70e3ef61")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy import stats as st
from sklearn.metrics import mean_squared_error
from math import sqrt

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample data
# y_trues and y_preds should have shape (num_samples, num_timesteps)
# Using distinct sizes: 5 samples, 3 timesteps
num_samples = 5
num_timesteps = 3

y_trues = np.random.randn(num_samples, num_timesteps).astype(np.float32)
y_preds = np.random.randn(num_samples, num_timesteps).astype(np.float32)

ARGS = {
    "y_trues": y_trues,
    "y_preds": y_preds,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
r2 Ran
ran on a synthesized input
stephenbaek/parc/parc/losses.py
code served (permissive licence) · get_code("b6f78266a0720d6a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small dummy arrays with shape (batch, height, width, channels)
# Using distinct sizes: batch=2, height=4, width=3, channels=5
batch_size = 2
height = 4
width = 3
channels = 5

# Generate random y_true and y_pred arrays
y_true = np.random.randn(batch_size, height, width, channels)
y_pred = np.random.randn(batch_size, height, width, channels) + 0.1 * np.random.randn(batch_size, height, width, channels)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rmse Ran
ran on a synthesized input
stephenbaek/parc/parc/losses.py
code served (permissive licence) · get_code("c334a16f1a049ae4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small test arrays with shape (batch, height, width, time_steps)
# Using distinct sizes: batch=2, height=4, width=3, time_steps=5
batch_size = 2
height = 4
width = 3
time_steps = 5

# Generate random true and predicted values
np.random.seed(0)
y_true = np.random.rand(batch_size, height, width, time_steps)
y_pred = np.random.rand(batch_size, height, width, time_steps)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
scale_temperature Ran
ran on a synthesized input
stephenbaek/parc/parc/misc.py
code served (permissive licence) · get_code("a85ed6099a6a5d47")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 4, dtype family float, shape (2, 3, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Create a small 4D numpy array representing temperature fields
# Shape: (batch=2, height=3, width=4, timesteps=5)
temperatures = np.random.randn(2, 3, 4, 5).astype(np.float32)

# Start index for timesteps
start_ts = 1

# Temperature range parameters
max_temp = 40.0
min_temp = -10.0

ARGS = {
    "temperatures": temperatures,
    "start_ts": start_ts,
    "max_temp": max_temp,
    "min_temp": min_temp,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_data Ran
ran on a synthesized input
stephenbaek/parc/parc/IO.py
code served (permissive licence) · get_code("5c0ea854a4fbdf7e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small sample data with distinct dimensions
# data_in: microstructure data - shape (n_cases, n_features)
data_in = np.random.rand(10, 4)

# output_data: temp/pressure/temperature_dot/pressure_dot outputs - shape (n_cases, n_outputs)
output_data = np.random.rand(10, 3)

# initial_vals: initial temp and pressure values - shape (n_cases, n_initial)
initial_vals = np.random.rand(10, 2)

# splits: [train_fraction, val_fraction, test_fraction]
splits = [0.6, 0.2, 0.2]

ARGS = {
    "data_in": data_in,
    "output_data": output_data,
    "initial_vals": initial_vals,
    "splits": splits,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
step_weighted_loss Ran
ran on a synthesized input
stephenbaek/parc/parc/losses.py
code served (permissive licence) · get_code("25dc29ac81b78e48")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tensorflow as tf

# Create dummy numpy arrays matching the function's expectations
# The function expects 4D arrays with shape (batch, height, width, time_steps)
# Based on the function body:
# - y_true and y_pred are indexed as [:, :, :, :6], [:, :, :, 6:11], [:, :, :, 11:]
# - So we need at least 15 time steps (0-5 for init, 6-10 for mid, 11+ for late)

batch_size = 2
height = 3
width = 4
time_steps = 15

# Create y_true and y_pred with shape (batch, height, width, time_steps)
y_true = np.random.randn(batch_size, height, width, time_steps).astype(np.float32)
y_pred = np.random.randn(batch_size, height, width, time_steps).astype(np.float32)

# weight_loss is a list with 3 elements for initial, middle, and late weights
weight_loss = [1.0, 2.0, 3.0]

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "weight_loss": weight_loss
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
animation_graph Not yet run
unverified (harvested, no recorded run)
stephenbaek/parc/parc/graphs.py
code served (permissive licence) · get_code("3c86215eb1a53b7a")
How it ran

no invocation recorded.

plot_field_evolution Not yet run
unverified (harvested, no recorded run)
stephenbaek/parc/parc/visualization.py
code served (permissive licence) · get_code("3d0a64d377f3c142")
How it ran

no invocation recorded.

wave_map Not yet run
unverified (harvested, no recorded run)
stephenbaek/parc/parc/IO.py
code served (permissive licence) · get_code("fed5674b8ebdb3bc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The thermo-mechanical response of shock-initiated energetic materials (EM) is highly influenced by their microstructures, presenting an opportunity to engineer EM microstructure in a "materials-by-design" framework. However, the current design practice is limited, as a large ensemble of simulations is required to construct the complex EM structure-property-performance linkages. We present the Physics-Aware Recurrent Convolutional (PARC) Neural Network, a deep-learning algorithm capable of learning the mesoscale thermo-mechanics of EM from a modest number of high-resolution direct numerical simulations (DNS). Validation results demonstrated that PARC could predict the themo-mechanical response of shocked EM with a comparable accuracy to DNS but with notably less computation time. The physics awareness of PARC enhances its modeling capabilities and generalizability, especially when challenged in unseen prediction scenarios. We also demonstrate that visualizing the artificial neurons at PARC can shed light on important aspects of EM thermos-mechanics and provide an additional lens for conceptualizing EM.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2204.07234")
get_code_for_paper("2204.07234")
have("2204.07234")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2204.07234.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2204.07234.svg)](https://syntology.ai/paper/2204.07234)

Connect an agent — have() is free.