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/)
-   -   Adding temperature field to Channel Flow simulations (https://www.cfd-online.com/Forums/openfoam-solving/233125-adding-temperature-field-channel-flow-simulations.html)

Jan995 January 14, 2021 05:30

Adding temperature field to Channel Flow simulations
 
Hi,

I am trying to add temperature field to channel flow simulations. So, firstly I have started with channel395 tutorial case. This test case is using cyclic boundary condition, which is not fine for temperature field, because I want to have at the inlet constant temperature. I found this solution:
Quote:

inlet
{
type inletOutlet;
patchType cyclic;
inletValue uniform 303.15;
value uniform 303.15;
}
but, this does not work for me, as I get the following error:
Quote:

inconsistent patch and patchField types for
patch type cyclic and patchField type inletOutlet
.
I tried using mapping boundary condition, but here I get another problem, because I cannot get turbulent flow when using mapped boundary condition. Even if I start the simulation with mapped boundary condition, the turbulence dies down over time and I cannot see, where the problem is. I tried using mapped boundary condition before with different cases and it worked fine.
Does anyone have any solutions to these two problems? Thanks!

simrego January 14, 2021 08:56

Hi!


So you have a cyclic flow field with a temperature field which is not cyclic? Can I ask you what kind of physical phenomena is this?

Jan995 January 14, 2021 13:13

Quote:

Originally Posted by simrego (Post 793316)
Hi!


So you have a cyclic flow field with a temperature field which is not cyclic? Can I ask you what kind of physical phenomena is this?

Thanks for your reply!

Long story short, we are investigating temperature fluctuations at the heated wall experimentally, but also doing some simulations. Channel flow simulations are done as a sort of validation case. For calculating averages it is quite unpleasant to have cyclic boundary condition for temperature.

But, I found the solution. The problem with my mapped inlet was, that the mapping was done for not long enough distance, so the turbulence couldn't develop. If anyone occurs the same problem - make the mapping length longer!


All times are GMT -4. The time now is 23:31.