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

effectivenessHeatExchangerSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2016, 03:44
Default effectivenessHeatExchangerSource
  #1
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
Hi everyone,

What I'm trying to do is: to model a heat exchanger. Therefore I use "effectivnessHeatExchangerSource"

I allready found one thread to http://www.cfd-online.com/Forums/openfoam-solving/125257-about-new-heatexchangereffectiveness-source.html .

But since it is a bit outdated and does not solve my problems, I'm trying to refresh the topic.


Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
effectivenessHeatExchangerSource1
{
type effectivenessHeatExchangerSource;
active true;
selectionMode ???;
cellZone ???;
effectivenessHeatExchangerSourceCoeffs
{
secondaryMassFlowRate 0.1;
secondaryInletT 336;
primaryInletT 293;
faceZone facesZoneInletOriented;
outOfBounds clamp;
fileName "effTable";
}
}
 
// ************************************************************************* //
My problem is, to define the proper cellZone, faceZone,... as highlighted in the code.

In the documentation it says: "faceZone is the faces at the inlet of the cellzone, it needs to be created with flip map flags."

But therefore, I first have to set a faceZone ? I can do that either via patch in the blockmeshdict or via toposet?

So what I know is the position of my heat exchanger, therefore I tried to do it this way with topoSetDict:

First I created a cellSet from a known box.
Second I created a CellZone from the previously created cellSet

But how about the missing FaceZone? Do I need something like this:

Quote:
setToFaceZone: Select all faces in the faceSet. Sets flipMap.
setToFaceZone FACESET
But then I am missing a faceSet to do so?

Here is my current code which is not working because the zones/faces/sets are not properly defined

Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name heater;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (30 0 0) (33 12 8);
}
} 

{
name heater;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set heater; // name of cellSet
}
}



);
I don't really get what it's all about those sets and zones.... I hope someone of the experienced user can help me!

Thank you in advance!
CellZone is offline   Reply With Quote

Old   May 10, 2016, 10:50
Default
  #2
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
I made it now that the solver is "working" - but the results do not make sense, since I get at the outlet of the heat exchanger higher temperatures than the heat exchanger's water is hot. The heat exchanger's flow temperature is 315K , whereas at the exit of the pipe (or heat exchanger) I've got temperatures of about 650 Kelvin !

Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//"libtabulatedHeatTransferMassFlow.so"
libs (
//"libtabulatedHeatTransferMassFlow.so"
"libfieldFunctionObjects.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
"libgroovyBC.so"
);
application rhoPorousSimpleFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 500;
deltaT 1;
writeControl timeStep;
writeInterval 500;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
graphFormat raw;
runTimeModifiable true;
Code:
(
(0.01 
(
(0.1 0.8)//A
(0.2 0.81)//B
(0.3 0.82) //C
)
)

(0.04 
(
(0.1 0.8 )//D
(0.2 0.81 )//E
(0.3 0.82 ) //F
)
)

(0.06 
(
(0.1 0.8 )//G
(0.2 0.81 )//H
(0.3 0.82 )//I
)
)
);
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
/*source1
{
type fixedTemperatureConstraint;
active false;
selectionMode cellZone;
cellZone porosity;
fixedTemperatureConstraintCoeffs
{
mode uniform;
temperature 350;
}
} */
 
effectivenessHeatExchangerSource1
{
type effectivenessHeatExchangerSource;
active true;
selectionMode cellZone;
cellZone porosity;
effectivenessHeatExchangerSourceCoeffs
{
secondaryMassFlowRate 0.1;
secondaryInletT 315;
primaryInletT 293;
faceZone heater;
outOfBounds clamp;
fileName "$FOAM_CASE/system/effTable";
}
}
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name heater;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.3 0 0) (0.33 0.12 0.08);
}
} 

{
name heater;
type faceZoneSet;
action new;
source setToFaceZone; 
sourceInfo
{
faceSet heater; // name of cellSet
}
}



);
// ************************************************************************* //

And after running the solver the faceZone file looks like:

Code:
FoamFile
{
version 2.0;
format binary;
class regIOobject;
location "constant/polyMesh";
object faceZones;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1
(
heater
{
type faceZone;
faceLabels List<label> 
1552
('���O������ ������
��
�������������������������������� ��-���� ��!��"��#��$��%��&��'��(��)��*��+��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��;��<��=��>��?��@��A��B��C��D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��c��d��e��f��g��h��i��j��k��l��m��n��o��p��q��r��s��t��u��v��w��x��y��z��{��|��}��~������������������������������������������"��"������������������������ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���� ��
��
��
��
�������������������������������� ��-���� ��!��"��#��$��%��&��'��(��)��*��+��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��;��<��=��>��?��@��A��B��C��D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��c��d��e��f��g��h��i��j��k��l��m��n��o��p��q��r��s��t��u��v��w��x��y��z��{��|��}��~������������������������������������������"��"������������������������ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���� ��
��
��
��
�������������������������������� ��-���� ��!��"��#��$��%��&��'��(��)��*��+��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��;��<��=��>��?��@��A��B��C��D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��c��d��e��f��g��h��i��j��k��l��m��n��o��p��q��r��s��t��u��v��w��x��y��z��{��|��}��~������������������������������������������"��"������������������������ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���� ��
��
��
��
������������������������������������������������ ��-���� ��!��"��#��$��%��&��'��(��)��*��+��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��;��<��=��>��?��@��A��B��C��D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��c��d��e��f��g��h��i��j��k��l��m��n��o��p��q��r��s��t��u��v��w��x��y��z��{��|��}��~������������������������������������������"��"������������������������ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���� ��
��
��
��
�������������������������������� ��-���� ��!��"��#��$��%��&��'��(��)��*��+��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��;��<��=��>��?��@��A��B��C��D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��c��d��e��f��g��h��i��j��k��l��m��n��o��p��q��r��s��t��u��v��w��x��y��z��{��|��}��~������������������������������������������"��"������������������������D��E��F��G��H��I��J��K��L��M��N��O��P��Q��R��S��T��U��V��W��l��m��o��p��q��r��s��t��u��v��w��|��}��~����������������������������������"��"������������������������ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ����
��
��
��
����������������������-���� ��!��"��#��$��%��&��'��(��)��,��-��.��/��0��1��2��3��4��5��6��7��8��9��:��<��=��>��?��@��A��B��C��D��E��F��G��H��J��K��L��M��N��O��Q��T��U��V��W��X��Y��Z��[��\��]��^��_��`��a��b��d��i��j��k��l��m��n��o��q��r��s��t��u��v��w��x��y��z��{��}��~���������������������������������������������������� ������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���� ��
��
��
��
������);
 
 
flipMap List<bool> 
1552
(����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������);
}
)

Does anybody know what could be wrong? As I mentioned, the log file does not complain. :-/
CellZone 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



All times are GMT -4. The time now is 23:04.