SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2008.07528 · 2020

Deep learning of the spanwise-averaged Navier-Stokes equations

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 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 3 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-21; 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/2008.07528.json · badge: /api/ran/2008.07528.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
b-fg/SANSpy canonical (classifier label)
classifier basis: census
3 ran · 5 no recorded run
FunctionStatusWhere it lives
absolute_file_paths Ran
ran on a synthesized input
b-fg/SANSpy/sanspy/utils.py
code served (permissive licence) · get_code("905a288577623794")
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 list, 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
test_dir = tempfile.mkdtemp()

# Create some subdirectories and files
os.makedirs(os.path.join(test_dir, "subdir1"), exist_ok=True)
os.makedirs(os.path.join(test_dir, "subdir2"), exist_ok=True)

# Create some test files
with open(os.path.join(test_dir, "file1.txt"), "w") as f:
    f.write("test")
with open(os.path.join(test_dir, "subdir1", "file2.txt"), "w") as f:
    f.write("test")
with open(os.path.join(test_dir, "subdir2", "file3.txt"), "w") as f:
    f.write("test")

ARGS = {
    "directory": test_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
get_df Ran
ran on a synthesized input
b-fg/SANSpy/sanspy/utils.py
code served (permissive licence) · get_code("4f5b653fe64de32d")
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 DataFrame. 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 os
import tempfile
import shutil
import pandas as pd

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create the required directory structure: data_path/dataset/x/x1, x2, .../y/y1, y2, ...
datasets = ['fit', 'validate', 'evaluate', 'predict']

for dataset in datasets:
    dataset_path = os.path.join(temp_dir, dataset)
    x_path = os.path.join(dataset_path, 'x')
    y_path = os.path.join(dataset_path, 'y')
    
    os.makedirs(x_path, exist_ok=True)
    os.makedirs(y_path, exist_ok=True)
    
    # Create sample subdirectories and files
    for x_tag in ['x1', 'x2']:
        x_tag_path = os.path.join(x_path, x_tag)
        os.makedirs(x_tag_path, exist_ok=True)
        # Create dummy .dat files with timestamps in filenames
        for i in range(2):
            file_path = os.path.join(x_tag_path, f'data_{i}_1.dat')
            with open(file_path, 'w') as f:
                f.write('dummy data')
    
    for y_tag in ['y1', 'y2']:
        y_tag_path = os.path.join(y_path, y_tag)
        os.makedirs(y_tag_path, exist_ok=True)
        # Create dummy .dat files with timestamps in filenames
        for i in range(2):
            file_path = os.path.join(y_tag_path, f'data_{i}_1.dat')
            with open(file_path, 'w') as f:
                f.write('dummy data')

ARGS = {
    'data_path': temp_dir + '/',
    'dataset': 'fit',
    'truncate': None,
    'skip': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
mem_usage Ran
ran on a synthesized input
b-fg/SANSpy/sanspy/utils.py
code served (permissive licence) · get_code("0c2cbee40d8dbd0b")
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
import torch
import torch.nn as nn
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a minimal Keras-like model mock
class MockKerasLayer:
    def __init__(self, output_shape):
        self.output_shape = output_shape
        self.weights = []

class MockKerasModel:
    def __init__(self):
        self.layers = [
            MockKerasLayer((2, 4)),
            MockKerasLayer((2, 3)),
            MockKerasLayer((2, 5)),
        ]
        
        # Create some mock trainable and non-trainable weights
        self.trainable_weights = [
            MagicMock(),
            MagicMock(),
        ]
        self.non_trainable_weights = [
            MagicMock(),
        ]

# Mock K.count_params to return parameter counts
def mock_count_params(weight):
    return 10

# Patch keras backend to support the function
import sys
from unittest.mock import MagicMock

mock_keras = MagicMock()
mock_backend = MagicMock()
mock_backend.count_params = mock_count_params
mock_backend.floatx = MagicMock(return_value='float32')
mock_keras.backend = mock_backend

sys.modules['keras'] = mock_keras
sys.modules['keras.backend'] = mock_backend

# Create model instance
model = MockKerasModel()

ARGS = {
    'batch_size': 2,
    'model': model,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, torch — 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
cc Not yet run
unverified (harvested, no recorded run)
b-fg/SANSpy/sanspy/metrics.py
code served (permissive licence) · get_code("9559d1d9e75d9e27")
How it ran

no invocation recorded.

ccp Not yet run
unverified (harvested, no recorded run)
b-fg/SANSpy/sanspy/metrics.py
code served (permissive licence) · get_code("11e5967688fd2117")
How it ran

no invocation recorded.

mae Not yet run
unverified (harvested, no recorded run)
b-fg/SANSpy/sanspy/losses.py
code served (permissive licence) · get_code("9ba5975605c85b37")
How it ran

no invocation recorded.

mse Not yet run
unverified (harvested, no recorded run)
b-fg/SANSpy/sanspy/losses.py
code served (permissive licence) · get_code("a2f9dcde8c8a8ae5")
How it ran

no invocation recorded.

sse Not yet run
unverified (harvested, no recorded run)
b-fg/SANSpy/sanspy/losses.py
code served (permissive licence) · get_code("778dfa6f89ec9ccb")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Simulations of turbulent fluid flow around long cylindrical structures are computationally expensive because of the vast range of length scales, requiring simplifications such as dimensional reduction. Current dimensionality reduction techniques such as strip-theory and depth-averaged methods do not take into account the natural flow dissipation mechanism inherent in the small-scale three-dimensional (3-D) vortical structures. We propose a novel flow decomposition based on a local spanwise average of the flow, yielding the spanwise-averaged Navier-Stokes (SANS) equations. The SANS equations include closure terms accounting for the 3-D effects otherwise not considered in 2-D formulations. A supervised machine-learning (ML) model based on a deep convolutional neural network provides closure to the SANS system. A-priori results show up to 92% correlation between target and predicted closure terms; more than an order of magnitude better than the eddy viscosity model correlation. The trained ML model is also assessed for different Reynolds regimes and body shapes to the training case where, despite some discrepancies in the shear-layer region, high correlation values are still observed. The new SANS equations and ML closure model are also used for a-posteriori prediction. While we find evidence of known stability issues with long time ML predictions for dynamical systems, the closed SANS simulations are still capable of predicting wake metrics and induced forces with errors from 1-10%. This results in approximately an order of magnitude improvement over standard 2-D simulations while reducing the computational cost of 3-D simulations by 99.5%.

For agents

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

get_harvested_code_for_paper("2008.07528")
get_code_for_paper("2008.07528")
have("2008.07528")

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

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

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

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

Connect an agent — have() is free.