Skip to content

Commit

Permalink
Docs: Add meshed circle
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Aug 31, 2023
1 parent bccd348 commit 63e45b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Binary file added docs/howto/images/circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions docs/howto/meshgen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Alternatively, these mesh-related tools are also provided as methods of a :class
:width: 400px


Lines, rectangles and cubes
***************************
Lines, rectangles, cubes and circles
************************************

Of course lines, rectangles, cubes and cylinders do not have to be constructed manually each time. Instead, some easier to use classes are povided by FElupe like :class:`felupe.mesh.Line`, :class:`felupe.Rectangle` or :class:`felupe.Cube`. For non equi-distant points per axis use :class:`felupe.Grid`.

Expand All @@ -68,6 +68,14 @@ Of course lines, rectangles, cubes and cylinders do not have to be constructed m
.. image:: images/cube.png
:width: 400px

There is also :class:`felupe.Circle` for the creation of a quad-mesh for a circle.

.. code-block:: python
circle = fem.Circle(radius=1.5, centerpoint=[1, 2], n=6, sections=[0, 90, 180, 270])
.. image:: images/circle.png
:width: 400px

Cylinders
*********
Expand All @@ -86,6 +94,7 @@ Cylinders are created by a revolution of a rectangle.
.. image:: images/cylinder.png
:width: 400px


Fill between boundaries
***********************

Expand Down

0 comments on commit 63e45b6

Please sign in to comment.