Cone#

A cone is a particular trunk defined by a surface and an apex (Cone class inherits from Trunk class).

Figure made with TikZ

Figure made with TikZ

To construct a Cone geometry, use parameters _basis and _apex . _basis, as for trunks, take any surface object: Polygon, Triangle, Quadrangle, Parallelogram, Rectangle, SquareGeo, Ellipse or Disk. _apex parameter takes a point or a single value (in this case, it is like a 1D point).

As for trunks and cylinders, a cone can be directly defined with elliptical basis, with parameters _center1, _v1, _v2 (and _apex) parmeters taking a point or a single value (in this case, it is like a 1D point).

_nnodes parameter can take one single value, an explicit list of 2 or \(n\) values or a Numbers object, where \(n\) is twice the number of edges of the basis. _hsteps parameter can take one real value, an explicit list of \(p\) real values or a Reals object, where \(p\) is the number of points defining the trunk. If required, give names of main domain and side domains as explained in Geometry definition:

Cone c1(_basis=Disk(_center=Point(0.,0.,0.), _v1=Point(2.,0.,0.), _v2=Point(0.,2.,0.)), _apex=Point(0..,0.,1.), _nnodes={20, 20, 20, 20, 10, 10, 10, 10}, _domain_name="Omega", _side_names="Gamma");
Cone c2(_basis=Disk(_center=Point(0.,0.,0.), _v1=Point(2.,0.,0.), _v2=Point(0.,2.,0.)),  _apex=Point(0..,0.,1.), _nnodes=Numbers(20, 10), _domain_name="Omega", _side_names="Gamma");
Cone c3(_center1=Point(0.,0.,0.), _v1=Point(2.,0.,0.), _v2=Point(0.,2.,0.),  _apex=Point(0..,0.,1.), _nnodes={20, 10}, _domain_name="Omega",  _side_names="Gamma");

These are 3 definitions of the same Cone object, explaining the ability to give 2 values for _nnodes, instead of 8.

Danger

Actually, this geometry cannot be meshed directly. Please use Pyramid for cones with polygonal basis, or RevCone for revolution cones.

Let’s summarize information about geometrical keys on cones:

key(s)

authorized types

examples

_apex , _center1 , _v1 , _v2

Point

_apex=xlifepp::Point (0.,0.,0.)

_basis

Polygon, Triangle , Quadrangle , Parallelogram , Rectangle , SquareGeo , Ellipse , Disk

xlifepp::Triangle (...)