OCC.Core.FEmTool module¶
FEmTool module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_femtool.html
-
class
FEmTool_Assembly
(*args)¶ Bases:
object
- Parameters
Dependence –
- type Dependence
TColStd_Array2OfInteger
- param Table
- type Table
FEmTool_HAssemblyTable
- rtype
None
-
AddConstraint
()¶ - Parameters
IndexofConstraint –
- type IndexofConstraint
int
- param Element
- type Element
int
- param Dimension
- type Dimension
int
- param LinearForm
- type LinearForm
math_Vector
- param Value
- type Value
float
- rtype
None
-
AddMatrix
()¶ - Add an elementary Matrix in the assembly Matrix if Dependence(Dimension1,Dimension2) is False
- param Element
- type Element
int
- param Dimension1
- type Dimension1
int
- param Dimension2
- type Dimension2
int
- param Mat
- type Mat
math_Matrix
- rtype
None
-
AddVector
()¶ - Add an elementary Vector in the assembly Vector (second member)
- param Element
- type Element
int
- param Dimension
- type Dimension
int
- param Vec
- type Vec
math_Vector
- rtype
None
-
GetAssemblyTable
()¶ - Parameters
AssTable –
- type AssTable
FEmTool_HAssemblyTable
- rtype
None
-
NullifyConstraint
()¶ - Nullify all Constraints.
- rtype
None
-
NullifyMatrix
()¶ - Nullify all Matrix ‘s Coefficient
- rtype
None
-
NullifyVector
()¶ - Nullify all Coordinate of assembly Vector (second member)
- rtype
None
-
ResetConstraint
()¶ - Delete all Constraints.
- rtype
None
-
Solution
()¶ - Parameters
Solution –
- type Solution
math_Vector
- rtype
None
-
Solve
()¶ - Solve the assembly system Returns Standard_False if the computation failed.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
FEmTool_AssemblyTable
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeValue
()¶
-
ColLength
()¶
-
Init
()¶
-
IsDeletable
()¶
-
Length
()¶
-
LowerCol
()¶
-
LowerRow
()¶
-
Move
()¶
-
NbColumns
()¶
-
NbRows
()¶
-
Resize
()¶
-
RowLength
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
UpperCol
()¶
-
UpperRow
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
FEmTool_Curve
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Parameters
Dimension –
- type Dimension
int
- param NbElements
- type NbElements
int
- param TheBase
- type TheBase
PLib_Base
- param Tolerance
- type Tolerance
float
- rtype
None
-
Base
()¶ - Return type
opencascade::handle<PLib_Base>
-
D0
()¶ - Parameters
U –
- type U
float
- param Pnt
- type Pnt
TColStd_Array1OfReal
- rtype
None
-
D1
()¶ - Parameters
U –
- type U
float
- param Vec
- type Vec
TColStd_Array1OfReal
- rtype
None
-
D2
()¶ - Parameters
U –
- type U
float
- param Vec
- type Vec
TColStd_Array1OfReal
- rtype
None
-
Degree
()¶ - Parameters
IndexOfElement –
- type IndexOfElement
int
- rtype
int
-
static
DownCast
(t)¶
-
GetElement
()¶ - Parameters
IndexOfElement –
- type IndexOfElement
int
- param Coeffs
- type Coeffs
TColStd_Array2OfReal
- rtype
None
-
GetPolynom
()¶ - returns coefficients of all elements in canonical base.
- param Coeffs
- type Coeffs
TColStd_Array1OfReal
- rtype
None
-
Knots
()¶ - Return type
-
Length
()¶ - Parameters
FirstU –
- type FirstU
float
- param LastU
- type LastU
float
- param Length
- type Length
float
- rtype
None
-
ReduceDegree
()¶ - Parameters
IndexOfElement –
- type IndexOfElement
int
- param Tol
- type Tol
float
- param NewDegree
- type NewDegree
int
- param MaxError
- type MaxError
float
- rtype
None
-
SetDegree
()¶ - Parameters
IndexOfElement –
- type IndexOfElement
int
- param Degree
- type Degree
int
- rtype
None
-
SetElement
()¶ - Parameters
IndexOfElement –
- type IndexOfElement
int
- param Coeffs
- type Coeffs
TColStd_Array2OfReal
- rtype
None
-
property
thisown
¶ The membership flag
-
class
FEmTool_ElementaryCriterion
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
DependenceTable
()¶ - To know if two dimension are independent.
- rtype
opencascade::handle<TColStd_HArray2OfInteger>
-
static
DownCast
(t)¶
-
Gradient
()¶ - To Compute the coefficients in the dimension <dim> of the J(E)’s Gradient where E is the current Element
- param Dim
- type Dim
int
- param G
- type G
math_Vector
- rtype
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
- param Dim1
- type Dim1
int
- param Dim2
- type Dim2
int
- param H
- type H
math_Matrix
- rtype
void
-
Set
()¶ - Set the coefficient of the Element (the Curve)
- param Coeff
- type Coeff
TColStd_HArray2OfReal
- rtype
None* Set the definition interval of the Element
- param FirstKnot
- type FirstKnot
float
- param LastKnot
- type LastKnot
float
- rtype
void
-
Value
()¶ - To Compute J(E) where E is the current Element
- rtype
float
-
property
thisown
¶ The membership flag
-
class
FEmTool_ElementsOfRefMatrix
(*args)¶ Bases:
OCC.Core.math.math_FunctionSet
- Parameters
TheBase –
- type TheBase
PLib_Base
- param DerOrder
- type DerOrder
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
FEmTool_HAssemblyTable
(*args)¶ Bases:
OCC.Core.FEmTool.FEmTool_AssemblyTable
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array2
()¶
-
ChangeArray2
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
FEmTool_LinearFlexion
(*args)¶ Bases:
OCC.Core.FEmTool.FEmTool_ElementaryCriterion
- Parameters
WorkDegree –
- type WorkDegree
int
- param ConstraintOrder
- type ConstraintOrder
GeomAbs_Shape
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
FEmTool_LinearJerk
(*args)¶ Bases:
OCC.Core.FEmTool.FEmTool_ElementaryCriterion
- Parameters
WorkDegree –
- type WorkDegree
int
- param ConstraintOrder
- type ConstraintOrder
GeomAbs_Shape
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
FEmTool_LinearTension
(*args)¶ Bases:
OCC.Core.FEmTool.FEmTool_ElementaryCriterion
- Parameters
WorkDegree –
- type WorkDegree
int
- param ConstraintOrder
- type ConstraintOrder
GeomAbs_Shape
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
FEmTool_ListIteratorOfListOfVectors
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
FEmTool_ListOfVectors
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
FEmTool_ProfileMatrix
(*args)¶ Bases:
OCC.Core.FEmTool.FEmTool_SparseMatrix
- Parameters
FirstIndexes –
- type FirstIndexes
TColStd_Array1OfInteger
- rtype
None
-
static
DownCast
(t)¶
-
GetChangeValue
(FEmTool_ProfileMatrix self, Standard_Integer const I, Standard_Integer const J) → Standard_Real¶
-
IsInProfile
()¶ - Parameters
i –
- type i
int
- param j
- type j
int
- rtype
bool
-
SetChangeValue
(FEmTool_ProfileMatrix self, Standard_Integer const I, Standard_Integer const J, Standard_Real value)¶
-
Solve
()¶ - Direct Solve of AX = B
- param B
- type B
math_Vector
- param X
- type X
math_Vector
- rtype
None* Iterative solve of AX = B
- param B
- type B
math_Vector
- param Init
- type Init
math_Vector
- param X
- type X
math_Vector
- param Residual
- type Residual
math_Vector
- param Tolerance
default value is 1.0e-8
- type Tolerance
float
- param NbIterations
default value is 50
- type NbIterations
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
FEmTool_SeqOfLinConstr
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
FEmTool_SparseMatrix
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
ChangeValue
()¶ - Parameters
I –
- type I
int
- param J
- type J
int
- rtype
float
-
ColNumber
()¶ - returns the column range of the matrix.
- rtype
int
-
Decompose
()¶ - To make a Factorization of <self>
- rtype
bool
-
static
DownCast
(t)¶
-
Init
()¶ - Parameters
Value –
- type Value
float
- rtype
void
-
Multiplied
()¶ - returns the product of a SparseMatrix by a vector. An exception is raised if the dimensions are different
- param X
- type X
math_Vector
- param MX
- type MX
math_Vector
- rtype
void
-
Prepare
()¶ - Make Preparation to iterative solve
- rtype
bool
-
RowNumber
()¶ - returns the row range of a matrix.
- rtype
int
-
Solve
()¶ - Direct Solve of AX = B
- param B
- type B
math_Vector
- param X
- type X
math_Vector
- rtype
void* Iterative solve of AX = B
- param B
- type B
math_Vector
- param Init
- type Init
math_Vector
- param X
- type X
math_Vector
- param Residual
- type Residual
math_Vector
- param Tolerance
default value is 1.0e-8
- type Tolerance
float
- param NbIterations
default value is 50
- type NbIterations
int
- rtype
void
-
property
thisown
¶ The membership flag