Class xlifepp::SquareGeo#

class SquareGeo : public xlifepp::Rectangle#

definition of a square geometry in R^3

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

  • _v1, _v2, _v4: to define the vertices of the Square, counterclockwise oriented

  • _center: to define the center of the SquareGeo

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

  • _length: the length of the SquareGeo

  • _xmin, _xmax, _ymin, _ymax: to define the SquareGeo v1=(xmin, ymin), v2=(xmax, ymin), v4=(xmin, ymax)

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

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

  • _domain_name: to define the domain name

  • _side_names/_edge_names: to define the side names

  • _vertex_names: to define the side of side names

  • _varnames: to define the variable names for print purpose

Public Functions

SquareGeo()#

default constructor

default square is [0,1]^2 No parametrization

SquareGeo(const Point &p1, const Point &p2, const Point &p4, const std::vector<number_t> &n = std::vector<number_t>(4, 2), const string_t &domName = string_t(), const std::vector<string_t> &sideNames = std::vector<string_t>(4, ""), const std::vector<string_t> &sideOfSideNames = std::vector<string_t>(4, ""))#

default constructor with 3 points

SquareGeo(const Point &p1, const Point &p2, const Point &p4, const std::vector<real_t> &h, const string_t &domName = string_t(), const std::vector<string_t> &sideNames = std::vector<string_t>(4, ""), const std::vector<string_t> &sideOfSideNames = std::vector<string_t>(4, ""))#

default constructor with 3 points

SquareGeo(Parameter p1, Parameter p2)#

key-value constructor

inline virtual ~SquareGeo()#

destructor

virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor for Geometry

inline virtual Polygon *clonePG() const#

virtual copy constructor for Polygon

inline virtual Surface *cloneS() const#

virtual copy constructor for Surface

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

apply a homothety on a SquareGeo (1 key)

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

apply a homothety on a SquareGeo (2 keys)

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

apply a homothety on a SquareGeo

inline virtual SquareGeo &homothetize(real_t factor)#

apply a homothety on a SquareGeo

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

apply a point reflection on a SquareGeo (1 key)

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

apply a point reflection on a SquareGeo

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

apply a reflection2d on a SquareGeo (1 key)

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

apply a reflection2d on a SquareGeo (2 keys)

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

apply a reflection2d on a SquareGeo

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

apply a reflection2d on a SquareGeo

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

apply a reflection3d on a SquareGeo (1 key)

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

apply a reflection3d on a SquareGeo (2 keys)

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

apply a reflection3d on a SquareGeo

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

apply a reflection3d on a SquareGeo

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

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

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

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

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

apply a rotation 2D on a SquareGeo

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

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

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

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

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

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

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

apply a rotation on a SquareGeo

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

apply a rotation on a SquareGeo

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

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

apply a rotation 3D on a SquareGeo

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

apply a rotation 3D on a SquareGeo

inline virtual SquareGeo *square()#

access to child SquareGeo object

inline virtual const SquareGeo *square() const#

access to child SquareGeo object (const)

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

returns list of surfaces (const)

virtual SquareGeo &transform(const Transformation &t)#

apply a geometrical transformation on a SquareGeo

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

apply a translation on a SquareGeo (1 key)

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

apply a translation on a SquareGeo (3 reals version)

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

apply a translation on a SquareGeo (vector version)