Download FFC User Manual
Transcript
FFC User Manual 4.5 4.6 4.7 Anders Logg 4.4.2 Scalar subtraction: - . . . . . . . . . . . . . . . . . . . 31 4.4.3 Scalar multiplication: * . . . . . . . . . . . . . . . . . . 31 4.4.4 Scalar division: / . . . . . . . . . . . . . . . . . . . . . 32 Vector operators . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.5.1 Component access: v[i] . . . . . . . . . . . . . . . . . 32 4.5.2 Scalar product: dot(v, w) . . . . . . . . . . . . . . . . 33 4.5.3 Vector product: cross(v, w) . . . . . . . . . . . . . . 33 4.5.4 Matrix product: mult(A, B) 4.5.5 Transpose: transp(A) . . . . . . . . . . . . . . . . . . 33 4.5.6 Trace: trace(A) . . . . . . . . . . . . . . . . . . . . . 34 4.5.7 Vector length: len(v) . . . . . . . . . . . . . . . . . . 34 4.5.8 Rank: rank(v) . . . . . . . . . . . . . . . . . . . . . . 34 4.5.9 Vectorization: vec(v) . . . . . . . . . . . . . . . . . . 34 . . . . . . . . . . . . . . 33 Differential operators . . . . . . . . . . . . . . . . . . . . . . . 35 4.6.1 Scalar partial derivative: D(v, i) . . . . . . . . . . . . 35 4.6.2 Gradient: grad(v) . . . . . . . . . . . . . . . . . . . . 35 4.6.3 Divergence: div(v) . . . . . . . . . . . . . . . . . . . . 36 4.6.4 Rotation: rot(v) . . . . . . . . . . . . . . . . . . . . . 36 Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.7.1 Integration over the interior: *dx . . . . . . . . . . . . 36 4.7.2 Integration over the boundary: *ds . . . . . . . . . . . 37 5