Skip to content

Feature thermal mixed mimetic - #4149

Draft
OmarDuran wants to merge 62 commits into
developfrom
feature_thermal_mixed_mimetic
Draft

OmarDuran wants to merge 62 commits into
developfrom
feature_thermal_mixed_mimetic

Conversation

@OmarDuran

@OmarDuran OmarDuran commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Add building blocks for mixed-MFD for thermal single-phase flow. This PR depends on #4139. The adaptive-MFD concept is applied uniformly to each elliptic component, namely Darcy’s law and Fourier’s law.

To provide a sense of validation the following snapshots represent a simple thermal convection cell documented in [1]. The critical Rayleigh number Ra > 4π² .

The boundary conditions are:

  • Energy: T = 320 K on z = 0 and T = 300 K on z = 100 m. Laterals are thermal insulated.
  • Flow: All boundaries are impervious. Neumann problem is solvable on this setting because the density derivatives are non-zero.

Initial conditions are:
Hydrostatic pressure: p = 1.0e7 + 9810·(100 − z) Pa.
The conductive vertical profile plus the critical mode at 0.01 K amplitude: T = 320 − 0.2 z + 0.01·sin(πz/100)·cos(πx/100).

The following snapshots present the approximations at the final time of 2.0e10 s (634 years) and Ra = 50. The top panel shows the MFD approximation on a simplex mesh, for which the gravity and gradient terms are consistent. The middle panel shows the TPFA solution on a hexahedral mesh, where the discretization is fully consistent. Finally, the bottom panel shows the TPFA solution on a simplex mesh. In this case, the discretization is clearly not consistent failing to capture the physics of the convection cell.
comparison_convection_cell_mfd_tpfa_consistent_and_tpfa

Reference:
[1] E. R. Lapwood, "Convection of a fluid in a porous medium", Math. Proc. Cambridge Philos. Soc. 44 (1948), 508–521, https://doi.org/10.1017/S030500410002452X.

chauj96 and others added 30 commits March 12, 2026 13:20
@OmarDuran OmarDuran self-assigned this Sep 19, 2026
@OmarDuran OmarDuran added the ci: run code coverage enables running of the code coverage CI jobs label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run code coverage enables running of the code coverage CI jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants