GetFEM++  5.3
bgeot_torus.h
Go to the documentation of this file.
1 /* -*- c++ -*- (enables emacs c++ mode) */
2 /*===========================================================================
3 
4  Copyright (C) 2014-2017 Liang Jin Lim
5 
6  This file is a part of GetFEM++
7 
8  GetFEM++ is free software; you can redistribute it and/or modify it
9  under the terms of the GNU Lesser General Public License as published
10  by the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version along with the GCC Runtime Library
12  Exception either version 3.1 or (at your option) any later version.
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  License and GCC Runtime Library Exception for more details.
17  You should have received a copy of the GNU Lesser General Public License
18  along with this program; if not, write to the Free Software Foundation,
19  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, you may use this file as it is a part of a free
22  software library without restriction. Specifically, if other files
23  instantiate templates or use macros or inline functions from this file,
24  or you compile this file and link it with other files to produce an
25  executable, this file does not by itself cause the resulting executable
26  to be covered by the GNU Lesser General Public License. This exception
27  does not however invalidate any other reasons why the executable file
28  might be covered by the GNU Lesser General Public License.
29 
30 ===========================================================================*/
31 /**
32 @file bgeot_torus.h
33 @brief Provides mesh of torus.
34 @date May 2014
35 @author Liang Jin Lim
36 */
37 
38 #pragma once
39 
40 #ifndef BGEOT_TORUS_H__
41 #define BGEOT_TORUS_H__
42 
44 
45 namespace bgeot{
46 
47 /**An adaptor that adapts a two dimensional geometric_trans to include radial dimension.*/
49 
50  virtual void poly_vector_val(const base_node &, bgeot::base_vector &) const;
51  virtual void poly_vector_val(const base_node &, const bgeot::convex_ind_ct &,
52  bgeot::base_vector &) const;
53  virtual void poly_vector_grad(const base_node &, bgeot::base_matrix &) const;
54  inline virtual void poly_vector_grad(const base_node &,
55  const bgeot::convex_ind_ct &, bgeot::base_matrix &) const;
56  inline virtual void compute_K_matrix
57  (const bgeot::base_matrix &, const bgeot::base_matrix &, bgeot::base_matrix &) const;
58 
59  virtual void poly_vector_hess(const base_node &, bgeot::base_matrix &) const;
60 
62 
63  pgeometric_trans get_original_transformation() const;
64 
65 private:
66  pgeometric_trans poriginal_trans_;
67 };
68 
69 pconvex_structure torus_structure_descriptor(pconvex_structure ori_structure);
70 
71 bool is_torus_structure(pconvex_structure cvs);
72 
73 pgeometric_trans torus_geom_trans_descriptor(pgeometric_trans poriginal_trans);
74 
75 bool is_torus_geom_trans(pgeometric_trans pgt);
76 
77 }
78 
79 #endif /* BGEOT_TORUS_H__ */
Geometric transformations on convexes.
Description of a geometric transformation between a reference element and a real element.
std::shared_ptr< const convex_structure > pconvex_structure
Pointer on a convex structure description.
virtual void compute_K_matrix(const bgeot::base_matrix &, const bgeot::base_matrix &, bgeot::base_matrix &) const
compute K matrix from multiplication of G with gradient
Definition: bgeot_torus.cc:165
virtual void poly_vector_hess(const base_node &, bgeot::base_matrix &) const
Gives the hessian of the functions vector at a certain point.
Definition: bgeot_torus.cc:172
virtual void poly_vector_grad(const base_node &, bgeot::base_matrix &) const
Gives the gradient of the functions vector at a certain point.
Definition: bgeot_torus.cc:135
virtual void poly_vector_val(const base_node &, bgeot::base_vector &) const
Gives the value of the functions vector at a certain point.
Definition: bgeot_torus.cc:122
Basic Geometric Tools.
An adaptor that adapts a two dimensional geometric_trans to include radial dimension.
Definition: bgeot_torus.h:48
std::shared_ptr< const bgeot::geometric_trans > pgeometric_trans
pointer type for a geometric transformation