![]() |
Reference documentation for deal.II version 8.4.2
|
#include <deal.II/grid/manifold_lib.h>
Public Member Functions | |
| FunctionManifold (const Function< chartdim > &push_forward_function, const Function< spacedim > &pull_back_function, const Point< chartdim > periodicity=Point< chartdim >(), const double tolerance=1e-10) | |
| FunctionManifold (const std::string push_forward_expression, const std::string pull_back_expression, const Point< chartdim > periodicity=Point< chartdim >(), const typename FunctionParser< spacedim >::ConstMap=typename FunctionParser< spacedim >::ConstMap(), const std::string chart_vars=FunctionParser< chartdim >::default_variable_names(), const std::string space_vars=FunctionParser< spacedim >::default_variable_names(), const double tolerance=1e-10) | |
| ~FunctionManifold () | |
| virtual Point< spacedim > | push_forward (const Point< chartdim > &chart_point) const |
| virtual Point< chartdim > | pull_back (const Point< spacedim > &space_point) const |
Public Member Functions inherited from ChartManifold< dim, spacedim, chartdim > | |
| ChartManifold (const Point< chartdim > periodicity=Point< chartdim >()) | |
| virtual | ~ChartManifold () |
| virtual Point< spacedim > | get_new_point (const Quadrature< spacedim > &quad) const |
Public Member Functions inherited from Manifold< dim, spacedim > | |
| virtual | ~Manifold () |
| virtual Point< spacedim > | project_to_manifold (const std::vector< Point< spacedim > > &surrounding_points, const Point< spacedim > &candidate) const |
| virtual Point< spacedim > | get_new_point_on_line (const typename Triangulation< dim, spacedim >::line_iterator &line) const |
| virtual Point< spacedim > | get_new_point_on_quad (const typename Triangulation< dim, spacedim >::quad_iterator &quad) const |
| virtual Point< spacedim > | get_new_point_on_hex (const typename Triangulation< dim, spacedim >::hex_iterator &hex) const |
| Point< spacedim > | get_new_point_on_face (const typename Triangulation< dim, spacedim >::face_iterator &face) const |
| Point< spacedim > | get_new_point_on_cell (const typename Triangulation< dim, spacedim >::cell_iterator &cell) const |
Public Member Functions inherited from Subscriptor | |
| Subscriptor () | |
| Subscriptor (const Subscriptor &) | |
| virtual | ~Subscriptor () |
| Subscriptor & | operator= (const Subscriptor &) |
| void | subscribe (const char *identifier=0) const |
| void | unsubscribe (const char *identifier=0) const |
| unsigned int | n_subscriptions () const |
| void | list_subscribers () const |
| DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects."<< "\"<< "(Additional information: "<< arg3<< ")\"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.") | |
| DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.") | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| const FunctionParser< spacedim >::ConstMap | const_map |
| SmartPointer< const Function< chartdim >, FunctionManifold< dim, spacedim, chartdim > > | push_forward_function |
| SmartPointer< const Function< spacedim >, FunctionManifold< dim, spacedim, chartdim > > | pull_back_function |
| const double | tolerance |
| const bool | owns_pointers |
Manifold description derived from ChartManifold, based on explicit Function<spacedim> and Function<chartdim> objects describing the push_forward() and pull_back() functions.
You can use this Manifold object to describe any arbitrary shape domain, as long as you can express it in terms of an invertible map, for which you provide both the forward expression, and the inverse expression.
In debug mode, a check is performed to verify that the transformations are actually one the inverse of the other.
Definition at line 198 of file manifold_lib.h.
| FunctionManifold< dim, spacedim, chartdim >::FunctionManifold | ( | const Function< chartdim > & | push_forward_function, |
| const Function< spacedim > & | pull_back_function, | ||
| const Point< chartdim > | periodicity = Point<chartdim>(), |
||
| const double | tolerance = 1e-10 |
||
| ) |
Explicit functions constructor. Takes a push_forward function of spacedim components, and a pull_back function of chartdim components. See the documentation of the base class ChartManifold for the meaning of the optional periodicity argument.
The tolerance argument is used in debug mode to actually check that the two functions are one the inverse of the other.
Definition at line 207 of file manifold_lib.cc.
| FunctionManifold< dim, spacedim, chartdim >::FunctionManifold | ( | const std::string | push_forward_expression, |
| const std::string | pull_back_expression, | ||
| const Point< chartdim > | periodicity = Point<chartdim>(), |
||
| const typename FunctionParser< spacedim >::ConstMap | const_map = typename FunctionParser<spacedim>::ConstMap(), |
||
| const std::string | chart_vars = FunctionParser<chartdim>::default_variable_names(), |
||
| const std::string | space_vars = FunctionParser<spacedim>::default_variable_names(), |
||
| const double | tolerance = 1e-10 |
||
| ) |
Expressions constructor. Takes the expressions of the push_forward function of spacedim components, and of the pull_back function of chartdim components. See the documentation of the base class ChartManifold for the meaning of the optional periodicity argument.
The strings should be the readable by the default constructor of the FunctionParser classes. You can specify custom variable expressions with the last two optional arguments. If you don't, the default names are used, i.e., "x,y,z".
The tolerance argument is used in debug mode to actually check that the two functions are one the inverse of the other.
Definition at line 223 of file manifold_lib.cc.
| FunctionManifold< dim, spacedim, chartdim >::~FunctionManifold | ( | ) |
If needed, we delete the pointers we own.
Definition at line 244 of file manifold_lib.cc.
|
virtual |
Given a point in the chartdim coordinate system, uses the push_forward_function to compute the push_forward of points in chartdim space dimensions to spacedim space dimensions.
Implements ChartManifold< dim, spacedim, chartdim >.
Definition at line 260 of file manifold_lib.cc.
|
virtual |
Given a point in the spacedim coordinate system, uses the pull_back_function to compute the pull_back of points in spacedim space dimensions to chartdim space dimensions.
Implements ChartManifold< dim, spacedim, chartdim >.
Definition at line 284 of file manifold_lib.cc.
|
private |
Constants for the FunctionParser classes.
Definition at line 262 of file manifold_lib.h.
|
private |
Pointer to the push_forward function.
Definition at line 268 of file manifold_lib.h.
|
private |
Pointer to the pull_back function.
Definition at line 274 of file manifold_lib.h.
|
private |
Relative tolerance. In debug mode, we check that the two functions provided at construction time are actually one the inverse of the other. This value is used as relative tolerance in this check.
Definition at line 281 of file manifold_lib.h.
|
private |
Check ownership of the smart pointers. Indicates whether this class is the owner of the objects pointed to by the previous two member variables. This value is set in the constructor of the class. If true, then the destructor will delete the function objects pointed to be the two pointers.
Definition at line 290 of file manifold_lib.h.
1.8.12