OCC.FEmTool module

class OCC.FEmTool.FEmTool_Assembly(*args)

Bases: object

AddConstraint()
Parameters:
  • IndexofConstraint (Standard_Integer) –
  • Element (Standard_Integer) –
  • Dimension (Standard_Integer) –
  • LinearForm (math_Vector &) –
  • Value (float) –
Return type:

None

AddMatrix()
  • Add an elementary Matrix in the assembly Matrix if Dependence(Dimension1,Dimension2) is False
Parameters:
  • Element (Standard_Integer) –
  • Dimension1 (Standard_Integer) –
  • Dimension2 (Standard_Integer) –
  • Mat (math_Matrix &) –
Return type:

None

AddVector()
  • Add an elementary Vector in the assembly Vector (second member)
Parameters:
  • Element (Standard_Integer) –
  • Dimension (Standard_Integer) –
  • Vec (math_Vector &) –
Return type:

None

GetAssemblyTable()
Parameters:AssTable (Handle_FEmTool_HAssemblyTable &) –
Return type:None
NbGlobVar()
Return type:int
NullifyConstraint()
  • Nullify all Constraints.
Return type:None
NullifyMatrix()
  • Nullify all Matrix ‘s Coefficient
Return type:None
NullifyVector()
  • Nullify all Coordinate of assembly Vector (second member)
Return type:None
ResetConstraint()
  • Delete all Constraints.
Return type:None
Solution()
Parameters:Solution (math_Vector &) –
Return type:None
Solve()
  • Solve the assembly system Returns Standard_False if the computation failed.
Return type:bool
thisown

The membership flag

class OCC.FEmTool.FEmTool_AssemblyTable(*args)

Bases: object

Assign()
Parameters:Other (FEmTool_AssemblyTable &) –
Return type:FEmTool_AssemblyTable
ChangeValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfInteger

ColLength()
Return type:int
Destroy()
Return type:None
Init()
Parameters:V (Handle_TColStd_HArray1OfInteger &) –
Return type:None
LowerCol()
Return type:int
LowerRow()
Return type:int
RowLength()
Return type:int
Set()
Parameters:Other (FEmTool_AssemblyTable &) –
Return type:FEmTool_AssemblyTable
SetValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Value (Handle_TColStd_HArray1OfInteger &) –
Return type:

None

UpperCol()
Return type:int
UpperRow()
Return type:int
Value()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfInteger

thisown

The membership flag

class OCC.FEmTool.FEmTool_Curve(*args)

Bases: OCC.MMgt.MMgt_TShared

Base()
Return type:Handle_PLib_Base
D0()
Parameters:
  • U (float) –
  • Pnt (TColStd_Array1OfReal &) –
Return type:

None

D1()
Parameters:
  • U (float) –
  • Vec (TColStd_Array1OfReal &) –
Return type:

None

D2()
Parameters:
  • U (float) –
  • Vec (TColStd_Array1OfReal &) –
Return type:

None

Degree()
Parameters:IndexOfElement (Standard_Integer) –
Return type:int
Dimension()
Return type:int
GetElement()
Parameters:
  • IndexOfElement (Standard_Integer) –
  • Coeffs (TColStd_Array2OfReal &) –
Return type:

None

GetHandle()

FEmTool_Curve_GetHandle(FEmTool_Curve self) -> Handle_FEmTool_Curve

GetPolynom()
  • returns coefficients of all elements in canonical base.
Parameters:Coeffs (TColStd_Array1OfReal &) –
Return type:None
Knots()
Return type:TColStd_Array1OfReal
Length()
Parameters:
  • FirstU (float) –
  • LastU (float) –
  • Length (float &) –
Return type:

None

NbElements()
Return type:int
ReduceDegree()
Parameters:
  • IndexOfElement (Standard_Integer) –
  • Tol (float) –
  • NewDegree (Standard_Integer &) –
  • MaxError (float &) –
Return type:

None

SetDegree()
Parameters:
  • IndexOfElement (Standard_Integer) –
  • Degree (Standard_Integer) –
Return type:

None

SetElement()
Parameters:
  • IndexOfElement (Standard_Integer) –
  • Coeffs (TColStd_Array2OfReal &) –
Return type:

None

thisown

The membership flag

class OCC.FEmTool.FEmTool_ElementaryCriterion(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

DependenceTable()
  • To know if two dimension are independent.
Return type:Handle_TColStd_HArray2OfInteger
GetHandle()

FEmTool_ElementaryCriterion_GetHandle(FEmTool_ElementaryCriterion self) -> Handle_FEmTool_ElementaryCriterion

Gradient()
  • To Compute the coefficients in the dimension <dim> of the J(E)’s Gradient where E is the current Element
Parameters:
  • Dim (Standard_Integer) –
  • G (math_Vector &) –
Return type:

void

Hessian()
  • To Compute J(E) the coefficients of Hessian matrix of J(E) wich are crossed derivatives in dimensions <Dim1> and <Dim2>. If DependenceTable(Dimension1,Dimension2) is False
Parameters:
  • Dim1 (Standard_Integer) –
  • Dim2 (Standard_Integer) –
  • H (math_Matrix &) –
Return type:

void

Set()
  • Set the coefficient of the Element (the Curve)
Parameters:Coeff (Handle_TColStd_HArray2OfReal &) –
Return type:None
  • Set the definition interval of the Element
Parameters:
  • FirstKnot (float) –
  • LastKnot (float) –
Return type:

void

Value()
  • To Compute J(E) where E is the current Element
Return type:float
thisown

The membership flag

class OCC.FEmTool.FEmTool_ElementsOfRefMatrix(*args)

Bases: object

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • returns the number of variables of the function. It is supposed that NbVariables = 1.
Return type:int
Value()
  • computes the values <F> of the functions for the variable <X>. returns True if the computation was done successfully, False otherwise. F contains results only for i<=j in following order: P0*P0, P0*P1, P0*P2... P1*P1, P1*P2,... (upper triangle of matrix {PiPj})
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

thisown

The membership flag

class OCC.FEmTool.FEmTool_HAssemblyTable(*args)

Bases: OCC.MMgt.MMgt_TShared

Array2()
Return type:FEmTool_AssemblyTable
ChangeArray2()
Return type:FEmTool_AssemblyTable
ChangeValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfInteger

ColLength()
Return type:int
GetHandle()

FEmTool_HAssemblyTable_GetHandle(FEmTool_HAssemblyTable self) -> Handle_FEmTool_HAssemblyTable

Init()
Parameters:V (Handle_TColStd_HArray1OfInteger &) –
Return type:None
LowerCol()
Return type:int
LowerRow()
Return type:int
RowLength()
Return type:int
SetValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Value (Handle_TColStd_HArray1OfInteger &) –
Return type:

None

UpperCol()
Return type:int
UpperRow()
Return type:int
Value()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Handle_TColStd_HArray1OfInteger

thisown

The membership flag

class OCC.FEmTool.FEmTool_LinearFlexion(*args)

Bases: OCC.FEmTool.FEmTool_ElementaryCriterion

GetHandle()

FEmTool_LinearFlexion_GetHandle(FEmTool_LinearFlexion self) -> Handle_FEmTool_LinearFlexion

thisown

The membership flag

class OCC.FEmTool.FEmTool_LinearJerk(*args)

Bases: OCC.FEmTool.FEmTool_ElementaryCriterion

GetHandle()

FEmTool_LinearJerk_GetHandle(FEmTool_LinearJerk self) -> Handle_FEmTool_LinearJerk

thisown

The membership flag

class OCC.FEmTool.FEmTool_LinearTension(*args)

Bases: OCC.FEmTool.FEmTool_ElementaryCriterion

GetHandle()

FEmTool_LinearTension_GetHandle(FEmTool_LinearTension self) -> Handle_FEmTool_LinearTension

thisown

The membership flag

class OCC.FEmTool.FEmTool_ListIteratorOfListOfVectors(*args)

Bases: object

Initialize()
Parameters:L (FEmTool_ListOfVectors &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.FEmTool.FEmTool_ListNodeOfListOfVectors(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

FEmTool_ListNodeOfListOfVectors_GetHandle(FEmTool_ListNodeOfListOfVectors self) -> Handle_FEmTool_ListNodeOfListOfVectors

Value()
Return type:Handle_TColStd_HArray1OfReal
thisown

The membership flag

class OCC.FEmTool.FEmTool_ListOfVectors

Bases: object

Append()
Parameters:
  • I (Handle_TColStd_HArray1OfReal &) –
  • I
  • theIt (FEmTool_ListIteratorOfListOfVectors &) –
  • Other (FEmTool_ListOfVectors &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (FEmTool_ListOfVectors &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_TColStd_HArray1OfReal
InsertAfter()
Parameters:
  • I (Handle_TColStd_HArray1OfReal &) –
  • It (FEmTool_ListIteratorOfListOfVectors &) –
  • Other (FEmTool_ListOfVectors &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_TColStd_HArray1OfReal &) –
  • It (FEmTool_ListIteratorOfListOfVectors &) –
  • Other (FEmTool_ListOfVectors &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_TColStd_HArray1OfReal
Prepend()
Parameters:
  • I (Handle_TColStd_HArray1OfReal &) –
  • I
  • theIt (FEmTool_ListIteratorOfListOfVectors &) –
  • Other (FEmTool_ListOfVectors &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (FEmTool_ListIteratorOfListOfVectors &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (FEmTool_ListOfVectors &) –
Return type:None
thisown

The membership flag

class OCC.FEmTool.FEmTool_ProfileMatrix(*args)

Bases: OCC.FEmTool.FEmTool_SparseMatrix

GetHandle()

FEmTool_ProfileMatrix_GetHandle(FEmTool_ProfileMatrix self) -> Handle_FEmTool_ProfileMatrix

IsInProfile()
Parameters:
  • i (Standard_Integer) –
  • j (Standard_Integer) –
Return type:

bool

OutM()
Return type:None
OutS()
Return type:None
Solve()
  • Direct Solve of AX = B
Parameters:
  • B (math_Vector &) –
  • X (math_Vector &) –
Return type:

None

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

None

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

None

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

None

thisown

The membership flag

class OCC.FEmTool.FEmTool_SeqOfLinConstr

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (FEmTool_ListOfVectors &) –
  • S (FEmTool_SeqOfLinConstr &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (FEmTool_SeqOfLinConstr &) –
Return type:FEmTool_SeqOfLinConstr
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:FEmTool_ListOfVectors
Clear()
Return type:None
First()
Return type:FEmTool_ListOfVectors
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (FEmTool_ListOfVectors &) –
  • Index
  • S (FEmTool_SeqOfLinConstr &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (FEmTool_ListOfVectors &) –
  • Index
  • S (FEmTool_SeqOfLinConstr &) –
Return type:

None

Return type:

None

Last()
Return type:FEmTool_ListOfVectors
Prepend()
Parameters:
  • T (FEmTool_ListOfVectors &) –
  • S (FEmTool_SeqOfLinConstr &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (FEmTool_SeqOfLinConstr &) –
Return type:FEmTool_SeqOfLinConstr
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (FEmTool_ListOfVectors &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (FEmTool_SeqOfLinConstr &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:FEmTool_ListOfVectors
thisown

The membership flag

class OCC.FEmTool.FEmTool_SequenceNodeOfSeqOfLinConstr(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

FEmTool_SequenceNodeOfSeqOfLinConstr_GetHandle(FEmTool_SequenceNodeOfSeqOfLinConstr self) -> Handle_FEmTool_SequenceNodeOfSeqOfLinConstr

Value()
Return type:FEmTool_ListOfVectors
thisown

The membership flag

class OCC.FEmTool.FEmTool_SparseMatrix(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

ChangeValue()
Parameters:
  • I (Standard_Integer) –
  • J (Standard_Integer) –
Return type:

float

ColNumber()
  • returns the column range of the matrix.
Return type:int
Decompose()
  • To make a Factorization of <self>
Return type:bool
GetHandle()

FEmTool_SparseMatrix_GetHandle(FEmTool_SparseMatrix self) -> Handle_FEmTool_SparseMatrix

Init()
Parameters:Value (float) –
Return type:void
Multiplied()
  • returns the product of a SparseMatrix by a vector. An exception is raised if the dimensions are different
Parameters:
  • X (math_Vector &) –
  • MX (math_Vector &) –
Return type:

void

Prepare()
  • Make Preparation to iterative solve
Return type:bool
RowNumber()
  • returns the row range of a matrix.
Return type:int
Solve()
  • Direct Solve of AX = B
Parameters:
  • B (math_Vector &) –
  • X (math_Vector &) –
Return type:

void

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

void

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

void

  • Iterative solve of AX = B
Parameters:
  • B (math_Vector &) –
  • Init (math_Vector &) –
  • X (math_Vector &) –
  • Residual (math_Vector &) –
  • Tolerance (float) – default value is 1.0e-8
  • NbIterations (Standard_Integer) – default value is 50
Return type:

void

thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_Curve(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_ElementaryCriterion(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_HAssemblyTable(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_LinearFlexion(*args)

Bases: OCC.FEmTool.Handle_FEmTool_ElementaryCriterion

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_LinearJerk(*args)

Bases: OCC.FEmTool.Handle_FEmTool_ElementaryCriterion

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_LinearTension(*args)

Bases: OCC.FEmTool.Handle_FEmTool_ElementaryCriterion

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_ListNodeOfListOfVectors(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_ProfileMatrix(*args)

Bases: OCC.FEmTool.Handle_FEmTool_SparseMatrix

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_SequenceNodeOfSeqOfLinConstr(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.Handle_FEmTool_SparseMatrix(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.FEmTool.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()