CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Can anyone share the udf of drag force?Thanks (https://www.cfd-online.com/Forums/fluent/227307-can-anyone-share-udf-drag-force-thanks.html)

hitzhwan May 23, 2020 20:23

Can anyone share the udf of drag force?Thanks
 
1 Attachment(s)
Can anyone share the udf of drag force?Thanks

mCiFlDk May 24, 2020 07:34

Quote:

Originally Posted by hitzhwan (Post 771694)
Can anyone share the udf of drag force?Thanks

Hi hitzhwan,

You mean, share the UDF equivalent to this equation?

Regards

vinerm May 26, 2020 09:41

Drag Force
 
What's the last term, \nabla\gamma_1? If that term is neglected, then the drag equation is standard. So, all you need to do is that determine that term and put it as drag modifier.

hitzhwan May 27, 2020 10:01

Yes, could you help me ?
 
Quote:

Originally Posted by mCiFlDk (Post 771715)
Hi hitzhwan,

You mean, share the UDF equivalent to this equation?

Regards

Yes, could you help me ?

hitzhwan May 27, 2020 10:12

It represents the gradient of liquid volume fraction.
 
Quote:

Originally Posted by vinerm (Post 771976)
What's the last term, \nabla\gamma_1? If that term is neglected, then the drag equation is standard. So, all you need to do is that determine that term and put it as drag modifier.

It represents the gradient of liquid volume fraction.

vinerm May 27, 2020 11:46

Udf
 
Then you can just refer the example given in Fluent's UDF manual.

https://www.afs.enea.it/project/nept...udf/node61.htm

For calculating gradient, you have to use C_VOF_RG. You can use C_VOF_G but that could lead to very high drag coefficient values, hence, not recommended.

hitzhwan May 27, 2020 12:29

I use the VOF model, not the mixture or Eulerian Model, can I use an udf?
 
Quote:

Originally Posted by vinerm (Post 772203)
Then you can just refer the example given in Fluent's UDF manual.

https://www.afs.enea.it/project/nept...udf/node61.htm

For calculating gradient, you have to use C_VOF_RG. You can use C_VOF_G but that could lead to very high drag coefficient values, hence, not recommended.


I use the VOF model, not the mixture or Eulerian Model, can I use an udf?

vinerm May 27, 2020 12:37

Vof
 
In VOF, interface is resolved, hence, drag is not modeled but simulated. You cannot hook a drag model UDF for VOF since it is not required.

hitzhwan May 27, 2020 14:01

But I want to input a shear stress on the inter-surface defined by myself,such as in
 
Quote:

Originally Posted by vinerm (Post 772211)
In VOF, interface is resolved, hence, drag is not modeled but simulated. You cannot hook a drag model UDF for VOF since it is not required.

But I want to input a shear stress on the inter-surface defined by myself,such as in the figure before

vinerm May 27, 2020 14:04

Shear Stress
 
And where is that shear stress coming from?

You can do that by using source terms in the cells containing the interface.

hitzhwan May 27, 2020 15:51

It comes from the counter-gas flow, do you have the udf source terms?
 
Quote:

Originally Posted by vinerm (Post 772220)
And where is that shear stress coming from?

You can do that by using source terms in the cells containing the interface.

It comes from the counter-gas flow, do you have the udf source terms?

vinerm May 27, 2020 15:52

Counter Gas Flow
 
Shear stress due to the gas flow at the free-surface is included by default. You don't need to do that.

hitzhwan May 27, 2020 15:56

Are you sure? I see many articles use additional udf ? Which chapter describe in flue
 
Quote:

Originally Posted by vinerm (Post 772245)
Shear stress due to the gas flow at the free-surface is included by default. You don't need to do that.

Are you sure? I see many articles use additional udf ? Which chapter describe in fluent help document?

vinerm May 27, 2020 16:07

Vof
 
The difference between Mixture and VOF is that in VOF the interface is resolved. Therefore, user does not need to use a drag model nor is there a requirement to specify diameter for secondary phases. Drag is predicted based on the velocity gradient at the interface of immiscible fluids.

To test it, set up a simple case with two inlets and one outlet. Inlets can be separated by a thin line. Use lower inlet for liquid and upper one for gas and let the gas velocity be higher than liquid. Then observe the interface evolution.

hitzhwan May 27, 2020 16:14

What is drag force equation default?But many drag force are different like in the ima
 
1 Attachment(s)
Quote:

Originally Posted by vinerm (Post 772248)
The difference between Mixture and VOF is that in VOF the interface is resolved. Therefore, user does not need to use a drag model nor is there a requirement to specify diameter for secondary phases. Drag is predicted based on the velocity gradient at the interface of immiscible fluids.

To test it, set up a simple case with two inlets and one outlet. Inlets can be separated by a thin line. Use lower inlet for liquid and upper one for gas and let the gas velocity be higher than liquid. Then observe the interface evolution.

What is drag force equation default?But many drag force are different like in the image, how can define it differently?

vinerm May 27, 2020 16:18

Drag Force
 
What you are looking at are drag models. Those are required when the free-surface is not resolved, e.g., in Mixture model or DPM. In VOF, those are not required because the free-surface is a result of the simulation and all the forces at the free-surface can be calculated from the first principles. No modeling is required. So, there is no drag model equation.

hitzhwan May 27, 2020 16:26

Do you have any theory?
 
Quote:

Originally Posted by vinerm (Post 772251)
What you are looking at are drag models. Those are required when the free-surface is not resolved, e.g., in Mixture model or DPM. In VOF, those are not required because the free-surface is a result of the simulation and all the forces at the free-surface can be calculated from the first principles. No modeling is required. So, there is no drag model equation.

Do you have any theory?

vinerm May 27, 2020 16:38

Theory
 
There is no theory here, only statements of the model. You can read more about VOF online. In most of the codes, no-slip is maintained between immiscible phases at the interface of the fluids. So, if one fluid moves towards one side, the other fluid moves as well, provided the second fluid does not have enough inertia to stop that motion. In a way, the fluids are glued to each other at the interface.

hitzhwan May 27, 2020 17:13

As you can see, A single momentum equation is solved throughout the domain, and the r
 
1 Attachment(s)
Quote:

Originally Posted by hitzhwan (Post 772254)
Do you have any theory?

As you can see, A single momentum equation is solved throughout the domain, and the resulting velocity field is shared among the phases(from the help document). So there exists no velocity difference between the liquid-gas interface, so there is no shear stress , so I think it can not calculate it.

vinerm May 28, 2020 01:31

No-Slip
 
Yes, that's correct. And that is what I meant when I mentioned that the fluids are glued together at the interface. However, that does not mean there is no shear stress or infinite shear stress as many think. It only mean no-slip condition, similar to no-slip as solid boundary. However, does a no-slip at solid boundary imply no drag? Drag or shear stress has got nothing to do with no-slip. All it requires is velocity gradient. And that exist almost everywhere in the domain in case of turbulent motion. And same is true about the interface.


All times are GMT -4. The time now is 10:04.