-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about wall bouncing #482
Comments
Hi @Darcher007 - are you able to provide the specific model you are using and full xml file? |
@Darcher007 "the upper and lower boundaries have periodicity", yes, in TCLB the domain is always periodic in all directions. But this should not be a problem if you added the upper and lower walls with <Wall mask="ALL" name="border">
<Box ny="1" />
<Box dy="-1" />
</Wall> Nevertheless it would be useful to see what case (xml) are you using. |
My XML file is similar to the following, It can be run with the "d2q9_ShanChen" model. I use TCLB-6.6.1
The specific case is two-phase flow, with the liquid phase flowing on the lower wall . The model I am using is a multiple relaxation model. The specific problem is that when I write the program in C++ I am also applying a bounce boundary on the lower wall, at which point the liquid phase does not bounce off the wall; however, when I use TCLB's wall bounce boundary, the liquid phase bounces off the wall boundary. I found that even when I used "mask=all", there seems to be a periodicity between the upper and lower wall surfaces, which is reflected in the appearance of the gas phase at the lower wall (see my last statement for the exact image) Do you think the cause of the gas phase at the lower wall is periodicity or something else? |
Also if this is periodicity causing a gas phase to appear underneath, why would adding a wall boundary still make the upper and lower boundaries periodic |
The code assumes periodicity, but the wall condition will over-write the values (i.e. densities) streaming in from the other side of the domain. I think the issue here is that you want to prescribe density for the walls, and the upper and lower walls will have different densities - something like the below should stop the bouncing up behaviour I believe. Your previous set up, when you masked all removed the additionals flag name "blobb" so the initial bottom wall density was set to 0.056. `
` |
@TravisMitchell Thanks for the reminder that the liquid phase is now no longer bouncing, but the periodicity at the left and right boundaries still affects the fluid flow. I wrote a kind of inlet boundary and outlet boundary, and the fluid works fine when adding them individually to the XML, but when adding them together to the XML it reports the error "nan"
What's causing this to happen? |
@Darcher007 this is hard for me to say, as I am unsure what you have implemented for Win and Eout. The main issue I can see with the xml file would be that you are offsetting the inlet and outlet away from the boundaries of the domain (dx=10 and dx=-10), is there a reason for this? |
@TravisMitchell
It makes it easier for me to understand the code. What do you think of that? |
Hi @Darcher007, when are you writing to the If you want to copy fields from previous iteration (that what I don't exactly understand what the model is supposed to do. If you want to meet for a call, please contact me with an email. |
The reason I created a new model like this is that I can't understand the model that comes with TCLB very well. In LBM theory, the initialization is done first, and then there is a three-step cycle of collision, migration, and boundary conditions, My model is written according to this theory, with The most difficult thing to understand in TCLB is the data reading. In the manual, there is a paragraph
It confuses me a lot. For example
The f[1] in
The f[1] in My e-mail address is [email protected] ,I hope you can remind me if I'm wrong about anything. |
I found that when running a model with a parallel phase interface, the liquid phase immediately below the wall would bounce up
Image at time step 0
And when looking at the velocity map, I noticed abnormal y-direction velocities at the upper and lower walls (I set the upper and lower boundaries to be walls, and the left and right cycle boundaries)
According to the lattice Boltzmann bounce boundary and code, there should not be a velocity in the y-direction, and this velocity looks as if the upper and lower boundaries have periodicity. If my guess is true, can you tell me how to lift this periodicity?
The text was updated successfully, but these errors were encountered: