ASPECT
Public Member Functions | Private Attributes | List of all members
aspect::Utilities::NaturalCoordinate< dim > Class Template Reference

Public Member Functions

 NaturalCoordinate (Point< dim > &position, const GeometryModel::Interface< dim > &geometry_model)
 
 NaturalCoordinate (const std::array< double, dim > &coord, const Utilities::Coordinates::CoordinateSystem &coord_system)
 
std::array< double, dim > & get_coordinates ()
 
std::array< double, dim-1 > get_surface_coordinates () const
 
double get_depth_coordinate () const
 

Private Attributes

Utilities::Coordinates::CoordinateSystem coordinate_system
 
std::array< double, dim > coordinates
 

Detailed Description

template<int dim>
class aspect::Utilities::NaturalCoordinate< dim >

Definition at line 1262 of file utilities.h.

Constructor & Destructor Documentation

§ NaturalCoordinate() [1/2]

template<int dim>
aspect::Utilities::NaturalCoordinate< dim >::NaturalCoordinate ( Point< dim > &  position,
const GeometryModel::Interface< dim > &  geometry_model 
)

Constructor based on providing the geometry model as a pointer.

§ NaturalCoordinate() [2/2]

template<int dim>
aspect::Utilities::NaturalCoordinate< dim >::NaturalCoordinate ( const std::array< double, dim > &  coord,
const Utilities::Coordinates::CoordinateSystem coord_system 
)

Constructor based on providing the coordinates and associated coordinate system.

Member Function Documentation

§ get_coordinates()

template<int dim>
std::array<double,dim>& aspect::Utilities::NaturalCoordinate< dim >::get_coordinates ( )

Returns the coordinates in the given coordinate system, which may not be Cartesian.

§ get_surface_coordinates()

template<int dim>
std::array<double,dim-1> aspect::Utilities::NaturalCoordinate< dim >::get_surface_coordinates ( ) const

The coordinate that represents the 'surface' directions in the chosen coordinate system.

§ get_depth_coordinate()

template<int dim>
double aspect::Utilities::NaturalCoordinate< dim >::get_depth_coordinate ( ) const

The coordinate that represents the 'depth' direction in the chosen coordinate system.

Member Data Documentation

§ coordinate_system

template<int dim>
Utilities::Coordinates::CoordinateSystem aspect::Utilities::NaturalCoordinate< dim >::coordinate_system
private

An enum which stores the the coordinate system of this natural point

Definition at line 1301 of file utilities.h.

§ coordinates

template<int dim>
std::array<double,dim> aspect::Utilities::NaturalCoordinate< dim >::coordinates
private

An array which stores the coordinates in the coordinates system

Definition at line 1306 of file utilities.h.


The documentation for this class was generated from the following file: