Class xlifepp::RevCylinder#

class RevCylinder : public xlifepp::RevTrunk#

A cylinder of revolution is defined by its axis (P1,P2) and the radius of any circle obtained by intersection with a plane orthogonal to (P1,P2).

See more details at RevTrunk.

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

  • _center1, _center2: to define centers of bases when they are elliptical

  • _radius: the radius of the bases

  • _end1_shape, _end2_shape: the shape of extension parts on both ends of the RevCylinder

  • _end1_distance, _end2_distance: the lengths of extension parts on both ends of the RevCylinder

  • _nbsubdomains: the number of slices of the RevCylinder (subdivision mesg generator only)

  • _type: indicator to fit curved boundaries (default) or not which gives flat (or plane) boundaries

  • _nnodes: to define the number of nodes on the edges of the RevCylinder

  • _hsteps: to define the local mesh steps on build points of the RevCylinder

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

Public Functions

RevCylinder()#

default constructor

RevCylinder(Parameter p1, Parameter p2, Parameter p3)#

key-value constructor

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 RevCylinder &homothetize(const Parameter &p1)#

apply a homothety on a RevCylinder (1 key)

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

apply a homothety on a RevCylinder (2 keys)

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

apply a homothety on a RevCylinder

inline virtual RevCylinder &homothetize(real_t factor)#

apply a homothety on a RevCylinder

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

apply a point reflection on a RevCylinder (1 key)

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

apply a point reflection on a RevCylinder

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

apply a reflection2d on a RevCylinder (1 key)

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

apply a reflection2d on a RevCylinder (2 keys)

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

apply a reflection2d on a RevCylinder

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

apply a reflection2d on a RevCylinder

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

apply a reflection3d on a RevCylinder (1 key)

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

apply a reflection3d on a RevCylinder (2 keys)

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

apply a reflection3d on a RevCylinder

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

apply a reflection3d on a RevCylinder

inline virtual RevCylinder *revCylinder()#

access to child RevCylinder object

inline virtual const RevCylinder *revCylinder() const#

access to child RevCylinder object (const)

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

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

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

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

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

apply a rotation 2D on a RevCylinder

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

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

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

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

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

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

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

apply a rotation on a RevCylinder

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

apply a rotation on a RevCylinder

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

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

apply a rotation 3D on a RevCylinder

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

apply a rotation 3D on a RevCylinder

virtual RevCylinder &transform(const Transformation &t)#

apply a geometrical transformation on a RevCylinder

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

apply a translation on a RevCylinder (1 key)

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

apply a translation on a RevCylinder (3 reals version)

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

apply a translation on a RevCylinder (vector version)