- 积分
- 5854
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 120
- 最后登录
- 1970-1-1
该用户从未签到
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
LinePlot2D是maxwell 2d 11和maxwell 3d 10及对应以前版本后处理宏中的一个函数,LinePlot2D可以实现同一直线上不同的量共同显示,关键是最后一个参数,以下是文档中的介绍:
Creates a 2D line plot from the contents of the top two registers of the
stack. The top of the stack must be a line geometry followed by a scalar
quantity.
Command: Plot/Field, Field Calculator
Syntax: lineplot “Plot name” COLOR WIDTH MARKER_STYLE
LINE_STYLE DRAW_MARKER? DRAW_LINE? NEW_WINDOW?
Note: color: Select a value between 0 and 255.
width: The higher the number the thicker the line.
marker_style: Select from the following types.
Type Marker
0 no marker
6 Triangle
1 .
7 Circle
2x
8 Solid Square
3 +
9 Solid Diamond
4 Square
10 Solid Triangle
5 Diamond
11 Solid Circle
line_style: Select from the following types.
Style Line Form
1 Solid line.
2 Dashed line.
3 Dotted line.
4 Dash-dot line.
5 Dash-dot-dot line.
draw_marker?: 0=No Markers, 1=Draw Markers
draw_line?: 0=No lines, 1=Draw lines
new_window?: 0=Add to current window, 1=New window
————————————————————————————
第一次输出图形最后一个参数为1,后面输出图形最后一个参数为0就可以实现在一个输出图形中包含多条曲线,此时再用Save2DPlot就可以将所有图形中的曲线数据保存在一个文件中了。
如果是统计每一步的某个点计算结果,可以采用如下的方法:
指定,后处理宏,内容如下:
DefinePoint "ptProbe" [38, 0, 0]
Enter "B"
Scalar_Z
EnterPoint "ptProbe"
Value
Evaluate
Assign ptProbeBz GetTopEntryValue
Assign sFileName "..\ProbeZ.txt"
FileWrite sFileName "a" "$$, " {ptProbeBz}
DeletePoint "ptProbe"
分析完成后将在*.pjt目录中看到一个ProbeZ.txt文件,里面是以','(逗号,你可以指定别的)隔开的每一步结果,后面你可以将结果导入excel,matlab等都可以。 |
|