/
Script Functions
ScriptFunctionNumerical calculation
This page summarizes script functions available in the software.
The software offers a variety of built-in script functions that meet the needs of numerical calculations.
Basic Syntax #
The basic syntax includes:
- Variables: definition of script variables and usage instructions, including numbers, character strings, structs, etc.;
- Datasets: operation commands for datasets available in the software;
- Program control statements: including judgment, loop, etc.;
- Functions: use and description of user functions;
- Save, import, export: script initialization, saving, importing, and exporting data.
Data Getting #
Functions for getting data include:
- Querying data-getting commands;
- Checking whether selected objects have data;
- Getting data;
- Getting results from sources, monitors or analysis groups.
Set and Add Objects #
Functions for object setting and addition are used to add, set, and operate objects, as well as add and set materials.
- Add objects: add structures, sources, monitors, structure groups, analysis groups, etc.;
- Query setting commands: return property lists for selected objects;
- Set objects: set parameters for structures, sources, monitors, structure groups, analysis groups, etc.;
- Operate objects: perform operations on selected objects, such as view conversion, pinning, hiding, and deleting;
- Add and set materials: add desired materials and set material parameters.
Simulation #
Simulation setting functions are mainly used to set parameters related to simulations for specific projects.
- Set simulation parameters;
- Control simulations: control functions related to running and stopping specific projects;
- Solve modes: solve modes in mode sources;
- Add customized meshes;
- Pre- and post-process scripts.
Data Visualizer #
Script commands for visualizing data include:
- Different plot functions;
- Graphics Formatting commands.
Mathematical Functions #
This section offers a collection of common mathematical functions, including:
Basic Operations on Data #
- Basic data operations: including data search, judgment, sorting, update, etc.;
Math Functions #
- Basic elementary mathematical functions: including absolute values, judgment, rounding, finding remainders, trigonometric functions, logarithmic functions, exponential functions, power functions, etc.;
- Advanced mathematical functions: including numerical integration, differentiation, discrete transformation, etc.
Matrices #
- Matrix operations: including creation, decomposition and inversion of special matrices, solving the rank of matrix, calculating the determinant of matrix, finding the trace of a matrix, etc.
- Solving equations: including solving the linear equation, solving Sylvester matrix equation, and solving ordinary differential equations, etc.
Build-in Analysis Functions #
Analysis functions include:
- Adding analysis groups;
- Running analysis groups;
- Organizing results of analysis groups;
- Analysis functions.
Miscellaneous #
Miscellaneous includes a variety of functions that are not easy to classify, mainly introducing function operations within the workspace.

