show

PURPOSE ^

SHOW Plots the solution on a domain consisting of triangles and parallelograms

SYNOPSIS ^

function show(Elements3,Elements4,Coordinates,u)

DESCRIPTION ^

SHOW   Plots the solution on a domain consisting of triangles and parallelograms
   SHOW(ELEMENTS3, ELEMENTS4, COORDINATES, U)
   Plots the solution U on the triangulation descibed by ELEMENTS3,
   ELEMENTS4 and COORDINATES using a two dimensional spline interpolation.

   ELEMENTS3 denotes a set of triangles with dimension (no. of triangles) x 3.

   ELEMENTS4 denotes a set of parallelograms (dimension (no. of parallelograms) x 4.

   COORDINATES is a (no. of coordinates) x 2 matrix which contains the
   coordiantes of the nodes of ELEMENTS3 and ELEMENTS4.

   U is a vector of size (no. of coordinates) which contains the function
   value at the nodes i.


   This function should not be modified.


   The code is available at http://anmc.epfl.ch/ and described in 
   further detail in 

   A. Abdulle and A. Nonnenmacher
   "A short and versatile finite element multiscale code for
   homogenization problems"
   Computer Methods in Applied Mechanics and Engineering,
   http://dx.doi.org/10.1016/j.cma.2009.03.019

   Please cite this article in any publication describing research
   performed using the software.


   Email           : assyr.abdulle@epfl.ch and achim.nonnenmacher@epfl.ch
   Last updated    : 04/29/2009 with MATLAB 7.4

   FE_HMM2D is Copyright (C) 2009 A. Abdulle and A. Nonnenmacher. 
   The software is provided free for non-commercial use unter the terms of 
   the GNU General Public License. See "copyright.m" for full details.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function show(Elements3,Elements4,Coordinates,u)
0002 %SHOW   Plots the solution on a domain consisting of triangles and parallelograms
0003 %   SHOW(ELEMENTS3, ELEMENTS4, COORDINATES, U)
0004 %   Plots the solution U on the triangulation descibed by ELEMENTS3,
0005 %   ELEMENTS4 and COORDINATES using a two dimensional spline interpolation.
0006 %
0007 %   ELEMENTS3 denotes a set of triangles with dimension (no. of triangles) x 3.
0008 %
0009 %   ELEMENTS4 denotes a set of parallelograms (dimension (no. of parallelograms) x 4.
0010 %
0011 %   COORDINATES is a (no. of coordinates) x 2 matrix which contains the
0012 %   coordiantes of the nodes of ELEMENTS3 and ELEMENTS4.
0013 %
0014 %   U is a vector of size (no. of coordinates) which contains the function
0015 %   value at the nodes i.
0016 %
0017 %
0018 %   This function should not be modified.
0019 %
0020 %
0021 %   The code is available at http://anmc.epfl.ch/ and described in
0022 %   further detail in
0023 %
0024 %   A. Abdulle and A. Nonnenmacher
0025 %   "A short and versatile finite element multiscale code for
0026 %   homogenization problems"
0027 %   Computer Methods in Applied Mechanics and Engineering,
0028 %   http://dx.doi.org/10.1016/j.cma.2009.03.019
0029 %
0030 %   Please cite this article in any publication describing research
0031 %   performed using the software.
0032 %
0033 %
0034 %   Email           : assyr.abdulle@epfl.ch and achim.nonnenmacher@epfl.ch
0035 %   Last updated    : 04/29/2009 with MATLAB 7.4
0036 %
0037 %   FE_HMM2D is Copyright (C) 2009 A. Abdulle and A. Nonnenmacher.
0038 %   The software is provided free for non-commercial use unter the terms of
0039 %   the GNU General Public License. See "copyright.m" for full details.
0040 
0041 %
0042 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0043 
0044 
0045 trisurf(Elements3,Coordinates(:,1),Coordinates(:,2),u','facecolor','interp')
0046 hold on
0047 trisurf(Elements4,Coordinates(:,1),Coordinates(:,2),u','facecolor','interp')
0048 hold off
0049 % view(10,40);
0050 view([-25 18]);
0051 % title('Solution of the 2-D multiscale problem');
0052 
0053 end

Generated on Tue 21-Jul-2009 10:55:32 by m2html © 2003