Femtet Macro Help/Manual
 

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.

CGogh.IntegralAtBodyByBodyAttribute

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)

 

CGogh.SimpleIntegralPotentialAtEdge_py

Simple edge integral of potential

CGogh.SimpleIntegralPotentialAtEdgeSheetBody_py

Simple edge integral of potential

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralVectorAtEdge_py

Simple edge integral of vector

CGogh.SimpleIntegralVectorAtEdgeSheetBody_py

Simple edge integral of vector

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralVectorAtEdgeNormal_py

Simple edge integral of vector's normal line component

CGogh.SimpleIntegralVectorAtEdgeNormalSheetBody_py

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.)

CGogh.SimpleIntegralTensorAtEdge_py

Simple edge integral of tensor

CGogh.SimpleIntegralTensorAtEdgeSheetBody_py

Simple edge integral of tensor

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralTensorAtEdgeNormal_py

Simple edge integral of tensor's normal line component

CGogh.SimpleIntegralTensorAtEdgeNormalSheetBody_py

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.)

CGogh.SimpleIntegralPotentialAtFace_py

Simple surface integral of potential

CGogh.SimpleIntegralPotentialAtFaceSheetBody_py

Simple surface integral of potential

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralVectorAtFace_py

Simple surface integral of vector

CGogh.SimpleIntegralVectorAtFaceSheetBody_py

Simple surface integral of vector

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralTensorAtFace_py

Simple surface integral of tensor

CGogh.SimpleIntegralTensorAtFaceSheetBody_py

Simple surface integral of tensor

(Thickness of sheet body and circumferential direction of the axisymmetric analysis results are taken into account.)

CGogh.SimpleIntegralPotentialAtBody_py

Simple volume integral of potential

CGogh.SimpleIntegralVectorAtBody_py

Simple volume integral of vector

CGogh.SimpleIntegralTensorAtBody_py

Simple volume integral of tensor