
Table of Contents
Links
To-Do
Find out which solver to use- Set up and run sim
- Post-process results
- Verify results with analytical estimations
Context
This project idea came to me during breakfast and you can check out in this blog post why it is, most likely, a virtual waste of effort and computing power.
However, I have not worked with OpenFoam before and I think that this might be a good idea to get to know the workflow of the software.
The basic idea is to check if it is enough to shake my orange juice bottle only once to appropriately mix the pulp to the juice before pouring into the cup.
Methodology
Which solver to use?
Naturally, this is a problem of multiphase flow, given that inside the bottle, at the very least we have to consider the presence of air and juice. I know that OpenFoam is able to deal with multiphase problems. Time for some research.
Multiphase flow using interFoam
One possible way of simulating this would be by using a 2 phase flow simulation (air and juice inside the bottle). OpenFoam's interFoam could be a relatively easy way of solving that, there's even a great video by Rose Walker going through interFoam for 2 phase immiscible fluids. The main drawback of this would be that, since we would not be simulating the pulp as it's own phase, there would be no way of determining the answer to the main question I have and we would have to determine implicitly if the results are appropriate.
Maybe a multiphase flow with 3 fluids could be done.
Multiphase flow using interMixingFoam
One of the best things that can happen is when you need something and you find that something without much effort or hardship. As described in OpenFoam's documentation interMixingFoam is a:
Solver for three incompressible fluids (two of which are immiscible) using VOF phase-fraction based interface capturing. With optional mesh motion and mesh topology changes including adaptive re-meshing.
Beautiful.
Yes, I am well aware that air is not incompressible. But, if I could shake a bottle of juice hard enough to have to take the compressibility of air into account, I would probably be a superhero, not an engineer.
Some additional references that might be helpful at this stage are:
Setting up the Simulation
Geometry Modeling
Wasn't too difficult, did it quickly in Fusion 360. Not going to worry too much about it now, just want to run something first, then I’ll make it better.
Meshing
Found this very useful video on importing Ansys Fluent meshes to OpenFoam.