CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

topoSet-cylinderToCell

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By pechwang

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2014, 14:01
Default topoSet-cylinderToCell
  #1
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14
pechwang is on a distinguished road
Hello everyone,

Right now I'm using MRFSimpleFoam to run a very simple lubrication model. So I need topoSet to select a cellset and put it into the rotating MRFzone. I use cylinderToCell to select the cells. Part of the code is like this

name rotor;
type cellset;
action new;
source cylinderToCell;
sourceInfo
{
P1 (0 0 0);
P2 (0 0 0.127)
radius 104.4;
}

In this situation, I can select all the cells (I have 10 cell layers in the z direction) in the domain and it works perfect. However, right now I want to put part of the cells (maybe 5 layers or less) in the rotating reference frame. And I change the position of P2. Unfortunately, it cannot give me a correct answer. It gives me either 0 or 5400. 5400 is total number of cells in my domain. This really drives me crazy. I want to know whether you have any experience with MRFsolvers or topoSet utilities. Can you give me a hand?
Thanks
pechwang is offline   Reply With Quote

Old   March 6, 2014, 18:03
Default
  #2
Member
 
Join Date: Feb 2014
Posts: 34
Rep Power: 12
Prosper is on a distinguished road
I have a similar problem with cylinderToCell and I also wanna know the answer.

Best,

Quote:
Originally Posted by pechwang View Post
Hello everyone,

Right now I'm using MRFSimpleFoam to run a very simple lubrication model. So I need topoSet to select a cellset and put it into the rotating MRFzone. I use cylinderToCell to select the cells. Part of the code is like this

name rotor;
type cellset;
action new;
source cylinderToCell;
sourceInfo
{
P1 (0 0 0);
P2 (0 0 0.127)
radius 104.4;
}

In this situation, I can select all the cells (I have 10 cell layers in the z direction) in the domain and it works perfect. However, right now I want to put part of the cells (maybe 5 layers or less) in the rotating reference frame. And I change the position of P2. Unfortunately, it cannot give me a correct answer. It gives me either 0 or 5400. 5400 is total number of cells in my domain. This really drives me crazy. I want to know whether you have any experience with MRFsolvers or topoSet utilities. Can you give me a hand?
Thanks
Prosper is offline   Reply With Quote

Old   March 10, 2014, 10:44
Default
  #3
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14
pechwang is on a distinguished road
Hi Prosper,

It seems like I have found the answer. The unit of my mesh file is in mm. So in blockMeshDict file, I use convertToMeters at the very beginning. And I do the same thing in topoSetDict file. However, it seems like convertToMeters does not work in topoSetDict. After I change the unit to m, everything is OK. Since you have the same problem, maybe you also use other units instead of meters. So I think the problem now becomes why convertToMeters does not work in topoSetDict file. What do you think?

Thanks,
Pengchuan
zanilu70 and Zena27 like this.
pechwang is offline   Reply With Quote

Old   March 10, 2014, 11:37
Default
  #4
Member
 
Join Date: Feb 2014
Posts: 34
Rep Power: 12
Prosper is on a distinguished road
Quote:
Originally Posted by pechwang View Post
Hi Prosper,

It seems like I have found the answer. The unit of my mesh file is in mm. So in blockMeshDict file, I use convertToMeters at the very beginning. And I do the same thing in topoSetDict file. However, it seems like convertToMeters does not work in topoSetDict. After I change the unit to m, everything is OK. Since you have the same problem, maybe you also use other units instead of meters. So I think the problem now becomes why convertToMeters does not work in topoSetDict file. What do you think?

Thanks,
Pengchuan
Thank you for your reply!

I see. Maybe I'll need to change all the units in my problem and try it again.

Best,
Prosper is offline   Reply With Quote

Old   June 19, 2018, 09:37
Default toposetDict
  #5
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 9
Ben UWIHANGANYE is on a distinguished road
Dear Wang and Prosper,

May you help to know what i am missing in my toposetDict. I am not getting the cylinder i need in paraview.

you may find attached folder for my setup.

I will be happy to get your support!


Thank you!
Attached Files
File Type: gz ibcylinder.tar.gz (3.9 KB, 103 views)
Ben UWIHANGANYE is offline   Reply With Quote

Old   June 21, 2018, 10:34
Default
  #6
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14
pechwang is on a distinguished road
Hi Ben,

May I know the reason why you want this cylinder? What's the purpose of that? Besides that, the size of your cylinder is kind of small, even smaller than the size of your mesh cell. So the topoSet cannot select the cells. You can try to change the size of your cylinder.

Thanks,
Pengchuan
pechwang is offline   Reply With Quote

Old   June 21, 2018, 10:40
Default
  #7
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 9
Ben UWIHANGANYE is on a distinguished road
I want to simulate the flow past that cylinder(Stationary &Oscillating). I have succeeded with mapping that cylinder. Now what i am asking: is it possible to move that cylinder using setFiedsDict? thx.
Ben UWIHANGANYE is offline   Reply With Quote

Reply

Tags
cylindertocell, mrfzones, toposet


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 27 March 3, 2023 22:12
Possible to create cyliner baffle (internal) using topoSet or stl Mesh? keepfit OpenFOAM 4 February 19, 2017 15:40
[mesh manipulation] Problem with topoSet and FaceZone creation ADGlassby OpenFOAM Meshing & Mesh Conversion 7 September 16, 2013 12:05
[snappyHexMesh] HOW to set a circular face by toposet Jessica OpenFOAM Meshing & Mesh Conversion 2 September 12, 2013 21:54
topoSet geometry than more than 1 box Grimoli OpenFOAM Pre-Processing 1 April 14, 2013 09:54


All times are GMT -4. The time now is 18:38.