Skip to content

Commit

Permalink
Add component name
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Oct 23, 2023
1 parent f8c7692 commit d7f8e2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def create_resistor(self, compname=None, value=50, location=None, angle=0, use_i
)

id.set_property("R", value)

id.set_property("Name", compname)
return id

@pyaedt_function_handler()
Expand Down Expand Up @@ -138,6 +138,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i
)

id.set_property("L", value)
id.set_property("Name", compname)
return id

@pyaedt_function_handler()
Expand Down Expand Up @@ -177,6 +178,7 @@ def create_capacitor(self, compname=None, value=50, location=[], angle=0, use_in
)

id.set_property("C", value)
id.set_property("Name", compname)
return id

@pyaedt_function_handler()
Expand Down Expand Up @@ -215,6 +217,8 @@ def create_diode(self, compname=None, location=None, angle=0, use_instance_id_ne
angle=angle,
use_instance_id_netlist=use_instance_id_netlist,
)

id.set_property("Name", compname)
return id

@pyaedt_function_handler()
Expand Down Expand Up @@ -250,4 +254,5 @@ def create_winding(self, compname=None, location=[], angle=0, use_instance_id_ne
angle=angle,
use_instance_id_netlist=use_instance_id_netlist,
)
id.set_property("Name", compname)
return id

0 comments on commit d7f8e2f

Please sign in to comment.