Skip to content

When using the “PM synchronous motor transient analysis”, an unknown variable appears and keeps reporting errors #5866

Closed Answered by gmalinve
CunhaoRong asked this question in Q&A
Discussion options

You must be logged in to vote

@CunhaoRong did you check what is returned by this method?
plot1 = m2d.post.create_fieldplot_surface( assignment=faces_reg, quantity="Flux_Lines", intrinsics={"Time": m2d.variable_manager.variables["StopTime"].evaluated_value}, plot_name="Flux_Lines", )
if plot1 is False it means that it failed for some reason.
If you are using PyCharm you can try to debug the code and put a breakpoint at this line to check why it fails:

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CunhaoRong
Comment options

Comment options

You must be logged in to vote
3 replies
@CunhaoRong
Comment options

@gmalinve
Comment options

Answer selected by Samuelopez-ansys
@CunhaoRong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants