|
[Sponsors] |
June 20, 2018, 04:46 |
topoSetDict- cylinderTocell
|
#1 |
Member
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8 |
Hello Foamers,
i need your assistance, it may sound easy for you but it has challenged me as beginner. I want to map a cylinder on my fluid domain created using blockMesh. The fluid domain has one block as you may see it bellow: FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 0.1; vertices ( (200 -50 0) (200 50 0) (-25 50 0) (-25 -50 0) (200 -50 1) (200 50 1) (-25 50 1) (-25 -50 1) ); blocks ( hex (0 1 2 3 4 5 6 7) (100 225 1) simpleGrading (1 1 1) ); edges ( ); boundary ( inlet { type patch; faces ( (2 3 7 6) ); } outlet { type patch; faces ( (0 1 5 4) ); } topAndBottom { type patch; faces ( (1 2 6 5) (0 3 7 4) ); } frontAndBack { type empty; faces ( (0 1 2 3) (4 5 6 7) ); } ); mergePatchPairs ( ); // ************************************************** *********************** // I have been reading online posts and thought that topoSetDict/ cylinderTocell can help to map that cylinder in that Cartesian grid. The cylinder i want has: radius: 0.25; p1 (0 0 0), p2 (0 0 1). May you help to know what i am missing in the attached commpressed case setup, i am not getting that cylinder after ./Allrun in paraview? I will appreciate you support. Best regard! |
|
June 20, 2018, 16:29 |
|
#2 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
Hi Ben,
Your code seems to be Ok, maybe you forgot to enable the cellzone visualization in paraView, you can find where to click on this picture ("Include Zones"): https://goo.gl/images/FVxs3p I didn't run your case, so I may be wrong. Are you trying to use it to simulate the flow over a cylinder or you have anything else in mind? Best Regards, Luis |
|
June 21, 2018, 01:30 |
|
#3 |
Member
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8 |
Yes, my ultimate goal is to simulate flow over that cylinder? (stationary and oscillating).
I thought that cylinder will be immersed not body fitted? Does it sound feasible? Finally I got that cylinder in my paraview(see attached images), then is there away i can move that cylinder?(oscillating motion). which codes should i use? Say if the solid region eta=1 and fluid region =0, is there a way i can alternate eta to move that cylinder or? Just advise me how i can move that cylinder without dynamic mesh. Thank you! |
|
June 25, 2018, 18:18 |
|
#4 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
Hi Ben,
I'm not sure if this is the best approach for an oscillating cylinder... I've never worked on this kind of problems, so I can't rally help you on that, sorry! Best Regards, Luis |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
topoSetDict | samiam1000 | OpenFOAM | 5 | July 23, 2019 11:45 |
Turbulences from Toposetdict??? | Ingenieur5 | OpenFOAM Running, Solving & CFD | 2 | May 28, 2018 23:07 |
change the shape in the topoSetDict | saatt | OpenFOAM Pre-Processing | 2 | June 25, 2017 20:38 |
topoSetDict error | JohnJohn8 | OpenFOAM Pre-Processing | 1 | August 3, 2016 05:20 |
Introducing changeDictionaryDict and topoSetDict files in chtMultiRegionFoam | fracasce | OpenFOAM Pre-Processing | 8 | October 28, 2015 04:25 |