Presentation is loading. Please wait.

Presentation is loading. Please wait.

Maxwell 2D 参数化和后处理宏. T4_2D, pg. 2 6/28/02 参数化建模 简介 什么是参数化建模?  可以兼容一系列 FEM 问题 ,进而连续对各个问题求 解 使用参数化的主要优势是什么?  估算和优化一系列设计方案  成百上千的问题都可以一次性处理  Parametric.

Similar presentations


Presentation on theme: "Maxwell 2D 参数化和后处理宏. T4_2D, pg. 2 6/28/02 参数化建模 简介 什么是参数化建模?  可以兼容一系列 FEM 问题 ,进而连续对各个问题求 解 使用参数化的主要优势是什么?  估算和优化一系列设计方案  成百上千的问题都可以一次性处理  Parametric."— Presentation transcript:

1 Maxwell 2D 参数化和后处理宏

2 T4_2D, pg. 2 6/28/02 参数化建模 简介 什么是参数化建模?  可以兼容一系列 FEM 问题 ,进而连续对各个问题求 解 使用参数化的主要优势是什么?  估算和优化一系列设计方案  成百上千的问题都可以一次性处理  Parametric solution provides input for Equivalent Circuit Generator

3 T4_2D, pg. 3 6/28/02 参数化建模 典型例子  The force on a plunger at various operating positions  The power losses as a function of frequency  The torque on a motor throughout a range of rotational positions  一个设备在不同电流下的响应  函数变化的电场  一个设备的最合适壁厚的选择

4 T4_2D, pg. 4 6/28/02 参数化建模 变量 五种可能的变量类型  物体的移动  物体的形状变化  材料属性的变化  电源的变化  频率的扫描过程

5 T4_2D, pg. 5 6/28/02 参数化建模 物体的移动  在建模中通过定义约束设置参数  一个约束包含两个顶点 ( 起点和终点 )  起点必须是要移动的物体外的一个点  终点必须是要移动的物体周边上的一 个点  起点可以是在模型物体上,也可以在 非模型物体  一个物体只能由一个和外界物体间的 运行约束  另外,一个物体可以通过使用 Constraint / Add / rotation 命令实现 旋转

6 T4_2D, pg. 6 6/28/02 参数化建模 Object Shape Change  Setup by defining constraints in the Modeler  A constraint consists of two vertices (one anchor point and one target point)  BOTH anchor point and target point reside on the perimeter of the object whose shape will change  A constraint is required for EACH vertex to be moved  To actually expand and contract the length of a rectangle for instance, two separate constraints will need to be defined but each constraint can reference the same parametric variable

7 T4_2D, pg. 7 6/28/02 参数化建模 Material Property Change  Setup by defining a variable in the Material Manager  Appropriate for LINEAR materials properties (permeability in magnetostatic solutions and permitivity in electrostatic solutions)  Example: initialize a material property parametric variable to change linear permeability in a magnetostatic problem  Add a Material to the database  Select the "Options" button in the property declaration region  Toggle the "Mu" declaration from "Constant" to "Function“  Select the "Functions" button in the property declaration region  Enter a new variable; call it "mufunc= 1000" for instance  Enter the variable name into the "Mu" declaration box

8 T4_2D, pg. 8 6/28/02 参数化建模 Material Property Change

9 T4_2D, pg. 9 6/28/02 参数化建模 Source Change  Setup by defining a variable in the Boundary Manager  Currents in magnetostatic solutions and voltages in electrostatic solutions  Example: initialize a source change parameter variable to change the voltage in an object within an electrostatic problem  Select an object for source declaration  Select sequentially, the Assign/Source/Solid buttons  Select the "Options" button in the source declaration region  Toggle the "Voltage" declaration from "Constant" to "Function“  Select the "Functions" button in the property declaration region  Enter a new variable; call it "voltfunc= 100" for instance  Enter the variable name into the "Voltage" declaration box

10 T4_2D, pg. 10 6/28/02 参数化建模 Frequency Sweep  This form of parametric capability is automatically available in the eddy current solver  Useful for examining losses vs. frequency

11 T4_2D, pg. 11 6/28/02 参数化建模 Setting up the Process  Any variable can be accessed in the "Setup Solution Variables" spreadsheet  Variables are activated by using: Variables/Add  Define range of variation by: Data/Sweep  The number of solutions is exponential: x=4 values with n=3 variables results in (x)n = (4)3 = 64 rows in the table Note: The table can expand quickly!  Executive Parameters such as force are automatically reported in the spreadsheet - matrix entries must be selected under Select Matrix Entries  Alternately, the user can define a "Post Processing Macro" which can write a result to the spreadsheet

12 T4_2D, pg. 12 6/28/02 Post Processing Macros  Used to record a series of calculations in the post processing calculator  A macro can be invoked by: File/Trans/Start  Example: power loss calculation (XY) file/macro/start recording/macro name: loss.mac/ ok / Data/ Calculator/ Qty /J / push/ Cmplx/Conj/ material/conductivity/ divide /ok/ dot/ Cmplx/ Real/ Number/ Scalar /.5/ ok/ multiply/ Geometry/ Surface/ -all-/ ok/ integrate/ evaluate/ write/ Constant entry name: power_loss/ ok / Write to file: power_loss.reg/ done/ macro/stop recording  variable power_loss will appear in spreadsheet

13 T4_2D, pg. 13 6/28/02 Post Processing Macros Including Macro in Spreadsheet

14 T4_2D, pg. 14 6/28/02 Post Processing Macros Including Macro in Spreadsheet  Note: To sweep frequency with logarithmic scale, use data/ sweep:  val(t) = 10 ** t  t_start = 1  t_end = 4  number of samples = 4  Click on preview to see if you get 10, 100, 1000, 10000


Download ppt "Maxwell 2D 参数化和后处理宏. T4_2D, pg. 2 6/28/02 参数化建模 简介 什么是参数化建模?  可以兼容一系列 FEM 问题 ,进而连续对各个问题求 解 使用参数化的主要优势是什么?  估算和优化一系列设计方案  成百上千的问题都可以一次性处理  Parametric."

Similar presentations


Ads by Google