~ubuntu-branches/ubuntu/trusty/rheolef/trusty

« back to all changes in this revision

Viewing changes to nfem/form_element/d2_ds2_d_ds.h

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito
  • Date: 2012-04-06 09:12:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120406091221-m58me99p1nxqui49
Tags: 6.0-1
* New upstream release 6.0 (major changes):
  - massively distributed and parallel support
  - full FEM characteristic method (Lagrange-Gakerkin method) support
  - enhanced users documentation 
  - source code supports g++-4.7 (closes: #667356)
* debian/control: dependencies for MPI distributed solvers added
* debian/rules: build commands simplified
* debian/librheolef-dev.install: man1/* to man9/* added
* debian/changelog: package description rewritted (closes: #661689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _RHEO_D2_DS2_D_DS_H
 
2
#define _RHEO_D2_DS2_D_DS_H
 
3
///
 
4
/// This file is part of Rheolef.
 
5
///
 
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
 
7
///
 
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.
 
12
///
 
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.
 
17
///
 
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
 
21
/// 
 
22
/// =========================================================================
 
23
 
 
24
/*Class:d2_ds2_d_ds
 
25
NAME: @code{d2_ds2_d_ds} -- Curvilinear derivative
 
26
@bfindex d2_ds2_d_ds
 
27
@apindex P0
 
28
@apindex P1
 
29
@apindex P2
 
30
@apindex P1d
 
31
@clindex domain
 
32
@clindex space
 
33
@cindex  boundary conditions
 
34
SYNOPSIS:
 
35
    @example
 
36
        form(const space& V, const space& W, "d2_ds2_d_ds");
 
37
    @end example
 
38
DESCRIPTION:       
 
39
    @noindent
 
40
    Assembly the matrix associated to the following integral:
 
41
@iftex
 
42
@tex
 
43
    $$
 
44
        m(u,v) = \int_\Gamma  du/ds dv/ds \, ds
 
45
    $$
 
46
@end tex
 
47
@end iftex
 
48
@ifnottex
 
49
    @example
 
50
                 /
 
51
                 |
 
52
        m(u,v) = |  d2u/ds2 dv/ds ds
 
53
                 |
 
54
                 / Gamma
 
55
    @end example
 
56
@end ifnottex
 
57
    @noindent
 
58
    The V and W space may be either a 
 
59
    @code{P0}, @code{P1}, @code{P2},
 
60
    or @code{P1d}
 
61
    finite 
 
62
    element space for building a form
 
63
    @pxref{form class}.
 
64
  
 
65
AUTHOR: 
 
66
    Spectro Grenoble--CNRS, 38402 St-Martin-d'Heres cedex, France
 
67
    | Jocelyn.Etienne@ujf-grenoble.fr
 
68
DATE:
 
69
    20 July 2007
 
70
End:
 
71
*/
 
72
 
 
73
#include "rheolef/form_element_rep.h"
 
74
namespace rheolef { 
 
75
 
 
76
class d2_ds2_d_ds: public form_element_rep {
 
77
public:
 
78
// allocator:
 
79
 
 
80
    d2_ds2_d_ds() : form_element_rep() {}
 
81
 
 
82
// virtual accessor:
 
83
 
 
84
    void operator() (const geo_element& K, ublas::matrix<Float>& m) const;
 
85
    void check_after_initialize () const;
 
86
};
 
87
}// namespace rheolef
 
88
#endif // _RHEO_D_DS_D_DS_H