{"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/a-physics-informed-diffusion-model-for-high","title":"A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction","arxiv_id":"2211.14680","date":"2022-11-26","proceeding":null,"authors":["Dule Shu","Zijie Li","Amir Barati Farimani"],"abstract":"Machine learning models are gaining increasing popularity in the domain of fluid dynamics for their potential to accelerate the production of high-fidelity computational fluid dynamics data. However, many recently proposed machine learning models for high-fidelity data reconstruction require low-fidelity data for model training. Such requirement restrains the application performance of these models, since their data reconstruction accuracy would drop significantly if the low-fidelity input data used in model test has a large deviation from the training data. To overcome this restraint, we propose a diffusion model which only uses high-fidelity data at training. With different configurations, our model is able to reconstruct high-fidelity data from either a regular low-fidelity sample or a sparsely measured sample, and is also able to gain an accuracy increase by using physics-informed conditioning information from a known partial differential equation when that is available. Experimental results demonstrate that our model can produce accurate reconstruction results for 2d turbulent flows based on different input sources without retraining.","url_abs":"https://arxiv.org/abs/2211.14680v2","url_pdf":"https://arxiv.org/pdf/2211.14680v2.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":"abstracts"},"code_links":[{"paper_slug":"a-physics-informed-diffusion-model-for-high","repo_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"high","task_name":"Vocal Bursts Intensity Prediction"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2211.14680","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2211.14680"}},"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/BaratiLab/Diffusion-based-Fluid-Super-resolution","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":5,"ran_fixture":3,"ran_honours":1,"ran":1,"unverified":14},"by_repo_kind":{"official":{"samples":24,"ran":10,"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":"9215fb189fbfb9f4","entry":"compute_alpha","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/denoising_step.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/denoising_step.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9215fb189fbfb9f4"}},{"code_sha256_prefix":"d47e6201b6d56d24","entry":"generalized_steps","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/denoising.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/denoising.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d47e6201b6d56d24"}},{"code_sha256_prefix":"ca0cea1ca1eeec89","entry":"get_beta_schedule","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/runners/diffusion_tub.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/runners/diffusion_tub.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ca0cea1ca1eeec89"}},{"code_sha256_prefix":"cb49209c125de1b4","entry":"get_timestep_embedding","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"models/diffusion_new.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/models/diffusion_new.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cb49209c125de1b4"}},{"code_sha256_prefix":"915e1c6c38494be9","entry":"list_dir","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/datasets/utils.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/datasets/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"915e1c6c38494be9"}},{"code_sha256_prefix":"208e196e9582a9a6","entry":"list_files","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/datasets/utils.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/datasets/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"208e196e9582a9a6"}},{"code_sha256_prefix":"07d90bd6ae1be7db","entry":"md5_hash","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/ckpt_util.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/ckpt_util.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"07d90bd6ae1be7db"}},{"code_sha256_prefix":"36a45cceb1209d2f","entry":"noise_estimation_loss","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/losses.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/losses.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"36a45cceb1209d2f"}},{"code_sha256_prefix":"3137073275f8c21a","entry":"nonlinearity","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"models/diffusion_new.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/models/diffusion_new.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3137073275f8c21a"}},{"code_sha256_prefix":"c27a10ca9f6b75f3","entry":"torch2hwcuint8","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/runners/diffusion_tub.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/runners/diffusion_tub.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c27a10ca9f6b75f3"}},{"code_sha256_prefix":"d3e493cb453bf21e","entry":"Normalize","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"models/diffusion_new.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/models/diffusion_new.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d3e493cb453bf21e"}},{"code_sha256_prefix":"7345763c9b9300fb","entry":"check_integrity","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/datasets/utils.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/datasets/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7345763c9b9300fb"}},{"code_sha256_prefix":"d78697dffb992697","entry":"conditional_noise_estimation_loss","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/losses.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d78697dffb992697"}},{"code_sha256_prefix":"4c603260e9a53b23","entry":"data_blurring","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/process_data.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/process_data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c603260e9a53b23"}},{"code_sha256_prefix":"bb65803997afc12c","entry":"ddim_steps","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/denoising_step.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/denoising_step.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bb65803997afc12c"}},{"code_sha256_prefix":"4d1f19f21237eb7d","entry":"ddpm_steps","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/denoising.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/denoising.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4d1f19f21237eb7d"}},{"code_sha256_prefix":"4552697bda36ebb2","entry":"ddpm_steps","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/denoising_step.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/denoising_step.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4552697bda36ebb2"}},{"code_sha256_prefix":"c37fc656e8bb2a80","entry":"get_ckpt_path","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/ckpt_util.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/ckpt_util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c37fc656e8bb2a80"}},{"code_sha256_prefix":"efc699989983049d","entry":"load_flow_data","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"runners/rs256_guided_diffusion.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/runners/rs256_guided_diffusion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"efc699989983049d"}},{"code_sha256_prefix":"cd9733bb244e0eed","entry":"load_recons_data","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"runners/rs256_guided_diffusion.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/runners/rs256_guided_diffusion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd9733bb244e0eed"}},{"code_sha256_prefix":"b8eae635c8da0f75","entry":"nearest_blur_image","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"runners/rs256_guided_diffusion.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/runners/rs256_guided_diffusion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b8eae635c8da0f75"}},{"code_sha256_prefix":"a1e4ee18c7b28d29","entry":"normalize_array","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/process_data.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/process_data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1e4ee18c7b28d29"}},{"code_sha256_prefix":"585244aea5474149","entry":"unnormalize_array","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"functions/process_data.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/functions/process_data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"585244aea5474149"}},{"code_sha256_prefix":"50d3715e3fd0d2da","entry":"voriticity_residual","repo":"BaratiLab/Diffusion-based-Fluid-Super-resolution","repo_kind":"official","path":"train_ddpm/functions/losses.py","file_url":"https://github.com/BaratiLab/Diffusion-based-Fluid-Super-resolution/blob/HEAD/train_ddpm/functions/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"50d3715e3fd0d2da"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}