create_choke#

Modeler3D.create_choke(input_file)[source]#

Create a choke from a JSON setting file.

Parameters:
input_filestr

Full path of the JSON file with the choke settings.

Returns:
List of
bool

True when successful, False when failed.

pyaedt.modeler.cad.object3d.Object3d

3D object core.

list of
pyaedt.modeler.cad.object3d.Object3d

3D object winding.

list

list of point coordinates of the winding. for each winding. [bool, core_obj, [first_winding_obj, first_winding_point_list], [second_winding_obj, second_winding_point_list], etc…]

Examples

Json file has to be like the following example.

>>> from pyaedt import Hfss
>>> hfss = Hfss()
>>> dictionary_values = hfss.modeler.check_choke_values("C:/Example/Of/Path/myJsonFile.json")
>>> mychoke = hfss.modeler.create_choke("C:/Example/Of/Path/myJsonFile_Corrected.json")