|
1 month ago | |
---|---|---|
.. | ||
README.md | 1 month ago | |
__init__.py | 1 month ago | |
ascalarbar.py | 1 month ago | |
awefem.py | 1 month ago | |
calc_surface_area.py | 1 month ago | |
demo_eigenvalue.py | 1 month ago | |
demo_submesh.py | 1 month ago | |
elasticbeam.py | 1 month ago | |
elasticity1.py | 1 month ago | |
elasticity2.py | 1 month ago | |
elasticity3.py | 1 month ago | |
elasticity4.py | 1 month ago | |
elastodynamics.py | 1 month ago | |
heat_gaussian.py | 1 month ago | |
heatconv.py | 1 month ago | |
magnetostatics.py | 1 month ago | |
markmesh.py | 1 month ago | |
mixed-poisson.py | 1 month ago | |
navier-stokes_lshape.py | 1 month ago | |
point_load.py | 1 month ago | |
poisson.py | 1 month ago | |
poisson_membrane.py | 1 month ago | |
run_all.sh | 1 month ago | |
scalemesh.py | 1 month ago | |
stokes-iterative.py | 1 month ago | |
stokes1.py | 1 month ago |
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()