CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   makeCellSets.setSet Usage (http://www.cfd-online.com/Forums/openfoam/77027-makecellsets-setset-usage.html)

m.nichols19 June 10, 2010 16: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:

Code:

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

Thanks in advance!
-Matt

rob3rt June 11, 2010 00: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 12:26

Thank you for your reply.

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

best regards,
Matt


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