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

Question: Inlet / Outlet with multiple fluids #323

Closed
FloWsnr opened this issue Nov 29, 2021 · 2 comments
Closed

Question: Inlet / Outlet with multiple fluids #323

FloWsnr opened this issue Nov 29, 2021 · 2 comments

Comments

@FloWsnr
Copy link

FloWsnr commented Nov 29, 2021

Hi,

First of all, thank you for your amazing work here.
I want to simulate multi-fluid systems in closed channels. An incoming fluid should displace an already present fluid. The incoming fluid should enter the simulation with a constant velocity.
I tried to use inlets and outlets for that, however, I ran into some problems. How can the inlet produce fluid_1 while the outlet "erases" fluid_2 and eventually fluid_1.

Thank you for your help,

Florian

@pawansnegi
Copy link
Contributor

Hi Florian,

Thank you for your kind words!

The inlet in PySPH is implemented such that the same particles are circulated in the inlet domain. See

def update(self, time, dt, stage):

Therefore in order to create inlet with different property compared to the properties of the rest of the domain, create the inlet and rest of the domain with that values. See the inlet initialisation here

def _create_inlet(self):

And corresponding fluid and outlet initialisation in the same example.

I hope this helps!

Regards,
Pawan

@prabhuramachandran
Copy link
Contributor

Am closing this for now, if there is a bug please reopen or a file a specific issue. Thanks.

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

3 participants