Two component lattice density setting
› Forums › on OpenLB › General Topics › Two component lattice density setting
- This topic has 4 replies, 3 voices, and was last updated 4 years, 4 months ago by Gloriousface.
-
AuthorPosts
-
June 8, 2021 at 4:28 pm #5718GloriousfaceParticipant
Hello,everyone
I’m setting the lattice density of the two components. Does the sum of the lattice densities of the two components need to be equal to 1? Or the lattice density of each component needs to be around 1. If you can help me solve this problem, I would be very grateful.
June 9, 2021 at 9:37 am #5720stephanModeratorThe lattice density for a Navier-Stokes lattice (population which approximates NSE) can in general be initialized with unity.
Please note that dependent on what you are simulating, and which model you are using the physical densities of each lattice have separated meanings.
This means that the lattice densities are kinetic densities in the first place and are only mapped one-to-one on macroscopic conservables if constructed to do so.For e.g. Free Energy Model, the lattice densities of the second (and maybe third for ternary systems) are macroscopic variables (order parameters) in the additional Cahn-Hilliard equations.
These variables are hence not directly the component densities, but instead recover them by a simple additive relation.
Dependent on exactly these relations the additional Cahn-Hilliard lattice densities should be initialized (see e.g. the microFluidics2d Example in OpenLB).For more information please have a look at the user guide and the standard literature for Multiphase/Multicomponent LBM (e.g. Krüger et al. 2017 “The Lattice Boltzmann Method” Chapter 9).
BR
StephanJune 13, 2021 at 2:49 pm #5724GloriousfaceParticipantThank you very much for your reply. When I used SC model to simulate oil-water two-component flow, ZouHe velocity boundary was set at the inlet and ZouHe pressure boundary was set at the outlet. During the simulation, the average density of component 1 and component 2 kept increasing and diverged after 10000 iterations. What is the reason for this? I would appreciate it if you could help me with this problem.
Best
GloriousfaceJune 13, 2021 at 2:55 pm #5726mathiasKeymasterDear Gloriousface,
my team helped you to get a basic version running. Finxing stability issues by means of our forum, however, is more that we can do.
Best
MathiasJune 15, 2021 at 4:42 am #5727GloriousfaceParticipantThank you very much for your help.I don’t quite understand “getAverageRho ()”. What density does this function output and why is it different from the initial density I set?
-
AuthorPosts
- You must be logged in to reply to this topic.
