Quote:
mm from what i have read about the subject, in OpenFOAM the cylinder is created from adding an arc section to a square section. but from your post: i do not get why you need this ? (are you trying to simulate a 2D simulation?) at least from what i know in of doing a cylinder with only separation in the axis, would not be possible...but i insist that i can not imagine why you would like to do that (i am new to CFD so maybe i am not following you..) maybe if you explain me a little bit more i could help you more :) best regards. |
Hi Otaolafr,
Thank you for your answer! I try to do this because I need a cylinder mesh for simulations with an other program. In this other program the simulation time is very long if I have so many cells - maybe there is a way to connect the cells on the round basement? And beside of that I need to be able to fix the initial parameters of the cells on one side of the cylinder and I can't fix so many... Also I have researched whether there is a possibility to connect all cells of the grid to one cell but so far I do not think that works ...Maybe you have an idea? I would be very grateful! |
Quote:
|
Oh I'm sorry, I don't need a cylinder with just one cell. I just thought that maybe there is a command that can unify all of them, that would solve the problem of having so many. Having a mesh with 5 cells would be alright... What I need is a cylinder that has just one cell in the round basement and not thousands like in the picture of the mesh I posted. And additionally it would be perfect if the mesh would only be discretized in one direction - that is all I want ☺️ but I think that is to much wanted! 😐
|
Following alternative may be of interest for some visitors of this thread:
https://www.cfd-online.com/Forums/op...blockmesh.html PS: IMHO the proposed whole-cylinder with inner wedged elements may lead to numerical troubles along the axis... Therefore I'd rather recommend to use hex-elements whenever possible. Most algorithms will behave more gracefully! |
I once found the following relevant script from Ehsan Madadi, might be useful for some of you to generate cylinder meshes with OpenFOAM:
https://www.ehsanmadadi.com/cylinder-mesh/ |
A simple example
Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
All times are GMT -4. The time now is 04:33. |