CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Including SRF to chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2015, 08:03
Default Including SRF to chtMultiRegionFoam
  #1
New Member
 
Sanoja Jayarathna
Join Date: Jul 2015
Posts: 8
Rep Power: 10
Sanoja is on a distinguished road
I have included SRF model to the chtMultiRegionFoam solver, to include the effect of rotating reference frame, as I want to simulate a heat exchanger that rotates.

I have included the SRF model to the solver (named the solver as myHeatExFoamomega) and then changed all the files in the Fluid region to use relative velocity (replaced U with Urel).

The solver compiled without errors, and I am trying to simulate a counter current cylindrical heat exchanger which rotates around its centre axis (Z axis).

I have 3 regions in the heat exchanger, 2 fluid and 1 solid. I have attached the changeDictionaryDict files used and the fvSolution files.

I cannot get this simulation to run, as I get extremely small time steps. If I use fixed time step, for example, 0.001, it runs fast for upto about 0.29 and then crashes, with unphysicaly low temperature in one of the fluid regions.

I really appreciate if some one can help me with this issue. Some tips to get the simulations running.

I have attached the fluid folder used in the new solver and the .c file of the solver as well.
Attached Files
File Type: zip ForForum.zip (4.4 KB, 17 views)
File Type: zip fluid.zip (12.1 KB, 17 views)
File Type: zip myHeatExFoamomega.C.zip (1.7 KB, 16 views)
Sanoja is offline   Reply With Quote

Old   December 9, 2015, 05:35
Default Problem solved
  #2
New Member
 
Sanoja Jayarathna
Join Date: Jul 2015
Posts: 8
Rep Power: 10
Sanoja is on a distinguished road
I have changed the boundary conditions and started running in serial, and then the simulation works for low rpm, like, 1000 rpm. But I need the rpm to be in the range or 10000.
So, I believe I will have to initialize a simulation with the results from a simulation with low rpm.
Sanoja is offline   Reply With Quote

Old   December 9, 2015, 12:15
Default
  #3
Member
 
Bruno Blais
Join Date: Sep 2013
Location: Canada
Posts: 64
Rep Power: 12
blais.bruno is on a distinguished road
Quote:
Originally Posted by Sanoja View Post
I have changed the boundary conditions and started running in serial, and then the simulation works for low rpm, like, 1000 rpm. But I need the rpm to be in the range or 10000.
So, I believe I will have to initialize a simulation with the results from a simulation with low rpm.
Are you running a steady or an unsteady simulation?

What are your initial conditions? Be careful that Urel=0 can be highly unstable as an initial condition. The best idea is generally to start with Urel=omega*R...

In the context of mixing this has hepled me greatly.

Otherwise you might want to validate with a simpler example (like a couette flow) first before testing something bigger.
blais.bruno is offline   Reply With Quote

Old   December 9, 2015, 15:46
Smile
  #4
New Member
 
Sanoja Jayarathna
Join Date: Jul 2015
Posts: 8
Rep Power: 10
Sanoja is on a distinguished road
Thank you for your advise Bruno.

I'm trying to run an unsteady case. And have used the absolute velocity as the inlet value (axial velocity) and then used the same value in the internal fields and given as Urel. This worked for 100 rpm.

Then I tried to use the out put values from the last time step of that simulation into an other case with 10000 rpm.

Simulations are really slow as I am running in serial mode (faced difficulties with the parallel running). And I am waiting to see whether this is going to converge or not. If not, then I will try one with the way you have suggested.
Sanoja is offline   Reply With Quote

Old   December 10, 2015, 05:58
Default Quick question ??
  #5
New Member
 
Sanoja Jayarathna
Join Date: Jul 2015
Posts: 8
Rep Power: 10
Sanoja is on a distinguished road
My simulations with 10000 rpm has failed (where I used the results from a simulation with 100 rpm), was getting way too high temperatures as a results of too big velocity components (in some places. colse to the outer walls, due to high swirels).

So, I was thinking of using Urel as suggested by blais.bruno !!

But now, I am wondering how to split the calculated Urel value (using Urel = r_mean*omega) into the x, y components. Any ideas ???
Sanoja is offline   Reply With Quote

Old   December 10, 2015, 14:25
Default
  #6
Member
 
Bruno Blais
Join Date: Sep 2013
Location: Canada
Posts: 64
Rep Power: 12
blais.bruno is on a distinguished road
Quote:
Originally Posted by Sanoja View Post
My simulations with 10000 rpm has failed (where I used the results from a simulation with 100 rpm), was getting way too high temperatures as a results of too big velocity components (in some places. colse to the outer walls, due to high swirels).

So, I was thinking of using Urel as suggested by blais.bruno !!

But now, I am wondering how to split the calculated Urel value (using Urel = r_mean*omega) into the x, y components. Any ideas ???
You really need to impose the right initial condition. I believe that's the issue you have right now.

in SRF type of models, you have two velocities. Uabs is in the laboratory frame of reference and Urel is in the rotating frame of reference. Therefore, Uabs=0 as initial condition is not equal to Urel=0 as initial condition. If you start with Urel=0 as initial condition, your simulations will most likely diverge (or least be very unstable) for high RPM values.

I hope that is sufficiently clear
blais.bruno is offline   Reply With Quote

Old   December 11, 2015, 05:47
Default
  #7
New Member
 
Sanoja Jayarathna
Join Date: Jul 2015
Posts: 8
Rep Power: 10
Sanoja is on a distinguished road
Thank you blais.bruno

I don't use U_rel = 0 as initial values.

Now I have decided to increase rpm step by step. Like using results from 100 rpm case in 200 rpm simulation, an so on. Seems to work But time consuming
Sanoja is offline   Reply With Quote

Reply


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
Error in thermophysical properties (chtMultiRegionFoam) mukut OpenFOAM Pre-Processing 28 November 23, 2021 06:34
chtMultiRegionFoam connection between solid and fluid region of heat exchanger ahab OpenFOAM 1 December 18, 2019 00:37
Simulation of a sample in a furnace w/ chtMultiRegionFoam sergimart7 OpenFOAM Running, Solving & CFD 7 August 12, 2015 06:48
What does this error when use solver chtMultiRegionFoam mean sajad6 OpenFOAM Running, Solving & CFD 7 October 6, 2014 07:38
Possible turbulence modelling bug in SRF solvers otm OpenFOAM Running, Solving & CFD 3 May 29, 2012 04:03


All times are GMT -4. The time now is 20:12.