CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Streamwise periodic heat trasnfer (https://www.cfd-online.com/Forums/openfoam/88165-streamwise-periodic-heat-trasnfer.html)

AlmostSurelyRob May 10, 2011 08:11

Streamwise periodic heat trasnfer
 
Dear All,

I am trying to implement heat transfer in interFoam but coupled with periodic boundary conditions in streamwise direction.

In this case the temperature field is not periodic in any obvious way. But if I focus on a 2D channel case and impose a constant wall temperature and a bulk inlet temperature a renormalised temperature field

\theta = (T - Tw)/(Tbin - Tw)

is self-similar in the sense that if I rescale the profile at the inlet it should coincide with the profile at the outlet.

My question is: how can I do it with interFoam on a cyclic patch? Can I apply anything else than a cyclic boundary condition on this patch? The rescaling would be fairly easy if I had a direct access to values. Is there any easy way of doing it?

Something like writing your new BC applicable on cyclic patch would be great.

I would be obliged for any comments or hints . So far I've been using this thread as a guidance:
http://www.cfd-online.com/Forums/ope...terfoam-3.html

stevenvanharen May 10, 2011 10:34

I cannot help you with this problem.

But why do you want to do it like this? Normally (in literature) temperature is made periodic using a source term (I performed 3D periodic channel and pipe flows using this source). References are Kawamura, Tiselj, Bergant (channel) and Saad (pipe).

Is there a specific reason why to avoid their approach? If you want I can send you one of the references.

AlmostSurelyRob May 10, 2011 11:50

Thank you for your comment!

I have to confess that ignorance occurs to me as the only reason. To which papers do you refer exactly?

I downloaded the papers by Kawamura 1998 and Tiselj 2001. The latter one entitled "Effect of wall boundary condition on scalar transfer in a fully developed turbulent flume" talks about constant wall temperature so I am looking at this one at the moment.

I can't see exactly why \theta is to be periodic after inclusion of the source term u^+/2u^+_b in eq (4). In constant heat flux scenario it's correct but for constant wall temperature... shouldn't it be different?

AlmostSurelyRob May 11, 2011 08:09

I thought I'll post a clarification after my yesterday evening reading.

@
stevenvanharen: You were right about the source term. This seems to be an expedient way of doing it. But I still can't see how these references can be applied to isothermal wall condition.

But I've found this:

S. V. Patankar, C. H. Liu, and E. M. Sparrow.
Fully Developed Flow and Heat Transfer in Ducts Having Streamwise-Periodic Variations of Cross-Sectional Area.
ASME J. of Heat Transfer, 99:180-186, 1977.

which was actually my initial reading on streamwise periodic heat flow. The problem of 'self-similar' profiles is well-addressed there. The difference is that the source term for normalised temperature has to be obtained by solving another equation (no 38 in the publication).


AlmostSurelyRob May 18, 2011 12:20

1 Attachment(s)
I had a major breakthrough in my problem and now I can gladly report that it actually works. Not everything is sorted out yet, but it seems to be progressing. Steven was right about the source term and my initial post and idea were probably misleading. It's much easier to incorporate a source term in the equations.

My only difficulty was that I didn't know the form of the source term and I couldn't agree with the form given in papers on constant heat flux. Fortunately Patankar paper nails it down. It's really just a bit of calculus

Instaed of solving for tempearture you solve for \theta which is

\theta = (T - Tw)/(Tbx - Tw)

where Tbx is the bulk temperature in the cross section. Moreover you need to define another field lambda which is

\lambda = dTbx/dx/(Tbx - Tw)

Now you can solve the equations for \theta and \lambda and these quantites happen to be periodic.

u d\theta/dx v d\theta/dy = \kappa (d2\theta/dx2 + d2theta/dy2 ) + \sigma

Source term
\sigma = [2 \kappa d \theta/dx - u \theta] \lambda + \kappa \theta [d lambda/dx + lambda^2]

It might look a bit long-winded but it actually makes sense. The solution requires you to iteratively solve for \theta, correct so that bulk \theta is one in each cross-section and than correct \lambda.

Currently I am working on the last bit i.e. correcting lambda. But I attach some results with this post. This is interFoam with heat transfer and periodic boundaries, laminar flow.

cfdonline2mohsen December 1, 2011 12:50

Thanks to both Robert Sawko & Steven van Haren for this useful topic.

There is also the Steven van Haren M.Sc. thesis that might be helpful:
"Testing DNS capability of OpenFOAM and STAR-CCM+"

That you can download in DELFT UNIVERSITY OF TECHNOLOGY:

http://www.lr.tudelft.nl/fileadmin/F..._van_Haren.pdf

gabri May 3, 2012 07:00

Dear Robert,

I am really interested in this thread since it has been the subject of my M. Sc. Thesis. At present, I would like to implement in OpenFOAM the model proposed by Patankar for the constant wall temperature case (maybe in the modified form of Stalio and Piller, where only the average lambda over one periodic module is computed by using the integral form of the energy conservation equation). Did you succeed in correcting lambda? Can you give me any advice to perform this task avoiding numerical instability?

Thanks in advance,

Gabriele

lion1990 July 18, 2016 16:27

Quote:

Originally Posted by AlmostSurelyRob (Post 308168)
I had a major breakthrough in my problem and now I can gladly report that it actually works. Not everything is sorted out yet, but it seems to be progressing. Steven was right about the source term and my initial post and idea were probably misleading. It's much easier to incorporate a source term in the equations.

My only difficulty was that I didn't know the form of the source term and I couldn't agree with the form given in papers on constant heat flux. Fortunately Patankar paper nails it down. It's really just a bit of calculus

Instaed of solving for tempearture you solve for \theta which is

\theta = (T - Tw)/(Tbx - Tw)

where Tbx is the bulk temperature in the cross section. Moreover you need to define another field lambda which is

\lambda = dTbx/dx/(Tbx - Tw)

Now you can solve the equations for \theta and \lambda and these quantites happen to be periodic.

u d\theta/dx v d\theta/dy = \kappa (d2\theta/dx2 + d2theta/dy2 ) + \sigma

Source term
\sigma = [2 \kappa d \theta/dx - u \theta] \lambda + \kappa \theta [d lambda/dx + lambda^2]

It might look a bit long-winded but it actually makes sense. The solution requires you to iteratively solve for \theta, correct so that bulk \theta is one in each cross-section and than correct \lambda.

Currently I am working on the last bit i.e. correcting lambda. But I attach some results with this post. This is interFoam with heat transfer and periodic boundaries, laminar flow.


Hi,

Thank you for your sharing with this problem and your progress. I am also doing a similar problem related to periodic boundary for constant wall temperature case. But I don't know how to add the source term and the iteration for lamda. Can you post your modified solver for this or can you give me any suggestions on that?

Thank!

Luttappy May 9, 2018 07:55

Quote:

Originally Posted by gabri (Post 359040)
Dear Robert,

I am really interested in this thread since it has been the subject of my M. Sc. Thesis. At present, I would like to implement in OpenFOAM the model proposed by Patankar for the constant wall temperature case (maybe in the modified form of Stalio and Piller, where only the average lambda over one periodic module is computed by using the integral form of the energy conservation equation). Did you succeed in correcting lambda? Can you give me any advice to perform this task avoiding numerical instability?

Thanks in advance,

Gabriele

Anyone successfully implemented the method proposed by Stalio and Piller (JHT,2007)?
Or
Modified method by Wang et al. (PRE,2017) ?

Luttappy February 4, 2020 02:39

Quote:

Anyone successfully implemented the method proposed by Stalio and Piller (JHT,2007)?
Or
Modified method by Wang et al. (PRE,2017) ?

We successfully implemented the method proposed by Wang et al. (2017) in our paper. Those who are interested can go through it.

1. Simulation of Fully Developed Flow and Heat Transfer in Wavy Channels Using OpenFOAM
(ResearchGate)

2. Unsteady Flow and Heat Transfer Characteristics of Primary and Secondary Corrugated Channels
(ResearchGate)

Phil910 March 31, 2022 14:57

Hello,

i'm currently facing a similar problem as described in this thread. I am trying to simulate a fully developed channel flow with cyclic boundary conditions on inlet and outlet using rhoPimpleFoam and constant heat flux as a wall BC.
Since i am relatively new to Openfoam and i never wrote my own solver i was wondering if it is possible to get rhoPimpleFoam to solve the Energy Equation for a variable like ThetaPlus = T - T_w / T_tau since this solver is not using Temperature but Enthalpy in the Energy Equation and the temperature is then calculated later. I just want to get an idea of how complex it would be to do this and was wondering if anyone has probably done something similar.

Thanks in advance!


All times are GMT -4. The time now is 04:16.