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