Create scalar on mesh¶
make_scalar_field_dofs
is a function defined in triangle_mesh.c.
Synopsis:
-
double *
make_scalar_field_dofs
(int edge_ct_x, int edge_ct_y)¶
Formal Arguments:
edge_ct_x
: number of edges inX
directionedge_ct_y
: number of edges inY
direction
Description: Creates a scalar on a rectangular triangle mesh. Number of nodes in X
direction is edge_ct_x``+1 and similarly
for ``Y
direction.
Preconditions:
- There must be at least 1 edge in the x direction. (low-cost)
- There must be at least 1 edge in the y direction. (low-cost)
See Also:
- Triangle Mesh: Introduction for current chapter