← Back to team overview

dolfin team mailing list archive

Re: Computation of Norms

 

Thanks. So I guess that means no such facility is available in C/C++ ?

On Wed, Jun 10, 2009 at 2:03 AM, Anders Logg<logg@xxxxxxxxx> wrote:
> On Tue, Jun 09, 2009 at 05:11:48PM -0500, Jehanzeb Hameed wrote:
>> Hello,
>>
>> Is there a builtin function in dolfin to compute L^2 or H_1 norms? If
>> so, can you please point it out. If not, are there support functions
>> (e.g. a Gauss Quadrature table, computation of Jacobians, etc) which
>> can help in this?
>
> Yes, this is available in the DOLFIN Python interface:
>
>  norm(v)
>
> The default computes the L^2 norm. Several options are available:
>
>  L^2:     norm(v, 'L2')
>  H^1:     norm(v, 'H1')      includes L^2 term
>  H^1_0:   norm(v, 'H10')     does not include L^2 term
>  H(div):  norm(v, 'Hdiv')    includes L^2 term
>  H(div):  norm(v, 'Hdiv0')   does not include L^2 term
>  H(curl): norm(v, 'Hcurl')   includes L^2 term
>  H(curl): norm(v, 'Hcurl0')  does not include L^2 term
>
> --
> Anders
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkovWqUACgkQTuwUCDsYZdGb3gCfa2gWnzealWzkjPoRj8hf3cr/
> 0EUAoJh4mpaIzRU9eCnnC+XWlupu6SV0
> =so4c
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
>


Follow ups

References