Class xlifepp::Cuboid#

class Cuboid : public xlifepp::Parallelepiped#

Inheritence diagram for xlifepp::Cuboid:

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"] "1" [label="xlifepp::Cuboid" tooltip="xlifepp::Cuboid" fillcolor="#BFBFBF"] "6" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "3" [label="xlifepp::Hexahedron" tooltip="xlifepp::Hexahedron"] "2" [label="xlifepp::Parallelepiped" tooltip="xlifepp::Parallelepiped"] "4" [label="xlifepp::Polyhedron" tooltip="xlifepp::Polyhedron"] "5" [label="xlifepp::Volume" tooltip="xlifepp::Volume"] "7" -> "1" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "3" -> "4" [dir=forward tooltip="public-inheritance"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "4" -> "5" [dir=forward tooltip="public-inheritance"] "5" -> "6" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Cuboid:

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

definition of a cuboid (=rectangular parallelepiped) geometry in R^3

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

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

  • _center: to define the center of the Cuboid

  • _origin: to define the first vertex of the Cuboid (same definition as _v1)

  • _xlength, _ylength, _zlength: the lengths of the Cuboid

  • _xmin, _xmax, _ymin, _ymax, _zmin, _zmax: to define the Cuboid v1=(xmin, ymin, zmin), v2=(xmax, ymin, zmin), v4=(xmin, ymax, zmin), v5=(xmin, ymin, zmax)

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

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

  • _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::Cube

Public Functions

Cuboid()#

default constructor

Cuboid(const Cuboid &c)#

copy constructor

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

constructor with 4 Parameter

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

constructor with 5 Parameter

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

constructor with 6 Parameter

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

constructor with 7 Parameter

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

constructor with 8 Parameter

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

constructor with 9 Parameter

Cuboid(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7, Parameter p8, Parameter p9, Parameter p10)#

constructor with 10 Parameter

virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor

inline virtual void computeMB()#

computes the minimal box

inline virtual Cuboid *cuboid()#

access to child Cuboid object

inline virtual const Cuboid *cuboid() const#

access to child Cuboid object (const)

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

apply a homothety on a Cuboid (1 key)

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

apply a homothety on a Cuboid (2 keys)

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

apply a homothety on a Cuboid

inline virtual Cuboid &homothetize(real_t factor)#

apply a homothety on a Cuboid

inline virtual real_t measure() const#

return the length/area/volume of the geometry

inline number_t nx() const#

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

inline number_t ny() const#

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

inline number_t nz() const#

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

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

apply a point reflection on a Cuboid (1 key)

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

apply a point reflection on a Cuboid

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

apply a reflection2d on a Cuboid (1 key)

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

apply a reflection2d on a Cuboid (2 keys)

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

apply a reflection2d on a Cuboid

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

apply a reflection2d on a Cuboid

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

apply a reflection3d on a Cuboid (1 key)

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

apply a reflection3d on a Cuboid (2 keys)

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

apply a reflection3d on a Cuboid

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

apply a reflection3d on a Cuboid

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

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

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

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

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

apply a rotation 2D on a Cuboid

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

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

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

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

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

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

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

apply a rotation on a Cuboid

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

apply a rotation on a Cuboid

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

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

apply a rotation 3D on a Cuboid

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

apply a rotation 3D on a Cuboid

virtual void setFaces()#

set the faces vector when built

virtual Cuboid &transform(const Transformation &t)#

apply a geometrical transformation on a Cuboid

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

apply a translation on a Cuboid (1 key)

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

apply a translation on a Cuboid (3 reals version)

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

apply a translation on a Cuboid (vector version)