check_choke_values#
- Modeler3D.check_choke_values(input_dir, create_another_file=True)#
Verify the values in the json file and create another one with corrected values next to the first one.
- Parameters:
- Returns:
List
True
when successful,False
when failed.- dictionary
class
‘dict’
Examples
Dictionary of the Json file has to be like the following example : dictionary = { “Number of Windings”: {“1”: True, “2”: False, “3”: False, “4”: False}, “Layer”: {“Simple”: True, “Double”: False, “Triple”: False}, “Layer Type”: {“Separate”: True, “Linked”: False}, “Similar Layer”: {“Similar”: True, “Different”: False}, “Mode”: {“Differential”: True, “Common”: False}, “Wire Section”: {“None”: False, “Hexagon”: False, “Octagon”: True, “Circle”: False}, “Core”: {“Name”: “Core”, “Material”: “ferrite”, “Inner Radius”: 11, “Outer Radius”: 17, “Height”: 7, “Chamfer”: 0.8}, “Outer Winding”: {“Name”: “Winding”, “Material”: “copper”, “Inner Radius”: 12, “Outer Radius”: 16, “Height”: 8, “Wire Diameter”: 1, “Turns”: 10, “Coil Pit(deg)”: 9, “Occupation(%)”: 0}, “Mid Winding”: {“Turns”: 8, “Coil Pit(deg)”: 0.1, “Occupation(%)”: 0}, “Inner Winding”: {“Turns”: 12, “Coil Pit(deg)”: 0.1, “Occupation(%)”: 0} }
>>> import json >>> with open("C:/Example/Of/Path/myJsonFile.json", "w") as outfile: >>> json.dump(dictionary, outfile) >>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> dictionary_values = hfss.modeler.check_choke_values("C:/Example/Of/Path/myJsonFile.json")