ThermalMultiphaseOpenLB
This is an extension for OpenLB which allows for thermal single-component phase change multiphase flow
Install / Use
/learn @JuliusWeinmiller/ThermalMultiphaseOpenLBREADME
ThermalMultiphaseOpenLB
This is an extension for OpenLB which allows for thermal single-component phase change multiphase flow
This extension was created by Julius Weinmiller as part of his master thesis. The final thesis will be uploaded shortly to TUDelft repository, and once avaliable will be linked here.
Features
With this extension, it is possible to simulate phase change using OpenLB of liquids at high density ratios.
An example usecase is flow boiling in microchannHelmholtz Institute Ulmels.
Code extensions
The extension includes:
- A new forcing algorithm for pseudopotential method
- stable simulations high density ratios
- thermodynamic consistent densities
- Multiphase thermal coupling DDF
- Incorporation of latent heat via the equation of state
- Semi-hybrid thermal solver
- Solves thermal equation with explicit euler
- Helps with setting thermal diffusivity
Limitations
The original extension was created for OpenLB v1.3-1.
It is currently not working in combination with OpenLB v 1.4, but it is being worked on to make sure it functions as well
Quick Installation
- Drop the
phaseChangeExtensionfolder into the OpenLB base folder - In the
global.mkfile:
- add the line
phaseChangeExtension/phaseChangeSource \to theSUBDIRSandINCLUDEDIRS - add
-lgsl -lgslcblasto theLIBSafter the-lz
- One small change needs to be made in the file
src/dynamics/dynamics.h
- Navigate to the class
BounceBack(line 651) - Change
privatetoprotected(line 701)
- Compile and run the examples to make sure everything works
- Do not forget to change
BUILDTYPEtogenericinconfig.mk
Cleaner Installation
It is possible to organize the folders better, but it may break some references.
- Place the source folder into the
src/external/folder
- Add the location of the source folder to
global.mk
- Place the python folder into the
src/external/folder
- The python files (Used only to generate plots) in the example program need to be given the proper reference to the
eos.pyfile
- Place the phaseChangeExamples into the OpenLB's examples folder
- If the examples do not compile, make sure that the
ROOTin thedefinitions.mkis correct. - Optional: add the examples to the
EXAMPLEDIRSin theglobal.mk
- Any other steps in the quick installation also need to be performed
- Reminder to add:
-lgsl -lgslcblas - Reminder to edit
BounceBack
Core papers used
Q. Li, K. H. Luo, and X. J. Li. Forcing scheme in pseudopotential lattice Boltzmann model for multiphaseflows. Physical Review E, 86(1):016709, jul 2012. doi:10.1103/PhysRevE.86.016709.
S. Gong and P. Cheng. A lattice Boltzmann method for simulation of liquid–vapor phase-change heat transfer. International Journal of Heat and Mass Transfer, 55(17-18):4923–4927, aug 2012. doi:10.1016/j.ijheatmasstransfer.2012.04.037
Q. Li, P. Zhou, and H. J. Yan. Improved thermal lattice Boltzmann model for simulation of liquid-vaporphase change. Physical Review E, 96(6), 2017. doi:10.1103/PhysRevE.96.063303
Relevant papers for MRT collision operator
Q. Li, K. H. Luo, and X. J. Li. Lattice Boltzmann modeling of multiphase flows at large density ratio withan improved pseudopotential model. Physical Review E, 87(5):053301, may 2013. doi:10.1103/PhysRevE.87.053301.
Other interesting papers
Q. Li, Y. Yu, and Z. X. Wen. How does boiling occur in lattice Boltzmann simulations? 093306(May),2020. doi:10.1063/5.0015491.
Related Skills
bluebubbles
349.0kUse when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration). Calls go through the generic message tool with channel="bluebubbles".
bear-notes
349.0kCreate, search, and manage Bear notes via grizzly CLI.
claude-seo
4.0kUniversal SEO skill for Claude Code. 19 sub-skills, 12 subagents, 3 extensions (DataForSEO, Firecrawl, Banana). Technical SEO, E-E-A-T, schema, GEO/AEO, backlinks, local SEO, maps intelligence, Google APIs, and PDF/Excel reporting.
claude-ads
1.6kComprehensive paid advertising audit & optimization skill for Claude Code. 186 checks across Google, Meta, YouTube, LinkedIn, TikTok & Microsoft Ads with weighted scoring, parallel agents, and industry templates.
