C++ API entities

class xc.EntMdlr

Bases: xc.SetEstruct

In((EntMdlr)arg1, (GeomObj3d)arg2, (float)arg3) → bool :

In(geomObject,tolerance) Return true if this object lies inside the geometric object.

C++ signature :
bool In(XC::EntMdlr {lvalue},GeomObj3d,double)
Out((EntMdlr)arg1, (GeomObj3d)arg2, (float)arg3) → bool :

Out(geomObject,tolerance) Return true if this object lies outside the geometric object.

C++ signature :
bool Out(XC::EntMdlr {lvalue},GeomObj3d,double)
getElement((EntMdlr)arg1, (int)arg2, (int)arg3, (int)arg4) → Element :

Returns (i,j,k) node.

C++ signature :
XC::Element* getElement(XC::EntMdlr {lvalue},unsigned long,unsigned long,unsigned long)
getNearestElement((EntMdlr)arg1, (Pos3d)arg2) → Element :

Returns nearest element.

C++ signature :
XC::Element* getNearestElement(XC::EntMdlr {lvalue},Pos3d)
getNearestNode((EntMdlr)arg1, (Pos3d)arg2) → Node :

Returns nearest node.

C++ signature :
XC::Node* getNearestNode(XC::EntMdlr {lvalue},Pos3d)
getNode((EntMdlr)arg1, (int)arg2, (int)arg3, (int)arg4) → Node :

Returns (i,j,k) node.

C++ signature :
XC::Node* getNode(XC::EntMdlr {lvalue},unsigned long,unsigned long,unsigned long)
getPosCentroid((EntMdlr)arg1) → Pos3d :

Returns the centroid of the object.

C++ signature :
Pos3d getPosCentroid(XC::EntMdlr {lvalue})
getSimpsonWeights((EntMdlr)arg1, (str)arg2, (str)arg3, (int)arg4, (int)arg5, (int)arg6) → Vector :

Returns weights for Simpson’s rule integration.

C++ signature :
XC::Vector getSimpsonWeights(XC::EntMdlr {lvalue},std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,unsigned long,unsigned long,unsigned long)
class xc.Pnt

Bases: xc.EntMdlr


Returns the lines connected to the point.


Returns number of lines that touch the point.

getNode((Pnt)arg1) → Node :

Returns point’s node.

C++ signature :
XC::Node* getNode(XC::Pnt {lvalue})

Returns node’s tag.

getVectorPos((Pnt)arg1) → Vector3d :

Return the position vector of the point.

C++ signature :
Vector3d getVectorPos(XC::Pnt {lvalue})

True if the point has a node.

class xc.Face

Bases: xc.CmbEdge

getContour((Face)arg1) → Polyline3d :

Return the face contour as a 3D polyline.

C++ signature :
Polyline3d getContour(XC::Face {lvalue})
class xc.QuadSurface

Bases: xc.Face

defGridPoints((QuadSurface)arg1, (list)arg2) → None :
C++ signature :
void defGridPoints(XC::QuadSurface {lvalue},boost::python::list)

Return the local x vector.


Return the local x vector.


Return the local x vector.

getLocalAxes((QuadSurface)arg1) → Matrix :

Return the surface local axes as matrix rows: [[x1,y1,z1],[x2,y2,z2],…·] .

C++ signature :
XC::Matrix getLocalAxes(XC::QuadSurface {lvalue})
getPolygon((QuadSurface)arg1) → Polygon3d :

Return the contour as a 3D polygon.

C++ signature :
Polygon3d getPolygon(XC::QuadSurface {lvalue})
setElemSizeI((QuadSurface)arg1, (float)arg2) → None :
C++ signature :
void setElemSizeI(XC::QuadSurface {lvalue},double)
setElemSizeIJ((QuadSurface)arg1, (float)arg2, (float)arg3) → None :
C++ signature :
void setElemSizeIJ(XC::QuadSurface {lvalue},double,double)
setElemSizeJ((QuadSurface)arg1, (float)arg2) → None :
C++ signature :
void setElemSizeJ(XC::QuadSurface {lvalue},double)
class xc.Body

Bases: xc.EntMdlr

Six-faced body.

getVertex((Body)arg1, (int)arg2) → Pnt :

Return the vertex corresponding to the index argument.

C++ signature :
XC::Pnt const* getVertex(XC::Body {lvalue},unsigned long)
class xc.Block

Bases: xc.Body

Six-faced solid.

getFace((Block)arg1, (int)arg2) → BodyFace :

Return the face corresponding to the indes argument.

C++ signature :
XC::Body::BodyFace const* getFace(XC::Block {lvalue},unsigned long)

Number or divisions in I direction.


Number or divisions in J direction.


Number or divisions in K direction.

class xc.UniformGrid

Bases: xc.EntMdlr


Length in x direction.


Length in y direction.


Length in z direction.


Number or divisions in x direction.


Number or divisions in y direction.


Number or divisions in z direction.

class xc.MapCMEdges

Bases: xc.ModelComponentContainerBase

exists((MapCMEdges)arg1, (int)arg2) → bool :
C++ signature :
bool exists(XC::ModelComponentContainer<XC::Edge> {lvalue},unsigned long)
get((MapCMEdges)arg1, (int)arg2) → Edge :
C++ signature :
XC::Edge* get(XC::ModelComponentContainer<XC::Edge> {lvalue},unsigned long)
getKeys((MapCMEdges)arg1) → list :
C++ signature :
boost::python::list getKeys(XC::ModelComponentContainer<XC::Edge> {lvalue})
class xc.MapCMFaces

Bases: xc.ModelComponentContainerBase

exists((MapCMFaces)arg1, (int)arg2) → bool :
C++ signature :
bool exists(XC::ModelComponentContainer<XC::Face> {lvalue},unsigned long)
get((MapCMFaces)arg1, (int)arg2) → Face :
C++ signature :
XC::Face* get(XC::ModelComponentContainer<XC::Face> {lvalue},unsigned long)
getKeys((MapCMFaces)arg1) → list :
C++ signature :
boost::python::list getKeys(XC::ModelComponentContainer<XC::Face> {lvalue})
class xc.map_faces

Bases: xc.MapCMFaces

class xc.MapCMBodies

Bases: xc.ModelComponentContainerBase

exists((MapCMBodies)arg1, (int)arg2) → bool :
C++ signature :
bool exists(XC::ModelComponentContainer<XC::Body> {lvalue},unsigned long)
get((MapCMBodies)arg1, (int)arg2) → Body :
C++ signature :
XC::Body* get(XC::ModelComponentContainer<XC::Body> {lvalue},unsigned long)
getKeys((MapCMBodies)arg1) → list :
C++ signature :
boost::python::list getKeys(XC::ModelComponentContainer<XC::Body> {lvalue})
class xc.MapBodies

Bases: xc.map_bodies

checkNDivs((MapBodies)arg1) → bool :

Check the number of divisions.

C++ signature :
bool checkNDivs(XC::BodyMap {lvalue})
conciliaNDivs((MapBodies)arg1) → bool :
C++ signature :
bool conciliaNDivs(XC::BodyMap {lvalue})
get((MapBodies)arg1, (int)arg2) → Body :

Return the i-th face.

C++ signature :
XC::Body* get(XC::BodyMap {lvalue},unsigned long)
getAverageVolume((MapBodies)arg1) → float :

Return the average volume of the bodies.

C++ signature :
double getAverageVolume(XC::BodyMap {lvalue})
newBlockPts((MapBodies)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5, (int)arg6, (int)arg7, (int)arg8, (int)arg9) → Block :

Creates a hexahedrical block.

C++ signature :
XC::Block* newBlockPts(XC::BodyMap {lvalue},unsigned long,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)
class xc.MapCMUgrids

Bases: xc.ModelComponentContainerBase

exists((MapCMUgrids)arg1, (int)arg2) → bool :
C++ signature :
bool exists(XC::ModelComponentContainer<XC::UniformGrid> {lvalue},unsigned long)
get((MapCMUgrids)arg1, (int)arg2) → UniformGrid :
C++ signature :
XC::UniformGrid* get(XC::ModelComponentContainer<XC::UniformGrid> {lvalue},unsigned long)
getKeys((MapCMUgrids)arg1) → list :
C++ signature :
boost::python::list getKeys(XC::ModelComponentContainer<XC::UniformGrid> {lvalue})
class xc.map_ugrids

Bases: xc.MapCMUgrids