CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   topoSet geometry than more than 1 box (http://www.cfd-online.com/Forums/openfoam-pre-processing/116006-toposet-geometry-than-more-than-1-box.html)

Grimoli April 10, 2013 23:36

topoSet geometry than more than 1 box
 
Is there a way to add more than 1 box on a topoSet geometry??Im trying to do a geometry like this,but im failing all the time =/
What should I do??


cellSet heater new boxToCell (0 4 10)(20 16 15)
cellSet heater add boxToCell (0 4 15)(20 4.5 15.5)
cellSet heater add boxToCell (0 5 15)(20 5.5 15.5)
cellSet heater add boxToCell (0 6 15)(20 6.5 15.5)
cellSet heater add boxToCell (0 13.5 15)(20 14 15.5)
cellSet heater add boxToCell (0 14.5 15)(20 15 15.5)
cellSet heater add boxToCell (0 15.0 15)(20 16 15.5)
cellZoneSet heater new setToCellZone heater


cellSet leftSolid new boxToCell (0 0 10 )(20 4 15)
cellZoneSet leftSolid new setToCellZone leftSolid


cellSet rightSolid new boxToCell (0 16 10 )(20 20 15)
cellZoneSet rightSolid new setToCellZone rightSolid

cellSet bottomAir new boxToCell (0 0 0 )(20 20 10)
cellZoneSet bottomAir new setToCellZone bottomAir


cellSet topAir clear
cellSet topAir add cellToCell heater
cellSet topAir add cellToCell leftSolid
cellSet topAir add cellToCell rightSolid
cellSet topAir add cellToCell topAir
cellSet topAir invert
cellZoneSet topAir new setToCellZone bottomAir

wyldckat April 14, 2013 08:54

Greetings Gabriel,

Do you mean setSet? Because those commands are for setSet, not topoSet ;)

I took a look at the tutorial "heatTransfer/chtMultiRegionFoam/multiRegionHeater" and I think I understand your confusion. It still has the file "makeCellSets.setSet", but the tutorial actually uses topoSet instead, which relies on the dictionary file "system/topoSetDict".

To use, you must run setSet like this:
Code:

setSet -batch makeCellSets.setSet
This briefly explained if you run:
Code:

setSet -help
Best regards,
Bruno


All times are GMT -4. The time now is 12:57.