pyaedt.Maxwell3d

class pyaedt.Maxwell3d(projectname=None, designname=None, solution_type=None, setup_name=None, specified_version=None, non_graphical=False, new_desktop_session=False, close_on_exit=False, student_version=False)[source]

Provides the Maxwell 3D application interface.

This class allows you to connect to an existing Maxwell 3D design or create a new Maxwell 3D design if one does not exist.

Parameters
projectnamestr, optional

Name of the project to select or the full path to the project or AEDTZ archive to open. The default is None, in which case an attempt is made to get an active project. If no projects are present, an empty project is created.

designnamestr, optional

Name of the design to select. The default is None, in which case an attempt is made to get an active design. If no designs are present, an empty design is created.

solution_typestr, optional

Solution type to apply to the design. The default is None, in which case the default type is applied.

setup_namestr, optional

Name of the setup to use as the nominal. The default is None, in which case the active setup is used or nothing is used.

specified_versionstr, optional

Version of AEDT to use. The default is None, in which case the active version or latest installed version is used. This parameter is ignored when Script is launched within AEDT.

NGbool, optional

Whether to launch AEDT in the non-graphical mode. The default is False, in which case AEDT is launched in the graphical mode. This parameter is ignored when Script is launched within AEDT.

new_desktop_sessionbool, optional

Whether to launch an instance of AEDT in a new thread, even if another instance of the specified_version is active on the machine. The default is True. This parameter is ignored when Script is launched within AEDT.

close_on_exitbool, optional

Whether to release AEDT on exit. The default is False.

student_versionbool, optional

Whether to open the AEDT student version. The default is False. This parameter is ignored when Script is launched within AEDT.

Examples

Create an instance of Maxwell 3D and open the specified project, which is named mymaxwell.aedt.

>>> from pyaedt import Maxwell3d
>>> aedtapp = Maxwell3d("mymaxwell.aedt")
pyaedt info: Added design ...

Create an instance of Maxwell 3D using the 2021 R1 release and open the specified project, which is named mymaxwell2.aedt.

>>> aedtapp = Maxwell3d(specified_version="2021.2", projectname="mymaxwell2.aedt")
pyaedt info: Added design ...

Methods

Maxwell3d.activate_variable_optimization(…)

Activate optimization analysis for a variable and optionally set up ranges.

Maxwell3d.activate_variable_sensitivity(…)

Activate sensitivity analysis for a variable and optionally set up ranges.

Maxwell3d.activate_variable_statistical(…)

Activate statitistical analysis for a variable and optionally set up ranges.

Maxwell3d.activate_variable_tuning(variable_name)

Activate tuning analysis for a variable and optionally set up ranges.

Maxwell3d.add_error_message(message_text[, …])

Add a type 0 “Error” message to either global, active project or active design level of the Message Manager tree.

Maxwell3d.add_info_message(message_text[, …])

Add a type 0 “Info” message to either global, active project or active design level of the Message Manager tree.

Maxwell3d.add_warning_message(message_text)

Add a type 0 “Warning” message to either global, active project or active design level of the Message Manager tree.

Maxwell3d.add_winding_coils(windingname, …)

Add coils to the winding.

Maxwell3d.analyse_nominal()

Solve the nominal design.

Maxwell3d.analyze_all()

Analyze all setup in an actual design.

Maxwell3d.analyze_from_initial_mesh()

Revert the solution to the initial mesh and re-run the solve.

Maxwell3d.analyze_from_zero()

Analyze from zero.

Maxwell3d.analyze_nominal([num_cores, …])

Solve the nominal design.

Maxwell3d.analyze_setup(name[, num_cores, …])

Analyze a specific design setup.

Maxwell3d.archive_project([project_file, …])

Archive the AEDT project and add a message.

Maxwell3d.assign_coil(input_object[, …])

Assign coils to a list of objects or face IDs.

Maxwell3d.assign_current(object_list[, …])

Assign the source of the current.

Maxwell3d.assign_force(input_object[, …])

Assign a force to the selection.

Maxwell3d.assign_material(obj, mat)

Assign a material to one or more objects.

Maxwell3d.assign_rotate_motion(band_object)

Assign a Rotation Motion to an object container.

Maxwell3d.assign_torque(input_object[, …])

Assign a torque to one or more objects.

Maxwell3d.assign_translate_motion(band_object)

Assign a Translation Motion to an object container.

Maxwell3d.assign_voltage(face_list[, …])

Assign a voltage source to a list of faces.

Maxwell3d.assign_voltage_drop(face_list[, …])

Assign a voltage drop to a list of faces.

Maxwell3d.assign_winding([coil_terminals, …])

Assign a winding to a Maxwell design.

Maxwell3d.autosave_disable()

Disable the Desktop Autosave.

Maxwell3d.autosave_enable()

Enable the Desktop Autosave.

Maxwell3d.change_automatically_use_causal_materials([…])

Enable or disable the automatic use of causal materials for lossy dielectrics.

Maxwell3d.change_inductance_computation([…])

Enable the inductance computation (for Transient Analysis) and sets the incremental_matrix.

Maxwell3d.change_material_override([…])

Enable or disable the material override in the project.

Maxwell3d.change_validation_settings([…])

Update the validation design settings.

Maxwell3d.check_beta_option_enabled(…)

Check if a Beta Option is enabled.

Maxwell3d.clean_proj_folder([directory, name])

Delete a project folder.

Maxwell3d.close_desktop()

Close the desktop and release AEDT.

Maxwell3d.close_project([name, saveproject])

Close an AEDT project.

Maxwell3d.copy_design_from(project_fullname, …)

Copy a design from a project into the active design.

Maxwell3d.copy_project(path, dest)

Copy the project to another destination.

Maxwell3d.copy_solid_bodies_from(design[, …])

Copy a list of objects from one design to the active design.

Maxwell3d.create_dataset(dsname, xlist, ylist)

Create a dataset.

Maxwell3d.create_dataset1d_design(dsname, …)

Create a design dataset.

Maxwell3d.create_dataset1d_project(dsname, …)

Create a project dataset.

Maxwell3d.create_dataset3d(dsname, xlist, ylist)

Create a 3D dataset.

Maxwell3d.create_new_project(proj_name)

Create a project within the desktop.

Maxwell3d.create_output_variable(variable, …)

Create or modify an output variable.

Maxwell3d.create_setup([setupname, …])

Create a setup.

Maxwell3d.dataset_exists(name[, …])

Check if a dataset exists.

Maxwell3d.deactivate_variable_optimization(…)

Deactivate the optimization analysis for a variable.

Maxwell3d.deactivate_variable_sensitivity(…)

Deactivate the sensitivity analysis for a variable.

Maxwell3d.deactivate_variable_statistical(…)

Deactivate the statistical analysis for a variable.

Maxwell3d.deactivate_variable_tuning(…)

Deactivate the tuning analysis for a variable.

Maxwell3d.delete_design([name, fallback_design])

Delete a design from the current project.

Maxwell3d.delete_project(project_name)

Delete a project.

Maxwell3d.delete_separator(separator_name)

Delete a separator from either the active project or a design.

Maxwell3d.delete_setup(setupname)

Delete a setup.

Maxwell3d.delete_variable(sVarName)

Delete a variable.

Maxwell3d.design_variation([variation_string])

Generate a string to specify a desired variation.

Maxwell3d.duplicate_design(label)

Copy a design to a new name.

Maxwell3d.eddy_effects_on(object_list[, …])

Assign eddy effects on objects.

Maxwell3d.edit_setup(setupname, properties_dict)

Modify a setup.

Maxwell3d.evaluate_expression(expression_string)

Evaluate a valid string expression and return the numerical value in SI units.

Maxwell3d.export3DModel(fileName, filePath)

Export the 3D model.

Maxwell3d.export_3d_model(fileName, filePath)

Export the 3D model.

Maxwell3d.export_convergence(setup_name[, …])

Export a solution convergence to file.

Maxwell3d.export_design_preview_to_jpg(filename)

Export design preview image to a jpg file.

Maxwell3d.export_mesh_stats(setup_name[, …])

Export mesh statistics to a file.

Maxwell3d.export_parametric_results(…[, …])

Export a list of all parametric variations solved for a sweep to a CSV file.

Maxwell3d.export_profile(setup_name[, …])

Export a solution profile to file.

Maxwell3d.export_results([analyze, …])

Export all available reports to file, including sNp, profile and convergence.

Maxwell3d.export_variables_to_csv(filename)

Export design properties, project variables, or both to a CSV file.

Maxwell3d.generate_temp_project_directory(…)

Generate a unique directory string to save a project to.

Maxwell3d.generate_unique_setup_name([…])

Generate a new setup with an unique name.

Maxwell3d.get_all_conductors_names()

Retrieve all conductors in the active design.

Maxwell3d.get_all_dielectrics_names()

Retrieve all dielectrics in the active design.

Maxwell3d.get_all_sources()

Retrieve all setup sources.

Maxwell3d.get_components3d_vars(component3dname)

Read the A3DCOMP file and check for variables.

Maxwell3d.get_evaluated_value(variable_name)

Retrieve the evaluated value of a design property or project variable in SI units if no Unit is provided.

Maxwell3d.get_excitations_name()

Get all excitation names.

Maxwell3d.get_nominal_variation()

Retrieve the nominal variation.

Maxwell3d.get_object_material_properties([…])

Retrieve the material properties for a list of given objects and return them in a dictionary.

Maxwell3d.get_output_variable(variable)

Retrieve the value of the output variable.

Maxwell3d.get_property_value(objectname, …)

Retrieve a property value.

Maxwell3d.get_registry_key_int(key_full_name)

Get Desktop Registry Key Value if exists, otherwise 0.

Maxwell3d.get_registry_key_string(key_full_name)

Get Desktop Registry Key Value if exists, otherwise ‘’.

Maxwell3d.get_setup(setupname)

Get the setup from the current design.

Maxwell3d.get_setups()

Retrieve setups.

Maxwell3d.get_sweeps(name)

Retrieve all sweep for a setup.

Maxwell3d.insert_design([design_name])

Add a design of a specified type.

Maxwell3d.list_of_variations([setup_name, …])

Return list of active variation for input setup.

Maxwell3d.load_project(project_file[, …])

Open an AEDT project based on a project file and an optional design.

Maxwell3d.plot([objects, show, export_path, …])

Plot the model or a substet of objects.

Maxwell3d.read_design_data()

Read back the design data as a dictionary.

Maxwell3d.release_desktop([close_projects, …])

Release the desktop.

Maxwell3d.rename_design(new_name)

Rename the active design.

Maxwell3d.save_project([project_file, …])

Save the AEDT project and add a message.

Maxwell3d.set_active_design(name)

Change the active design to another design.

Maxwell3d.set_active_dso_config_name([…])

Change a specific registry key to new value.

Maxwell3d.set_initial_angle(motion_setup, val)

Set the initial angle.

Maxwell3d.set_license_type([license_type])

Change the License Type between Pack and Pool.

Maxwell3d.set_registry_from_file(registry_file)

Apply desktop Registry settings from acf file.

Maxwell3d.set_registry_key(key_full_name, …)

Change a specific registry key to new value.

Maxwell3d.set_source_context(sources[, …])

Set the source context.

Maxwell3d.setup_ctrlprog(setupname[, …])

Configure the transient design setup to run a specific control program.

Maxwell3d.solve_in_batch([filename, …])

Analyze a design setup in batch mode.

Maxwell3d.solve_inside(name[, activate])

Solve inside.

Maxwell3d.submit_job(clustername[, …])

Submit a job to be solved on a cluster.

Maxwell3d.validate_simple([logfile])

Validate a design.

Attributes

Maxwell3d.aedt_version_id

AEDT version.

Maxwell3d.analysis_setup

Analysis setup.

Maxwell3d.available_variations

Available variation object.

Maxwell3d.components3d

Components 3D.

Maxwell3d.default_solution_type

Default solution type.

Maxwell3d.design_file

Design file.

Maxwell3d.design_list

Design list.

Maxwell3d.design_name

Design name.

Maxwell3d.design_properties

Design properties.

Maxwell3d.design_type

Design type.

Maxwell3d.desktop_install_dir

Desktop installation directory.

Maxwell3d.dim

Dimensions.

Maxwell3d.existing_analysis_setups

Existing analysis setups.

Maxwell3d.existing_analysis_sweeps

Existing analysis sweeps.

Maxwell3d.library_list

Library list.

Maxwell3d.lock_file

Lock file.

Maxwell3d.logger

Logger for the Design.

Maxwell3d.materials

Manages materials in the project.

Maxwell3d.mesh

Mesh.

Maxwell3d.modeler

Modeler.

Maxwell3d.nominal_adaptive

Nominal adaptive sweep.

Maxwell3d.nominal_sweep

Nominal sweep.

Maxwell3d.o_maxwell_parameters

AEDT MaxwellParameterSetup Object.

Maxwell3d.oanalysis

Analysis AEDT Module.

Maxwell3d.oboundary

Boundary Module.

Maxwell3d.odefinition_manager

Definition Manager Module.

Maxwell3d.odesign

Design.

Maxwell3d.odesktop

Desktop instance containing all projects and designs.

Maxwell3d.oimport_export

Import Export Manager Module.

Maxwell3d.omaterial_manager

Material Manager Module.

Maxwell3d.omodelsetup

AEDT Model Setup Object.

Maxwell3d.ooptimetrics

Optimetrics AEDT Module.

Maxwell3d.ooutput_variable

Output Variable AEDT Module.

Maxwell3d.oproject

Property.

Maxwell3d.osolution

Solution Module.

Maxwell3d.output_variables

List of Output variables.

Maxwell3d.personallib

PersonalLib directory.

Maxwell3d.post

PostProcessor.

Maxwell3d.project_file

Project file.

Maxwell3d.project_list

Project list.

Maxwell3d.project_name

Project name.

Maxwell3d.project_path

Project path.

Maxwell3d.project_properies

Project properties.

Maxwell3d.pyaedt_dir

PyAEDT directory.

Maxwell3d.results_directory

Results directory.

Maxwell3d.setup_names

Setup names.

Maxwell3d.solution_type

Solution type.

Maxwell3d.src_dir

Source directory for Python.

Maxwell3d.symmetry_multiplier

Symmetry multiplier.

Maxwell3d.syslib

SysLib directory.

Maxwell3d.temp_directory

Path to the temporary directory.

Maxwell3d.toolkit_directory

Path to the toolkit directory.

Maxwell3d.userlib

UserLib directory.

Maxwell3d.valid_design

Valid design.

Maxwell3d.variable_manager

Variable manager for creating and managing project design and postprocessing variables.

Maxwell3d.windings

Windings.

Maxwell3d.working_directory

Path to the working directory.