TimBingert
Forum Replies Created
-
AuthorPosts
-
January 7, 2026 at 12:08 pm in reply to: Contact Angle in Multicomponent-Flow using ShanChen-Method #11019TimBingertParticipant
Hello,
it is possible in a very similar way using the geometric contact angle boundary condition by assigning the right density to solid boundary nodes using a geometric rule just like the model in gasStorage2d.
Kind regards
TimTimBingertParticipantHello,
in theory, it should be doable by coupling the multiphase code with the mentioned HLBM code. This would mean creating new dynamics as well as figuring out a way to do the contact angle computation on the HLBM interface. There is no example, that does both models yet, that is correct. In terms of the multiphase approach I would suggest conservative phase field (i.e. bubbleChannel2d) as this phase field model allows most stable conditions for high density ratio and surface tension.
Hope this helps.
Kind regards
TimSeptember 29, 2025 at 5:44 pm in reply to: Abnormal LocalPressure outlet velocity and crash with Shan–Chen #10762TimBingertParticipantHi Wenyuan,
the best advice I can give is to switch the model to incompressible conservative phase field for your immiscible two-phase flow case as the boundary conditions are not tested for the mentioned Shan-Chen model (which is bad anyways). You can find an example in multicomponent/bubbleChannel2d, this example has properly working boundary conditions.
Hope this helps, kind regards
TimTimBingertParticipantHi again,
OpenLB 1.8 now offers an Allen-Cahn phase field model where you can simulate high density ratios as well as wetting. This model is used in examples/multiComponent/bubbleChannel2d.
Kind regards,
TimJuly 14, 2025 at 12:24 pm in reply to: Unit conversion: from LB to physical in terms of the kinematic viscosity #10474TimBingertParticipantHi Aaron,
you are exactly right! Usually in OpenLB, this job is caried out for you by the UnitConverter, i.e. you can use the UnitConverterFromResolutionAndRelaxationTime, which depending on your tau that you input, finds the appropriate timestep size based on your formula. In your case, that might result in a coarse temporal resolution which must not be bad, but if you want to increase temporal resolution under diffusive scaling (constant tau!) you have to increase spatial resolution in LBM.
Hope this helps.
Kind regards
TimTimBingertParticipantHello Bobbie,
for this question I would like to refer to the LBM literature that deals with Cahn-Hilliard multiphase models. Alpha and Kappa are important for free energy and surface tension, gama is used to adjust the CHE mobility and h is used for setting contact angles.
Hope this helps,
Best regards
TimApril 8, 2025 at 11:16 am in reply to: Possible application of Shan-Chen/Peng-Robinson model on dam break #10016TimBingertParticipantHi Aaron,
the MPMC model is more of a show-case of combining LBM with different EoS, even with ones for component mixtures and is therefore lacking appropriate boundary conditions which could be implemented by a user if really needed. It is only useful though, if you want to track moisture in the gas and dissolved gas in the liquid. You could also assume both phases as constant mixtures and model the two-phase dam break with a phase field model capable of density ratios (next release) or a single-component EoS with pseudo-potential model.
Hope this helps.
Kind regards,
TimTimBingertParticipantHi Amirmansour,
considering your project, the closest example would be something like the fourRollMill2d or binaryShearFlow2d in the multiComponent folder. It already includes boundaries and uses a phase field free energy model to describe the immiscible flow. The model is not implemented with density or viscosity ratio, but you could implement a viscosity ratio yourself depending on the order parameter.
Or you could wait a few weeks for the next release of OpenLB that will provide more advanced phase field models that can deal with high density and viscosity ratios.Hope this helps.
Kind regards,
TimTimBingertParticipantHi Julian,
to see how to setup a 3D droplet with an appropriate model, you can check the youngLaplace3d example which uses a phase field model to measure the Young-Laplace pressure of a droplet. It shows how to initialize a spherical order parameter field in 3d in the beginning of prepareLattice.
Hope this helps.
Kind regards,
TimTimBingertParticipantHi Bobbie,
all the SmoothIndicator* are (in this particular case) scalar fields that can be used on any lattice to initialize all kinds of variables in your simulation. The AnalyticalIdentity operator is able to perform certain calculations between those fields such as addition, subtraction and multiplication. This is also what you can see in the code of your post.
Hope this helps
Kind regards
TimTimBingertParticipantHi sfraniatte,
you can set a pressure boundary condition on the inlet similar to how it is done on material numbers 4 and 5 on the outlets with
setInterpolatedPressureBoundary<T,DESCRIPTOR>(lattice, superGeometry, 3);Best
TimTimBingertParticipantIn general, it would be helpful to understand templates when working with OpenLB and how we implement boundary conditions in OpenLB. There is the contactAngle2d example that already provides an implementation of solid-liquid interaction in terms of wetting phenomena.
TimBingertParticipantHi Dan!
Just from looking at the code, in your case the material number 2 are the solid nodes as you are using the bounce back boundary. How are you taking into account solid-water interaction, as I cannot see any other post processor or something similar that you assign to material number 2?
And compared to the original example of FallingDrop2d, you are not assigning the material numbers 0 and 2 with the fields of MASS, CELL_TYPE and EPSILON, which could definitely cause problems with the implementation of the free surface model.
From my point of view, you could keep the original FallingDrop2d case and add a post processor on the boundary nodes to account for solid-water interaction.
Hope, this helps!
TimTimBingertParticipantIf you base your case on the Euler-Euler model, the drag force is necessary. The buoyancy force can be added through the descriptors::EXTERNAL_FORCE field so that you have both forces active.
TimBingertParticipantHi Callum,
the idea of the free surface models is that you are only solving the momentum equations for one phase, i.e. the liquid. If you want to do a crossflow of water and air you need to solve momentum equations for both phases. So a phase field model would be more appropriate for you. There is a so-called “free energy” model in OLB but it only has equal densities for the two phases yet. In the next release, there will be high density ratio phase field models that can be used for your problem.
Best
Tim -
AuthorPosts
