|
[Sponsors] |
July 8, 2013, 20:31 |
.setSet problems
|
#1 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
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 |
|
July 8, 2013, 20:34 |
|
#2 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
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 |
|
July 9, 2013, 04:39 |
|
#3 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
someone help please =/
|
|
July 9, 2013, 05:52 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
July 23, 2013, 17:55 |
|
#5 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
what does the function invert does??
|
|
July 24, 2013, 05:17 |
|
#6 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
July 25, 2013, 17:59 |
|
#7 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
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.
|
|
July 25, 2013, 19:30 |
|
#8 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
July 31, 2013, 14:13 |
|
#9 |
Member
Gabriel de PInho RImoli
Join Date: Mar 2013
Posts: 49
Rep Power: 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 |
|
July 31, 2013, 14:24 |
|
#10 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
look at OpenFOAM tutorials the address is :
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 04:45 |
[ICEM] Flow channel meshing problems | StefanG | ANSYS Meshing & Geometry | 19 | May 15, 2012 07:44 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 06:44 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 12:00 |