Class xlifepp::Quadrangle#
-
class Quadrangle : public xlifepp::Polygon#
-
Inheritence diagram for xlifepp::Quadrangle:
Collaboration diagram for xlifepp::Quadrangle:
definition of a quadrangular geometry in R^3
Quadrangle constructors are based on a key-value system. Here are the available keys:
_v1, _v2, _v3, _v4: to define the vertices of the Quadrangle, counterclockwise oriented
_nnodes: to define the number of nodes on each edge of the Quadrangle
_hsteps: to define the local mesh steps on the vertices of the Quadrangle
_domain_name: to define the domain name
_side_names: to define the side names
_varnames: to define the variable names for print purpose
Subclassed by xlifepp::Parallelogram
Public Functions
-
Quadrangle()#
-
default constructor
default quadrangle is [0,1]^2 no parametrization
-
Quadrangle(const Point &p1, const Point &p2, const Point &p3, const Point &p4, const std::vector<number_t> &n = std::vector<number_t>(4, 2), const string_t &domName = string_t())#
-
default constructor with 4 points
-
Quadrangle(const Point &p1, const Point &p2, const Point &p3, const Point &p4, const std::vector<real_t> &h, const string_t &domName = string_t())#
-
default constructor with 4 points
-
Quadrangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5)#
-
constructor with 5 Parameter
-
Quadrangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6)#
-
constructor with 6 Parameter
-
Quadrangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7)#
-
constructor with 7 Parameter
-
inline virtual ~Quadrangle()#
-
destructor
-
virtual string_t asString() const#
-
format as string
-
Vector<real_t> funParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
parametrization (1-u-v)*p1+u*p2+v*p4-uv(p2-p1+p4-p3)
parametrization (Q1) : p = p1+u*(p2-p1)+v*(p4-p1)-uv*(p2-p1+p4-p3), (u,v) in [0,1]x[0,1]
-
inline virtual Quadrangle &homothetize(const Parameter &p1)#
-
apply a homothety on a Quadrangle (1 key)
-
inline virtual Quadrangle &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a Quadrangle (2 keys)
-
inline virtual Quadrangle &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a Quadrangle
-
inline virtual Quadrangle &homothetize(real_t factor)#
-
apply a homothety on a Quadrangle
-
Vector<real_t> invParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
inverse of parametrization (u,v)=invf(p)
-
virtual real_t measure() const#
-
return the length/area/volume of the geometry
-
inline virtual Quadrangle &pointReflect(const Parameter &p1)#
-
apply a point reflection on a Quadrangle (1 key)
-
inline virtual Quadrangle &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a Quadrangle
-
inline virtual Quadrangle *quadrangle()#
-
access to child Quadrangle object
-
inline virtual const Quadrangle *quadrangle() const#
-
access to child Quadrangle object (const)
-
inline virtual Quadrangle &reflect2d(const Parameter &p1)#
-
apply a reflection2d on a Quadrangle (1 key)
-
inline virtual Quadrangle &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a Quadrangle (2 keys)
-
inline virtual Quadrangle &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a Quadrangle
-
inline virtual Quadrangle &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a Quadrangle
-
inline virtual Quadrangle &reflect3d(const Parameter &p1)#
-
apply a reflection3d on a Quadrangle (1 key)
-
inline virtual Quadrangle &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a Quadrangle (2 keys)
-
inline virtual Quadrangle &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a Quadrangle
-
inline virtual Quadrangle &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a Quadrangle
-
inline virtual Quadrangle &rotate2d(const Parameter &p1)#
-
apply a rotation 2D on a Quadrangle (1 key)
-
inline virtual Quadrangle &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a Quadrangle (2 keys)
-
inline virtual Quadrangle &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a Quadrangle
-
inline virtual Quadrangle &rotate3d(const Parameter &p1)#
-
apply a rotation 3D on a Quadrangle (1 key)
-
inline virtual Quadrangle &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a Quadrangle (2 keys)
-
inline virtual Quadrangle &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a Quadrangle (3 keys)
-
inline virtual Quadrangle &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a Quadrangle
-
inline virtual Quadrangle &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a Quadrangle
-
inline virtual Quadrangle &rotate3d(const Point &c, std::vector<real_t> d = std::vector<real_t>(3, 0.), real_t angle = 0.)#
-
apply a rotation 3D on a Quadrangle
-
inline virtual Quadrangle &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a Quadrangle
-
inline virtual Quadrangle &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a Quadrangle
-
virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#
-
returns list of surfaces (const)
-
virtual Quadrangle &transform(const Transformation &t)#
-
apply a geometrical transformation on a Quadrangle
-
inline virtual Quadrangle &translate(const Parameter &p1)#
-
apply a translation on a Quadrangle (1 key)
-
inline virtual Quadrangle &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#
-
apply a translation on a Quadrangle (3 reals version)
-
inline virtual Quadrangle &translate(std::vector<real_t> u)#
-
apply a translation on a Quadrangle (vector version)