-
-
February 10, 2020 at 9:11 am
myke
SubscriberHi I want to simulate the quantity of disolved oxygen in water depending on temperatura. I créate my model but I have some problems, My model is the next one:
I create an eulerian multiphase model. My primary phase is water + disolved oxyegen (density depending on temperatura by udf) and my secondary phase is dummy oxygen + oxygen (volumen weighted density). Then I apply species mass transfer from water disolved oxygen to the gaseous oxygen and I actÃvate henrys law. In my initialization conditions I put the quantity of disolved oxygen of my primary phase (mass fraction of disolved oxygen = 0.0083) and the mass fraction of dummy oxygen = 1. Also I put a small quantity of volumen fraction of my secondary phase to actÃvate the mass transfer (volumen fraction of secondary phase = 0,006). Then I simulate in transuient model because if I put steady because of the complexity of the simulation I have floating point errors. Is this model correct?
My results are not very logical, the mass fraction of my secondary phase (oxygen gas) always is 0 so the is no mass transfer from primary to secondary phase. Also the volumen fraction of my secondary phase is very small like maximun 1e-20. Why it can be the reason of that?
Thanks
-
February 10, 2020 at 11:29 am
Rob
Forum ModeratorMost multiphase models will struggle in steady state, try transient.Â
Re the mass transfer, work through the steps carefully and check with documentation. 1e-20 suggests that there is no mass transfer as that's the usual number we see when numerical errors creep into a solution.Â
-
February 10, 2020 at 11:48 am
myke
SubscriberHi again and thanks for your advices.
I work with transient model but also the results are not logical. This are the results of the mass fraction and volumen fraction of my secondary phases mass fraction is 0 and volumen fraction also like zero.Â
Â
Why it can be the error of that? I see and read the documentation but I cant search the problem...
Thanks
-
February 10, 2020 at 1:12 pm
DrAmine
Ansys EmployeeAdd more information like phase interaction panel etc. I will move this thread to Fluid category.
-
February 10, 2020 at 2:15 pm
myke
SubscriberHi again I Will add more information:
1.- I use eulerian multiphase model with primary phase (water + dissolved oxygen) and secondary phase (dummy oxygen + oxygen gas). In phase interaction I put the surface tension, interfacial área (ia-gradient) and species mass transfer from disolved oxygen to oxygen gas like you can see in the images. For now, I didnt change anything else in phase interaction.
2.-Â In materials I put an UDF to change the density of water depending on temperature and I use volumen-weighted density in my secondary phase that also change with temperature. The other values of the materials are default.
3.- To star the simulation I initialize my model. I put the quantity of disolved oxygen for my primary phase (0.0083) and dummy oxygen that is my secondary phase in the starting point Will be 1. Also I put a small quantity of volumen fraction of my secondary phase. You can see in the next image:


Â
The results are the ones that I show you in the last post and I dont know where is the problema.
Â
Thanks
-
February 10, 2020 at 2:21 pm
DrAmine
Ansys EmployeeUse symmetric or particle for interfacial area.
Moreover check the volume fraction of the gas phase straight after initialization. Monitor the min, max and volume avg. of the phase interaction source term.
-
February 10, 2020 at 3:15 pm
myke
SubscriberHi again and thanks for your advices. I have two questions.Â
1.- The species mass transfer that I modeled taking into account the henrys law is correct (see image):
Â
2.- I simulate with a very small time step 1e-6 and after 100 interactions the volumen fraction of my secondary phase goes to 1 that is not logical. Also the form of the residuals is not correct. Why happens this?
Â
Thanks
Â
-
February 10, 2020 at 3:48 pm
DrAmine
Ansys Employee1/Yes
2/Bad convergence: it accumulates.
Â
You can try using the simpler mixture model with species mass transfer. Moreover I recommend to update to the most actual release.
-
February 10, 2020 at 3:56 pm
myke
SubscriberHi again, where can be the problem of my model (because the steps are correct) or how can I solve the problem (where can I search more information) ?Â
Thanks
Â
-
February 10, 2020 at 4:01 pm
DrAmine
Ansys EmployeeAs I do not have your model I can only judge on what you are sharing. Check if you have defined the proper operating conditions, gravity (operating density =0), heat transfer interaction, etc..
For that reason and to reduce the search: you can start by much more simple model just a tank filled with water and oxygen and check if the setup regarding that is consistent. Or as mentioned using mixture model with slip so that only drag needs to be provided.
Do not ignore my comment regarding the version: we have introduced a lot of enhancements in the the last release(s).
-
February 10, 2020 at 4:23 pm
myke
SubscriberHi again I have one questions:
My primary phase is wáter + oxygen and I define the density depending on temperatura by an UDF. This is correct no?
Also, in my secondary phase I have volumen wighted mixin law density and then and put polynomial of each case (dummy oxygen and gaseous oxygen) Is this correct?
It can be the problema in the initialization parameters?
Thanks
-
February 10, 2020 at 5:59 pm
DrAmine
Ansys Employee1/sounds ok. For simplicity just use constant for water. Volume weighting mixing for the bulk.
2/for the gaseous the same can be used or just ideal gas law. -
February 11, 2020 at 7:20 am
myke
SubscriberHi again I am trying with a simple model like a small tank with (water + disolved oxygen) and gaseous phase (dummy oxygen + oxygen gas) and I have some questions about the initialization.
In my initialization I put the mass fraction of disolved oxygen of my primary phase and the mass fraction of dummy oxygen of my secondary phase that is 1.Â
Do I have to specify the volumen fraction of my secondary phase? I thought that is zero because in the starting point there is not gaseous phase but I am not sure. What is the meaning of this volumen fraction?
Thanks
-
February 11, 2020 at 11:59 am
DrAmine
Ansys EmployeeWhy setting mass fraction of dissolved oxygen to 1?
-
February 11, 2020 at 1:01 pm
myke
SubscriberHi again, initialization:
1.-Mass fraction of disolved oxygen is 0.00027
2.-Mass fraction of dummy oxygen is 1
3.- I have daughts about the volumen fraction of my secondary phase. I think that is 0 because in the starting point I dont have gaseous phase but I am not sure. What is the meaning of this volumen fraction in my case?
Thanks
-
February 11, 2020 at 3:43 pm
DrAmine
Ansys EmployeeI do not understand your 3/ point.
Â
You just need the volume fraction of gaseous phase to trigger mass transfer. You can leave it to zero and adjust the min vof seeding (introduced in actual releases) or just code your own mass transfer via udf.
-
February 11, 2020 at 3:51 pm
myke
SubscriberHi again, my model for know is very simple.
I have a micro tank that is filled with water and disolved oxygen and all my boundary conditions are walls. In the starting point the wáter is at 25ºC and I apply a temperatura difference in the bottom Wall to see the change of disolved oxygen in wáter depending on temperatura (henrys law). Because of that I créate a mass transfer from the liquid phase to the gaseous.
In the initialization the volume fraction of the gaseous phase I thought that is zero so because of that I was asking if it is correct or not because I dont understand which is the value of this volume fraction.
Thanks
-
February 12, 2020 at 9:23 am
myke
Subscriber -
February 12, 2020 at 9:35 am
DrAmine
Ansys EmployeeHard to say why? Perhaps the mass transfer is very large and this resulting in this divergence.
-
February 12, 2020 at 9:57 am
myke
SubscriberÂ
why is the mass transfer very large? because the quantity of disolved oxygen in wáter is so high?
Thanks
-
February 12, 2020 at 11:00 am
DrAmine
Ansys EmployeeProbably and maybe the new setup is wrong. I am not aware about your settings and it becomes more and more confusing for me here..
-
February 12, 2020 at 11:15 am
myke
SubscriberMy setup: A small tank that is filled with water and I want to see the creation of bubbles because of the change of the temperatuire (henrys law).
1.-Eulerian multiphase model (primary phase water + disolved oxygen) and secondary phase (gaseous oxygen + dummy oxygen).Â
2.-Material properties--> primary phase (only I change the density of the mixture and I use a UDF to specify that change depending on temperatura). Secondary phase (only a change the density and I use volume weighted mixing law and polinomial density gor each phase).
3.-Phase interaction--> I put the Surface tensión and the interfacial área like symmetric. Then I actÃvate species mass transfer from the liquid phase to the gaseous phase with henrys law.
4.-Boundary conditions--> Only I ut the temperatura in the bottom part of the tank and in the starting point the water Will be at 25ºC and then because of the temperatura difference créate this bubbles (henrys law).
5.-Initial conditions--> Water 25ºC, disolved oxygen in water (0.0083) and volumen fraction of my secondary phase (gaseous part).
This is my setup, maybe know you can understand better what I want to see.Â
There is a mass transfer from the liquid to the gaseous phase but this also happen when the bottom part is at 25ºC so I think that is not logical because there is not a temperatura difference.
Thanks
-
February 12, 2020 at 5:23 pm
DrAmine
Ansys EmployeeCan you reduce the complexity by just using constant material properties at first. Moreover you need to either patch with small volume fraction or use that seeding I mentioned
Moreover, you can later try to under-relax the vaporization rate (solution controls) or even test with constant mass transfer rate to check if the whole setup makes a sense or not.
I have run similar but with UDF for mass transfer.
Â
-
February 12, 2020 at 6:46 pm
myke
SubscriberHi and thanks for your advices
In fluent the henrys law model is depending on temeperature? If the temperatura of liquid doesnt change there Will be mass transfer or not? In the reality when the temperatura doesnt change the disolved oxygen in wáter doesnt change and there is no mass transfer from the liquid to the gaseous phase.
So if in my boundary conditions I dont change the temperatura there Will be mass transfer or not?
Thanks
-
February 13, 2020 at 6:50 am
DrAmine
Ansys EmployeeYes the vanthoff depends on temperature but for testing hours can use constant pressure or even unidirectional mass transfer. -
February 13, 2020 at 7:27 am
myke
SubscriberHi again, so if my temperatura is constant and if the model is correct the wont be mass transfer? Because I put constant temperature and there is mass transfer..
Thanks
-
February 13, 2020 at 12:36 pm
DrAmine
Ansys EmployeeIt would be mass transfer check the formulation after Vanthoff. Exp(x) cannot be zero!
-
February 13, 2020 at 2:02 pm
myke
SubscriberYes you are correct!
I have one question about the initalization… I have to define the disolved oxygen and the volumen fraction of my secondary phase. Depending on the disolved oxygen the mass transfer Will be higher or smaller? what do you mean with "patch a small volumen fraction" how much is this small volumen fraction?
Thanks
-
February 14, 2020 at 2:06 pm
myke
SubscriberHi I have one question:
When I initialize my model, depending on the oxygen that is disolved in my primary phase, the mass transfer is different. If I put more disolved oxygen in wáter the mass transfer also is higher. Is this correct?
Â
Thanks
-
February 14, 2020 at 3:51 pm
DrAmine
Ansys Employeebig enough to trigger mass transfer but not huge as it affects the flow. For that reason again search after the seeding command I shared a couple of time on this community.
The mass transfer is concentration driven so it would depend on how much oxygen we have in water. Check the manual and the formula behind that!
-
February 14, 2020 at 4:00 pm
myke
SubscriberHi again and thanks for your advice, Sorry but which command are you saying? What I have to search?
Thanks
-
February 17, 2020 at 6:45 am
myke
SubscriberSorry, but which command are you saying to search?
Thanks
-
February 17, 2020 at 12:03 pm
DrAmine
Ansys EmployeeIn actual Fluent versions there is a search bar. There give the word "seeding"
-
February 18, 2020 at 1:48 pm
myke
Subscriber -
February 18, 2020 at 6:54 pm
DrAmine
Ansys EmployeeNot easy to figure out without looking into the case. Again test at first with constant rate to see if it works at all. -
February 19, 2020 at 8:15 am
-
February 20, 2020 at 1:13 pm
-
February 20, 2020 at 1:19 pm
myke
SubscriberAlso I actÃvate the seeding to put the minimun volumen fraction of my secondary phase and my intiial conditions are:
Mass fraction of dissolved oxygen : 1e-10
Mass fraction of dummy oxygen : 1
Volume fraction of gaseous phase: 0
Â
-
February 20, 2020 at 1:30 pm
DrAmine
Ansys EmployeeHow does the volume fraction plot look alike?
-
February 20, 2020 at 1:32 pm
DrAmine
Ansys EmployeeAnd please use a new version: they are a couple of enhancement introduced which might affect the overall behavior.
-
February 20, 2020 at 2:05 pm
-
February 21, 2020 at 7:46 pm
myke
SubscriberHi again I have some questions
My setup is like a tank filled with wáter and disolved oxygen and as you know I want to see the disolved oxygen in wáter depending on temperatura (henrys law)…Â
In my boundary conditions (species) I put all the walls like zero difussive flux (next image) this is correct no? All of my boundary conditions are walls and only I change the temperatura of the bottom Wall in one setup is all 25ºC and in another setup the bottom Wall is 70ºC to see this change of disolved oxygen.
Â
Also I change the controls and I put smaller values to have a better convergence. Is this correct no?
And also I put my models like default and I change the scheme for couple. Do you think that is enough with that?
Thanks
-
- The topic ‘Dissolved oxygen in water- Henrys law’ is closed to new replies.
-
6455
-
1906
-
1457
-
1308
-
1022
© 2026 Copyright ANSYS, Inc. All rights reserved.

















