CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Degassing BC with Algebraic Slip Model (https://www.cfd-online.com/Forums/cfx/127609-degassing-bc-algebraic-slip-model.html)

Antanas December 15, 2013 23:03

Degassing BC with Algebraic Slip Model
 
Hello!

Is it possible to implement degassing boundary condition with algebraic slip model? What possibilities are there? Free slip wall with sinks and equations modifications? Maybe I can use opening boundary condition? But in this case I'm not sure about opening temperature if problem isn't isothermal. Or maybe wall deposition condition will do the trick?

ghorrocks December 16, 2013 04:28

The documentation suggests that if you have a continuous liquid phase and a dispersed gas phase (either eularian or particles) then you can use a degassing boundary. In that case there will be no need for the walls, sinks or anything else.

Antanas December 16, 2013 04:57

Quote:

Originally Posted by ghorrocks (Post 466589)
The documentation suggests that if you have a continuous liquid phase and a dispersed gas phase (either eularian or particles) then you can use a degassing boundary. In that case there will be no need for the walls, sinks or anything else.

Unfortunately degassing BC is available in case of full Euler multiphase model and unavailable when algebraic slip model is used.

ghorrocks December 16, 2013 05:10

Yes, that would make sense - the continuous phase cannot have any motion normal to the degassing boundary (it is treated as a slip wall for the continuous phase), so that means the algebraic slip model cannot result in the disperse phase crossing the boundary.

So that means that if you are thinking of using a degassing boundary the algebraic slip model is not an appropriate model to use. You probably need to move to a inhomogenous multiphase model instead.

Antanas December 16, 2013 08:00

Quote:

Originally Posted by ghorrocks (Post 466600)
Yes, that would make sense - the continuous phase cannot have any motion normal to the degassing boundary (it is treated as a slip wall for the continuous phase), so that means the algebraic slip model cannot result in the disperse phase crossing the boundary.

So that means that if you are thinking of using a degassing boundary the algebraic slip model is not an appropriate model to use. You probably need to move to a inhomogenous multiphase model instead.

Or I can extend my domain to include top gas region and model free surface, correct? Because in my case full Euler approach is too time consuming.

However I definitly saw papers where algebraic slip model was used to model bubble columns without modeling free surface of liquid.

Some guys used opening BC with liquid volume fraction = 1, and gas = 0. But the problem was isothermal and I'm not sure about temperature in non-isothermal case.

ghorrocks December 16, 2013 16:15

Running a free surface model is likely to be far more expensive than an inhomogeneous model. And you cannot run algebraic slip with a free surface model anyway - unless you are going to make the liquid phase a variable composition mixture and then you have made the model far more complex.

The algebraic slip model is not suitable when non-drag forces are significant. If you have buoyancy then you have non-drag forces. At least with the algebraic slip model implemented in CFX that is the case.

Antanas December 17, 2013 07:34

Quote:

Originally Posted by ghorrocks (Post 466712)
The algebraic slip model is not suitable when non-drag forces are significant. If you have buoyancy then you have non-drag forces. At least with the algebraic slip model implemented in CFX that is the case.

OK. I agree that if non-drag forces are significant ASM produces not best results. But are this forces always significant? It is said, for example, that lift force in most cases is insignificant compared to the drag force.

Anyway, even when we use full Euler model we not neccessarily account for non-drag forces. They may add problems, make model more computationally expensive, require fine meshes etc. Sometimes it is better to sacrifice accuracy a bit, but reduce computational time.

ghorrocks December 17, 2013 17:03

You have to go further than saying "not the best results" - if non-drag forces are important then ASM cannot model them. So the key is to decide whether non-drag forces are important. If you want bubbles to exit via the top surface this is driven by gravity, not drag forces. So if you want the bubbles to exit via the top surface you cannot use ASM.

oj.bulmer December 18, 2013 06:58

Quote:

But are this forces always significant?
These are the excerpts from my thesis on bubble column simulations:

RADIAL FORCES:
For uniform slip velocity between bubble and liquid phase, the drag force is dominant. But for non-uniform slip velocity with rotational continuous phase, which is a characteristic of heterogeneous flow regime, other radial forces such as lateral lift and Magnus forces have to be accounted for. The difference between velocities of bubble and liquid plays a major role in deciding the lift force. Generally, smaller bubbles have smaller velocities and they are spherical because surface tension is highly influential; hence the flow structure in the wake of smaller bubble is steady and symmetric. This structure interacts with the shear layers around the bubble to generate a lift in the direction towards wall. Incidentally, compared to smaller bubbles, the large bubbles have higher velocities and are influenced by inertial and gravity forces as a result of which their shape is highly distorted. Thus the structure of flow in the wake of bigger bubbles is unsteady and highly asymmetric and hence when they interact with the shear layers, the net force generated is towards the centre of the tank. Essentially, for the bubbles above and below a certain critical diameter, the sign of lift coefficient is opposite. As a result, bigger bubbles tend to move towards centre while smaller bubbles move towards wall. Nevertheless, it is significant only in the shear layers that have widths comparable to mean diameter of bubbles. Thus, for bubbly flow in vertical pipe, where the pipe diameter is comparable to that of large bubbles, lift is significant. But for an industrial bubble column with diameter of the order of one meter or more, lift is not as significant.

VIRTUAL MASS FORCE:
When the slip velocity is not constant, the bubbles accelerate through the continuous phase.
This makes the surrounding fluid to accelerate with them, creating a drag which is termed as
added or virtual mass effect. Although this force is prominent when dispersed phase density is less than that of continuous phase density, it is generally significant only in the presence of large accelerated transient flows like flow through narrow restriction.

TURBULENT DISPERSION FORCE:
Dispersion is a mechanism that arises due to difference in concentrations of bubble phase at
different regions of the bubble column. On a macro scale, the turbulent dispersion creates a flux of bubbles from regions of higher concentration to the regions of lower concentration in an attempt to homogenise the volume fraction through the turbulent movement. This motion is influenced by turbulent disturbances and the inter-phase drag between the two phases. Its definition is analogous to diffusion in that it depends on gradient of volume fractions of both the continuous and dispersed phase. Essentially, the liquid eddies smaller than bubbles tend to break them, but the eddies larger than bubbles entrap them and transport them. Yet, owing to slip, often bubbles escape the eddies as well and hence the eddy motion is not strictly followed by all the bubbles.

WALL LUBRICATION FORCE:
It has been observed that, in vertical pipe flow, bubble concentrations tend to peak near the wall but not immediately adjacent to the wall. To accommodate this behaviour, an effect called wall lubrication force is modelled, that pushes the bubbles away from wall. The effect of this force is limited in very thin layers near wall and very fine mesh is required to effectively model it. Besides, for the walls with lubrication force active, no-slip boundary
condition has to be specified for gas phase, which is computationally taxing. Given that this
force is prominent only for vertical pipes with considerably smaller diameter as compared to
bubble column, its effect can be safely ignored in the current set-up to reduce the computational expense.

***

There is a lot of literature you can find on this, if you dig a bit.

Good luck!

Antanas December 18, 2013 20:57

Quote:

Originally Posted by oj.bulmer (Post 466901)
These are the excerpts from my thesis on bubble column simulations:

I already saw such estimation, but thank you anyway!

In my case the domain dimensions are 0.33 [m] X 0.1 [m] X 0.82 [m]. And I have two dispersed phases which are produced in certain areas by electrochemical process and then moved upward by buoyancy. The movement of bubbles is major cause of primary phase movement.

The bubbles of first dispersed phase have mean diameter about 1 [mm] while that of the second dispersed phase is unknown. What is known is that this are relatively large bubbles that do not detach much from wall on which they arise and slip upward along it.

For now I want to take into account only small bubbles, because of unknown size and shape of large bubbles. And I don't want to use too fine mesh, because the problem is complex as it is (I have to model coupled processes of charge transfer, heat transfer, momentum transfer, mass transfer). So I think that in my case I can neglect most of non-drag forces, can't I?

ghorrocks December 18, 2013 22:14

Your reply raises more questions than it answers.

The large bubble phase clearly needs a full inhomogenous eularian model as you said that both buoyancy and drag forces are important. It is impossible to tell what is the appropriate model for your small bubble phase as you have not told us anything about what you expect it to do or its characteristics.

How can you model the small bubble phase if you do not know the bubble size?

The mesh size you require should be determined by a mesh sensitivity study once you have all the physics working. Of course you don't want it to be too fine - but if it is required for accuracy then you will need it. But first things first - get the physics working first before you worry about the mesh.

You also imply the large bubbles do not detach from the wall. You will need to include this on the large bubble phase if it is important.

Antanas December 18, 2013 23:13

Quote:

Originally Posted by ghorrocks (Post 466997)
Your reply raises more questions than it answers.

The large bubble phase clearly needs a full inhomogenous eularian model as you said that both buoyancy and drag forces are important. It is impossible to tell what is the appropriate model for your small bubble phase as you have not told us anything about what you expect it to do or its characteristics.

How can you model the small bubble phase if you do not know the bubble size?

The mesh size you require should be determined by a mesh sensitivity study once you have all the physics working. Of course you don't want it to be too fine - but if it is required for accuracy then you will need it. But first things first - get the physics working first before you worry about the mesh.

You also imply the large bubbles do not detach from the wall. You will need to include this on the large bubble phase if it is important.

Ah, yes! I did not mention that primary phase is liquid and secondary dispersed phases are relatively light gases.

The small bubbles is spherical with mean diameter equal to 1 [mm], their properties is similar to that of hydrogen gas. So size of small bubbles is known.

Because of lack of information about size of large bubble I don't want to model them at the moment. As I mentioned this bubbles slip along the wall and don't spread to the bulk of the domain. So maybe there will be no need to model them as bubbles but account for their motion through moving wall for example. But the problem then is the velocity of the wall which is unknown.

At present I don't model all the processes as coupled, on the contrary I decouple them and model in sequence. Right now I try to deal with fluids motion and the problem is that calculation is too slow. (Even though in reality the process must stabilize somehow, as I understand it is better to model this as transient, correct?) So the main task is to find balance between accuracy and calculation time.

ghorrocks December 18, 2013 23:30

Quote:

So maybe there will be no need to model them as bubbles but account for their motion through moving wall for example. But the problem then is the velocity of the wall which is unknown.
Comments like that suggest to me that you are guessing. If you want any hope of an accurate simulation you need to work out what controls their motion and what influence they have on the bulk flow. You could either generate a disperse bubble phase next to the wall and let them rise and pull the continuous phase by themselves (then what is the physics which keeps them near the wall?) Or you could replace the bubbles with a shear stress on the external wall (then the shear stress will be a function of the number of bubbles, their size, their velocity, wall proximity, entrained continuous phase fluid - do you know these things adequately to define a shear stress?)

Modelling this decoupled is always a good place to start and often you find it tells you enough and the fully coupled model is not required.

If you are interested in the steady flow then you should try to model it as steady.

Antanas December 19, 2013 01:53

Quote:

Originally Posted by ghorrocks (Post 467002)
Comments like that suggest to me that you are guessing.

Yes you're right, I'm guessing. Because there is lack of data. The device that I'm trying to model is industrial device and nobody will experiment with it. It is not good situation when guys want you to model something but can't give you enough info about it, but it's reality.

Quote:

Originally Posted by ghorrocks (Post 467002)
If you want any hope of an accurate simulation you need to work out what controls their motion and what influence they have on the bulk flow. You could either generate a disperse bubble phase next to the wall and let them rise and pull the continuous phase by themselves (then what is the physics which keeps them near the wall?)

I think this is better choice because the answer to this

Quote:

Originally Posted by ghorrocks (Post 467002)
then the shear stress will be a function of the number of bubbles, their size, their velocity, wall proximity, entrained continuous phase fluid - do you know these things adequately to define a shear stress

is "NO, I don't".

About the physics which keeps bubbles near the wall I only know that they are formed on imperfections on the wall surface, inside pores and so on.
When pore is filled with gas, the gas spreads on the flat part all around the pore. Small bubble then coalesce and grow. When the size of the bubbles becomes large enough they begin to slip upward along the wall. This bubbles forms something like gaseous film. At the vicinity of the wall, the gaseous film interacts very strongly with the dense fluid and lifts it at the same velocity.

Raijin Thunderkeg December 19, 2013 01:57

When the gas flowrate is large, the top free surface will fluctuate remarkably. Is it appropriate to use a degassing BC? When the degassing BC is used, a warning message appears during the solution like " A wall has been placed at portion(s) of an OUTLET ". How to solve this problem?

Antanas December 19, 2013 02:52

Quote:

Originally Posted by Raijin Thunderkeg (Post 467014)
When the gas flowrate is large, the top free surface will fluctuate remarkably. Is it appropriate to use a degassing BC? When the degassing BC is used, a warning message appears during the solution like " A wall has been placed at portion(s) of an OUTLET ". How to solve this problem?

In CFX Help it is said that "When Degassing Boundary Condition is selected as the Flow Specification of an outlet, the continuous phase and any dispersed solid phases that may be present see this boundary as a free-slip wall and do not leave the domain. Dispersed fluid phases and Lagrange particles see this boundary as an outlet. However, the outlet pressure is not specified. Instead, a pressure distribution is computed on this fixed-position boundary, and can be interpreted as representing the weight of the surface height variations in the real flow."

So I think it is appropriate condition. The message "A wall has been placed at portion(s) of an OUTLET..." should usually disappear after a couple of iterations.

Raijin Thunderkeg December 19, 2013 03:48

Thanks for ur reply.

I have some other questions about ASM.
1)How to set outlet boundary condition in ASM? A wall with free slip boundary for the continuous phase and deposition for dispersed phase?
2)Can ASM deal with the compressibility of dispersed phase? I get an initial field with constant property gas using ASM and the absolute pressure is correct, but when I try it with an ideal gas, the cfx5solve always exits with an error. What is the reason?

Antanas December 19, 2013 05:08

Quote:

Originally Posted by Raijin Thunderkeg (Post 467024)
Thanks for ur reply.

I have some other questions about ASM.
1)How to set outlet boundary condition in ASM? A wall with free slip boundary for the continuous phase and deposition for dispersed phase?
2)Can ASM deal with the compressibility of dispersed phase? I get an initial field with constant property gas using ASM and the absolute pressure is correct, but when I try it with an ideal gas, the cfx5solve always exits with an error. What is the reason?

1)I have the same question. Actually that is why I started this topic. Wall deposition condition removes dispersed phase and adds liquid phase instead. So I'm not sure that this is what we need. We need something like degassing BC which acts like free slip wall for liquid phase and sink for gaseous. So we may impose free slip wall with sink term for gas phase continuity equation which will remove all gas from boundary during one time step. Also we may need to include additional force to momentum equation due to mass sink and probably do something with pressure.

Also I think that we may use opening BC with fluid volume fraction = 1 and gas volume fraction = 0. The problem is that if we model non-isothermal regime we also must specify opening temperature. And I'm not sure what to do in this case. I think that liquid should return into the domain with its exit temperature but don't know how to specify this.

2) I have not seen any limitations of ASM that relate to compressibility. What kind of error did you get?

Raijin Thunderkeg December 19, 2013 06:31

The solver always crashes in the first 5 steps. The message is "The ansys cfx solver exited with return code 1". I know this must result from the variation of the property of the gas from constant to ideal gas. But I don't know how to adjust this. Do you have any ideas ?

Antanas December 19, 2013 06:54

Quote:

Originally Posted by Raijin Thunderkeg (Post 467041)
The solver always crashes in the first 5 steps. The message is "The ansys cfx solver exited with return code 1". I know this must result from the variation of the property of the gas from constant to ideal gas. But I don't know how to adjust this. Do you have any ideas ?

Maybe you should use smaller timestep for several staring iterations.

ghorrocks December 19, 2013 16:22

I see Raijin is asking the same question about degassing boundaries for ASM. I suspect neither Raijin or Antanas understand what I am saying - degassing boundaries do not make physical sense for ASM models, that is why you cannot apply it.

ASM assumes the disperse phase only has a relative slip to the continuous phase. At a degassing boundary the continuous phase flow must be tangential to the boundary (as it is a wall to the continuous phase). If the continuous phase has no component normal to the boundary then the disperse phase cannot have any component normal to the boundary either. This is because the disperse phase is just following the continuous phase, with a slip. If the disperse phase has no component normal to the boundary then no disperse phase fluid can pass through the boundary.

This is why you cannot apply degassing boundaries to ASM models, and also why all the work arounds you are discussing will not work either. If the disperse phase does pass through the boundary and degas then ASM is not the appropriate model for it as you have significant non-drag forces (for instance buoyancy).

Antanas December 20, 2013 06:04

Quote:

Originally Posted by ghorrocks (Post 467102)
I see Raijin is asking the same question about degassing boundaries for ASM. I suspect neither Raijin or Antanas understand what I am saying - degassing boundaries do not make physical sense for ASM models, that is why you cannot apply it.

ASM assumes the disperse phase only has a relative slip to the continuous phase. At a degassing boundary the continuous phase flow must be tangential to the boundary (as it is a wall to the continuous phase). If the continuous phase has no component normal to the boundary then the disperse phase cannot have any component normal to the boundary either. This is because the disperse phase is just following the continuous phase, with a slip. If the disperse phase has no component normal to the boundary then no disperse phase fluid can pass through the boundary.

This is why you cannot apply degassing boundaries to ASM models, and also why all the work arounds you are discussing will not work either. If the disperse phase does pass through the boundary and degas then ASM is not the appropriate model for it as you have significant non-drag forces (for instance buoyancy).

I understand you Glenn. I asked about an alternative to this BC when modelling bubble column using ASM. Is it impossible to model such device using this model?

ghorrocks December 20, 2013 06:08

The only thing I can think of is to put a source term in a volume region at the top of the domain, just below where you want to put a degassing boundary. You can use a source term to push the disperse phase volume fraction to zero. This source region needs to be big enough that the continuous phase can enter and leave it, as that will drag the disperse phase into the source region with it.

Antanas December 20, 2013 06:54

Quote:

Originally Posted by ghorrocks (Post 467166)
The only thing I can think of is to put a source term in a volume region at the top of the domain, just below where you want to put a degassing boundary. You can use a source term to push the disperse phase volume fraction to zero. This source region needs to be big enough that the continuous phase can enter and leave it, as that will drag the disperse phase into the source region with it.

Do you mean free slip wall with mass source term? How fast should this source eliminate dispersed phase? What about relevant momentum source? Do we need it? What do you think about opening BC in such case?

ghorrocks December 21, 2013 04:22

Yes, the top boundary can be a free slip boundary, but the source term to gobble up the disperse phase volume fraction will need to be a volume just below the boundary to ensure the disperse phase actually enters the source term region.

As it is a source term you can define it to gobble up volume fraction at any rate you like. Just make sure you keep bounded ie don't push the volume fraction below 0 or above 1.

No need for a momentum source term unless something is affecting the momentum. Based on what yo uhave described you do not appear to have this, so no momentum source term is required.

You certainly can use an opening boundary on the top face and avoid all these hassles, but of course that means the continuous phase will flow in and out of it. But you can fix the pressure at the location which may mean you have better location of the free surface anyway. Whether this is a good idea will depend on exactly what you are modelling.

Antanas December 21, 2013 07:15

I found the tutorial (link) where a bubble column is modelled using mixture model in Fluent. In this tutorial pressure outlet BC is used, I believe that this is equivalent to opening BC in CFX. I successfully reproduced this tutorial in Fluent, but have troubles in CFX. For some reason gas tends to rise along the wall that is close to inlet.

I noticed that operational density in this tutorial is set to the density of the lighter phase. It seems that this has similar purpose as ref. density in CFX, but in CFX help it is recommended to set this to the density of the continuous phase if there is not much dispersed phase.

I can't get good convergence even with small time step. I uploaded my cfx file here. Maybe you could take a look at this and see what I've missed.

Antanas December 21, 2013 13:28

Quote:

Originally Posted by ghorrocks (Post 467274)
You certainly can use an opening boundary on the top face and avoid all these hassles, but of course that means the continuous phase will flow in and out of it. But you can fix the pressure at the location which may mean you have better location of the free surface anyway. Whether this is a good idea will depend on exactly what you are modelling.

What BC is more correct from the physical point of view? Degassing or opening? I mean in common, not concerning ASM. What do you think?

ghorrocks December 22, 2013 01:29

The degassing boundary acts as a wall to the continuous phase, but an outlet to the disperse phase. This means the continuous phase is constrained like a wall, which means it can generate pressure. It is usually used to model a free surface which has a known location and does not move. If there are flows strong enough that the free surface deviates from the modelled location significantly then this is not a good choice. The big advantage of degassing boundaries is that it is very numerically stable and easy to converge.

An opening will allow flow in and out and set the pressure at the surface. Note that you can set the static pressure in both directions or the total pressure in the forward direction - you have a few options. This has the advantage of making the static head of the free surface in the domain closer to the ideal flat free surface (again assuming it does not move). But this approach is less numerically stable as you may well have flow in different directions at different locations on the same boundary (ie forward flow and backward flow) and this is always numerically tricky and will be hard to converge.

Which is more correct? As always, that depends on what you are modelling and what is important. There is no general answer to that. And don't forget numerical stability is an important issue as well - if it is more physically correct but never converges it is not much good to you.

Antanas December 23, 2013 20:28

Quote:

Originally Posted by ghorrocks (Post 467274)
As it is a source term you can define it to gobble up volume fraction at any rate you like. Just make sure you keep bounded ie don't push the volume fraction below 0 or above 1.

But if the rate will not be enough then volume fraction will grow which we don't want. I think that we must kill all this gas during one time step.

Quote:

Originally Posted by ghorrocks (Post 467274)
No need for a momentum source term unless something is affecting the momentum. Based on what yo uhave described you do not appear to have this, so no momentum source term is required.

What about something like recoil?

Quote:

Originally Posted by ghorrocks (Post 467307)
The degassing boundary acts as a wall to the continuous phase, but an outlet to the disperse phase. This means the continuous phase is constrained like a wall, which means it can generate pressure. It is usually used to model a free surface which has a known location and does not move. If there are flows strong enough that the free surface deviates from the modelled location significantly then this is not a good choice. The big advantage of degassing boundaries is that it is very numerically stable and easy to converge.

An opening will allow flow in and out and set the pressure at the surface. Note that you can set the static pressure in both directions or the total pressure in the forward direction - you have a few options. This has the advantage of making the static head of the free surface in the domain closer to the ideal flat free surface (again assuming it does not move). But this approach is less numerically stable as you may well have flow in different directions at different locations on the same boundary (ie forward flow and backward flow) and this is always numerically tricky and will be hard to converge.

Which is more correct? As always, that depends on what you are modelling and what is important. There is no general answer to that. And don't forget numerical stability is an important issue as well - if it is more physically correct but never converges it is not much good to you.

OK Glenn, I see it. Thank you.

ghorrocks December 23, 2013 21:27

Quote:

I think that we must kill all this gas during one time step.
Then just use a source term to fix the volume fraction to 0. Then whatever VF enters the region will just get zapped to 0.

Quote:

What about something like recoil?
What is recoil? Recoiling against what? How is that relevant?

usingh391 April 15, 2015 04:08

What is recoil force mentioned in degassing UDF in fluent?
 
Fluent UDF manual has given following description. Then in UDF code is defined for these forces. Can anybody guide me what is the significance of recoil force for degassing BC?

"The following UDFs are used to define the bottom surface as a standard velocity inlet for the gas
(primary) phase. The inlet VOF of the droplet phase is 0 and a negative source term for secondary phase
mass conservation is set for the layer of cells next to the outlet. The source removes all secondary phase
mass in the cell during one time step. The recoil force due to the mass source is also calculated".

ghorrocks April 15, 2015 05:59

Try the fluent forum.


All times are GMT -4. The time now is 19:33.