![]() |
Reference documentation for deal.II version 9.1.1
|
#include <deal.II/base/function_spherical.h>
Public Member Functions | |
Spherical (const Point< dim > ¢er=Point< dim >(), const unsigned int n_components=1) | |
virtual double | value (const Point< dim > &point, const unsigned int component=0) const override |
virtual Tensor< 1, dim > | gradient (const Point< dim > &p, const unsigned int component=0) const override |
virtual SymmetricTensor< 2, dim > | hessian (const Point< dim > &p, const unsigned int component=0) const override |
![]() | |
Function (const unsigned int n_components=1, const time_type initial_time=0.0) | |
virtual | ~Function () override=0 |
Function & | operator= (const Function &f) |
virtual void | vector_value (const Point< dim > &p, Vector< double > &values) const |
virtual void | value_list (const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const |
virtual void | vector_value_list (const std::vector< Point< dim >> &points, std::vector< Vector< double >> &values) const |
virtual void | vector_values (const std::vector< Point< dim >> &points, std::vector< std::vector< double >> &values) const |
virtual void | vector_gradient (const Point< dim > &p, std::vector< Tensor< 1, dim, double >> &gradients) const |
virtual void | gradient_list (const std::vector< Point< dim >> &points, std::vector< Tensor< 1, dim, double >> &gradients, const unsigned int component=0) const |
virtual void | vector_gradients (const std::vector< Point< dim >> &points, std::vector< std::vector< Tensor< 1, dim, double >>> &gradients) const |
virtual void | vector_gradient_list (const std::vector< Point< dim >> &points, std::vector< std::vector< Tensor< 1, dim, double >>> &gradients) const |
virtual double | laplacian (const Point< dim > &p, const unsigned int component=0) const |
virtual void | vector_laplacian (const Point< dim > &p, Vector< double > &values) const |
virtual void | laplacian_list (const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const |
virtual void | vector_laplacian_list (const std::vector< Point< dim >> &points, std::vector< Vector< double >> &values) const |
virtual void | vector_hessian (const Point< dim > &p, std::vector< SymmetricTensor< 2, dim, double >> &values) const |
virtual void | hessian_list (const std::vector< Point< dim >> &points, std::vector< SymmetricTensor< 2, dim, double >> &values, const unsigned int component=0) const |
virtual void | vector_hessian_list (const std::vector< Point< dim >> &points, std::vector< std::vector< SymmetricTensor< 2, dim, double >>> &values) const |
std::size_t | memory_consumption () const |
![]() | |
FunctionTime (const Number initial_time=Number(0.0)) | |
virtual | ~FunctionTime ()=default |
Number | get_time () const |
virtual void | set_time (const Number new_time) |
virtual void | advance_time (const Number delta_t) |
![]() | |
Subscriptor () | |
Subscriptor (const Subscriptor &) | |
Subscriptor (Subscriptor &&) noexcept | |
virtual | ~Subscriptor () |
Subscriptor & | operator= (const Subscriptor &) |
Subscriptor & | operator= (Subscriptor &&) noexcept |
void | subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
void | unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
unsigned int | n_subscriptions () const |
template<typename StreamType > | |
void | list_subscribers (StreamType &stream) const |
void | list_subscribers () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Member Functions | |
virtual double | svalue (const std::array< double, dim > &sp, const unsigned int component) const |
virtual std::array< double, dim > | sgradient (const std::array< double, dim > &sp, const unsigned int component) const |
virtual std::array< double, 6 > | shessian (const std::array< double, dim > &sp, const unsigned int component) const |
Private Attributes | |
const Tensor< 1, dim > | coordinate_system_offset |
Additional Inherited Members | |
![]() | |
using | time_type = typename FunctionTime< typename numbers::NumberTraits< double >::real_type >::time_type |
![]() | |
using | time_type = Number |
![]() | |
static ::ExceptionBase & | ExcInUse (int arg1, std::string arg2, std::string arg3) |
static ::ExceptionBase & | ExcNoSubscriber (std::string arg1, std::string arg2) |
![]() | |
const unsigned int | n_components |
![]() | |
static const unsigned int | dimension |
An abstract base class for a scalar-valued function \(f=f(r,\theta,\phi)\) defined in spherical coordinates. This class wraps transformation of values, gradients and hessians from spherical coordinates to the Cartesian coordinate system used by the Function base class. Therefore derived classes only need to implement those functions in spherical coordinates (specifically svalue(), sgradient() and shessian() ). The convention for angles is the same as in GeometricUtilities::Coordinates.
Definition at line 45 of file function_spherical.h.
Functions::Spherical< dim >::Spherical | ( | const Point< dim > & | center = Point<dim>() , |
const unsigned int | n_components = 1 |
||
) |
Constructor which should be provided with center
defining the origin of the coordinate system.
Note that components of this function are treated as entirely separate quantities – not as the components of a vector that will be re-interpreted in a different coordinate system.
Definition at line 156 of file function_spherical.cc.
|
overridevirtual |
Return the value of the function at the given point.
This function converts the given point to spherical coordinates, calls svalue() with it, and returns the result.
Reimplemented from Function< dim >.
Definition at line 168 of file function_spherical.cc.
|
overridevirtual |
Return the gradient with respect to the Cartesian coordinates at point p
.
This function converts the given point to spherical coordinates, calls sgradient() with it, and converts the result into Cartesian coordinates.
Reimplemented from Function< dim >.
Definition at line 181 of file function_spherical.cc.
|
overridevirtual |
Return the Hessian with respect to the Cartesian coordinates at point p
.
This function converts the given point to spherical coordinates, calls sgradient and shessian() with it, and converts the result into Cartesian coordinates.
Reimplemented from Function< dim >.
Definition at line 237 of file function_spherical.cc.
|
privatevirtual |
Return the value at point sp
. Here, sp
is provided in spherical coordinates.
Definition at line 317 of file function_spherical.cc.
|
privatevirtual |
Return the gradient in spherical coordinates.
The returned object should contain derivatives in the following order: \(\{ f_{,r},\, f_{,\theta},\, f_{,\phi}\}\).
Definition at line 328 of file function_spherical.cc.
|
privatevirtual |
Return the Hessian in spherical coordinates.
The returned object should contain derivatives in the following order: \(\{ f_{,rr},\, f_{,\theta\theta},\, f_{,\phi\phi},\, f_{,r\theta},\, f_{,r\phi},\, f_{,\theta\phi}\}\).
Definition at line 339 of file function_spherical.cc.
|
private |
A vector from the origin to the center of spherical coordinate system.
Definition at line 127 of file function_spherical.h.