Extension: Geometries
#include "dg/geometries/geometries.h"
dg::geo::RealCurvilinearGridX2d< real_type > Struct Template Reference

A two-dimensional grid based on curvilinear coordinates. More...

Inheritance diagram for dg::geo::RealCurvilinearGridX2d< real_type >:
[legend]

Public Member Functions

 RealCurvilinearGridX2d (const aRealGeneratorX2d< real_type > &generator, real_type fx, real_type fy, unsigned n, unsigned Nx, unsigned Ny, dg::bc bcx=dg::DIR, bc bcy=dg::PER)
 Constructor. More...
 
const aRealGeneratorX2d< real_type > & generator () const
 
virtual RealCurvilinearGridX2dclone () const override final
 
- Public Member Functions inherited from dg::aRealGeometryX2d< real_type >
SparseTensor< thrust::host_vector< real_type > > jacobian () const
 
SparseTensor< thrust::host_vector< real_type > > metric () const
 
std::vector< thrust::host_vector< real_type > > map () const
 
virtual aRealGeometryX2dclone () const =0
 
virtual ~aRealGeometryX2d ()=default
 
- Public Member Functions inherited from dg::aRealTopologyX2d< class real_type >
real_type x0 () const
 
real_type x1 () const
 
real_type y0 () const
 
real_type y1 () const
 
real_type lx () const
 
real_type ly () const
 
real_type hx () const
 
real_type hy () const
 
real_type fx () const
 
real_type fy () const
 
unsigned n () const
 
unsigned Nx () const
 
unsigned inner_Nx () const
 
unsigned outer_Nx () const
 
unsigned Ny () const
 
unsigned inner_Ny () const
 
unsigned outer_Ny () const
 
bc bcx () const
 
bc bcy () const
 
RealGrid2d< real_type > grid () const
 
const DLT< real_type > & dlt () const
 
unsigned size () const
 
void display (std::ostream &os=std::cout) const
 
void shift_topologic (real_type x0, real_type y0, real_type &x1, real_type &y1) const
 
bool contains (real_type x, real_type y) const
 

Additional Inherited Members

- Public Types inherited from dg::aRealTopologyX2d< class real_type >
typedef real_type value_type
 
typedef thrust::host_vector< real_type > host_vector
 
typedef RealGridX2d< real_type > host_grid
 
- Protected Member Functions inherited from dg::aRealGeometryX2d< real_type >
 aRealGeometryX2d (const aRealGeometryX2d &src)=default
 
aRealGeometryX2doperator= (const aRealGeometryX2d &src)=default
 
- Protected Member Functions inherited from dg::aRealTopologyX2d< class real_type >
 ~aRealTopologyX2d ()=default
 
 aRealTopologyX2d (real_type x0, real_type x1, real_type y0, real_type y1, real_type fx, real_type fy, unsigned n, unsigned Nx, unsigned Ny, bc bcx, bc bcy)
 
 aRealTopologyX2d (const aRealTopologyX2d &src)=default
 
aRealTopologyX2doperator= (const aRealTopologyX2d &src)=default
 

Detailed Description

template<class real_type>
struct dg::geo::RealCurvilinearGridX2d< real_type >

A two-dimensional grid based on curvilinear coordinates.

Constructor & Destructor Documentation

◆ RealCurvilinearGridX2d()

template<class real_type >
dg::geo::RealCurvilinearGridX2d< real_type >::RealCurvilinearGridX2d ( const aRealGeneratorX2d< real_type > &  generator,
real_type  fx,
real_type  fy,
unsigned  n,
unsigned  Nx,
unsigned  Ny,
dg::bc  bcx = dg::DIR,
bc  bcy = dg::PER 
)
inline

Constructor.

Parameters
generatormust generate an orthogonal grid
fxa rational number indicating partition of the x - direction
fya rational number indicating partition of the y - direction
nnumber of polynomial coefficients
Nxnumber of cells in first coordinate
Nynumber of cells in second coordinate
bcxboundary condition in first coordinate
bcyboundary condition in second coordinate

Member Function Documentation

◆ clone()

template<class real_type >
virtual RealCurvilinearGridX2d * dg::geo::RealCurvilinearGridX2d< real_type >::clone ( ) const
inlinefinaloverridevirtual

◆ generator()

template<class real_type >
const aRealGeneratorX2d< real_type > & dg::geo::RealCurvilinearGridX2d< real_type >::generator ( ) const
inline

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