neilzhu 3677b9d41f first commit 1 month ago
..
README.md 3677b9d41f first commit 1 month ago
__init__.py 3677b9d41f first commit 1 month ago
ascalarbar.py 3677b9d41f first commit 1 month ago
awefem.py 3677b9d41f first commit 1 month ago
calc_surface_area.py 3677b9d41f first commit 1 month ago
demo_eigenvalue.py 3677b9d41f first commit 1 month ago
demo_submesh.py 3677b9d41f first commit 1 month ago
elasticbeam.py 3677b9d41f first commit 1 month ago
elasticity1.py 3677b9d41f first commit 1 month ago
elasticity2.py 3677b9d41f first commit 1 month ago
elasticity3.py 3677b9d41f first commit 1 month ago
elasticity4.py 3677b9d41f first commit 1 month ago
elastodynamics.py 3677b9d41f first commit 1 month ago
heat_gaussian.py 3677b9d41f first commit 1 month ago
heatconv.py 3677b9d41f first commit 1 month ago
magnetostatics.py 3677b9d41f first commit 1 month ago
markmesh.py 3677b9d41f first commit 1 month ago
mixed-poisson.py 3677b9d41f first commit 1 month ago
navier-stokes_lshape.py 3677b9d41f first commit 1 month ago
point_load.py 3677b9d41f first commit 1 month ago
poisson.py 3677b9d41f first commit 1 month ago
poisson_membrane.py 3677b9d41f first commit 1 month ago
run_all.sh 3677b9d41f first commit 1 month ago
scalemesh.py 3677b9d41f first commit 1 month ago
stokes-iterative.py 3677b9d41f first commit 1 month ago
stokes1.py 3677b9d41f first commit 1 month ago

README.md

FEniCS/Dolfin examples

In this directory you will find a bunch of examples of to visualize meshes in conjunction with FEniCS/Dolfin package.

The plot() function emulates the matplotlib functionality.

Install mshr with

conda install conda-forge::mshr

To gain more control on the property of the shown objects one can access the output of the plot() method and change their properties, e.g.:

plt = plot(u_solution)
msh = plt.actors[0]
msh.color('blue').alpha(0.5).cut_with_plane()  # etc
plt.show()