Class xlifepp::Parallelepiped#

class Parallelepiped : public xlifepp::Hexahedron#

definition of a parallelepiped geometry in R^3

Parallelepiped constructors are based on a key-value system. Here are the available keys:

  • _v1, _v2, _v4, _v5: to define the vertices of the Parallelepiped

  • _nnodes: to define the number of nodes on each edge of the Parallelepiped

  • _hsteps: to define the local mesh steps on the vertices of the Parallelepiped

  • _domain_name: to define the domain name

  • _side_names/_face_name: to define the side names

  • _edge_name: to define the side of side names

  • _vertex_name: to define the side of side of side names

  • _varnames: to define the variable names for print purpose

Subclassed by xlifepp::Cuboid

Public Functions

Parallelepiped()#

default constructor

Parallelepiped(const Parallelepiped &p)#

copy constructor

Parallelepiped(Parameter p1, Parameter p2, Parameter p3, Parameter p4)#

key-value constructor

virtual string_t asString() const#

format as string

virtual std::vector<const Point*> boundNodes() const#

returns list of points on boundary (const)

inline virtual Geometry *clone() const#

virtual copy constructor

virtual void computeMB()#

computes the minimal box

virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> curves() const#

returns list of edges

inline virtual Parallelepiped &homothetize(const Parameter &p1)#

apply a homothety on a Parallelepiped (1 key)

inline virtual Parallelepiped &homothetize(const Parameter &p1, const Parameter &p2)#

apply a homothety on a Parallelepiped (2 keys)

inline virtual Parallelepiped &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#

apply a homothety on a Parallelepiped

inline virtual Parallelepiped &homothetize(real_t factor)#

apply a homothety on a Parallelepiped

virtual real_t measure() const#

return the length/area/volume of the geometry

inline number_t n1() const#

returns number of nodes on edges 1, 3, 5 and 7

inline number_t n2() const#

returns number of nodes on edges 2, 4, 6 and 8

inline number_t n3() const#

retusn number of nodes on edges 9, 10, 11 and 12

virtual std::vector<number_t> nbElementsForGmshGeneration() const#

return number of points/arcs/lines/loops/surfaces/extrudable elementsof a geometry (only for gmsh generation)

inline virtual dimen_t nbOctants() const#

returns number of octants

inline const std::vector<Point> &p() const#

accessor to vertices

inline Point p(number_t i) const#

accessor to vertex i

inline virtual Parallelepiped *parallelepiped()#

access to child Parallelepiped object

inline virtual const Parallelepiped *parallelepiped() const#

access to child Parallelepiped object (const)

inline virtual Parallelepiped &pointReflect(const Parameter &p1)#

apply a point reflection on a Parallelepiped (1 key)

inline virtual Parallelepiped &pointReflect(const Point &c = Point(0., 0., 0.))#

apply a point reflection on a Parallelepiped

inline virtual Parallelepiped &reflect2d(const Parameter &p1)#

apply a reflection2d on a Parallelepiped (1 key)

inline virtual Parallelepiped &reflect2d(const Parameter &p1, const Parameter &p2)#

apply a reflection2d on a Parallelepiped (2 keys)

inline virtual Parallelepiped &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#

apply a reflection2d on a Parallelepiped

inline virtual Parallelepiped &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#

apply a reflection2d on a Parallelepiped

inline virtual Parallelepiped &reflect3d(const Parameter &p1)#

apply a reflection3d on a Parallelepiped (1 key)

inline virtual Parallelepiped &reflect3d(const Parameter &p1, const Parameter &p2)#

apply a reflection3d on a Parallelepiped (2 keys)

inline virtual Parallelepiped &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#

apply a reflection3d on a Parallelepiped

inline virtual Parallelepiped &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#

apply a reflection3d on a Parallelepiped

inline virtual Parallelepiped &rotate2d(const Parameter &p1)#

apply a rotation 2D on a Parallelepiped (1 key)

inline virtual Parallelepiped &rotate2d(const Parameter &p1, const Parameter &p2)#

apply a rotation 2D on a Parallelepiped (2 keys)

inline virtual Parallelepiped &rotate2d(const Point &c, real_t angle = 0.)#

apply a rotation 2D on a Parallelepiped

inline virtual Parallelepiped &rotate3d(const Parameter &p1)#

apply a rotation 3D on a Parallelepiped (1 key)

inline virtual Parallelepiped &rotate3d(const Parameter &p1, const Parameter &p2)#

apply a rotation 3D on a Parallelepiped (2 keys)

inline virtual Parallelepiped &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#

apply a rotation 3D on a Parallelepiped (3 keys)

inline virtual Parallelepiped &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#

apply a rotation on a Parallelepiped

inline virtual Parallelepiped &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation on a Parallelepiped

inline virtual Parallelepiped &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 Parallelepiped

inline virtual Parallelepiped &rotate3d(real_t dx, real_t dy, real_t angle)#

apply a rotation 3D on a Parallelepiped

inline virtual Parallelepiped &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation 3D on a Parallelepiped

virtual void setFaces()#

set the faces vector when built

virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#

returns list of faces return number of points/arcs/lines/loops/surfaces/extrudable elementsof a geometry (only for gmsh generation)

virtual Parallelepiped &transform(const Transformation &t)#

apply a geometrical transformation on a Parallelepiped

inline virtual Parallelepiped &translate(const Parameter &p1)#

apply a translation on a Parallelepiped (1 key)

inline virtual Parallelepiped &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#

apply a translation on a Parallelepiped (3 reals version)

inline virtual Parallelepiped &translate(std::vector<real_t> u)#

apply a translation on a Parallelepiped (vector version)

virtual std::vector<Point*> wholeNodes()#

return list of every point (non const)

virtual std::vector<const Point*> wholeNodes() const#

return list of every point (const)