CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Advective boundary condition for settling diffusiv scalar field

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2022, 07:16
Default Advective boundary condition for settling diffusiv scalar field
New Member
Roie Ezraty
Join Date: Oct 2020
Posts: 4
Rep Power: 5
Roie_E is on a distinguished road
Dear FOAMers,

I have a problem with a boundary condition for a diffusive scalar field I added to my BouyantBoussinesquPimpleFOAM solver.
I have a 2D tank filled with the scalar field C which settling at a constant velocity (using a modified flux I called "phiC" which has a uniform downward component of velocity).

I want this field to simply pass through the bottom of the tank without accumulating. I figured this should be done using Advective boundary condition, but looks like just above the bottom the field still accumulates.

I attach here the profile of the C field and a "plot over line" in the vertical direction of it, so the accumulation at the bottom could be visible.
In another image I attach a zoom-in of the bottom to emphasize the effect:

The 0/C file looks like this:
dimensions [0 0 0 0 0 0 0]; // salt crystals is dimless

internalField uniform 1;


type zeroGradient;

type zeroGradient;
type advective;
phi phiC;
type advective;
phi phiC;
type zeroGradient;
type empty;


Does anyone know why I get this accumulation?


Last edited by Roie_E; January 28, 2022 at 07:32. Reason: correcting the images
Roie_E is offline   Reply With Quote


advective bc, bounadry condition, scalar field, setting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 05:50
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13

All times are GMT -4. The time now is 00:51.