I would like to plot the field lines on of the surface of my system. After making the Analyze, I tried to plot lines with this :
app = Maxwell2d()
# Get face IDs of the air block
face_ids = app.modeler.get_object_faces("AirBloc")
oModule = oDesign.GetModule("FieldsReporter")
seeding_faces_str = str(seeding_faces[0])
oModule.CreateFieldPlot(
[
"NAME:FieldLineTrace_Plot1",
"SolutionName:=" , "Setup1 : LastAdaptive",
"UserSpecifyName:=" , 0,
"UserSpecifyFolder:=" , 0,
"QuantityName:=" , "QuantityName_FieldLineTrace",
"PlotFolder:=" , "Field line trace plot",
"IntrinsicVar:=" , "",
"Trace Step Length:=" , "0.001mm",
"Use Adaptive Step:=" , True,
"Seeding Faces:=" , f"[1,{seeding_faces_str}]",
"Seeding Markers:=" , [0],
"Surface Tracing Objects:=", [0],
"Volume Tracing Objects:=", f"[1,{seeding_faces_str}]",
"Seeding Sampling Option:=", True,
"Seeding Points Number:=", 100,
"Fractional of Maximal:=", 0.2,
"Discrete Seeds Option:=", "Maximal Field Point",
[
"NAME:InceptionEvaluationSettings",
"Gas Type:=" , 0,
"Gas Pressure:=" , 1,
"Use Inception:=" , True,
"Potential U0:=" , 0,
"Potential K:=" , 0,
"Potential A:=" , 1
],
[
"NAME:FieldLineTracePlotSettings",
[
"NAME:LineSettingsID",
"Width:=" , 1,
"Style:=" , "Solid"
],
"IsoValType:=" , "Tone"
]
], "FieldLineTrace")
But, I get an message on Ansys that said the plot have been removed because of a geometry/Value change :
[warning] Plot 'FieldLineTrace_Plot1' has been removed due to deletion of quantity expression.