FEATool Multiphysics  v1.10
Finite Element Analysis Toolbox
postextrude.m File Reference

Description

POSTEXTRUDE Extrude 2D fea data to 3D.

[ FEA ] = POSTEXTRUDE( FEA, NZ, LZ, AX ) Extrudes a 2D FEA problem struct to 3D for postprocessing. NZ is the number of cells in the direction of extrusion (default 5), and LZ the corresponding extrusion length (default 1). AX [-3..3] optionally rotates and aligns the extruded grid with the selected axis (default -2 which is the negative y-axis). Non-vertex ordered dependent variable solutions will be interpolated to the grid point vertices.

Examples
  1) Extrude and plot a backwards facing step flow field.

  fea = ex_navierstokes4( <tt>iplot</tt>, false );

  feap = postextrude( fea );

  postplot( feap, <tt>isoexpr</tt>,<tt>sqrt(u^2+v^2)</tt>, <tt>sliceexpr</tt>, <tt>p</tt>, ...
                  <tt>slicex</tt>, [], <tt>slicey</tt>, -sqrt(eps), <tt>slicez</tt>, [], ...
                  <tt>colorbar</tt>, <tt>off</tt>, <tt>axis</tt>, <tt>off</tt> )

  2) Extrude and plot a deflected beam.

  fea = ex_piezoelectric1( <tt>iplot</tt>, false );

  feap = postextrude( fea, 5, 6e-3 );

  postplot( feap, <tt>surfexpr</tt>, <tt>u</tt>, <tt>deformexpr</tt>, {<tt>u</tt>,0,<tt>v</tt>}, ...
                  <tt>deformscale</tt>, 2, <tt>colorbar</tt>, <tt>off</tt>, <tt>axis</tt>, <tt>off</tt> )
  plotgeom( feap, <tt>labels</tt>, <tt>off</tt> )

  axis normal
  axis( [ 0, 0.121, -20e-3, 20e-3, -20e-3, 20e-3 ] )
  view( 33, 24 )
See also
postplot, gridextrude