Oscillator calibration systems#
This example demonstrates how to create and solver chains using different solver.
It uses the
oscillatorcalibration_system_ascii.py files to create
parametric systems for oscillator calibration and then runs
these systems. Lastly, it explains how you can optionally save
a copy of the project to a desired location.
Perform required imports#
Perform the required imports.
from ansys.optislang.core import Optislang import ansys.optislang.core.examples as examples
Create optiSLang instance#
Create the optiSLang instance.
osl = Optislang() print(osl)
Get paths of example scripts and run them#
Get the paths of the example scripts and then run these scripts.
paths1 = examples.get_files("oscillatorcalibration_system_python") paths2 = examples.get_files("oscillatorcalibration_system_ascii") osl.run_python_file(paths1) osl.run_python_file(paths2)
Run the workflow created by the preceding scripts.
Optionally save project#
If you want to save the project to some desired location, uncomment and edit these lines:
path = r'<insert-desired-location>' osl.save_as(os.path.join(path, "test_project.opf"))
Stop and cancel project#
Stop and cancel the project.
View generated workflow#
This image shows the generated workflow.
Total running time of the script: ( 0 minutes 0.000 seconds)