MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mfem::eltrans::GeometryUtils< Geometry::SQUARE > Struct Reference

#include <eltrans_basis.hpp>

Static Public Member Functions

static constexpr MFEM_HOST_DEVICE int Dimension ()
 
static bool MFEM_HOST_DEVICE inside (real_t x, real_t y)
 true if the given point (x,y) in ref space is inside the element
 
static bool MFEM_HOST_DEVICE project (real_t &x, real_t &y, real_t &dx, real_t &dy)
 

Detailed Description

Definition at line 61 of file eltrans_basis.hpp.

Member Function Documentation

◆ Dimension()

static constexpr MFEM_HOST_DEVICE int mfem::eltrans::GeometryUtils< Geometry::SQUARE >::Dimension ( )
inlinestaticconstexpr

Definition at line 63 of file eltrans_basis.hpp.

◆ inside()

static bool MFEM_HOST_DEVICE mfem::eltrans::GeometryUtils< Geometry::SQUARE >::inside ( real_t x,
real_t y )
inlinestatic

true if the given point (x,y) in ref space is inside the element

Definition at line 65 of file eltrans_basis.hpp.

◆ project()

static bool MFEM_HOST_DEVICE mfem::eltrans::GeometryUtils< Geometry::SQUARE >::project ( real_t & x,
real_t & y,
real_t & dx,
real_t & dy )
inlinestatic

Bound the reference coordinate (x,y) += (dx,dy) to be inside the square. dx and dy are updated to be (dx,dy) = project(x+dx,y+dy) - (x,y)

Returns
true if (x,y) + (dx,dy) hit a boundary

Definition at line 74 of file eltrans_basis.hpp.


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