User Tools

Site Tools


docs:utils:l2ip

L2IP

compute the L2 inner product between two fields

options

  -d        --digits             <int>   default == 7   number of digits
  -n        --normalize                                 normalize by norms of each field
  <flowfield>  (trailing arg 2)                         input field #1
  <flowfield>  (trailing arg 1)                         input field #2

usage

L2IP u.ff v.ff

returns


 \text{L2IP(u,v)} = ({\bf u}, {\bf v})  = \frac{1}{L_x L_y L_z} \int_{\Omega} {\bf u} \cdot {\bf v} \,\, d{\bf x}

or, if -n option is specified, L2IP(u,v) / (L2Norm(u) L2Norm(v))

docs/utils/l2ip.txt · Last modified: 2010/02/02 07:55 (external edit)