|
[Sponsors] |
FixedTemperature in chtMultiRegionFoam solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 8, 2016, 13:53 |
FixedTemperature in chtMultiRegionFoam solver
|
#1 |
New Member
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13 |
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; } } 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 |
|
July 16, 2016, 14:29 |
|
#2 |
New Member
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13 |
No one can help me?
|
|
July 17, 2016, 06:54 |
|
#3 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
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); } } } |
|
July 17, 2016, 13:59 |
|
#4 |
New Member
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13 |
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 |
|
July 17, 2016, 21:17 |
|
#5 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
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 |
|
July 18, 2016, 09:12 |
|
#6 |
New Member
H. Omar
Join Date: Mar 2013
Posts: 23
Rep Power: 13 |
Thank you for your help
|
|
October 15, 2021, 23:17 |
|
#7 |
New Member
Edgar Alejandro Martínez Ojeda
Join Date: Jul 2019
Posts: 20
Rep Power: 6 |
That was very helpful. Thank you very much!
|
|
|
|
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 |