CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Passive scalars for a mixing tank

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By NickFL
  • 1 Post By NickFL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2023, 07:17
Unhappy Passive scalars for a mixing tank
  #1
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
For a project I am simulating a 2D sliding mesh model of a rushton turbine mixing tank on ansys fluent.
I am currently struggling with measuring mixedness. I was wanting to simulate 2 different coloured waters mixing time.
https://www.afs.enea.it/project/nept...ug/node342.htm
I was trying to follow this guide but I don't understand what to do with the cell conditions.
I generally need guidance about how to do the whole process, any advice is greatly appreciated.
Joe walker1 is offline   Reply With Quote

Old   April 25, 2023, 08:51
Default
  #2
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
This can be done in a number of ways. One way that is often done it to create a mixture of two fluids with the same property. I am assuming it is a closed mixing tank (i.e. no inflow/outlfow). If so, then simply patch a small region of the domain with the tracer fluid. You can then create volume monitors on the transient run for min/max/average values of the tracer. From here you can see how the tracer is distributed in the domain.


Furthermore, if you have created a steady-state flow field, you could even turn off the solution for the continuity/momentum and turbulence equations. This means it is only solving scalar transport, and that is much quicker.
Joe walker1 likes this.
NickFL is offline   Reply With Quote

Old   April 29, 2023, 11:03
Default
  #3
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Hi,
Thank you for the response. I am still quite new to fluent so I have a question regarding the last part of you message. When you say steady-state flow field, do you mean I run the solver until my results have converged, then follow you guidance afterward?
Joe walker1 is offline   Reply With Quote

Old   April 30, 2023, 03:30
Default
  #4
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
Yes what I am calling a steady-state solution is a solution that is converged, not just to residuals are under 1e-3, but really drive them out to where it approaches an asymptotic. Then you know that is as good as you are going to do with that grid. Also monitor other points and verify they are not varying with iteration.



Once you have that flow field, by turning off the flow and turbulence equations, you are basically just freezing it. As long as your second mixture fluid has the same properties as the first, then we can just solve these (actual "the" because it only solves one) transport equation(s) because the flow field wouldn't change. Think of it like putting dye in the water, we are just giving some of the material a new name so that we can follow it.
Joe walker1 likes this.
NickFL is offline   Reply With Quote

Old   May 1, 2023, 07:30
Default
  #5
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Brilliant thank you.
Joe walker1 is offline   Reply With Quote

Old   May 6, 2023, 10:24
Default
  #6
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Hi, is there any change you can help me through the process again. I have completed the transient run, and turned off the energy equations, but I am confused as to whether I am adding a multphase "mixture" or I am just adding a species transport in the models tab.
am attempting to follow https://www.eureka.im/5375.html
As well as your guidance but I feel that there is some conflicting instructions in this link.

Any help is greatly appreciated.
Joe walker1 is offline   Reply With Quote

Old   May 6, 2023, 15:27
Default
  #7
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
It is a multi-species simulation that you need to run.

1. Create a mixture with 2 components, let us say fluid-1 and fluid-2. Remember to keep the material properties the same.
2. Turn off the flow, turbulence and energy(?) equations. You should only have the 1 species equation left.
3. Create a small region in your domain. You will want to patch fluid-2 a Mass Fraction (MF) of 1 to this domain and leave MF of 1 everywhere else in the domain. Keep in mind to patch MF of 1 to fluid-2 to the region, we would set the MF of fluid-1 to be zero.
4. Create a monitor of max facet value, min facet value and volume average value of fluid-2. You can set up a plot and even write it to a file for post-processing in Excel or other programs.
5. Create contours of the fluid-2 component. Then create animations for these contours. The new cxa animations work quite well in Fluent.
6. Run the simulation.



I think that should be it.

Last edited by NickFL; May 6, 2023 at 15:28. Reason: I cannot count
NickFL is offline   Reply With Quote

Old   May 8, 2023, 14:32
Default
  #8
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Hey, really appreciate the continued help. Not to pester you, but I am still having issues with my simulation. I believe I have set the simulation up as described, but it seems the patched region doesn't disperse through the transient run.
I believe I followed everything as described, however I only have the option of patching the phase 2 fluid.

I've attached a picture of the patch section and the contour at the final time step.
https://smallpdf.com/file#s=8b50551d...3-57575acc34cb

The patched region crosses the sliding mesh and the stationary region, however only the area of fluid inside the impeller region is dispersed.

Thanks again,
Josh

Last edited by Joe walker1; May 8, 2023 at 14:34. Reason: editing link
Joe walker1 is offline   Reply With Quote

Old   May 8, 2023, 15:25
Default
  #9
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
Quote:
Originally Posted by Joe walker1 View Post
I only have the option of patching the phase 2 fluid.
You mean species 2? The mass fraction of Species 1 is simply (1 - MFs2) where MFs2 is the mass fraction of species 2.


I cannot see your image. Use the image hosting on this forum it works well. Look at the steady state velocity contours. Do they make sense. When you patched the speices 2, you didn't re-initialize the flow field by mistake did you?
NickFL is offline   Reply With Quote

Old   May 9, 2023, 13:13
Default
  #10
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Hi,
So upon reviewing the velocity contours, after I start the second simulation the velocities cease to be continuous over the 2 regions. Any suggestion to remedy this?

Thanks again Josh.
Joe walker1 is offline   Reply With Quote

Old   May 10, 2023, 02:38
Default
  #11
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
Can you upload the images so we can see? If you turned off the flow equation solver, then the velocity field should not change.
NickFL is offline   Reply With Quote

Old   May 10, 2023, 12:12
Default
  #12
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
Hi, I have attached screenshots of what I've done. And I will attach pictures of the flow field after turning the equations off, in the next post.
Attached Images
File Type: png phase set up.png (39.9 KB, 7 views)
File Type: png disable equations.png (4.9 KB, 7 views)
File Type: png patch phase.png (56.6 KB, 4 views)
File Type: png other phase unavailable.png (8.1 KB, 5 views)
File Type: png velocity gradient pre turning off equations.PNG (136.3 KB, 7 views)
Joe walker1 is offline   Reply With Quote

Old   May 10, 2023, 12:54
Default
  #13
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
And this is the velocity profile and volume fraction of the second species after the sim is ran.
The section of the fluid inside the sliding mesh rotates but doesn't disperse and the section outside the impeller region just remains stationary.
Could it be that I should have the flow equation enabled and the turbulence model is the only one that should be disabled?
Joe walker1 is offline   Reply With Quote

Old   May 10, 2023, 14:29
Default
  #14
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
You have it set up as a multiphase, but want a multi-species. And it looks like you reset the velocity field when you went to patch the dye to the volume. You just need to patch the one species equation and do not change the velocity.
NickFL is offline   Reply With Quote

Old   May 11, 2023, 09:08
Default
  #15
New Member
 
Joe walker
Join Date: Apr 2023
Posts: 14
Rep Power: 2
Joe walker1 is on a distinguished road
You're absolutely right! I had been using a multiphase mixture instead of a species transport model.
Everything is running fine now.
Thank you so much for staying with me, you've been amazing help!
I'm tempted to add you to the acknowledgments page of my thesis haha.
Joe walker1 is offline   Reply With Quote

Old   May 11, 2023, 12:23
Default
  #16
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
Glad you did it correctly in the end. I've been doing this nearly 20 years now, so I have seen and made a lot of mistakes. It is better to get it fixed before you finish your thesis. It is never good to see big mistakes at the defense and after the thesis has been printed.


Good luck to you at your defense and remember you know the topic better than anyone in the room.
NickFL is offline   Reply With Quote

Reply

Tags
fluent, post-processing, scalar mixing, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inlet Mixing at 1D Numerical Model | Stratified Storage HumanistEngineer Main CFD Forum 26 July 30, 2018 10:41
Mixing Tank 3D MRF case monty86 FLUENT 1 October 9, 2015 03:43
Mixing tank with two phases Jana Fluent Multiphase 2 September 14, 2015 02:47
Mixing tank impeller Onicon FLUENT 1 March 24, 2015 02:43
Passive scalars and Star-CCM+ Tim Siemens 1 May 19, 2008 11:04


All times are GMT -4. The time now is 15:47.