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

Convergence difficulties with pressure inlet BC in a 3D pipe #32

Open
jacktat opened this issue Nov 10, 2020 · 3 comments
Open

Convergence difficulties with pressure inlet BC in a 3D pipe #32

jacktat opened this issue Nov 10, 2020 · 3 comments

Comments

@jacktat
Copy link

jacktat commented Nov 10, 2020

Hello everyone,

I am experiencing difficulties reaching convergence with the Oasis solver with a problem I am trying to solve. I have a tube with a 6mm diameter with a fluid flowing through it which has a density of rho = 1000, and a dynamic viscosity of 5e-3 (blood). The boundary conditions which I have prescribed are the noslip condition on the walls, pressure is 0 at the outlet, and a constant pressure of 200 Pa at the inlet. I have tried ramping up to the desired pressure drop of 200 Pa, however this also doesn't converge.
In the Oasis paper referring to equation (12) it is mentioned that “The boundary integral can be neglected for all parts of the domain where the velocity is prescribed.” I was wondering what happens to the boundary integral when pressure is prescribed and if this may be the caues of divergence, and if someone maybe has expierence in prescribing pressure using the Oasis solver.
oasis_boundary_integral

Many thanks in advace.
Cheers,
Jack

@mikaem
Copy link
Owner

mikaem commented Nov 11, 2020

Is this a steady state problem? For steady state I strongly recommend using a coupled solver. If not, then note that equations are solved using Neumann on velocity if there is no Dirichlet boundary conditions set. That is, we do not include the ds-integral containing the velocity gradient on the boundaries, see, e.g., here.

@jacktat
Copy link
Author

jacktat commented Nov 12, 2020

Thanks for your response.
I'm sorry that I was not clear in my original post, I am solving a time dependent problem.
I'm still having slight trouble understanding your reply. I thought phi in equation (12) was the pressure correction: "φ=pn−1/2−p∗ is a pressurecorrection and p∗is a tentative pressure".
So I thought that boundary integral contained a pressure gradient, not a velocity gradient, is this correct?

Cheers,
Jack

@mikaem
Copy link
Owner

mikaem commented Nov 12, 2020

Yes, the equation you show is for a pressure correction. I just ment to say that if you use a Dirichlet boundary condition on pressure, then you cannot at the same time use Dirichlet for velocity. So since we are not including the last term in Eq. (11), we are in fact using a Neumann boundary condition for velocity.

The boundary term you circle will be zero nevertheless, because you know the pressure (Dirichlet). There is no unknown on the boundary. Most textbooks would write that the testfunction is zero on a Dirichlet boundary.

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