Hi everybody
I was trying to simulate a heating block by defining a heat source with a defined value of h (in “absolute” mode) in combination with either a limitTemperature source or fixedTemperatureConstraint source to have a heating block with a constant surface temperature but it seems it doesn’t give realistic results. I am using chtmultRegionFoam solver in OpenFoam.
Apparently, by using option T instead h in the heat source option, the problem can be resolved( so the heating load is calculated based on the defined temperature.)
…
heatSource
{
type scalarSemiImplicitSource;
active true;
scalarSemiImplicitSourceCoeffs
{
selectionMode cellZone;
cellZone hh;
volumeMode absolute; // absolute;specific
injectionRateSuSp
{
T (500 0);
}
}
}
…
Am I right?
However, when I try to use this, the system gives me the below error: (hh is my heating block region)
–> FOAM FATAL ERROR:
Cannot find directory “hh/polyMesh/sets” in times 0 down to constant
From function Foam::word Foam::Time::findInstance(const Foam::fileName&, const Foam::word&, Foam::IOobject::readOption, const Foam::word&) const
in file db/Time/findInstance.C at line 175.
(If I use cellzone as selection mode, I don’t get error while by using cellset as selection mode, I get the above error. When I use cellzone mode, the T option is ignored by the software and it is not used. I don’t get any error if I use h option with cellzone mode.)
My questions are:
First, If by defining temperature by T option, we have a heating load in the desired region or it is just a fixed temperature without heating? (Suppose I don’t get that error.)
How can I use setsToZones correctly to avoid this error?
This is my topoSetDict script:
actions
(
// air
{
name air;
type cellSet;//cellSet
action new;
source boxToCell;
sourceInfo
{
boxes ((0 0 0) (0.05561 0.00057 -0.00001) (0.05561 0 0)(0.06411 0.00019 -0.00001) (0.05561 0.00038 0)(0.06411 0.00057 -0.00001) (0.06411 0 0)(0.0643 0.00057 -0.00001) (0.0643 0 0)(0.1093 0.00019 -0.00001) (0.0643 0.00038 0)(0.1093 0.00057 -0.00001) (0.1093 0 0)(0.10949 0.00057 -0.00001) (0.10949 0 0)(0.11799 0.00019 -0.00001) (0.10949 0.00038 0)(0.11799 0.00057 -0.00001) (0.11799 0 0)(0.434 0.00057 -0.00001));
}
}
// hh
{
name hh;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0.05561 0.00019 0) (0.06411 0.00038 -0.00001);
}
}
// stack
{
name stack;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0.0643 0.00019 0) (0.1093 0.00038 -0.00001);
}
}
// ch
{
name ch;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0.10949 0.00019 0) (0.11799 0.00038 -0.00001);
}
}
);
…
Many thanks again for your attention and your help.
Sincerely yours
Mohammad