Intrepid2
Public Member Functions | List of all members
Intrepid2::UnitSquareToCircle< Scalar > Class Template Reference

Maps unit square [-1,1]x[-1,1] to circle of radius 1. More...

#include <Intrepid2_ProjectedGeometryExamples.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Scalar operator() (const Kokkos::Array< Scalar, 2 > &coords, const ordinal_type &d) const
 coordinate values
 
KOKKOS_INLINE_FUNCTION Scalar operator() (const Kokkos::Array< Scalar, 2 > &coords, const ordinal_type &d1, const ordinal_type &d2) const
 gradient of the mapping
 

Detailed Description

template<typename Scalar>
class Intrepid2::UnitSquareToCircle< Scalar >

Maps unit square [-1,1]x[-1,1] to circle of radius 1.

See https://www.xarg.org/2017/07/how-to-map-a-square-to-a-circle/

Definition at line 82 of file Intrepid2_ProjectedGeometryExamples.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename Scalar >
KOKKOS_INLINE_FUNCTION Scalar Intrepid2::UnitSquareToCircle< Scalar >::operator() ( const Kokkos::Array< Scalar, 2 > & coords,
const ordinal_type & d ) const
inline

coordinate values

Definition at line 87 of file Intrepid2_ProjectedGeometryExamples.hpp.

◆ operator()() [2/2]

template<typename Scalar >
KOKKOS_INLINE_FUNCTION Scalar Intrepid2::UnitSquareToCircle< Scalar >::operator() ( const Kokkos::Array< Scalar, 2 > & coords,
const ordinal_type & d1,
const ordinal_type & d2 ) const
inline

gradient of the mapping

Definition at line 100 of file Intrepid2_ProjectedGeometryExamples.hpp.

References INTREPID2_TEST_FOR_EXCEPTION_DEVICE_SAFE.


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