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/)
-   -   Passive Scalar OpenFoam (turbulent, steady state velocity field) (https://www.cfd-online.com/Forums/openfoam-solving/224373-passive-scalar-openfoam-turbulent-steady-state-velocity-field.html)

f.funk February 17, 2020 07:08

Passive Scalar OpenFoam (turbulent, steady state velocity field)
 
3 Attachment(s)
Hello, everybody

I want to do a transient scalar Simulation on the basis of a steady state velocity field of T-Pipe. Since there is no scalarTransportFoam for turbulence i changed the the solver and added to the Diffusity DT the turbulent Diffusity.

In C File:

https://www.cfd-online.com/Forums/at...1&d=1581940149

And in the createFields.H:

https://www.cfd-online.com/Forums/at...1&d=1581940042

When i try to run it OpenFoam there is an error which says that it need the laplacian scheme for DT. But since i am not solving laplacian DT in the general equation (C. file) only the DTt (=nut/Sct + DT) i am wondering why ? :confused: Does someone knows about it and could help me ?

Thanks in regards

LuckyTran February 17, 2020 11:08

It looks like you have specified the scheme for DT regardless, so why are you getting the error? It doesn't make sense. Maybe post your error.

f.funk February 18, 2020 08:03

Thanks LuckyTran for the quick reply. I found the mistake: every time you change the solver you have to implement it again with (wclean, wmake ...). If you dont do that OpenFoam will use the last Scripts. In my case where DT was still in the general equation.


All times are GMT -4. The time now is 03:27.