Class xlifepp::Parallelepiped#

class Parallelepiped : public xlifepp::Hexahedron#

Inheritence diagram for xlifepp::Parallelepiped:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "7" [label="xlifepp::Cube" tooltip="xlifepp::Cube"] "6" [label="xlifepp::Cuboid" tooltip="xlifepp::Cuboid"] "5" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "2" [label="xlifepp::Hexahedron" tooltip="xlifepp::Hexahedron"] "1" [label="xlifepp::Parallelepiped" tooltip="xlifepp::Parallelepiped" fillcolor="#BFBFBF"] "3" [label="xlifepp::Polyhedron" tooltip="xlifepp::Polyhedron"] "4" [label="xlifepp::Volume" tooltip="xlifepp::Volume"] "7" -> "6" [dir=forward tooltip="public-inheritance"] "6" -> "1" [dir=forward tooltip="public-inheritance"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "3" -> "4" [dir=forward tooltip="public-inheritance"] "4" -> "5" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Parallelepiped:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "24" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "17" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "21" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "32" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "41" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"] "13" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"] "11" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"] "40" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "42" [label="std::list< T >" tooltip="std::list< T >"] "12" [label="std::map< K, T >" tooltip="std::map< K, T >"] "8" [label="std::vector< T >" tooltip="std::vector< T >"] "27" [label="std::vector< T >" tooltip="std::vector< T >"] "20" [label="std::vector< K >" tooltip="std::vector< K >"] "7" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"] "23" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "28" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "18" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "37" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"] "14" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "25" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "36" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"] "35" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"] "39" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "10" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "44" [label="std::vector< xlifepp::Polygon * >" tooltip="std::vector< xlifepp::Polygon * >"] "29" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"] "33" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "6" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"] "26" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "15" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"] "43" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"] "5" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "2" [label="xlifepp::Hexahedron" tooltip="xlifepp::Hexahedron"] "19" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "34" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"] "9" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"] "1" [label="xlifepp::Parallelepiped" tooltip="xlifepp::Parallelepiped" fillcolor="#BFBFBF"] "38" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "31" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"] "30" [label="xlifepp::Point" tooltip="xlifepp::Point"] "3" [label="xlifepp::Polyhedron" tooltip="xlifepp::Polyhedron"] "16" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "22" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "4" [label="xlifepp::Volume" tooltip="xlifepp::Volume"] "24" -> "25" [dir=forward tooltip="public-inheritance"] "24" -> "26" [dir=forward tooltip="template-instance"] "17" -> "18" [dir=forward tooltip="public-inheritance"] "17" -> "19" [dir=forward tooltip="template-instance"] "21" -> "18" [dir=forward tooltip="public-inheritance"] "21" -> "22" [dir=forward tooltip="template-instance"] "32" -> "33" [dir=forward tooltip="public-inheritance"] "32" -> "22" [dir=forward tooltip="template-instance"] "41" -> "42" [dir=forward tooltip="template-instance"] "13" -> "12" [dir=forward tooltip="template-instance"] "11" -> "12" [dir=forward tooltip="template-instance"] "40" -> "12" [dir=forward tooltip="template-instance"] "20" -> "8" [dir=forward tooltip="template-instance"] "7" -> "8" [dir=forward tooltip="template-instance"] "23" -> "8" [dir=forward tooltip="template-instance"] "28" -> "8" [dir=forward tooltip="template-instance"] "18" -> "8" [dir=forward tooltip="template-instance"] "37" -> "8" [dir=forward tooltip="template-instance"] "14" -> "8" [dir=forward tooltip="template-instance"] "25" -> "8" [dir=forward tooltip="template-instance"] "36" -> "8" [dir=forward tooltip="template-instance"] "35" -> "8" [dir=forward tooltip="template-instance"] "39" -> "8" [dir=forward tooltip="template-instance"] "10" -> "8" [dir=forward tooltip="template-instance"] "44" -> "8" [dir=forward tooltip="template-instance"] "29" -> "8" [dir=forward tooltip="template-instance"] "33" -> "8" [dir=forward tooltip="template-instance"] "6" -> "7" [dir=forward tooltip="usage"] "26" -> "27" [dir=forward tooltip="public-inheritance"] "15" -> "16" [dir=forward tooltip="usage"] "15" -> "24" [dir=forward tooltip="usage"] "15" -> "28" [dir=forward tooltip="usage"] "15" -> "18" [dir=forward tooltip="usage"] "15" -> "21" [dir=forward tooltip="usage"] "15" -> "29" [dir=forward tooltip="usage"] "15" -> "30" [dir=forward tooltip="usage"] "43" -> "43" [dir=forward tooltip="usage"] "43" -> "5" [dir=forward tooltip="usage"] "5" -> "6" [dir=forward tooltip="usage"] "5" -> "9" [dir=forward tooltip="usage"] "5" -> "11" [dir=forward tooltip="usage"] "5" -> "13" [dir=forward tooltip="usage"] "5" -> "14" [dir=forward tooltip="usage"] "5" -> "15" [dir=forward tooltip="usage"] "5" -> "31" [dir=forward tooltip="usage"] "5" -> "5" [dir=forward tooltip="usage"] "5" -> "43" [dir=forward tooltip="usage"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "19" -> "20" [dir=forward tooltip="public-inheritance"] "34" -> "5" [dir=forward tooltip="usage"] "34" -> "10" [dir=forward tooltip="usage"] "34" -> "35" [dir=forward tooltip="usage"] "34" -> "36" [dir=forward tooltip="usage"] "34" -> "28" [dir=forward tooltip="usage"] "34" -> "37" [dir=forward tooltip="usage"] "34" -> "34" [dir=forward tooltip="usage"] "9" -> "10" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "1" -> "10" [dir=forward tooltip="usage"] "38" -> "39" [dir=forward tooltip="usage"] "38" -> "40" [dir=forward tooltip="usage"] "31" -> "5" [dir=forward tooltip="usage"] "31" -> "21" [dir=forward tooltip="usage"] "31" -> "32" [dir=forward tooltip="usage"] "31" -> "34" [dir=forward tooltip="usage"] "31" -> "38" [dir=forward tooltip="usage"] "31" -> "41" [dir=forward tooltip="usage"] "30" -> "18" [dir=forward tooltip="public-inheritance"] "3" -> "4" [dir=forward tooltip="public-inheritance"] "3" -> "44" [dir=forward tooltip="usage"] "16" -> "17" [dir=forward tooltip="usage"] "16" -> "21" [dir=forward tooltip="usage"] "16" -> "23" [dir=forward tooltip="usage"] "22" -> "20" [dir=forward tooltip="public-inheritance"] "4" -> "5" [dir=forward tooltip="public-inheritance"] "4" -> "10" [dir=forward tooltip="usage"] "4" -> "28" [dir=forward tooltip="usage"] "4" -> "18" [dir=forward tooltip="usage"] }

definition of a parallelepiped geometry in R^3

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

  • _v1, _v2, _v3, _v4, _v5, _v6, _v7, _v8: to define the vertices of the Parallelepiped (_v3, _v6, _v7, _v8 are optional)

  • _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: to define the 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)#

constructor with 4 Parameter

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

constructor with 5 Parameter

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

constructor with 6 Parameter

Parallelepiped(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7)#

constructor with 7 Parameter

Parallelepiped(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7, Parameter p8)#

constructor with 8 Parameter

virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor

virtual void computeMB()#

computes the minimal box

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

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 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)