OptFEM3DP1 Toolbox: base/CubeMesh.m File Reference

| OptFEM3DP1 Toolbox 20130618_070730 Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D

- Main Page
- Related Pages
- Files

- File List
- File Members

All Files Functions Variables Pages
Functions
CubeMesh.m File Reference

Initialization of a minimalist 3D Mesh structure for the cube domain. More...

Go to the source code of this file.

## Functions
function Th = | CubeMesh (N)
| Initialization of a minimalist 3D Mesh structure for the cube domain.

## Detailed Description

Initialization of a minimalist 3D Mesh structure for the cube domain.

Definition in file CubeMesh.m.

## Function Documentation

function Th = CubeMesh | ( |  | N | ) |

Initialization of a minimalist 3D Mesh structure for the cube domain.

Cube domain is

figure : CubeMesh function with N=3

There are vertices on each edges and vertices on each boundary faces.

See Also
  ComputeVolumesOpt

Copyright
  See License issues

Parameters

  N | integer, number, minus one, of vertices on a edge

Return values

  Th | minimalist mesh structure

Generated fields of Mesh:
  - `nq —` total number of vertices, also denoted by .
  - `q —` Array of vertices coordinates, array.
    is the -th coordinate of the -th vertex, and
  - `nme —` total number of elements, also denoted by .
  - `me —` Connectivity array, array.
    is the storage index of the -th vertex of the -th tetrahedron in the array of vertices coordinates, and .
  - `volumes —` Array of volumes, . volumes(k) is the volume of the k-th tetrahedron.

Definition at line 17 of file CubeMesh.m.