August 18, 2023 at 8:05 pm
Subscriber
So there is no advection of fluid into/out of the domain? If so, then it is simply a mass diffusion problem.
I would recommend you make a simple "learning" model, so we can test and debug the process. It could be a simple box (and if there is advection, a channel).
- In your domain, create a small domain where you want the initial concentration to be. In the case of our simple box, make the cutout somewhere away from center a bit closer to one of the faces. Have the volume of this be ~5% of the domain. (Note you could do this using the marking and registers in Fluent, but the downside with this approach is changing the mesh could potentially change the amount of initial concentration.) When creating the geometry, create it as a multibody part to have a 1:1 interface across the domains.
- Mesh it as before (are you using ANSYS meshing?). Create a Named Selection for the small domain.
- Create a transient simulation. The most important part is creating the multi-species mixture. Basically you will want a mixture that is the component, let me call it brain fluid, and a copy of this brain fluid, let me call it dye. The two components may have the same properties, and, if it is simply a diffusion problem, the most important part is the mass diffusion quantity.
- If it is only a diffusion problem, initialize the solution with zero velocity (if it has advection, then solve the steady-state problem to obtain the velocity field.) We will then patch the dye onto the small cutout we made. You can find this under initialization in the tree, then Patch... What you will want to do is patch the mass fraction of dye to be 1 in the small domain that we created. (Do not hit "initialize", as this will destroy the velocity field if not zero.)
- Create monitor points that we will monitor during the run. These can simply be the mass fraction of dye at points or across surfaces. Use your imagination and also think about what is relevant for your problem. You know it better than I.
- Solve the transient solution. Watch the monitor points you created above until the solution reaches whatever point you want.
Ok, so that is a general walkthru. I would recommend searching for residence time simulations or calculating the mixing time in this forum or elsewhere on the web for a more detailed description. It is a pretty common problem, at least as I understand it at the moment. Again, I could be making some false assumptions, so go through the thought process and let me know if you have questions. I am here (somewhere on planet earth with an internet connection), and will try to help.