CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

scalarTransportFoam inlet diffusion

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By hunger
  • 2 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 08:50
Default scalarTransportFoam inlet diffusion
  #1
New Member
 
Join Date: Oct 2015
Location: Austria
Posts: 9
Rep Power: 11
hunger is on a distinguished road
Hi everybody!

I want to simulate humidification of dry air with water vapour. The geometry can more or less be seen as some kind of T-junction, but the water inlet is very small compared to the air inlet.

First, I run a steady state simulation with simpleFoam to calculate the flow field. Here I make sure to get a converged solution and mass is conserved.
When I run scalarTransportFoam (also in steady state), mass conservation of the passive scalar is not given anymore.

I have tried different OpenFOAM versions (of4x, of240), the results are the same.
I found out that the diffusion coefficient has an influence on the result, i.e. the bigger "DT", the bigger is the difference between inlet and outlet massflow of the passive scalar. The result also gets better when I increase the inlet massflow with which the passive scalar is transported into the domain.
Therefore I thought that the difference might be due to diffusion of the passive scalar at the inlet (I am using a fixedValue BC at the inlet and a inletOutlet BC at the outlet). I know that in FLUENT one can switch off inlet diffusion at the inlet when calculating multispecies flow.

Has anybody made the same experience using scalarTransportFoam and can give me any hint? E.g. are there more suitable BC to use? Or does scalarTransportFoam in general run into problems, if the massflow of the passive scalar is very small compared to the main fluid flow?

Best regards
Harald
Tobi likes this.
hunger is offline   Reply With Quote

Old   April 13, 2021, 04:05
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey all,

this thread is already very old but there might be some people who are still interested in the answer of the question.


Generally, the scalarTransportFoam does not have any problems with that type of calculation and the phenomenon one sees here is purely a mathematical problem.

The problem our questioner encountered is as follows:
  • We transport the scalar based on the fluxes and based on the diffusion
  • Now, lets imagine a more realistic scenario based on the energy equation.
    • Imagine we have a small room in which one wall does have a hot surface included
    • We set the temperature to a fixed value here
    • The driving force for the energy exchange is the diffusion as the velocity is almost zero (viscouse sub-layer).
    • However, we can increase the energy exchange by putting a fan infront of the hot area.
    • What changes is that we take the energy away by convection and in addition we increase the diffusion coefficient namely the thermal diffusivity based on the turbulence which also increases the close-to-the-walls diffusivity
  • However, this might be wrong in particular cases. E.g., imagine the temperature at the surface... it is constant and will not reduce even though we would take billions of joules away - its a matter of the boundary condition

Regarding the question asked here, the main problem is as follows:
  • Small convection that transport the scalar into the domain
  • Large influence of, e.g., cross flows that influence the diffusion based on turbulence
Hence, if the flux through an inlet is very very small, but for any reason there is a cross flow that introduce high turbulence close to that patch, the diffusion coefficient at the patch (or close to it) increases based on the turbulence models. The result is that we have an increased diffusion transport which is mathematically correct but probably not physical.

If we would imagine a tracer gas that is injected into a pipe, the inlet should not be added directly at the pipe-wall. We should include a small intake pipe section for the tracer gas in order to avoid the increase of diffusion at the inlet patch. Just imagine what happens here? The turbulence will take out the tracer gas maybe a few millimeters or centimeters from the added small intake pipe but will not influence the inlet patch. Hence, no artificial diffusion will increase any transport here.

I hope that my explanation is understandable.
If you are involved in that topic, its clear, if not, it is sometimes hard to understand.


Summary
  • Inlet patches that do have small fluxes (transport through the flow) of any quantity but might be influenced by the internal flow based on turbulence should be exteneded in order to avoid artificial diffusion (which is physical correct but not in terms of the underlying mathematical description - boundary conditions)


Hence, for such purposes, Fluent offers the inlet-diffusion to be turned on or of. However, this does not only hold for species transport (as it is written in the fluent user guide).

Example: HVAC simulation with textile pipes which have 5 mm/s outflow. The surrounding air flow has 10 m/s - so high turbulent. However, the surface of the textile pipes are very large and the turbulence of the surrounding are is high too. If someone sets the surface temperature of the textile pipes to a fixed value (which is reasonable), you have one problem: The additional turbulence of the surrounding air increases the diffusion coefficient within the energy equation which increases the heat exchange at the large textile surface. Everything is physically and mathematically correct regarding the boundary conditions but it is not correct in terms of reality as the surface tempreature will change respectively. Hence a fixed value of the temperature in combination with the diffusion and a small flux will probably lead to wrong results.
roucho and clapointe like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply


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
ScalarTransportFoam and turbulent diffusion coefficient rybakov2 OpenFOAM Running, Solving & CFD 2 June 24, 2014 15:21
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Species mass flow inlet lorenz FLUENT 3 March 15, 2012 08:26
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 19:42
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 08:37


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