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

topoSetDict- cylinderTocell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2018, 04:46
Default topoSetDict- cylinderTocell
  #1
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8
Ben UWIHANGANYE is on a distinguished road
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!
Attached Files
File Type: gz ibcylinder.tar.gz (3.9 KB, 16 views)
Ben UWIHANGANYE is offline   Reply With Quote

Old   June 20, 2018, 16:29
Default
  #2
Member
 
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15
lebc is on a distinguished road
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
lebc is offline   Reply With Quote

Old   June 21, 2018, 01:30
Default
  #3
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8
Ben UWIHANGANYE is on a distinguished road
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!
Attached Images
File Type: png immersed cylinder.png (56.1 KB, 13 views)
File Type: png ibcyl.png (1.4 KB, 9 views)
Ben UWIHANGANYE is offline   Reply With Quote

Old   June 25, 2018, 18:18
Default
  #4
Member
 
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15
lebc is on a distinguished road
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
lebc is offline   Reply With Quote

Reply


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
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


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