Boundary conditions MultiRegionHeater
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++ -*----------------------------------*\ Thanks you :) |
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 change zeroGradient to fixedValue or delete value entry. i hope this help you. |
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 :) |
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. |
Hi barbara,
please send me your case files, as attached or URL for dropbox. thanks |
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. |
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. |
Quote:
|
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++ -*----------------------------------*\ Do you think chtMultiRegionFoam is proper to simulate natural convection? Thanks :) Bárbara |
Quote:
|
All times are GMT -4. The time now is 22:28. |