{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/learned-discretizations-for-passive-scalar","title":"Learned discretizations for passive scalar advection in a 2-D turbulent flow","arxiv_id":"2004.05477","date":"2020-04-11","proceeding":null,"authors":["Jiawei Zhuang","Dmitrii Kochkov","Yohai Bar-Sinai","Michael P. Brenner","Stephan Hoyer"],"abstract":"The computational cost of fluid simulations increases rapidly with grid resolution. This has given a hard limit on the ability of simulations to accurately resolve small scale features of complex flows. Here we use a machine learning approach to learn a numerical discretization that retains high accuracy even when the solution is under-resolved with classical methods. We apply this approach to passive scalar advection in a two-dimensional turbulent flow. The method maintains the same accuracy as traditional high-order flux-limited advection solvers, while using 4x lower grid resolution in each dimension. The machine learning component is tightly integrated with traditional finite-volume schemes and can be trained via an end-to-end differentiable programming framework. The solver can achieve near-peak hardware utilization on CPUs and accelerators via convolutional filters. Code is available at https://github.com/google-research/data-driven-pdes.","url_abs":"https://arxiv.org/abs/2004.05477v1","url_pdf":"https://arxiv.org/pdf/2004.05477v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"learned-discretizations-for-passive-scalar","repo_url":"https://github.com/google-research/data-driven-pdes","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"learned-discretizations-for-passive-scalar","repo_url":"https://github.com/google-research/data-driven-advection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.05477","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.05477"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/data-driven-advection","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/data-driven-pdes","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"905510c30870e51e","entry":"auto_nest","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/tensor_ops.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/tensor_ops.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"905510c30870e51e"}},{"code_sha256_prefix":"85fb57c060384cc6","entry":"coefficients","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/polynomials.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/polynomials.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"85fb57c060384cc6"}},{"code_sha256_prefix":"addeaf25573585c9","entry":"constraints","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/polynomials.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/polynomials.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"addeaf25573585c9"}},{"code_sha256_prefix":"0451ee39e5dffa63","entry":"integer_ratio","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/utils.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0451ee39e5dffa63"}},{"code_sha256_prefix":"1438b8637b3b0933","entry":"load_metadata","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/readers.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/readers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1438b8637b3b0933"}},{"code_sha256_prefix":"8dcd988545dfea78","entry":"merge","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/builders.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/builders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8dcd988545dfea78"}},{"code_sha256_prefix":"bedb092970c807e2","entry":"regular_stencil_1d","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/polynomials.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/polynomials.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bedb092970c807e2"}},{"code_sha256_prefix":"e3ddf75454d7f056","entry":"roll","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/tensor_ops.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/tensor_ops.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e3ddf75454d7f056"}},{"code_sha256_prefix":"071318f87b806fec","entry":"roll_2d","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/tensor_ops.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/tensor_ops.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"071318f87b806fec"}},{"code_sha256_prefix":"c1c2a04dd688e79a","entry":"sorted_values","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/models.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1c2a04dd688e79a"}},{"code_sha256_prefix":"6884246f9e8817a1","entry":"stack_dict","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/models.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6884246f9e8817a1"}},{"code_sha256_prefix":"9a5d1b33b8529dde","entry":"unstack_dict","repo":"google-research/data-driven-pdes","repo_kind":"official","path":"datadrivenpdes/core/builders.py","file_url":"https://github.com/google-research/data-driven-pdes/blob/HEAD/datadrivenpdes/core/builders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9a5d1b33b8529dde"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}