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 the tags of 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})

TO DEPRECATE: return the position vector of the point.


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.


TO DEPRECATE: return the position vector of the point.

class xc.Face

Bases: xc.CmbEdge

getArea((Face)arg1) → float :

Return the face area.

C++ signature :
double getArea(XC::Face {lvalue})
getContour((Face)arg1) → Polyline3d :

Return the face contour as a 3D polyline.

C++ signature :
Polyline3d getContour(XC::Face {lvalue})
getPlane((Face)arg1) → Plane3d :

Return the plane containing the face.

C++ signature :
Plane getPlane(XC::Face {lvalue})
getPolygon((Face)arg1) → Polygon3d :

Return the contour as a 3D polygon.

C++ signature :
Polygon3d getPolygon(XC::Face {lvalue})

get/set the number of divisions of the even sides of the surface.


get/set the number of divisions of the odd sides of the surface.

orientation((Face)arg1, (Pos3d)arg2) → str :

Return the orientation of the face.

C++ signature :
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > orientation(XC::Face {lvalue},Pos3d)
setElemSize((Face)arg1, (float)arg2, (bool)arg3) → None :

setElementSizeJ(sz, mustBeEven) set the element size on the sides of the surface; if mustBeEven is true the number of divisions in each side is forced to the next even number.

C++ signature :
void setElemSize(XC::Face {lvalue},double,bool)
setElemSizeI((Face)arg1, (float)arg2) → None :

setElementSizeI(sz) set the element size on the even sides of the surface.

C++ signature :
void setElemSizeI(XC::Face {lvalue},double)
setElemSizeIJ((Face)arg1, (float)arg2, (float)arg3) → None :

setElementSizeIJ(szI, szJ) set the element size on the even and odd sides of the surface.

C++ signature :
void setElemSizeIJ(XC::Face {lvalue},double,double)
setElemSizeJ((Face)arg1, (float)arg2) → None :

setElementSizeJ(sz) set the element size on the odd sides of the surface.

C++ signature :
void setElemSizeJ(XC::Face {lvalue},double)
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})
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

genMesh((map_faces)arg1, (meshDir)arg2) → None :

Generate mesh.

C++ signature :
void genMesh(XC::EntityMap<XC::Face> {lvalue},XC::meshing_dir)
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