a one dimensional grid implementation
Definition at line 17 of file onedgrid.m.
Public Member Functions | |
onedgrid (varargin) | |
constructor of a 1d grid More... | |
function gridp = | gridpart (eind) |
function onedgrid gcopy = | copy () |
deep copies the grid More... | |
![]() | |
gridbase () | |
default constructor for gridbase | |
function res = | check_consistency () |
function checking the consistency of a polygonal grid, i.e. checking, whether the edge centroids correspond (implicit neighbour-index test) More... | |
function | display () |
default implementation for display method for unstructured polygonal grids. is used by rectgrid and triagrid | |
function F = | edge_quad_eval (elids, edgeids, degree, FF) |
Compute an edge integral of a scalar function in various edges simultaneously. Approximation by Gauss-quadratures are performed. More... | |
function F = | edge_quad_eval_mean (elids, edgeids, degree, FF) |
Compute an edge-average integral of a scalar function in various edges simultaneously. Approximation by Gauss-quadratures are performed. More... | |
function PP = | edge_quad_points (elids, edgeids, degree) |
get the evaluation points for a quadrature over edges of the given grid. More... | |
function [
P1 , P2 ] = | get_edge_points (elids, edgeids) |
function extracting edge coordinates from the grid. More... | |
function ENBI = | get_enbi (edge, tstep) |
function assembling a matrix with the 5 neighbour's cell indices that are needed in order to compute the gradient over the edge given by edge in each row. see also the sketch below. More... | |
function gridp = | gridpart (eind) |
function extracting a part of a triagrid or rectgrid defined by the given element indices in the vector eind . More... | |
function | inspect (params) |
function plotting various properties of the current grid. More... | |
function p = | plot_polygon_grid (params) |
plot method for a 2D polygonal grid. This routine can be used for triangular and rectangular grids. More... | |
function p = | plot_element_data (data, plot_params) |
plot method for a 2d polygonal grid and elementwise constant data routine can be used for triangular and rectangular grids. More... | |
function | plot_element_data_sequence (data, plot_params) |
plot of a sequence of element_data on the given grid (constructed if empty). performs simple call of plot_data_sequence. More... | |
function p = | plot_vertex_data (data, params) |
plot method for vertex data on a 2D polygonal grid. More... | |
function gridbase grid = | set_boundary_types (params) |
function setting the boundary types of a polygonal grid. More... | |
Public Attributes | |
global_eind | |
global enumeration of entity indices [1:nelements] | |
![]() | |
nelements | |
number of overall elements (leaf + nonleaf) | |
nvertices | |
number of vertices | |
nneigh | |
number of neighbor elements | |
A | |
vector of element area | |
Ainv | |
vector of inverted element area | |
VI | |
matrix of vertex indices: VI(i,j) is the global index of j -th vertex of element i | |
X | |
vector of vertex x-coordinates | |
Y | |
vector of vertex y-coordinates | |
CX | |
vector of centroid x-values | |
CY | |
vector of centroid y-values | |
NBI | |
NBI(i,j) = element index of j -th neighbour of element i boundary faces are set to -1 or negative values are requested by params.boundary_type | |
INB | |
INB(i,j) = local edge number in NBI(i,j) leading from element NBI(i,j) to element i , i.e. satisfying NBI(NBI(i,j), INB(i,j)) = i | |
EL | |
EL(i,j) = length of edge from element i to neighbour j | |
DC | |
DC(i,j) = distance from centroid of element i to NB j for boundary elements, this is the distance to the reflected element (for use in boundary treatment) | |
NX | |
NX(i,j) = x-coordinate of unit outer normal of edge from el i to NB j | |
NY | |
NY(i,j) = y-coordinate of unit outer normal of edge from el i to NB j | |
ECX | |
ECX(i,j) = x-coordinate of midpoint of edge from el i to NB j | |
ECY | |
ECY(i,j) = x-coordinate of midpoint of edge from el i to NB j | |
SX | |
vector of x-coordinates of point \(S_i\) (for rect: identical to centroids) More... | |
SY | |
vector of y-coordinates of point \(S_i\) (for rect: identical to centroids) More... | |
ESX | |
ESX(i,j) = x-coordinate of point \(S_ij\) on edge el i to NB j | |
ESY | |
ESY(i,j) = x-coordinate of point \(S_ij\) on edge el i to NB j | |
DS | |
DS(i,j) = distance from \(S_i\) of element i to \(S_j\) of NB j for boundary elements, this is the distance to the reflected element (for use in boundary treatment) | |
hmin | |
minimal element-diameter | |
alpha | |
geometry bound (simultaneously satisfying \[\alpha h_i^d \leq A(T_i),\] \[\alpha \text{diam}(T_i) \leq h_i^{d-1}\] and \[\alpha h_i \leq \text{distance(midpoint i to any neighbour)}\] | |
JIT | |
Jacobian inverse transposed JIT(i,:,:) is a 2x2 -matrix of the Jacobian Inverse Transposed on element i | |
onedgrid.onedgrid | ( | varargin | ) |
constructor of a 1d grid
varargin | varargin |
xnumintervals —
number of elements along x directions xrange —
interval covered along the x-axes Definition at line 40 of file onedgrid.m.
|
virtual |
deep copies the grid
gcopy | a copy |
Implements gridbase.
Definition at line 98 of file onedgrid.m.