rbmatlab 0.10.01
Public Member Functions | Public Attributes
onedgrid Class Reference

Detailed Description

a one dimensional grid implementation

Definition at line 1 of file onedgrid.m.

Inheritance diagram for onedgrid:
Inheritance graph
[legend]
Collaboration diagram for onedgrid:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 onedgrid ( varargin)
 constructor of a 1d grid
function gridp gridpart ( eind)
 function extracting a part of a triagrid or rectgrid defined by the given element indices in the vector eind.
function onedgrid gcopy copy ()
 deep copies the grid

Public Attributes

 global_eind
 global enumeration of entity indices [1:nelements]

Constructor & Destructor Documentation

onedgrid.onedgrid (   varargin)

constructor of a 1d grid

Parameters:
vararginvarargin
Required fields of params:
  • xnumintervals —  number of elements along x directions
  • xrange —  interval covered along the x-axes

Definition at line 22 of file onedgrid.m.


Member Function Documentation

function onedgrid gcopy = onedgrid.copy ( ) [virtual]

deep copies the grid

Return values:
gcopya copy

Implements gridbase.

Definition at line 110 of file onedgrid.m.

function gridp = onedgrid.gridpart (   eind)

function extracting a part of a triagrid or rectgrid defined by the given element indices in the vector eind.

Note:
The neighbour information of the new resulting boundaries is set to -10
The properties gridbase.hmin, gridbase.alpha and the distance-information in the new boundary elements are simply copied. I.e. these fields do not completely meet the definition in the constructor. They might be chosen slightly different, such that the gridp would be really identical to the result generated by the constructor on the subset of points.
Parameters:
eindvector of cell indices which shall be extracted from the grid.
Return values:
gridpthe partial grid with extracted cells eind.
Generated fields of gridp:
  • nelements —  nelements
  • nvertices —  nvertices
  • A —  A
  • Ainv —  Ainv
  • X —  X
  • Y —  Y
  • VI —  VI
  • CX —  CX
  • CY —  CY
  • NBI —  NBI
  • INB —  INB
  • EL —  EL
  • DC —  DC
  • NX —  NX
  • NY —  NY
  • ECX —  ECX
  • ECY —  ECY
  • SX —  SX
  • SY —  SY
  • ESX —  ESX
  • ESY —  ESY
  • DS —  DS

Reimplemented from gridbase.

Definition at line 2 of file gridpart.m.


The documentation for this class was generated from the following files:
All Classes Namespaces Files Functions Variables