Cube
#
To define a cube, give 4 vertices, as for parallelepipeds and cuboids.
There is a parameter for each of them: _v1
, _v2
, _v4
, and _v5
taking points or a single value (in this case, it is like a 1D point).
For cuboids where faces are parallel to planes x=0, y=0 and z=0, the cuboid can be defined by its center (\(c\) in the figure) and its lengths or \(p_1\) (recalled origin in this case) and its lengths.
Use _center
and _length
or _origin
and _length
parameters to do so.
_origin
and _center
parameter take points or a single value (in this case, it is like a 1D point).
_length
parameter takes one single positive value.
_nnodes
can take one single value, an explicit list of 3 or 12 values or a Numbers
object and _hsteps
can take one real value, an explicit list of 8 real values or a Reals
object.
The number of octants to deal with (parameter _nboctants
) may be used. If required, give names of main domain and side domains as explained in Geometry definition:
Cube c1(_v1=Point(0.,0.,0.), _V2=Point(4.,0.,0.), _v4=Point(0.,4.,0.), _v5=Point(0.,0.,4.),
_nnodes=40, _domain_name="Omega");
Cube c2(_origin=Point(0.,0.,0.), _length=2., _nnodes=40, _domain_name="Omega");
Cube c3(_center=Point(1.,1.,1.), _length=2., _nnodes=40, _domain_name="Omega");
This is 3 definitions of the same Cube
object.
Let’s summarize information about geometrical keys on cubes: