OptFEM3DP1 Toolbox  V1.0
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
 All Files Functions Variables Pages
GetMeshOptV2.m File Reference

Initialization of the Mesh structure from a FreeFEM++ mesh file % Optimized version. More...

Go to the source code of this file.

Functions

function Mesh = GetMeshOptV2 (cFileName, varargin)
 Initialization of the Mesh structure from a FreeFEM++ mesh file % Optimized version.
 
function Mesh = GetMeshOptV2>GetFreefemMesh (cFileName)
 
function Th = GetMeshOptV2>GetGmshMesh (cFileName)
 
function Mesh = GetMeshOptV2>GetMeditMesh (cFileName)
 

Detailed Description

Initialization of the Mesh structure from a FreeFEM++ mesh file % Optimized version.

Definition in file GetMeshOptV2.m.

Function Documentation

function Mesh = GetMeshOptV2 (   cFileName,
  varargin 
)

Initialization of the Mesh structure from a FreeFEM++ mesh file % Optimized version.

Example
Th=GetMesh(cube.mesh)
Copyright
See License issues
Parameters
cFileNameFreeFEM++ mesh file name (string)
varargin
GetMeshOptV2 ( ..., [ "format", format_value ] )
Named Parameters for varargin:
  • format format ( Default: freefem )
Return values
Meshmesh structure
Generated fields of Mesh:
  • nq —  total number of vertices.
  • q —  Array of vertices coordinates, 3-by-nq array. q(il,j) is the il-th coordinate of the j-th vertex, il in {1,3} and j in {1,...,nq}.
  • ql —  Array of vertices labels, 1-by-nq array.
  • nme —  total number of elements.
  • me —  Connectivity array, 4-by-nme array. me(jl,k) is the storage index of the jl-th vertex of the k-th triangle in the array q of vertices coordinates, jl in {1,..,4} and k in {1,...,nme}.
  • mel —  Array of elements labels, 1-by-nme array.
  • nbf —  total number of boundary faces, also denoted by $\nbf$
  • bf —  Connectivity array for boundary faces, 3-by-nbf array. bf(il,l) is the storage index of the il-th vertex of the l-th boundary face in the array q of vertices coordinates, il in {1,3} and l in {1,...,nbf}.
  • bfl —  Array of boundary faces labels, 1-by-nbf array.
  • volumes —  Array of volumes, 1-by-nme array. volumes(k) is the volume of the k-th triangle.
  • abf —  Array of faces areas, 1-by-nbf array. abf(j) is the area of the j-th boundary face.

Definition at line 17 of file GetMeshOptV2.m.

function Mesh = GetMeshOptV2>GetFreefemMesh (   cFileName)

Definition at line 96 of file GetMeshOptV2.m.

function Th = GetMeshOptV2>GetGmshMesh (   cFileName)

Definition at line 162 of file GetMeshOptV2.m.

function Mesh = GetMeshOptV2>GetMeditMesh (   cFileName)

Definition at line 175 of file GetMeshOptV2.m.