GetFEM  5.4.2
bgeot_torus.h
Go to the documentation of this file.
1 /* -*- c++ -*- (enables emacs c++ mode) */
2 /*===========================================================================
3 
4  Copyright (C) 2014-2020 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  virtual void project_into_reference_convex(base_node &) const;
61 
63 
64  pgeometric_trans get_original_transformation() const;
65 
66 private:
67  pgeometric_trans poriginal_trans_;
68 };
69 
70 pconvex_structure torus_structure_descriptor(pconvex_structure ori_structure);
71 
72 bool is_torus_structure(pconvex_structure cvs);
73 
74 pgeometric_trans torus_geom_trans_descriptor(pgeometric_trans poriginal_trans);
75 
76 bool is_torus_geom_trans(pgeometric_trans pgt);
77 
78 }
79 
80 #endif /* BGEOT_TORUS_H__ */
bgeot::geometric_trans
Description of a geometric transformation between a reference element and a real element.
Definition: bgeot_geometric_trans.h:105
bgeot::torus_geom_trans::poly_vector_hess
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
bgeot::torus_geom_trans::poly_vector_grad
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
bgeot::torus_geom_trans::poly_vector_val
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
bgeot::torus_geom_trans::compute_K_matrix
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
bgeot::small_vector< scalar_type >
bgeot_geometric_trans.h
Geometric transformations on convexes.
bgeot
Basic Geometric Tools.
Definition: bgeot_convex_ref.cc:27
bgeot::pconvex_structure
std::shared_ptr< const convex_structure > pconvex_structure
Pointer on a convex structure description.
Definition: bgeot_convex_structure.h:54
bgeot::torus_geom_trans
An adaptor that adapts a two dimensional geometric_trans to include radial dimension.
Definition: bgeot_torus.h:48
bgeot::pgeometric_trans
std::shared_ptr< const bgeot::geometric_trans > pgeometric_trans
pointer type for a geometric transformation
Definition: bgeot_geometric_trans.h:186

Rabisu Mirror Service We provide mirrors to support Open source communities. Our mirror server is located in Istanbul/Turkey region.

Please do not hesitate to contact mirror@rabisu.com for new open source mirror submissions.