CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Advection-diffusion of passive scalar with fixedValue outlet (https://www.cfd-online.com/Forums/openfoam-solving/246265-advection-diffusion-passive-scalar-fixedvalue-outlet.html)

frubicle93 November 22, 2022 12:14

Advection-diffusion of passive scalar with fixedValue outlet
 
Hi all,

I am trying to solve an advection-diffusion problem in OpenFOAM for a passive scalar (say temperature) where I have a Dirichlet boundary condition on the flow outlet (velocity field that advects the flow is correctly computed using SIMPLE).

Usually, we would place a fixedValue temperature at the flow inlet and a zeroGradient at the outlet, but I am considering a problem where I have a Robin/mixed condition at the inlet and fixedValue at the outlet.

The solver I am using for temperature is from scalarTransportFoam.C.

Depending on the divscheme (linear or upwind), I either get a constant solution (value dictated by Robin condition with gradient term zeroed) with oscillations at the outlet to get to the fixedValue, or I get a solution that is constant near the inlet and outlet with a smooth transition between them at some location in the domain.

I am starting to think that this might be a bit ill-posed or maybe difficult for OpenFOAM to solve? Has anyone managed to get this type of problem working well?


All times are GMT -4. The time now is 15:43.