Home / Python script / How to Operate Femtet Macros by Python
How to Operate Femtet Macros by Python
Femtet macros can be operated with Python script.
Prepare Operating Environment for Python Script
Operate Femtet by Python Script
Remarks
- Methods that have been updated for Python.
・For old project files, the output Python script may include a method that causes an error.
In that case, modify the method causing the issue to the method listed in the macro help.
Example: Replace MultiSweep with MultiSweep2_py.
- Methods not supported by Python and alternative methods
Integration methods listed below are not supported by Python. These methods have integrand sub procedures as parameters.
Such parameters cannot be passed by Python.
|
CGogh.IntegralAtEdge |
Edge integral. |
|
CGogh.IntegralAtEdgeByBoundary |
Edge integral using boundary condition. |
|
CGogh.IntegralAtFace |
Surface integral. |
|
CGogh.IntegralAtFaceByBoundary |
Surface integral using boundary condition. |
|
CGogh.IntegralAtBody |
Volume integral. |
|
Volume integral using body attribute name. |
|
|
CGogh.IntegralAtBodyByMaterial |
Volume integral using material name. |
As alternative method, simple integration methods are available which do not require the integrand sub procedure.
(Standard methods and Python-only methods)
|
Simple edge integral of potential |
|
|
Simple edge integral of potential (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple edge integral of vector |
|
|
Simple edge integral of vector (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple edge integral of vector's normal line component |
|
|
Simple edge integral of vector's normal line component (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple edge integral of tensor |
|
|
Simple edge integral of tensor (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple edge integral of tensor's normal line component |
|
|
Simple edge integral of tensor's normal line component (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple surface integral of potential |
|
|
Simple surface integral of potential (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple surface integral of vector |
|
|
Simple surface integral of vector (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple surface integral of tensor |
|
|
Simple surface integral of tensor (Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.) |
|
|
Simple volume integral of potential |
|
|
Simple volume integral of vector |
|
|
Simple volume integral of tensor |


