CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   .setSet problems (http://www.cfd-online.com/Forums/openfoam/120516-setset-problems.html)

Grimoli July 8, 2013 19:31

.setSet problems
 
Hello
How is everyone doing??
So,Im doing a OpenFoam when my geometry is based on parallel boxes,with a retangular base,as shown :

cellSet heater new boxToCell (0.049925 0.050 0 ) (0.155925 0.156 0.004)
cellSet heater add boxToCell (0.049925 0.050 0.004)(0.155925 0.052 0.018) //1
cellSet heater add boxToCell (0.049925 0.058 0.004)(0.155925 0.060 0.018) //2
cellSet heater add boxToCell (0.049925 0.066 0.004)(0.155925 0.068 0.018) //3
cellSet heater add boxToCell (0.049925 0.074 0.004)(0.155925 0.076 0.018) //4
cellSet heater add boxToCell (0.049925 0.082 0.004)(0.155925 0.084 0.018) //5
cellSet heater add boxToCell (0.049925 0.090 0.004)(0.155925 0.092 0.018) //6
cellSet heater add boxToCell (0.049925 0.098 0.004)(0.155925 0.100 0.018) //7
cellSet heater add boxToCell (0.049925 0.106 0.004)(0.155925 0.108 0.018) //8
cellSet heater add boxToCell (0.049925 0.114 0.004)(0.155925 0.116 0.018) //9
cellSet heater add boxToCell (0.049925 0.122 0.004)(0.155925 0.124 0.018) //10
cellSet heater add boxToCell (0.049925 0.130 0.004)(0.155925 0.132 0.018) //11
cellSet heater add boxToCell (0.049925 0.138 0.004)(0.155925 0.140 0.018) //12
cellSet heater add boxToCell (0.049925 0.146 0.004)(0.155925 0.148 0.018) //13
cellSet heater add boxToCell (0.049925 0.154 0.004)(0.155925 0.156 0.018) //14
cellZoneSet heater new setToCellZone heater


THe problem is that I need to separate it in 2 regions,the parallel boxes ( 1 to 14) need to be separated from the base,but Im having problem because the command boxToCell seems to be used only when the boxes are connected to the main on(the one without any number)
How I am supposed to make a region between these boxes??Please help me

Grimoli July 8, 2013 19:34

I tried to do this,but it's giving a error on aleta11 ,but I dont know why!!:
Whats wrong??

cellSet heater new boxToCell (0.049925 0.050 0 ) (0.155925 0.156 0.004)
cellZoneSet heater new setToCellZone heater

cellSet aletas new boxToCell (0.049925 0.050 0.004)(0.155925 0.052 0.018) //1
cellSet aletas add boxToCell (0.049925 0.058 0.004)(0.155925 0.060 0.018) //2
cellSet aletas add boxToCell (0.049925 0.066 0.004)(0.155925 0.068 0.018) //3
cellSet aletas add boxToCell (0.049925 0.074 0.004)(0.155925 0.076 0.018) //4
cellSet aletas add boxToCell (0.049925 0.082 0.004)(0.155925 0.084 0.018) //5
cellSet aletas add boxToCell (0.049925 0.090 0.004)(0.155925 0.092 0.018) //6
cellSet aletas add boxToCell (0.049925 0.098 0.004)(0.155925 0.100 0.018) //7
cellSet aletas add boxToCell (0.049925 0.106 0.004)(0.155925 0.108 0.018) //8
cellSet aletas add boxToCell (0.049925 0.114 0.004)(0.155925 0.116 0.018) //9
cellSet aletas add boxToCell (0.049925 0.122 0.004)(0.155925 0.124 0.018) //10
cellSet aletas add boxToCell (0.049925 0.130 0.004)(0.155925 0.132 0.018) //11
cellSet aletas add boxToCell (0.049925 0.138 0.004)(0.155925 0.140 0.018) //12
cellSet aletas add boxToCell (0.049925 0.146 0.004)(0.155925 0.148 0.018) //13
cellSet aletas add boxToCell (0.049925 0.154 0.004)(0.155925 0.156 0.018) //14
cellZoneSet aletas new setToCellZone aletas

cellSet topAir clear
cellSet topAir add cellToCell heater
cellSet topAir add cellToCell aletas
cellSet topAir invert
cellZoneSet topAir new setToCellZone topAir

Grimoli July 9, 2013 03:39

someone help please =/

nimasam July 9, 2013 04:52

Dear,
look carefully at chtmultiRegion tutorial, you will find how to recall the space between box, in brief
you need a create a CellSet, then add to this CellSet all present boxes, then invert cellSet to choose remain cells

Grimoli July 23, 2013 16:55

what does the function invert does??

nimasam July 24, 2013 04:17

consider you have two sets A and B, which B is a sub-set of A, when you use invert B,
means all cells which are in A but not in B

Grimoli July 25, 2013 16:59

OKay,i have a problem now that i cant solve!!I have 2 regions in the same place.How do I erase a part of it??Is there a way I can do it ??I have 2 regions on the same place,i want to clear to it so the program doesnt crash.

nimasam July 25, 2013 18:30

look at tutorials ;) its easier way to find each dictionary how works , however you can use command remove, to remove one cellSet, or easily you can go to polyMesh in setSet folder and see whats your cellSet name is and remove it manually ;)

Grimoli July 31, 2013 13:13

i managed my problem thanks you :)
Where I can find the chtmultiregion tutorial??I tried to find it on google and on open foam website but i didnt found it.Any links??I want to improve my skills at OPenFOAM

nimasam July 31, 2013 13:24

look at OpenFOAM tutorials :) the address is :

Quote:

/tutorials/heatTransfer/chtMultiRegionFoam


All times are GMT -4. The time now is 09:24.