|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
30 <<
"The radius <" << arg1 <<
"> can not be negative.");
34 <<
"The azimuth angle <" << arg1 <<
"> is not in [0,2Pi).");
38 <<
"The polar angle <" << arg1 <<
"> is not in [0,Pi].");
42 std::array<double, dim>
45 std::array<double, dim> scoord;
48 scoord[0] = position.
norm();
50 scoord[1] =
std::atan2(position(1), position(0));
60 scoord[2] =
std::acos(position(2) / scoord[0]);
67 template <std::
size_t dim>
82 ccoord[0] = scoord[0] * std::cos(scoord[1]);
83 ccoord[1] = scoord[0] * std::sin(scoord[1]);
91 ccoord[0] = scoord[0] * std::sin(scoord[2]) * std::cos(scoord[1]);
92 ccoord[1] = scoord[0] * std::sin(scoord[2]) * std::sin(scoord[1]);
93 ccoord[2] = scoord[0] * std::cos(scoord[2]);
105 #include "geometric_utilities.inst"
static ::ExceptionBase & ExcNotImplemented()
static ::ExceptionBase & SphericalPolar(double arg1)
static ::ExceptionBase & SphericalAzimuth(double arg1)
Expression atan2(const Expression &y, const Expression &x)
numbers::NumberTraits< Number >::real_type norm() const
#define DEAL_II_NAMESPACE_OPEN
#define DeclException1(Exception1, type1, outsequence)
std::array< double, dim > to_spherical(const Point< dim > &point)
#define Assert(cond, exc)
Point< dim > from_spherical(const std::array< double, dim > &scoord)
T min(const T &t, const MPI_Comm &mpi_communicator)
static ::ExceptionBase & NegativeRadius(double arg1)
Expression acos(const Expression &x)
#define DEAL_II_NAMESPACE_CLOSE
static constexpr double PI