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

FixedTemperature in chtMultiRegionFoam solver

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By stater
  • 1 Post By stater
  • 1 Post By hiuluom
  • 1 Post By hiuluom

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2016, 13:53
Default FixedTemperature in chtMultiRegionFoam solver
  #1
New Member
 
stater's Avatar
 
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13
stater is on a distinguished road
Dear Foamers,

I'm trying to simulate thermoacoustic refrigerator under Openfoam 2.3.0. I have to impose temperature in a solid region of domain called "HotEx". So for this purpose, i used chtMultiRegionFoam solver with fvOptions like this:

Code:
fixedTemperaure1
  {
      type                      fixedTemperatureConstraint;
      active                    true;
      selectionMode            cellZone;
      cellZone                 HotEx;
   
      fixedTemperatureConstraintCoeffs
      {
          mode              uniform;
          temperature     300;
      }
  }
But although during the solving process the residuals terms of the energy equation are zero, the logs shows that the temperature in this domain changes slightly.

Code:
Solving for solid region HotEx
DICPCG:  Solving for h, Initial residual = 0, Final residual = 0, No Iterations 0
Min/max T:min(T) [0 0 0 1 0 0 0] 300 max(T) [0 0 0 1 0 0 0] 300.010597551
ExecutionTime = 392.73 s  ClockTime = 393 s

Even when i ploted the results, i noticed a temperature variation. So my question is : Did I forget something for imposing temperature? If so, do I have to add a term in the solver code?

I need your help please,

Thanks
stater is offline   Reply With Quote

Old   July 16, 2016, 14:29
Default
  #2
New Member
 
stater's Avatar
 
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13
stater is on a distinguished road
No one can help me?
stater is offline   Reply With Quote

Old   July 17, 2016, 06:54
Default
  #3
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12
hiuluom is on a distinguished road
If you want to add heat source in cell zone, you can try this:

Code:
 firstHeatSource
    {
        type scalarSemiImplicitSource;
        active          true;
        selectionMode   cellZone;
        cellZone        boxSourceZone;
        scalarSemiImplicitSourceCoeffs 
        {
            volumeMode absolute;
            injectionRateSuSp 
            {
                T (300 0);
            }
        }
    }
hiuluom is offline   Reply With Quote

Old   July 17, 2016, 13:59
Default
  #4
New Member
 
stater's Avatar
 
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13
stater is on a distinguished road
Hi Huynh,

Thank you so much for your reply. Can you tell me the difference between the code that i posted previously and yours.

Please, i would like to enrich my knowledge in this field
Thank you
stater is offline   Reply With Quote

Old   July 17, 2016, 21:17
Default
  #5
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12
hiuluom is on a distinguished road
You can look for fvOption in /openfoam/src/fvoption seeing the description.

The code you posted I'm not sure it is really added temperature in cell zone, because you only write down "temperature" in field.
My code call directly T file in fvoption
hiuluom is offline   Reply With Quote

Old   July 18, 2016, 09:12
Default
  #6
New Member
 
stater's Avatar
 
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13
stater is on a distinguished road
Thank you for your help
stater is offline   Reply With Quote

Old   October 15, 2021, 23:17
Default
  #7
New Member
 
Edgar Alejandro Martínez Ojeda
Join Date: Jul 2019
Posts: 20
Rep Power: 6
Edgar Alejandro Martínez is on a distinguished road
That was very helpful. Thank you very much!
Edgar Alejandro Martínez 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
EMMS drag model UDF NAD Fluent UDF and Scheme Programming 26 November 19, 2017 07:49
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 08:09
Using a Different Thermodynamics Package with the chtMultiRegionFoam Solver m.nichols19 OpenFOAM 7 March 17, 2011 16:26
Creating a new solver from chtMultiRegionFoam David_010 OpenFOAM Programming & Development 0 April 20, 2010 11:36
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 07:34.