Diferencia entre revisiones de «Ttt»

De MateWiki
Saltar a: navegación, buscar
(Página blanqueada)
 
Línea 1: Línea 1:
{{ TrabajoED | Deformaciones de una placa plana. Grupo 6-A | [[:Categoría:Teoría de Campos|Teoría de Campos]]|[[:Categoría:TC19/20|2019-20]] | Nuestros nombres }}
 
  
[[Archivo:Mallado2.jpg|400px|thumb|right|Mesh of a parametrized solid]]
 
 
We show how to draw meshes of plane regions, representing solids, with Octave UPM. The objective is to be able of visualizing physical quantities in the mesh points. The simplest example was considered in [[Dibujar un sólido 2-D]]. Here we go further and consider a parametrized solid. As an example we consider an annulus. We follow the steps:
 
 
# We introduce a sampling of the two parameters, (u,v) with a suitable step
 
# With meshgrid command we define two matrixes with the u and v coordinates of the mesh points in the parameter region D
 
# We compute the (x,y) coordenates of the mesh points with the parametrization.
 
# We use the mesh command to draw the mesh and adjunst the axis. We see the mesh from the top. 
 
 
==  MATLAB code  ==
 
{{matlab|codigo=
 
h=0.1                  % sampling step
 
u=1:h:2;              % sampling of the interval [1,2]
 
v=0:h:2*pi+h;            % sampling of the interval [0,2*pi]
 
[uu,vv]=meshgrid(u,v); % matrixes of u and v coordinates
 
figure(1)
 
xx=uu.*cos(vv);        % parametrization
 
yy=uu.*sin(vv);
 
mesh(xx,yy,0*xx)      % Draw the mesh
 
axis([-3,3,-3,3])      % select region for drawing
 
view(2)                % See the pisture from the top
 
}}
 
 
==  To go further  ==
 
 
[[Visualization of a scalar field in a solid]]
 
 
[[Visualization of vector fields in a solid]]
 
 
[[Dibujar un sólido 2-D]]
 
 
[[Categoría:Curso ICE]]
 
[[Categoría:Teoría de Campos]]
 
[[Categoría:TC14/15]]
 
[[Categoría:TC15/16]]
 
[[Categoría:TC16/17]]
 
[[Categoría:TC17/18]]
 
[[Categoría:TC18/19]]
 
[[Categoría:TC19/20]]
 
[[Categoría:Articles in English]]
 
[[Categoría:Informática]]
 

Revisión actual del 20:12 25 nov 2025