Creating a Project in PyAMS

A project in PyAMS is a schematic of an electronic circuit together with its models and the analysis settings required to simulate it.

Steps to Create a New Project

    • Open PyAMS and choose File ‣ New.

    • Save the file into your Folder Workspace/ where all project files will be stored (see fig_new_project).

    • From the menu, select the Project file type (see fig_type_project).

    • A models folder is created automatically inside Workspace/models once you set the file type to Project.

    • You can modify or add new models and symbols using the Symbol Editor.

    • Returning to PyAMS, open your file project in Workspace/. You will find your models available in the Library Browser under Project [models].

    • From the Library Browser, drag and drop models onto the schematic (see fig_place_models).

    • Use the Wire/Net tool to connect component pins.

    • Add Sources, Ground, and Probes as required for measurements.

    • Insert a PyCode block to enable simulation by analysis with Python.

    • In the PyCode dialog: - The first page shows the generated circuit code (read-only). - The second page allows you to extend the analysis using Python,

      pyams-lib, and any user-installed packages (see fig_pycode_dialog).

    • Open Analysis Settings and choose the required analysis types: DC, AC, Transient, etc. (see fig_analysis_setup).

    • Define start/stop values, steps, initial conditions, and output variables.

    • Click Run to execute the configured analyses (see fig_run_sim).

    • If a PyCode block is present, it will also execute any custom computations.

Figures

Create a new PyAMS file

Figure 1 – Creating a new project in PyAMS.

Convert file to project

Figure 2 – Converting a file to a PyAMS project.

desgine by symbol editor

Figure 3 – creat symbol.

creat model of the symbol

Figure 4 – creat model.

save models (symbol+python) into

Figure 5 – the models saved in Workspace/models.

Place circuit models/components

Figure 6 – Placing models from the library into the schematic.

PyCode dialog with two pages

Figure 7 – PyCode dialog: read-only circuit code (page 1) and Python analysis (page 2).

Configure analysis types

Figure 8 – Configuring DC/AC/Transient analyses.

Run simulation

Figure 9 – Running the simulation.

Results and plots

Figure 10 – Viewing and exporting simulation results.