CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   makeCellSets.setSet Usage (

m.nichols19 June 10, 2010 15:43

makeCellSets.setSet Usage
I am attempting to model the conjugate heat transfer of water flowing through a steel pipe using the chtMultiRegionFoam solver. I successfully ran the chtMultiRegionFoam tutorial, so I have a relatively good grasp on the solver; however, I am having issues with the makeCellSets.setSet file that accompanies the solver.

From what I understand, makeCellSets creates rectangular-prism regions in the mesh using the boxToCell command. For my problem, I need a cylindrical region through the center of the mesh for the water to flow through.

Is there a command other than boxToCell that will allow me to create this cylindrical region in makeCellSets? If not, is there a way other than makeCellSets to create regions in a mesh that will work with the chtMultiRegionFoam solver?

Here is my simple code for the makeCellSets.setSet file:


cellSet water new boxToCell (80 80 0)(-80 -80 10)
cellSet tube clear
cellSet tube add cellToCell water
cellSet tube invert

Thanks in advance!

rob3rt June 10, 2010 23:52

Hi Matt,

Try using the surfaceToCell. Further instructions can be found in the cellSetDict file under applications/utilities/mesh/manipulations/

m.nichols19 June 11, 2010 11:26

Thank you for your reply.

I used the cylinderToCell command in cellSetDict and it solved my problem!

best regards,

All times are GMT -4. The time now is 16:25.