Extension: Geometries
#include "dg/geometries/geometries.h"
dg::geo::PolarGenerator Struct Reference

Polar coordinates. More...

Inheritance diagram for dg::geo::PolarGenerator:
[legend]

Public Member Functions

 PolarGenerator (double _r_min, double _r_max)
 Construct a ring with minimal and maximal radius. More...
 
virtual PolarGeneratorclone () const override final
 Abstract clone method that returns a copy on the heap. More...
 
- Public Member Functions inherited from dg::geo::aRealGenerator2d< real_type >
real_type width () const
 length in \( \zeta\) of the computational space More...
 
real_type height () const
 length in \( \eta\) of the computational space More...
 
bool isOrthogonal () const
 sparsity pattern for metric More...
 
void generate (const thrust::host_vector< real_type > &zeta1d, const thrust::host_vector< real_type > &eta1d, thrust::host_vector< real_type > &x, thrust::host_vector< real_type > &y, thrust::host_vector< real_type > &zetaX, thrust::host_vector< real_type > &zetaY, thrust::host_vector< real_type > &etaX, thrust::host_vector< real_type > &etaY) const
 Generate grid points and elements of the Jacobian. More...
 
virtual aRealGenerator2dclone () const =0
 Abstract clone method that returns a copy on the heap. More...
 
virtual ~aRealGenerator2d ()
 

Additional Inherited Members

- Protected Member Functions inherited from dg::geo::aRealGenerator2d< real_type >
 aRealGenerator2d ()
 empty More...
 
 aRealGenerator2d (const aRealGenerator2d &)
 empty More...
 
aRealGenerator2doperator= (const aRealGenerator2d &)
 return *this More...
 

Detailed Description

Polar coordinates.

\[ x = r \cos(\eta) \\ y = r \sin(\eta) \]

with \( r = \zeta + r_{min}\)

Constructor & Destructor Documentation

◆ PolarGenerator()

dg::geo::PolarGenerator::PolarGenerator ( double  _r_min,
double  _r_max 
)
inline

Construct a ring with minimal and maximal radius.

Parameters
_r_minminimum radius
_r_maxmaximum radius

Member Function Documentation

◆ clone()

virtual PolarGenerator * dg::geo::PolarGenerator::clone ( ) const
inlinefinaloverridevirtual

Abstract clone method that returns a copy on the heap.

Returns
a copy of *this on the heap

Implements dg::geo::aRealGenerator2d< real_type >.


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