Skip to content
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

2phase outlet boundary condition #24

Open
emwn123 opened this issue Jan 25, 2024 · 12 comments
Open

2phase outlet boundary condition #24

emwn123 opened this issue Jan 25, 2024 · 12 comments

Comments

@emwn123
Copy link

emwn123 commented Jan 25, 2024

Hello Dr. Yang, I have questions about the color-gradient multiphase model. For the phase boundary, you showed in the example that the left side is the fixed phase1 boundary (value=-1) and the right side is the periodic boundary. When calculating, I found that, The value of phase1 will also run to the right. So I want to know what is the reason for this?

756b968a4ca5366172a89fe3fa2856e
image

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 25, 2024 via email

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

Thanks for the fast reply!

I used the fixed BC as you said, but the problem remains.

Did I misunderstand what you said?

image
image

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 25, 2024 via email

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

Thanks for the reply.

Now it worked!

But there is a new problem, that is, the blue phase will not continue to displace the red phase after a certain time step, and will always remain in the state shown in the figure below. What could be the reason for this?

image

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 25, 2024 via email

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

I see. Thanks for the fast reply and the nice code!

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

Hello Dr. Yang

If I want to simulate as shown below, how should I set the body force or velocity in the y-axis direction? It seems that the body force at the upper inlet and lower inlet of the y-axis are not in the same direction. I tried velocity BC and that doesn't seem quite right either. Can you give me some advice?

image

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 25, 2024 via email

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

Yes.

So in the y-axis direction I should set the opposite, right? For example, one side is Vy and the other side is -Vy

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 25, 2024 via email

@emwn123
Copy link
Author

emwn123 commented Jan 25, 2024

Hi Dr. Yang,

Sorry to bother you again.

Based on your suggestion, I set the velocity BCs on the three inlets, but it doesn’t seem to be very effective.

No matter how I change the velocity, the phase at the left inlet always gets stuck after a certain time step.
(If a body force in the x direction is applied on this basis, the phase will continue to drive smoothly. But this is wrong, because the two inlets in the z-axis direction will also be affected.)

image
The following are the specific settings and post-processing results:
image
image
image
image
image

It would be very grateful if you give me some guidance.
Thanks a lot!

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants