SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.11912 · 2022

Physics-Embedded Neural Networks: Graph Neural PDE Solvers with Mixed Boundary Conditions

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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 2 have no contract verdict; 0 failures of our instrument; 1 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/2205.11912.json · badge: /api/ran/2205.11912.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
yellowshippo/penn-neurips2022 canonical (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_single_loss_ad Ran
ran on a synthesized input
yellowshippo/penn-neurips2022/src/stats.py
code served (permissive licence) · get_code("8740d7a63c721af5")
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 dict. 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

class MockNodeData:
    def __init__(self):
        self.data = {}
        # 5 nodes, 3 variables
        self.data['answer_var1'] = np.random.rand(5)
        self.data['answer_var2'] = np.random.rand(5)
        self.data['predicted_var1'] = np.random.rand(5)
        self.data['predicted_var2'] = np.random.rand(5)
        # Boundary data with some NaN values (Dirichlet boundary conditions)
        boundary = np.random.rand(5)
        boundary[1] = np.nan  # Mark one node as interior
        boundary[3] = np.nan  # Mark another as interior
        self.data['input_nodal_boundary_T'] = boundary
    
    def get_attribute_data(self, name):
        return self.data[name]
    
    def __contains__(self, key):
        return key in self.data

class MockFEMData:
    def __init__(self):
        self.nodal_data = MockNodeData()
        self.nodes = [0, 1, 2, 3, 4]  # 5 nodes

fem_data = MockFEMData()
variable_names = ['var1', 'var2']

ARGS = {
    'fem_data': fem_data,
    'variable_names': variable_names
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_single_loss_fluid Ran
ran on a synthesized input
yellowshippo/penn-neurips2022/src/stats.py
code served (permissive licence) · get_code("0f116db74bb15370")
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 dict. 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

class NodealData:
    def __init__(self):
        self.data = {}
    
    def __contains__(self, key):
        return key in self.data
    
    def get_attribute_data(self, key):
        return self.data[key]
    
    def keys(self):
        return self.data.keys()

class FemData:
    def __init__(self):
        self.nodal_data = NodealData()
        self.nodes = np.array([[0, 0], [1, 1], [2, 2], [3, 3]])
        
        # Create sample data for velocity and pressure
        n_samples = 100
        
        # Velocity data (reshaped version)
        answer_u = np.random.randn(n_samples, 2).astype(np.float32)
        predicted_u = answer_u + 0.01 * np.random.randn(n_samples, 2).astype(np.float32)
        
        # Pressure data
        answer_p = np.random.randn(n_samples).astype(np.float32)
        predicted_p = answer_p + 0.01 * np.random.randn(n_samples).astype(np.float32)
        
        # Boundary conditions with NaNs
        dirichlet_u = np.full((n_samples, 2), np.nan, dtype=np.float32)
        dirichlet_u[:20] = answer_u[:20]  # Set first 20 as boundary
        
        dirichlet_p = np.full(n_samples, np.nan, dtype=np.float32)
        dirichlet_p[:20] = answer_p[:20]  # Set first 20 as boundary
        
        # Populate nodal_data
        self.nodal_data.data['answer_nodal_U_step40_reshaped'] = answer_u
        self.nodal_data.data['predicted_nodal_U_step40_reshaped'] = predicted_u
        self.nodal_data.data['answer_nodal_p_step40'] = answer_p
        self.nodal_data.data['predicted_nodal_p_step40'] = predicted_p
        self.nodal_data.data['input_nodal_boundary_U_reshaped'] = dirichlet_u
        self.nodal_data.data['input_nodal_boundary_p'] = dirichlet_p

fem_data = FemData()

ARGS = {
    'fem_data': fem_data,
    'analyse_dirichlet': True,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_single_loss_grad Not yet run
unverified (harvested, no recorded run)
yellowshippo/penn-neurips2022/src/stats.py
code served (permissive licence) · get_code("822df240f8b11c75")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 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 3 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

Graph neural network (GNN) is a promising approach to learning and predicting physical phenomena described in boundary value problems, such as partial differential equations (PDEs) with boundary conditions. However, existing models inadequately treat boundary conditions essential for the reliable prediction of such problems. In addition, because of the locally connected nature of GNNs, it is difficult to accurately predict the state after a long time, where interaction between vertices tends to be global. We present our approach termed physics-embedded neural networks that considers boundary conditions and predicts the state after a long time using an implicit method. It is built based on an E(n)-equivariant GNN, resulting in high generalization performance on various shapes. We demonstrate that our model learns flow phenomena in complex shapes and outperforms a well-optimized classical solver and a state-of-the-art machine learning model in speed-accuracy trade-off. Therefore, our model can be a useful standard for realizing reliable, fast, and accurate GNN-based PDE solvers. The code is available at https://github.com/yellowshippo/penn-neurips2022.

For agents

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

get_harvested_code_for_paper("2205.11912")
get_code_for_paper("2205.11912")
have("2205.11912")

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

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

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

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

Connect an agent — have() is free.