Hello everyone
Is there a function in Fenics to create cylinders similar to BoxMesh ?
For instance to make a mesh for a rectangle one would need to do this.
from dolfin import *
from mshr import *
L=0.12
xmax=0.06
ymax=0.06
wf=0.01
#Making a cylindrical geometry
mesho = BoxMesh(Point(0.0,0.0,0.0),Point(xmax,ymax,L),30,30,40)
The alternative method for creating cylinders that I know is this.
cylinder = Cylinder(Point(0, 0, 0), Point(xmax,ymax,0.001), 0, ymax)
domain = cylinder
Which is not what I am looking for.
Thanks
dokken
July 28, 2020, 5:43am
2
When you say similar to boxmesh, what do you imply? As you said, you can create cylindrical meshes with mshr, see for instance: How to make a 3D Cylinder Mesh?
dokken
July 28, 2020, 1:16pm
4
There are no built in cylinders.
I do not see the issue with using mshr to create the cylinder? Is there any issue with that?
I am unable to model heat dissipation over on a cylinder with mshr. I am only able to model heat using the built in meshes.
dokken
July 28, 2020, 1:19pm
6
Have you tried using gmsh to create the cylinder?
Also, you need to provide a minimal example that shows what issue you get by using a cylinder instead of a built in box. Does it work using a box built with mshr?
I don’t know how to use gmsh. And yes I tried using the mshr for a box and that didn’t work either.
dokken
July 28, 2020, 2:27pm
8
Please supply a minimal example illustrating your issue, as there must be an error in your code.
I was able to figure it out the problem after noticing that I had to scale it. Thanks for your responses.