SetfieldsDict in the multiphaseInterFoam
Hi, Formers:
It is a problem confused me a lot of days. i want to use the multiphaseInterFoam to stimulate different fluid inject in a cavity sequentially. If one fluid injection is finished, how can the setfieldsDict be set for the next one? If the setfieldDict not changed, i have tried this way, the calculation of the next fluid would begin from the end of previous fluid. But the result is not OK. So, can you give me any advise? Best regards! |
If I understand what you are trying to do, I would say that maybe you need to change the fluid entering the system using a different boundary condition and not setFields. Maybe something like the uniformFixedValue with a time varying uniformValue shown here:
http://www.openfoam.org/version2.1.0...conditions.php I have not tried this but it is where I would start. |
thank u for your reply! Matthew.
i have seen the webpage you recommended. To my issue, the change of u is not enough, the fluid also be changed. like:First, water; second, oil. |
I would think that you could use this BC to change the boundary conditions in your alphaair and alphawater files to change the fluid coming into the domain.
in alphawater: Code:
Code:
Like I said, I have never done this but it is where I would start. Let me know if it works. |
1 Attachment(s)
sorry to reply you so later, Matthew.
your patient reply is appreciated, thank you! i have done the steps like you say. in my case, there are 3 fluids, two Non-newtonian and one Newtonian. properties file: Code:
https://www.dropbox.com/sh/i2lrvqxex...properties.jpg.phases Code:
inlet Code:
inlet Code:
inlet https://www.dropbox.com/sh/i2lrvqxex...E5%9B%BE00.jpg Best regards! salame |
All times are GMT -4. The time now is 05:16. |