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

thermoFoam tutorial/example case

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Artur.Ant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2019, 08:35
Default thermoFoam tutorial/example case
  #1
New Member
 
shach
Join Date: Apr 2019
Posts: 26
Rep Power: 7
shach934 is on a distinguished road
Hi,
I am trying to solve cooling rotor problem. The rotor is heated up and the air is flowing around to cool it down. I think the case combined the rotation and heat transfer and I am not sure which solver is suitable for this case. Anyone can give me some suggestion?
For now, I am solving the flow field using simpleFoam and MRF, or pimpleFoam and rotating mesh, for steadystate and transient respectively. My plan is after the flow field is converged. I would like to apply a temperature boundary condition on the rotor and solve the energy equation with a frozen flow field. By this, the influence of the temperature on the flow is ignored, I am not sure how bad the error will be. The solver for this frozen flow field is thermoFoam. However, I didn't find any example case or tutorial for this solver. Anyone has experience with this solver? Any suggestion is high appreciated. Thanks.
shach934 is offline   Reply With Quote

Old   October 2, 2019, 12:45
Default some suggestions
  #2
Member
 
Arthur
Join Date: Aug 2014
Location: Italy
Posts: 47
Rep Power: 12
Artur.Ant is on a distinguished road
Hello, have you solved your problem?
In my opinion you should solve a similar problem in at least two steps.
First:
Solve the fluid dynamic problem considering density. Use a solver like rhoSimpleFoam or rhoPimpleFoam. To deactivate the energy equation impose a relative error between iteration equal to 1 (hard action) or recompile the solver not considering the energy equation. In this first step the solver must consider density since in the second step you will solve only the energy equation. The energy equation requires density, If you solve this first step with simpleFoam or pimpleFoam you will have a dimension error, something like this: [e[1 -1 -3 0 0 0 0] ] + [e[0 2 -3 0 0 0 0] ] due to the fact that pressure is not divided by density. Always remember that any CFD code solves adimensional equations.
Second:
Impose in fvSolutions under SIMPLE options frozenFlow on, like this
SIMPLE
{
consistent yes;
nNonOrthogonalCorrectors 3;
frozenFlow on;

residualControl
{
p 1e-4;
U 1e-4;
"(k|epsilon|e)" 1e-4;
}
}
and change the solver from rhoSimpleFoam to thermoFoam in controlDict.
Now you can solve the energy equation with frozen flow.
granzer and superkelle like this.
Artur.Ant is offline   Reply With Quote

Old   October 2, 2019, 13:24
Default
  #3
New Member
 
shach
Join Date: Apr 2019
Posts: 26
Rep Power: 7
shach934 is on a distinguished road
Thanks for your reply.
I am using chtMultiRegionSimpleFoam to solve the MRF and heat transfer problem at the same time now. It is working fine.

Quote:
Originally Posted by Artur.Ant View Post
Hello, have you solved your problem?
In my opinion you should solve a similar problem in at least two steps.
First:
Solve the fluid dynamic problem considering density. Use a solver like rhoSimpleFoam or rhoPimpleFoam. To deactivate the energy equation impose a relative error between iteration equal to 1 (hard action) or recompile the solver not considering the energy equation. In this first step the solver must consider density since in the second step you will solve only the energy equation. The energy equation requires density, If you solve this first step with simpleFoam or pimpleFoam you will have a dimension error, something like this: [e[1 -1 -3 0 0 0 0] ] + [e[0 2 -3 0 0 0 0] ] due to the fact that pressure is not divided by density. Always remember that any CFD code solves adimensional equations.
Second:
Impose in fvSolutions under SIMPLE options frozenFlow on, like this
SIMPLE
{
consistent yes;
nNonOrthogonalCorrectors 3;
frozenFlow on;

residualControl
{
p 1e-4;
U 1e-4;
"(k|epsilon|e)" 1e-4;
}
}
and change the solver from rhoSimpleFoam to thermoFoam in controlDict.
Now you can solve the energy equation with frozen flow.
shach934 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
MRFSimpleFoam wind turbine case continuity error ysh1227 OpenFOAM Running, Solving & CFD 1 August 16, 2016 10:25
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
MRFSimpleFoam wind turbine case diverges ysh1227 OpenFOAM Running, Solving & CFD 2 May 7, 2015 11:13
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Transient case running with a super computer microfin FLUENT 0 March 31, 2009 12:20


All times are GMT -4. The time now is 17:50.