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 ()
 
const std::array< double, dim > & get_coordinates () const
 
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 >

A class that represents a point in a chosen coordinate system.

Definition at line 963 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() [1/2]

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_coordinates() [2/2]

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

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 coordinate system of this natural point

Definition at line 1008 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 1013 of file utilities.h.


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