SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.01776 · ICLR · 2024

From Zero to Turbulence: Generative Modeling for 3D Flow Simulation

Stephan Günnemann, Marten Lienen, David Lüdke, Jan Hansen-Palmus

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 4 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/2306.01776.json · badge: /api/ran/2306.01776.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
martenlienen/generative-turbulence marked official in Papers with Code
Papers with Code archive
9 ran · 1 no recorded run
FunctionStatusWhere it lives
GaussianDiffusion Ran
ran on a synthesized input · constructed an object; no result was computed
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("6ae697d52bb7d328")
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 an instance of its own class, GaussianDiffusion: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn
import math

torch.manual_seed(0)

# Create a simple model that the GaussianDiffusion can wrap
class SimpleDiffusionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.net = nn.Linear(8, 8)
    
    def forward(self, x, t):
        # x: (batch, channels, height, width) or similar
        # t: (batch,) timestep indices
        # Returns noise prediction and optionally variance
        batch_size = x.shape[0]
        return self.net(x.view(batch_size, -1))

# Instantiate the model
model = SimpleDiffusionModel()

# Define all arguments for GaussianDiffusion.__init__
ARGS = {
    'model': model,
    'timesteps': 100,
    'loss_type': 'l2',
    'beta_schedule': 'cosine',
    'clip_denoised': False,
    'noise_bcs': False,
    'learned_variances': False,
    'elbo_weight': None,
    'detach_elbo_mean': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, scipy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaussianDiffusion — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GaussianDiffusion 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
ModelPrediction Ran
ran on a synthesized input · constructed an object; no result was computed
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("401db7131605c5fc")
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 an instance of its own class, ModelPrediction: the run constructed the object and did not call it, so no result was computed. 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 torch
from dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class ModelPrediction:
    noise: torch.Tensor
    x_start: torch.Tensor
    mean: torch.Tensor
    log_var: torch.Tensor

ARGS = {
    "noise": torch.randn(2, 4),
    "x_start": torch.randn(2, 4),
    "mean": torch.randn(2, 4),
    "log_var": torch.randn(2, 4),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModelPrediction — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ModelPrediction 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
batch_mean Ran
ran, honoured the contract we drafted
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("3d7c22baf966de94")
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 Tensor, 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 torch
from einops import rearrange, reduce

torch.manual_seed(0)

# The function batch_mean takes a tensor x and reduces it over all dimensions
# except the batch dimension, computing the mean.
# It uses einops.reduce with pattern 'b ... -> b' and operation 'mean'

# Create a small tensor with batch size 2 and various other dimensions
# Using distinct sizes: batch=2, dim1=3, dim2=4, dim3=5
x = torch.randn(2, 3, 4, 5)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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
log_linear_beta_schedule Ran
ran, honoured the contract we drafted
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("af13971ec5335987")
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 Tensor, ndim 1, dtype family float, shape (10,) 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 scipy.optimize as so
import torch

torch.manual_seed(0)

# The function takes only one parameter: timesteps
# Looking at the body, timesteps is used as an integer in:
# - np.log(timesteps)
# - np.arange(1, T + 1) where T = timesteps
# So it should be a positive integer

ARGS = {
    "timesteps": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (10,) — shape (10,) 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
log_snr_linear_beta_schedule Ran
ran, honoured the contract we drafted
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("191c57482f6a6f7c")
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 Tensor, ndim 1, dtype family float, shape (10,) 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 scipy.optimize as so
import torch

torch.manual_seed(0)

ARGS = {
    "timesteps": 10,
    "snr_1": 1000.0,
    "snr_T": 1e-05,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (10,) — shape (10,) 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
normal_kl Ran
ran; our contract draft was wrong, not the code
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("52471728865056fc")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create small tensors for the KL divergence computation
# The function expects mean and logvar tensors of the same shape
batch_size = 2
dim = 4

mean1 = torch.randn(batch_size, dim)
logvar1 = torch.randn(batch_size, dim)
mean2 = torch.randn(batch_size, dim)
logvar2 = torch.randn(batch_size, dim)

ARGS = {
    "mean1": mean1,
    "logvar1": logvar1,
    "mean2": mean2,
    "logvar2": logvar2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
normal_log_lk Ran
ran; our contract draft was wrong, not the code
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("c3245e963ceb6826")
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 Tensor, ndim 2, dtype family float, shape (2, 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 math
import torch

torch.manual_seed(0)

# Create small tensors for the function parameters
# The function computes log-likelihood of x under a normal distribution
# x: the data point(s)
# mean: the mean of the distribution
# log_var: the log-variance of the distribution

# Create tensors with distinct sizes for different dimensions
# batch_size=2, feature_dim=4
x = torch.randn(2, 4)
mean = torch.randn(2, 4)
log_var = torch.randn(2, 4)

ARGS = {
    "x": x,
    "mean": mean,
    "log_var": log_var,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
ravel_cells Ran
ran; our contract draft was wrong, not the code
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("58cf41c62a9724de")
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 Tensor, ndim 2, dtype family float, shape (2, 60) 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 torch

torch.manual_seed(0)

# The function ravel_cells takes a tensor x and flattens it starting from dim -3
# It needs a tensor with at least 3 dimensions to flatten from dim -3
# Creating a small tensor with shape (2, 4, 3, 5) - batch=2, then 3 more dims
x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 60) — shape (2, 60) 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
where_cells Ran
ran; our contract draft was wrong, not the code
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("d50d212d93c594ab")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 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 torch

torch.manual_seed(0)

# Construct tensors with distinct sizes for different dimensions
# Shape: (batch=2, height=4, width=3, channels=5)
cell_values = torch.randn(2, 4, 3, 5)
other = torch.randn(2, 4, 3, 5)

# cell_idx should be indices for the flattened last 3 dimensions
# After flattening last 3 dims: (2, 4*3*5) = (2, 60)
# Create a small index tensor
cell_idx = torch.tensor([0, 5, 10, 15])

ARGS = {
    "cell_idx": cell_idx,
    "cell_values": cell_values,
    "other": other,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 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
broadcast_right Not yet run
unverified (harvested, no recorded run)
martenlienen/generative-turbulence/turbdiff/models/ddpm.py
code served (permissive licence) · get_code("b8cdcc9c16780e5d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 9 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.

FunctionAlso present inEarliest-datedOthers named
normal_kl
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later
2104.03670 (2021-04)
3D Shape Generation and Completion through Point-Voxel Diffusion
2401.08815 (2024-01)
Adversarial Supervision Makes Layout-to-Image Diffusion Models Thrive
2405.21066 (2024-05)
Mixed Diffusion for 3D Indoor Scene Synthesis

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

Simulations of turbulent flows in 3D are one of the most expensive simulations in computational fluid dynamics (CFD). Many works have been written on surrogate models to replace numerical solvers for fluid flows with faster, learned, autoregressive models. However, the intricacies of turbulence in three dimensions necessitate training these models with very small time steps, while generating realistic flow states requires either long roll-outs with many steps and significant error accumulation or starting from a known, realistic flow state-something we aimed to avoid in the first place. Instead, we propose to approach turbulent flow simulation as a generative task directly learning the manifold of all possible turbulent flow states without relying on any initial flow state. For our experiments, we introduce a challenging 3D turbulence dataset of high-resolution flows and detailed vortex structures caused by various objects and derive two novel sample evaluation metrics for turbulent flows. On this dataset, we show that our generative model captures the distribution of turbulent flows caused by unseen objects and generates high-quality, realistic samples amenable for downstream applications without access to any initial state.

For agents

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

get_harvested_code_for_paper("2306.01776")
get_code_for_paper("2306.01776")
have("2306.01776")

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

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

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

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

Connect an agent — have() is free.