t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_geometry_linear_axis_aligned.hxx
Go to the documentation of this file.
1 /*
2  This file is part of t8code.
3  t8code is a C library to manage a collection (a forest) of multiple
4  connected adaptive space-trees of general element classes in parallel.
5 
6  Copyright (C) 2015 the developers
7 
8  t8code 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  t8code 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 t8code; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
28 #ifndef T8_GEOMETRY_LINEAR_AXIS_ALIGNED_HXX
29 #define T8_GEOMETRY_LINEAR_AXIS_ALIGNED_HXX
30 
31 #include <t8.h>
34 
36 {
37  public:
47 
48  /* Base constructor with no arguments. We need this since it
49  * is called from derived class constructors.
50  * Sets dimension and name to invalid values. */
51 
53  {
54  }
55 
59 
64  inline t8_geometry_type_t
66  {
68  };
69 
78  virtual void
79  t8_geom_evaluate (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords,
80  double *out_coords) const;
81 
91  virtual void
92  t8_geom_evaluate_jacobian (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords,
93  double *jacobian) const;
94 
104  virtual void
106  const double *points, const int num_points, int *is_inside,
107  const double tolerance) const;
108 
113  virtual bool
115 };
116 
117 #endif /* !T8_GEOMETRY_LINEAR_AXIS_ALIGNED_HXX */
This structure holds the connectivity data of the coarse mesh.
Definition: t8_cmesh_types.h:88
This structure is private to the implementation.
Definition: t8_forest_types.h:69
Definition: t8_geometry_linear_axis_aligned.hxx:36
t8_geometry_type_t t8_geom_get_type() const
Get the type of this geometry.
Definition: t8_geometry_linear_axis_aligned.hxx:65
virtual void t8_geom_evaluate(t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords, double *out_coords) const
Maps points in the reference space .
Definition: t8_geometry_linear_axis_aligned.cxx:55
virtual void t8_geom_point_batch_inside_element(t8_forest_t forest, t8_locidx_t ltreeid, const t8_element_t *element, const double *points, const int num_points, int *is_inside, const double tolerance) const
Definition: t8_geometry_linear_axis_aligned.cxx:72
virtual void t8_geom_evaluate_jacobian(t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, const size_t num_coords, double *jacobian) const
Compute the jacobian of the t8_geom_evaluate map at a point in the reference space .
Definition: t8_geometry_linear_axis_aligned.cxx:64
virtual ~t8_geometry_linear_axis_aligned()
The destructor.
Definition: t8_geometry_linear_axis_aligned.cxx:50
virtual bool t8_geom_tree_negative_volume() const
Check if the currently active tree has a negative volume.
Definition: t8_geometry_linear_axis_aligned.cxx:107
Definition: t8_geometry_with_vertices.hxx:40
This is the administrative header file for t8code.
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:100
int32_t t8_locidx_t
A type for processor-local indexing.
Definition: t8.h:89
struct t8_element t8_element_t
Opaque structure for a generic element, only used as pointer.
Definition: t8_element.h:42
@ T8_GEOMETRY_TYPE_LINEAR_AXIS_ALIGNED
The linear, axis aligned geometry uses only 2 vertices, since it is axis aligned.
Definition: t8_geometry.h:41
enum t8_geometry_type t8_geometry_type_t
This enumeration contains all possible geometries.
This header file provides a C interface for functions for the t8_geometry_with_vertices class.
Implements the inherited struct t8_geometry_with_vertices, which can be used for geometries that use ...