|
[Sponsors] |
October 25, 2013, 08:10 |
Boundary conditions MultiRegionHeater
|
#1 |
New Member
Bárbara Arizmendi
Join Date: Oct 2013
Location: Spain
Posts: 14
Rep Power: 13 |
Hi Foamers!
I'm new to OpenFoam and I'm working with multiRegionFoam. I've played correctly the tutorial multiRegionHeater but now I'm doing some changes. I'd like to set the T value of the heater to 500 K and delete the condition of the minY which is a fixed temperature. In the changeDictionarydict I've the folllowing script: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object changeDictionaryDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dictionaryReplacement { boundary { minY { type wall; } } T { internalField uniform 300; boundaryField { ".*" { type zeroGradient; value uniform 300; } "heater_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; kappa solidThermo; kappaName none; value uniform 500; } minY { type zeroGradient; value uniform 300; } } } } // ************************************************************************* // Thanks you |
|
October 25, 2013, 13:21 |
|
#2 | |
Senior Member
|
welcome barbara,
Quote:
actually you didn't delete the condition of minY, i can see it in your file.another thing don't only delete it from your file because ".*" means put this condition for every patch which haven’t another declared BC. so, you must delete ".*" also and put your conditions for all your patches yourself. but notice that if this patch still in your mesh you must put condition for it otherwise OpenFOAM won't run. Code:
minY { type zeroGradient; value uniform 300; } change zeroGradient to fixedValue or delete value entry. i hope this help you. |
||
October 28, 2013, 05:19 |
|
#3 |
New Member
Bárbara Arizmendi
Join Date: Oct 2013
Location: Spain
Posts: 14
Rep Power: 13 |
Thanks for your answer. I've tried to do what you have told me but it doesn't converge. I've a question, Is the way to fix the temperature correct? Because in the tutorial, the temperature of the heater is variable and I want to fix it.
Thanks you |
|
October 28, 2013, 15:11 |
|
#4 | |
Senior Member
|
Quote:
i think temperature is fixed for heater in tutorial case. it differ from patch to other but is fixed for each patch (simulate constant wall temperature). i hope it helps you. |
||
October 29, 2013, 06:52 |
|
#6 |
New Member
Bárbara Arizmendi
Join Date: Oct 2013
Location: Spain
Posts: 14
Rep Power: 13 |
Hi Ahmed,
Here it's my case files. https://www.dropbox.com/s/87qse1np1o...mpleHeater.zip I think in the tutorial the value of T is fixed on the floor (500 K), and the heater changes its T value. |
|
November 5, 2013, 06:57 |
|
#7 |
Senior Member
|
Hi barbara,
sorry to be late. you have mistake in your makeCellSets.setSet in last line Code:
cellZoneSet Air new setToCellZone bottomAir i didn't finished reviewing your case i will feed you back once finished. good luck. |
|
November 5, 2013, 12:13 |
|
#8 |
Senior Member
|
for the tutorial case the heater haven’t homogeneous temperature. only one patch exposed to higher temperature then it heats up solid heater then air and other solids.
|
|
November 6, 2013, 07:17 |
|
#9 |
New Member
Bárbara Arizmendi
Join Date: Oct 2013
Location: Spain
Posts: 14
Rep Power: 13 |
Hi Ahmed,
I've already found my mistake. I got fix the T value of the heater. I changed the value of the internal field in the changeDictionarydict file. This is my script: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object changeDictionaryDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dictionaryReplacement { boundary { minY { type wall; } } T { internalField uniform 500; boundaryField { ".*" { type fixedValue; value uniform 500; } "heater_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; kappa solidThermo; kappaName none; value uniform 500; } } } } // ************************************************************************* // Do you think chtMultiRegionFoam is proper to simulate natural convection? Thanks Bárbara |
|
November 6, 2013, 12:13 |
|
#10 |
Senior Member
|
||
Tags |
boundary conditions, multiregionheater |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
symmetry boundary conditions in cfx | lost.identity | CFX | 41 | May 22, 2013 08:21 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
[Netgen] boundary conditions and mesh exporting | vaina74 | OpenFOAM Meshing & Mesh Conversion | 2 | May 27, 2010 10:38 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |