{"id":25762519,"url":"https://github.com/ishaandesai/coupled-heat-conduction","last_synced_at":"2026-08-06T13:30:22.565Z","repository":{"id":38837325,"uuid":"374641121","full_name":"IshaanDesai/coupled-heat-conduction","owner":"IshaanDesai","description":"Macro-micro heat conduction using partitioned coupling","archived":true,"fork":false,"pushed_at":"2023-06-28T14:58:52.000Z","size":115,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T14:11:10.211Z","etag":null,"topics":["heat-conduction","macro-micro","multi-scale-model","nutils","precice"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IshaanDesai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-07T11:28:47.000Z","updated_at":"2024-07-19T04:49:15.000Z","dependencies_parsed_at":"2023-01-22T14:15:52.991Z","dependency_job_id":null,"html_url":"https://github.com/IshaanDesai/coupled-heat-conduction","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IshaanDesai/coupled-heat-conduction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanDesai%2Fcoupled-heat-conduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanDesai%2Fcoupled-heat-conduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanDesai%2Fcoupled-heat-conduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanDesai%2Fcoupled-heat-conduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IshaanDesai","download_url":"https://codeload.github.com/IshaanDesai/coupled-heat-conduction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshaanDesai%2Fcoupled-heat-conduction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36336530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"ssl_error","status_checked_at":"2026-08-06T04:43:02.660Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heat-conduction","macro-micro","multi-scale-model","nutils","precice"],"created_at":"2025-02-26T19:53:19.834Z","updated_at":"2026-08-06T13:30:22.171Z","avatar_url":"https://github.com/IshaanDesai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coupled-heat-conduction\n\n\u003ca style=\"text-decoration: none\" href=\"https://github.com/precice/fenics-adapter/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/IshaanDesai/coupled-heat-conduction.svg\" alt=\"GNU LGPL license\"\u003e\n\u003c/a\u003e\n\nThis code solves a heat conduction problem on a 2D domain which has an underlying micro-structure. The micro-structure makes the problem two-scale with a clear scale separation.\nAt each Gauss point of the macro-domain there exists a micro-simulation. The macro-domain is resolved in the file `macro-heat.py`\nand the micro-domain is resolved in the file `micro_sim/micro_heat_circular.py`. Both the macro and micro problems are solved using the finite element library [Nutils](http://www.nutils.org/en/stable/).\n\nThe coupling between the macro-simulation and several micro-simulations is achieved using the coupling library [preCICE](https://precice.org/) \nand a Micro Manager. The Micro Manager (`micro-manager.py`) is a controlling components which handles all micro-simulations\nand facilitates coupling with the macro-simulation via preCICE. The macro-problem and Micro Manager are configured via JSON files.\n\nThe case is chosen from the first example from the paper: Bastidas, Manuela \u0026 Bringedal, Carina \u0026 Pop, Iuliu, (2021), A two-scale iterative scheme for a phase-field model for precipitation and dissolution in porous media. Applied Mathematics and Computation. 396. 125933. 10.1016/j.amc.2020.125933. \n\n## Dependencies\n\n* **Nutils** can be installed through the [installation procedure](http://www.nutils.org/en/latest/intro/#installation).\n* **preCICE** can be installed in [several ways](https://precice.org/installation-overview.html).\n* [pyprecice]()\n* [micro-manager]()\n\n## Running two-scale coupled heat conduction problem\n\nThe coupled macro problem can be started using the command:\n\n```(python)\npython3 macro-heat.py\n```\n\nFor a coupled simulation the micro problems are managed by the micro manager. The micro-manager is imported into a Python script and then called from it. In this case, the script is [run-micro-problems.py]() which can be run as:\n\n```(python)\npython3 run-micro-problems.py\n```\n\nThe script can also be run in parallel in the following way:\n\n```(python)\nmpirun -n \u003cnum_procs\u003e python3 run-micro-problems.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaandesai%2Fcoupled-heat-conduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishaandesai%2Fcoupled-heat-conduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaandesai%2Fcoupled-heat-conduction/lists"}