Global variables
ARGV
Array that contains all the command line arguments.
1 2 | for (int i = 0; i < ARGV.n; i++)
cout << ARGV[i] << endl;
|
See Command line arguments example for a complete example.
BoundaryEdge
Return 1 if the current edge is on a boundary, 0 otherwise.
1 | real B = int2d(Th)(BoundaryEdge);
|
CG
Conjugate gradient solver.
Usable in problem and solve definition
1 | problem Laplacian (U, V, solver=CG) = ...
|
Or in matrix construction
1 | matrix A = vLaplacian(Uh, Uh, solver=CG);
|
Or in set function
1 | set(A, solver=CG);
|
edgeOrientation
Sign of \(i-j\) if the current edge is \([q_i, q_j]\).
1 | real S = int1d(Th, 1)(edgeOrientation);
|
InternalEdge
Return 0 if the current edge is on a boundary, 1 otherwise.
1 | real I = int2d(Th)(InternalEdge);
|
label
Label number of a boundary if the current point is on a boundary, 0 otherwise.
1 | int L = Th(xB, yB).label;
|
lenEdge
Length of the current edge.
For an edge \([q_i, g_j]\), return \(|q_i-q_j|\).
1 | real L = int1d(Th, 1)(lenEdge);
|
N
Outward unit normal at the current point if it is on a curve defined by a border.
N.x, N.y, N.z
are respectively the \(x\), \(y\) and \(z\) components of the normal.
1 2 3 | func Nx = N.x;
func Ny = N.y;
func Nz = N.z;
|
region
Region number of the current point. If the point is outside, then region == notaregion
where notaregion
is a FreeFEM integer constant.
1 | int R = Th(xR, yR).region;
|