This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

ft08-navier-stokes-cylinder, but I got a Triangle

0 votes

I am unable to get the correct picture when running this FEniCS example code. When I output the results into a *.pvd file and open it in paraview, I have flow around a triangle instead of a circle. I really don't know what the problem is, does anyone have advice? I also do not know how to view the results that are exported into *.xdmf files.

asked Mar 18, 2017 by mzachritz FEniCS Novice (170 points)

1 Answer

0 votes
 
Best answer

Yes, increase the number of segments when creating the circle. I assume you are talking about this example from the tutorial. In that case, you can use something like this:

cylinder = Circle(Point(0.2, 0.2), 0.05, segments=32)

Consider reporting this at the issue tracker for the FEniCS tutorial.

answered Mar 20, 2017 by johannr FEniCS Expert (17,350 points)
selected Mar 21, 2017 by mzachritz

That worked beautifully, Thank you very much!
Give tell me what resource I can use to read about fenics commands and the options like, this segment option in the circle command?
I want good material while I keep trying to learn.

Thanks again!

The documentation for mshr is unfortunately not available online AFAIK but you can for example use pydoc mshr and pydoc mshr.Circle.

...