1
#ifndef _RHEO_GRAD_GRAD_S_H
2
#define _RHEO_GRAD_GRAD_S_H
4
/// This file is part of Rheolef.
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
8
/// Rheolef is free software; you can redistribute it and/or modify
9
/// it under the terms of the GNU General Public License as published by
10
/// the Free Software Foundation; either version 2 of the License, or
11
/// (at your option) any later version.
13
/// Rheolef is distributed in the hope that it will be useful,
14
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
/// GNU General Public License for more details.
18
/// You should have received a copy of the GNU General Public License
19
/// along with Rheolef; if not, write to the Free Software
20
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
/// =========================================================================
25
NAME: @code{grad_grad_s} -- Beltrami-Laplace operator on a surface
28
@cindex level set method
31
form(const space& Bh, const space& Bh, "grad_grad_s", phi_h);
35
On a surface Gamma defined as the zero of a level-set function,
36
assembly the matrix associated to the following form:
40
m(u,v) = \int_\Gamma \nabla_s u . \nabla_s v \, dx
48
m(u,v) = | grad_s(u).grad_s(v) dx
55
The Bh space may be a @code{P1} finite element space on the band arround the zero level
57
Notice that elements different from P1 are not yet supported.
60
space Vh (lambda, "P1");
61
field phi_h = interpolate(Vh, phi);
62
geo beta = banded_level_set (phi_h);
63
space Bh (beta, "P1");
65
field phi_bh = interpolate(Bh, phi);
66
form m (Bh, Bh, "grad_grad_s", phi_bh);
68
AUTHOR: Lara Aborm, Jocelyn Etienne, Pierre Saramito
74
#include "rheolef/form_element_rep.h"
77
class grad_grad_s: public form_element_rep {
81
grad_grad_s() : form_element_rep() {}
85
void operator() (const geo_element& K, ublas::matrix<Float>& m) const;
86
void check_after_initialize () const;
89
#endif // _RHEO_GRAD_GRAD_S_H