<< gf_model_set SciGetFem gf_plot_1D >>

SciGetFem >> SciGetFem > gf_plot

gf_plot

This function plots a 2D or 3D finite elements field.

Calling Sequence

[hsurf, hcontour, hquiver, hmesh, hdefmesh]=gf_plot(mf,U[, options...])

Description

This function plots a 2D or 3D finite elements field.

The options are specified as pairs of 'option name'/'option value':

Examples

For example, plotting a scalar field on the border of a 3D mesh can be done with

// load the 'strange.mesh_fem' (found in the getfem_scilab/demos directory)
mf = gf_mesh_fem('load', '../../../contrib/aposteriori/aposteriori.meshfem') 
U = rand(1, gf_mesh_fem_get(mf, 'nbdof')); // random field that will be drawn
gf_plot(mf, U, 'refine', 25, 'cvlst', gf_mesh_get(mf,'outer faces'), 'mesh','on');

See Also


Report an issue
<< gf_model_set SciGetFem gf_plot_1D >>