Class xlifepp::SquareGeo#

class SquareGeo : public xlifepp::Rectangle#

Inheritence diagram for xlifepp::SquareGeo:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "7" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "3" [label="xlifepp::Parallelogram" tooltip="xlifepp::Parallelogram"] "5" [label="xlifepp::Polygon" tooltip="xlifepp::Polygon"] "4" [label="xlifepp::Quadrangle" tooltip="xlifepp::Quadrangle"] "2" [label="xlifepp::Rectangle" tooltip="xlifepp::Rectangle"] "1" [label="xlifepp::SquareGeo" tooltip="xlifepp::SquareGeo" fillcolor="#BFBFBF"] "6" [label="xlifepp::Surface" tooltip="xlifepp::Surface"] "3" -> "4" [dir=forward tooltip="public-inheritance"] "5" -> "6" [dir=forward tooltip="public-inheritance"] "4" -> "5" [dir=forward tooltip="public-inheritance"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "6" -> "7" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::SquareGeo:

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

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

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

default constructor with 3 points

SquareGeo(Parameter p1, Parameter p2)#

constructor with 2 Parameter

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

constructor with 3 Parameter

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

constructor with 4 Parameter

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

constructor with 5 Parameter

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

constructor with 6 Parameter

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)