Operations
Operations
Operations
2
User's Manual
Operations
JSOL Corporation
Issue date of 1st Edition: August 2023
COPYRIGHTS
Copyright © 2023 JSOL Corporation All Rights Reserved.
• Information in this document is subject to change without notice.
• No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic or
mechanical, including photocopying and recording for any purpose other than the purchaser’s personal use without the written per-
mission of JSOL Corporation.
JMAG Division
JSOL Corporation
Tokyo/ KUDAN-KAIKAN TERRACE 11th Floor, 1-6-5 Kudanminami, Chiyoda-ku, Tokyo 102-0074, Japan
Phone: +81(03)6261-7361 Phone (Support): +81(03)6261-7362 FAX: +81(03)5210-1142
Osaka/ Tosabori Daibiru Bldg. 2-2-4 Tosabori, Nishi-ku, Osaka 550-0001, Japan
Phone: +81(06)4803-5820 FAX: +81(06)6225-3517
Email: jmag-support@sci.jsol.co.jp URL: https://www.jmag-international.com/
Trademarks
• JMAG and JMAG-RT are registered trademarks of JSOL Corporation.
• Abaqus, CATIA, SIMULIA and SOLIDWORKS are trademarks or registered trademarks of Dassault Systemes or its subsidiaries in
the United States and/or other countries.
• AMD and AMD Opteron is a trademark of Advanced Micro Devices, Inc.
• Amesim, LMS Virtual.Lab, NX, Parasolid, Siemens, Simcenter, Simcenter 3D, Solid Edge, and STAR-CCM+ are trademarks or reg-
istered trademarks of Siemens Industry Software Inc., or its subsidiaries or affiliates, in the United States and in other countries.
• CAPRI CAE Gateway is a registered trademark of CADNexus Inc. in the United States and other countries.
• Creo and Pro/ENGINEER are registered trademarks of PTC, inc.
• DXF and Inventor are trademark or registered trademark of Autodesk, Inc. in the United States and/or other countries.
• Excel, Microsoft, Visual C++, Windows, and Windows 10 are either registered trademarks of Microsoft Corporation in the United
States and/or other countries.
• Flexera Software and FLEXlm are registered trademarks of Flexera Software LLC in the United States and other countries.
• Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other
countries.
• LabVIEW is a registered trademark of National Instruments Corporation.
• Linux is a registered trademark of Linus Torvalds in the United States and other countries.
• LSF is a registered trademark of IBM Corporation in the United States, other countries, or both.
• MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
• MSC NASTRAN is a trademark of MSC Software Corporation.
• NASTRAN is a registered trademark of the National Aeronautics and Space Administration.
• NX Nastran is an enhanced proprietary version developed and maintained by Siemens Product Lifecycle Management Software Inc.
• NVIDIA is a trademark or registered trademark of NVIDIA Corporation in the United States and/or other countries.
• OpenOffice.org and Apache OpenOffice are registered trademarks of the Apache Software Foundation.
• PSIM is a registered trademark of Powersim Inc.
• ROMAX is a trademark of Romax Technology, LTD.
• Tecplot is a registered trademark of Tecplot, Inc. in the United States and other countries.
• Trademark information for PowerCore, owned by ThyssenKrupp Electrical Steel GmbH.
• All other product and company names are trademarks, registered trademarks, or service marks of their respective companies, organiza-
tions, or holders.
• This document does not include the letters ® and TM.
CONTENTS
Basic Operations
Creating Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Opening Existing Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Using Trees and Tool Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Expand and Collapse the Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Select Multiple Items in the Tree. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Duplicate with a Drag and Drop Operation on the Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Rearrange Models and Studies in the Tree. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Switch Tabs in Toolbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Saving Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Creating New Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Checking/Setting Project Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Loading Files into Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Using the Direct Access Function to Execute Commands and Functions . . . . . . . . . . . . . . . . . . . . . . . 34
Undoing/Redoing Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Setting JMAG-Designer Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Checking JMAG-Designer Version Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Specifying Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Common Operations for Screen Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Expand the Graphics Window (Temporarily Hiding the [Toolbox] and [Undo Stack] Box) . . . . . . . . . . . . . . . . . . . . . 38
Switch Panels, Buttons, and Shortcut Icons Between Show/Hide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Detach and Attach Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Reset Window and Dialog Positions to Default . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Selecting Display Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Select Model Types for Screen Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Select Model Display Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Display Only a Selected Part, Element, Air Region, Shell Element, or Beam Element . . . . . . . . . . . . . . . . . . . . . . . . 43
Display IDs for Parts, Faces, Edges, Vertices, Elements, and Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Change a Graphics Window Layout and Background Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Set a Part Color and Transparency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Highlight a Vertex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Disable the Highlight Function During Mouse Hover in the [Project Manager] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Selecting Viewpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Rotate a Model Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Change the Display Size of a Model or Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Move the Display Position inside a Graphics Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Scroll in the Circuit Creation Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Change the Viewpoint Using Menus and Toolbar Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Change the Viewpoint by Specifying the Rotation Angle in Each Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
3
JMAG Version 22.2 User's Manual
Operations
Parameter Settings
Setting Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Specifying Analysis Condition and Function Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Defining Axes and Directions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Define the Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Define the Directions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Define the Axes or Directions by Referencing Edges, Faces, and Vertices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Define the Axes or Directions Using Reference Targets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Specifying Results Files To Be Referenced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Specify Results Files in the Setting Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Use the Reference Coordinate System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Reference the CSV File/Text File Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Assigning Numerical Expressions and Variables to Parameter Values . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Assign Numerical Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Assign Equation Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Use Created Equation Variables in Other Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Dragging-and-Dropping Settings and Copying Between Models or Studies . . . . . . . . . . . . . . . . . . . . . 82
Referencing Part Geometries Other Than the Currently Edited Part (Geometry Editor) . . . . . . . . . . . 83
4
CONTENTS
Model Operations
5
JMAG Version 22.2 User's Manual
Operations
6
CONTENTS
7
JMAG Version 22.2 User's Manual
Operations
8
CONTENTS
9
JMAG Version 22.2 User's Manual
Operations
Study Operations
Material Settings
10
CONTENTS
11
JMAG Version 22.2 User's Manual
Operations
Modify the Element of the Mesh Group during Condition Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Select Elements, Element Faces, Element Edges, and Nodes as Groups in Mesh Groups . . . . . . . . . . . . . . . . . . . 351
Circuit Settings
Meshing
12
CONTENTS
Set Element Sizes for Parts, Faces, Edges, and Vertices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Set Element Sizes for Specified Regions in Air Regions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Use the Slide Mesh Function and the Standard Mesh Function ([Extended Slide Plane]). . . . . . . . . . . . . . . . . . . 389
Use the Slide Mesh Function and the Function That Generates a Mesh at Each Analysis Step ([Extended Slide Plane
(Used until V.18.0)]) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Generate a Mesh with a Differences in Coarseness in Each Direction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Simplify a Part of Model Geometry at Mesh Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Generate a Mesh That Takes the Skin Effect into Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Generate a Layered Mesh Simulating a Laminated Steel Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Generate Meshes That Take the Thin Film Wire Coatings into Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Generate a Layered Mesh in Shell or Thin Laminated Solid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Generate the Same Mesh for Multiple Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Generate Symmetric Meshes in Models with Rotational Periodicity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Specify Mesh Division of a Surface Using a Result File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Using Options for Editing Mesh Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Change Mesh Model Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Apply Skews to Mesh Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Regenerate a Mesh for Specified Regions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Restoring Mesh Models to Their State Before Mesh Regeneration . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Showing/Hiding Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Creating a New Mesh Model Containing Only the Mesh of the Selected Parts . . . . . . . . . . . . . . . . . 405
Running Analyses
13
JMAG Version 22.2 User's Manual
Operations
Displaying Results
14
CONTENTS
15
JMAG Version 22.2 User's Manual
Operations
Analysis Templates
16
CONTENTS
17
JMAG Version 22.2 User's Manual
Operations
Multiple Calculations
(Parametric Analysis and Optimization)
Creating Input Files for Parametric Analysis From the Command Line . . . . . . . . . . . . . . . . . . . . . . 661
Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Basic Procedure for Using JparamGenerator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Creating Input CSV Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Running JparamGenerator From the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
18
CONTENTS
Coupled Analysis
19
JMAG Version 22.2 User's Manual
Operations
Dashboard Functions
Tools
JMAG-Express
20
CONTENTS
Running Batch Files for Analyses Linked with Third-party Software . . . . . . . . . . . . . . . . . . . . . . . 803
Linking Processes Using Batch Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 804
Creating Batch Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
Using Scripts
21
JMAG Version 22.2 User's Manual
Operations
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
22
About This Edition
“JMAG User's Manual Operation Edition” explains the operation procedure of each function in the following
programs according to purpose.
• JMAG-Designer
• Circuit Editor
• Geometry Editor
• Transformer modeling tool
• JMAG-Scheduler
• Script Editor
MEMO JMAG user's manual is divided into contents.
• “JMAG Installation Manual”.
• “JMAG User's Manual Screen Configuration Edition”
• “JMAG User's Manual Operations Edition”
• “JMAG User's Manual Parameter Explanation Edition”
• “JMAG User's Manual JMAG-Express, JMAG-RT, JMAG-RT Viewer Edition”
• “JMAG User's Manual Coupled Analysis Edition”
• “JMAG User's Manual Files Edition”
• “JMAG User's Manual Licenses”
• “JMAG User's Manual Scripts Edition” and “Script Help”.
• “JMAG User's Manual Analysis Guide”
• “JMAG User's Manual Iron Loss Formulas”
23
JMAG Version 22.2 User's Manual
Operations
24
Basic Operations
Creating Projects
This chapter describes JMAG-Designer's operations related to projects and environment setting.
The configuration of parts and analysis conditions are managed within “Projects.” JMAG-Designer launches
every time with an empty project (.jproj) open.
27
JMAG Version 22.2 User's Manual
Operations
1. Start JMAG-Designer.
When you start JMAG-Designer, the startup window will be displayed. JMAG-Designer
launches every time with an empty project open.
2. Select [JMAG Project Files (.jproj)] under [Open File].
The [Open File] dialog is displayed.
4. Click [Open].
The contents of the project are displayed in a tree format in JMAG-Designer's [Project Manager]
tree according to its hierarchical structure.
28
Creating Projects
29
JMAG Version 22.2 User's Manual
Operations
30
Creating Projects
31
JMAG Version 22.2 User's Manual
Operations
Saving Projects
Overwrite the project
1. Select [File] > [Save As] from the JMAG-Designer menu bar.
2. In the [Save As] dialog, set the file name and location.
3. Click [Save].
1. Select [File] > [Project Export] from the JMAG-Designer menu bar.
2. In the [Project Export] dialog, select the checkboxes of the models and studies to be
exported.
• The corresponding model or study will be filtered and displayed on the list when part of the
model or study name is entered in the [Filter] box. A wildcard character (?, *) can be used.
• Click [Select All] and the checkboxes of all models and studies in the list will be selected.
• Click [Clear All] to clear the checkboxes of all models and studies.
3. To save the project in the old version format, change the [Save Version].
4. To save the analysis results (.jplot) with the project, select [Save Analysis Results].
5. Click [OK].
A dialog is displayed for specifying the file name and location.
6. Set the file name and location.
7. Click [Save].
When saving the project in an older version format, the [Project Export Warning] dialog displays
a list of features not supported in the old version.
32
Creating Projects
33
JMAG Version 22.2 User's Manual
Operations
3. From the commands and functions displayed, select the one you want to execute.
4. Press the [Enter] key on the keyboard.
This will execute the command selected or display the settings panel of the function selected.
34
Creating Projects
Undoing/Redoing Operations
Operations done on JMAG-Designer, Geometry Editor, Circuit Editor can be restored and redone
using the menu bar and toolbar buttons.
35
JMAG Version 22.2 User's Manual
Operations
36
Specifying Views
This chapter describes the procedure for changing the items displayed in the graphics window and for changing
the viewpoint.
37
JMAG Version 22.2 User's Manual
Operations
Expand the Graphics Window (Temporarily Hiding the [Toolbox] and [Undo Stack]
Box)
By clicking , the [Toolbox] in JMAG-Designer and the [Toolbox] and [Undo Stack] box in Geom-
etry Editor can be hidden temporarily. Use this function when wanting to expand the graphics win-
dow.
In the default screen layout, buttons are displayed in the lower left corner of [Toolbox] and the
upper right corner of the [Undo Stack] box.
38
Specifying Views
By clicking , [Toolbox] or the [Undo Stack] box can be hidden from the JMAG-Designer or
Geometry Editor window. will then change to .
By clicking , [Toolbox] or the [Undo Stack] box can be made to appear in the JMAG-Designer (or
Geometry Editor) screen. will then change to .
MEMO [Toolbox] and the [Undo Stack] box will remain hidden via only while JMAG-Designer is
running. To keep [Toolbox] and the [Undo Stack] box hidden, follow the steps as described in the expla-
nation “Switch Panels, Buttons, and Shortcut Icons Between Show/Hide” on page 39.
• Selecting [View] > [Toolbar] from the menu bar on each window displays a menu with the titles
of the panels and toolbars. The same menu is also displayed when right-clicking in an empty
space within the area where the menu or toolbar is displayed.
A check mark is attached to the left side of the currently displayed panel or toolbar. Selecting the
displayed panel or toolbar from the menu hides it, and if you select the non-displayed panel or
toolbar, it switches to display.
Toolbar buttons
Buttons are displayed in the toolbar per item. When all buttons in the toolbar are not displayed due
to the screen size, all buttons can be expanded and shown by clicking [>>] displayed on the right
side of the toolbar.
Also, buttons of Geometry Editor toolbars may be displayed in groups of related functions. In that
case, the arrow icon is displayed on the right side of the buttons. Clicking the arrow icon dis-
plays all buttons belonging to the group.
39
JMAG Version 22.2 User's Manual
Operations
Left: The arrow icon displayed on the right side of the button on the toolbar,
Right: [>>] displayed on the right side of the toolbar
Shortcut icon
The shortcut icons are displayed in the lower part of the JMAG-Designer graphics window. Click
each icon to display the dialog of the current study.
To hide a shortcut icon, select [Display] > [Shortcut] > (dialog name) from the menu bar and clear
the checkbox.
To show the shortcut icon again, select [Display] > [Shortcut] > (dialog name) from the menu bar
and select the checkbox.
• When wanting to attach each panel to the main window, drag-and-drop each panel onto the
main window. A panel can be dragged to inside a space on the main window and attached there
40
Specifying Views
while that space is displayed in blue. The same operation is possible by double clicking the panel
title bar while it is detached.
41
JMAG Version 22.2 User's Manual
Operations
MEMO [View Model] is not available when displaying the vector or contour results. Select the [View
Mesh Geometry] to display the vector or contour plot results.
42
Specifying Views
Display Only a Selected Part, Element, Air Region, Shell Element, or Beam
Element
43
JMAG Version 22.2 User's Manual
Operations
Geometry and elements can be switched between being shown/hidden by using the menu displayed
when right-clicking each item displayed in the [Model Manager] tree. The icon image displayed in
the [Model Manager] tree will change for the geometry and elements that are hidden from display.
JMAG-Designer
• [Show Selected Part] • [Show All Shell] for 3D models
• [Hide Selected Part] • [Hide All Shell] for 3D models
• [Show All Parts] • [Show All Beam] for 2D models
• [Hide All Parts] • [Hide All Beam] for 2D models
• [Show All Air Region]
• [Hide All Air Region]
44
Specifying Views
• Show/hide settings for elements are effective only for the active case. When switching the active
study or case via the [Project Manager] tree, show/hide settings for each individual element are
cleared.
Geometry Editor
• [Show Only Selected Geometries] • [Show Only Selected Elements]
• [Hide Selected Geometries] • [Hide Selected Elements]
• [Show All Geometries] • [Show Only Elements of Selected Mesh Blocks]
• [Hide All Geometries] • [Hide Elements of Selected Mesh Blocks]
Display IDs for Parts, Faces, Edges, Vertices, Elements, and Nodes
To display part or face IDs in the graphics window, select [View] > [ID] > (item) from the menu bar.
The check marks to the left of each item indicate that the item is displayed (or applied) in the graph-
ics window.
When [Show All IDs] is checked under [View] > [ID], the IDs of parts and faces that do not appear
on model surfaces are also displayed.
JMAG-Designer
• [Rendering]
• [Display]:
[Axis Triad], [Shadow]
45
JMAG Version 22.2 User's Manual
Operations
• [Appearance]
• [Background Color]
• [Mesh Line Color], [Model Outline Color], [Element Color], [Node ID Color]
• [Layout]
• [Labels]:
[Study Title], [Case], [Step], [Time/Frequency], [Coupled Analysis Time], [Phase]
• [Scalebar]:
[Vector], [Contour]
• [Contour] of [Probes], [Maximum position], and [Minimum position]
Geometry Editor
• [Rendering]
• [Display]:
[Axis Triad], [Number of Elements/Number of Nodes], [Shadow]
• [Appearance]
• [Background Color]
• [Select Color]:
[Element ID Color], [Node ID Color]
Color palette
To use a color not displayed in the color palette, click . Create the color in the [Select Color] dia-
log and click [OK].
46
Specifying Views
Highlight a Vertex
Select [View] > [Visibility] > [Vertices] from menu bar to highlight the vertices of all the parts in the
graphics window.
Disable the Highlight Function During Mouse Hover in the [Project Manager]
Hover the mouse pointer over items displayed in the [Project Manager] tree such as materials and
conditions, to display the parts and elements, etc., to which those items are set to as highlighted in
the graphics window.
The highlight function during mouse hover can be disabled when using large-scale models to reduce
the amount of load on JMAG-Designer and enable operations to proceed more smoothly.
To disable the highlight function during mouse hover, select [Select] > [Highlight Target on Mouse
Over] from the menu bar, and remove the check mark from the left of the [Highlight Target on
Mouse Over] command. When not checked, highlight by clicking on the item in the [Project Man-
ager] tree.
47
JMAG Version 22.2 User's Manual
Operations
Selecting Viewpoints
By changing the viewpoint, materials and conditions can easily be set for each part.
In the lower left corner of the graphics window, the orientation of the model in the coordinate sys-
tem is indicated by the icon as shown in the following figure.
MEMO Shortcut settings for operations such as enlarging/shrinking and rotating, for models can be
changed and customized to the same as those for commercial CAD software in the JMAG-Designer
[Preferences] dialog [Operation] setting panel. Settings configured in the [Operation] setting panel are
made effective not only in JMAG-Designer, but also Geometry Editor and the Circuit Editor. For
details, see “Parameter Explanation Edition”.
• Rotate a Model Display (page 48)
• Change the Display Size of a Model or Circuit (page 49)
• Move the Display Position inside a Graphics Window (page 49)
• Scroll in the Circuit Creation Window (page 49)
• Change the Viewpoint Using Menus and Toolbar Buttons (page 49)
• Change the Viewpoint by Specifying the Rotation Angle in Each Axis (page 50)
• Add a User-Defined Viewpoint and Apply It to a Custom Model (page 51)
48
Specifying Views
49
JMAG Version 22.2 User's Manual
Operations
MEMO You can also use the toolbar buttons on the [Viewpoint] toolbar (such as [Front] ) and the
menu displayed by right-clicking in the graphics window.
JMAG has the following default viewpoints.
Coordinate
Viewpoint Toolbar button Descriptions
System
Front Displays the front of the model.
The Z-axis of the coordinate system faces out of the
screen, and the Y-axis faces upward.
Back Displays the back of the model.
The Z-axis of the coordinate system faces into the
screen, and the Y-axis faces upward.
Top Displays the top of the model.
The Y-axis of the coordinate system faces out of the
screen, and the Z-axis faces downward.
Bottom Displays the bottom of the model.
The Y-axis of the coordinate system faces into the
screen, and the Z-axis faces upward.
Left Displays the left side of the model.
The X-axis of the coordinate system faces into the
screen, and the Y-axis faces upward.
Right Displays the right side of the model.
The X-axis of the coordinate system faces out of the
screen, and the Y-axis faces upward.
Isometric View Displays the model in an isometric view.
The coordinate system is shown so that the angle of
each coordinate axis to the viewpoint axis is equal.
The X, Y, and Z axes are shown to be 120 degrees
apart from each other referenced to the plane of the
graphics window.
1. Select [View] > [Viewpoint] > [View Control] from the menu bar.
Or click [Show the View Control Dialog] .
2. In the [View Control] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [Apply] or [Apply All Windows].
When [Apply] is clicked, the viewpoint set is applied to the active window.
When [Apply All Windows] is clicked, the viewpoint set will be applied to all windows.
4. Click [Close].
50
Specifying Views
Saving a viewpoint
Applying a viewpoint
Deleting a viewpoint
Select a viewpoint in the [Views] list and click [Delete].
51
JMAG Version 22.2 User's Manual
Operations
52
Specifying Views
Closing a window
Select [Window] > [Close] from the menu bar to close the active window.
Select [Window] > [Close not active] from the menu bar to close all the windows that are not active.
53
JMAG Version 22.2 User's Manual
Operations
54
Selecting Parts, Faces, Elements, and Nodes
This chapter describes how to select a part (or face, edge, vertex, node, element edge, element face, element)
from the model. In JMAG, there are many opportunities to select parts (or aces, edges, vertices, nodes, element
edges, element faces, elements) by setting conditions, materials, mesh generation, etc.
55
JMAG Version 22.2 User's Manual
Operations
JMAG-Designer
• [Select Vertex]
• [Select Edge]
• [Select Face] :
3D model only.
• [Select Part]
• [Select Node]
• [Select Element Edge]
• [Select Element Face] :
3D model only.
• [Select Element]
MEMO [Select Element Face] cannot be used for 2D model or an axisymmetric model.
In a section analysis study or a transformer analysis study, [Select Element Face] can be used for condi-
tions or setting materials in a 3D model. [Select Element Face] cannot be used to display results for a 2D
model or an axisymmetric model.
Geometry Editor
• [Geometry Select]
• [Basic Shape Select Filter]
• [Constraint Select Filter]
• [Region Select Filter]
• [Node Select]
• [Element Edge Select]
• [Element Face Select] :
3D model only.
• [Element Select]
56
Selecting Parts, Faces, Elements, and Nodes
57
JMAG Version 22.2 User's Manual
Operations
1. From the menu bar, select [Select] > [Rectangle Region Selection].
Or, click [Rectangle Region Selection] on the toolbar.
When this operation is performed, [Select] in the toolbar is automatically selected.
1. From the menu bar, select [Select] > [Circular Region Selection].
Or, click [Circular Region Selection] on the toolbar.
When this operation is performed, [Select] in the toolbar is automatically selected.
58
Selecting Parts, Faces, Elements, and Nodes
1. From the menu bar, select [Select] > [Polygon Region Selection].
Or, click [Polygon Region Selection] on the toolbar.
When this operation is performed, [Select] in the toolbar is automatically selected.
2. Click and drag at the desired position.
The clicked position is the starting point of the polygon. The polygonal frame is displayed as a
green line on the graphics window.
3. Move the mouse pointer to the desired position and click.
4. Repeat moving and clicking to the desired position to determine the vertices of the
polygon.
5. Move the mouse pointer to the starting point of the polygon and click.
The polygonal frame is now determined and the object within that frame is selected.
MEMO To deselect a selection, click a blank space in the graphics window.
MEMO To deselect a portion of a selection, hold down the [Ctrl] key and click the object to be dese-
lected.
MEMO If you select an object while [Sight Through] is selected, the object will be selected even if
it is not visible on the surface.
59
JMAG Version 22.2 User's Manual
Operations
60
Selecting Parts, Faces, Elements, and Nodes
61
JMAG Version 22.2 User's Manual
Operations
62
Parameter Settings
Setting Parameters
In this chapter, the procedure for setting parameters in JMAG-Designer, Geometry Editor, etc. is explained.
65
JMAG Version 22.2 User's Manual
Operations
Setting target for conditions and functions are displayed in a list. The following operations can be
performed in each list:
66
Setting Parameters
Button Description
[Select Sets] , [Select Displays the [Select] dialog. The [Select] dialog allows you to select sets
Sets and Mesh and mesh groups to be added to the list.
Groups] For details on mesh groups, see “Creating Element/Element Face/Element
Edge/Node Groups to Set Conditions” on page 349. For details on sets,
see “Creating Part/Face/Edge/Vertex Groups to Set Conditions” on
page 346.
Context menu
After right-clicking the settings list, the following operations are possible from the menu that is dis-
played:
Command Description
[Select Sets and Mesh Displays the [Select] dialog. The [Select] dialog allows you to select sets
Groups] and mesh groups to be added to the list.
[Convert to Entity] Disbands the selected set and displays parts (or faces, edges, vertices) con-
tained in it.
[Edit] Updates elements, element faces, element edges, or nodes contained in the
currently selected mesh group. After clicking this button, select elements,
element faces, element edges, or nodes in the graphics window, then click
[OK] at the bottom of the graphics window.
[Delete] Deletes selected items from the list.
[Delete All] Deletes all items from the list.
[Collapse Part Groups] When a part group is selected, the group name is displayed in the list.
[Expand Part Groups] When the part group is selected, each part name in the group is displayed
in the list.
[Highlight Selected] Highlights selected items in the graphics window.
[Clear Highlight] Clears the highlighting on the settings highlighted in the graphics window.
67
JMAG Version 22.2 User's Manual
Operations
68
Setting Parameters
Vector
Origin
• [On Edge]:
Defines the axis on a selected edge. Click this button, and select a line edge.
• [From Arc]:
Defines the axis that is passing through the center point of a selected arc edge and on the line
that is piercing vertically through a plane that has the selected arc edge.
Click this button, and select an arc.
• [From Cylindrical Face]:
This button is displayed in the setting panel of magnetization direction.
Defines the axis on a center axis of selected cylindrical face. Click this button, and select a cylin-
drical face.
• [Select Reference Target]:
Defines the axis using the face (or edge, vertex) registered as a reference target. Clicking this but-
ton displays the [Select Reference Target] dialog. For details, see “Define the Axes or Directions
Using Reference Targets” on page 71.
• [X], [Y], [Z] of [Axis Direction]:
Specify each component of the axial direction directly. If you define the axial direction using [On
Edge], [From Arc], [From Cylindrical Face] or [Select Reference Target], the values of [X], [Y],
and [Z] are updated.
MEMO For 2D analysis, the [Axis Direction] Z component and the Z coordinates for [Point on
Axis] are not specified.
MEMO For magnetization patterns, the edge can be referenced when defining [Axis Direction] and
[Reference Axis Direction]. For details, see “Define the Axes or Directions by Referencing Edges,
Faces, and Vertices” on page 70.
• [X], [Y], [Z] of [Point on Axis]:
Specify each coordinate of a point on the axis. If you define the axis using [On Edge], [From
Arc], [From Cylindrical Face] or [Select Reference Target], the values of [X], [Y], and [Z] are
updated.
MEMO For 2D analysis, the [Axis Direction] Z component and the Z coordinates for [Point on
Axis] are not specified.
MEMO The vertex can be referenced when defining [Point on Axis]. For details, see “Define the
Axes or Directions by Referencing Edges, Faces, and Vertices” on page 70.
• [Upward] or [Downward]:
In a 2D analysis, reverses the Z-axis direction.
• [Reverse] :
Reverses the axial direction.
69
JMAG Version 22.2 User's Manual
Operations
70
Setting Parameters
When directly specifying each component for [Axis Direction] and [Reference Axis Direction], or
each coordinate for [Point on Axis], the magnetization pattern settings will not be affected even if
the model geometry is changed.
[Edge] can be specified when referencing an edge and specifying [Magnetization Direction] and
[Reference Axis Direction] in a 2D analysis. Select [Parallel] when setting the magnetization direc-
tion and reference axis in parallel to an edge that is referenced. Select [Perpendicular] when setting
perpendicular.
1. In the [Project Manager] tree, under [Template Parameter], right-click [Reference Tar-
get].
2. Select [New reference target].
3. In the [Reference Target] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
Newly reference target is added under [Reference Target] in the [Project Manager] tree.
• By hovering the mouse cursor over reference target in the [Project Manager] tree, edge (or
face, vertex) contains in it is highlighted in the graphics window.
71
JMAG Version 22.2 User's Manual
Operations
• Right-clicking the reference target in the [Project Manager] tree displays [Edit], [Duplicate],
and [Delete] as commands.
• To delete the reference targets that are not used at all by conditions and functions, right-click
[Reference Target] under [Template Parameter] in the [Project Manager] tree, and select
[Delete unused reference target].
MEMO The type of icons displayed in the [Project Manager] varies depending on the type of refer-
ence target.
: Displayed when a face is registered as a reference target.
: Displayed when an edge is registered as a reference target.
: Displayed when a vertex is registered as a reference target.
72
Setting Parameters
Not only the output result files can be referenced, but also the result files to be output from an anal-
ysis can be reserved.
73
JMAG Version 22.2 User's Manual
Operations
74
Setting Parameters
Since positions of the mesh are mismatched between the model of the reference result
file (left) and the model for analysis (middle), physical quantities will not be mapped to
the correct positions.
The physical quantities will be mapped to the correct positions by applying the reference
coordinate system to the result file to be referenced.
• Use one of the following methods to align the positioning of the analysis model with the model
that is output to the result file to be referenced.
• Align the position of the model output to the result file to reference with the model used for
analysis using the reference coordinate system.
• Align the position of the model used for analysis with the model of the reference result file
using the centering function of the model.
• In the [Coordinate System] list, [Global Rectangular], [Cylindrical], [Local Rectangular (Y-Z-
X)], and [Local Rectangular (Z-X-Y)] can be selected by default.
• A coordinate system needs to be created beforehand when selecting a coordinate system from the
[Coordinate System] list. For details, see “Use the Reference Coordinate System” on page 75.
• When alignment of positioning is not conducted, leave the settings in the [Coordinate System]
list as default (Global Rectangular).
• When the model for analysis is 3D and the model output to the reference result file is 2D, the Z-
axis (Tertiary axis) of the reference coordinate system corresponds to the height direction of the
2D model.
75
JMAG Version 22.2 User's Manual
Operations
Settings example
This section describes a case of referencing a magnetic field analysis result file for the Heat Source
condition in thermal analysis as an example.
The figure below on the left is a magnetic field analysis model; the figure below on the right is a
thermal analysis model. The magnetic field analysis model is arranged in a counterclockwise direc-
tion from the X-axis. The thermal analysis model is positioned in a counterclockwise direction from
-30 degrees from the X-axis.
In this case, create the following reference coordinate system beforehand, and select it from the
[Coordinate System] list in the Heat Source condition.
• In this example, to define the coordinate system with the X-axis as its basis, select [X] from the
[First Vector Direction] list.
• Since Os', the origin of the coordinate system, matches the origin of the thermal analysis model,
each value of the [Origin] group box should be left as their default values.
• In the [First Vector] group box, specify the (X, Y, Z) components of the direction vector directed
from the origin Os’ to Xs’ as the X-axis of the reference coordinate system.
• Input the value of cos(-(30 degree)) in the [X] box.
• Input the value of sin(-(30 degree)) in the [Y] box.
• In the [Second Vector] group box, specify the (X, Y, Z) component of the direction vector
directed from the origin Os’ to Ys’ as the Y-axis of the reference coordinate system.
• Input the value of -sin(-(30 degree)) in the [X] box.
• Input the value of cos(-(30 degree)) in the [Y] box.
76
Setting Parameters
• The physical quantities and coordinate values should be referenced to a rectangular coordinate
system (X, Y, Z).
• Use m as the unit of length for the physical quantities and coordinate values. The data created
using other units such as mm should be converted to m and written in.
• When mapping to a 2D model, the z-coordinate of the node or the element center is to be spec-
ified as “0.0”.
• If the physical quantity to be mapped is stress, only real number data can be used.
77
JMAG Version 22.2 User's Manual
Operations
Using options
• Using the [Reading Option], skip the reading in of unnecessary rows and columns during the
mapping process.
• [Start Row]:
Enter the number of the beginning row of the file to be imported. If titles are typed in the
first row, it should be used.
• [Not Use First Column as ID]:
If the first row is to be skipped, select [Not Use First Column as ID].
• By using [Mapping Option], mapping accuracy can be adjusted.
• [Decide Search Distance Automatically]:
When arbitrarily specifying the range to search for the closest node in the model from the
coordinate value defined in the file, clear [Decide Search Distance Automatically] and specify
[Search Distance].
The file contains the coordinate system and the physical quantities in it. The node closest to
the coordinate value will be searched for and physical quantities will be mapped.
When shortening [Search Distance], a more accurate mapping is conducted, but there is a
higher possibility that mapping will fail. When lengthening [Search Distance], mapping will
have a higher success rate, but there is a higher possibility of incorrect mapping.
MEMO The value defined in the file is carried over when mapping based on [Search Distance]
fails.
78
Setting Parameters
Example: Magnetic field analysis, Rotation Motion condition [Constant Revolution Speed],
Geometry Editor angle constraint [Angle]
MEMO Equation variables can be used for geometry registered to the geometry library.
Geometry Editor
• When a mathematical expressions is used for an integer type parameter and a real number is cal-
culated from that expression, the calculated value is rounded.
• The following parameters are determined from other parameters, and variables and mathematical
expressions can be used for these following parameters:
• [Length] and [Angle] in the [Line] setting panel
• [Angle] in the [Arc] setting panel
However, the mathematical expressions and variables are not retained. When a setting panel
using these parameters is closed and reopened, the variables and expressions are converted to
numerical values.
• When importing a geometry using variables and expressions from JMAG-Designer (or JMAG-
Express) from Geometry Editor, the values evaluated from the variables and expressions are
imported.
• When variables and mathematical expressions are entered as parameter values in the first case
geometry for parametric analysis, values evaluated from the expressions and variables are dis-
played for the parameters in each case created from the first case.
79
JMAG Version 22.2 User's Manual
Operations
MEMO The [Equations] dialog can also be opened from the following procedures:
• In the [Project Manager] tree, under a study, right-click [Case Control] and select [Equations].
• In the [Project Manager] tree, under a model, right-click [Equations] and select [Equations].
• In the [Equations] tab of the JMAG-Designer [Toolbox], click [Create New Equation Group],
and then click [Add] in [Equation Group].
• In the JMAG-Designer graphics window, click the shortcut icon .
• In the [Project Manager] tree, right-click an assembly and select [Equations].
iii. Click [Add].
iv. In the [Edit Equation] dialog, define variables.
For details on parameters, see “Parameter Explanation Edition”.
v. Click [OK].
In the [Equations] dialog, the defined variable is set.
vi. Repeat until all the necessary variables are defined.
vii.Click [OK].
2. Assign a variable to a parameter.
i. Right-click a real number or integer text box.
ii. Select [Insert Variable] > (variable to be assigned).
The selected variable is entered in the text box.
MEMO If the mouse pointer is placed over the text box in which the variable was assigned, the
variable's value is displayed in the tooltip. If there is an error with inputting the variable, the error
is displayed in the tooltip. Error and warning messages are also displayed in the [Project Manager]
tree and the [Model Manager] tree.
80
Setting Parameters
MEMO For a study in an analysis group, response values set in other studies in this analysis group
can be used in this study.
81
JMAG Version 22.2 User's Manual
Operations
82
Setting Parameters
83
JMAG Version 22.2 User's Manual
Operations
84
Using User-Defined Coordinate Systems
85
JMAG Version 22.2 User's Manual
Operations
Left: rectangular coordinate system when the X-axis is in the first vector direction,
Right: cylindrical coordinate system when the R-axis is in the first vector direction
:Displays when the type of coordinate system is a user-defined rectangular coordinate system.
:Displays when the type of coordinate system is a user-defined cylindrical coordinate system.
2. Use a coordinate system.
The created coordinate system can be used with the following parameters:
• [Reference Coordinate System], [Evaluation Coordinate System] of probe
• [Reference Coordinate System] of Constraint Mesh function
• [Coordinate System for Table Output] of Force condition of magnetic field analysis
• [Coordinate System] of Frozen Permeability condition of magnetic field analysis
• [Coordinate System] of reuse demagnetization condition of magnetic field analysis
86
Using User-Defined Coordinate Systems
87
JMAG Version 22.2 User's Manual
Operations
88
Setting Nonlinear Characteristics Using Tables
This chapter describes the procedure for creating or editing table data.
A table needs to be specified in the [Edit Point Sequence] dialog to define the various properties for materials,
conditions, and circuit components.
89
JMAG Version 22.2 User's Manual
Operations
Create 2D Tables
Create 2D tables, such as B-H curves and T-mu curves.
1. Click [Edit] in the setting panel for material, condition, circuit component properties,
etc.
For example, this applies when [Table] is selected from the [Function Type] list of the [Current]
setting panel for the magnetic field analysis or when [Point Sequence] is selected from the [Type]
list of the [Electric Potential Source (1 Terminal)] setting panel of the circuit.
90
Setting Nonlinear Characteristics Using Tables
MEMO When the smoothing function is used for a B-H curve, the table before smoothing is dis-
played as [Original] and the table after smoothing is displayed as [Smoothed] in the graph.
4. When creating a B-H curve, use the options as necessary.
For details on options, see “Parameter Explanation Edition”.
5. Click [OK].
1. Click [Edit] in the setting panel for material, condition, circuit component properties,
etc.
2. In the [Edit Point Sequence] dialog, create table.
i. Enter a title for the table data in [Title].
ii. Select [New Table] from the [Table] list under the [Edit Point Sequence] dialog.
91
JMAG Version 22.2 User's Manual
Operations
iii. Enter a value in the physical quantity text box in the upper area of the dialog.
Depending on the type of table, [Stress], [Temperature], [Frequency], or [Z1] box will be dis-
played.
iv. Enter the table data in the table sheet.
For example, if you enter “0” in the [Stress] box in the upper area of the dialog, the B-H curve
when the stress is 0 Mpa will be entered in the table sheet.
MEMO By right-clicking on the table sheet, you can automatically create table data, import table
data from a file, export table data to a file, and cut, copy, paste, delete, and select all table data.
For details about automatic creation, see “Creating Table Data Automatically” on page 93.
For information on importing and exporting files, see “Importing Table Data” on page 94 and
“Exporting Table Data” on page 94.
v. Click [Add] .
The created table will be added to the [Table] list.
vi. Repeat steps ii to v to input the physical quantity such as stress and the table data in
that physical quantity.
• When editing the existing table, select a table from the [Table] list, and edit the contents
in the text box and table sheet.
• When deleting the existing table, select a table from the [Table] list and click [Delete] .
• When importing table data from the file, click in the bottom area of the [Edit Point
Sequence] dialog. When exporting the created table data to a file, click in the bottom
area of the [Edit Point Sequence] dialog.
MEMO Depending on the table data, the file types that can be imported/exported will vary as in
the following:
• Stress-dependent B-H curve: HBS file (.hbs)
• Temperature-dependent B-H curve: HBT file (.hbt)
• Loss table: iron loss file (.iron) or stress-dependent iron loss file (.irons)
• Iron loss coefficient table: iron loss coefficient file (.jcoef )
• Anomalous eddy current loss coefficient table: csv file (.csv)
For subsequent operations, see “Create 2D Tables” on page 90.
92
Setting Nonlinear Characteristics Using Tables
1. Click the cell to specify the first point of the table data that is automatically created in
the table sheet of the [Edit Point Sequence] dialog.
The value specified in the selected cell is later specified as default in [Start] and [End] of the
[Insert Series] dialog.
2. Right-click the cell while it is selected.
3. Select [Insert Series].
4. In the [Insert Series] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [OK].
The table data created based on the setting in the [Insert Series] dialog is reflected on the table
sheet displayed in the [Edit Point Sequence] dialog.
93
JMAG Version 22.2 User's Manual
Operations
94
Setting Nonlinear Characteristics Using Tables
1. Click [List Point Sequence] in the setting panel for material, condition, circuit compo-
nent properties, etc.
• To add a new table, click [Add]. The [Edit Point Sequence] dialog with an empty worksheet
is displayed.
• To edit a table, select the table to be edited from the list and click [Edit]. The [Edit Point
Sequence] dialog opens, and the table is displayed.
• To delete a table, select the table to be deleted from the list, and click [Delete].
95
JMAG Version 22.2 User's Manual
Operations
3. To check table data, right-click the table and select [Show Selected].
The [Dataset] dialog opens and the table data is displayed.
4. To delete a table, right-click the table and select [Delete Selected].
If there is a parameter that used the deleted table data, the settings of that parameter is cleared.
96
Model Operations
Importing Models from Files
This chapter describes how to import a model to JMAG-Designer or Geometry Editor from files.
99
JMAG Version 22.2 User's Manual
Operations
100
Importing Models from Files
If studies, materials, and conditions have been set for imported models, those settings can be inher-
ited to the new import model.
101
JMAG Version 22.2 User's Manual
Operations
102
Importing Models from Files
103
JMAG Version 22.2 User's Manual
Operations
Import a Model
Import CAD models and mesh models from files exported from third-party CAD software and
analysis software.
104
Importing Models from Files
Merge a Model
Import CAD models and mesh models from files output from third-party CAD software and analy-
sis software to assembly during editing, and merge with models during editing.
105
JMAG Version 22.2 User's Manual
Operations
106
Creating 2D CAD Models Using Geometry Editor
This chapter describes the procedure for creating a 2D CAD model using the Geometry Editor.
• Creating Points, Lines, and Faces at User-Defined Positions and Using Them for Model Creation (page 166)
• Grouping Geometries, Defining Directions and Coordinates (page 167)
• Setting Properties of Features or Sketches (page 168)
• Disabling Features and Sketches (Suppression Settings) (page 169)
• Creating Conditional Expressions to Determine Shape Errors (page 170)
• Responding to Errors and Warnings that Occurred in the Assembly (page 171)
• Importing Models Created in the Geometry Editor into JMAG-Designer (page 171)
• Replacing Models Already Imported into JMAG-Designer with Models Edited in the Geometry Editor
(page 172)
107
JMAG Version 22.2 User's Manual
Operations
108
Creating 2D CAD Models Using Geometry Editor
109
JMAG Version 22.2 User's Manual
Operations
110
Creating 2D CAD Models Using Geometry Editor
111
JMAG Version 22.2 User's Manual
Operations
Creating Sketches
1. With no editing part or sketch in the [Model Manager] tree, select [Insert] > [Create
2DSketch].
Or, perform one of the following:
• With no editing part or sketch in the [Model Manager] tree, click [Create 2D Sketch] .
• Right-click an assembly on the [Model Manager] tree, select [Create 2DSketch].
The grid is displayed in the graphics window. A sketch is added under an assembly in [Model
Manager].
MEMO A 2D Sketch is usually created on the XY plane.
MEMO The 2D sketch under [Assembly] can be moved under a part. For details, see “Moving 2D
Sketch Under Parts” on page 182.
Editing Sketches
1. With selecting a sketch in the [Model Manager] tree, select [Insert] > [Edit 2DSketch].
Or, perform one of the following:
• With selecting a sketch in the [Model Manager] tree, click [Edit 2DSketch] .
• Right-click a sketch on the [Model Manager] tree, select [Edit Sketch].
112
Creating 2D CAD Models Using Geometry Editor
Draw a Line
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Line] > [Line].
Or, perform one of the following:
• Click [Line] .
• Right-click anywhere in the graphics window, and select [Line].
This switches to the line creation mode.
MEMO The coordinates input panel is displayed in the lower portion of the graphics window during
line creation mode. Lines can also be drawn by specifying the parameters in this panel.
3. Click the point to start the line in the graphics window.
MEMO Press the [Esc] key on the keyboard and run again, when the start point is positioned in a
wrong area.
4. Double-click a point to end the line.
MEMO To draw multiple lines that are continuous and is sharing a vertex, click once on an end
point instead of double clicking. The mode to create lines continuously is specified, and the position
that is clicked becomes the start point of a line.
To end the mode to create lines continuously, click [Line] on the toolbar or press the [Esc]
key.
MEMO If [Automatic Constraints] , [Enable Snapping] , and [Snap Horizontally/Vertically]
are all selected in the toolbar when a line is drawn parallel to the X-axis or Y-axis, the horizontal or
vertical constraint is automatically applied.
113
JMAG Version 22.2 User's Manual
Operations
5. If necessary, modify the position and length of line in the [Line] setting panel.
The following settings can be specified:
• Start Point: X, Y
• End Point: X,Y
• Geometry: Length, Angle
6. Click [OK].
The vertices and lines that are created are added to [Basic Shape] under the sketch.
7. To finish creating the line, select [Insert] > [Line] > [Line].
Or, perform one of the following:
• Click [Line] .
• Click [Select] .
• Right-click anywhere in the graphics window, and select [Line].
• Right-click anywhere in the graphics window, and select [Select].
MEMO The basic shapes displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Basic Shape] in the [Model Manager] tree, and select [View by Type].
Draw a Spline
Guide line
Vertex
Control point
IMPORTANT A region cannot be created by one spline. Two or more splines are required to
create a region.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Line] > [Spline].
Or, perform one of the following:
• Click [Spline] .
• Right-click anywhere in the graphics window, and select [Spline].
3. Click a point to specify the start point for the spline in the graphics window.
114
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Line] > [Function Curve].
Or perform one of the following:
• Click [Function Curve] .
• Right-click anywhere in the graphics window, and select [Function Curve].
3. Click the point for the initial point of the function curve in the graphics window.
MEMO Constraints are automatically set when [Automatic Constraints] is selected. Snapping to ver-
tices can specify the settings of coincident constraints for the function curve and vertices, and of fixa-
tion constraints for vertices.
4. Double-click the point for the end point of the function curve.
The function curve is created. Also, the [Function Curve] setting panel is displayed.
5. Define the function in the [Function Curve] setting panel.
6. Click [OK].
The function curve that is created is added to [Basic Shape] under the sketch.
7. To finish creating the function curve, select [Insert] > [Line] > [Function Curve].
Or perform one of the following:
115
JMAG Version 22.2 User's Manual
Operations
Draw a Rectangle
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Rectangle].
Or, perform one of the following:
• Click [Rectangle] .
• Right-click anywhere in the graphics window, and select [Rectangle].
This switches to the rectangle creation mode.
MEMO The coordinates input panel is displayed in the lower portion of the graphics window during
rectangle creation mode. Rectangles can also be drawn by specifying the parameters in this panel.
3. Click a point in the geometry window to specify the first vertex.
MEMO Press the [Esc] key on the keyboard and run again, when a vertex of a rectangle is positioned
in a wrong area.
4. Click a point that is diagonal to the vertex created in Step 2.
MEMO If [Automatic Constraints] is selected in the toolbar, the horizontal and vertical con-
straints are automatically applied to each edge of the rectangle.
Draw a Circle
The types of creating a circle are as follows:
• Circle (center point and point on the circumference specified)
• Circle by three points
• Circle by diameter
• Circle by two point radius
116
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Circle] > [Circle], [Circle by 3Points], [Circle By
Diameter], [Circle By 2Points Radius], [Circle By 2Lines Radius], or [Circle By 3Lines].
Or, perform one of the following:
• Click [Circle] , [Circle by 3Points] , [Circle By Diameter] , [Circle By 2Points
Radius] , [Circle By 2Lines Radius] , or [Circle By 3Lines] .
• Right-click in the graphics window, and select [Circle], [Circle by 3Points], [Circle By Diam-
eter], [Circle By 2Points Radius], [Circle By 2Lines Radius], or [Circle By 3Lines].
This switches to the circle creation mode.
MEMO The coordinates input panel is displayed in the lower portion of the graphics window during
circle creation mode. Circles can also be drawn by specifying the parameters in this panel.
3. Create a circle on the graphics window.
Depending on the creation method, the items to be set may differ.
117
JMAG Version 22.2 User's Manual
Operations
• Center Point: X, Y
• Geometry: Radius
5. Click [OK].
The vertex and circle that are created are added to [Basic Shape] under the sketch in [Model
Manager].
MEMO Constraints are automatically set when [Automatic Constraints] is selected.
Snapping to vertices specifies the settings of coincident constraint for circle and vertices, and fixation
constraints for vertices.
Selecting lines specifies the settings of coincident constraints for circles and vertices, and fixation con-
straints for lines.
6. To finish creating the circle, select [Insert] > [Circle] > [Circle] (or [Circle by 3Points], [Cir-
cle By Diameter], [Circle By 2Points Radius], [Circle By 2Lines Radius], [Circle By 3Lines]).
Or, perform one of the following:
• Click [Circle] , ([Circle by 3Points] , [Circle By Diameter] , [Circle By 2Points
Radius] , [Circle By 2Lines Radius] , or [Circle By 3Lines] ).
• Click [Select] .
• Right-click anywhere in the graphics window, and select [Circle] (or [Circle by 3Points],
[Circle By Diameter], [Circle By 2Points Radius], [Circle By 2Lines Radius], [Circle By
3Lines]).
• Right-click anywhere in the graphics window, and select [Select].
MEMO The basic shapes displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Basic Shape] in the [Model Manager] tree, and select [View by Type].
Draw an Arc
The types of methods for creating an arc are as follows:
• Center Point Arc
• 3 Point Arc
• Arc by 2 Points Radius
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Circle] > [Center Point Arc], [3 Point Arc], or [Arc by
2 Points Radius].
Or, perform one of the following:
• Click [Center Point Arc] , [3 Point Arc] , or [Arc by 2 Points Radius] ) on the toolbar.
• Right-click in the graphics window, and select [Center Point Arc], [3 Point Arc], or [Arc by 2
Points Radius].
This switches to the arc creation mode.
MEMO The coordinates input panel is displayed in the lower portion of the graphics window during
arc creation mode. Arcs can also be drawn by specifying the parameters in this panel.
3. Create an arc on the graphics window.
Depending on the creation method, the items to be set may differ.
118
Creating 2D CAD Models Using Geometry Editor
To create an arc with a blunt angle, move the mouse pointer as shown in the figure below, but
do not cross the line connecting the center point and start point.
MEMO When creating an arc in [Arc by 3 Point] with [Automatic Constraints] selected,
the following constraints are set.
119
JMAG Version 22.2 User's Manual
Operations
• When an existing point is selected as the start point, fixation constraint is set to the start point.
• When an existing point is selected as the end point, fixation constraint is set to the end point.
• When an existing point is selected as a point on the arc, coincident constraint and fixation con-
straint are set to that point.
• [Arc by 2 Points Radius] (start/end point of the arc, one point on the arc):
Click the start point of the arc in the graphics window. Then move the cursor to the end
point and then click. Next, move the cursor to any point besides the start point and end
point, and then click.
This point can be placed on either side of the line connecting the start point and end point.
MEMO When creating an arc in [Arc by 2 Points Radius] with [Automatic Constraints]
selected, fixation constraints are set to the start point and end point.
• Click [Center Point Arc] (or [3 Point Arc] , [Arc by 2 Points Radius]) .
• Click [Select] .
• Right-click anywhere in the graphics window, and select [Center Point Arc] (or [3 Point Arc],
[Arc by 2 Points Radius]).
• Right-click anywhere in the graphics window, and select [Select].
MEMO The basic shapes displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Basic Shape] in the [Model Manager] tree, and select [View by Type].
Draw an Ellipse
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Ellipse] > [Ellipse].
Or, perform one of the following:
120
Creating 2D CAD Models Using Geometry Editor
121
JMAG Version 22.2 User's Manual
Operations
MEMO The coordinates input panel is displayed in the lower portion of the graphics window during
elliptic arc creation mode. Elliptic arcs can also be drawn by specifying the parameters in this panel.
3. Click a point in the graphics window to specify the center of the ellipse arc.
4. Move the mouse pointer to a point on the major axis and click.
5. Move the mouse pointer to a point on the minor axis and click.
6. Move the mouse pointer to the start point of the elliptical arc and click.
7. Move the mouse pointer to the end point of the elliptical arc and click.
The [Elliptical Arc] setting panel is displayed when the ellipse arc is created.
MEMO If the center point of the elliptical arc has been positioned in the wrong place, press the [Esc]
key and redo the above procedures.
8. To modify the position or size of the elliptical arc, enter the values in each item on the
[Elliptical Arc] setting panel.
The following settings can be specified on the [Elliptical Arc] setting panel.
• Center Point: X, Y
• Start Point: X, Y
• End Point: X, Y
• Geometry: Major Radius, Minor Radius, Major Angle
9. Click [OK].
The vertex and elliptical oval that are created are added to [Basic Shape] under the sketch in the
[Model Manager] tree.
MEMO Constraints are automatically set if [Automatic Constraints] in the toolbar is selected.
If the vertex snaps, settings for the circle and vertex will be concentric constraints and fixation con-
straints for the vertex.
If the line is selected, settings for the circle and line will be concentric constraints and fixation con-
straints for the line.
10.To finish creating the ellipse arc, select [Insert] > [Ellipse] > [Ellipse Arc].
Or, perform one of the following:
• Click [Ellipse Arc] on the toolbar.
• Click [Select] .
• Right-click in the graphics window, and select [Ellipse Arc].
• Right-click anywhere in the graphics window, and select [Select].
MEMO The basic shapes displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Basic Shape] in the [Model Manager] tree, and select [View by Type].
Draw a Vertex
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Vertex].
Or, perform one of the following:
• Click [Vertex] .
• Right-click in the graphics window, and select [Vertex].
122
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Create Coordinate System].
The [Coordinate System] setting panel is displayed. The [Coordinate System] setting panel can
also be displayed via the following methods.
• Click [Create Coordinate System] on the toolbar.
• Switch to the creation modes for lines or vertices, etc., to display parameters in the lower por-
tion of the graphics window for drawing basic shape. Select [Add Coordinate System] from
the [Add Coordinate System] list.
123
JMAG Version 22.2 User's Manual
Operations
Perpendicular Line
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Make sure that [Enable Snapping] is selected in the toolbar, and then click [Snap Per-
pendicularity] .
The snap function is not enabled even if [Snap Perpendicularity] is selected when [Enable
Snapping] is not selected.
MEMO If [Automatic Constraints] is selected in the toolbar, the perpendicular constraint is auto-
matically applied
Parallel Line
A line parallel to an existing line can be created easily with only mouse operations using the snap fea-
ture.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Make sure that [Enable Snapping] is selected in the toolbar and then click [Snap Par-
allelism] .
The snap function is not enabled even if [Snap Parallelism] is selected when [Enable Snap-
ping] is not selected.
124
Creating 2D CAD Models Using Geometry Editor
Horizontal/Vertical Line
A line horizontal/vertical to an existing line can be created easily with only mouse operations using
the snap function.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Make sure that [Enable Snapping] is selected in the toolbar, and then click [Snap Hor-
izontally/Vertically] .
The snap function is not enabled even if [Snap Horizontally/Vertically] is selected when
[Enable Snapping] is not selected.
1. Select [Angle OX] in the [Sketch] setting panel under the [System Options] tab of the
[Preferences] dialog.
The [Preferences] dialog is displayed by selecting [Tools] > [Preferences] from the menu bar
2. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
3. Make sure that [Enable Snapping] is selected in the toolbar, and then click [Snap
AngleOX] .
125
JMAG Version 22.2 User's Manual
Operations
The snap function is not enabled even if [Snap AngleOX] is selected when [Enable Snap-
ping] is not selected.
126
Creating 2D CAD Models Using Geometry Editor
Merging Vertices
Two points can be merged.
First
Second
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select a point in the graphics window.
MEMO [Basic Shape Select Filter] needs to be selected beforehand when selecting a basic shape in
the graphics window.
3. Select a point to merge with the point selected in Step 2 while holding down the [Shift]
key or [Ctrl] key.
4. Right-click anywhere in the graphics window, and select [Merge].
The point selected in step 2 is merged with the point selected in step 1 at the position of the
point selected in step 1.
127
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select [Insert] > [Sketch Tool] > [Project Outline to Sketch] from the menu bar.
Or click [Project Outline to Sketch] .
The [Project Outline to Sketch] setting panel is displayed.
Basic shapes included in another sketch become available in the graphics window.
3. Select a shape to copy in the graphics window.
To copy multiple shapes, select the multiple shapes while pressing and holding the [Shift] key or
[Control] key.
To cancel the selection, click anywhere in the graphics window.
MEMO [Basic Shape Select Filter] needs to be selected beforehand when selecting a basic shape in
the graphics window.
4. Click [Apply] in the [Project Outline to Sketch] setting panel.
The basic shape is copied from another sketch.
MEMO When [Automatic Constraints] is selected from the toolbar, a project coincident con-
straint is automatically added to a copied basic shape. The project coincident constraint will change
the copied basic shape according to the change of the original basic shape.
5. To continue to project the target sketches, run the same procedure.
Click [Close] to end this function.
IMPORTANT A basic shape can be copied between two different sketches using [Copy] .
The center of a basic shape that is selected is duplicated to the same position as the cursor
when a basic shape with the same position and configuration exists in the copy destination
sketch. The basic shape is copied on the same position when a same basic shape does not exist
in the target sketch.
128
Creating 2D CAD Models Using Geometry Editor
Example
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Sketch Trim].
Or click [Sketch Trim] .
3. Click the line, circle, arc, or spline to trim.
The shape is cut at the closest intersections, and a vertex is created where the shapes intersected.
129
JMAG Version 22.2 User's Manual
Operations
Left: Before dividing at the intersection (one line and one arc)
Right: After dividing at the intersection (three lines and three arcs)
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Break at Intersection].
Or click [Break at Intersection] .
3. Select lines, circles, arcs, and splines while holding down the [Shift] key or [Ctrl] key.
The intersection points are highlighted.
4. In the [Break at Intersection] setting panel, click [Apply].
The lines, circles, arcs, and splines are divided at the intersections.
When a break at intersection is executed and [Automatic Constraints] is selected, a coincident
constraint will be automatically set on the divided line.
5. To repeatedly divide the basic shape at an intersection, run the same procedure.
Click [Close] to end this function.
A A B
B
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Create Fillet].
Or click [Create Fillet] .
3. Select lines or arcs while holding down the [Shift] key or [Ctrl] key to set the function to
create fillets in the graphics window.
A preview is displayed in the yellow line which is determined from the target shape and the value
of [Radius].
4. Set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
130
Creating 2D CAD Models Using Geometry Editor
B
A
A
B
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Create Chamfer].
Or click [Create Chamfer] .
3. Select lines or arcs while holding down the [Shift] key or [Ctrl] key to set the function to
create a chamfer in the graphics window.
A yellow line is displayed on the geometry to create a chamfer after the values are set in [Length]
and [Angle].
4. In the [Create Chamfer] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
[Angle]
[Length]
131
JMAG Version 22.2 User's Manual
Operations
6. To repeatedly create two chamfers, run the same procedures from steps.
Click [Close] to end this function.
B
A D
A
Example: Line A is extended in order to connect to the basic shape that is arc B when line
A is in combination with arc B. Arc B becomes arc C and arc D when the intersection
breaks.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Connect 2 Basic Shapes].
Or click [Connect 2 Basic Shapes] .
3. Select lines, circles, arcs, and splines while holding down the [Shift] key or [Ctrl] key to
set the function.
A yellow line is displayed after the shapes are connected.
4. In the [Connect 2 Basic Shapes] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [Apply].
The basic shapes are connected.
6. To repeatedly connect two basic shapes, run the same procedure.
Click [Close] to end this function.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Tangent Line].
Or click [Tangent Line] from the tool bar.
3. Select a vertex and a circle (or arc) in the graphics window.
4. In the [Tangent Line] setting panel, click [Apply].
A tangent line is created.
When [Automatic Constraints] is selected during the creation of a tangent line, tangential
constraint is set for the created tangent line and the circle (or arc) it was based on.
132
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Vertical Line].
Or click [Vertical Line] from the tool bar .
3. Select a vertex and a line in the graphics window.
4. In the [Vertical Line] setting panel, click [Apply].
A vertical line is created.
When [Automatic Constraints] is selected during the creation of a vertical line, vertical con-
straint is set for the created vertical line and the line it was based on.
5. To continue creating vertical lines, run the same procedures.
To finish creating the vertical line, click [Close].
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Parallel Lines].
Or click [Parallel Lines] .
3. Select a line that is the basis of the parallel in the graphics window.
The line that is the basis and the parallel line created from the value set in [Distance] is temporar-
ily highlighted in yellow.
4. In the [Parallel Lines] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [Apply] in the [Parallel Lines] setting panel.
The parallel is created.
Parallel constraint is set for the parallel that is created and the line that it is based on, when
[Automatic Constraints] is selected during parallel creation.
6. To repeatedly create parallel lines, run the same procedures.
Click [Close] to end this function.
133
JMAG Version 22.2 User's Manual
Operations
Added line
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Joint].
Or click [Joint] .
3. Select a basic shape to create a joint in the graphics window while holding down the
[Shift] or [Ctrl] key.
Dragging the area with a mouse where the basic shape exists can also create a joint.
A yellow line is created from the basic shape.
4. In the [Joint] setting panel, click [Apply].
The joint is created.
5. To repeatedly create a joint, run the same procedures.
Click [Close] to end this function.
Shared vertex
A B
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Merge].
Or click [Merge] .
3. Select basic shapes to merge in the graphics window while holding down the [Shift] or
[Ctrl] key.
The basic shape that is selected is highlighted in yellow.
4. In the [Merge] setting panel, click [Apply].
The basic shapes are merged.
5. To repeatedly merge basic shapes, run the same procedures.
Click [Close] to end this function.
134
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Divide Basic Shape].
Or, click [Divide Basic Shape] on the toolbar.
3. Click a basic shape to divide in the graphics window.
Click one of the following:
a straight line, arc, circle, elliptical arc, ellipse, spline, or function curve.
4. In the [Divide Basic Shape] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [Apply].
The selected basic shape is divided.
6. To continue dividing the basic shape, repeat the same procedure.
To end dividing the basic shape, click [Close].
135
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Basic Shape Tool] > [Delete Duplication Node].
Or click [Delete Duplication Node] on the toolbar.
3. Select vertices while holding down the [Shift] key or [Ctrl] key for deleting duplications
in the graphics window.
Dragging the area with a mouse where vertices exists can also delete duplications.
4. In the [Delete Duplication Node] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [Apply].
The vertices are merged.
6. To repeatedly delete duplicated nodes, run the same procedures.
Click [Close] to end this function.
136
Creating 2D CAD Models Using Geometry Editor
• Fixation • Tangency
• Relative Fixation • Coincident
• Horizontality • Project coincident
• Verticality • Distance from origin
• Angle • Concentric with origin
• Parallelity
• Coincident with origin
• Perpendicularity
• Angle from X-axis
• Distance
• Distance from X-axis
• Distance (between two objects)
• Coincident with X-axis
• Horizontal Distance
• Tangency with X-axis
• Vertical Distance
• Angle from Y-axis
• Radius/Diameter
• Distance from Y-axis
• Major Radius/Major Diameter
• Coincident with Y-axis
• Minor Radius/Minor Diameter
• Tangency with Y-axis
• Concentric
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Sketch Tool] > [Create Constraints From Geome-
try].
Or click [Create Constraints From Geometry] on the toolbar.
3. In the [Create Constraints From Geometry] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
MEMO The process time may take longer when the number of basic shapes specified for the setting
is too many. Cancel the process and then redo after specifying the number of basic shapes to a lower
number.
137
JMAG Version 22.2 User's Manual
Operations
MEMO The display position of each constraint value can be moved by mouse dragging after closing
the settings panel.
MEMO The constraints displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Constraint] in the [Model Manager] tree, and select [View by Type].
Edit a 2D Constraint
The following constraint parameters can be edited.
138
Creating 2D CAD Models Using Geometry Editor
• Distance constraints:
distance, horizontal distance, vertical distance, distance from origin, distance from X-axis, and
distance from Y-axis
• Angle constraints:
angle, angle from X-axis, and angle from Y-axis
• Radius/diameter constraints:
radius/diameter, radius/diameter (major axis), and radius/diameter (minor axis)
• Relative fixation constraints
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Double-click the value indicating the distance or angle of a constraint in the graphics
window.
Or, double-click a constraint displayed under the sketch > [Constraint] in the [Model Manager]
tree.
The parameter setting panel is displayed.
MEMO [Constraint Select Filter] needs to be selected in the toolbar beforehand when selecting
constraints in the graphics window.
3. Edit parameters in each settings panel.
The basic shapes with the constraint being edited will be highlighted on the graphics window.
4. Click [OK].
Delete a 2D Constraint
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select the symbol of the constraint to delete in the graphics window.
Or, select a constraint displayed under a sketch > [constraint] in the [Model Manager] tree.
The selected symbol or arrow is highlighted.
MEMO [Constraint Select Filter] needs to be selected in the toolbar beforehand when selecting
constraints in the graphics window.
3. Use one of the following procedures to delete a constraint.
139
JMAG Version 22.2 User's Manual
Operations
140
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Move Basic Shape] > [Translate Basic Shape] or
[Rotate Basic Shape].
Or, perform one of the following:
• Click the button on the toolbar ( , ).
• Right-click the basic shapes of the graphics window and select [Translate Basic Shape] or
[Rotate Basic Shape].
3. In the [Move Basic Shape] or [Rotate Basic Shape] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
To return to the state before moving, use [Undo] .
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Make sure that [Drag Basic Geometry By Mouse] is selected in the toolbar.
Basic shapes cannot be moved by operating the mouse if [Drag Basic Geometry By Mouse] is not
selected.
3. Select vertices, lines, circles, arcs, and splines to move on the graphics window.
The selected shapes are highlighted in the graphics window.
MEMO [Basic Shape Select Filter] in the toolbar needs to be selected beforehand when selecting
basic shapes in the graphics window.
4. Drag the group of selected shapes to the desired position while holding down the [Shift]
key with the left mouse button.
All the selected shapes move while retaining their relative positions.
141
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select a shape to move in the graphics window.
Or, select a shape to move in [Model Manager].
MEMO [Basic Shape Select Filter] needs to be selected beforehand when selecting a basic shape in
the graphics window.
3. Click [Cut] .
Or, select [Edit] > [Cut] from the menu bar.
142
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Copy Basic Shape] > [Parallel Copy Basic Shape],
[Rotate Copy Basic Shape], or [Mirror Copy Basic Shape].
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
• Right-click the basic shapes of the graphics window and select [Parallel Copy Basic Shape],
[Rotate Copy Basic Shape], or [Mirror Copy Basic Shape].
The [Parallel Copy Basic Shape], [Rotate Copy Basic Shape], or [Mirror Copy Basic Shape] set-
ting panel is displayed.
3. Set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
The basic shape is added under the sketch > [Basic Shape] in the [Model Manager] tree.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select a shape to copy in the graphics window.
Or, select a shape to copy in [Model Manager].
MEMO [Basic Shape Select Filter] needs to be selected beforehand when selecting a basic shape in
the graphics window.
3. Click [Copy] .
Or, select [Edit] > [Copy] from the menu bar.
143
JMAG Version 22.2 User's Manual
Operations
4. Click [Paste] .
Or, select [Edit] > [Paste] from the menu bar.
MEMO The center of the basic shape that is duplicated is located at the position where the mouse
pointer is located.
144
Creating 2D CAD Models Using Geometry Editor
Creating Regions
Creates an region (face) from the outline lines of the part cross section.
• Create a Region Manually (page 145)
• Automatically Add a Region Boolean Feature (page 146)
MEMO Selecting [Create Regions] in [Import] of the [Preferences] dialog creates regions automatically
when importing 2D CAD files.
MEMO Regions can be created where one or more basic shapes are connected to form a closed space.
Free vertices
2. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
3. Select [Insert] > [Create Region] from the menu bar.
Or, click [Create Region] .
4. Select arcs and edges of a region while holding down the [Ctrl] or [Shift] key in the
graphics window.
The end points (floating vertex) are highlighted when the selected lines or arcs are not connected.
Highlighted area
145
JMAG Version 22.2 User's Manual
Operations
MEMO The name or color of a region can be changed by right-clicking the region under [Region] in
[Model Manager], and then selecting [Properties] from the menu. In the [Properties] dialog, specify a
name and select a color.
7. Run same steps again to continue creating regions.
Click [Close] to exit creating regions.
From left to right: Original figure (Overlapping regions), region with [Union] selected,
region with [Subtraction] selected, region with [Subtraction] and [Delete Regions]
selected, region with [Intersection] selected
Click [OK] to perform the Boolean operation. Also, [Boolean] is added inside [Features] under the
sketch in [Model Manager] tree.
Delete a Region
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Select a region to delete in the [Model Manager] tree or the graphics window.
The region that applies is highlighted in the graphics window.
MEMO [Region Select Filter] needs to be selected beforehand when selecting a region in the
graphics window.
3. Use one of the following procedures to delete a region:
• Click [Delete] from the tool bar.
• Press the [Delete] key on the keyboard.
• Right-click the region, and select [Delete].
Deleting region pattern features also deletes the region created by the feature.
It is not possible to delete the basic shape used to create the region, leaving the region. The basic
shapes can be deleted if they are included with the region.
146
Creating 2D CAD Models Using Geometry Editor
To delete a basic shape that was used to create the region, select the [Basic Geometry Select Fil-
ter] and [Region Select Filter] in the [Select] toolbar, select the basic shape to be deleted,
and then perform the above operation. If a constraints have been set on the basic shape, you
must also select the [Constraint Select Filter] .
147
JMAG Version 22.2 User's Manual
Operations
Processing Regions
• Scale a Region (page 148)
• Round the Corner of a Region (Fillet) (page 148)
• Chamfer the Corner of a Region (page 148)
• Offset a Region Edge (page 149)
• Move a Region Edge (page 150)
• Convert a Region Edge to a Fillet Feature (page 154)
Scale a Region
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Region Scale]
Or, click [Region Scale] on the toolbar.
3. In the [Region Scale] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Scale] is added under the sketch > [Feature] in the [Model Manager] tree. Right-click it
to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete], [Properties], etc.
148
Creating 2D CAD Models Using Geometry Editor
2. From the menu bar, select [Insert] > [Region Feature] > [Region Chamfer].
Or perform one of the following procedures:
• Click [Region Chamfer] on the toolbar.
• Right-click a specified selection of multiple lines (or arcs) in the graphics window and select
[Region Chamfer].
• Right-click one or a specified selection of multiple region vertices in the graphics window and
select [Region Chamfer].
3. In the [Region Chamfer] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Chamfer] is added is added under the sketch > [Feature] in the [Model Manager] tree.
Right-click it to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete],
[Properties], etc.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Region Edge Offset].
Or perform one of the following procedures:
• Click [Region Edge Offset] on the toolbar.
• Right-click one or multiple region edges in the graphics window and select [Region Edge
Offset] > (offset type. For example, [Specify Offset]).
When the [Region Edge Offset] setting panel is displayed by this operation, the selected
region edges are added to the [Region Edges] list. Additionally, depending on the selected
menu, the corresponding item is added to the [Method Type] list.
3. In the [Region Edge Offset] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Edge Offset] is added is added under the sketch > [Feature] in the [Model Manager]
tree. Right-click it to open a menu. From this menu, you can perform [Edit], [Suppress],
[Delete], [Properties], etc.
149
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Region Edge Move].
Or perform one of the following procedures:
• Click [Region Edge Move] on the toolbar.
• Right-click one or multiple region edges in the graphics window and select [Region Edge
Move] > (movement type. For example, [Parallel - Specify Move]).
When the [Region Edge Move] setting panel is displayed by this operation, the selected
region edges are added to the [Region Edges] list. Additionally, depending on the selected
menu, the corresponding item is selected in the [Type] list.
3. In the [Region Edge Move] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Edge Move] is added is added under the sketch > [Feature] in the [Model Manager] tree.
Right-click it to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete],
[Properties], etc.
150
Creating 2D CAD Models Using Geometry Editor
From left to right: Original figure (overlapping regions), using “union” on the original
figure, Using “subtraction” on the original figure, using “subtraction” on the original
figure with [Delete Regions] selected, Using “intersection” on the original figure
• When “Union” is used, two regions are merged into one region, and it becomes one part.
• When “Subtraction” is used, the two regions are left unchanged, but because the duplicate area is
removed from one of the regions, the duplicate state is resolved.
When “Subtraction” is used and [Delete Regions] is selected, the region to subtract is removed
along with the duplicate area, and only the region to be subtracted from remains.
• When “Intersection” is used, only the duplicate area of the two regions is kept, and the rest is
removed.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Boolean for Region].
Or click [Boolean for Regions] on the toolbar.
3. In the [Boolean for Regions] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Boolean] is added is added under the sketch > [Feature] in the [Model Manager] tree. Right-
click it to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete], [Proper-
ties], etc.
151
JMAG Version 22.2 User's Manual
Operations
Moving Regions
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Region Move].
Or, perform one of the following:
• Click [Region Move] on the toolbar.
• Right-click one or multiple regions in the graphics window and select [Region Move] >
(movement type. For example, [Parallel - Specify Move]).
When the [Region Move] setting panel is displayed by this operation, the selected regions are
added to the [Regions] list. Additionally, depending on the selected menu, the corresponding
item is selected in the [Type] list and [Method Type] list.
3. In the [Region Move] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Move] is added is added under the sketch > [Feature] in the [Model Manager] tree.
Right-click it to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete],
[Properties], etc.
152
Creating 2D CAD Models Using Geometry Editor
Copying Regions
The following types are available:
• [Region Linear Pattern]:
Copies the selected region in the specified direction with equal spacing.
• [Region Circular Pattern]:
Copies the selected region equally spaced in the circumferential direction around a point.
• [Region Mirror Copy]:
Copies the selected region symmetrically about the axis.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Pattern] > [Region Linear Pattern], [Region
Circular Pattern], [Region Mirror Copy].
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
• Right-click the regions of the graphics window and select [Region Linear Pattern], [Region
Circular Pattern], or [Region Mirror Copy].
3. In the [Region Linear Pattern], [Region Circular Pattern], or [Region Mirror Copy] setting
panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Region Linear Pattern], [Region Circular Pattern], or [Region Mirror Copy] is added under the
sketch > [Feature] in the [Model Manager] tree. Right-click it to open a menu. From this menu,
you can perform [Edit], [Suppress], [Delete], [Properties], etc.
MEMO When regions are copied using a pattern feature, the basic shapes used to create the region
are copied as well.
MEMO If you delete a pattern feature, the regions and basic shapes created using that feature will
also be deleted.
153
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Convert to Fillet Feature].
Or, click [Convert to Fillet Feature] on the toolbar.
3. In the [Convert to Fillet Feature] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
[Region Fillet] is added under the sketch > [Feature] in the [Model Manager] tree.
To undo the conversion, select [Edit] > [Undo] from the menu bar. Even if added [Region Fillet]
are deleted using this function, the shape cannot be returned to its state before conversion.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. From the menu bar, select [Insert] > [Region Feature] > [Convert to Linear Pattern Fea-
ture], [Convert to Circular Pattern Feature], or [Convert to Mirror Copy Feature].
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
3. In the [Convert to Linear Pattern Feature], [Convert to circular pattern feature], or [Con-
vert to Mirror Copy Feature] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
[Region Linear Pattern], [Region Circular Pattern], or [Region Mirror Copy] is added under the
sketch > [Feature] in the [Model Manager] tree.
To undo the conversion, select the [Undo] under [Edit] from the menu bar. Deleting a region
pattern feature added by this function does not restore the state before conversion.
154
Creating 2D CAD Models Using Geometry Editor
When selecting a geometry from the geometry library and specifying dimensions, the geometry is
added to an assembly as a new part or sketch.
Geometry library
It is also possible to add user-created geometries to the geometry library or to use the same geometry
on multiple machines by placing the geometry library in a shared folder.
MEMO The geometry added by the user is referred to as a custom geometry.
155
JMAG Version 22.2 User's Manual
Operations
• Right-click the geometry under the [Geometry Library] tab and select [Insert].
• Select the geometry under the [Geometry Library] tab and click [Open] in the lower part.
• Select the geometry under the [Geometry Library] tab and drag and drop it into the graphics
window.
The [Geometry Library - (geometry name)] setting panel is displayed. In this setting panel, vari-
ables necessary for defining each geometry are displayed.
MEMO Geometries classified under [Motor] in the geometry library are created based on JMAG-
Express templates. For unknown variable names, check in JMAG-Express.
MEMO If a variable that is contained in a geometry to be inserted has the same name as another vari-
able that is in the assembly, before the [Geometry Library - (geometry name)] setting panel is dis-
played, the [Resolve Duplicate Variables] dialog is displayed. Perform the following settings and click
[OK].
• To avoid the duplication of a variable (when using the variable as a different variable), select the
checkbox for that variable. In this case, the duplicated variables included in the geometry to be
inserted are renamed with the names displayed in [Resolving Name]. If it is desired to change the
name of a variable from the JMAG suggested name before renaming it, double-click the cell for
that variable in [Resolving Name] and enter the desired character string.
• When not avoiding the duplication of a variable (when using as the same variable), clear the check-
box for that variable. In this case, the variable values of the geometry to be inserted will impact any
geometries using any of these variables. For example, if a geometry to be inserted has 4 poles, the
existing geometry will change to have 4 poles.
3. In the [Geometry Library - (geometry name)] setting panel, enter a value for each vari-
able.
When the value of a variable is entered, the geometry previewed in the graphics window is
updated.
For the types and Notes for variables, see “Parameter Explanation Edition”.
4. Click [OK].
The geometry is inserted from the geometry library into the assembly.
• When an incorrect geometry is inserted, the state can be restored before the insertion with
[Restore] in the toolbar.
• The values of the variables for each geometry can be modified in the [Equations] dialog. To
open the [Equations] dialog, right-click [Assembly] in the [Model Manager] tree and select
[Equations].
• When the setting panel for a feature or sketch which contribute to the structure of an inserted
geometry is displayed, for each feature or sketch parameter, whether the variables specified
when the geometry was inserted are being used or not can be checked.
156
Creating 2D CAD Models Using Geometry Editor
To open the [Equations] dialog, right-click [Assembly] in the [Model Manager] tree and select
[Equations]. For details, see “Assigning Numerical Expressions and Variables to Parameter Val-
ues” on page 79.
2. In the [Model Manager] tree, make sure that there are no sketches or parts being
edited.
If there are parts or sketches being edited, right-click them in the [Model Manager] tree and
select [End Part] (or [End Sketch]).
3. In the [Model Manager] tree, right-click the assembly and select [Add to Geometry
Library].
4. In the [Add to Geometry Library] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [OK].
The geometry is added to the [Custom Geometry] folder under the [Geometry Library] tab in
[Toolbox].
• To customize the added geometry, right-click the [Custom Geometry] folder and select [Cre-
ate Folder]. Since a subfolder is created in the [Custom Geometry] folder, drag and drop the
geometry to this folder.
• To change the model number, explanation, and tag of the added geometry, right-click the
geometry in the [Geometry Library] tab and select [Properties]. Specify a new model number,
explanation, and tag in the [Properties] dialog and click [OK].
• To delete the added geometry, right-click the geometry under the [Geometry Library] tab and
select [Delete].
157
JMAG Version 22.2 User's Manual
Operations
158
Creating 2D CAD Models Using Geometry Editor
v. Click [OK].
The geometries in the geometry library from step 3 are listed in the [Custom Geometry]
folder under the [Geometry Library] tab in [Toolbox].
159
JMAG Version 22.2 User's Manual
Operations
Example of creating wires using the Wire Template and the region circular pattern feature.
MEMO To evaluate current distribution inside of a wire, the FEM Conductor condition must be used
instead of the FEM Coil condition.
1. Create the region the wires pass before using the Wire Template function. When using
any shape in the wire cross-section, create a region for one wire cross-section in the
position which will be the start point for placing a wire.
2. In the [Model Manager] tree, make sure that the sketch is in the edit mode .
3. Select [Template Feature] > [Wire Template] from the menu bar.
Or click [Wire template] on the toolbar.
MEMO While the Wire Template is being used, support messages in a dialog are shown in the
graphics window.
160
Creating 2D CAD Models Using Geometry Editor
[Wire Template] is added under the sketch > [Feature] in the [Model Manager] tree. Right-click
it to open a menu. From this menu, you can perform [Edit], [Suppress], [Delete], [Properties],
etc.
161
JMAG Version 22.2 User's Manual
Operations
2. In the [Model Manager] tree, make sure that a sketch is in the edit mode . .
3. From the menu bar, select [Insert] > [Template Feature] > [User Defined Region Tem-
plate].
Or, click [User Defined Region Template] on the toolbar.
4. In the [User Defined Region Template] setting panel, click [Edit Script].
The [User Defined Template: Edit Script] window is displayed.
The menus and toolbar buttons available in the [User Defined Template: Edit Script] window
are the same as those in Script Editor (with the exception of some functions). For details on how
to use Script Editor, see “Script Editor” in “Parameter Explanation Edition”.
5. Add the Python program created in step 1.
Copy and paste the Python program from step 1.
It is also possible to save the Python program from step 1 to a file (.py) and import it to a user-
defined template.
After clicking [Run] , the Python program is executed and parameters are added to the [User
Defined Region Template] setting panel. The model is then previewed in the graphics window. If
there is an error in the Python program, a “script error” message is displayed.
6. Click [Close].
If the message “Do you want to save script changes?” is displayed, click [Yes].
7. Click [OK] in the [User Defined Region Template] setting panel.
The user defined region template feature is added to the sketch. Right-clicking this displays
[Edit], [Suppress], [Delete], and [Properties] as commands.
162
Creating 2D CAD Models Using Geometry Editor
This explains the procedure for setting geometry created by the user themselves to geometry param-
eter set lists.
1. Create geometry.
2. Create key variables.
The following is an example procedure.
i. Right-click the text box of a real number type or a variable type.
ii. Select [Equations].
The [Equations] dialog is displayed.
MEMO The [Equations] dialog can also be opened from the following procedure.
• Right-click [Assembly] in the [Model Manager] tree, and select [Equations].
iii. Click [Add].
iv. In the [Edit Equation] dialog, select [Treat as a key variable in the geometry parame-
ter set list].
Other input parameters are the same as when creating regular variables.
v. Click [OK].
Created key variables are displayed in the [Equations] dialog.
vi. Click [OK].
3. Create variables for geometry parameters to associate with key variables.
While the creation process is the same as for key variables, [Treat as a key variable in the geome-
try parameter set list] must be cleared.
163
JMAG Version 22.2 User's Manual
Operations
4. Real number type and variable type geometry parameter values can be entered for vari-
ables.
5. To the assembly, add a geometry parameter set list for the key variables created in Step
1.
i. Create a geometry parameter set list using spreadsheet software, etc., and save this
in a CSV file format (.csv).
For details on the CSV file format, see “Parameter Explanation Edition”.
ii. In the [Model Manager] tree, right-click the assembly and select [Open the geometry
parameter set list] > (key variable name).
iii. In the [Geometry Parameter Set List] dialog, click [Import].
iv. In the [Import Data] dialog, specify the geometry parameter set list CSV file and click
[Open].
Data imported to the [Geometry Parameter Set List] dialog is displayed.
6. Add new sets to the geometry parameter set list as necessary.
i. Open the [Edit Equation] dialog and modify the key variables.
ii. Similarly, modify the values of the geometry parameters added to the geometry
parameter set list.
iii. In the [Model Manager] tree, right-click the assembly and select [Register in the
geometry parameter set list] > (key variable name).
The values of the current geometry key variables and the values of the geometry parameters
associated with the key variables are added to the list as a set.
If sets with the same key variable values already exist in a list, then a message confirming the
overwriting of the sets is displayed.
7. Check that the geometry parameter set list is referenced.
The following is an example procedure for checking that this has occurred.
164
Creating 2D CAD Models Using Geometry Editor
Using JMAG-Designer:
i. From the menu bar, select [File] > [Back To JMAG-Designer].
ii. Click [Import Model].
iii. In the [Project Manager] tree, right-click the model and select [New Study] > (current
study).
iv. In the [Project Manager] tree, under the study, right-click [CAD Parameters] and
select [Select CAD Parameters].
v. In the [Select CAD Parameters] dialog, select the checkbox displayed to the left of the
key variables, and click [OK].
The key variables are displayed under [CAD Parameters] in the [Project Manager] tree.
vi. In the [Project Manager] tree, under [CAD Parameters], double-click (key variable
name).
vii.In the [CAD Parameters] setting panel, edit the values of key variables.
Enter values that should otherwise cause breakdowns in geometry. The geometry parameter
set list is referred to when breakdowns in geometry occur due to scaling alone as a result of
making changes to key variables.
165
JMAG Version 22.2 User's Manual
Operations
1. From the menu bar, select [Insert] > [Reference Geometry] > [Reference Point], [Refer-
ence Line], or [Reference Plane].
Or, perform one of the following:
166
Creating 2D CAD Models Using Geometry Editor
1. Make sure that sketch, part and mesh part are not active in the [Model Manager] tree.
2. From the menu bar, select [Insert] > [Geometry Set] > [Solid/Region Set], [Face Set],
[Edge Set], [Vertex Set], [Direction Set], [Point Set].
Or, perform one of the following:
167
JMAG Version 22.2 User's Manual
Operations
2. Select [Properties].
3. In the [Properties] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
168
Creating 2D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, right-click the reference shapes, paths, parts, sketches,
mesh parts, or features.
2. Select [Suppress].
The reference shapes (or paths, parts, sketches, mesh parts, features) with suppression set is not
available on the [Model Manager] tree. Also it will be hidden in the graphics window.
3. To cancel suppression, in the [Model Manager] tree, right-click the reference shapes,
paths, parts, sketches, mesh parts, or features for which constraint has been set, and
select [Unsuppress].
169
JMAG Version 22.2 User's Manual
Operations
1. Create variables in Geometry Editor and enter those variables for the parameter values.
• Variables are created in the [Equations] dialog.
Right-click [Assembly] in the [Model Manager] tree and select [Equations] to open this dia-
log.
• Variables can be entered as real number-type or variable-type parameter values. To enter vari-
ables, right-click the text box to enter the variables into, and select [Insert Variable] > (vari-
able name).
2. Create a conditional expression to define a variable value range.
The following is an example procedure.
i. In the [Model Manager] tree, right-click [Assembly].
ii. Select [Equations].
iii. In the [Equations] dialog, click [Add] displayed beneath the [Expression Range Set-
tings] table.
The [Equation Conditions] dialog is displayed.
iv. Use the variable created in Step 1 to create a conditional expression.
Once an equals sign, less-than sign, or greater-than sign has been selected from the list, enter
both the right and left sides of the conditional expression in the respective text boxes.
v. Click [OK].
The [Equations] dialog is displayed.
The created conditional expression is now added to the [Expression Range Settings] table.
Displayed to the left of each conditional expression are the results of determining whether or
not shape errors have occurred based on those conditional expressions ( , , ).
If there are conditional expressions displaying error icons , then error marks are also dis-
played in the [Assembly] in the [Model Manager] tree.
170
Creating 2D CAD Models Using Geometry Editor
1. From the Geometry Editor menu bar, select [File] > [Back To JMAG-Designer].
2. In the [Back To JMAG-Designer] dialog, click [Import Model].
The model is imported and is displayed in the graphics window of JMAG-Designer.
171
JMAG Version 22.2 User's Manual
Operations
1. From the Geometry Editor menu bar, select [File] > [Back To JMAG-Designer].
2. In the [Back To JMAG-Designer] dialog, click [Replace Model] or [Update Model].
• To replace a model that has already been imported, click [Replace Model].
• To import as a new model, click [Update Model].
The edited model is imported into JMAG-Designer. Settings of the model prior to editing are
inherited by the newly imported model.
1. In the [Project Manager] tree, right-click a model an select [Replace Model] or [Update
Model].
• To replace a model that has already been imported, select [Replace Model].
• To import as a new model, select [Update Model].
The edited model is imported into JMAG-Designer. Settings of the model prior to editing are
inherited by the newly imported model.
Saving Models
Save the model created or edited using the Geometry Editor in the project of JMAG-Designer.
1. From the Geometry Editor menu bar, select [File] > [Save Model].
Or click [Save Model] on the toolbar.
2. In the [Save Model] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [Save].
JMAG-Designer becomes active and models are imported.
172
Creating 2D CAD Models Using Geometry Editor
173
JMAG Version 22.2 User's Manual
Operations
174
Creating 3D CAD Models Using Geometry Editor
This chapter describes the procedure for creating a 3D CAD model using the Geometry Editor.
• Setting Geometry Editor Preferences, Setting the Link Option Between JMAG-Designer and Geometry Edi-
tor (page 180)
• Exporting Model Images to Image Files and Printing Model Images (page 180)
175
JMAG Version 22.2 User's Manual
Operations
• Importing Models Created in the Geometry Editor into JMAG-Designer (page 218)
• Replacing Models Already Imported into JMAG-Designer with Models Edited in the Geometry Editor
(page 218)
• Saving Models (page 218)
• Exporting Models to Files (page 218)
176
Creating 3D CAD Models Using Geometry Editor
177
JMAG Version 22.2 User's Manual
Operations
178
Creating 3D CAD Models Using Geometry Editor
179
JMAG Version 22.2 User's Manual
Operations
180
Creating 3D CAD Models Using Geometry Editor
181
JMAG Version 22.2 User's Manual
Operations
Editing Parts
1. With selecting the part in the [Model Manager] tree, select [Insert] > [Edit Part].
Or, perform one of the following:
• With selecting the part in the [Model Manager] tree, click [Edit Part] .
• Right-click the part in the [Model Manager] tree, select [Edit Part].
Example
1. In the [Model Manager] tree, right-click a sketch under the assembly, and select [Move
to New Part].
A new part is created and a 2D sketch is also created under the new part.
MEMO The operations explained above can also be specified by using [Copy] , [Cut] , and
[Paste] in the toolbar.
182
Creating 3D CAD Models Using Geometry Editor
Creating Solids
• Extrude a Sketch to Create a Solid (page 183)
• Extrude a Solid Face to Create a Solid (page 184)
• Create Solid Connecting Faces or Faces and Vertex (page 184)
183
JMAG Version 22.2 User's Manual
Operations
184
Creating 3D CAD Models Using Geometry Editor
1. Create multiple solids (or sketches with regions and vertices created) connected by lofts
to one part.
Lofts can connect faces of a solid, regions, and vertices within the same part.
2. Set the loft features.
i. In the [Model Manager] tree, make sure that a part is in the edit mode .
ii. From the menu bar, select [Insert] > [Face Extrude] > [Loft].
Or perform the following:
• Click [Loft] on the toolbar.
• Right-click a sketch or solid face in the graphics window and select [Loft].
The [Loft] setting panel is displayed.
MEMO When the [Loft] setting panel is opened with a sketch of a created face of a solid or of a
region selected, the face selected for [Start Face] is automatically added.
iii. Set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Loft] is added under the part in the [Model Manager] tree. Right-click it to open a menu.
From this menu, you can perform [Edit], [Suppress], [Delete], [Properties], etc. When [Sup-
press] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
185
JMAG Version 22.2 User's Manual
Operations
Processing Solids
• Cut Out Part of a Solid (page 186)
• Divide a Solid into Multiple Parts (page 187)
• Create a Vertex on a Solid (page 188)
• Scale a Solid (page 188)
• Round the Edges of a Solid (Fillet) (page 189)
• Chamfer the Edges of a Solid (page 189)
• Offset a Solid Face (page 190)
• Move a Solid Face (page 190)
186
Creating 3D CAD Models Using Geometry Editor
Basic shapes
Extrusion
direction
187
JMAG Version 22.2 User's Manual
Operations
Vertices
Scale a Solid
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Solid Scale].
Or click [Solid Scale] on the toolbar.
188
Creating 3D CAD Models Using Geometry Editor
189
JMAG Version 22.2 User's Manual
Operations
MEMO To apply a chamfer to copies of a solid, specify the chamfer on a solid, and then copy the
solid with the chamfer using the [Circular Pattern] or [Solid Linear Pattern] feature.
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Solid Face Offset].
Or, perform one of the following:
• Click [Solid Face Offset] on the toolbar.
• Right-click one or multiple solid faces in the graphics window and select [Solid Face Offset] >
(offset type. For example, [Specify Offset]).
When the [Solid Face Offset] setting panel is displayed by this operation, the selected solid
faces are added to the [Faces] list. Additionally, depending on the selected menu, the corre-
sponding item is selected in the [Method Type] list.
3. In the [Solid Face Offset] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Solid Face Offset] is added under the part in the [Model Manager] tree. Right-click it to open a
menu. From this menu, you can perform [Edit], [Suppress], [Delete], [Properties], etc. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Solid Face Move].
Or, perform one of the following:
• Click [Solid Face Move] on the toolbar.
190
Creating 3D CAD Models Using Geometry Editor
• Right-click one or multiple solid faces in the graphics window and select [Solid Face Move] >
(movement type. For example, [Parallel - Specify Move]).
When the [Solid Face Move] setting panel is displayed by this operation, the selected solid
faces are added to the [Faces] list. Additionally, depending on the selected menu, the corre-
sponding item is selected in the [Method Type] list.
3. In the [Solid Face Move] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Solid Face Move] is added under the part in the [Model Manager] tree. Right-click it to open a
menu. From this menu, you can perform [Edit], [Suppress], [Delete], [Properties], etc. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
191
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Convert to Fillet Feature].
Or, click [Convert to Fillet Feature] .
3. In the [Convert to Fillet Feature] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
[Edge Fillet] is added to the [Model Manager] tree.
To undo the conversion, select [Edit] > [Undo] from the menu bar. Even if added edge fillet fea-
tures are deleted using this function, the geometry cannot be returned to its state prior to conver-
sion.
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Convert to Linear Pattern Fea-
ture], [Convert to Circular Pattern Feature], or [Convert to Mirror Copy Feature].
Or, perform one of the following:
192
Creating 3D CAD Models Using Geometry Editor
193
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Boolean for Solids].
Or, click [Boolean for Solids] .
3. In the [Boolean for Solids] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Boolean for Solids] is added under the part in the [Model Manager] tree. [Edit], [Suppress],
[Delete], and [Properties] are displayed as menus after right-clicking [Boolean for Solids]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
194
Creating 3D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Imprint for Solids].
Or, click [Imprint for Solid] .
3. In the [Imprint for Solid] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Imprint for Solid] is added under the part in the [Model Manager] tree. [Edit], [Suppress],
[Delete], and [Properties] are displayed as menus after right-clicking [Imprint for Solid]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
195
JMAG Version 22.2 User's Manual
Operations
Creating Shells
The basic shapes (line, arc, circle, and spline) is extended in specified direction to create a shell.
The following types are available:
• [Extrude Surface]:
Extrudes the selected basic shape in the normal direction.]
• [Revolve Surface]:
Extrudes the selected basic shape circumferentially around an axis.
• [Sweep Surface]:
Extrudes the selected basic shape along the specified path.
196
Creating 3D CAD Models Using Geometry Editor
Creating Beams
A sketch (line, arc, circle, spline) is used as a beam.
197
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Feature] > [Solid Move].
Or, perform one of the following:
198
Creating 3D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that a part is in the edit mode .
2. From the menu bar, select [Insert] > [Solid Pattern] > [Solid Linear Pattern], [Solid Circu-
lar Pattern] or [Solid Mirror Copy].
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
• Right-click the solid, shell, or beam on the graphics window and select [Solid Linear Pattern],
[Solid Circular Pattern], or [Solid Mirror Copy].
3. In the [Solid Linear Pattern], [Solid Circular Pattern], or [Solid Mirror Copy] setting
panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Solid Linear Pattern], [Solid Circular Pattern], or [Solid Mirror Copy] is added under the part
in the [Model Manager] tree. [Edit], [Suppress], [Delete], and [Properties] are displayed as
menus after right-clicking [Solid Linear Pattern], [Solid Circular Pattern], or [Solid Mirror
Copy]. When [Suppress] is made inactive without deleting a feature, when setting the feature's
name, execute [Properties].
199
JMAG Version 22.2 User's Manual
Operations
When selecting a geometry from the geometry library and specifying dimensions, the geometry is
added to an assembly as a new part or sketch.
Geometry library
It is also possible to add user-created geometries to the geometry library or to use the same geometry
on multiple machines by placing the geometry library in a shared folder.
The procedure is the same as when creating a 2D model. See “Creating 2D Model Using the Geom-
etry Library” on page 155.
200
Creating 3D CAD Models Using Geometry Editor
Left: Coil for radial gap motors (rectangular type), center: coil for axial gap motors,
right: coil for radial gap motors (rectangular type, beam)
1. Create the region of a coil cross-section in the start position of the coil path when using
any shape in the coil cross-section.
2. In the [Model Manager] tree, make sure that the part is in the edit mode .
3. From the menu bar, select [Insert] > [Template Feature] > [Coil Template].
Or click [Coil Template] on the toolbar.
4. In the [Coil Template] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [OK].
[Coil Template] is added under the part in the [Model Manager] tree. [Edit], [Suppress],
[Delete], and [Properties] are displayed as menus after right-clicking this [Coil Template]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
201
JMAG Version 22.2 User's Manual
Operations
202
Creating 3D CAD Models Using Geometry Editor
203
JMAG Version 22.2 User's Manual
Operations
• Angle • Concentric
• Parallelity • Tangency
• Perpendicularity • Coincident
MEMO The display position of each constraint value can be moved by mouse dragging after closing
the settings panel.
MEMO The constraints displayed in the [Model Manager] tree can be displayed by types that are
grouped. Right-click [Constraint] in the [Model Manager] tree, and select [View by Type].
MEMO To select a constraint on the graphics window, select the [Constraint Select Filter] in the
toolbar in advance.
204
Creating 3D CAD Models Using Geometry Editor
Edit a 3D Constraint
Edit each parameter for distance constraint and angle constraint.
1. In the [Model Manager] tree, make sure that the part or the sketch under the part is not
in the edit mode , .
If in edit mode, right-click the assembly in [Model Manager], and select [Edit Assembly].
2. Double click the icon for either the angle constraint or the distance constraint in the
Geometry Editor.
Delete a 3D Constraint
1. In the [Model Manager] tree, make sure that the part or the sketch under the part is not
in the edit mode , .
If in edit mode, right-click the assembly in [Model Manager], and select [Edit Assembly].
2. Select the symbol or arrow for the constraint displayed on the part in the Geometry Edi-
tor.
205
JMAG Version 22.2 User's Manual
Operations
MEMO [Constraint Select Filter] needs to be selected in the toolbar beforehand when selecting
constraints in the graphics window.
3. Use one of the following procedures to delete a constraint.
• Click [Delete] from the tool bar.
• Press the [Delete] key on the keyboard.
• Right-click the shape, and select [Delete].
206
Creating 3D CAD Models Using Geometry Editor
207
JMAG Version 22.2 User's Manual
Operations
• [Extrude Split]:
Extends the basic shape in the selected sketch vertically to split the part through which the
extended basic shape passes.
• [Revolve Split]:
Extends the basic shape in the selected sketch circumferentially to split the part through which
the extended basic shape passes.
• [Sweep Split]:
Extends the basic shape in the selected sketch along any path to split the part through which the
extended basic shape passes.
Basic shapes
Extrusion
direction
MEMO CAD parts with solids that have generated meshes cannot be split. If a CAD part with a solid
that has a mesh generated is converted to a mesh part, it can be split into multiple blocks on an element-
by-element basis.
208
Creating 3D CAD Models Using Geometry Editor
1. In the [Model Manager] tree, make sure that parts and sketches are not in the edit
mode , .
2. From the menu bar, select [Insert] > [Assembly Feature] > [Assembly Scale].
Or, click [Assembly Scale] on the toolbar.
3. In the [Assembly Scale] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Assembly Scale] is added under the assembly in the [Model Manager] tree. [Edit], [Suppress],
[Delete], and [Properties] are displayed as menus after right-clicking [Assembly Scale]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
209
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, make sure that parts and sketches are not in the edit
mode , .
2. From the menu bar, select [Insert] > [Assembly Feature] > [Assembly Boolean].
Or, click [Assembly Boolean] on the toolbar.
3. In the [Assembly Boolean] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Assembly Boolean] is added under the assembly in the [Model Manager] tree. [Edit], [Sup-
press], [Delete], and [Properties] are displayed as menus after right-clicking [Assembly Boolean].
When [Suppress] is made inactive without deleting a feature, when setting the feature's name,
execute [Properties].
210
Creating 3D CAD Models Using Geometry Editor
Part B
Face 1
Face 2
Left: Before imprint (Part A and B), Right: After imprint (Part A)
An example is as follows:
• Suppose there are two solids and a boundary condition is set on the face A. The boundary condi-
tion cannot be set because the entire face of the part P2 is selected.
If the parts P1 and P2 are imprinted, the solid face is divided into two faces and the boundary
condition can be set on the face A.
Face B
Face A
1. In the [Model Manager] tree, make sure that parts and sketches are not in the edit
mode , .
2. From the menu bar, select [Insert] > [Assembly Feature] > [Imprint for Parts].
Or, click [Imprint for Parts] on the toolbar.
3. In the [Imprint for Parts] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Imprint for Parts] is added under the assembly in the [Model Manager] tree. [Edit], [Suppress],
[Delete], and [Properties] are displayed as menus after right-clicking [Imprint for Parts]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
211
JMAG Version 22.2 User's Manual
Operations
Projected sketch
1. Select a part to convert in [Model Manager], and then click [Edit Part] .
A part can also be selected by right-clicking the part in [Model Manager], and then selecting
[Edit Part].
The selected part enters the edit mode .
5. While the sketch is in edit mode , from the menu bar, select [Insert] > [Sketch Tool] >
[Project Outline to Sketch].
Or click [Project Outline to Sketch] .
6. Select a face (or edge) to project in the graphics window.
To project multiple faces (or edges), select multiple faces (or edges) while holding down the
[Shift] key or [Ctrl] key. To cancel the selections, click anywhere in the graphics window.
MEMO [Basic Shape Select Filter] needs to be selected beforehand when selecting a basic shape in
the graphics window.
7. In the [Project Outline to Sketch] setting panel, click [Apply].
The basic shapes that are part of the outline of the projected face are added under the sketch in
the [Model Manager].
MEMO When [Automatic Constraints] is selected from the toolbar, a project coincident con-
straint is automatically added to a basic shape created by outline projection tool. The project coinci-
dent constraint will change the basic shape created by outline projection tool according to the outline
of the original solid.
212
Creating 3D CAD Models Using Geometry Editor
213
JMAG Version 22.2 User's Manual
Operations
1. To create reference points, reference lines, reference planes to be used in the assembly,
make sure that there are no parts being edited in the [Model Manager] tree.
To create a reference point, reference line, reference plane to be used in a part, switch
that part in edit mode .
2. From the menu bar, select [Insert] > [Reference Geometry] > [Reference Point], [Refer-
ence Line], or [Reference Plane].
Or, perform one of the following:
214
Creating 3D CAD Models Using Geometry Editor
215
JMAG Version 22.2 User's Manual
Operations
A beam passing through the specified path can be created by using the same function. By using
Boolean features (union), the created beam can be connected to beams created by the [Create Beam]
feature and the coil template feature.
The following are the path types:
Type Description
Vertices Path Creates a path or beam to connect the specified vertices.
Points Path Creates a path or beam to connect the specified coordinates.
Helix Path Creates a helical path or beam.
Spiral Path Creates a spiral path or beam.
Composite Path Combines the selected paths or beams into one.
1. To create a path for use with a feature for an assembly, make sure there are no parts
being edited in the [Model Manager] tree.
To create a path for use with a feature for a part, switch that part in edit mode .
2. From the menu bar, select [Insert] > [Path] > [Vertices Path], [Points Path], [Helix Path],
or [Spiral Path].
Or, perform one of the following:
• Click the button on the toolbar ( , , , ).
• Right-click the graphics window and select [Vertices Path] while multiple vertices are selected.
3. In the [Vertices Path], [Points Path], [Helix Path], [Spiral Path] setting panel, set the
parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
[Vertices Path], [Points Path], [Helix Path], or [Spiral Path] is added under the assembly or part
in the [Model Manager] tree. [Edit], [Suppress], [Delete], and [Properties] are displayed as
menus after right-clicking [Vertices Path], [Points Path], [Helix Path], or [Spiral Path]. When
[Suppress] is made inactive without deleting a feature, when setting the feature's name, execute
[Properties].
216
Creating 3D CAD Models Using Geometry Editor
1. To combine paths for an assembly, make sure there are no parts being edited in the
[Model Manager] tree.
To combine paths for a part, switch that part in edit mode .
2. From the menu bar, select [Insert] > [Path] > [Composite Path].
Or, perform one of the following:
217
JMAG Version 22.2 User's Manual
Operations
Saving Models
For details on saving the model, see “Saving Models” on page 172.
218
Creating Mesh Models Using Geometry Editor
This chapter describes how to create a mesh model using the Geometry Editor.
• Setting Geometry Editor Preferences, Setting the Link Option Between JMAG-Designer and Geometry Edi-
tor (page 226)
• Exporting Model Images to Image Files and Printing Model Images (page 226)
219
JMAG Version 22.2 User's Manual
Operations
• Importing Models Created in the Geometry Editor into JMAG-Designer (page 243)
• Replacing Models Already Imported into JMAG-Designer with Models Edited in the Geometry Editor
(page 243)
• Saving Models (page 243)
• Exporting Models to Files (page 243)
220
Creating Mesh Models Using Geometry Editor
221
JMAG Version 22.2 User's Manual
Operations
222
Creating Mesh Models Using Geometry Editor
If the project has never been saved before, a dialog appears prompting the user to save the project
or to continue without saving. Click [Yes] and save the project.
Start Geometry Editor and establish its link with JMAG-Designer.
2. Create a 2D CAD model.
MEMO Procedures are different when using wire templates or geometry libraries for a 2D model.
For details, see “Creating 2D Model Using the Geometry Library” on page 155, “Creating 2D Wire
Models Using Wire Templates” on page 160.
i. Create the part under [Model Manager] > [Assembly], and also create a sketch below
that part.
For details, see “Creating Parts and Sketches” on page 181.
ii. Draw a cross-section of a part in a sketch.
See the following pages for details.
• “Drawing Outlines of Cross Sections of Parts” on page 113
• “Merging Vertices” on page 127
• “Using the Sketch Tool for Drawing” on page 128
• “Using the Basic Shape Tool for Drawing” on page 129
• “Moving Basic Shapes” on page 141
• “Copying Basic Shapes” on page 143
iii. Set 2D constraints as needed.
For details, see “Setting 2D Constraints to Limit Shape Position and Size of Shapes” on
page 137.
iv. Create a region.
See the following pages for details.
• “Creating Regions” on page 145
• “Processing Regions” on page 148
• “Running Boolean Operations to Eliminate Duplication of Regions” on page 151
• “Moving Regions” on page 152
• “Copying Regions” on page 153
3. Create a mesh in a 2D CAD Model.
i. Set the region mesh feature for the sketch that created the region.
See the following page for details.
• “Creating 2D Meshes for Regions” on page 227
ii. Delete duplicated nodes as needed.
See the following pages for details.
• “Deleting Duplicate Nodes in Meshes” on page 230
Delete duplicate nodes except in special cases such as when creating a slide mesh manually.
4. Set 3D features in a 2D mesh model.
i. Set the 3D feature for the sketch that created the mesh.
See the following pages for details.
• “Creating Solids” on page 183
223
JMAG Version 22.2 User's Manual
Operations
ii. When editing meshes using element, element edge, or node; convert the parts that
created the meshes to mesh parts and implement the settings.
See the following pages for details.
• “Modifying Meshes in Element Blocks” on page 234
iii. Delete duplicated nodes as needed.
See the following pages for details.
• “Deleting Duplicate Nodes in Meshes” on page 230
• “Delete a Duplicate Node in a Mesh Part” on page 237
Delete duplicate nodes except in special cases such as when creating a slide mesh manually.
5. Import the model to JMAG-Designer from Geometry Editor.
224
Creating Mesh Models Using Geometry Editor
225
JMAG Version 22.2 User's Manual
Operations
226
Creating Mesh Models Using Geometry Editor
227
JMAG Version 22.2 User's Manual
Operations
1. Create a mesh for the region created in the sketch under the part.
i. In the [Model Manager] tree, make sure that the sketch is in the edit mode .
For the rest of the procedure, see “Creating 2D Meshes for Regions” on page 227. When
you finish creating the 2D mesh, please cancel the edit state of that sketch.
2. Create a 3D mesh based on 2D mesh.
i. In the [Model Manager] tree, make sure that there are no sketches in edit mode
under the part that is being edited.
Right-click the sketch in edit mode and select [End Sketch].
ii. To extend in the normal direction, select [Insert] > [Extrude] > [Extrude] from the
menu bar.
To extend in the radial direction around an axis, select [Insert] > [Revolve] > [Revolve]
from the menu bar.
Or, perform the following operation:
228
Creating Mesh Models Using Geometry Editor
1. Create 3D mesh.
For the procedure, see “Creating 3D Meshes Based on 2D Meshes” on page 228.
2. Create a 3D mesh based on 3D mesh surface.
i. In the [Model Manager] tree, make sure that sketches under the part is not in the
edit mode .
ii. To extend in the normal direction, select [Insert] > [Face Extrude] > [Face Extrude]
from the menu bar.
To extend in the radial direction around an axis, select [Insert] > [Face Extrude] >
[Face Revolve] from the menu bar.
Or, perform one of the following:
• Right-click the 3D mesh surface of the graphics window and select [Face Extrude] or
[Face Revolve].
iii. In the [Face Extrude] setting panel or [Face Revolve] setting panel, set the parame-
ters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
3. If necessary, merge nodes that are present at the same coordinates.
If multiple nodes exist overlapping in the same coordinates, incorrect analysis results will be out-
put. See “Deleting Duplicate Nodes in Meshes” on page 230.
229
JMAG Version 22.2 User's Manual
Operations
230
Creating Mesh Models Using Geometry Editor
Moving/Copying Meshes
Moving/copying 2D mesh is the same procedures as moving/copying a region. See following pages.
• Moving Regions (page 152)
• Copying Regions (page 153)
Moving/copying 3D mesh is the same procedures as moving/copying a solid. See following pages.
• Moving Solids, Shells, and Beams (page 198)
• Copying Solids, Shells, and Beams (page 199)
1. Select [Tools] > [Mesh Quality] from the Geometry Editor menu bar.
2. In the [Mesh Quality] dialog, evaluate the quality of the mesh using numerical values.
The fewer the flat elements there are, the better the mesh is for analysis. For details on items dis-
played and evaluation criteria, see “Parameter Explanation Edition”.
MEMO The mesh for suppressed parts (or sketches or mesh parts) is not included in the mesh qual-
ity assessment. Suppression can be set from the context menu for any part (or sketch or mesh part) in
the Model Manager tree.
3. Click [Close].
231
JMAG Version 22.2 User's Manual
Operations
MEMO Using [Undo] in the toolbar will return to the state prior to renumbering element IDs
and node IDs. Returning element IDs and node IDs to states prior to renumbering before using
[Update Model] will have no effect on condition or material settings.
232
Creating Mesh Models Using Geometry Editor
Deleting a Mesh
Delete the mesh feature set in the region.
MEMO Changes a mesh model to a CAD model when deleting a mesh in this procedure.
MEMO Certain areas of a mesh can be deleted by converting a sketch or part to a mesh part. For details
about converting in mesh part, see “Convert a Part or Sketch to a Mesh Part” on page 234.
1. In the [Model Manager] tree, make sure that a sketch is in the edit mode .
2. Use one of the following procedures to delete a mesh.
• Right-click [Region Mesh] in [Feature] under the sketch and select [Delete].
• Click [Delete] while [Region Mesh] is selected.
• Press the [Delete] key on the keyboard while [Region Mesh] is selected.
233
JMAG Version 22.2 User's Manual
Operations
1. In the [Model Manager] tree, right-click either sketch or part where the mesh is created.
2. Select [Convert to Mesh Part].
The mesh part is added in the [Model Manager] tree, and also the mesh block which includes a
single or multiple elements for the mesh part in the [Model Manager] tree.
Right-click a mesh part and specify [Edit Part] to switch from to which is the non-edit
mode. Right-click a mesh part that is in edit mode and select [End Part] to switch from to
which is the non-edit mode.
The sketch or part that is based on a mesh part is specified with restrictions .
MEMO The mesh is duplicated when restrictions for the mesh part that is based on a sketch or part
is cleared.
An error may occur or the correct analysis result may not be obtained when mesh is duplicated.
Extrude an Element
The following types are available:
• [Parallel Mesh Extrude]:
Extends the element parallel in the specified direction and for the specified distance.
234
Creating Mesh Models Using Geometry Editor
Extrusion direction
1. Extrude elements.
i. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
ii. From the menu bar, select [Insert] > [Parallel Mesh Extrude], [Cylindrical Theta Mesh
Extrude], or [Cylindrical Radial Mesh Extrude].
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
iii. In the [Parallel Mesh Extrude], [Cylindrical Theta Mesh Extrude], [Cylindrical Radial
Mesh Extrude] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [Apply].
The extrusion is run on a mesh part.
MEMO This operation can be restored to the state before execution by using [Undo] .
v. To continue extruding, execute the same procedure.
To end extruding, click [Close].
2. If necessary, merge nodes that are present at the same coordinates.
If multiple nodes exist overlapping in the same coordinates, incorrect analysis results will be out-
put. See “Delete a Duplicate Node in a Mesh Part” on page 237.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. Select [Insert] > [Make Beam Element] from the menu bar.
Or, perform one of the following:
235
JMAG Version 22.2 User's Manual
Operations
MEMO Use [Undo] to return to the state prior to performing this procedure.
5. Perform this same procedure if creating additional beam elements.
Once beam elements have been created, click [Close].
Copy an Element
The following types are available]
• [Parallel Mesh Copy]:
Copies the selected elements parallel to the specified direction.
• [Rotate Mesh Copy]:
Copies the selected elements in the circumferential direction around the specified axis.
• [Mirror Mesh Copy]:
Copies the selected elements symmetrically about the specified plane.
MEMO Mesh parts can also be copied by using [Copy] and [Paste] in the toolbar.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. From the menu bar, select [Insert] > [Parallel Mesh Copy], [Rotate Mesh Copy], or [Mir-
ror Mesh Copy] from the menu bar.
Or, perform one of the following:
• Click the button on the toolbar ( , , ).
3. In the [Parallel Mesh Copy], [Rotate Mesh Copy], or [Mirror Mesh Copy] setting panel,
set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
MEMO This operation can be restored to the state before execution by using [Undo] .
5. To continue copying elements, execute the same procedure.
To end copying elements, click [Close].
Move a Node
Change the shape of the element by moving the selected node. The following types are available:
• [By Coordinate]:
Moves a node to the specified coordinates (X, Y, Z).
• [By Parallel]:
Moves a node in the specified direction and by the specified distance.
• [By Theta]:
Moves a node by a specified angle in the circumferential direction around a specified axis.
236
Creating Mesh Models Using Geometry Editor
• [By Radial]:
Moves a node around a specified axis by a specified distance in the radial direction.
• [To Applicable Node]:
Moves the selected node to the same position as the specified node.
1. Move nodes.
i. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
ii. From the menu bar, select [Insert] > [Move Node] > [By Coordinate], [By Parallel], [By
Theta], [By Radial], or [To Applicable Node].
Or, perform one of the following:
• Click the button on the toolbar ( , , , , ).
iii. In the [Move Node by Coordinate], [Move Node by Parallel], [Move Node By Radial],
[Move Node By Theta], or [Move Node To Applicable Node] setting panel, set the
parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [Apply].
MEMO This operation can be restored to the state before execution by using [Undo] .
v. To continue moving nodes, execute the same procedure.
To end moving nodes, click [Close].
2. If necessary, merge nodes that are present at the same coordinates.
If multiple nodes exist overlapping in the same coordinates, incorrect analysis results will be out-
put. See “Delete a Duplicate Node in a Mesh Part” on page 237.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. Select [Insert] > [Delete Duplicated Node] from the menu bar.
Or click [Delete Duplicated Node] .
3. In the [Delete Duplicated Node] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
Nodes are no longer duplicated. The number of nodes decreases due to multiple nodes merging
into one. The number of nodes is displayed on the upper right side of the graphics window.
5. To continue deleting duplicate nodes, execute the same procedure.
To end deleting duplicate nodes, click [Close].
237
JMAG Version 22.2 User's Manual
Operations
A mesh part with multiple mesh blocks are imported into JMAG-Designer
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. From the menu bar, select [Insert] > [Split Mesh Block].
Or click [Split Mesh Block] .
3. In the [Split Mesh Block] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
In the [Model Manager] tree, a new mesh block is added under the mesh part.
MEMO This operation can be restored to the state before execution by using [Undo] .
MEMO Splitting a mesh block does not cause multiple nodes to be at the same coordinates.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. From the menu bar, select [Insert] > [Merge Mesh].
Or, click [Merge Mesh Block] on the tool bar.
3. In the [Merge Mesh Block] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
Multiple mesh blocks are merged into a single mesh block.
MEMO This operation can be restored to the state before execution by using [Undo] .
238
Creating Mesh Models Using Geometry Editor
Scale an Element
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. From the menu bar, select [Insert] > [Element Scale].
Or click [Element Scale] on the tool bar.
3. In the [Element Scale] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
One element or more elements selected will be enlarged to the specified factor.
MEMO This operation can be restored to the state before execution by using [Undo] .
5. To continue scaling, execute the same procedure.
To end scaling, click [Close].
Subdivide an Elements
Divides elements into subdivisions. The elements can be divided into subdivisions as follows:
• The division pattern is specified and is divided into subdivisions
• Specifying the number of division for dividing elements in subdivision
MEMO The type of element that is supported differs on the type of subdivision.
• This function can be used for shell elements (quadrilateral elements) and solid elements (hexahedral
element) for [Divide Element By Pattern].
Shell elements (triangular elements) and solid elements (tetrahedral elements, square pyramid ele-
ments, triangular prism element) are not supported.
• This function is targeted for shell element (triangular element quadrilateral elements) and solid ele-
ment (hexahedral element, triangular prism element) for [Divide Element By Division].
Solid element (tetrahedral element, square pyramid elements) is not supported.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. From the menu bar, select [Insert] > [Divide Element By Pattern] or [Divide Element By
Division].
Or click [Divide Element By Pattern] or [Divide Element By Division] on the tool bar.
3. In the [Divide Element By Pattern] or [Divide Element By Division] setting panel, set the
parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
MEMO This operation can be restored to the state before execution by using [Undo] .
5. To continue subdividing, execute the same procedure.
To end subdividing, click [Close].
239
JMAG Version 22.2 User's Manual
Operations
4
3
8
7
1
2
6
Incidence of element and order of connection for nodes
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. Select [Insert] > [Shift Element] from the menu bar.
Or click [Shift Element] on the tool bar.
3. In the [Shift Element] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [Apply].
MEMO This operation can be restored to the state before execution by using [Undo] .
5. To continue shifting, execute the same procedure.
To end shifting, click [Close].
240
Creating Mesh Models Using Geometry Editor
3. To copy, select the assembly from the [Model Manager] tree (or, select anything other
than mesh part).
To merge, select a mesh part from the [Model Manager] tree other than the mesh part
selected in step 1.
4. From the menu bar, select [Edit] > [Paste].
When copying, a copy of the mesh part in step 1 is added to assembly.
When merging, the mesh part from step 1 is merged with the mesh part selected in step 3.
MEMO [Paste] can be used from the toolbar instead of the menu bar.
1. Select a mesh block under a mesh part in the [Model Manager] tree.
MEMO To select multiple mesh blocks, click mesh blocks while holding the [Ctrl] key or the [Shift]
key.
2. To move, select [Edit] > [Cut] from the menu bar.
To copy, select [Edit] > [Copy] from the menu bar.
MEMO [Cut] and [Copy] can be used from the toolbar instead of the menu bar.
3. Select a mesh part from the [Model Manager] tree other than the mesh part selected in
step 1.
4. From the menu bar, select [Edit] > [Paste].
The mesh block from step 1 can be moved or copied to below a mesh part from step 3.
MEMO [Paste] can be used from the toolbar instead of the menu bar.
MEMO 1 mesh block below a mesh part can be moved to below a different mesh part using a drag-
and-drop operation.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
241
JMAG Version 22.2 User's Manual
Operations
MEMO Nodes (Free Node) that do not belong to any elements are also deleted when deleting ele-
ments.
1. In the [Model Manager] tree, make sure that the mesh part is in the edit mode .
2. Right-click a mesh block under the mesh part in the [Model Manager] tree, and select
[Delete].
MEMO Nodes (Free Node) that do not belong to any elements are also deleted when deleting ele-
ments.
242
Creating Mesh Models Using Geometry Editor
Saving Models
For details on saving the model, see “Saving Models” on page 172.
243
JMAG Version 22.2 User's Manual
Operations
244
Creating Geometries Using JMAG Tools
JMAG has tools for creating geometries of specific products. This chapter describes how to prepare geometries
using these tools.
Models created using Transformer Modeling Tool (1/4model, 1/2model, full model)
245
JMAG Version 22.2 User's Manual
Operations
246
Creating Geometries Using JMAG Tools
247
JMAG Version 22.2 User's Manual
Operations
• The geometry output from JMAG-Express can also be edited in Geometry Editor. Right-click
the created model in the [Project Manager] tree in JMAG-Designer and select [Restore CAD
Link].
248
Creating Geometries Using JMAG Tools
1. In the [Project Manager] tree, right-click a transformer model and select [Restore CAD
Link].
2. In the [Transformer Model] dialog, edit the parameters.
3. Import the model designed by the transformer modeling tool into JMAG-Designer.
• If replacing a model that has already been imported, right-click the model in the [Project
Manager] tree and select [Replace Model].
• To import as a new model, right-click the project in the [Project Manager] tree and select
[Transformer Model] > [Import].
249
JMAG Version 22.2 User's Manual
Operations
250
Importing Models from Commercial CAD Software
This chapter describes linking with commercial CAD software from JMAG-Designer.
JMAG-Designer can establish a link with CATIA V5, Creo Parametric, or NX.
Using the CAD link function allows geometry changes in CAD software to be sequentially applied to a JMAG-
Designer model. Because geometry data is shared between CAD software and JMAG-Designer, geometry and
condition settings in JMAG-Designer are retained even after geometry changes are reflected.
MEMO The latest information related to versions of CAD software that can be linked to JMAG is on the JMAG
website (https://jmag-international.com/).
251
JMAG Version 22.2 User's Manual
Operations
2. Start JMAG-Designer.
3. In the [Link] setting panel of the JMAG-Designer [Preferences] dialog, specify options for
importing a model.
For information on how to open the [Preferences] dialog, see “Setting JMAG-Designer Prefer-
ences” on page 36. For details on options, see “Parameter Explanation Edition”.
4. Open a model created with CAD software in JMAG-Designer.
i. To open the [Open File] dialog, from the JMAG-Designer menu bar, select [File] >
[Open].
ii. Select the CAD assembly file type from the [File Type] list.
If any of the following is selected, linking software will not be used:
• [CATIA V5 file [CAD Link] (.CATPart, .CATProduct)]
• [Creo Parametric file [CAD Link] (.prt, .asm, .prt., .asm.)]
• [NX Files [CAD Link] (.prt)]
If any of the following is selected, CAPRI CAE Gateway will be used:
• [CATIA V5 Files [CAPRI] (.CATPart, .CATProduct)]
• [Creo Parametric Files [CAPRI] (.prt, .asm)]
• [NX file [CAPRI] (.prt)]
iii. Specify a CAD assembly file.
iv. Click [Open].
• When [CATIA V5 Files [CAPRI] (.CATPart, .CATProduct)], [Creo Parametric Files
[CAPRI] (.prt, .asm)], or [NX Files [CAPRI] (.prt)] is selected from the [File Type] list:
CAD software starts and the model is displayed. The same model is also displayed in the
graphics window in JMAG-Designer. A link is now established between JMAG-Designer
and the CAD software, and linked operations can be performed.
• When [CATIA V5 Files [CAD Link] (.CATPart, .CATProduct)], [Creo Parametric Files
[CAD Link] (.prt, .asm)], or [NX Files [CAD Link] (.prt)] is selected from the [File Type]
list:
The [CAD Link] dialog is displayed. Specify the options for importing a model in the
[CAD Link] dialog.
Click [OK] in the [CAD Link] dialog to start the CAD software and display the model.
252
Importing Models from Commercial CAD Software
The same model is also displayed in the graphics window in JMAG-Designer. A link is
now established between JMAG-Designer and the CAD software, and linked operations
can be performed.
253
JMAG Version 22.2 User's Manual
Operations
254
Using the Functions on Models
This chapter describes the operation procedure of the function related to the model.
255
JMAG Version 22.2 User's Manual
Operations
256
Using the Functions on Models
is applied to the model, the values set for parameters of each condition and material will
not be converted automatically.
iv. Click [OK].
257
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, right-click a model and select [Center Model].
2. In the [Center Model] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
The centering function is executed, and [Model Centering] is displayed under the model in
the [Project Manager] tree.
258
Using the Functions on Models
259
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, right-click a model and select [Remove Mesh Cache].
The cache data with selected model is deleted from JFILES folder in the same directory as the
project file.
1. To edit the properties of a model properties, in the [Project Manager] tree, right-click
the model and select [Properties].
To edit the properties of a part or part group, in the [Project Manager] tree, right-click
the part or part group and select [Properties].
260
Using the Functions on Models
1. In the [Project Manager] tree, right-click a project and select [Manage Project].
2. In the [Project Management] dialog, select the models from the list.
Multiple models can be selected by holding down the [Ctrl] key or [Shift] key and clicking on
the models.
3. Click the delete button .
The selected models and the studies created for the selected models are deleted.
MEMO In some cases a message to confirm the deleting is displayed, in which case click [Yes] or
[No].
MEMO Since studies with text in the Analysis Group column in the list belong to an analysis group,
those studies and the models that contain those studies cannot be deleted.
4. Click [OK].
The operations performed in the [Project Management] dialog are reflected in the [Project Man-
ager] tree.
261
JMAG Version 22.2 User's Manual
Operations
262
Using the Functions on Models
Grouping Parts
Multiple parts can be handled as one group at once. The icon for the grouped parts changes from
to under [Assembly] in the [Project Manager] tree.
263
JMAG Version 22.2 User's Manual
Operations
2. In the [Project Manager] tree, right-click [Assembly], and select [Create Groups] >
[Match 4 Characters] or [Match 6 Characters].
1. In the [Project Manager] tree, under a study, check that a material is specified for each
part in [Parts].
2. Right-click [Assembly], and select [Create Groups] > [Match Materials].
The parts are grouped by their assigned materials.
Ungrouping
1. In the [Project Manager] tree, under [Assembly], right-click the group.
2. Select [Ungroup].
MEMO Select the grouped part in the graphics window, right-click, then select [Grouping] >
[Ungroup Selected].
264
Using the Functions on Models
1. To set suppression for parts in a model, in the [Project Manager] tree, under [Assembly],
right-click a part or part group .
To set suppression for parts in a study, in the [Project Manager] tree, under [Parts],
right-click a part or part group.
2. Select [Suppress Part].
Parts that are suppressed are not available in the [Project Manager] tree, and are not displayed in
the graphics window.
3. Run step 1-2 again while a part has suppression to remove suppression.
265
JMAG Version 22.2 User's Manual
Operations
1. For JMAG-Designer, from the menu bar, select [View] > [Measurement].
For Geometry Editor, from the menu bar, select [Tools] > [Measurement].
Or, click [Measurement] on the toolbar.
The [Measurement] dialog is displayed.
2. Select the measurement method.
• [Two Entities]
• [Single Entity]
• [Entity and Point]
• [Three Point Angle]
• [Two Points and Center Angle]
266
Using the Functions on Models
1. To calculate the volume/area of a CAD model, click [View Model] on the toolbar.
To calculate the volume/area of a mesh model, click [View Mesh] or [View Mesh
Geometry] on the toolbar.
MEMO When you click elements or element faces included in the sketch (or part) on the graphics
window while [View Model/Mesh] is selected in Geometry Editor, those elements or element
faces may not be highlighted.
2. For JMAG-Designer, from the menu bar, select [View] > [Volume/Area Calculation].
For Geometry Editor, from the menu bar, select [Tools] > [Volume/Area Calculation].
Or, click [Volume/Area Calculation] on the toolbar.
267
JMAG Version 22.2 User's Manual
Operations
JMAG-Designer:
• To calculate the volume of a 3D part or the area of a 2D part:
Click [Select Part] on the toolbar to select a part, then click the part in the graphics win-
dow.
• To calculate the area of a 3D part:
Click [Select Face] on the toolbar to select a face, then click the face in the graphics win-
dow.
• To calculate the volume of a 3D element or the area of a 2D element:
Click [Select Element] on the toolbar to select an element, then click the element in the
graphics window.
• To calculate the area of a 3D element face:
Click [Select Element Face] on the toolbar to select an element face, then click the ele-
ment face in the graphics window.
Geometry Editor:
• To calculate the volume of a solid, or the area of a region, shell, or solid face:
Click [Geometry Select] on the toolbar to select a geometry, then click the solid or region
in the graphics window.
• To calculate the volume of a 3D element or the area of a 2D element:
Click [Element Select] on the toolbar to select an element, then click the element in the
graphics window.
• To calculate the volume of a 3D mesh block or the area of a 2D mesh block:
Click [Mesh Block Select] on the toolbar to select a mesh block, then click the mesh block
in the graphics window.
• To calculate the area of a 3D element face or a 2D element:
Click [Element Face Select] on the toolbar to select an element face, then click the ele-
ment face in the graphics window.
MEMO To select multiple parts or elements, hold down the [Shift] key on the keyboard and click
the parts or elements to be selected.
MEMO To deselect some of the selected parts or elements, hold down the [Shift] key on the key-
board and click the parts or elements to be deselected.
MEMO To clear the entire selection of parts or elements, click an open space in the graphics window.
268
Using the Functions on Models
MEMO Volume and area can also be calculated using the vol function and the area function of the
user component function in JMAG-Designer. For details on the user component function, see “Cre-
ating Custom Results by Applying Expressions to Analysis Results” on page 522.
269
JMAG Version 22.2 User's Manual
Operations
270
Using the Functions on Models
1. In the [Project Manager] tree, right-click a model and select [Extend Model To 3D].
2. In the [Extend Model To 3D] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
The geometry is extended and a new model is added under [Assembly] in the [Project Manager]
tree.
MEMO The process is run on the Geometry Editor when extending to a solid model.
A message to establish a link is first displayed when there is no link with the Geometry Editor when
extending to a solid model. Click [OK] to start the Geometry Editor.
MEMO The process is run in JMAG-Designer when extending to a mesh model.
271
JMAG Version 22.2 User's Manual
Operations
1. If necessary, display either of contour plots, vector plots, or flux lines in the graphics
window.
See the following pages:
• “Displaying Results Contour Plots” on page 496
• “Displaying Results Vector Plots, Tensor Plots” on page 498
• “Displaying Flux Lines” on page 500.
2. Set the image size.
i. From the menu bar, select [File] > [Image Setup].
ii. In the [Image Setup] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [Save].
3. Export the model image as an image file.
i. From the menu bar, select [File] > [Export Image].
ii. In the [Export Image] dialog, specify the file name, type, and place to export.
iii. Click [Save].
272
Using the Functions on Models
1. If necessary, display either of contour plots or flux lines in the graphics window.
See the following pages:
• “Displaying Results Contour Plots” on page 496
• “Displaying Flux Lines” on page 500.
MEMO The vector plot cannot be saved to the Hoops file.
1. If necessary, display either of contour plots, vector plots, or flux lines in the graphics
window.
See the following pages:
• “Displaying Results Contour Plots” on page 496
• “Displaying Results Vector Plots, Tensor Plots” on page 498
• “Displaying Flux Lines” on page 500.
2. Print the model image as an image file.
i. Select [File] > [Print] from the menu bar.
ii. In the [Print] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [Print].
273
JMAG Version 22.2 User's Manual
Operations
274
Study Operations
Creating Analysis Studies
277
JMAG Version 22.2 User's Manual
Operations
278
Creating Analysis Studies
Studies that are not active (not selected) can not be edited when there are multiple studies in the
[Project Manager] tree.
279
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, right-click the 3D model study to create the section analy-
sis study.
2. Select [New Section Study].
3. In the [Create Section Study] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
MEMO Settings that cannot be inherited from a study using a 3D model to a section analysis study
are deleted. The deleted settings are output to a message.
5. In the [Section] setting panel, define the cross section to be used in the section analysis
study.
For details on parameters, see “Parameter Explanation Edition”.
6. Click [OK].
280
Creating Analysis Studies
1. In the [Project Manager] tree, right-click the magnetic field analysis study.
2. Select [New Loss Study].
In an iron loss analysis study, Iron Loss conditions are set by default. If the magnetic field analysis
selected in step 1 has Iron Loss conditions, the Iron Loss conditions in the iron loss study inherit
those settings.
MEMO When the iron loss analysis study is selected in the [Project Manager] tree, the linked mag-
netic field analysis study is also selected, and vice versa.
281
JMAG Version 22.2 User's Manual
Operations
Duplicating Studies
• Duplicate Studies within the Same Models (page 282)
• Duplicate Studies Between Differing Models (page 282)
282
Creating Analysis Studies
283
JMAG Version 22.2 User's Manual
Operations
284
Managing Studies
This chapter explains the procedure of the operation related to the study.
285
JMAG Version 22.2 User's Manual
Operations
MEMO The [Study Properties] dialog can also be opened by clicking the shortcut icon .
3. Click the navigation bar icon.
Clicking each icon displays a parameter setting panel.
The displayed parameters will differ depending on the analysis type. For details, see “Parameter
Explanation Edition.”
286
Managing Studies
MEMO A JCF file cannot be exported from an iron loss analysis study or transformer analysis study.
MEMO When the following functions are used in study, the mesh data JCF file cannot be exported:
• Adaptive Mesh
• [Generate Mesh at Each Step] in the [Mesh Properties] dialog (patch mesh function)
• Layered Mesh
• Multi-Layer Coating
• Extended Slide (used until V.18.0)
• Morphing
• Eccentricity function for Rotation Motion condition in magnetic field analysis
• [Use Strain Region] function of Residual Strain condition in magnetic field analysis and iron loss anal-
ysis
• Section analysis study
To perform preprocessing when exporting a geometry data JCF file, perform the following oper-
ations.
i. In the [Project Manager] tree, right-click the study.
ii. Select [Export JCF] > [Preprocess Model When Exporting Geometry JCF] and remove
the check mark on the left side of this command.
If the geometry JCF file is exported with the check mark removed in [Preprocess Model
When Exporting Geometry JCF], preprocessing will not be performed.
To check [Preprocess Model When Exporting Geometry JCF], select [Preprocess Model
When Exporting Geometry JCF] again.
287
JMAG Version 22.2 User's Manual
Operations
288
Managing Studies
289
JMAG Version 22.2 User's Manual
Operations
1. Export a JCF file in advance for the study that is set to be merged.
The model dimension (3D, 2D, axisymmetric) and type ((solid/region), mesh) need to be con-
sistent for the JCF file exported here and the study to be merged.
For details about exporting JCF files, see “Exporting Studies to JCF Files” on page 287.
2. In the [Project Manager] tree, right-click the study.
3. Select [Merge JCF].
4. In the [Merge JCF] dialog, specify the JCF file in step 1 from the list.
5. Click [Open].
A new model and study is added in the [Project Manager] tree. The information for the geome-
try, material, condition, included in the JCF file selected in step 4. is added to the study.
290
Managing Studies
Errors
If an error occurs, correct the analysis model as the message instructs. Errors are output in the fol-
lowing cases:
• Parameters set in models and geometry cause mesh generation to fail
• Materials and conditions are set incorrectly, causing the analysis to fail
• Some irregularity within the program occurs
Warnings
If a warning is displayed, evaluate the effect that the area pertaining to the error message has on the
analysis results. Make corrections to the model if it can be determined that the effect is large.
If a warning during mesh generation is displayed, verify the generated mesh as well as the analysis
results. When noticeable deviations occur in magnetic flux density and current density distribution,
generate the mesh again.
Warnings are output in the following cases:
• The program makes changes to some parameters during mesh generation:
For details on creating geometry suitable for analysis, see “Parameter Explanation Edition”.
• The program performs corrections due to a value being referenced which exceeded the set param-
eter range during a calculation.
291
JMAG Version 22.2 User's Manual
Operations
292
Material Settings
Material Database Operations
295
JMAG Version 22.2 User's Manual
Operations
1. Select and right-click the [Custom Materials] folder (or a sub folder) from the material
list in [Toolbox].
2. Select [Create New].
3. In the [Material Editor] dialog, enter the basic information of material.
• [Name]
• [Manufacturer]
• [Category]
4. Set properties for each material.
• [Magnetic Properties]
• [Electric Properties]
• [Mechanical Properties]
• [Thermal Properties]
• [Loss]
The property values used depend on the type of analysis. The material should only have the
property values required for the analysis to be performed.
Material properties that are available for each type of analysis are listed in the following table.
Properties indicated with a circle need to be set for each analysis.
MAG: magnetic field analysis, LS: iron loss analysis, HT: thermal analysis,
DS: structural analysis, EL: electric field analysis, HS: thermal stress analysis
MAG LS HT DS EL HS
Magnetic Properties O O*1 X X X X
296
Material Database Operations
MAG LS HT DS EL HS
Isotropic/ Anisotropic, Shear modulus,
Poisson's ratio, Young's modulus O*4 X X O X O
297
JMAG Version 22.2 User's Manual
Operations
1. When exporting the entire custom materials into one file, in the material list, right-click
the [Custom Materials] folder and select [Export All Materials].
When exporting only one material from [Custom Materials], right-click a material dis-
played in the lower hierarchy of the [Custom Materials] folder, and select [Export].
2. In the [Export all materials] or [Export material] dialog, set a file name and destination.
3. Click [Save].
298
Material Database Operations
299
JMAG Version 22.2 User's Manual
Operations
Notes
• Powercore Explorer is a tool supplied by ThyssenKrupp Co. only to loyal customers. Please con-
tact ThyssenKruopp Co. if you are considering of using the software.
• Material data output from PowerCore Explorer contains the following information. This infor-
mation can be confirmed in the Material Editor of JMAG-Designer.
• B-H Curve (magnetic properties)
• Loss Data (iron loss properties):
Files exported from PowerCore Explorer uses W/kg for units of loss. The unit is converted to
W/m3 when the file has been imported to JMAG-Designer.
• Expire Date
• Comment
• Density
• Temperature
Procedure
300
Material Database Operations
1. Obtain the data from EMERF, and then install the data in your machine.
For information about how to obtain and install the data, contact EMERF at: https://www.auto-
mate.org/a3-content/emerf-foundation.
MEMO The Internet address of EMERF provided here is as of December 2022. The address is sub-
ject to change.
2. Open the Excel macro that is required to register the EMERF material database (LSTE).
The Excel macro is in the following folder:
(JMAG installation folder)\sample\scripts\MaterialDataConverter.xls
6. Click next to the [Output directory], and then specify the folder to save the magnetic
properties file (.hb) and iron loss file (.iron) that are exported by clicking [Export] in step
8.
The default directory is:
C:\Users\JMAG-Designer\Scripts\Sample\Material
7. Click [OK].
8. Click [Export].
A material data file that can be imported to JMAG-Designer is created based on the material data
file (.xls) provided by EMERF.
9. Click [Resister].
The material data file exported in step 8 is imported to JMAG-Designer.
The material data imported to JMAG-Designer is added to [Magnetic Steel Sheet] or [Soft Mag-
netic Composite] under [Soft Magnetic Material] in the [Materials] list.
The procedure to assign these materials to a part is the same for any other materials.
MEMO The security level setting is necessary in Microsoft Excel for the correct operation of the Excel
macro. However, the change made for the security level setting of the Excel macro may harm your
301
JMAG Version 22.2 User's Manual
Operations
machine. The proper settings are required by complying with your company's or organization's security
policy.
MEMO If multiple magnetic properties data or iron loss properties data are included in the material data
file (.xls) of EMERF, each data is imported as different material data.
302
Material Database Operations
Editing Materials
Editing custom materials and user magnetized magnets.
1. For custom materials, click the [Custom Materials] folder from the material list in [Tool-
box].
For user magnetized magnets, click the [User Magnetization] folder from the material
list in [Toolbox].
The material data that is registered as custom materials or user magnetized magnets are listed.
2. Right-click the material to edit.
3. Select [Edit].
The [Material Editor] dialog is displayed.
1. Double-click the material listed under [Materials] in the [Project Manager] tree.
The [Material Editor] dialog is displayed.
MEMO The material can also be edited if you right-click the material listed under [Materials] in the
[Project Manager] tree.
Deleting Materials
Custom materials or user magnetized magnets can be deleted.
1. Click the [Custom Materials] folder in the materials list of [Toolbox] for custom materi-
als.
Click the [User Magnetization] folder in the material list of [Toolbox] for user magne-
tized magnets.
Material data registered as custom materials or user magnetized magnet is displayed.
2. Select and right-click the material to delete.
3. Select [Delete].
The selected material is deleted from the [Custom Materials] folder or the [User Magnetization]
folder.
303
JMAG Version 22.2 User's Manual
Operations
304
Material Database Operations
305
JMAG Version 22.2 User's Manual
Operations
1. Select and right-click the [Custom Materials] folder and the [User Magnetization] folder
from the material list in [Toolbox].
2. Select [Create New Folder].
3. In the [Create Folder] dialog, specify a folder name in the [Folder Name] box.
4. Click [OK].
A sub folder is created in either the [Custom Materials] folder or the [User Magnetization]
folder.
MEMO The number of hierarchies that can be created in a sub folder of the [Custom Materials] or
the [User Magnetization] folder is five.
306
Material Database Operations
When closing multiple instances of JMAG-Designer of the same version simultaneously, the
changes saved in the JMAG-Designer custom material database closed last will overwrite the JMAG-
Designer material database that were closed earlier.
With the following procedures, each custom material of JMAG-Designer (1) and JMAG-Designer
(2) which were simultaneously launched can be merged in a material data file and synced.
1. Right-click the [Custom Materials] folder in the material list of [Toolbox] of JMAG-
Designer (1), to select [Synchronize Material Database File] from the menu.
The [Synchronize Materials] dialog notifying the changes in the custom material of JMAG-
Designer (1) have been saved to the material database file will be displayed.
2. Use the same procedure for JMAG-Designer (2) and select [Synchronize Material Data-
base File].
The material database file will be loaded and the [Synchronize Materials] dialog notifying that
the custom materials have been updated in JMAG-Designer (2) will be displayed. If the update
will delete custom materials, a dialog confirming the delete will be displayed.
MEMO Synchronization function of material database file does not support the undo function.
MEMO Materials in the material database file that will be synced are the custom materials and the user
magnetized magnets.
307
JMAG Version 22.2 User's Manual
Operations
308
Applying Materials to Parts
This chapter explains the procedures related to applying materials from the material database to a part.
309
JMAG Version 22.2 User's Manual
Operations
310
Applying Materials to Parts
Selecting Materials
Materials can be selected from the [Materials] list in [Toolbox] of JMAG-Designer. The following
procedure is used to search for specific materials.
• Search for Materials (page 311)
• Select a Categories and Display Materials (page 311)
MEMO Branching hierarchies and collapsing hierarchies can be set by using the arrow keys on the key-
board.
The following categories are available:
• [Temporary]:
If a material used in the project that is loaded has not been added to the material database, the
material is added to the [Temporary] folder.
To use a material in the [Temporary] folder for another project, move the material to the [Cus-
tom Materials] folder.
• [Bookmarks]:
The bookmarked materials are listed.
For how to add a material to the [Bookmarks] folder, see“Bookmarking” on page 313
• [Custom Materials]:
The materials that are created or moved from the [Temporary] folder are listed.
• [Ambient]:
The material “Air” is displayed.
• [Permanent Magnet]:
Sintered NdFeB or ferrite magnets are displayed.
311
JMAG Version 22.2 User's Manual
Operations
• [User Magnetization]:
user magnetized magnet outputted after running a magnetization analysis is displayed.
• [Soft Magnetic Material]
Materials such as magnetic steel sheet and soft magnetic composite are displayed.
• [Conductor]:
Reference materials provided by JSOL such as aluminum and copper are displayed.
• [Insulation]:
Plastic materials are displayed.
MEMO By mousing over each material data displayed in the material tree, a description of each material
data is displayed. When materials have no description set, nothing is shown.
MEMO Material data such as electric properties and thermal properties that are provided by manufac-
turers of materials cannot be modified. However, electric properties and thermal properties can be modi-
fied if they are duplicated (some parameters cannot be modified). For details about duplicating materials,
see “Duplicate Existing Materials” on page 298.
MEMO For detailed information about the materials provided by manufacturers, contact the manufac-
turer of the material. See “Parameter Explanation Edition” for contact information on each manufacturer
of materials.
312
Applying Materials to Parts
Bookmarking
The materials that are often used can be bookmarked. The bookmark feature improves the conve-
nience of users.
• Bookmark a Material (page 313)
• Remove a Material from Bookmarks (page 313)
MEMO Adding or deleting materials to or from the [Bookmark] folder does not affect the material data-
base.
Bookmark a Material
1. Right-click a material to bookmark in the [Materials] list.
MEMO A material to bookmark can be selected from the following locations:
• The material list under [Parts] in the [Project Manager] tree
• The material list under [Materials] in the [Project Manager] tree
2. Select [Add to Bookmarks].
The selected material is added to the [Bookmarks] folder.
3. Check that the selected material is added to the [Bookmarks] folder in the [Materials]
list. Click the + mark at the [Bookmarks] folder.
The added material is displayed under [Bookmarks].
313
JMAG Version 22.2 User's Manual
Operations
314
Applying Materials to Parts
315
JMAG Version 22.2 User's Manual
Operations
316
Applying Materials to Parts
317
JMAG Version 22.2 User's Manual
Operations
2. Check that there are no elements in more than one element group.
An element cannot be added to more than one element group that is treated as a part.
i. In the [Project Manager] tree, under [Mesh], right-click [Group].
ii. Select [Element Parts Duplication Check].
iii. In the [Element Parts Duplication Check] dialog, click [Check].
When the check is completed, the IDs for elements belonging to multiple element groups
and those element group names are displayed in a table. Clicking an element ID highlights
the element with that ID in the graphics window.
Check the table, and if necessary, correct the element group settings.
3. Apply a material to the element group displayed under [Parts].
See the “Applying Materials to Parts” on page 314.
318
Applying Materials to Parts
Changing Materials
The material assigned for the part can be changed.
MEMO For studies in which results have already been exported, the study is locked when attempting to
modify the material. See “Editing Studies with Results Included” on page 283.
1. Press and drag a new material from the [Materials] list to the part where a material is
already set.
2. Release the mouse button.
The [Material] setting panel or [Permanent Magnet] setting panel is displayed.
3. Click [OK].
The new material assigned for the part is displayed in the [Project Manager] tree.
1. Use Ctrl-Click to select a material under [Material] in the [Project Manager] tree.
2. Drag the selected material while holding down a left button of the mouse and the [Ctrl]
on the keyboard.
An arrow is displayed on the lower right of the pointer.
3. Drop the material into another study in the tree.
The selected material is duplicated where it is dropped.
319
JMAG Version 22.2 User's Manual
Operations
320
Setting Magnet Magnetization Distributions
This chapter explains the procedure for setting the magnetization distribution of a magnet. In JMAG, the mag-
netization distribution of a magnet can be defined in the following way.
321
JMAG Version 22.2 User's Manual
Operations
322
Setting Magnet Magnetization Distributions
323
JMAG Version 22.2 User's Manual
Operations
324
Setting Magnet Magnetization Distributions
325
JMAG Version 22.2 User's Manual
Operations
vii.Repeat steps iii - vi. to register as many tables needed but no more.
Make sure the number of coordinates (number of rows and number of columns) at each
height (ZI) are the same.
To edit an existing table, select it from [Table].
To delete a table, select it in [Table], then click [Delete].
viii.Click [OK].
9. If necessary, set the magnetic properties correction values.
The method of creating the [Residual Flux Density (Distribution)] table or the [Coercive Force
(Distribution)] table is the same as for the magnetization direction table.
10.Set parameters such as [Electric Properties].
11.Click [OK] on the [Permanent Magnet] setting panel.
12.Set the coercive force output.
With this setting, you can check the coercive force when using any magnetization pattern.
i. In the [Project Manager] tree, right-click [Study] and select [Properties].
ii. In the [Study Properties] dialog, select [Show Advanced Settings].
iii. Click [Output] in the navigation bar to open the [Output Control] setting panel.
iv. Select [Coercive Force (Normalized)] in [Output Results].
v. Click [OK].
326
Setting Magnet Magnetization Distributions
• Example-2: Accounting for self-demagnetization when taking the magnet out into the air after
magnetization (multiple magnetization)
Notes
Magnetization analysis
• Eddy currents can be accounted for in magnetization analysis.
• Multi Slice conditions cannot be used in magnetization analysis.
327
JMAG Version 22.2 User's Manual
Operations
• Magnetic field analysis studies for magnetization analysis cannot be coupled with another analy-
sis study.
• In magnetization analysis, even if multiple magnetization materials are used, only one user mag-
netized magnet is created. The magnetization distribution data of all parts that are applied with
magnetization material are included in one user magnetized magnet.
Even if a magnetization analysis that uses both magnetization material and user magnetized
material enabled with the [Treat as Magnetization Material] option, only one user magnetized
magnet is created.
• The orientation of the magnetization material can be defined using magnetization patterns or
the results of magnetic field analysis. A magnetic field analysis to obtain orientation data is called
“orientation analysis”.
• When [Account for Hysteresis During Magnetization] is selected, the magnetic hysteresis of the
magnetization material is accounted for in the analysis. For details on the movement of the oper-
ating point in this case, refer to the “Parameter Explanation Edition”.
Multiple magnetization
• The following settings are required when performing multiple magnetization on magnet mate-
rial:
• First magnetization analysis (use magnetization material):
Select [Account for Hysteresis During Magnetization] in the [Magnetization Material] setting
panel.
• Second and subsequent magnetization analysis (use the user magnetized magnet created in
the first magnetization analysis):
Select [Take Over Operating Point] and [Treat as Magnetization Material] in [Operating
Point Setting] of the [Magnetization Material] setting panel.
• In a magnetization analysis using user magnetized magnets enabled with the [Treat as Magnetiza-
tion Material] option, [Generate Mesh at Each Step] (patch mesh function) cannot be used.
328
Setting Magnet Magnetization Distributions
The following is an example. In analysis 1) and 2), the geometry and position of the green part must
match. In analysis 2), 3), and 4), the geometry of the green parts must match or must grow smaller
in each step.
Magnetization analysis
Preparation stage
• A magnetization material with anisotropy has an orientation. An orientation can be set either
using a magnetization pattern or referencing the orientation analysis results.
If referencing the results of an orientation analysis, an orientation analysis is necessary before a
magnetization analysis.
1. Prepare a model that includes the magnetizing coil or yoke that generates the magnetiz-
ing field and the parts to be magnetized.
2. Create a magnetic field analysis study.
3. Create a magnetization material in the Material Editor.
i. Select [Tools] > [Material Editor] from the JMAG-Designer menu bar to open the
[Material Editor] dialog.
ii. Enter a name for the magnetization material in [Name].
iii. Select [Magnetization] in [Material Type] in the [Magnetic Properties] tab.
iv. Set the property values of magnetization materials.
For details on parameters, see “Parameter Explanation Edition”.
v. Click [OK] to add the magnetization material to the material database.
4. Apply the created magnetization material to the part to be magnetized.
i. Click the [Materials] tab in [Toolbox].
329
JMAG Version 22.2 User's Manual
Operations
ii. Select the magnetization material you created from the [Custom Materials] folder
and drag and drop it onto the part to be magnetized.
There are other procedures for setting materials on parts. See “Applying Materials to Parts”
on page 309.
iii. Set the parameters in the [Magnetization Material] setting panel.
For details on parameters, see “Parameter Explanation Edition”.
When magnetizing magnetization materials multiple times, select [Account for Hysteresis
During Magnetization].
iv. Click [OK] to close the [Magnetization Material] setting panel.
5. Set the magnetization power supply using Current conditions and FEM Coil conditions.
6. Set other analysis conditions and materials, and/or generate mesh.
7. Run the magnetization analysis.
If a magnetization analysis is performed in the foreground, the user magnetized magnet will be
added to the [User Magnetization] folder in the [Materials] tab of JMAG-Designer's [Toolbox]
after the analysis.
• The user magnetized magnet contains magnetization distribution data calculated from the
magnetization magnetic field and magnetization properties of the magnetization material, as
well as magnet geometry information.
• The user magnetized magnet has the same name as the magnetization analysis study.
• The magnetization ratio of user magnetized magnets can be checked as an analysis result of a
magnetic field analysis study using them, but not as an analysis result of a magnetization anal-
ysis study.
8. If a magnetization analysis is performed in the background, import user magnetized
magnet into JMAG-Designer.
In the following cases, user magnetized magnets must be manually added to the [User Magneti-
zation] folder in the [Materials] tab of the [Toolbox]:
• When a magnetizing analysis is run in batch
• When a magnetization analysis study is run from JMAG-Scheduler
See “Import User Magnetized Magnets” on page 299.
9. If necessary, use the created user magnetized magnet and run magnetization analysis
once more.
When re-magnetizing the user magnetized magnet and updating the magnetization distribution
data, create the following settings in the [Magnetization Material] setting panel:
• Select [Take Over Operating Point] and [Treat as Magnetization Material] in [Operating
Point Setting].
• Select [Anisotropic] from [Permeability Type].
330
Setting Magnet Magnetization Distributions
331
JMAG Version 22.2 User's Manual
Operations
iv. Check that the first step is specified in the [Step Control] slider.
v. Click both [View Mesh Geometry] (or [View Mesh] ) and [Display Contour
Result] to display a contour plot of the magnetization ratio.
332
Using Superconductors
This chapter describes the procedure for conducting analysis with superconductor.
IMPORTANT Analyses using superconductors cannot be run from the GUI.
333
JMAG Version 22.2 User's Manual
Operations
Notes
• Superconductors can be used in a 3D transient analysis.
• [Successive Iteration] is used regardless of the settings of the nonlinear calculation method in an
analysis dealing with superconductors.
• [Allow Eddy Current] is used regardless of the settings of the method to account for the eddy
current in an analysis dealing with superconductors.
• Specify the element size for the superconductor to a similar size or half the size of skin depth.
The skin depth can be calculated from the maximum amount of electric conductivity, relative
permeability in a conductor, and the frequency from an input current.
The discontinuity unique to a superconductor may not be calculated, if the element size is too
small for skin depth. However, the calculation accuracy may decrease if the element size is too
large.
334
Using Superconductors
3. Confirm the data, and then export the FEM model to a JCF file.
Output a mesh model or a geometry model based on whether or not there is mesh.
4. Specify the characteristics of a superconductor in the JCF file from step 3, using the edit-
ing function (SimpleFHI) of a JCF file.
The characteristics of a superconductor cannot be set in the JMAG-Designer window, where the
editing function (SimpleFHI) for JCF files needs to be used.
The following procedure needs to be specified:
i. Set the Windows environment variable “PATH”.
For details about detailed setting methods of environment variables, see “Overview Edition”.
• Variable name: PATH
• Variable value: The full path of the installation folder of JMAG. When JMAG-Designer is
installed with the default settings, it will be “C:\Program Files\JMAG-Designer22.2.”
ii. Open a sample file (.xls) to specify settings for a superconductor.
The sample file is in the following folder.
(JMAG installation folder)\Tools\SimpleFHI\samples\ExcelVBA
The sample folder is installed in the following folder if JMAG-Designer is installed by default
settings.
C:\Program Files\JMAG-Designer22.2\Tools\SimpleFHI\samples\ExcelVBA
iii. Specify the path of the JCF file exported in step 3 in [Input JCF].
iv. Specify a parameter for the superconductor.
• Part ID:
Specify the part ID of the superconductor set in step 2.
MEMO The part ID in JMAG-Designer matches with the material ID in a JCF file. It should
be noted when editing JCF files using SimpleFHI.
335
JMAG Version 22.2 User's Manual
Operations
336
Analysis Condition Settings
Setting Analysis Conditions
This chapter describes the procedure for setting analysis conditions to the studies.
Sets the status of the analysis target (power, load/no-load, motion, boundary, and so on) and evaluation items
(torque, electromagnetic force, heat source, sound pressure, and so on) as conditions in the model.
339
JMAG Version 22.2 User's Manual
Operations
340
Setting Analysis Conditions
1. Right-click the [Parts] list of the setting panels for each condition, and select [Expand
Part Groups].
The [Parts] list display switches from a group to a part .
2. Remove parts without condition settings from the list.
341
JMAG Version 22.2 User's Manual
Operations
For example, parts A and B shown with the arrow in the diagram above, are both W-phase coils but
the current directions are different.
For this case, create a FEM Coil condition as a W-phase coil. Next, create two coil sets in the FEM
Coil condition and put parts A and B in different coil sets. Then, set different current directions for
each coil set.
The steps to set multiple groups for FEM coil conditions are explained below.
1. Click below the [Coils] list in the [FEM Coil] setting panel to add a coil set.
One coil set is registered in the [Coil] list by default.
Click to add a new coil set to the list.
Click to reduce coil sets, and click to change the order of the coil sets.
To set a new name for the coil set, move the mouse cursor over a coil set in the [Coil] list, right-
click, and select [Rename]. It becomes editable and a new name can be entered.
2. Select a coil set from the [Coil] list.
3. In the graphics window, click the coil to be put in the coil set selected in step two.
Parts are added to the [Parts per Coils] list.
4. Select the direction type, inflow/outflow face, and current direction for the coil set of
step two.
5. Repeat steps two to four, and specify the properties of each coil set and the parts that
belong to them.
342
Setting Analysis Conditions
1. In the [Project Manager] tree, under a study > [Conditions], right-click one of the FEM
Coil/Conductor conditions to group.
2. Select [Grouping].
3. In the [Condition Group Setting] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
Expanding created [Group (FEM Coil)] or [Group (FEM Conductor)] in the [Project Manager]
tree displays the FEM Coil/Conductor conditions included in the group.
• To edit each FEM Coil/Conductor condition in a group, expand [Group (FEM Coil)] or
[Group (FEM Conductor)] and edit each FEM Conductor condition.
• To ungroup, right-click [Group (FEM Coil)] or [Group (FEM Conductor)], and select
[Ungroup] from the menu. The group is cleared when using this procedure, but the FEM
Coil/Conductor condition belong to the group is kept.
• Right-click [Group (FEM Conductor)], and select [Delete All Conditions], when also delet-
ing the FEM Coil/Conductor condition belonging to a group.
Or, select the [Delete] key on the keyboard while selecting.
Group Multiple FEM Coil/Conductor Conditions That Are Created Based on One FEM Coil/
Conductor Condition
In the pattern condition creation function, when the center of FEM Coil/Conductor condition
parts specified in the [Reference Pattern] is moved by the angle specified in [Pitch], the FEM Coil/
Conductor condition is set for the part with the matching center.
MEMO Setting FEM Coil/Conductor conditions with identical settings in constant intervals in the
translation direction is not supported in cases.
343
JMAG Version 22.2 User's Manual
Operations
344
Setting Analysis Conditions
vii.Click [Connect].
The tables of conditions and linked components are updated.
viii.Click [OK].
345
JMAG Version 22.2 User's Manual
Operations
Create Sets
You can create part sets, face sets, edge sets, and vertex sets.
346
Setting Analysis Conditions
2. Click [Create Sets] below the list that manages the condition settings.
The [Create Set] dialog is displayed.
The parts, faces, edges, or vertices selected as the condition settings, are displayed in a list in the
[Create Set] dialog. Other sets in the list are not displayed. Mesh groups and air regions are also
not displayed.
MEMO To also display the parts, faces, edges, or vertices included in another set in the [Create Set]
dialog, before clicking [Create Sets] , in the list that manages condition settings right-click the set
and select [Convert to Entity].
3. Enter a set title in [Title].
The character string entered is displayed in the [Project Manager] tree and in the list that man-
ages the condition settings.
4. Check the checkboxes for parts, faces, edges, or vertices to include in the set.
Clicking on a part, face, edge, or vertex displayed in the list highlights the corresponding part,
face, edge, or vertex in the graphics window.
5. Click [OK].
The parts, faces, edges, or vertices that were displayed in the list that manages the condition set-
tings are replaced with a set.
6. Click [OK] in the condition setting panel.
The new set is added under [Set] in the [Project Manager] tree.
MEMO To display the name of a part, face, edge, or vertex instead of the set name, in the list that
manages the condition settings select the set from the list and select [Convert to Entity].
2. Click [Select Sets] or [Select Sets and Mesh Groups] below the list that manages the
condition settings.
Or, right-click the list and select [Select Sets] or [Select Sets and Mesh Groups].
The [Select] dialog is displayed. The set or mesh group that can be selected as a setting for a con-
dition is displayed in this dialog list.
3. Select the settings to specify the condition.
Multiple sets can be selected.
4. Click [OK] in the [Select] dialog.
The set that is selected is added to the settings.
5. Select the set from the list and click [Delete] when deleting a set from the list.
Or, right-click a set in the dialog for the list, and select [Delete].
Right-click in the dialog of the list, and select [Delete All] when deleting the entire set or mesh
group from the settings list.
347
JMAG Version 22.2 User's Manual
Operations
348
Setting Analysis Conditions
2. Click [Select Sets and Mesh Groups] under the list managing the settings for the con-
ditions.
Or, right-click in the dialog, and select the [Select Sets and Mesh Groups].
349
JMAG Version 22.2 User's Manual
Operations
The [Select] dialog is displayed. The set or mesh group that can be selected as a setting for a con-
dition is displayed in this dialog list.
3. Select the checkbox of the mesh group to specify the condition.
Multiple mesh groups can be selected.
4. In the [Select] dialog, click [OK].
The mesh group that is selected is added to the settings.
5. Select a mesh group from the list and click [Delete] when deleting a mesh group from
the list.
Or, right-click in the mesh group in the dialog for the list, and select [Delete].
Right-click in the dialog of the list, and select [Delete All] when deleting the entire set or mesh
group from the settings list.
350
Setting Analysis Conditions
4. Select the elements, elements, elements faces, element edges, or nodes included in the
mesh group of the graphics window.
The number of elements, elements faces, element edges, or nodes that are selected is displayed in
the selection panel.
MEMO Select the applicable element while pressing the [Ctrl] key on the keyboard when clearing a
partial section of an element.
5. In the selection panel, Click [OK].
A new component for a mesh group is created.
Elements, element faces, element edges, or nodes under a group are displayed in the graphics
window when selecting a mesh group from the list managing the condition settings.
Select Elements, Element Faces, Element Edges, and Nodes as Groups in Mesh
Groups
Elements, element faces, element edges, or nodes that are under a group can be selected one at a
time.
351
JMAG Version 22.2 User's Manual
Operations
352
Circuit Settings
Setting Circuits
Electric circuit
355
JMAG Version 22.2 User's Manual
Operations
356
Setting Circuits
JMAG-Designer
Circuit Editor
1. From menu bar in the Circuit Editor, select [File] > [Import Circuit].
Or click [Import Circuit] on the toolbar in the Circuit Editor.
2. In the [Open File] dialog, specify the circuit information file (.jcir, .cct).
Both of .jcir and .cct can be exported from JMAG-Designer or Circuit Editor.
3. Click [Open].
Exiting circuit is replaced with the circuit imported from the file.
357
JMAG Version 22.2 User's Manual
Operations
JMAG-Designer
1. In the [Project Manager] tree, right-click a model and select [Export Circuit].
2. In the [Circuit Export Setting] dialog, select the format version of the exported circuit
information file.
MEMO To save the CCT file, select the current version.
3. Click [OK].
4. In the [Export Circuit] dialog, specify the file name, type, and place to export.
• JCIR files cannot be read in JMAG-Studio. To pass circuit data to a JMAG-Studio project,
export the file as a CCT file.
• CCT files do not contain unit information. To export a file containing unit information,
export the circuit data as a JCIR file.
5. Click [Save].
Circuit Editor
1. From the menu bar in the Circuit Editor, select [File] > [Export Circuit].
1. In the [Export Circuit Setting] dialog, from [Save Version], select the format version of
the circuit information file to be exported.
MEMO To save the CCT file, select the current version.
2. Click [OK].
3. In the [Save As] dialog, specify the file name, type, and place to export.
• JCIR files cannot be read in JMAG-Studio. To pass circuit data to a JMAG-Studio project,
export the file as a CCT file.
• CCT files do not contain unit information. To export a file containing unit information,
export the circuit data as a JCIR file.
4. Click [Save].
358
Setting Circuits
359
JMAG Version 22.2 User's Manual
Operations
Adding
Perform the following procedure from the Circuit Editor.
• Click a component toolbar button (e.g.:[Resistor] ), and then click anywhere in the Edit Cir-
cuit window.
MEMO For some components, the setting panel for the component properties or number of input/out-
put ports is displayed after placing the component.
MEMO Perform one of the following operation to finish arranging the component.
• Right-click anywhere in the edit circuit window.
• Click the component toolbar button (e.g.:[Resistor] ) that is selected.
• Press the [Esc] key on the keyboard.
Deleting
Perform one of the following procedures from the Circuit Editor.
• Right-click the component or wire, and select [Delete].
• Select the component or wire, and then press the [Delete] key on the keyboard.
• Right-click a component in the [Circuit Manager] tree, and select [Delete].
MEMO Multiple components can be deleted at once. To do this, select multiple components from the
[Circuit Manager] tree while holding down the [Ctrl] key or [Shift] keys on the keyboard, and then
right-click to select [Delete].
360
Setting Circuits
Wiring
Connect two terminals in a circuit component with a wire.
MEMO Wires are divided based on the following rules.
• If a wire is placed so it overlaps with a terminal, the wire is divided at the position of the terminal.
• If a terminal is placed on top of a wire, the wire is divided at the position of the terminal.
• If two angles of a wire bent in an L-shape overlap, the angle is shared as a terminal, so the wire is
divided at the position of the terminal.
361
JMAG Version 22.2 User's Manual
Operations
• If the angles of two L-shape wire do not overlap on a wire, the wire is not divided. However, if the cir-
cuit data with the angles on a wire is exported as a CCT file, the wire is divided by the position of the
angle.
The following is an example of placing a wire. When terminals A, B, C and D are connected
with wires as in the diagram left below, perform the following operations.
i. Click terminal A.
Start the wire placement.
ii. Move the cursor to the right.
Wires not yet placed are displayed with a dotted line.
iii. Move the mouse to the same position shown in the diagram below, and click the
mouse button while holding the [Shift] key.
362
Setting Circuits
A new terminal is created at the position of the cursor, and the wire connecting from terminal
A to the newly created terminal is finalized.
iv. Repeat the operation to move the mouse to the location to place the terminal and
click while holding down the [Shift] key.
The location enclosed in a dotted line in the diagram below is the location the terminal is
placed.
v. Lastly, move the cursor to the position of terminal C, and then click the mouse but-
ton.
Terminals A, B, and C are connected with a wire, and wire placement ends.
MEMO In this example, the procedure shows wire placement by connecting terminals A, B, and
C in succession, but they can also be connected with a wire two terminals at a time.
3. Exit the wiring mode.
i. Click [Wire] or [Select] on the toolbar.
MEMO It is also possible to end the wiring mode by clicking of the right mouse button.
4. Delete the unnecessary wire.
i. Right-click a wire, and select [Delete].
Or select a wire, and then press the [Delete] key on the keyboard.
363
JMAG Version 22.2 User's Manual
Operations
Recreating Circuits
Clear the existing circuit and recreate.
1. From the menu bar in the Circuit Editor, select [File] > [New Circuit].
Or, click [New Circuit] on the toolbar.
364
Setting Circuits
365
JMAG Version 22.2 User's Manual
Operations
1. In the circuit diagram, right-click a component and select [Change Component Proper-
ties].
2. In the [Component Properties] dialog, select the component properties to apply to the
component, and then click [OK].
366
Setting Circuits
2. Connect the Left External Terminal component to the terminal to be used as the exter-
nal input terminal and connect the Right External Terminal component to the terminal
to be used as the external output terminal.
367
JMAG Version 22.2 User's Manual
Operations
1. In the [Libraries] tab of the [Tool Box], right-click the macro component or the folder
where the macro component is stored, and select [Export Circuit Libraries].
2. In the [Export Circuit Libraries] dialog, specify the save destination and name of the file,
and then click [Save].
1. In the [Libraries] tab of the [Tool Box], right-click the folder for adding the macro compo-
nent and select [Import Circuit Libraries].
2. In the [Import Circuit Libraries] dialog, specify the file and click [Open].
368
Setting Circuits
2. Double-click the circuit component of the sub circuit and set the properties of this com-
ponent.
3. Click [Back] to go back to the main circuit from the sub circuit.
4. Right-click the macro component to be edited and select [Add to Library] to add the
edited macro component to the library.
5. In the [Add to Library] dialog, specify the component name and folder to which the
component is to be added and click [OK].
1. To edit the sub circuit of the PWM macro component, right-click the macro component
to be edited and select [Make Sub Circuit Editable].
PWM macro component is the generic term for the following components:
• PWM Inverter
• PWM Signal Generator
• PWM Current Vector Control 3-phase modulation (3-phase, DQ)
• PWM Current Vector Control 3-phase modulation with JMAG-RT (3-phase, DQ)
• PWM Current Vector Control 3-phase modulation Third-harmonic Control (3-phase, DQ)
• PWM Current Vector Control 3-phase modulation Third-harmonic Control with JMAG-
RT (3-phase, DQ)
• PWM Current Vector Control 3-phase modulation Space Vector Control (3-phase, DQ)
• PWM Current Vector Control 3-phase modulation Space Vector Control with JMAG-RT (3-
phase, DQ)
• PWM Current Vector Control 2-phase modulation (3-phase, DQ)
• PWM Current Vector Control (3-phase, DQ)
• PWM Current Vector Control with JMAG-RT (3-phase, DQ)
369
JMAG Version 22.2 User's Manual
Operations
370
Setting Circuits
1. In the [Libraries] tab of the [Tool Box], right-click the circuit or the file where the circuit
is saved and select [Export Circuit Libraries].
2. In the [Export Circuit Libraries] dialog, specify the save destination and name of file, and
then click [Save].
1. In the [Libraries] tab of the [Tool Box], right-click the folder where the circuit is to be
added and select [Import Circuit Libraries].
371
JMAG Version 22.2 User's Manual
Operations
2. In the [Import Circuit Libraries] dialog, specify the file and click [Open].
372
Using JMAG-RT Models in Circuits
This chapter describes the procedure for running control circuit analyses using JMAG-RT models.
With JMAG-RT models, results calculated from JMAG FEM analyses are output in a file format (.rtt) for use
with circuit simulators. High-accuracy control circuit simulations can be run while accounting for motor charac-
teristics using these output RTT files. JMAG-RT models can be made using JMAG-RT or JMAG-Designer Effi-
ciency map analysis studies.
MEMO In addition to the method described here, there is another way to use the integration analysis study. See
“Executing Integration Analysis Studies” on page 715 for details.
MEMO For details on JMAG-RT and JMAG-Express, see “JMAG-Express, JMAG-RT, JMAG-RT Viewer Edition”.
373
JMAG Version 22.2 User's Manual
Operations
1. Create an FEM model in JMAG-Designer, and export an input JCF file for use with JMAG-
RT.
i. Start JMAG-Designer.
ii. Prepare a motor model, and create a study.
For induction motors, create a frequency analysis. For models other than induction motors,
create a transient analysis.
iii. Set materials, conditions, and study properties, and generate mesh.
Depending on the motor type, add an electric circuit. For details, see the explanation “JMAG-
Express, JMAG-RT, JMAG-RT Viewer Edition”.
374
Using JMAG-RT Models in Circuits
Coupling Control components are not required for circumstances similar to the left dia-
gram where FEA and control circuit analysis step widths are the same.
Coupling Control components are required for circumstances similar to the right diagram
where FEA and control circuit analysis steps widths differ.
Next, create a control circuit.
• Place JMAG-RT Model components, and link to the JMAG-RT model data file created in
step 2.
375
JMAG Version 22.2 User's Manual
Operations
• When transferring voltage values and current values obtained with JMAG-RT Model
components to FEM analyses, connect JMAG-RT Model component output terminals to
Control Voltage Source components or Control Current Source components.
• When transferring voltage values and current values obtained with electric current analy-
ses to JMAG-RT Model component input, connect Control Voltage Probe components or
Control Current Probe components to JMAG-RT Model component input terminals.
iv. Set materials, conditions, and study properties, and generate mesh.
If Coupling Control components are placed in a circuit, time interval widths set in the [Study
Properties] dialog [Step Control] tab are used as time step widths for control circuit calcula-
tions including JMAG-RT Model components.
4. Run the analysis.
See the following:
• “Running Analyses from JMAG-Designer” on page 415
• “Running Analyses from JMAG-Scheduler” on page 425
• “Running Analyses from the Command Line” on page 437
MEMO Transferring result files may take time if running calculations of several cases across a num-
ber of machines. Result file amounts and file numbers are reduced by configuring the following set-
tings under [Output] in the [Study Properties] dialog prior to running analysis. This can reduce the
time required to transfer and calculate the entire files themselves.
• Select [Output Table Results Only. (No Mesh will be Output)]
• Clear [Output Distribution Results] to prevent the output of unneeded physical quantities
5. Check the results.
When confirming control circuit analysis results with no control probe components placed, it is
necessary to manually load the control circuit analysis result file “Control_Circuit.jplot” into
JMAG-Designer.
376
Meshing
Generating Mesh with JMAG-Designer
379
JMAG Version 22.2 User's Manual
Operations
380
Generating Mesh with JMAG-Designer
[Parallel Process]:
This tab become active for magnetic field analysis, thermal analysis, structural analysis, elec-
tric field analysis, and thermal stress analysis. This tab does not become active for transformer
analysis. This tab allows you to specify the number of cores used during mesh generation on
machines that perform solid model mesh generation.
v. Click [OK].
5. Set the function used for mesh generation.
In addition to optional functions, there may be other settings required depending on the mesh
property settings.
For example, selecting [Extruded Mesh] or [Extruded Mesh (Automatic element size)] in
[Method] in the Mesh Properties dialog, the element size in the extrusion direction can be set.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select the options to use.
For details on how to use some of the functions, see “Using Options for Generating Mesh”
on page 388 and “Using Options for Editing Mesh Models” on page 400.
381
JMAG Version 22.2 User's Manual
Operations
• When creating a slide mesh in a 3D model, the element size in the axial or width direction
of the slide surface can be specified.
• When creating an extruded mesh, the parts for creating an extruded mesh and the direc-
tion to adjust the number of subdivided elements when generating the extruded mesh can
be specified.
• When using the extended slide function, the creation region of the slide mesh and the
number of divisions in the circumferential direction can be specified.
iii. Set parameters on the setting panel for each function.
iv. Click [OK].
The functions set are added under [Mesh] in the [Project Manager] tree. When right-clicking
a function, [Edit] or [Delete] is available.
6. Generate or preview a mesh.
Depending on the conditions and functions used, mesh generation may be performed during
analysis, so mesh cannot be generated on JMAG-Designer, and only mesh preview is possible.
MEMO
MEMO Mesh generation will be performed during analysis when the following functions or condi-
tions are used:
• Adaptive Mesh
• [Generate Mesh at Each Step] in the [Mesh Properties] dialog (patch mesh function)
• Layered Mesh
• Multi-Layer Coating
• Extended Slide (used until V.18.0)
• Morphing
• Eccentricity function for Rotation Motion condition in magnetic field analysis
• [Use Strain Region] function of Residual Strain condition in magnetic field analysis and iron loss
analysis
• Section analysis study
MEMO When [Generate Mesh at Each Step] is used, the mesh previewed and the mesh used in the
analysis are different. This is because the air region mesh generated at each analysis step by [Generate
Mesh at Each Step] can not be previewed.
382
Generating Mesh with JMAG-Designer
MEMO If executing mesh generation of multiple cases is desired, use preinstalled script [Mesh
Generation for All Cases].
When the mesh generation is completed, [View Mesh] is displayed, and the mesh model is
displayed in the graphics window.
If mesh generation fails, an error or warning message is displayed under [Report] in the [Proj-
ect Manager] tree. Double click to check the details of the message. If the cause of the error is
from the geometry of the model, at the same time the place that caused the error is high-
lighted.
In accordance with the message, take corrective action.
• In the case of an error, modify the geometry or parameters and regenerate the mesh.
If the memory shortage error occurs, please consider measures such as mesh generation on
a machine with more memory, or increasing the element size to reduce the number of ele-
ments.
• In the case of a warning, check whether the places the message pertains to have an effect
on the analysis results.
If it can be determined that the effect is large, modify the geometry or parameters in the
model before mesh generation and regenerate the mesh.
If it can be determined that the influence is great, modify the shape or parameter in the
model before mesh generation and regenerate the mesh. However, if a considerable differ-
ence in the magnetic flux density or current density distribution is seen in the analysis
results, modify the geometry or parameters, regenerate the mesh, and re-execute the anal-
ysis.
383
JMAG Version 22.2 User's Manual
Operations
384
Generating Mesh with JMAG-Designer
385
JMAG Version 22.2 User's Manual
Operations
For the procedure after this step, see Step 5 and onwards under “Generating Mesh in Solid Mod-
els or Region Models” on page 380.
MEMO Using the local remeshing function, the mesh can partially be recreated.
386
Generating Mesh with JMAG-Designer
387
JMAG Version 22.2 User's Manual
Operations
388
Generating Mesh with JMAG-Designer
Use the Slide Mesh Function and the Standard Mesh Function ([Extended Slide
Plane])
When the Extended Slide function is used, a slide mesh is generated only in a specified region, and a
standard mesh is generated elsewhere.
Unlike the Extended Slide function provided up to and including Version 18, the current Extended
Slide function can be used in Translation Motion models. There is a great advantage in terms of
computation times compared to the function provided up to and including Version 18.
389
JMAG Version 22.2 User's Manual
Operations
Use the Slide Mesh Function and the Function That Generates a Mesh at Each
Analysis Step ([Extended Slide Plane (Used until V.18.0)])
When using the [Extended Slide Plane (Used until V.18.0)] function, a slide mesh can be generated
only within a specified region, while in other regions meshes can be generated at each analysis step.
Since systematic grid meshes are generated in the gap between the rotor and the stator, calculation
accuracy is more easily obtained than when only the mesh generation function is used at each analy-
sis step.
390
Generating Mesh with JMAG-Designer
4. Specify the creation region for the rotation slide mesh and the number of division in the
circumferential direction.
The extrusion direction is the same as the Motion condition axial direction.
MEMO If [Standard Meshing] or [Generate Mesh at Each Step] is selected and the extrusion direc-
tion is not specified, JMAG will automatically determine the extrusion direction from the model
geometry.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Extended Slide (Rotation)].
iii. In the [Extended Slide (Rotation)] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Extended Slide (Rotation)] is added under [Solid Model] > [Study] > [Mesh] in the [Project
Manager] tree. Right-clicking [Extended Slide (Rotation)] displays [Edit] or [Delete] in a
menu.
5. Preview the mesh.
When the [Extended Slide Plane (Used until V.18.0)] function is set in the study, the menu dis-
played when right-clicking [Mesh] under [Study] in the [Project Manager] tree is [Preview]
instead of [Generate].
See the description in “Generating Mesh in Solid Models or Region Models” on page 380.
MEMO An extruded mesh cannot be used in combination with a translation slide mesh.
391
JMAG Version 22.2 User's Manual
Operations
392
Generating Mesh with JMAG-Designer
When using an extruded mesh and a standard mesh (or a mesh generated at each
analysis step):
393
JMAG Version 22.2 User's Manual
Operations
1. If necessary, calculate the theoretical value of the skin depth in order to determine the
region in which to generate a mesh taking into account the skin effect.
In JMAG, it is recommended to enter a value twice the theoretical value of the skin depth and
less than half of the element size for the whole model for the region for generating the mesh tak-
ing into account the skin effect.
The theoretical value of the skin depth can be calculated from the following equation.
2 -
δ = -----------
ωσμ
δ : skin depth (m), ω = 2πf : angular frequency ( f : frequency (Hz)), σ : electrical conductiv-
ity (1/ohm m), μ : permeability (H/m)
2. Set the Skin Depth function.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Add Size Control] > [Skin Depth].
iii. In the [Skin Depth] setting panel, et the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Skin Depth] is added under [Mesh] in the [Project Manager] tree. Right-clicking [Skin
Depth] displays [Edit] and [Delete] in a menu.
394
Generating Mesh with JMAG-Designer
1. When setting materials other than air for electromagnetic steel plate and insulating
layer portions of the layered mesh, add these materials to the study before setting the
layered mesh.
i. Select the electromagnetic steel plate or insulating layer material from the [Toolbox]
material list.
ii. Drag and drop the material to under [Solid Model] > [Study] > [Materials] in the
[Project Manager] tree.
2. Set the Layered Mesh function.
i. In the [Project Manager] tree, under the solid model > [Study], right-click [Mesh].
ii. Select [Add Size Control] > [Layered Mesh].
iii. In the [Layered Mesh] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Layered Mesh] is added under [Solid Model] > [Study] > [Mesh] in the [Project Manager]
tree. Right-clicking [Layered Mesh] displays [Edit] and [Delete] in a menu.
When setting materials for electromagnetic steel plate and insulating layer portions of the lay-
ered mesh, the materials are displayed under [Layered Mesh] in the [Project Manager] tree.
3. Preview the mesh.
If a layered mesh is set for a study, the menu displayed when right-clicking [Mesh] under [Study]
in the [Project Manager] tree is [Preview] instead of [Generate].
See the description in “Generating Mesh in Solid Models or Region Models” on page 380.
Generate Meshes That Take the Thin Film Wire Coatings into Account
By using the Multi-Layer Coating function, it is possible to generate a layered mesh in the neighbor-
hood of a region surface. Use this function if taking into account the magnetic/nonmagnetic thin
film covering a wire is desired.
MEMO Only 2D models are supported.
MEMO When using the Multi-Layer Coating function, there is no need to model the wires separately
from the layer coatings covering them. Model the wire where the size includes the wire and the layer
coating.
395
JMAG Version 22.2 User's Manual
Operations
ii. Drag and drop the material to under a 2D model > study > [Materials] in the [Project
Manager] tree.
2. Set the Multi-Layer Coating function.
i. In the [Project Manager] tree, under the 2D model > [Study], right-click [Mesh].
ii. Select [Add Size Control] > [Multi-Layer Coating].
iii. In the [Multi-Layer Coating] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Multi-Layer Coating] is added under [2D Model] > [Study] > [Mesh] in the [Project Man-
ager] tree. Right-clicking [Multi-Layer Coating] displays [Edit] and [Delete] in a menu.
When a material is set for a coating layer, the material is displayed below [Multi-Layer Coat-
ing] in the [Project Manager] tree.
3. Preview the mesh.
If the Multi-Layer Coating function is set for a study, the menu displayed when right-clicking
[Mesh] under [Study] in the [Project Manager] tree is [Preview] instead of [Generate].
See the description in “Generating Mesh in Solid Models or Region Models” on page 380.
396
Generating Mesh with JMAG-Designer
Automatic
JMAG discerns the symmetry of the model and generates a symmetric mesh in the neighborhood of
a gap.
397
JMAG Version 22.2 User's Manual
Operations
Advanced settings
From the parameters specified by the user, a symmetric mesh is generated.
398
Generating Mesh with JMAG-Designer
MEMO For magnetic field analysis, zooming analysis can be performed by using the Constraint Mesh
function and the Vector Potential Boundary condition.
399
JMAG Version 22.2 User's Manual
Operations
1. Prepare a study.
It does matter whether or not there is a mesh.
2. Enable or disable the [Fix Surrounding Nodes] option as required.
If this option is enabled, if the Morphing function moves its set target surfaces and/or edges, the
nodes surrounding these surfaces and/or edges do not move at all.
i. In the [Project Manager] tree, right-click [Mesh].
Depending on whether the [Fix Surrounding Nodes] option is enabled or disabled, [Morph-
ing Mesh (Fix Surrounding Nodes)] or [Morphing Mesh (Move Surrounding Nodes)] is dis-
played, respectively.
ii. To enable the [Fix Surrounding Nodes] option, select [Morphing Mesh (Move Sur-
rounding Nodes)] > [Fix Surrounding Nodes].
To disable the [Do not move neighboring nodes] option, select [Morphing Mesh (Fix
Surrounding Nodes)] > [Fix Surrounding Nodes].
3. Set the Morphing function.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Morphing Mesh (Move Surrounding Nodes)] or [Morphing Mesh (Fix Sur-
rounding Nodes)] > [Linear], [Radial], or [Circumferential].
iii. In the morphing setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Mesh Morphing] is added under [Mesh] in the [Project Manager] tree. Right-clicking [Mesh
Morphing] displays [Edit] and [Delete] in a menu.
4. To limit the movement from the Morphing function, set the mesh morphing constraint
for faces or edges adjacent to moving faces (or edges).
If the mesh morphing constraint is set, it is difficult for geometry failure to occur due to morph-
ing.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Morphing Mesh (Move Surrounding Nodes)] or [Morphing Mesh (Fix Sur-
rounding Nodes)] > [Constraint].
400
Generating Mesh with JMAG-Designer
iii. In the [Mesh Morphing Constraint] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Mesh Morphing Constraint] is added under [Mesh] in the [Project Manager] tree. Right-
clicking the mesh morphing constraint, [Edit] and [Delete] are displayed in a menu.
5. To limit the movement from the Morphing function, specify the places for preserving
shapes (planes, cylindrical surfaces, straight lines, circular arcs) even after morphing.
If the shape is specified, it is difficult for geometry failure to occur due to morphing.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Morphing Mesh (Move Surrounding Nodes)] or [Morphing Mesh (Fix Sur-
rounding Nodes)] > [Geometry Type].
iii. In the [Mesh Morphing Geometry Type] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Mesh Morphing Geometry Type] is added under [Mesh] in the [Project Manager] tree.
Right-clicking [Mesh Morphing Geometry Type] displays [Edit] and [Delete] in a menu.
6. Check the geometry after morphing.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Morphing Preview].
The morphing preview is displayed.
• To cancel morphing preview, right-click [Mesh] in the study and reselect [Morphing Pre-
view]. The checkbox on the left side of [Morphing Preview] becomes cleared.
• If morphing parameter values are changed after morphing, after a message is displayed the
parameter values will revert to their previous parameter values for the mesh before morph-
ing.
401
JMAG Version 22.2 User's Manual
Operations
2. Configure models before applying skews when using skin mesh functions.
It is necessary that skin mesh is set before applying skews.
3. Apply a skew.
While applying a skew and also using automatic mesh functions to generate mesh for
gap parts:
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Properties].
iii. In the [Mesh Properties] dialog, under the [Basic Setting] tab, select [Skew Gap Fill-
ing].
iv. Click [OK].
v. In the [Project Manager] tree, right-click [Mesh].
vi. Select [Regenerate] or [Preview].
Mesh is generated for skew applications and gap parts.
1. Prepare a study.
Whether or not there is a mesh is irrelevant.
2. Set the Local Remesh function.
i. In the [Project Manager] tree, right-click [Mesh].
ii. Select [Add Size Control] > [Box (Remesh)], [Cylinder (Remesh)], [Rectangle
(Remesh)], or [Ring (Remesh)].
iii. In the [Element Size Control (Remesh)] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Element Size (Remesh)] is added under [Mesh] in the [Project Manager] tree. Right-clicking
[Element Size (Remesh)] displays [Edit] and [Delete] in a menu.
402
Generating Mesh with JMAG-Designer
403
JMAG Version 22.2 User's Manual
Operations
Showing/Hiding Mesh
Show/hide mesh
In the [Project Manager] tree, under [Mesh], select or clear [Mesh Region] (or [Air Region] under
[Mesh Region]).
404
Generating Mesh with JMAG-Designer
1. When a current study has multiple cases, operate case control to display the case used
to create a new mesh model in the graphics window.
A mesh model is generated from the mesh of the case displayed in the graphics window.
2. In the [Project Manager] tree, right-click [Mesh].
3. Select [Create Model From Mesh].
4. In the [Create Model From Mesh] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [OK].
A new mesh model is created based on settings in the [Create Model From Mesh] dialog and is
added to the project.
405
JMAG Version 22.2 User's Manual
Operations
406
Coil Winding Settings
Automate Coil Windings/Cage Settings
This chapter explains the procedure for winding setting using the Winding Setting function.
In magnetic field analysis, there are two methods for energizing conductors of the FEM model using an electric
circuit:
Method Description
Manual setting If settings are created manually, energization to the conductor can be set regardless of the shape
of the analysis model. You can determine the preferred connections of conductors (series and
parallel) and the resistance value of each conductor.
On the other hand, when there are a large number of conductors in the model, a large number
of circuit components and analysis conditions must be set, requiring considerable amount of
time and effort.
Using the Wind- The Winding Setting function can be used for analysis models in which conductors of the
ing Setting func- same shape are arranged periodically in the rotation direction.
tion Using the Winding Setting function, multiple analysis conditions and circuit components can
be set with only a few settings. The Winding Setting function is particularly effective when
there are a large number of conductors in the analysis model.
The following three settings are required to use the Winding Setting function:
• Adding winding components to the circuit:
The winding component is a circuit component that functions in conjunction with the
Winding Setting function. The FEM Coil components and FEM Conductor components
are arranged in the sub circuit of the winding component according to the setting in the
Winding Setting function.
• Settings for the region where conductors are passed through:
This setting is used to make the program recognize the position of the conductor.
• Parameter setting of Winding Setting function:
Number of slots, number of poles, connections of conductors (series, parallel), resistance
value of conductors, etc.
MEMO For details on winding setting parameters, see “Winding Setting” under “Parameter Explanation Edition”.
409
JMAG Version 22.2 User's Manual
Operations
410
Automate Coil Windings/Cage Settings
Select [Add Region (Geometry)] for coil geometry created without the coil template
function of the Geometry Editor.
For coil geometry created with the coil template function, there are fewer parameters to set
when selecting [Add Region (Coil Template)] than selecting [Add Region (Geometry)].
Click [Add Region (Coil Template) to display the [Winding Region (Coil Template)] setting
panel.
Click [Add Region (Geometry)] to display the [Winding Region (Geometry)] setting panel.
iii. Set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
The winding setting is added under [Winding] > [Region Setting] in the [Project Manager]
tree. Additionally, a menu displayed when right-clicking on [Winding Setting] under [Wind-
ing] in the [Project Manager] tree can now be selected.
MEMO By right-clicking the winding setting, [Edit], [Duplicate], and [Delete] can be performed
from the menu.
5. Configure the winding setting.
i. Right-click [Winding Setting] under [Winding] in the [Project Manager] tree.
ii. Click [Add 3-Phase Winding], [Add Multiphase Winding], [Add Brush Motor Wind-
ing], or [Add Cage].
The [Winding Setting] dialog is displayed.
iii. Configure the winding setting properties.
For details on parameters, see “Parameter Explanation Edition”.
• Set coil specifications in the [Coil] tab for three-phase winding settings, multi-phase
winding settings, and brush motor winding settings.
• For cage settings, set End Ring specifications in the [Cage] tab.
• Set coil windings in the [Winding] tab.
• Check coil windings by changing between the [Model View] tab, the [Winding View] tab,
and the [Slot View] tab on the right.
iv. Click [OK].
6. Configure other required settings such as materials, conditions, and study properties,
and generate mesh.
7. Run the analysis.
411
JMAG Version 22.2 User's Manual
Operations
412
Running Analyses
Running Analyses from JMAG-Designer
This chapter describes the procedure for executing studies and cases of a project that is open in JMAG-Designer.
MEMO When running an analysis from JMAG-Designer, its progress can be checked. However, no other operations
can be performed during analysis in JMAG-Designer.
415
JMAG Version 22.2 User's Manual
Operations
Notes
• In JMAG-Designer Version 22.1, cache can be used in the following situations:
• Multi-case calculations such as optimization and parametric analysis using 2D models.
However, when using cache for topology optimization, JobSystem must also be used together
with cache. For details on JobSystem, see “Commands for Executing JMAG Programs” on
page 592.
• Analysis using licenses for JMAG-Express (FR licenses)
• Analysis run directly from JMAG-Express
• Analysis run directly from JMAG-Designer:
Speed-priority mode thermal steady state/transient state studies
Speed-priority mode structural static analysis studies
2D efficiency map analysis studies (reduced order model)
Analyses not listed here will not use cache, even if the JMAG_USE_CACHE value is set to 1.
• When using cache for calculations, the following functions cannot be used:
• Results Monitoring function (page 418)
• Direct coupled analysis
Environment Variables
For the procedures for setting environment variables, see “Overview Edition”.
416
Running Analyses from JMAG-Designer
2. While the analysis is in progress, confirm the progress of the analysis in the [Run Analy-
sis] dialog.
For the details, see “Parameter Explanation Edition”.
When the analysis is complete, the [Messages] dialog is displayed.
3. In the [Message] dialog, confirm whether the analysis was completed successfully.
The name of the study, mesh information, the result file, and the calculation folder directory are
displayed in the [Message] dialog. Clicking on part of the path displayed in [Calculation Folder]
opens that folder.
MEMO The solver report can also be used to confirm the convergence status of the calculation. For
details, see “Checking That Analyses Completed Correctly” on page 423.
MEMO After the analysis is completed, [Result Items] under [Study] in the [Project Manager] tree is
changed to [Results].
4. Confirming Results with JMAG-Designer.
For details, see “Displaying Results” on page 451.
MEMO Once the results are output, the studies are locked and cannot be edited.
417
JMAG Version 22.2 User's Manual
Operations
418
Running Analyses from JMAG-Designer
Cancelling an Analysis
To stop the calculation run from the [Run Analysis] dialog, click [Abort]. The [Stop Calculation]
dialog is displayed.
• To stop the calculation and check the condition settings and results, click [Yes, and open results].
• If the settings and results are incorrect, click [Yes, just cancel].
• If [Abort] is clicked accidentally, click [No].
1. In the [Project Manager] tree, right-click a model and select [Run All Studies].
The calculation starts, and the [Run Analysis] dialog indicating the progress of analysis is dis-
played.
The calculation of all studies starts, and the [Run Analysis] dialog indicating the progress of anal-
ysis is displayed for each study as studies are analyzed sequentially.
The rest of the procedure is the same as “Running Analyses on Studies While They Are Dis-
played” on page 417.
MEMO An analysis is run for only studies or cases without results when [Run All Cases] is selected
and studies and cases with results are not analyzed.
Cases without the case control settings selected are also not analyzed.
419
JMAG Version 22.2 User's Manual
Operations
420
Running Analyses from JMAG-Designer
421
JMAG Version 22.2 User's Manual
Operations
• If [Yes] is clicked, the [Submit to Queue] dialog is displayed. The project is saved after [Submit
Job] is clicked in the [Submit to Queue] dialog.
• If [Cancel] is clicked, [Submit Active Case] (or [Submit All Cases]) is canceled.
MEMO If JMAG is installed on a machine on the same network as the local machine, that machine
can be used for analysis and mesh generation. This is called “remote execution”.
For remote execution, use the JMAG Remote System or a remote machine (or third-party job sched-
uler) using SSH. Which one should be used depends on the OS environment of the local and remote
machines. See “Remote Execution Methods” on page 587.
422
Running Analyses from JMAG-Designer
423
JMAG Version 22.2 User's Manual
Operations
424
Running Analyses from JMAG-Scheduler
This chapter explains the procedure for running analyses from JMAG-Scheduler.
JMAG-Scheduler is a tool for running and managing analyses in JMAG. JMAG-Scheduler can be used when
running an analysis in the following ways.
• Run an analysis without launching JMAG-Designer
• Run an analysis continuously
• Run an analysis remotely:
By using JMAG-RemoteSystem or SSH (Secure Shell), analysis can be run on another machine.
• Run a direct coupled analysis:
Analysis using multiple solvers can be performed.
• Run a direct coupled analysis with JMAG and Abaqus.
MEMO If an analysis is run from JMAG-Scheduler, the result files must be manually loaded into JMAG-Designer,
see “Loading Results Files into JMAG-Designer” on page 436.
425
JMAG Version 22.2 User's Manual
Operations
426
Running Analyses from JMAG-Scheduler
1. If necessary, set the functions for shortening the calculation time before running the
analysis.
When distributing multiple cases of calculation on multiple machines, it may take time to trans-
fer the result files. By setting the following options in the [Output Control] setting panel of the
[Study Properties] dialog, the result file size and the number of files are reduced, and the file
transfer time and the total calculation time can be shortened.
• Select [Output Table Results Only (No mesh will be Output)].
• Clear the checkboxes of unnecessary physical quantity in [Output Results].
2. In the [Project Manager] tree, right-click the study.
3. Select [Submit Active Case to Queue] or [Submit All Cases to Queue].
MEMO An analysis is added as a job on JMAG-Scheduler for cases only with results that are not
exported when [Submit All Cases to Queue] is selected and cases with results that are exported are
not added.
Cases without the case control settings selected are also not analyzed.
MEMO When [Submit All Cases to Queue] is performed, jobs added to JMAG-Scheduler are auto-
matically grouped into a single group. The study name is used for the group name.
MEMO If steps 2 and 3 are performed with the project not saved, before the [Submit to Queue] dia-
log appears, the “You need to save the project file (.jproj), before running the analysis.” message is dis-
played.
• If [Yes] is clicked, the [Submit to Queue] dialog is displayed. The project is saved after [Submit
Job] is clicked in the [Submit to Queue] dialog.
• If [Cancel] is clicked, [Submit Active Case to Queue] or [Submit All Cases to Queue] is canceled.
4. In the [Submit to Queue] dialog, set the parameters.
5. Click [Submit Job].
The calculation of the added jobs automatically starts and the JMAG-Scheduler icon is dis-
played on the taskbar.
MEMO When [Submit All Cases to Queue] is performed, jobs added to JMAG-Scheduler are auto-
matically grouped into job groups. The study name (or analysis group name) is used for the job
group name.
427
JMAG Version 22.2 User's Manual
Operations
In the [Submit to Queue] dialog at the time of suspension, the number of steps that were speci-
fied and the last step executed are displayed.
MEMO If steps 1 and 2 are performed with the project not saved, before the [Submit to Queue]
dialog appears, the “Confirm Submit Restart Study” message is displayed.
• If [Yes] is clicked, the [Submit to Queue] dialog is displayed. The project is saved after [Submit
Job] is clicked in the [Submit to Queue] dialog.
• If [Cancel] is clicked, [Submit Restart to Queue] is canceled.
4. Click [OK].
4. In the [Add Job] dialog, select a file type from the list and specify a file (.jcf, .jproj) from
step 1.
Multiple files can be specified for JCF files. However, the following settings cannot be specified:
• Job title
• Direct coupled analysis
• Restarting calculation
In addition, the folder running the calculation is used by multiple jobs, so jobs cannot be run
simultaneously when running a job from a local machine and whether or not the machine has
multiple licenses. This problem does not occur for remote calculations.
MEMO When multiple JCF files are specified, all jobs created from these files are automatically
grouped into a single group. The name of the first specified JCF file is used as the first group name.
MEMO Even when a JPROJ file is specified, all jobs created from that file are grouped. The JPROJ
file name is used for the group name.
5. Click [Open].
6. In the [Submit to Queue] or [Submit Project File] dialog, set the parameters.
7. Click [Submit Job].
428
Running Analyses from JMAG-Scheduler
The calculation for the added study is automatically run. The [JMAG-Scheduler] icon is dis-
played in the taskbar.
MEMO When using a project file, the added jobs are automatically grouped by study. For the job
group name, the study name (or analysis group name) is used.
MEMO When the calculation is executed using JMAG-Scheduler, it is necessary to read the result
file manually. See “Handling Result Files” on page 467.
429
JMAG Version 22.2 User's Manual
Operations
1. Select one from the job list a job being run from JMAG-Scheduler and then click [Moni-
tor].
2. In the [Run Analysis] dialog, click [Customize Monitor].
3. In the [Customize Monitor] dialog, select items to monitor from the list.
The following items are available.
1. In the JMAG-Scheduler menu bar, select [Remote] > [Remote Monitoring Settings].
2. In the [Remote Monitoring Settings] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
It will now be possible to monitor results from jobs run remotely.
430
Running Analyses from JMAG-Scheduler
Canceling Jobs
1. With a running job (or job group) selected from the job list, click [Cancel Job] .
Or, from the JMAG-Scheduler menu bar, select [Job] > [Cancel Job].
If a job running on the local machine or a remote machine connected with JMAG-RemoteSys-
tem is selected, the [Cancel Job] dialog is displayed.
If a job running on a remote machine connected via SSH has been selected, the [Stop Calcula-
tion] dialog is displayed.
MEMO To select multiple jobs from the jobs list, click the jobs while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
2. In the [Cancel Job] dialog, a message appears to asking whether or not to cancel the
selected job(s). Click [OK].
MEMO If [Do not show this dialog again] is selected in the [Cancel Job] dialog, the [Cancel Job]
dialog will not be displayed the next time job cancellation is performed.
After this selection, to have the [Cancel Job] dialog display when canceling a job, change the settings
in the [Dialogs] setting panel in the [Preferences] dialog in JMAG-Designer.
3. In the [Stop calculation] dialog, buttons for stopping jobs is displayed. Click one of the
buttons.
Click [Yes, and save files] to stop the analysis and to check the condition settings and results.
Click [Yes, just cancel] if it is unnecessary to check the results computed thus far, such as when
the settings are clearly wrong.
If [Cancel Job] is accidentally clicked, click [No].
431
JMAG Version 22.2 User's Manual
Operations
1. Select a job from the job list and click [Restart Job] when resuming a job.
Or, from the JMAG-Scheduler menu bar, select [Job] > [Restart Job].
2. In the [Restart calculation] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
The job is re-added.
Deleting Jobs
MEMO The input files in each jobs are not deleted when a job is deleted from the job list.
1. Select a job (or job group) from the job list and click [Delete Job] to delete a job.
Or, from the JMAG-Scheduler menu bar, select [Job] > [Delete Job].
MEMO To select multiple jobs in the job list, click each job while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
Resubmitting Jobs
Resubmitted jobs are restarted from the beginning.
1. Click [Resubmit Job] while the job (or job group) that is being canceled is selected
from the job list.
Or, from the JMAG-Scheduler menu bar, select [Job] > [Resubmit Job].
MEMO To select multiple jobs in the job list, click each job while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
432
Running Analyses from JMAG-Scheduler
1. With a job (or job group) selected from the job list, click [Run as High Priority] .
Or with a job selected, from the JMAG-Scheduler menu bar, select [Job] > [Run as High Prior-
ity].
The selected job is specified as a priority job and moves to the top of the JMAG-Scheduler job
list. It will be started as soon as there is space available in the job execution space on the local
machine.
A job that is postponed due to an interruption from a priority job is started as soon as there is
space available in the job execution space on the local machine after the priority job starts.
1. Select a job (or job group) from the job list and click [Increase Priority] or [Decrease
Priority] .
Or with a job or job group selected, from the JMAG-Scheduler menu bar, select [Job] > [Increase
Priority] or [Decrease Priority].
1. From the JMAG-Scheduler menu bar, select [Job] > [Change Priority Mode].
“Priority Change Mode” is displayed in the JMAG-Scheduler title bar. [Go] and [Cancel] are dis-
played in the toolbar.
2. Select jobs (or job groups) from the job list and drag and drop them onto any place in
the job list.
The order of the jobs (or job groups) changes.
MEMO To select multiple jobs in the job list, click each job while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
3. Click [Go].
The change of the job (or job group) order is applied, and the priority change mode is exited.
If [Cancel] is clicked, the change of the job (or job group) order is not applied.
MEMO The priority change mode is exited automatically after thirty seconds of no activity.
433
JMAG Version 22.2 User's Manual
Operations
1. Select a job (or job group) from the job list and click [Cancel Queue] .
Or, from the JMAG-Scheduler menu bar, select [Job] > [Cancel Queue].
MEMO To select multiple jobs in the job list, click each job while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
Changing the status of selected job (or job group) from [Wait] to [Queued]
1. Select a job (or job group) that is queued from the job list and click [Submit Queue] .
Or, from the JMAG-Scheduler menu bar, select [Job] > [Submit Queue].
MEMO To select multiple jobs in the job list, click each job while holding down the [Ctrl] key or
[Shift] key on the keyboard. This can also be performed for selecting multiple job groups.
Changing the status of all jobs (or job groups) from [Wait] to [Queued]
1. From the JMAG-Scheduler menu bar, select [Setting] > [Number of Jobs].
2. In the [Setting Number of Jobs] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
434
Running Analyses from JMAG-Scheduler
435
JMAG Version 22.2 User's Manual
Operations
436
Running Analyses from the Command Line
This chapter describes the procedure for executing analysis from the command line.
MEMO When analysis is executed from the command line, it is necessary to load the result file manually. See “Han-
dling Result Files” on page 467.
MEMO For the execution of one-way coupled analysis, see “Running One-Way Coupled Analyses” on page 671.
MEMO For the execution of direct coupled analysis, see “Running Direct Coupled Analyses” on page 689.
437
JMAG Version 22.2 User's Manual
Operations
Notes
• By setting the environment variables can be changed the setting of parallel computing of the
input file of magnetic field analysis.
Use them when analyzing from the command line or when analyzing using remote machine with
SSH. For details, see “Parameter Explanation Edition”.
• Iron loss analysis studies cannot be executed from the command line. Magnetic field analysis
studies with Iron Loss conditions can be executed from the command line.
• Long options require two hyphens (--). For long options that take a value, separate the option
name and value with a space or equal (=).
Example:
--job "D:\JMAG\Calc\mag.jcf"
--job="D:\JMAG\Calc\mag.jcf"
• If the value contains spaces, enclose the value in double quotes (").
• If an option is omitted, the default values shown in the table below will be used.
438
Running Analyses from the Command Line
439
JMAG Version 22.2 User's Manual
Operations
Windows
440
Running Analyses from the Command Line
Command:
(JMAG_installation_folder)\scheduler.exe input_file_path(.jcf)
Example:
"C:\Program Files\JMAG-Designer22.2\scheduler.exe" "c:\JMAG\mag.jcf"
Linux
Variable Value
InsDir Directory where JMAG is installed (full path).
LD_LIBRARY_PATH Directory where shared libraries necessary for analysis in JMAG are
located.
For the 64-bit version: “JMAG_installation_directory/solver/mod/lib/
linux64.”
Command:
(JMAG_installation_directory)/scheduler input_file_path(.jcf)
Example:
/home/user/installation/JMAG222/scheduler /home/jmaguser/Data/Input.jcf
Run Analyses from the Command Line Using Scheduler Job Files
Scheduler job files (.xml) contain the path to the analysis input file as well as the parameters and
their values set in the [Submit to Queue] and [Coupled Files] dialogs.
When using a Scheduler job file, you can use a project file (.jproj) as well as a JCF file analysis input
file.
MEMO The Scheduler job file can be used as the input file for JMAG-Scheduler, but the JobSystem exe-
cution job file (.xml) cannot be used. Refer to the “Files edition” for the difference between the two files,
and “JobSystem Execution Command” on page 599 for information on how to use the JobSystem exe-
cution job file.
441
JMAG Version 22.2 User's Manual
Operations
Windows
Command:
(JMAG_installation_folder)\scheduler.exe Job_file_path
Example:
"C:\Program Files\JMAG-Designer22.2\scheduler.exe" "c:\JMAG\job.xml"
Windows
Command:
(JMAG_installation_folder)\scheduler.exe --status^
--workdir Calculation_folder_path^
--outfile Output_file_path(.txt)
Example:
C:\Program Files\JMAG-Designer22.2\scheduler.exe --status^
--workdir "c:\JMAG\Project.jfiles\Study1\Case1"^
--outfile "c:\output.txt"
The following information is described in the file that is exported after running this command:
Line 1: Calculation folder path
Line 2: Job status
Queued, Suspended, Running, Canceled, Finished, Wait, Error
Line 3: Job progress
Example:
Job: c:\JMAG\MyJobs\Project.jfiles\Study1\Case1
442
Running Analyses from the Command Line
Status: Running
Progress: 80%
Windows
Command:
(JMAG_installation_folder)\scheduler.exe --list^
--outfile Output_file_path(.txt)
Example:
C:\Program Files\JMAG-Designer22.2\scheduler.exe --list^
--outfile "c:\output.txt"
The text file output after the command is executed contains information about all jobs (calculation
folder path, status, and progress).
Windows
Command:
(JMAG_installation_folder)\scheduler.exe^
--max_jobs=”the_number_of_jobs_to_run_simultaneously”
Example:
“C:\Program Files\JMAG-Designer22.2\scheduler.exe”^
--max_jobs=4
Cancel Jobs
The -c or -d option can be used to cancel the job specified by the --job option.
MEMO Pressing [Ctrl] + [C] on the keyboard at the same time cancels the running job as well.
Windows
Command:
The calculation folder is specified with the --workdir option.
(JMAG_installation_folder)\scheduler.exe -c^
--job=“Calculation_folder + input_file_path (.jcf or .jproj)”
443
JMAG Version 22.2 User's Manual
Operations
Example:
“C:\Program Files\JMAG-Designer22.2\scheduler.exe” -c^
--job=“D:\JMAG\Calc\mag.jcf”
Windows
Command:
The calculation folder is specified with the --workdir option.
(JMAG_installation_folder)\scheduler.exe -d^
--job=“Calculation_folder + input_file_path (.jcf or .jproj)”
Example:
“C:\Program Files\JMAG-Designer22.2\scheduler.exe” -d^
--job=“D:\JMAG\Calc\mag.jcf”
Windows
Command:
You can specify one job group to be removed by name with the --group-name option. If the --group-
name option is not used, all jobs that are finished at the time the command is executed will be
removed from the job list.
(JMAG_installation_folder)\scheduler.exe --cleanup --group-name=jobgroupname
Example:
“C:\Program Files\JMAG-Designer22.2\scheduler.exe” --cleanup
“C:\Program Files\JMAG-Designer22.2\scheduler.exe” --cleanup --group-name=gen2
444
Running Analyses from the Command Line
Notes
• By setting the environment variables can be changed the setting of parallel computing of the
input file of magnetic field analysis.
Use them when analyzing from the command line or when analyzing using remote machine with
SSH. For details, see “Parameter Explanation Edition”.
• Iron loss analysis studies cannot be executed from the command line. Magnetic field analysis
studies with Iron Loss conditions can be executed from the command line.
Windows
1. Export an input JCF file to be used in an analysis in advance when running an analysis
from the command line.
See “Exporting Studies to JCF Files” on page 287 for instructions on exporting a JCF file. When
exporting a JCF file, pay attention to the setting of the [Preprocess Model When Exporting
Geometry JCF] option.
MEMO When distributing multiple cases of calculation on multiple machines, it may take time to
transfer the result files. By setting the following options in the [Output Control] setting panel of the
[Study Properties] dialog, the result file size and the number of files are reduced, and the file transfer
time and the total calculation time can be shortened.
• Select [Output Table Results Only (NO mesh will be Output)].
• Clear the checkboxes of unnecessary physical quantity in [Output Results].
2. Set the environment variables InsDir and WorkDir.
For details about detailed setting methods of environment variables, see “Overview Edition”.
445
JMAG Version 22.2 User's Manual
Operations
Command:
Options in [ ] can be omitted.
(JMAG installation folder)\ExecSolver "input_file_path(.jcf)"^
[-remote] [-multi] [-reservation]
Example1:
"C:\Program Files\JMAG-Designer22.2\ExecSolver" "C:\mag.jcf"
Example 2:
When including the setting of environment variables
set InsDir=C:\Program Files\JMAG-Designer22.2
set WorkDir=D:\JMAG\Data
"C:\Program Files\JMAG-Designer22.2\ExecSolver" "D:\JMAG\Data\mag.jcf"
Linux
1. Export an input JCF file to be used in an analysis in advance when running an analysis
from the command line.
See “Exporting Studies to JCF Files” on page 287 for instructions on exporting a JCF file. When
exporting a JCF file, pay attention to the setting of the [Preprocess Model When Exporting
Geometry JCF] option.
MEMO When distributing multiple cases of calculation on multiple machines, it may take time to
transfer the result files. By setting the following options in the [Output Control] setting panel of the
[Study Properties] dialog, the result file size and the number of files are reduced, and the file transfer
time and the total calculation time can be shortened.
• Select [Output Table Results Only (NO mesh will be Output)].
• Clear the checkboxes of unnecessary physical quantity in [Output Results].
2. Set environment variables InsDir, WorkDir, LD_LIBRARY_PATH.
For details about detailed setting methods of environment variables, see “Overview Edition”.
446
Running Analyses from the Command Line
Command:
Options in [ ] can be omitted.
(JMAG installation directory)/solver/bin/ExecSolver "input_file_path(.jcf)"\
[-remote] [-multi] [-reservation]
Windows
447
JMAG Version 22.2 User's Manual
Operations
Sample:
"C:\Program Files\JMAG-Designer22.2\ExecSolver" -restart -step=50 "C:\mag.jcf"
Linux
448
Running Analyses from the Command Line
Interrupt Analysis
Press [Ctrl] + [C] on the keyboard to forcibly terminate an analysis.
449
JMAG Version 22.2 User's Manual
Operations
450
Displaying Results
Output Physical Quantities and Their Display Method
This chapter describes the output physical quantity of each analysis and how to confirm it.
In JMAG-Designer, the output physical quantities can be displayed using following method:
• Table:
See “Checking Analysis Results in Tables” on page 473.
• Total
• Element (or vertex, edge, face, part, node, element edge, element face)
• Graph:
See “Checking Analysis Results in Graphs” on page 481.
• History graph
• Section graph (Line/Arc):
A section graph is a graph of result values on a specified path.
• Section graph for arbitrary region (Line/Arc)
• Image:
See “Checking the Distribution and Flux from an Image” on page 495
• Contour
• Vector
• Flux line
Calculation processing can be added to the resulting quantities. You can use commercial spreadsheet software to
perform the calculations; see “Adding Calculation Processing to Analysis Results” on page 515 and “Using
Scripts to Automate Results Processing” on page 525.
453
JMAG Version 22.2 User's Manual
Operations
Unit Notes
Each physical quantity is displayed in the units that are applied to analysis models in JMAG-
Designer. After analysis, or after result files have been loaded, units that are applied to analysis mod-
els cannot be changed.
In the following cases, physical quantities are displayed in the SI unit system (the units listed in the
[Units] column in the following tables):
• When calculating with data output from JMAG-Studio
• When a JPLOT file output from JMAG-Designer Version 10.3 or earlier is loaded
454
Output Physical Quantities and Their Display Method
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
455
JMAG Version 22.2 User's Manual
Operations
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
456
Output Physical Quantities and Their Display Method
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Iron loss W - - - - - -
Iron loss density W/m3 - - - -
Torque of external program Nm - - - - - -
Force of external program N - - - - - -
Temperature deg C - - - -
Principal stress Pa - - -
d-axis, q axis current A - - - - - -
d-axis, q-axis inductance H - - - - - -
Global stress (centrifugal
Pa - - - -
force)
Principal stress (centrifugal
Pa - - -
force)
Mises stress (centrifugal
Pa - - - -
force)
Global strain (centrifugal
- - - - -
force)
Principal strain (centrifugal
- - - -
force)
Mises strain (centrifugal
- - - - -
force)
Displacement m - - -
Deformation m - - -
Magnetic field (lamination) A/m - - - - - -
Magnetic flux density (lami-
T - - - - - -
nation)
Eddy current density (lami-
A/m2 - - - - - -
nation)
Classical eddy current loss
W/m3 - - - - - -
density (lamination)
Hysteresis loss density (lam-
W/m3 - - - - - -
ination)
Initial magnetization vector A/m - - -
Continuous variables
- - - - -
(node)
*1 Displayed only for a 3D analysis study.
*2
The effective value, zeroth order component, and second order component is outputted when
a frequency analysis is specified.
457
JMAG Version 22.2 User's Manual
Operations
• Section lines and section arcs for an arbitrary region cannot be created in an axisymmetric analy-
sis.
• The output physical quantities are converted according to the setting of Full Model Conversion
function or Circuit Conversion function/condition.
• Physical quantities converted by Full Model Conversion function:
Flux linkage of current condition, Joule loss by material, hysteresis loss by material, iron loss
by material, torque, electromagnetic force, Lorentz force by material, stored energy
• Physical quantities converted by Circuit Conversion function/condition:
Circuit current, circuit voltage, FEM coil interlinkage flux, FEM coil current, FEM coil
inductance, FEM conductor interlinkage flux, FEM conductor inductance, FEM conductor
resistance
• A number for a section is displayed at the end of each output item name in the results of each
section, when using the Multi-Slice condition.
Example: Magnetic flux density (slice 1), torque (slice 1)
• The following results can be checked in a history graph when using the Multi-Slice condition:
• Results for each slice
• Results of the whole model calculated based on the results of each slice
• The results in each section or the results in an averaged value or total value can be checked in a
history graph, when using the Multi-Slice condition.
• There are two types of principal stress. The principle stress outputted by setting the Stress Distri-
bution condition and the principle stress (centrifugal force) outputted by setting the Centrifugal
Force Calculation condition.
458
Output Physical Quantities and Their Display Method
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
459
JMAG Version 22.2 User's Manual
Operations
Thermal Analysis
“” in the table indicates the result can be displayed.
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Temperature deg C - - - -
Heat flux W/m2 - -
Heat flow W - - - - - -
Heat generation density W/m 3 - - - -
Surface heat generation
W/m2 - - - -
density
Heat transfer coefficient W/m2/ - - - -
deg C
Total heat generation W - - - - - -
Total surface heat genera-
W - - - - - -
tion
Average temperature (mate-
deg C - - - - - -
rial)
Average temperature per
deg C - - - - - -
condition
Contact thermal resistance deg C/W - - - - - -
Displacement m - - -
Total displacement (rota-
deg - - - - - -
tional angle)
Total displacement (X/Y/Z
m - - - - - -
direction)
Terminal temperature (ther-
deg C - - - - - -
mal circuit)
Circuit heat transfer coeffi- W/m2
cient - - - - - -
/deg C
Circuit heat flow W - - - - - -
Continuous variables
- - - - -
(node)
460
Output Physical Quantities and Their Display Method
Structural Analysis
“” in the table indicates the result can be displayed.
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Electric potential V - -
Displacement m - - -
Deformation m - - -
Velocity m/s - -
Acceleration m/s2 - -
Global stress Pa - - - -
Principal stress Pa - - -
Mises stress Pa - - - -
Maximum Mises stress *1 Pa - - - - - -
Global strain - - - - -
Principal strain - - - -
Mises strain - - - - -
Plastic strain - - - - -
Contact force N - - -
Pressure Pa - - -
Sound pressure Pa - - - -
Sound pressure level dB - - - -
Maximum sound pressure Pa - - - - - -
Maximum sound pressure
dB - - - - - -
level
Nodal force (input load) N*2 - -
Continuous variables
- - - - -
(node)
*1
This is output for speed-priority mode studies. Click [Display Max Position Result] to
show the position where the Mises stress is at a maximum in the graphics window with a label.
*2 Same for a 2D analysis or 3D analysis.
461
JMAG Version 22.2 User's Manual
Operations
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Electric potential V - - - -
Electric field V/m -
Normal electric field V/m - -
Force N - - - - - -
Nodal force N - - -
Current of current condi-
A - - - - - -
tion
Current density A/m2 - -
Joule loss W - - - - - -
Joule loss density W/m 3 - - - -
Dielectric loss W - - - - - -
Dielectric loss density W/m 3 - - - -
Surface charge C - - - - - -
Surface charge density C/m2 - - - -
Shell charge C/m2 - - - -
Solid dipole C/m2 - - - -
Continuous variables
- - - - -
(node)
Electric breakdown factor - - - - -
462
Output Physical Quantities and Their Display Method
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Temperature deg C - - -
Heat flux W/m2 - -
Heat flow W - - - - - -
Heat generation density W/m 3 - - - -
Surface heat generation
W/m2 - - - -
density
Heat source W - - - - - -
Heat transfer coefficient W/m2/ - - - -
deg C
Average temperature (mate-
deg C - - - - - -
rial)
Average temperature (condi-
deg C - - - - - -
tion)
Contact thermal resistance deg C/W - - - - - -
Terminal temperature (ther-
deg C - - - - - -
mal circuit)
Circuit heat transfer coeffi- W/m2
cient - - - - - -
/deg C
Circuit heat flow W - - - - - -
Displacement m - - -
Global stress Pa - - - -
Principal stress Pa - - -
Mises stress Pa - - - -
Global strain - - - - -
Principal strain - - - -
Mises strain - - - - -
Nodal force (input load) N - -
Continuous variables
- - - - -
(node)
463
JMAG Version 22.2 User's Manual
Operations
Transformer Analysis
“” in the table indicates the result can be displayed.
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
464
Output Physical Quantities and Their Display Method
Integration Analysis
“” in the table indicates the result can be displayed.
(Line/Arc)
(Line/Arc)
Flux line
Contour
Section
Section
Vector
Table
Table
Result type Unit
Circuit current A - - - - - -
Circuit voltage V - - - - - -
Circuit electric power W - - - - - -
Voltage difference V - - - - - -
Control signal - - - - - - -
465
JMAG Version 22.2 User's Manual
Operations
466
Handling Result Files
467
JMAG Version 22.2 User's Manual
Operations
Mouse Operations
468
Handling Result Files
MEMO Note that with this procedure, result data from the result files that are placed in the subfolders
of the specified folder will not be loaded.
1. In the [Project Manager] tree, right-click the project, model, or study and select [Check
Results in Folder].
2. In the [Check Results in Folder] dialog, specify the folder where the result files are
placed that you want to load.
3. Click [Select Folder].
Result files that include result data that are loaded by performing this operation are copied to the
JFILES folder of the project when the project is saved. After this operation, when the project is
next opened in JMAG-Designer, the result data is loaded in advance from the copied result files.
Load Only Result Data for the Necessary Cases After Checking the Results
When running massive case calculations in the background, such as for parametric analysis or
parameter optimization, once you have checked the results (response values) in the table for the cases
that have finished calculating, you can load the result data only for the cases that you have selected.
If an SSH remote machine is used for calculations and result files remain on the SSH remote
machine, then the results can still be viewed on the local machine.
MEMO If a JMAG-RemoteSystem CPU group is used for calculations, then you will not be able to per-
form the operations that are described here.
1. In the [Project Manager] tree, right-click the analysis group or study and select [Load
Multi Case Results].
2. In the [Load Multi Case Results] dialog, check the results for each case in the response
table that is displayed.
You can create graphs and correlation matrices from the results that are displayed in the table.
Enter names to filter in [Look For] to display only the cases that correspond to the conditions of
that filter in the table. Filters that have been added to studies and analysis groups can also be
used.
3. Select the checkboxes of the cases that you want to load the result data for.
4. Click [OK].
469
JMAG Version 22.2 User's Manual
Operations
470
Handling Result Files
Delete Result Data from Cases to Delete Result Files at the Same Time
This deletes the result data for each case. When this occurs, the result files (.jplot) that include the
result data will also be deleted.
471
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, right-click the study and select [Remove Results from Plot
File].
2. In the [Remove Steps and Results] dialog, specify the steps and physical quantity data to
be deleted.
3. Click [OK].
4. In the [Confirm Modify Plot File] dialog, check the number of steps and the physical
quantity data to be deleted.
5. Click [OK] to confirm the deletion.
Click [Cancel] to cancel the deletion. Clicking [Cancel] will return you to the [Remove
Steps and Results] dialog.
472
Checking Analysis Results in Tables
In this chapter, the procedure for checking analysis results in a table format is explained.
473
JMAG Version 22.2 User's Manual
Operations
474
Checking Analysis Results in Tables
475
JMAG Version 22.2 User's Manual
Operations
476
Checking Analysis Results in Tables
477
JMAG Version 22.2 User's Manual
Operations
MEMO Voltage Difference component is used in an electric circuit, the voltage difference between the
terminals can be output without performing the following procedure. For details on Voltage Difference
component, see “Parameter Explanation Edition”.
478
Checking Analysis Results in Tables
Terminal on Terminal on
the brush side the commutator side
479
JMAG Version 22.2 User's Manual
Operations
480
Checking Analysis Results in Graphs
This chapter explains the procedure for confirming analysis results in graph form.
481
JMAG Version 22.2 User's Manual
Operations
482
Checking Analysis Results in Graphs
Arbitrary section graphs can be created for the following physical quantities.
• Magnetic field analysis: Magnetic flux density, magnetic field
• Electric field analysis: Electric field
483
JMAG Version 22.2 User's Manual
Operations
MEMO A straight line or arc indicating the position in which this graph will be evaluated is dis-
played. This line is called a “section line”. The start point is red, the end point is blue, and the
center points are white in a section line.
iv. Click [OK].
A section graph is added under [Results] > [Section] in the [Project Manager] tree. Right-
click that section graph and open the menu with [Show], [Show All Cases], [Edit], [Edit
Description], [Duplicate], and [Delete].
2. Display the section graph.
i. In the [Project Manager] tree, under [Results] > [Section], right-click the section
graph.
ii. To display the section graph of the current case, select [Show] > (section graph
name).
To display the results of all cases in one graph, select [Show All Cases] > [New Graph].
The [Graph] dialog appears and the section graph is displayed in the [Graph] tab.
MEMO When [Show All Cases] is selected, the results of cases calculated after this operation are
automatically added to the graph.
iii. Click the [Table] tab.
The value of each data point in the section graph is displayed in table format.
484
Checking Analysis Results in Graphs
Probe Graph
1. Create a probe.
i. In the [Project Manager] tree, under [Results] or [Result Items], right-click [Probe].
ii. Select [New Probe] or [New BH Probe].
iii. Set the position of the probe in the [Probe] setting panel.
For details on parameters, see “Parameter Explanation Edition”.
[Point 1] is added as the default in the [Point] list. An arrow indicating [Point 1] is displayed
in the graphics window.
485
JMAG Version 22.2 User's Manual
Operations
486
Checking Analysis Results in Graphs
1. Display the graph of the result data for creating the skew graph.
i. In the [Project Manager] tree, under [Results], right-click [Graphs].
ii. Select (physical quantity) > [Show].
Skew graphs can be created from datasets of torque, current, voltage, and electromagnetic
force.
The [Graph] dialog is displayed.
2. Create a skew graph.
i. In the [Graph] dialog, select [Calculation] > [Skew Graph].
ii. In the [Skew Graph] dialog, set the skew parameters.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
A new [Graph] dialog opens, and a result graph is displayed when taking the skew effect into
account.
When skew effect is taken into account, the result graph can also be displayed with the fol-
lowing procedure.
• In the [Project Manager] tree, under [Results], right-click [Graphs]. Select (Item for which
the skew graph was created) > [Skew graph] > [Show].
MEMO The skew graph data can be deleted from the [Skew Graph] context menu or [Graph
Manager] dialog in the [Project Manager] tree.
487
JMAG Version 22.2 User's Manual
Operations
488
Checking Analysis Results in Graphs
489
JMAG Version 22.2 User's Manual
Operations
490
Checking Analysis Results in Graphs
491
JMAG Version 22.2 User's Manual
Operations
492
Checking Analysis Results in Graphs
Printing Graphs
1. In the [Graph] dialog, display the graph.
See the following pages for the procedures to display the graphs:
• Displaying Time Series Graphs of Analysis Results (page 482)
• Displaying Graphs of Result Values for Specified Paths (page 483)
• Displaying Time Series Graphs of Result Values for Specified Positions (page 485)
• Creating Graphs That Take Skew Effects from 2D Analysis Results Data into Account (page
487)
• Adding Calculation Processing to Graph Data (page 488)
• Creating Scalar Response Values (page 638)
2. Print.
i. In the [Graph] dialog, select [File] > [Print].
Or, click [Print] .
ii. In the [Print] dialog, select the printer and set the print range.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [Print].
493
JMAG Version 22.2 User's Manual
Operations
494
Checking the Distribution and Flux from an Image
In this chapter the procedures for checking, using an image, the distribution of physical quantities output and
flux used for analysis results is explained.
495
JMAG Version 22.2 User's Manual
Operations
• When contour plots of items (magnetic flux density, magnetic field, etc.) output for each
element are displayed, when clicking [Select Element] on the toolbar and then selecting
an element, the value of the analysis result for that element is displayed.
• Likewise, if a contour plot of an item (nodal force, displacement, etc.) output for each
node is displayed, when clicking [Select Node] on the toolbar and then selecting a
node, the analysis result value at that node is displayed.
MEMO Multiple result plots (contours, vectors, and flux lines) can be displayed in a single window
simultaneously. For details, see “Displaying Multiple Result Plots Simultaneously” on page 502.
3. Edit contour parameters as needed.
i. In the [Project Manager] tree, under [Results] > [Contour Plots], right-click the con-
tour plot.
ii. Select [Edit].
iii. In the [Contour Plot] setting panel, edit the parameters.
MEMO Toggling between case, phase, and step is also possible during parameter editing.
iv. Click [Apply].
v. Checking the display repeat applying parameter changes and displaying as necessary.
496
Checking the Distribution and Flux from an Image
497
JMAG Version 22.2 User's Manual
Operations
498
Checking the Distribution and Flux from an Image
499
JMAG Version 22.2 User's Manual
Operations
500
Checking the Distribution and Flux from an Image
501
JMAG Version 22.2 User's Manual
Operations
1. Create multiple result plots (contours, vectors, or flux lines) for a study.
See the following pages:
• “Displaying Results Contour Plots” on page 496
• “Displaying Results Vector Plots, Tensor Plots” on page 498
• “Displaying Flux Lines” on page 500
When result plots are added to studies, [Composite Result] is displayed under [Results] in the
[Project Manager] tree.
2. Add simultaneous display settings to the study.
i. In the [Project Manager] tree, right-click [Composite Result] under [Results].
ii. Select [New composite result].
iii. In the [Composite Result] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
Simultaneous display settings are added under [Results] > [Composite Result] in the [Project
Manager] tree. Right-click simultaneous display settings to display a menu consisting of
[Duplicate], [Edit], and [Remove].
3. This begins the procedure for displaying result plots simultaneously.
i. When multiple simultaneous display settings are added to studies, select the simul-
taneous display setting to use under [Results] > [Composite Result] in the [Project
Manager] tree.
502
Checking the Distribution and Flux from an Image
503
JMAG Version 22.2 User's Manual
Operations
504
Checking the Distribution and Flux from an Image
2. Click [Overlay Prototype] on the toolbar to render with the original diagram overlaid.
505
JMAG Version 22.2 User's Manual
Operations
1. Display contour plots, vector plots, or flux lines in the graphics window.
See “Displaying Results Contour Plots” on page 496, “Displaying Results Vector Plots, Tensor
Plots” on page 498, and “Displaying Flux Lines” on page 500.
2. Use the slider bar or spin box at the top left of the JMAG-Designer window to specify
the step and phase to display.
• Step slider bar, phase slider bar:
Move the slider bar left or right to change the number in the spin box next to the slider bar.
Move the slider bar left or right to match the step number or phase to be displayed.
MEMO The JMAG-Designer step slider bar and the [Edit Circuit] window step slider bar are
synchronized.
• Numerical input:
The step number or phase to display using the spin box next to the slider bar can be specified.
After entering a number, press the [Enter] key on the keyboard. The specified step number or
phase is displayed.
506
Checking the Distribution and Flux from an Image
1. Display either of contour plots, vector plots, or flux lines in the graphics window.
See “Displaying Results Contour Plots” on page 496, “Displaying Results Vector Plots, Tensor
Plots” on page 498, and “Displaying Flux Lines” on page 500.
2. Play animation.
Using animation playback controls animation can be displayed and controlled. The function of
each animation playback control button is as follows:
MEMO It may take time to display the animation the first time, but after the first time it will be dis-
played quickly due to caching.
3. Adjust the speed of the animation as necessary.
i. Click the rightmost icon on the animation playback control.
ii. Select [Speed] > [Slow], [Medium], or [Fast].
4. Select animation playback mode.
i. Click the rightmost icon on the animation playback control.
ii. Select [Mode] > [Play once], [Loop repeatedly], or [Loop repeatedly with pause].
5. Change the animation display step and phase as necessary.
i. Click the rightmost icon on the animation playback control.
ii. Select [Step/Phase].
iii. In the [Step/Phase] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
6. If necessary, save the animation in a movie file (.avi).
i. From the menu bar, select [File] > [Export Animation].
ii. In the [Export Animation] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
iv. Specify the AVI file name and destination folder.
v. Click [Save].
507
JMAG Version 22.2 User's Manual
Operations
508
Checking the Distribution and Flux from an Image
509
JMAG Version 22.2 User's Manual
Operations
Example: From model copying 1/8 partial model analysis results, a full model is displayed
510
Checking the Distribution and Flux from an Image
511
JMAG Version 22.2 User's Manual
Operations
To change analysis steps, move the slider bar of the step control or specify the step number in the
spin box.
If both electric circuit and thermal circuit are used in a magnetic field analysis study or efficiency
map analysis study, and the time step intervals of the electric circuit and thermal circuit are not
the same, a list for circuit selection is displayed. Step control refers to the time step setting of the
circuit selected in this list.
512
Checking the Distribution and Flux from an Image
i. Select [File] > [Close] from the Circuit Editor menu bar.
Or, click [Close] in Circuit Editor.
513
JMAG Version 22.2 User's Manual
Operations
514
Adding Calculation Processing to Analysis Results
This chapter describes the operations to add the calculation processing to analysis results.
515
JMAG Version 22.2 User's Manual
Operations
1. Set the magnetic flux calculation to the magnetic field analysis study.
i. Right-click [Calculation] under [Results] (or [Result Items]) > [Graphs] in the [Project
Manager] tree.
ii. Select [Add Magnetic Flux Calculation].
iii. In the [Magnetic Flux] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
[Magnetic Flux] is added under [Results] > [Calculation] in the [Project Manager] tree.
2. Display the magnetic flux calculation result.
i. Right-click [Magnetic Flux] under [Results] > [Graphs] > [Calculation] in the [Project
Manager] tree.
ii. To display the active case results, select [Show].
To display the results of all cases, select [Show All Cases].
The [Graph] dialog appears and the results graph of magnetic flux calculation is displayed.
iii. Click the [Table] tab to display the results data table.
MEMO Results table of magnetic flux calculation can also be displayed running following proce-
dure.
• Right-click [Graphs] under [Results], and select [Show Table]. And click the [Magnetic Flux]
tab in the [Table Result] dialog.
516
Adding Calculation Processing to Analysis Results
1. Create sets or mesh groups to calculate the physical quantities of part sets, face sets,
edge sets, element groups, element face groups, or element edge groups.
A set is a function to group selected parts, faces, edges, or vertices. A mesh group is a function to
group selected elements, element faces, element edges, or nodes.
See “Create Sets” on page 346 and “Create Mesh Groups” on page 349 for instructions on cre-
ating sets and mesh groups.
2. Set the part calculation, surface calculation, or edge calculation in the study.
i. Right-click [Calculation] under [Results] (or [Result Items]) > [Graphs] in the [Project
Manager] tree.
ii. Select either [Add Part Calculation], [Add Surface Calculation], or [Add Edge Calcula-
tion].
[Add Surface Calculation] can be selected only for 3D models.
iii. In the [Calculation] setting panel, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
“Result type: Calculation title” is added under [Analysis Result] > [Graphs] > [Calculation]
(Example: “Flux density: Average value of coil”). Right-click it to display [Create Response
Value], [Edit], [Duplicate], and [Delete].
3. Display the calculation result.
i. Right-click “result type: calculation title” under [Results] > [Graphs] > [Calculation] in
the [Project Manager] tree.
ii. To display the active case results, select [Show] > (calculation title).
To display the results of all cases, select [Show All Cases] > [New graph] (or “calcula-
tion title”).
The [Graph] dialog appears and the calculation results graph is displayed.
iii. Click the [Table] tab to display the calculation results data table.
517
JMAG Version 22.2 User's Manual
Operations
Preconditions
Input files (.jcf ) and result files (.jplot) are required for electromagnetic force recalculations via the
RecalcForce function.
• The following data must be output to result files (.jplot):
• Material properties
• Result physical quantities: Vector potential, displacement.
The output of these physical quantities is determined from the [Output Results] settings in
the [Output Control] setting panel of the [Study Properties] dialog.
• Mesh data:
The output of mesh data is determined from the [Output Results] settings in the [Output
Control] setting panel of the [Study Properties] dialog.
• The mesh data in the input JCF file and the JPLOT file must be the same.
• Analysis result files (.jplot) that use Multi Slice conditions may also be used, but result files must
be used for each slice. 3D skew model result files cannot be used.
• Errors will occur when mesh data differs between input files and result files.
• When adaptive mesh or [Generate Mesh at Each Step] is used in magnetic field analyses, use the
file “*_input.jcf” that is output to the same folder as the input file after magnetic field analysis
has completed. This file is the output file with mesh information added.
MEMO The name of the JCF file that executed analysis is given to the “*” in “*_input.jcf”.
Procedures
1. Run the RecalcForce function from the JSOL-provided batch file (or shell file).
i. Position the input JCF file and the JPLOT file in any folder.
ii. Copy the JSOL-provided batch file (or shell file) to the same folder as Step i.
The batch file or the shell file can be found in the following folders:
• Windows (batch file):
(JMAG installation folder)\sample\Solver\ForceRecalculation
518
Adding Calculation Processing to Analysis Results
Windows example:
C:\Program Files\JMAG-Designer22.2\sample\Solver\ForceRecalculation
When using the highly parallel distributed memory-type parallel computing (MPP) function,
use RecalcForce_mpp_sample.bat (or RecalcForce_mpp_sample.sh). Otherwise, use Recalc-
Force_sample.bat (or RecalcForce_sample.sh).
iii. Open the batch file (or shell file) copied in Step ii with a text editor to edit portions of
the content, then save the batch file (or shell file).
The following example is a description of the content for RecalcForce_sample.bat. The Recal-
cForce function is executed when the “-RECALC:force” option is used.
Change the values for “JCFPATH” and “DesignerPATH” to accommodate the environment
being used. Specify the input JCF file name in “JCFPath”. There is no need to include the
extension in the file name.
###############
# Description
###############
# Environment variable
# PATH: Install directory of JMAG-Designer.
# Command
# COMMAND -IN:INPUT_FILE -OUT:binary -RECALC:force
# DesignerPATH: Full path of JMAG-Designer
# JCFPATH: Input jcf file name except ".jcf".
set JAMPATH="%DesignerPATH%\jam.exe"
set InsDir=%DesignerPATH%
set PATH=%PATH%;%DesignerPATH%;
del jstage3
del jcgmntr
del jri_module_version_jam
del %JCFPATH%.loss
del %JCFPATH%.monitor
pause()
iv. Run the batch file (or shell file) from Step iii.
The RecalcForce function is run, and electromagnetic force is recalculated based on the input
file and the result file.
A result file containing the calculated electromagnetic force is written with the name “XXX_-
force_all.jplot” (with the input file name given to the “XXX”). Only nodal force and Lorentz
force distribution and displacement is out-put to this file. This file can also be used for one-
way coupled analyses and the Multi-Purpose File Export Tool, etc.
519
JMAG Version 22.2 User's Manual
Operations
520
Adding Calculation Processing to Analysis Results
521
JMAG Version 22.2 User's Manual
Operations
522
Adding Calculation Processing to Analysis Results
523
JMAG Version 22.2 User's Manual
Operations
524
Using Scripts to Automate Results Processing
525
JMAG Version 22.2 User's Manual
Operations
Script Editor
3. Click [Copy to Toolbox] to copy the post calculation script to the [Script] tab of the tool-
box.
By copying the created post calculation script to [Toolbox], you can use it in different studies and
analysis groups.
• If the post calculation script currently being displayed is a copy of the preinstalled post calcu-
lation script, it is copied to the [Post Calculation Custom] folder in the [Script] tab
• If you created the post calculation script currently being displayed, it is copied to the [Cus-
tom] folder in the [Script] tab.
MEMO If the post calculation script of a study or analysis group is edited after the post calculation
script is copied from the study or analysis group to [Toolbox], the edited content will not be reflected
in the post calculation script in [Toolbox].
526
Using Scripts to Automate Results Processing
527
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, under a study or analysis group > [Post Calculation
Scripts], right-click a script.
2. Select [Settings].
A dialog for setting input parameters of post calculation scripts is displayed.
3. Change the parameter value in the dialog and click [OK].
528
Using Scripts to Automate Results Processing
1. In the [Project Manager] tree, under a study or analysis group > [Post Calculation
Scripts], right-click a script.
2. Select [Copy to Script Toolbox].
The selected post calculation script is copied to the [Script] tab in the JMAG-Designer [Tool-
box].
• When the selected post calculation script is a copy of the preinstalled post calculation script,
it is copied to the [Post Calculation Custom] folder in the [Script] tab.
• When the selected post calculation script is created by the user, it is copied to the [Custom]
folder in the [Script] tab.
MEMO When the post calculation script of studies of analysis groups are opened from the Script
Editor, the [Copy to Toolbox] button in the Script Editor can also be used to copy the post calcula-
tion script to [Toolbox].
529
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, under a study or analysis group > [Post Calculation
Scripts], right-click a script.
2. Select [Run].
1. In the [Project Manager] tree, under a study or analysis group, right-click [Post Calcula-
tion Scripts].
2. Select [Run all].
530
Using Scripts to Automate Results Processing
1. In the [Project Manager] tree, under a study or analysis group > [Post Calculation
Scripts], right-click a script.
2. Select [Set Disabled].
The script is disabled.
And, [Set Disabled] is checked in the menu that appears when you right-click the script.
3. To enable a script that has been disabled, select [Set Disabled] again.
[Set Disabled] will be cleared and the script will be enabled.
1. In the [Project Manager] tree, under a study or analysis group, right-click [Post Calcula-
tion Scripts].
2. Select [Disable All].
All the scripts are disabled.
And, [Set Disabled] is checked in the menu that appears when you right-click each script.
3. To enable all scripts that are disabled, right-click [Post Calculation Scripts] and select
[Enable All].
531
JMAG Version 22.2 User's Manual
Operations
Notes
• To set the user-defined response values in post calculation scripts, use the following method
belonging to the Study class.
void SetUserResponseVariable(String name, int caseIndex, double value)
To acquire response values, use the following method. For details on each method, see the
JMAG-Designer Help.
double Study::GetResponseVariable(String name, int caseIndex);
Variant Study::GetResponseData(String name, int caseIndex);
• It is only possible to confirm or delete variables for the user-defined response values. Operations
such as duplicating and editing cannot be performed.
532
Displaying Reports
This chapter describes the procedure for displaying analysis results in report format.
The settings and analysis results for materials and conditions of one case are output to this case report. In a para-
metric report, values of design variables for each case as well as response graphs can be output.
533
JMAG Version 22.2 User's Manual
Operations
534
Managing Input/Output Table Data
Comparing Table Results Using the Graph Manager
3 datasets graph
537
JMAG Version 22.2 User's Manual
Operations
538
Comparing Table Results Using the Graph Manager
Creating Datasets
A dataset created by the user is called a “user dataset”. There are three ways to create a user dataset.
The three ways to create a dataset are as follows:
• Creating a new dataset by combining table data from different studies
• Creating table data for a dataset
• Importing table data from a file (.csv, .txt, .pa)
1. In the [Graph Manager] dialog, click [Create] on the left side of the dataset list.
2. In the [Dataset Creation Wizard] dialog, select the type of dataset.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [Next].
If you select [Tabular Results Data from Multiple Studies], the [Select Studies] setting panel is
displayed.
If you select [Enter Data in a spreadsheet], the [Graph Data] setting panel is displayed.
If you select [Import data from a file], the [Import data from a file] setting panel is displayed.
4. If [Tabular Results Data from Multiple Studies] is selected, set the parameters in the
[Select Studies] and [Select Result Components] setting panels.
For details on parameters, see “Parameter Explanation Edition”.
Clicking [Next] on the [Select Result Components] setting panel opens the [Dataset Created]
setting panel.
5. If [Enter Data in a spreadsheet] is selected, set the parameters in the [Graph Data] set-
ting panel.
For details on parameters, see “Parameter Explanation Edition”.
Clicking [Next] on the [Graph Data] setting panel opens the [Dataset Created] setting panel.
6. If [Import data from a file] is selected, set the parameters in the [Import data from a
file] setting panel.
For details on parameters, see “Parameter Explanation Edition”.
Clicking [Next] on the [Import data from a file] setting panel opens the [Dataset Created] set-
ting panel.
7. Check the contents of the dataset on the [Dataset Created] setting panel.
8. If you select [Do Not Add to Graph] or [Add to Existing Graph], click [Finish].
If [Do Not Add to Graph] is selected, the created dataset is added to the graph manager's dataset
list as a “user dataset”.
If [Add to Existing Graph] is selected, the created dataset is added to the graph manager's dataset
list as a “user dataset”. And the dataset is added to an existing graph.
9. If you select [Add to New Graph], click [Next]. Specify a title for the graph and click [Fin-
ish].
After clicking [Finish], the created dataset is added to the graph manager's dataset list as a “user
dataset”. A new graph is added to the graph list. If [Display graph on finishing] is selected, the
graphs created is displayed in the [Graph] dialog.
539
JMAG Version 22.2 User's Manual
Operations
Displaying Datasets
1. Select a dataset from the dataset list in the [Graph Manager] dialog.
MEMO You can sort and filter datasets by using [Group] and [Show] in the upper section of the
Graph Manager.
2. Click [Display].
Or, right-click the dataset and select [Show Selected].
The [Dataset] dialog is displayed.
3. Edit the parameters as needed.
4. Click [Close].
If parameters are modified, the modifications will be reflected in the dataset list.
Deleting Datasets
1. Select a dataset from the dataset list in the [Graph Manager] dialog.
MEMO You can sort and filter datasets by using [Group] and [Show] in the upper section of the
Graph Manager.
2. Click [Delete].
Or, right-click the dataset and select [Delete Selected].
MEMO The dataset can still be confirmed in the [Project Manager] tree even if the dataset is deleted
from the dataset list.
540
Comparing Table Results Using the Graph Manager
1. Select the first dataset from the dataset list in the [Graph Manager] dialog.
The first selected dataset is used for the X-axis of the newly created dataset.
MEMO You can sort and filter datasets by using [Group] and [Show] in the upper section of the
Graph Manager.
2. Select the second dataset while pressing and holding the [Ctrl] key.
The second selected dataset is used for the Y-axis of the newly created dataset.
MEMO The X- and Y- axes of the dataset can be changed later using [Exchange X <-> Y].
3. Click [Transform], and select [Combine].
4. In the [Combine Datasets] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
5. Click [OK].
The created dataset is added to the graph manager's dataset list.
If you select [Add To New Graph], a new graph is added to the graph list. Additionally, if [Dis-
play Graph On Finishing] is selected, the [Graph] dialog is appear, displaying the graph that was
created.
541
JMAG Version 22.2 User's Manual
Operations
1. Select a dataset from the dataset list in the [Graph Manager] dialog.
MEMO You can sort and filter datasets by using [Group] and [Show] in the upper section of the
Graph Manager.
2. Click [Transform], and select [Fourier Transform], [Moving Average], or [Extract Fre-
quency].
3. In the [Fourier Transform Properties], [Moving Average], or [Extract Frequency] dialog,
set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
4. Click [OK].
The created dataset is added to the graph manager's dataset list.
• If [Create Graph] is selected, the calculation results are also added to the graph list.
• If [Show Graph after Calculation] is selected, the graph created is displayed in the [Graph]
dialog.
• The [Fourier Transform] dataset and the [Extract Frequency] dataset do not belong to any
study.
• If you selected [Amplitude and Phase] or [Decibel] for [Output Type] when creating the
[Fourier Transform] dataset, an [Amplitude] dataset and a [Phase] dataset are created.
542
Comparing Table Results Using the Graph Manager
1. Select a dataset from the dataset list in the [Graph Manager] dialog.
2. Select a dataset from the dataset list.
Skew graphs can be created from torque, current, potential, and electromagnetic force datasets.
MEMO You can sort and filter datasets by using [Group] and [Show] in the upper section of the
Graph Manager.
3. Click [Transform] and select [Skew Graph].
4. In the [Skew Graph] dialog, set the parameters.
For the subsequent procedures, see “Creating Graphs That Take Skew Effects from 2D Analysis
Results Data into Account” on page 487.
543
JMAG Version 22.2 User's Manual
Operations
Deleting Graphs
1. Select the graph to delete from the graph list in the [Graph Manager] dialog.
2. Click [Delete] on the left side of the graph list.
Displaying Graphs
1. Select the graph to display from the graph list in the [Graph Manager] dialog.
2. Click [Display] on the left side of the graph list.
The selected graph is displayed in the [Graph] dialog.
544
Analysis Templates
Creating Templates of Analysis Models
This chapter describes the procedure for creating and using analysis templates.
An analysis template is a template containing the settings specified for a model which can be used for different
models. The following settings can be saved for a template.
• Template parameters (sets, reference targets)
• Study type and structure
• Case control (design variables including CAD parameters, case settings, optimization, expression variables,
measurement variables)
• Response table creation settings
• Study properties
• Materials
• Conditions
• Circuits
• Mesh generation method
• Mesh groups treated as parts
• Results displays (section graphs, contour plots, vector plots, etc.)
• Unit systems excluding the unit of length
• Display settings for [Result Review] dialog (or [All Cases Result View] dialog). Note that graph settings are
not included
547
JMAG Version 22.2 User's Manual
Operations
Procedure of Use
1. Create an analysis model to be made into a template.
Analysis templates can also be created from analysis groups.
2. Create an analysis template from the model (or analysis group) from step 1.
There is a method for exporting the model to a folder as a template file (.jtmpl) and a method for
adding a template file under the [Analysis Template] tab in [Toolbox].
3. Create a new project and provide a model to apply the analysis template to.
To inherit the settings of a set from the analysis template, add an empty set to the model to
which the analysis template is to be applied. Similarly, to inherit reference target settings, add an
empty reference target to the model to which the analysis template is to be applied.
4. Apply the analysis template to the model from step 3.
When applying, associate parts and sets between the analysis template and the model the analysis
template is being applied to. For an analysis group analysis template, associate between models.
MEMO When the part names and set names match between the analysis template and the model to
which the analysis template is to be applied, the associations are automatically made so manual asso-
ciations are unnecessary.
548
Creating Templates of Analysis Models
549
JMAG Version 22.2 User's Manual
Operations
• To change the name and description of the added analysis template, right-click the tem-
plate under the [Analysis Templates] tab and select [Property]. In the [Property of (tem-
plate name)] dialog, modify the name and description, and click [OK].
• To delete the added analysis template, right-click the template under the [Analysis Tem-
plates] tab and select [Delete].
550
Creating Templates of Analysis Models
When using an analysis template added under the [Analysis Templates] tab:
i. Under the [Analysis Templates] tab in [Toolbox], click an analysis template.
ii. From under the [Analysis Templates] tab, drag and drop the analysis template onto
the model.
The drop destination can either be the model in the graphics window or the model in the
[Project Manager] tree.
For an analysis model template, the [Part ID Matching] setting panel in the [Analysis Tem-
plate] dialog is displayed.
For an analysis group template, the [Model Selection for Analysis Template] dialog appears
before the [Analysis Template] dialog is displayed.
iii. When the [Model Selection for Analysis Template] dialog appears, associate the
analysis template with the model.
The [Template] table displays the models included in the analysis template. The [Project]
table displays the models included in the project to which the analysis template is applied.
Associations are done automatically based on model types and number of models. If associa-
tions are not made or the associations are incorrect, set the associations manually.
Associating:
• Select one model from [Template] and one model from [Project], and click [Set].
• Even if drag and dropping a model from [Project] to [Template], an association will be
made.
• By selecting [Associate the model for each study], the models in [Template] are expanded
and the studies below them are displayed. It is also possible to associate a model in [Proj-
ect] with a displayed study.
Modifying the association:
551
JMAG Version 22.2 User's Manual
Operations
• Drag and drop a model from [Project] to a model already associated in [Template]. The
association is overwritten.
Releasing the association:
• Select a model in [Project], then click [Release].
• The association for a model can also be released by right-clicking on the model in [Tem-
plate] and selecting [Release].
iv. When the template and model association is completed, click [Next].
The [Part ID Matching] setting panel in the [Analysis Template] dialog is displayed.
v. In the [Part ID Matching] setting panel, parts can be associated between analysis
template models.
The parts information that is included in an analysis template is displayed in the [Template]
table. The model name included in a model that is to be applied in an analysis template is dis-
played in the [Model] table.
A group of parts is indicated by an icon with a group symbol .
If the part names match, the association is automatically made. If the part names do not
match or the associations are incorrect, please set them manually.
Associating:
• Select a part from [Model] and then drag and drop to the part in [Template] to set links.
• The part name for a model that is applied by an analysis template is displayed in the [Link
Item] column of [Template], and the parts that are linked are hidden from [Model].
• To link multiple items in [Model] to an item in [Template], click [Duplicate Set] and link
the duplicate item to the item in [Template].
Modifying the association:
• Press and drag the correct part from [Model] to the part in [Template]. The link is over-
written.
Releasing the association:
• Select the part to release its link in [Template], and then click [Release].
• A link is also released by right-clicking the part, and then selecting [Release].
Grouping the parts:
• In each table, right-click a part to include in the group, and select [Grouping Part].
Ungrouping the parts:
The part names included in each group and the number of parts needs to match, when link-
ing grouped parts in an analysis template with grouped parts in a model that is to be applied
an analysis template. Ungroup the parts and then link the parts separately when they do not
match.
• Right-click a group in each table, and select [Separate Part].
vi. When finishing associating parts, click [Next] or [Finish].
If the analysis template or the model to which an analysis has been applied has settings for set,
reference target or the equation variable, [Next] is displayed.
Clicking [Next] brings up the [Set Matching], [Reference Target Matching], or [Equation
Matching] setting panel.
552
Creating Templates of Analysis Models
vii.In the [Set Matching] setting panel, associate sets between the analysis template and
the model.
The set association procedure is the same as for part association.
viii.When finishing associating sets, click [Next] or [Finish].
If the analysis template or the model to which an analysis template has been applied is set
with a reference target or equation variable, [Next] is displayed.
Clicking [Next] brings up the [Reference Target Matching] or [Equation Matching] setting
panel.
ix. In the [Reference Target Matching] setting panel, associate reference targets
between the analysis template and the model.
The reference target association procedure is the same as for part association.
x. When finishing associating reference target, click [Next] or [Finish]
If the analysis template or model to which an analysis template has been applied is set with an
equation variable, [Next] is displayed.
Clicking [Next] brings up the [Equation] setting panel.
xi. Associate the corresponding equations of the analysis template and model in the
[Equation Matching] setting panel.
The equation association procedure is the same as for part association.
xii.Click [Finish].
The analysis template is applied to the model.
When applying an analysis template created from a model or study, a new study is added
under the model in the [Project Manager] tree.
When applying an analysis template created from an analysis group, a new analysis group is
added to the [Project Manager] tree.
xiii.If the [List of Setting Target is not Set] dialog is displayed after the [Analysis Tem-
plate] dialog is closed, correct the settings for the items displayed in the table. To
modify the settings later, click [Close].
The [List of Setting Target is not Set] dialog is displayed when the study added by applying
the analysis template has an analysis condition (or result setting, set, reference target) where
the information to be set is missing.
When using a JMAG analysis template file (.jtmpl) saved in any folder:
i. In the [Project Manager] tree, right-click a model or project.
ii. Select [Apply Analysis Template].
iii. In the [Apply Analysis Template] dialog, specify an analysis template file (.jtmpl) and
click [Open].
The [Model Selection for Analysis Template] dialog or the [Part ID Matching] setting panel
in the [Analysis Template] dialog is displayed. The following procedures are the same as
“When using an analysis template added under the [Analysis Templates] tab:” on page
551.
553
JMAG Version 22.2 User's Manual
Operations
1. Right-click the analysis template on the [Analysis Template] tab of the [Toolbox] and
select [Check the Settings].
The [Analysis Parameter view] dialog is displayed.
• The [Analysis Parameter View] dialog of analysis templates created from the study, displays
the same content as the [Analysis Parameter View] dialog that was displayed from the context
menu of the study in the [Project Manager] tree.
• The [Analysis Parameter View] dialog of the analysis templates created from the model, dis-
plays the same content as the [Analysis Parameter View] dialog displayed from the context
menu of the model in the [Project Manager] tree.
• The [Analysis Parameter view] dialog of the analysis templates created from the analysis
group displays the same content as the [Analysis Parameter View] dialog displayed from the
context menu of the analysis group in the [Project Manager] tree.
554
Parallel Computing, Remote Execution
Performing Large Scale Calculations Using Parallel
Computing
This chapter describes the parallel computing function and the procedure of analysis execution using GPU.
GPU function
The GPU (Graphics Processing Unit) in the machine used is used for JMAG computing processing.
This function can be used for magnetic field analysis.
MEMO To use the parallel computing function and GPU, in addition to the solver license for each analysis, a dedi-
cated license is required. The number of licenses required varies with the degree of parallelism. For details, see
“Licenses”.
557
JMAG Version 22.2 User's Manual
Operations
558
Performing Large Scale Calculations Using Parallel Computing
Procedures
559
JMAG Version 22.2 User's Manual
Operations
560
Performing Large Scale Calculations Using Parallel Computing
Install JMAG
If there is a shared disk that can be accessed from all nodes in the cluster system used, install JMAG
there.
If there is no such shared disk, it is necessary to install the same version of JMAG on all nodes in a
folder with the same name and whose path is the same on all the nodes. Create each calculation
folder with the same name and whose path is the same on all the nodes.
When JMAG is not installed on a shared disk, only magnetic field analysis can be executed, and
direct coupled analysis cannot be executed.
If the network is type (a), as explained in “Prepare the Analysis Hardware Environment (Network
Configuration)” on page 560, installing a license server on a company LAN will enable the check-
out of licenses from nodes. If the network is type (b), then the license server is installed on either the
head node (Node 0) or the machine (Client) that is connected to the head node and resides on the
company LAN.
The OSs of the machines to be used as computation nodes should be unified to Windows or Linux.
Parallel computings cannot be executed in a mixed environment of Windows and Linux machines.
Prepare the same UID/PWD for all machines used for MPP or hybrid parallel computing. For
details, check with the person in charge of administration in your organization.
• If all machines are in the same domain, domain users can use used.
• In other cases, create a workgroup when using Windows.
• When using Linux, prepare local users with the same UID/PWD on all machines.
For details on installing JMAG and a license server, see the JMAG Installation Manual.
The Intel MPI Library 2019 is supported for JMAG-Designer Version 22.2.
For the latest information on MPI versions supported by JMAG-Designer, check the JMAG website
(https://www.jmag-international.com/). For details on installing the Intel MPI Library, see the Intel
or Intel distributor's website.
561
JMAG Version 22.2 User's Manual
Operations
Windows
Please click the installer for the Intel MPI Library, fill in the necessary information, and complete
the installation. If installing on a disk other than a shared disk, install it in the same folder on all
nodes.
In addition, set the following environment variables:
Linux
After extracting the installer, start the Intel MPI Library installation shell and execute the installa-
tion. If installing on a disk other than a shared disk, install it in the same directory on all nodes.
In addition, set the following environment variables:
562
Performing Large Scale Calculations Using Parallel Computing
Windows
If the display is not returned, the Intel MPI Library installation has failed. Use the support from
Intel's distributors. If you are not using a shared disk, perform this check operation on all nodes.
3. Move to the JMAG-Designer installation folder.
Example:
cd C:\Program Files\JMAG-Designer22.2
4. Create an MPP host file (.txt) with the names of all the nodes to be used and place it in
the JMAG-Designer installation folder.
Create a text file as shown below.
• Have the file name be “jmag_hosts.txt”.
• “machine01” and “machine02” are the names of two machines among the nodes used by the
user in MPP or hybrid parallel computing. If a machine name is not recognized, enter the IP
address for that machine.
It is correct if 8 version numbers (e.g. 22.0.1a) appear in the command prompt. If it is not dis-
played, either the network configuration, the machine name recognition, or the user account set-
ting has failed. Please contact your system administrator.
MEMO When MPI is run for the first time, it may be required to enter an account name and pass-
word from MPI. In that case, execute the following command from the command prompt on all
nodes:
mpiexec -register
Enter the account name
Enter the password
Execute the above command on all nodes, even if you have changed the password.
563
JMAG Version 22.2 User's Manual
Operations
Linux
If the display is not returned, the Intel MPI Library installation has failed. Use the support from
Intel's distributors. If you are not using a shared disk, perform this check operation on all nodes.
3. Create an MPP host file (.txt) with the names of all the nodes to be used and place it in
the current directory.
Create a text file as shown below.
• Have the file name be “jmag_hosts.txt”.
• “machine01” and “machine02” are the names of two machines among the nodes used by the
user in MPP or hybrid parallel computing. If a machine name is not recognized, enter the IP
address for that machine.
Example:
opt/intel/impi/2019.12.0/intel64/bin/mpirun -np 8 -machinefile .\jmag_hosts.txt date
It is normal if the current date and time appear 8 times in the terminal. If it is not displayed,
either the network configuration, the machine name recognition, or the user account setting has
failed. Please contact your system administrator
564
Performing Large Scale Calculations Using Parallel Computing
File Description
JCF files (.jcf ) These files are required regardless of how the parallel computing job is exe-
cuted. For details, see “JCF Files (.jcf)” on page 565.
MPP hosts file (.txt) This file defines the machines (nodes) used for parallel computing. This
file is required to run parallel computing jobs using the following methods:
• Running from JMAG-Scheduler
• Starting the MPP solver from a shell/batch file
• Starting the MPP solver via ExecSolver from a shell/batch file
For details, see “MPP Hosts Files (.txt)” on page 566.
Shell/batch file for paral- This file is required to execute parallel computing jobs without using
lel computing execution JMAG-Scheduler.
Contains the command to start solver software. A file sample is provided
with the JMAG installer. For details of a given method, see the description
of that method.
• Run MPP Solvers via ExecSolver from Shell/Batch Files (page 576)
• Run MPP Solvers from Shell/Batch Files (page 573)
• Run MPP Solvers from Shell/Batch Files with Commercial Schedulers
(page 578)
• Run MPP Solvers via ExecSolver from Shell/Batch Files with Commer-
cial Schedulers (page 580)
Creation procedure
1. Create an analysis model using the same procedure as with standard analysis.
Certain conditions and functions cannot be used in analysis using MPP or hybrid parallel com-
puting. For details, see “Parameter Explanation Edition”.
• Required settings:
For MPP, select [Massively Parallel Processing (MPP)] in the [Parallel Computing Settings]
setting panel in the [Study Properties] dialog and specify a value for [Degree of Parallel Pro-
cess].
For hybrid parallel computing, specify a value of 2 or more in [Degree of Parallel Threads].
• Optional settings:
When performing multi-case calculations in a distributed manner using multiple machines,
transferring results files can take a lot of time.
By making the following settings in the [Output Control] setting panel in the [Study Proper-
ties] dialog, the size and number of results files can be reduced, and the time required for file
transfer and overall computations can be reduced:
• Select [Output Table Results Only (No mesh will be Output)].
• Clear the checkboxes of unnecessary physical quantities in [Output Results].
565
JMAG Version 22.2 User's Manual
Operations
Notes
• Changes can be made to parallel computing settings when executing analysis from JMAG-Sched-
uler. For details, see “Parameter Explanation Edition”.
• Parallel computing settings within input JCF files can be changed by using environment vari-
ables (JMAG_PARALLEL_TYPE, JMAG_CORES, JMAG_HYBRID_THREADS).
Use these environment variables when performing analyses that are run from the command line,
or run by using remote machines with SSH. For details, see “Parameter Explanation Edition”.
Creation procedure
Use a text editor to input the node names (or IP addresses) and the number of processes for each
node in a text file. The following is a sample file. In this example, four processes are deployed on
machines machine01 to machine04.
• When using MPP in magnetic field analysis linked with Simulink, specify the machine on which
the MPP solver and Simulink are launched on the first line of the MPP hosts file. For how to
566
Performing Large Scale Calculations Using Parallel Computing
perform analysis when linked with Simulink, see “Simultaneously Running JMAG and Circuit
Simulators Using Mutual Results” on page 798.
Notes
• When executing a parallel computing job from JMAG-Scheduler, the user can specify the name
and location of the MPP hosts file.
• When the parallel computing job execution method is “Run MPP solver from a shell file (batch
file)”, note the following:
• The name of the MPP hosts file can be specified by the user.
• The name of the MPP hosts file must be specified as an argument of the MPP solver execu-
tion command in a shell/batch file.
• The MPP hosts file must be in the same folder as the input JCF file.
• When the parallel computing job execution method is “Run MPP solver through ExecSolver
from a shell file (batch file)”, note the following:
• Specify the name of the MPP hosts file as “jmag_hosts.txt” or “(input JCF file name)+_
hosts.txt”. In the latter case, for example, if the JCF file name is motor.jcf, the MPP hosts file
name will be motor_hosts.txt.
• Place the MPP hosts file in the same folder as the input JCF file(s).
• When executing a parallel computing job from a commercial job scheduler, it is necessary to set
the environment variable JMAG_USE_MPI_MACHINEFILE to control the MPP solver so
that it does not refer to the MPP hosts file. For details, see “Run MPP Solvers from Shell/Batch
Files with Commercial Schedulers” on page 578 and “Run MPP Solvers via ExecSolver from
Shell/Batch Files with Commercial Schedulers” on page 580.
• When using MPP in magnetic field analysis linked with Simulink, note the following:
• Specify the name of the MPP hosts file as “jmag_hosts.txt”.
• On the first line of the MPP hosts file, specify the machine on which MPP solver and Sim-
ulink are launched.
• When using MPP in magnetic field analysis linked with STAR-CCM+, note the following:
• Specify the name of the MPP hosts file as “(input JCF file name)+_ hosts.txt”.
567
JMAG Version 22.2 User's Manual
Operations
568
Performing Large Scale Calculations Using Parallel Computing
Execution
Add job to Required files Additional Information
method
(2-1) None • JCF files (mesh) • The location of the MPP hosts file has
• MPP hosts file already been specified.
• Shell file/batch file • Functions to generate a mesh during analysis
for parallel comput- execution cannot be used.
ing job execution • Iron Loss conditions cannot be used.
• Care must be taken when performing effi-
ciency map analysis (speed-priority). See
“Execution method notes” below.
• Parallel computing settings within JCF files
can be changed by using environment vari-
ables.
(2-2) None • JCF files (geometry • The name and location of the MPP hosts file
or mesh) have already been specified.
• MPP hosts file • Functions to generate a mesh during analysis
• Shell file/batch file execution are available.
for parallel comput- • Iron Loss conditions can be used. However,
ing job execution with hybrid parallel computing, the loss cal-
culation methods available are limited. For
details, see “Parameter Explanation Edition”.
• Care must be taken when performing effi-
ciency map analysis (speed-priority). See
“Execution method notes” below.
• Parallel computing settings within JCF files
can be changed by using environment vari-
ables.
(3-1) Commercial • JCF files (mesh) • Functions to generate a mesh during analysis
job scheduler • Shell file/batch file execution cannot be used.
for parallel comput- • Iron Loss conditions cannot be used.
ing job execution • Parallel computing settings within JCF files
can be changed by using environment vari-
ables.
(3-2) Commercial • JCF files (geometry • Functions to generate a mesh during analysis
job scheduler or mesh) execution are available.
• Shell file/batch file • Iron Loss conditions can be used. However,
for parallel comput- with hybrid parallel computing, the loss cal-
ing job execution culation method is limited. For details, see
“Parameter Explanation Edition”.
• Parallel computing settings within JCF files
can be changed by using environment vari-
ables.
569
JMAG Version 22.2 User's Manual
Operations
570
Performing Large Scale Calculations Using Parallel Computing
Notes
• Only if the network type is (a) as described in “Prepare the Analysis Hardware Environment
(Network Configuration)” on page 560, can an analysis be executed using this method.
• A solver report file (.html) is generated when the analysis is completed.
• Intermediate files output during analysis execution are automatically deleted.
• Loss calculations using Iron Loss conditions are possible. However, with hybrid parallel comput-
ing, Iron Loss condition [Hysteresis Model] and [Eddy Currents in Steel Sheet] settings cannot
be used.
• For MPP, functions that generate mesh during analysis execution can be used. For example, a
geometry data JCF file in which the [Generate Mesh at Each Step] function has been set can also
be input.
For the functions that generate mesh during analysis execution, see “Execution method notes”
on page 570.
• Jobs for efficiency map analysis (speed-priority) cannot be distributed. For details, see “Execu-
tion method notes” on page 570.
• Changes can be made to parallel computing settings when executing analysis from JMAG-Sched-
uler. For details, see “Parameter Explanation Edition”.
Required files
• JCF files (.jcf ):
Both geometry data and mesh data JCF files can be used.
• MPP hosts file (.txt):
For a description of the MPP hosts file contents, see “Create Input Files” on page 565.
The MPP hosts file is specified in the [Submit to Queue] dialog. The [Submit to Queue] dialog
is displayed when adding a job in JMAG-Scheduler or when adding a job from the JMAG-
Designer [Project Manager] tree to JMAG-Scheduler.
571
JMAG Version 22.2 User's Manual
Operations
Linux
When using a Linux machine, in advance set the following environment variables for all computa-
tion nodes. For details on the setting methods of environment variables, see “Overview Edition”.
Procedures
Add a job on one of the nodes (machines) listed in the MPP hosts file.
Processing not related to parallel computing, such as mesh generation and processing of results, are
performed at the node where the job was added. Therefore, if a job is added on the head node, the
head node may go down due to over-load.
The following is an example of using the procedure:
1. Start JMAG-Scheduler.
2. Select [Job] > [Add Job].
The [Add Job] dialog is displayed.
3. Specify a JCF file and click [Open].
The [Submit to Queue] dialog is displayed.
In this dialog, parallel computing settings within JCF files can be changed (the [Parallel Com-
puting] list). For details, see “Parameter Explanation Edition”.
4. Click [Browse] to the right of [Hosts File] and specify the path of the MPP hosts file.
5. Click [Submit Job].
Interruption procedure
Select [Job] > [Cancel Job] from the JMAG-Scheduler menu bar. Or use [Cancel Job] .
When interrupting using this procedure, the analysis results (.jplot) up to the time of the interrup-
tion can be checked.
572
Performing Large Scale Calculations Using Parallel Computing
Notes
• A solver report file (.html) is not generated after the analysis is completed.
• Intermediate files generated during analysis execution are not automatically deleted.
• Loss calculations using Iron Loss conditions are not possible.
• The functions to generate mesh during analysis execution are not available. For example, a geom-
etry data JCF file in which the [Generate Mesh for Each Step] function is set cannot be input.
For the functions that generate mesh during analysis execution, see “Execution method notes”
on page 570.
• Jobs for efficiency map analysis (speed-priority) cannot be distributed. For details, see “Execu-
tion method notes” on page 570.
• Parallel computing settings within input JCF files can be changed by using environment vari-
ables (JMAG_PARALLEL_TYPE, JMAG_CORES, JMAG_HYBRID_THREADS).
When Parallel computing settings within input JCF files are changed, you should rewrite the -np
option and the -machine option of the shell file/batch file themselves. For details, see “Parameter
Explanation Edition”.
Required files
• JCF files (.jcf ):
Mesh data JCF files can be used. Geometry data JCF files cannot be used.
• MPP hosts file (.txt):
For a description of the MPP hosts file contents, see “Create Input Files” on page 565.
Input the name of the MPP hosts file as an argument of the MPP solver execution command in
the parallel computing execution shell/batch file.
• Shell/batch file for parallel computing execution:
Sample files of shell/batch files are included in the JMAG installation directory. Edit a copy of
one of these sample files and use it.
573
JMAG Version 22.2 User's Manual
Operations
Example:
mpirun -np 8 -machinefile machines.txt /home/user/jam_intel_mpi_b -IN:motor.jcf\
-OUT:binary
Example:
mpiexec -mapall -np 8 -machinefile machines.txt^
"C:\Program Files\JMAG-Designer22.2\jam_intel_mpi_b.exe" -IN:motor.jcf -OUT:binary
574
Performing Large Scale Calculations Using Parallel Computing
Procedures
1. Place JCF files (.jcf) and the MPP hosts file (.txt) in the working folder.
2. Execute the created shell/batch file.
Interruption procedure
Press [Ctrl] + [C] on the keyboard to forcibly terminate the execution.
When interrupting using this procedure, the analysis results (.jplot) up to the time of the interrup-
tion can be checked.
575
JMAG Version 22.2 User's Manual
Operations
Notes
• A solver report file (.html) is generated when the analysis is completed.
• Intermediate files output during analysis execution are automatically deleted.
• Loss calculations using Iron Loss conditions are possible. However, with hybrid parallel comput-
ing, Iron Loss condition [Hysteresis Model] and [Eddy Currents in Steel Sheet] settings cannot
be used.
• For MPP, functions that generate mesh during analysis execution can be used. For example, a
geometry data JCF file in which the [Generate Mesh at Each Step] function has been set can also
be input.
For the functions that generate mesh during analysis execution, see “Execution method notes”
on page 570.
• Jobs for efficiency map analysis (speed-priority) cannot be distributed. For details, see “Execu-
tion method notes” on page 570.
• Parallel computing settings within input JCF files can be changed by using environment vari-
ables (JMAG_PARALLEL_TYPE, JMAG_CORES, JMAG_HYBRID_THREADS).
When parallel computing settings within input JCF files are changed, you should rewrite the -np
option and the -machine option of the shell file/batch file themselves. For details, see “Parameter
Explanation Edition”.
Required files
• JCF files (.jcf ):
Both geometry data and mesh data JCF files can be used.
• MPP hosts file (.txt):
For a description of the MPP hosts file contents, see “Create Input Files” on page 565.
• The name must be “jmag_hosts.txt” or “(JCF file name)+_ hosts.txt”. In the latter case, for
example, if the JCF file name is motor.jcf, the MPP hosts file name will be motor_hosts.txt.
• Place the MPP hosts file in the same folder as the JCF file(s).
• Shell/batch file for parallel computing execution:
Sample files of shell/batch files are included in the JMAG installation directory. Edit a copy of
one of these sample files and use it.
576
Performing Large Scale Calculations Using Parallel Computing
Procedures
Execute the shell file (or batch file) on any one of the nodes (machines) listed in the MPP hosts file.
Processing to add a job is performed on the node where the shell file (or batch file) was executed.
Processing that is not related to parallel computing, such as mesh generation and processing of
results, is performed at the node where the processing to add a job has been performed. Therefore,
executing a shell file (or batch file) at the head node may cause the head node to go down due to
overload.
1. Place JCF files (.jcf) and the MPP hosts file (.txt) in the working folder.
2. Execute the created shell/batch file.
Interruption procedure
Press [Ctrl] + [C] on the keyboard to forcibly terminate the execution.
When interrupting using this procedure, the analysis results (.jplot) up to the time of the interrup-
tion can be checked.
577
JMAG Version 22.2 User's Manual
Operations
Notes
• A solver report file (.html) is not generated after the analysis is completed.
• Intermediate files generated during analysis execution are not automatically deleted.
• Loss calculations using Iron Loss conditions are not possible.
• The functions to generate mesh during analysis execution are not available. For example, a geom-
etry data JCF file in which the [Generate Mesh for Each Step] function is set cannot be input.
For the functions that generate mesh during analysis execution, see “Execution method notes”
on page 570.
• Parallel computing settings within input JCF files can be changed by using environment vari-
ables (JMAG_PARALLEL_TYPE, JMAG_CORES, JMAG_HYBRID_THREADS).
When parallel computing settings within input JCF files are changed, you should rewrite the -np
option and the -machine option of the shell file/batch file themselves. For details, see “Parameter
Explanation Edition”.
Required files
• JCF files (.jcf ):
Mesh data JCF files can be used. Geometry data JCF files cannot be used.
• Shell/batch file for parallel computing execution:
Sample files of shell/batch files are included in the JMAG installation directory. Edit a copy of
one of these sample files and use it.
• Windows
• Sample shell for PBS:
INS_DIR\sample\solver\PBS\go_jmag_mpp_PBS_sample.sh
578
Performing Large Scale Calculations Using Parallel Computing
579
JMAG Version 22.2 User's Manual
Operations
Run MPP Solvers via ExecSolver from Shell/Batch Files with Commercial Schedulers
Uses a commercial job scheduler to perform analysis using MPP or the hybrid parallel computing
function. Starts the MPP solver using ExecSolver, software that manages solver software such as
magnetic field analysis and thermal analysis solver software. Uses a batch/shell file that includes the
ExecSolver execution command.
JMAG-Designer includes sample shell files of typical job schedulers (currently, PBS and LSF are
included).
Notes
• A solver report file (.html) is generated when the analysis is completed.
• Intermediate files output during analysis execution are automatically deleted.
• Loss calculations using Iron Loss conditions are possible. However, with hybrid parallel comput-
ing, Iron Loss condition [Hysteresis Model] and [Eddy Currents in Steel Sheet] settings cannot
be used.
• For MPP, functions that generate mesh during analysis execution can be used. For example, a
geometry data JCF file in which the [Generate Mesh at Each Step] function has been set can also
be input.
For the functions that generate mesh during analysis execution, see “Execution method notes”
on page 570.
• Parallel computing settings within input JCF files can be changed by using environment vari-
ables (JMAG_PARALLEL_TYPE, JMAG_CORES, JMAG_HYBRID_THREADS).
When parallel computing settings within input JCF files are changed, you should rewrite the -np
option and the -machine option of the shell file/batch file themselves. For details, see “Parameter
Explanation Edition”.
Required files
• JCF files (.jcf ):
Both geometry data and mesh data JCF files can be used.
• Shell/batch file for parallel computing execution:
Sample files of shell/batch files are included in the JMAG installation directory. Edit a copy of
one of these sample files and use it.
580
Performing Large Scale Calculations Using Parallel Computing
• Windows
• Sample shell for PBS:
INS_DIR\sample\solver\PBS\go_jmag_mpp_b_patchExec_PBS.sh
INS_DIR\sample\solver\PBS\go_jmag_mpp_b_patchExec_jcf_PBS.sh
INS_DIR\sample\solver\PBS\go_jmag_mpp_b_patchExec_jproj_PBS.sh
Environment
Required/Optional Description
variable
JMAG_USE_MPI Required Defines whether the MPP solver (jam_intel_mpi_b.exe) ref-
_MACHINEFILE erences the MPP hosts file while performing MPP or hybrid
parallel computing.
• If other than 1 is specified for the value of this variable, the
MPP solver does not reference an MPP hosts file, but
rather uses computing resources managed by a commercial
scheduler.
• If 1 is specified for the value of this variable or if this vari-
able is not set, the MPP solver references an MPP hosts
file. In this case, the operation is not guaranteed when the
contents of the referenced MPP hosts file and computing
resources used managed by a commercial scheduler do not
match.
JMAG_MPI_EX- Optional Options sent to the MPI library and their arguments.
TRA_OPTION Use this environment variable if you want to use the MPI
library options when running the MPP solver via ExecSolver.
To use multiple options, enclose them in double-quotes.
• Example: Windows
set JMAG_MPI_EXTRA_OPTION="-np 5 -dapl"
581
JMAG Version 22.2 User's Manual
Operations
582
Performing Large Scale Calculations Using Parallel Computing
583
JMAG Version 22.2 User's Manual
Operations
584
Remote Execution of Analysis and Mesh Generation
This chapter describes how to prepare and process remote execution of analysis and mesh generation.
Remote Execution means running analysis and mesh generation on another machine on the same network as
your machine. Execution commands exchanged between machines and operations that are executed, such as
analysis and mesh generation, are called “jobs”.
Remote execution of analysis is shown in (2) and (3) below:
(1) Analysis executed on a local machine, (2) Analysis executed on a remote machine,
(3) Analysis executed with computation nodes managed by the job scheduler server
585
JMAG Version 22.2 User's Manual
Operations
pass a job from a remote machine to another remote machine ((2)-2: two-step remote execution). In addi-
tion, the Massive Job Runner function and a hosts file allow jobs to be run on multiple remote machines
((2)-3).
MEMO If you are using a Linux remote machine, use SSH (Secure Shell), a communication method for the
secure exchange of data between machines. Job interactions between machines are encrypted and authenticated
using passwords and public/private keys.
• Using computation nodes managed by the job scheduler system:
This is shown in method (3) in the above figure. The job scheduler server allocates jobs sent from the local
machine to the computation node, and the computation node executes the given jobs.
In figure (3), the local machine, the job scheduler server, and the computation node are shown as separate
machines. However, one machine may take on multiple roles such as the local machine and job scheduler
server or the job scheduler server and the computation node.
“JMAG-RemoteSystem” provided by JMAG and commercial products such as PBS, LSF, Slurm can also be
used as a job scheduler system.
586
Remote Execution of Analysis and Mesh Generation
Remote machine/
Local machine job scheduler server Methods
machine
Windows Windows • Using computation nodes managed by JMAG-
RemoteSystem
Windows Linux • Directly using a remote machine
• Using computation nodes managed by JMAG-
RemoteSystem
• Using computation nodes managed by commercial
job scheduler systems
Linux Windows This case is not supported.
Linux Linux • Directly using a remote machine
• Using computation nodes managed by commercial
job scheduler systems
Notes
• Analysis cannot be run using the following functions or tools:
• Snapshot Analysis function of magnetic field analysis
• Inductance calculation tools (motor, bus bar, coil)
587
JMAG Version 22.2 User's Manual
Operations
Required setting
Remote execution
Required setting
environment component
Local machine • Install JMAG-Designer.
• Register remote machine to JMAG-Designer.
Remote machine is added in the [SSH/Execution Script Settings] setting
panel of the [Preferences] dialog.
• Hostname or IP address of the remote machine
• TCP port used for communication between machines
• Login user name on the remote machine
• Settings for SSH authentication (login password or public/private key)
• Shell script files for job execution and job cancellation:
If you select [Run Directly] in [Remote Batch System] in the [SSH/
Execution Script Settings] dialog, these shell scripts will be generated
automatically when the job is submitted.
To use your own shell scripts, please select [Custom Script]. See “Cre-
ating Custom Shell Scripts” on page 591 for the commands to be
written in the script.
• Option settings (maximum number of simultaneous jobs, grouped
jobs)
Remote machine • Install the same versions of JMAG-Designer as your local machine.
Notes
• JMAG-RemoteSystem can be used when Windows is the operating system of the local machine.
Required setting
For details on preparing the execution environments in the JMAG-RemoteSystem, see the “JMAG
Installation Manual”.
588
Remote Execution of Analysis and Mesh Generation
Remote execution
Required setting
environment component
Local machine • Install JMAG-Designer.
• Register the host name or host ID of the job scheduler server
Job scheduler server • Install JMAG-RemoteSystem.
• Register as a server in the job scheduler system.
• Register computation nodes to the job scheduler server.
Computation node (CPU • Install the same versions of JMAG-Designer as your local machine.
node) • Install the same versions of JMAG-RemoteSystem as your job scheduler
server.
Required setting
Remote execution
environment Required setting
components
Local machine • Install the job scheduler system.
• Install JMAG-Designer.
• Register the job scheduler server to JMAG-Designer.
The server is added in the [SSH/Execution Script Settings] setting panel
of the [Preferences] dialog.
• Shell scripts for job submission and cancellation:
If you select [PBS/Torque], [LSF], or [Slurm] in [Remote Batch Sys-
tem] in the [SSH/Execution Script Settings] dialog, these shell scripts
will be generated automatically when the job is submitted.
To use your own shell scripts, please select [Custom Script]. See “Cre-
ating Custom Shell Scripts” on page 591 for the commands to be
written in the script.
• JMAG-Designer installation folders on the computation nodes
• Optional settings (maximum number of simultaneous jobs, JMAG
licensing servers referred to by computation nodes during analysis)
• Option settings for the job scheduler system (setting queues, adding
execution command options, and environment variables)
Job scheduler server See the manual of your job scheduler system.
589
JMAG Version 22.2 User's Manual
Operations
Remote execution
environment Required setting
components
Computation node • Install the same versions of JMAG-Designer as your local machine.
590
Remote Execution of Analysis and Mesh Generation
Notes
• The shell script must be described asynchronously. For example, use a command such as nohup
when describing an analysis execution command.
MEMO For bsub commands and qsub commands, refer to the operation manual of your job sched-
uler system.
Notes
• Sample files do not contain the execution command for JobSystem.
Save destination
• Windows:
C:\Users\(login user name)\JMAG Designer\RemoteMachines\ssh_scripts\
• Linux:
(home directory)/(login user name)/JMAG Designer/RemoteMachines/ssh_scripts/
Sample files
File Description
runjmag.sh Sample shell script that describes job execution commands in a simple for-
mat
canceljmag.sh Sample shell script that describes job cancel commands in a simple format
591
JMAG Version 22.2 User's Manual
Operations
File Description
runjmag_lsf.sh A sample shell script that describes job execution commands for the job
scheduler LSF. bsub is used as a job submission command.
canceljmag_lsf.sh Sample shell script that describes job cancel commands for the job sched-
uler LSF
runjmag_torque.sh A sample shell script that describes job execution commands for the job
scheduler PBS. qsub is used as the job submission command.
canceljmag_torque.sh Sample shell script that describes job cancel commands for the job sched-
uler PBS
runjmagrt.sh Sample shell script that describes job execution commands for creating
RTT files
canceljmagt.sh Sample shell script that describes the job cancel command for creating
RTT files
592
Remote Execution of Analysis and Mesh Generation
Module Description
JCoupled (page 598) JCoupled is a program that controls direct coupled analysis. Describe the
JCoupled execution command in the shell for the following cases:
• When running coupled analysis using a JCF file
• When running direct coupled analysis using the topology optimization
function in two steps.
JCoupled must be called when performing the calculations for each case.
593
JMAG Version 22.2 User's Manual
Operations
Program Description
JobSystem (recom- JobSystem is a program installed since Version 21.1. In addition to manag-
mended) (page 599) ing jobs, JobSystem can control which licenses are used to run jobs.
For more details, see “JobSystem Execution Command” on page 599.
MEMO JobSystem is also called when [Manage Jobs using JMAG Job Sys-
tem] is selected. [Manage Jobs Using JMAG Job System] is displayed in the
following dialogs and tabs:
• The [Submit to Queue] and [Submit Multiple Studies] dialogs in
JMAG-Designer
• The [Submit to Queue] dialog in JMAG-Scheduler
• The [Running] tab in the [Optimization] dialog in JMAG-Designer
• The [Create] tab of all motor setting panels in JMAG-RT Library Man-
ager
GroupedJobRunner GroupedJobRunner can only manage jobs.
(page 607) For more details, see “GroupedJobRunner Execution Command” on page
607.
Syntax
designer\
-w -l logfile.txt (xmlfile_path)
• Example:
/home/user/installation/JMAG222/designer\
-w -l /home/guest/logfile.log "$INFILE"
594
Remote Execution of Analysis and Mesh Generation
Syntax
ExecSolver\
-rt -remote=(SSH RemoteMachine Name) -multi -reservation=(reservation key)\
(inputjcffile_path)\
(parameterXMLfile_path)
• Example 1:
/home/user/installation/JMAG222/solver/bin/ExecSolver\
-remote=SSH_remote001 "$INFILE"
• Example 2:
This is an example of executing an analysis job using the topology optimization function. The -
topology option should be described after ExecSolver.
/home/user/installation/JMAG222/solver/bin/ExecSolver\
-topology -multi "/home/user/work/JMAG/Designer.jcf"
• Example 3:
This is an example of executing a JMAG-RT job.
Set this shell script on a local machine (client). Set the shell script for executing the JCF file job
on a remote machine.
/home/user/installation/JMAG222/solver/bin/ExecSolver\
-rt -remote=RT_SSH_remote002 -multi -reservation="$JMAG_RESERVATION_KEY"\
"$INFILE"\
"$JMAG_EXTRA_FILE_1"
595
JMAG Version 22.2 User's Manual
Operations
596
Remote Execution of Analysis and Mesh Generation
597
JMAG Version 22.2 User's Manual
Operations
Syntax
JCoupled\
-mode=control (paramcouple.xml_path) -restart -step=(total number of analysis steps)
• Example 1:
/home/user/installation/JMAG222/JCoupled\
-mode=control $WorkDir/paramcouple.xml
• Example 2:
/home/user/installation/JMAG222/JCoupled\
-mode=control $WorkDir/paramcouple.xml -restart -step=36
598
Remote Execution of Analysis and Mesh Generation
599
JMAG Version 22.2 User's Manual
Operations
Notes
• When JobSystem is used, the massively parallel processing (MPP) function and the hybrid paral-
lel processing function cannot be used.
• The job management programs and computation node programs write log files to the calculation
directory. The log file records the following information with a timestamp (in milliseconds):
• Job start, stop, and timeout
• License checkout
• Error occurrence
The operation of the computation node is recorded in the log file written by the job manage-
ment program.
A log file name is automatically assigned based on the host name and timestamp.
• The overall progress is updated using a progress file that is frequently updated. The progress file
displays the following information:
• Status of each case (Queued, Suspended, Running, Canceled, Finished, Wait, Error)
• Calculation directory for each case
• Overall progress (%)
MEMO You cannot use the qstat command to check progress.
• At the end of a calculation, the job management program writes a report with the following
information:
• Total time of all computation
• Computation time per job
• Statistical data of computation
• When all jobs are finished, JobSystem terminates.
Syntax
JobSystem\
--jobs=(job file path) --hosts=(host file path) --multi --license-control --debug\
--timeout=(timeout limit) --rerun=(maximum number of rerun)\
--scratch=(template name) --delete-scratch
• Example 1:
/home/user/installation/JMAG222/JobSystem\
--jobs='jobs.xml' --hosts='job_hosts.txt'
• Example 2:
/home/user/installation/JMAG222/JobSystem\
-d -l -j $INFILE --hosts='designer_job_hosts.txt' --timeout=30 --rerun=5\
--scratch='$WORK_DIR/$JOB_ID' --delete-scratch
600
Remote Execution of Analysis and Mesh Generation
601
JMAG Version 22.2 User's Manual
Operations
Required/
Short Option Long Option Argument Description
optional
-m --multi - Optional Uses power simulation licenses (PSL)
when running jobs.
• This option can only be used if you are
using an LM-X license server.
• This option does not need to be speci-
fied when PSL is not used.
• This option works if both of the fol-
lowing conditions are satisfied:
• Environment variable JMAG_MUL-
TI_LICENSE parameter is “1”.
• Environment variable JMAG_PSL_-
CONTROL_xx is not set or value of
JMAG_PSL_CONTROL_xx is 0.
The xx at the end of the variable
name is the solver name (e.g.,
JMAG_PSL_CONTROL_ST).
For more details on PSL, see “License
Edition”.
-l --license-con- - Optional Uses JobSystem to control the number of
trol regular licenses used for each job.
Note the following:
• When JMAG job system manages the
licenses, multiple jobs generated from a
single JPROJ file cannot share a single
PSL license.
• When setting a limit on the number of
PSL licenses used by one job, use the
environment variable JMAG_PSL_-
MAX.
-d --debug - Optional Writes additional information to the log
file.
- --timeout Timeout Optional When a job is not finished within the
time (min) time specified in the argument, JobSys-
tem terminates that job.
• Specify a number that is equal to or
greater than 1 and less than 35791.
Specify an integer. The unit of timeout
time is minutes and the default is 10
minutes.
• Jobs with multiple analysis such as cou-
pled analysis or magnetic field analysis
using Iron Loss conditions, will time
out when the total time elapsed exceeds
the timeout limit.
602
Remote Execution of Analysis and Mesh Generation
Required/
Short Option Long Option Argument Description
optional
• Operation will change depending on
the settings in [Resubmit Jobs on
Remote Machine] in JMAG-Sched-
uler.
When [Resubmit Jobs on Remote
Machine] is selected, jobs time out in
units of single cases.
When [Resubmit Jobs on Remote
Machine] is cleared, jobs time out in
units of (total number of cases/number
of simultaneously run jobs). For exam-
ple, if the total number of cases is 100
and the simultaneously run number of
jobs is 5, the job times out when the
total time elapsed for calculation of 20
cases has exceeded the timeout limit.
• The --timeout option can also be used
for analysis jobs to create JMAG-RT
models using JMAG-RT.
- --rerun Maximum Optional The --rerun option is effective when the
number of settings for timeout have been made.
retries For jobs that have been terminated, the
job will continue to rerun until the speci-
fied integer of jobs is reached.
• Specify an integer equal to or greater
than 0.
• The --rerun option can also be used for
analysis jobs to create JMAG-RT mod-
els using JMAG-RT.
- --scratch Template Optional This creates a directory in the scratch
for creating space (a temporary storage space for user
a scratch data) of each computation node and cop-
directory on ies the calculation data from the submit-
computa- ting machine to that directory.
tion nodes Using the scratch space has the following
benefits:
• When a shared disk cannot be used for
FEA calculations, scratch space can be
used instead.
• When running multiple jobs on a slow
shared disk, the scratch space can be
used to reduce the number of data cop-
ies between the shared disk and com-
putation nodes or between the control
node and computation nodes, thereby
improving performance.
603
JMAG Version 22.2 User's Manual
Operations
Required/
Short Option Long Option Argument Description
optional
The directory created in the scratch space
of a computation node is called the
scratch directory. This directory is cre-
ated according to the template specified
in the argument.
Templates
Templates support the following key-
words:
• $WORK_DIR:
Work directory name, which is defined
by the environment variable WorkDir
when the JMAG JobSystem is run
• $USER:
User ID
• $NODE_ID:
Computation node ID, which is gener-
ated by the JMAG JobSystem and
assigned to each computation node.
• $JOB_ID:
Job ID. This ID will only have a value
if jobs are run from PBS, LSF, or
SLURM.
604
Remote Execution of Analysis and Mesh Generation
Required/
Short Option Long Option Argument Description
optional
• Result files and log files written to the
scratch space of a computation node
are processed according to the result
transfer options (such as [Leave results
on remote machine]) in JMAG-Sched-
uler and the [Optimization] dialog.
- --delete-scratch - Optional Deletes files from the scratch space on
each computation node when the job is
finished.
If [Leave Results on Server] is selected in
the result transfer options and the --
delete-scratch option is not used, [Load
Multi Case Results] cannot be performed
after calculations have finished.
File Description
JobSystem execution Job To export this file, select [File Export for JMAG JobSystem Execution]
file (.xml) under [Machine (Server)] in the submit-jobs-to-JMAG-Scheduler dialogs
and click [Export].
605
JMAG Version 22.2 User's Manual
Operations
File Description
Note the following:
• When using a JobSystem execution Job file, the following files are
required in the work directory:
• JobSystem execution Job file
• JPROJ file
• Files (JCF files, paramcouple.xml, etc.) and folders exported with the
JobSystem execution Job file:
Depending on the type of analysis, some files and folders are exported
with the JobSystem execution Job file. These files and folders are used
with the JobSystem execution job file. Do not change the names or
folder structure of the exported files.
• Shell script file:
You must create this file yourself.
In this file, define the environment variables (InsDir, WorkDir,
JSOL_LICENSE_PATH, INFILE) required for the calculation. Refer
to the following function tutorial, which contains a sample of this file.
[JFT 179] Simultaneous Multi-Case Execution from CUI on HPC/
Cluster
• Scheduler job files (.xml) cannot be used for input files to JobSystem.
Text file format (.txt) Use a text editor to create this file.
Write the full path of one input JCF file in each line. The figure below
describes the paths of six input files.
606
Remote Execution of Analysis and Mesh Generation
Notes
• When [Execute grouped jobs together] in the [Create Remote Machine] dialog is selected, jobs
will begin after input JCF files for all jobs are written and transferred to remote machines (or job
schedulers). Jobs are not started sequentially from the initially transferred job.
• When using commercially available job schedulers, grouped jobs cannot be canceled or resub-
mitted individually.
• Errors will occur if licenses to execute grouped jobs cannot be secured.
• In the environments where there are only regular licenses, or environments where there are both
regular licenses and Power Simulation Licenses (hereafter referred to as PSLs), when executing
jobs using MJR, the MJR driver (GroupedJobRunner) reserves regular licenses immediately prior
to using those regular licenses. This is a measure to prevent jobs from terminating due to an
insufficiency of licenses while jobs are being executed.
When reserving licenses in environments where there are both regular licenses and PSLs, settings
for the environment variables JMAG_PSL_CONTROL_xx and JMAG_LI-
CENSE_COUNT_xx are referenced (with solver names entered in the xx at the end of the vari-
able names).
• JMAG_PSL_CONTROL_xx specifies whether to use PSL (1: Use only PSL for single jobs,
2: Also use regular licenses in addition to PSL for single jobs). For details, see “Licenses Edi-
tion”.
• JMAG_LICENSE_COUNT_xx specifies the upper limit for jobs to be executed simultane-
ously using regular licenses. For details on the JMAG_LICENSE_COUNT_xx type, see
“Environment Variables Required for Remote Execution” on page 611.
The number of licenses to be reserved is determined based on the following rules:
607
JMAG Version 22.2 User's Manual
Operations
When the number of jobs to be executed simultaneously via the value of JMAG_LI-
CENSE_COUNT_xx (the number of reserved licenses) is particularly large, GroupedJobRunner
sets JMAG_LICENSE_CHECK_WAITING for the portion of jobs that exceeds the number of
license reservations.
JMAG_LICENSE_CHECK_WAITING is an environment variable for specifying job execution
in a waiting status until licenses become available. For details, see “Licenses Edition”.
Required settings
When grouping jobs submitted via SSH, the following settings are required:
• Select [Execute grouped jobs together] in the [Create Remote Machine] dialog.
• Add commands to operate the driver (GroupedJobRunner) for grouping process to the shell
script specified in [Run Job Script] and [Cancel Job Script].
• An example is shown below. For command arguments, see “GroupedJobRunner execution and
termination commands” on page 609.
Example 1:
if [["$ IS_GROUPED_JOB" == 1]]
then
$ InsDir/GroupedJobRunner start -in=$INFILE
else
$ InsDir/solver/bin/ExecSolver $INFILE
fi
Example 2:
This is an example of executing a JMAG-RT jobs.
if [["$ IS_GROUPED_JOB" == 1]]
then
./GroupedJobRunner start -in=$INFILE
else
./ExecSolver "$INFILE"
fi
608
Remote Execution of Analysis and Mesh Generation
• Cancel command:
Deletes jobs on a management server. Jobs to be deleted can be specified with the -job option. If
the -job option was not specified, all grouped jobs are deleted.
GroupedJobRunner stop [-job=job_name]
Job progress can be confirmed from SSH client machines using the following command:
• Command for confirming progress:
Displays the progress status of all jobs within a job group to standard output.
GroupedJobRunner status
609
JMAG Version 22.2 User's Manual
Operations
Required/
Option Argument Description
Optional
-machinefile MPP hosts Optional Option for execution.
file (.txt) This file defines the name of the nodes (machines) used for
name calculations, as well as the maximum number of processes
that those nodes can execute.
When using a commercially available job scheduler, use the
machine files generated by that job scheduler.
When using JMAG-Scheduler, enter node names (or IP
addresses) and the number of processes for each node in a
text file using a text editor.
A sample file is shown below. In this example, four processes
are allocated on machines 01 to 04.
610
Remote Execution of Analysis and Mesh Generation
Required/
Option Argument Description
Optional
-use_multi None Optional Option for using Power Simulation Licenses (PSL).
Power Simulation Licenses can be used when using LM-X
license servers.
Using this option can obtain the same effect as specifying “1”
as the value for the environment variable JMAG_MUL-
TI_LICENSE. For details on JMAG_MULTI_LICENSE,
see “Environment variables set by JMAG-Scheduler” on
page 611.
611
JMAG Version 22.2 User's Manual
Operations
612
Remote Execution of Analysis and Mesh Generation
In order to perform error checks after executing shell scripts, create shell
scripts so that error content is output to script error files.
As an example, users can take advantage of this environment variable by
redirecting the standard error output of each command in a shell script to
this environment variable.
Example:
echo "$InsDir/solver/bin/ExecSolver \"$INFILE\" > $WorkDir/
tmp.log" | qsub -V -l nodes=1:ppn=8 -q med -j oe -o /dev/
null -N "JMAG" 1> $WorkDir/job.id 2>$JMAG_SCRIPT_ERROR_OUT
613
JMAG Version 22.2 User's Manual
Operations
These are environment variables for use with Power Simulation Licenses (PSLs). For details, see
“Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of magnetic field static analy-
TROL_ST sis (2D, 3D, axisymmetric) PSLs (JW_MAG_ST_MULTI). For details, see
“Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of magnetic field transient
TROL_DP analysis (2D, axisymmetric) PSLs (JW_MAG_DPL_MULTI). For details,
see “Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of magnetic field transient
TROL_TR analysis (3D) PSLs (JW_MAG_TR_MULTI). For details, see “Licenses
Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of magnetic field frequency
TROL_FQ analysis (2D, 3D, axisymmetric) PSLs (JW_MAG_FQ_MULTI). For
details, see “Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of iron loss analysis PSLs
TROL_LS (JW_TOOL_LOSS_MULTI). For details, see “Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of thermal analysis (3D) PSLs
TROL_HT (JW_HEAT_MULTI). For details, see “Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of structural analysis (2D,
TROL_DS 3D) PSLs (JW_DS_MULTI). For details, see “Licenses Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of electric field analysis (2D,
TROL_EL 3D, axisymmetric) PSLs (JW_ELEC_MULTI). For details, see “Licenses
Edition”.
JMAG_PSL_CON- Environment variable for controlling the use of parallel computing func-
TROL_PA2 tion (shared memory-type (SMP)) PSLs (JW_MAG_SMP_MULTI). For
details, see “Licenses Edition”.
614
Remote Execution of Analysis and Mesh Generation
These are environment variables used together with the Massive Job Runner function. For details, see
“Adding Remote Machines and Job Scheduler System Settings on the Local Machine” on page 617.
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_ST cuted simultaneously using the regular licenses (JW_MAG_ST) of mag-
netic field static analysis (2D, 3D, axisymmetric).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_DP cuted simultaneously using the regular licenses (JW_MAG_DPL) of mag-
netic field transient analysis (2D, axisymmetric).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_TR cuted simultaneously using the regular licenses (JW_MAG_TR) of mag-
netic field transient analysis (3D).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_FQ cuted simultaneously using the regular licenses (JW_MAG_FQ) of mag-
netic field frequency analysis (2D, 3D, axisymmetric).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_LS cuted simultaneously using the regular licenses (JW_TOOL_LOSS) of
iron loss analysis.
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_HT cuted simultaneously using the regular licenses (JW_HEAT) of thermal
analysis (3D).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_DS cuted simultaneously using the regular licenses (JW_DS) of structural anal-
ysis (2D, 3D).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_EL cuted simultaneously using the regular licenses (JW_ELEC) of electric field
analysis (2D, 3D, axisymmetric).
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_PA2 cuted simultaneously using the regular licenses (JW_MAG_SMP) of the
parallel computing function.
The parallel computing function includes the following:
• Shared memory multiprocessing type (SMP)
• Massively parallel processing type (MPP)
• Hybrid type (SMP+MPP)
• Using the GPU (Graphics Processing Unit) via the previous GPU solver
JMAG_LI- Environment variable for specifying the upper limit value of jobs to be exe-
CENSE_COUNT_RM cuted simultaneously using regular licenses for automatically generating
mesh via remote machines (JW_ACIS_REMOTE_MESH).
615
JMAG Version 22.2 User's Manual
Operations
These are environment variables for using cache for calculations. For details, see “Using Cache for Cal-
culations with Environment Variables” on page 416.
JMAG_USE_CACHE Environment variable for using cache for calculations.
616
Remote Execution of Analysis and Mesh Generation
617
JMAG Version 22.2 User's Manual
Operations
• Example 1 (Linux):
In this example, the same execution as when selecting [Remote Machine (SSH)] in the [SSH/
Execution Shell Settings] dialog occurs (this execution occurs when “--address” is included).
/home/jmag/works/designer createSSH --title="remotemachine"\
--address=10.10.10.10 --port="22" --user=user01 --password=aaaaa --sh="runjmag.sh"\
--cancel_sh="canceljmag.sh" -job_control=on -max_job=5
• Example 2 (Linux):
In this example, the same execution as when selecting [Local Machine] in the [SSH/Execution
Shell Settings] dialog occurs.
618
Remote Execution of Analysis and Mesh Generation
619
JMAG Version 22.2 User's Manual
Operations
Exporting Settings
To export the settings of a remote machine and its shell script to a file, execute the exportSSH com-
mand. Only settings specified or all the settings can be exported.
• Command (Linux):
(JMAG installation directory)/designer exportSSH "all or SSH settings title"\
"directory path"
• Example 1 (Linux):
In this example, all settings are exported to “/home/jmag/data”.
/home/jmag/works/designer/designer exportSSH all /home/jmag/data
• Example 2 (Linux):
In this example, the settings titled “remotemachine” are exported to “/home/jmag/data”.
/home/jmag/works/designer/designer exportSSH remotemachine /home/jmag/data
Importing Settings
To import the settings of a remote machine and its shell script from a file, execute the importSSH
command.
• Command (Linux):
(JMAG installation directory)/designer importSSH "SSH settings file"
• Example 1 (Linux):
In this example, the settings titled “remotemachine” are imported.
/home/jmag/works/designer/designer importSSH remotemachine
• Example 1 (Linux):
In this example, a connection test is performed on the “remotemachine” setting.
/home/jmag/works/designer/designer connectTestSSH remotemachine
620
Remote Execution of Analysis and Mesh Generation
621
JMAG Version 22.2 User's Manual
Operations
622
Remote Execution of Analysis and Mesh Generation
Run Analysis and Mesh Generation from JMAG-Designer Using Remote Machines
623
JMAG Version 22.2 User's Manual
Operations
624
Multiple Calculations
(Parametric Analysis and Optimization)
Running Calculations of Multiple Cases with Some
Parameters as Variables
CASE_2 70 turns
6 ohm
600 r/min CASE_5 70 turns CASE_9 70 turns
8 ohm 8 ohm
600 r/min 700 r/min
CASE_3 90 turns
CASE_4 110 turns 6 ohm
6 ohm 600 r/min CASE_6 70 turns
600 r/min 9 ohm
600 r/min
CASE_7 70 turns
10 ohm
600 r/min
Example
The results obtained from each parameter setting can be viewed in one graph.
The parameter that varies with each case to evaluate its effect on the result is called “design parameter” and the
real value that defines the physical quantity to evaluate in each case is called “response value” in the following
descriptions.
MEMO Parametric analyses can be run from the [Analysis Parameter View] dialog. The input parameters of a study
can be confirmed in a single window in the [Analysis Parameter View] dialog. For details, see “Input Parameter and
Result Items List Display” on page 725.
627
JMAG Version 22.2 User's Manual
Operations
628
Running Calculations of Multiple Cases with Some Parameters as Variables
629
JMAG Version 22.2 User's Manual
Operations
630
Running Calculations of Multiple Cases with Some Parameters as Variables
1. When using dimension variables other than input parameters as design variables, set
constraints to locations to be used as design variables in Geometry Editor.
The extrude feature [Height] and the rotation extrude feature [Angle], etc., are input parameters,
and therefore do not require constraint settings.
For example, set the distance constraint as shown in the lower left figure. The constraints set in
Geometry Editor are displayed in the [Select CAD Parameters] dialog as shown in the lower right
figure.
631
JMAG Version 22.2 User's Manual
Operations
This setting is useful when wanting to change the value of a parameter in response to geometry
changes in parametric analysis or optimization.
i. In the [Project Manager] tree, right-click [Case Control].
ii. Click [Add Measurements].
iii. In the [Add Measurements] setting panel, define variables.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
The added variables are displayed under [Measurement] in the [Project Manager] tree.
[Edit] and [Delete] are displayed as menus after right-clicking one of these variables.
MEMO If a study has results, then the measurement variables in the study cannot be deleted.
1. Register material data to bookmarks to be used as values for design variables, or add to
[Materials] in the [Project Manager] tree.
632
Running Calculations of Multiple Cases with Some Parameters as Variables
633
JMAG Version 22.2 User's Manual
Operations
1. In the [Generate Parametric Cases] dialog, decide the value of the design variable and
create a case for each value.
i. In the [Project Manager] tree, right-click [Case Control].
ii. Click [Create Cases].
The [Generate Parametric Cases] dialog is displayed. A list of design variables specified in the
study is displayed.
iii. Select [Type] and click [Edit]. Since a different dialog opens depending on [Type], set
the parameters and click [OK].
For details on parameters, see “Parameter Explanation Edition”.
iv. In the [Generate Parametric Cases] dialog, confirm the setting of each design vari-
able.
The lower part of the [Generate Parametric Cases] dialog shows the number of cases created
from combinations of each of the design variable values.
v. Click [Generate].
The [Design Table] dialog is displayed.
2. Check the cases created in the [Design Table] dialog.
The [Design Table] dialog cannot only be opened from the [Generate Parametric Cases] dialog,
but also from the following procedure:
i. In the [Project Manager] tree, right-click [Case Control].
ii. Click [Design Table].
iii. Check the cases in the [Design Table] dialog.
In the [Design Table] dialog, the case number, label, geometry status, group to which it
belongs, and values of the design variables are displayed for each case.
For details, see “Parameter Explanation Edition”.
3. Click [OK].
4. When creating multiple cases different in CAD parameter value, geometry of each case
can be checked by switching display case in graphics window using the case control bar.
MEMO When the window synchronization option for Geometry Editor is enabled, changing the
display case on the JMAG-Designer also changes the display case on the Geometry Editor.
634
Running Calculations of Multiple Cases with Some Parameters as Variables
635
JMAG Version 22.2 User's Manual
Operations
636
Running Calculations of Multiple Cases with Some Parameters as Variables
637
JMAG Version 22.2 User's Manual
Operations
iii. In the [Graph] dialog, select [Calculation] > [Response Graph Data].
MEMO When the data is from the same study and the same result, the data will be displayed in
the menu as one even if the case is different.
iv. In the [Create Response Graph Data] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
v. Click [OK].
vi. In the [Table] dialog, click [Register as Response Data].
The response values are added under [Response Graph] > [Response Data] in the [Project
Manager] tree.
vii.To export response value results data for all cases to file (.csv, .txt, .html), click
[Export All].
The [Export Data] dialog is displayed. Specify the file name, file type, and destination folder
and click [Save].
638
Running Calculations of Multiple Cases with Some Parameters as Variables
1. Extract vector data from the result data and add it as a variable.
Vector data can be created in the [Create Vector Expression Data] dialog.
Here, the [Create Vector Expression Data] dialog is displayed from the [Calculation] menu in
the [Graph] dialog
i. In the [Project Manager] tree, under [Results], right-click [Graphs].
ii. Select (physical quantity name)> [Show].
For example, select [Torque] > [Show] as indicated in the figure below.
639
JMAG Version 22.2 User's Manual
Operations
iii. In the [Graph] dialog, select [Calculation] > [Response Graph Data].
iv. In the [Response Graph Data] dialog, set the parameters and click [OK].
The response values are added under [Response Graph] > [Response Data] in the [Project
Manager] tree.
640
Running Calculations of Multiple Cases with Some Parameters as Variables
1. If necessary, create a calculation expression to be used in the X-axis and Y-axis of the
response graph.
i. Right-click [Response Data] under [Response Graph] in the [Project Manager] tree.
ii. Select [Create Expression].
iii. In the [Edit Expression] dialog, define expressions.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
The created expressions is added under [Response Graph] > [Response Data] in the [Project
Manager] tree.
Also, the expressions created on [X-axis] and [Y axis] in the [Response Graph] dialog will be
displayed.
2. Create a response graph.
i. Right-click [Graphs] under [Response Graph] in the [Project Manager] tree.
ii. Select [Generate].
iii. In the [Response Graph] dialog, set the graph.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
The [Graph] dialog opens and the response graph is displayed.
The created formula is added under [Response Graph] > [Graph] in the [Project Manager]
tree. Right-clicking the response graph displays a menu with [Show], [Edit], [Edit Descrip-
tion], [Duplicate], [Delete].
3. Check the response graph.
641
JMAG Version 22.2 User's Manual
Operations
642
Formulating Objective-Based Optimal Designs
643
JMAG Version 22.2 User's Manual
Operations
644
Formulating Objective-Based Optimal Designs
vi. From the [Output] tab, specify the output path to the CSV file where the objective
function values in each case is output and the output path to the restart file, as nec-
essary.
vii.Set execution methods of optimization jobs in the [Running] tab.
viii.Execute optimization.
4. Check the optimization results.
See “Check Parameter Optimization/Topology Optimization Results” on page 654.
• Response values table
• Correlation matrix
• Response Graph
5. If necessary, change the value of parameters and re-run the optimization.
See “Resuming Optimizations” on page 657.
645
JMAG Version 22.2 User's Manual
Operations
ii. Under the [Objective Functions] tab, define response value variables and objective
functions.
iii. Under the [Options] tab, select an optimization engine.
When using only one objective function, select [Genetic Algorithm (Topology)].
When using multiple objective functions, select either [Multi-Objective Genetic Algorithm
(Topology)] or [Multi-Objective Genetic Algorithm (Topology, Used until V20.0)].
iv. From the [Output] tab, specify the output path to the CSV file where the objective
function values in each case is output and the output path to the CSV file where
Gaussian weight is calculated, as necessary.
v. Under the [Running] tab, set for example the optimization job execution method.
vi. Execute optimization.
3. Check the optimization results.
See “Check Parameter Optimization/Topology Optimization Results” on page 654.
• Response table
• Correlation matrix
• Response graph
4. To resume optimization, change the parameter value and rerun the optimization.
See “Resuming Optimizations” on page 657.
5. When recalculating the calculation case created by optimization calculation, use the
weight CSV file to recreate the calculation case.
See “Recreating Calculation Case of Topology Optimization” on page 659.
646
Formulating Objective-Based Optimal Designs
[Magnetic Flux Density], [Magnetic Energy], [Eddy Current Density], [Magnetic Flux
Density Squared], [Mean Compliance], [Volume], [Stress], or magnetization direction
• Perform [Torque: Nodal Force] condition settings to use the following objective func-
tions:
[Torque] or [Torque Ripple]
• Perform Magnetic Flux condition settings to use the following objective functions:
[Flux]
• Perform [Force: Nodal Force] condition settings to use the following objective functions:
[Electromagnetic Force]
• Perform FEM Coil condition or FEM Conductor condition settings to use the following
objective functions:
[Inductance]
MEMO [Mean Compliance] is the amount of area integration of the product of load and dis-
placement.
v. The same as in a regular analysis, perform material, condition, and study property
settings, and perform mesh generation.
Select [Initial Magnetization] in the [Output Control] setting panel in the [Study Properties]
dialog, when making the magnetization direction an objective function. With this setting, the
magnetization direction of the magnet in each case can be checked after the optimization.
Topology optimization (sensitivity analysis) functions have some limitations. Carefully check
the notes on optimization and the description on the Topology Optimization (Sensitivity
Analysis) condition in “Parameter Explanation Edition”.
MEMO When performing distributed processing for multiple cases on multiple machines, it may
take some time to transfer results files. By performing the following settings in the [Output Con-
trol] setting panel in the [Study Properties] dialog before analysis execution is performed, the size
and number of results files are reduced, and the time required for file transfer and overall compu-
tation time can be reduced.
• Select [Output Table Results Only. (No Mesh will be output)].
• Clear unnecessary physical quantity outputs in [Output Results].
2. Set optimization parameters and execute.
See “Running Optimizations” on page 650.
i. Open the [Optimization] dialog.
ii. Under the [Objective Functions] tab, define the objective functions to use.
iii. Under the [Options] tab, select [Sensitivity Analysis] for [Optimization Engine].
iv. From the [Output] tab, specify the output path to the CSV file where the objective
function values in each case is output.
To check objective function values in each case after a topology optimization (sensitivity anal-
ysis), set the CSV file path. The objective function values for each case in a topology optimi-
zation (sensitivity analysis) cannot be checked in JMAG-Designer.
v. Under the [Running] tab, set for example an optimization job execution method.
vi. Execute optimization.
3. Check the topology optimization (sensitivity analysis) results.
See “Checking Optimization Results” on page 654.
4. If necessary, change the parameter values and re-execute the optimization.
647
JMAG Version 22.2 User's Manual
Operations
648
Formulating Objective-Based Optimal Designs
649
JMAG Version 22.2 User's Manual
Operations
Running Optimizations
For each parameter used for optimization, it is necessary to specify the range in which to search for
the optimum value. These settings are performed in the [Optimization] dialog.
The [Optimization] dialog can also be opened by clicking the shortcut icon .
2. Set the range of values of design variables in the [Constraint Conditions] tab.
i. Click the [Constraint Conditions] tab.
Design variables are displayed in the upper half and constraints are shown in the lower half.
ii. Input [Variable], [Min], and [Max] of each design variable displayed in [Parametric
Variable Range].
A range of values of the design variable is defined.
MEMO Clear the checkboxes on the left side of the table for design variables for whose current
case values are to be used and not changed during optimization processing. The [Max] and [Min]
settings become unnecessary.
iii. If necessary, set the constraints for parametric variables. Click [Add] under [Paramet-
ric Variable Constraints].
The [Edit Expression] dialog is displayed. In this dialog, expressions can be used to limit the
values of design variables. For example, suppose that the design variable “aa” is suppressed to
1/2 or less of the design variable “bb”, and becomes “aa/bb <= 0.5”.
MEMO The expression of the constraint conditions can also be edited with the following proce-
dure.
• Right-click the constraint condition displayed under [Response Data] in the [Project Manager]
tree, and select [Edit].
iv. Set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
v. Click [OK].
The expression you created appears in the [Optimization] dialog.
3. Set the response values to be used in the objective function in the [Objective Functions]
tab. In addition, the objective function (optimization target) is defined using the
response value that was set.
650
Formulating Objective-Based Optimal Designs
651
JMAG Version 22.2 User's Manual
Operations
6. From the [Output] tab, specify the output path to the CSV file and restart file where the
case results are output.
For details on parameters, see “Parameter Explanation Edition”.
7. In the [Running] tab, specify the execution method of the job for each case of optimiza-
tion, the machine that performs optimization control, and whether check geometry at
job execution time.
An “Optimization controller” uses an optimization engine to generate new cases based on the
results of each case in the [Optimization] dialog settings.
Cases created by optimization control are executed on each machine as jobs.
8. Click [Check] and check that the settings are correct.
If there is a mistake in setting, the [Input Error] dialog is displayed. Check that the displayed
message and data are correct.
9. Click [Run] or [Submit] at the bottom of the [Optimize] dialog to execute the optimiza-
tion.
• When [Run in Foreground] is selected under [Optimization Controller] in the [Running]
tab, the [Run] button is displayed.
• When [Submit Job Using Same Machine Settings as Analysis Jobs] is selected under [Optimi-
zation Controller] in the [Running] tab, the [Submit] button is displayed.
When clicking [Submit], a message displays asking whether or not to save the project, so
optionally click either [Yes] or [No].
A JPROJ file is added to the launched instance of JMAG-Scheduler as a job, and the optimi-
zation begins automatically.
• When [Submit Job Using Different Machine Settings (Submit Dialog will be Shown)] is
selected under [Optimization Controller] in the [Running] tab, the [Submit...] button is dis-
played.
Clicking [Submit...] opens the [Submit to Queue] dialog. In this dialog, apply settings for the
machine running the optimization controller.
Clicking [Submit Job] displays a message prompting the user whether or not to save the proj-
ect currently being displayed. Select either [Yes] or [No].
A JPROJ file is added to the launched instance of JMAG-Scheduler as a job, and the optimi-
zation begins automatically.
10.Check the progress status of the optimization and the occurrence status of the error.
• When an optimization is executed in the foreground (when [Run in Foreground] is selected
under [Optimization Controller] in the [Running] tab):
It can be checked in the [Optimization] dialog and [Run Analysis] dialog displayed after
clicking [Run].
• In the [Run Analysis] dialog, the progress of each job is displayed.
• The [Optimization] dialog shows the execution status of the case, the target values and
their tabs. The minimum value, maximum value and convergence status graph of the tar-
get value are displayed on each tab. For multi-objective optimization, a convergence status
graph is displayed on a tab different for each target value.
• When an optimization is executed in the background (when [Submit Job Using Same
Machine Settings as Analysis Jobs] or [Submit Job Using Different Machine Settings] is
selected under [Optimization Controller] in the [Running] tab):
• The progress status can be confirmed using the CSV file output to the path specified
under [CSV Output] in the [Output] tab.
652
Formulating Objective-Based Optimal Designs
• The error occurrence status can be confirmed using a Log file. The Log file can be
exported to the specified location using the “-l” option when launching JMAG-Designer
from the command line. For “-l” option, see “Screen Configuration Edition”.
• When batch execution for optimization is performed using only the local machine, the calcu-
lation will not proceed unless 2 or more is specified in the [Simultaneous Number of Jobs] box
of JMAG-Scheduler [Setting Number of Jobs] dialog. This is because “optimization control” is
counted as one job and “calculation of job” is counted as one job.
To edit the [Simultaneous Number of Jobs] value, select [Setting] > [Number of Jobs] from
the menu bar in the JMAG-Scheduler main window. The [Setting Number of Jobs] dialog is
displayed.
MEMO If topology optimization (sensitivity analysis) is performed in the foreground, the [Load Topol-
ogy Optimization Results] dialog appears after the computing is completed. Specify the range of cases to
import into the study and click [OK].
653
JMAG Version 22.2 User's Manual
Operations
654
Formulating Objective-Based Optimal Designs
MEMO The sorted columns can be restored by selecting [Reset Sort] from the menu displayed by
right-clicking the table.
ii. Click [Close].
5. Display correlation matrix as necessary.
The correlation matrix of each calculated case result can be displayed.
i. In the [Project Manager] tree, under [Response Graph], right-click [Response Data]
and select [View Correlation].
The [Correlation Matrix] dialog is displayed.
Response value, objective function, and constraint condition are written in the heading of
each row and column of the correlation matrix. The scatter graph is displayed on the lower
left, histogram on the diagonal line, and “correlation coefficient” on the top right.
Values ranging from -1 to 1 are displayed as the correlation coefficient. The larger the abso-
lute value, the higher the correlation. The smaller the absolute value, the lower the correla-
tion. The background color of the correlation coefficient is red when the value is positive,
blue when the value is negative, and white when it is zero.
MEMO The graph is expanded when a graph is clicked. The original size is restored by clicking
again.
ii. Click [Close].
6. Display a graph of the response surface.
Create response curve graphs based on the results of each calculated case.
i. In the [Project Manager] tree, under [Response Graph], right-click [Response Data]
and select [View Response Graph].
ii. In the [Response Surface] dialog, under the [Select Cases] tab, select the checkboxes
for cases to create a response surface. Additionally, select a graph interpolation
method.
When as many cases as necessary to display the graph of the response surface on the [Select
Cases] tab are selected, the [Response Graphs] tab is activated.
iii. In the [Response Graphs] tab, check the graph of the response surface.
iv. Click [Close].
655
JMAG Version 22.2 User's Manual
Operations
iv. If necessary, from the menu bar, select [File] > [Save].
Save the project after the cases have been loaded.
For a study in which topology optimization results are being loaded, the [Save Topology
Optimization Results] dialog is displayed.
IMPORTANT From the selection made in the [Save Topology Optimization Results]
dialog, cases not yet loaded may be deleted.
3. Check the material density distribution.
i. In the [Project Manager] tree, right-click [Results] or [Result Items].
ii. Select [New Contour Plot].
iii. In the [Contour Plot] setting panel, select [Continuous Variables (Node)] for [Result
Type].
Set other parameters as desired.
MEMO When [Shaded] or [Isolines] is selected and the checkbox for [Subdivide Quadrilateral
Faces] is selected, the contour line is adjusted and becomes smooth.
iv. Click [OK].
The created contour plot is added under [Contour Plots] in the [Project Manager] tree.
v. When multiple contour plots are created in a study, in the [Project Manager] tree,
from [Contour Plots], select the [Continuous Variables (Node)] contour plot.
656
Formulating Objective-Based Optimal Designs
Resuming Optimizations
Restart the terminated optimization from the point it was terminated. Or, restart the interrupted
optimization from the first case of the generation at the time of the interruption.
MEMO The restart of optimization corresponds to the following engines provided by JMAG.
• [Genetic Algorithm]
• [Multi-Objective Genetic Algorithm]
• [Genetic Algorithm (Topology)]
• [Multi-Objective Genetic Algorithm (Topology)]
• [Multi-Objective Genetic Algorithm (Topology, Used until V20.0)]
• [Sensitivity Analysis]
MEMO The optimization may be redone from the beginning depending on the parameters that were
changed. Before making changes, confirm the parameters that do not support changes in the “Parameter
Explanation Edition”.
Parameter Optimization
1. When resuming an optimization that has been batch executed, load the results of the
optimization into the study once before resuming.
See “Checking Optimization Results” on page 654 for the procedure.
If you resume without loading the results, the information of the case before resume will be over-
written at the resume, and you will not be able to check the results that were output before the
resume.
2. Open the [Optimization] dialog.
See “Running Optimizations” on page 650.
3. Click the [Options] tab.
4. To resume a parameter optimization with GA/MOGA that was performed in the back-
ground using remote machines, set the SAV file (.sav) to be used.
Specify the SAV file that is specified in the [Restart File Output] in the [Output] tab when the
optimization to be resumed is performed. The SAV file contains the information needed to
resume the calculation.
i. Click [Set Restart From File].
ii. In the [Get Optimization Restart File] dialog, specify the SAV file to be used, and click
[Open].
The SAV file to be used for the calculation will be set.
5. Select [Restart From Generation xx].
A number will be assigned to the “xx” part.
6. Change each parameter as required.
7. Click [Run] or [Submit].
See step 9 and after in “Running Optimizations” on page 650.
The [Optimization] dialog will close and optimization will be run until it has reached the num-
ber of maximum generations.
657
JMAG Version 22.2 User's Manual
Operations
Topology Optimization
1. When resuming an optimization that has been batch executed, load the results of the
optimization into the study once before resuming.
See “Checking Optimization Results” on page 654 for the procedure.
If you resume without loading the results, the information of the case before resume will be over-
written at the resume, and you will not be able to check the results that were output before the
resume.
2. Open the [Optimization] dialog.
See “Running Optimizations” on page 650.
3. Click the [Options] tab.
4. Increase the value for [Number of Generations].
Only the added generations are calculated after the restart. For example, if [Number of Genera-
tions] is changed from “20” to “30” and restarted, the calculation for the added 10 generations is
executed.
5. Click [Run] or [Submit].
See step 9 and after in “Running Optimizations” on page 650.
The [Optimization] dialog will close and optimization will be run until it has reached the num-
ber of maximum generations.
658
Formulating Objective-Based Optimal Designs
1. Check that you have the files you need to restore the calculation case.
The following files are used to recreate calculation cases:
• CSV file containing the Gaussian weight information:
This CSV file is output when the file path including the file name is set in [NGnet/Gabor Fil-
ter Weight Output] of the [Output] tab in the [Optimization] dialog.
Specify the path of this CSV file in the [Add a Case by Specifying a Weight File] dialog
described later.
• JCF file (Designer.jcf ) of topology optimization base model:
Designer.jcf is exported to the calculation folder for each case during optimization calcula-
tion.
• To recreate the calculation case of the topology optimization study, Designer.jcf must be
located in the calculation folder of the first case in the topology optimization study.
• To recreate the calculation case of the topology optimization study belonging to the analy-
sis group, Designer.jcf must be located in the each calculation folder of the first case of all
studies in the group.
• Topology optimization setting file (topologyopt_conf.xml):
Topologyopt_conf.xml is exported to the calculation folder of each case during optimization
calculation.
• To restore the calculation case of the topology optimization study, topologyopt_conf.xml
must be located in the calculation folder of the first case of the topology optimization
study.
• To restore the calculation case of the topology optimization studies belonging to the anal-
ysis group, topologyopt_conf.xml must be located in the each calculation folder of the
first case of all studies in the group.
MEMO The calculation folder of each case in topology optimization is created in a jfiles folder that
is created in the same hierarchy as the project file. Usually, the name of the calculation folder in the
first case is “Case1”.
For example: Project file (D:\ JMAG\ProjectName.jproj):
D:\JMAG\ProjectName.jfiles\ModelName~1\StudyName~1\Case1
MEMO To restore the calculation case of a topology optimization study that was run on another
machine, duplicate the above mentioned file to your machine together with the project file that con-
tains the topology optimization study. When doing so, copy Designer.jcf and topologyopt_conf.xml
while maintaining the hierarchical structure of the folder.
2. In JMAG-Designer, open the project file that contains the topology optimization study.
3. Select topology optimization study in the [Project Manager] tree.
Or select the analysis group that the topology optimization study belongs to.
The topology optimization study or the analysis group that the topology optimization study
belongs to is activated.
659
JMAG Version 22.2 User's Manual
Operations
MEMO If Designer.jcf is found in the calculation folder of the first case of the topology optimization
study, the [Add a Case by Specifying a Weight File] command is displayed in the context menu of the
study.
MEMO If Designer.jcf is found in the calculation folder of the first case of all topology optimization
studies in the analysis group, the [Add a Case by Specifying a Weight File] command is displayed in
the context menu of the analysis group.
4. In the [Project Manager] tree, right-click the study or analysis group, and select [Add a
Case by Specifying a Weight File].
5. In the [Add a Case by Specifying a Weight File] dialog, specify the path to the weight CSV
file and the number of the calculation case to be recreated.
For details see “Parameter Explanation Edition”.
6. Click OK.
The recreated calculation case of an existing study or copy of an existing study is added.
660
Creating Input Files for Parametric Analysis From the
Command Line
Use the JparamGenerator command to create input files (hereinafter referred to as JPARAM files) for use with
parametric analysis from the command line based on both one JCF file that describes design variable settings,
and one CSV file that describes design variable input values. Use the JparamGenerator command to create
JPARAM files for large numbers of calculation cases at a high speed.
MEMO Even when running parametric analysis by using case control in JMAG-Designer, JPARAM files are gener-
ated for each calculation case with the same folder structure as when using the JparamGenerator command.
However, when using case control in JMAG-Designer, JPRAM files are generated when the calculations for each cal-
culation case are run. Unlike when using the JparamGenerator command, JPARAM files for all cases are not gener-
ated at the same time.
661
JMAG Version 22.2 User's Manual
Operations
Notes
Design Variables
The JparamGenerator command cannot be used when using the following parameters as design
variables in input JCF files:
• Geometry parameters (parameters that affect the number of parts, such as the number of poles
and the number of slots, etc.)
• Dimensional parameters (parameters that define part height and positions)
• Materials applied to parts:
Each material property values (density, etc.) can be used as design variables.
• Point-type parameters (parameters that define coordinates and directions):
Because coordinate and direction component values (x, y, z) are real-type parameters, they can be
used as design variables.
662
Creating Input Files for Parametric Analysis From the Command Line
663
JMAG Version 22.2 User's Manual
Operations
Notes
• When running JparamGenerator on Linux machines using input CSV files created with a Win-
dows machine, loading the CSV file may fail as a result of differences in character codes.
Use a CSV file with a character code that matches the JparamGenerator execution environment,
or alternatively, specify the character code to be used to load the input CSV file with the -codec
option for JparamGenerator.
664
Creating Input Files for Parametric Analysis From the Command Line
Windows:
i. Click the Start button on the Windows taskbar.
ii. Select [Accessories] > [Command Prompt] to launch Command Prompt.
iii. Write the command.
• Enclose the file path in double quotation marks (").
• To divide a row where the command and its arguments are defined into two or more rows,
insert a “^” (a circumflex symbol) at the position to divide the row. See Windows Help for
escape characters such as circumflex symbols, etc.
Command:
(JMAG installation folder)\JparamGenerator^
-csv="input CSV file path" -base="input JCF file path"
Example 1:
"C:\Program Files\JMAG-Designer22.2\JparamGenerator"^
-csv=D:\JMAG\Data\casetable.csv -base=D:\JMAG\Data\mag.jcf
Linux:
• To divide a row where the command and its arguments are defined into two or more rows,
insert a “\” (a back-slash symbol) at the position to divide the row. See Linux Help for escape
characters such as backslashes, etc.
665
JMAG Version 22.2 User's Manual
Operations
Command (bash):
(JMAG installation directory)/solver/bin/JparamGenerator\
-csv="input CSV file path"\
-base="input JCF file path"
Example (bash):
export WorkDir='pwd'
${InsDir}/JparamGenerator -csv=input.csv -base=input.jcf -jcflink=symbolic
JparamGenerator Options
Option Description
-csv Path to an input CSV file. Required.
Specify an absolute path or a path relative to WorkDir.
-base Path to an input JCF file. Required.
Specify an absolute path or a path relative to WorkDir.
-jcflink Handles input JCF files.
• copy:
Windows environment default.
Copies an input JCF file to the same folder as a JPARAM file.
• symbolic:
Linux environment default.
Creates a symbolic link (absolute path) to an input JCF file.
• none:
Neither copying the input JCF file nor creating a symbolic link to an
input JCF file is performed.
-codec Character code used to load an input CSV file.
• local(Default):
Default. Uses the character code set in the OS.
• utf-8
-csvoutput Full path of the folder where the CSV files of analysis results are output.
The input value for [Output Path] in the [CSV File Output Settings] set-
ting panel of the [Study Properties] dialog is replaced with the value that is
specified by setting this option.
-ncpu Thread parallelism when creating a JPARAM file. The default is 1.
JparamGenerator Errors
When processing by using the JparamGenerator has finished, JparamGenerator.jlog is written to the
same folder as the input JCF file. When errors occur, check the error code that is output to Jparam-
Generator.jlog.
666
Creating Input Files for Parametric Analysis From the Command Line
• The naming of subfolders is in accordance with the labels and case column input of the input
CSV files. See “Creating Input CSV Files” on page 664.
• JPARAM files use the same names as input JCF files. When an input JCF file name is “mag.jcf”,
for example, then the JPARAM file name is “mag.jparam”.
When changing the name of either an input JCF file or a JPARAM file, ensure that the name of
the other file is also changed accordingly.
• To copy an input JCF file to the same folder as a JPARAM file (when -jcflink=copy is specified),
place the two files in the same folder.
• When a symbolic link is created in an input JCF file (when -jcflink=symbolic is specified),do not
move the input JCF file to another folder.
667
JMAG Version 22.2 User's Manual
Operations
668
Coupled Analysis
Running One-Way Coupled Analyses
This section describes the process for running one-way coupled analysis.
One-way coupled analysis is a method of analysis in running a one-way analysis with one solver and using those
results with another solver.
671
JMAG Version 22.2 User's Manual
Operations
Basic Procedure
1. Prepare an input file for one-way analysis.
Input data is prepared here for the analysis to output loss, temperature, electromagnetic force,
stress or displacement.
• The type of input files for running analyses in JMAG are JCF files (.jcf ). Project files (.jproj),
however, can also be used as input files.
• It is necessary to add the following settings to configurations for analyses that use only one
solver.
• Settings to output physical quantity to be transferred to the other solver.
[Output Control] setting panel parameters such as those in the [Study Properties] dialog
are applicable.
• Settings to correctly exchange physical quantity.
It is necessary to adjust the likes of the Partial Model condition in a magnetic field analy-
sis, full model conversion and circuit conversion when the model dimensions (2D, 3D,
axisymmetric) calculated with two solvers or the number of model divisions (1/2 model,
1/4 model) differ.
2. Run the analysis from step 1.
The execution method is the same as analysis that uses only one solver. The following can be
chosen.
• JMAG-Designer GUI (foreground)
• JMAG-Scheduler (background)
• Command line (background)
3. Prepare the analysis input file referring to the analysis result of step 1.
Input data is prepared here for the analysis to output either loss, temperature, electromagnetic
force, stress or displacement.
• The type of input files for running analyses in JMAG are JCF files (.jcf ). Project files (.jproj),
however, can also be used as input files.
• It is necessary to add the following settings to configurations for analyses that use only one
solver.
• Settings to receive physical quantity output from the other solver.
The likes of the Stress Distribution condition of a magnetic field analysis and the Heat
Source condition of a thermal analysis are applicable.
• Settings to correctly exchange physical quantity.
It is necessary to adjust the likes of the Partial Model condition in a magnetic field analy-
sis, full model conversion and circuit conversion when the model dimensions (2D, 3D,
axisymmetric) with two solvers or the number of model divisions differ.
4. Run the analysis from step 2.
The execution method is the same as analysis that uses only one solver. The following can be
chosen.
• JMAG-Designer GUI (foreground)
• JMAG-Scheduler (background)
• Command line (background)
672
Running One-Way Coupled Analyses
Analysis is run separately for each solver in the above steps, but it is possible to run two analyses
continuously using the analysis group function. It is also necessary to use the analysis group func-
tion in the remote execution of one-way coupled analysis. For details, see “Running Calculations
Continuously Using Analysis Groups” on page 421.
673
JMAG Version 22.2 User's Manual
Operations
Use Loss Calculated from a Magnetic Field Analysis or Iron Loss Analysis in a
Thermal Analysis
Run a magnetic field analysis or iron loss analysis to calculate the loss density. Then, run a thermal
analysis using the loss density as an input value.
MEMO To use the iron loss density resulting from the magnetic field analysis in the thermal analysis, set
the magnetic field analysis to output both the Joule loss density and the hysteresis loss density. If both the
Joule loss density and the hysteresis loss density are output in the magnetic field analysis result file, the
sum of the them will be used in the thermal analysis.
1. Run the magnetic field analysis (or magnetic field analysis + iron loss analysis).
i. Prepare the model.
ii. Create a magnetic field analysis study.
Static analysis, transient analysis and frequency analysis can be used as the study type.
iii. Set study properties.
• Clear [Direct coupled analysis] in the [Coupled Analysis] setting panel.
• To use the results of the magnetic field analysis for thermal analysis, select either or both
of the following checkboxes in the [Output Control] setting panel.
• [Joule Loss Density]
• [Hysteresis Loss Density]
• To use the results of iron loss analysis for thermal analysis, select either or both of the fol-
lowing checkboxes in the [Output Control] setting panel.
• [Joule Loss Density (Iron loss)]
• [Hysteresis Loss Density (Iron loss)]
iv. Set conditions.
• Set the Heat Source condition in the model when using the loss from the FEM coil or the
resistor part in a thermal analysis.
• Set the Iron Loss condition when using the result of iron loss analysis in a thermal analy-
sis. Set the material iron loss properties when running an iron loss analysis.
• Select [Output results of all slices] when using the Multi Slice condition in a magnetic
field analysis.
v. Make any other necessary settings.
Set the Periodic Boundary condition or motion condition as required.
vi. vi. Run the analysis.
For details about steps for running analysis, see the following pages:
• “Running Analyses from JMAG-Designer” on page 415
• “Running Analyses from JMAG-Scheduler” on page 425
674
Running One-Way Coupled Analyses
675
JMAG Version 22.2 User's Manual
Operations
676
Running One-Way Coupled Analyses
MEMO Analysis is run separately for electric field analysis and thermal analysis in the above
steps, but it is possible to run two analyses continuously using the analysis group function. It is
also necessary to use the analysis group function in the remote execution of one-way coupled
analysis. For details, see “Running Calculations Continuously Using Analysis Groups” on page
421.
677
JMAG Version 22.2 User's Manual
Operations
678
Running One-Way Coupled Analyses
679
JMAG Version 22.2 User's Manual
Operations
680
Running One-Way Coupled Analyses
681
JMAG Version 22.2 User's Manual
Operations
MEMO Analysis is run separately for thermal analysis and structural analysis in the above steps,
but it is possible to run two analyses continuously using the analysis group function. It is also nec-
essary to use the analysis group function in the remote execution of one-way coupled analysis. For
details, see “Running Calculations Continuously Using Analysis Groups” on page 421.
682
Running One-Way Coupled Analyses
683
JMAG Version 22.2 User's Manual
Operations
684
Running One-Way Coupled Analyses
685
JMAG Version 22.2 User's Manual
Operations
686
Running One-Way Coupled Analyses
MEMO It is possible to refer not only to the results of structural analysis in JMAG, but to Abaqus results
also.
687
JMAG Version 22.2 User's Manual
Operations
688
Running Direct Coupled Analyses
This chapter describes the procedures for running direct coupled analysis.
Direct coupled analysis is a coupled analysis that runs analysis in multiple solvers alternately by transferring the
results between them.
689
JMAG Version 22.2 User's Manual
Operations
Basic Procedure
1. Prepare multiple input files for analysis.
• JCF file is the input file format for JMAG analysis execution. JPROJ files, however, can also
be used as input files.
• One input file can be coupled with multiple input files.
For example, in a coupled analysis of a magnetic field analysis and thermal analysis, assume
that you want to simultaneously obtain the magnetic field analysis results of low frequency
and high frequency. In such a case, prepare one thermal analysis JCF file and multiple mag-
netic field analysis JCF files with different frequency.
• The following settings are required when a direct coupled analysis is performed.
• Settings for running a direct coupled analysis.
The [Coupled Analysis] setting panel parameters of the [Study Properties] dialog of the
magnetic field analysis are applicable.
• Settings to output physical quantities to be transferred to the other solver.
The [Output Control] setting panel parameters such as those in the [Study Properties]
dialog are applicable.
• Settings to receive the physical quantity output from the other solver.
Stress Distribution conditions and Displacement conditions of magnetic field analysis,
Heat Source conditions of thermal analysis, etc. are applicable.
• Settings to adjust physical quantities so they are exchanged correctly.
It is necessary to adjust the Partial Model condition in a magnetic field analysis, full model
conversion, and circuit conversion when model dimensions (2D, 3D, and axisymmetric)
have two solvers, or the number of divisions differ between the two models.
2. Run the analysis.
The execution method is the same as it is for an analysis that uses only one solver. A selection
from among the following can be made.
• JMAG-Designer GUI (foreground):
See “Running Direct Coupled Analyses from JMAG-Designer” on page 691.
• JMAG-Scheduler (background):
See “Running Direct Coupled Analyses from JMAG-Scheduler” on page 693.
• Command line (background):
See “Running Direct Coupled Analyses from the Command Line Using JMAG-Scheduler”
on page 696.
690
Running Direct Coupled Analyses
1. Create multiple analysis studies in one project, and set the required settings for each.
MEMO It is also possible to create another study by duplicating one study.
To duplicate, click a study in the [Project Manager] tree and select [Duplicate Study]. The analysis
type in [Study Type] in the [Duplicate Study] dialog can be changed.
2. Create an analysis group.
i. In the [Project Manager] tree, right-click the project.
ii. Select [Create Analysis Group].
iii. In the [Create Analysis Group] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
MEMO If a study belongs to an analysis group, cases cannot be added from the case control of
that study and the commands to execute them are not also available.
3. Set the properties of the analysis group.
i. In the [Project Manager] tree, right-click the analysis group.
ii. Select [Properties].
iii. In the [Analysis Group Properties] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iv. Click [OK].
4. Execute the analysis in the analysis group.
i. In the [Project Manager] tree, right-click the analysis group.
ii. When executing the case displayed in the graphics window, select [Run Active Case].
When executing all cases in the analysis group, select [Run All Cases].
When executing the case displayed in the graphics window using JMAG-Scheduler,
select [Submit Study].
When executing all cases in the analysis group using JMAG-Scheduler, select [Submit
all cases to queue].
When [Submit Study] or [Submit all cases to queue] is selected, the [Submit Job] dialog will
be displayed. From this dialog, a remote analysis can be performed on each case.
MEMO Analysis of cases in the [Design Table] dialog are not executed even if [Run All Cases] or
[Submit all cases to queue] are selected.
MEMO If JMAG is installed on a machine on the same network as the local machine, that
machine can be used for analysis and mesh generation. This is called “remote execution”.
For remote execution, use the JMAG Remote System or a remote machine (or third-party job
scheduler) using SSH. Which one should be used depends on the OS environment of the local
and remote machines. See “Remote Execution Methods” on page 587.
691
JMAG Version 22.2 User's Manual
Operations
5. If necessary, add the result file to the project after the analysis is completed.
When analysis is executed from JMAG-Scheduler or the command line, it is necessary to load
the result file manually.
• See “Load Result Data from Result Files” on page 468 for the procedure for associating
results files with studies when importing.
• For the procedures for reading only results files, see “Open Result Files” on page 470.
692
Running Direct Coupled Analyses
vii.Select the JCF file from the [Coupled analysis files] table and set the parameters for
coupled analysis.
For details on parameters, see “Parameter Explanation Edition”.
693
JMAG Version 22.2 User's Manual
Operations
viii.Click [OK].
ix. In the [Submit to Queue] dialog, set the parameters for job execution.
For details on parameters, see “Parameter Explanation Edition”.
x. Click [Submit Job].
The added job is automatically run.
4. If necessary, add the result file to the project after the analysis is complete.
When analysis is executed from JMAG-Scheduler or the command line, it is necessary to read
the result file manually.
• See “Load Result Data from Result Files” on page 468 for the procedure for associating
results files with studies when importing.
• For the procedures for reading only results files, see “Open Result Files” on page 470.
1. Prepare multiple analysis input files (.jcf, .jproj) for use in calculations.
When using a JCF file as an input file, export the JCF file for each analysis. For example, when
performing a coupled analysis of a magnetic field analysis and thermal analysis, please export the
JCF file of both analyses.
When using a project file as an input file, create an analysis group for direct coupled analysis. For
details on how to create analysis groups, see “Run Direct Coupled Analyses Using Analysis
Groups” on page 691.
Export the study to the JCF file when the snapshot analysis function or massively parallel pro-
cessing (MPP) function is used in the magnetic field analysis study. It cannot be run directly
from the project file.
2. Start JMAG-Scheduler.
For start up procedures, see “Screen Configuration Edition”.
3. Add input files (.jcf, .jproj) as a Job to JMAG-Scheduler.
i. Select [Job] > [Add Job].
Or click . The [Add Job] dialog is displayed.
ii. Select the file type from the list and specify the file (.jcf, .jproj) as in step 1.
If the input file is a JCF file, specify only a JCF file for one analysis. For example, for a cou-
pled magnetic field analysis and coupled thermal analysis, specify one of either the magnetic
field analysis or the thermal analysis file.
MEMO When multiple JCF files are specified, all jobs created from these files are automatically
grouped into a single group. The name of the first specified JCF file is used as the group name by
default.
iii. Click [Open].
For JCF files, the [Submit Queue] dialog is displayed.
In the case of a project file, the [Submit Project File] box opens.
4. If a JCF file is specified in step 3, specify the coupled analysis file and further set param-
eters for the coupled analysis.
694
Running Direct Coupled Analyses
For example, in case of coupled analysis of magnetic field analysis and thermal analysis, when
specifying the magnetic field analysis file in step 3, specify the thermal analysis file here.
i. Click [Add File] under [Coupling Type].
ii. In the [Coupled Files] dialog, click [Add File].
The [Add Job] dialog is displayed.
iii. Select the file type from the list, and select the file (.jcf or .inp).
iv. Click [Open].
Return to the [Coupled Files] dialog. The file is added to the table.
MEMO Multiple files can be specified for coupling.
MEMO Select a target from a table, and then click [Remove File] when removing files from
tables.
v. Select the JCF file from the table and set the parameters for coupled analysis.
For details on parameters, see “Parameter Explanation Edition”.
vi. Click [OK].
Returns to the [Add Job] dialog.
5. Set the parameters for job execution.
Parameters for executing jobs must be set when the JCF file is an input file and also when it is a
project file. For details on parameters, see “Parameter Explanation Edition”.
6. Click [Submit Job].
The added job is automatically run.
7. If necessary, add the result file to the project after the analysis is complete.
When analysis is executed from JMAG-Scheduler or the command line, it is necessary to read
the result file manually.
• See “Load Result Data from Result Files” on page 468 for the procedure for associating
results files with studies when importing.
• For the procedures for reading only results files, see “Open Result Files” on page 470.
695
JMAG Version 22.2 User's Manual
Operations
Notes
• The command lines for direct coupled analysis in JMAG-Scheduler are only supported on Win-
dows.
• The command line is not supported for direct coupled analysis for JMAG-Designer and Abaqus.
• When analysis is executed from JMAG-Scheduler or the command line, it is necessary to read
the result file manually.
• See “Load Result Data from Result Files” on page 468 for the procedure for associating
results files with studies when importing.
• For the procedures for reading only results files, see “Open Result Files” on page 470.
Example:
"C:\Program Files\JMAG-Designer22.2\scheduler.exe"^
"C:\mag.jcf" --sub "c:\heat.jcf"
696
Running Direct Coupled Analyses
MEMO If the --sub option is omitted, the analysis is performed using only the first specified JCF file.
697
JMAG Version 22.2 User's Manual
Operations
Command:
(JMAG installation folder)\scheduler.exe Job_file_path
Example:
“C:\Program Files\JMAG-Designer22.2\scheduler.exe” “D:\JMAG\coupled_job.xml”
698
Application Study and Integration Study
Executing Application Studies
MEMO For application study details and parameters, see “Parameter Explanation Edition”.
701
JMAG Version 22.2 User's Manual
Operations
Type Description
[Speed Priority] FEA of multiple calculation points are run in a single case, and one map is
created from the response table which includes the analysis results. The fol-
lowing motor models are supported:
• Permanent magnet synchronous motor (3-phase, 6-phase)
• Synchronous reluctance motor (3-phase, 6-phase)
• Induction motor (3-phase, 6-phase):
However, JMAG-Designer supports 2D models only.
• Wound-field synchronous motor (3-phase, 6-phase)
[Reduced Order Model] FEA of multiple calculation points are run in a single case, and one map is
created from the response table which includes the analysis results. FEA is
run with lower calculation accuracy and calculation costs compared to
speed-priority study. The following motor models are supported:
• Permanent magnet synchronous motor (3-phase, 6-phase)
• Synchronous reluctance motor (3-phase, 6-phase)
• Induction motor (3-phase, 6-phase):
However, JMAG-Designer supports 2D models only.
The settings and input parameters that are required for analysis models are
basically the same as speed-priority study. However, some of the settings for
analysis steps and linear solver are determined by JMAG to reduce calcula-
tion time.
[Accuracy Priority] FEA of multiple cases are run, and one map is created from the response
table which includes the analysis results. A single case corresponds to one
operating point in the map. More accurate results can be obtained by link-
ing with control circuits.
This study can be used in various applications without limiting to motors.
702
Executing Application Studies
i. Prepare a model.
When analyzing an induction motor, prepare a 2D model.
ii. In the [Project Manager] tree, right-click the model and select [New Application
Study] > [Efficiency Map Analysis].
An efficiency map analysis study is created.
If more than one study exists in the [Project Manager] tree, the inactive (unselected) studies
can not be edited.
MEMO It is also possible to create new efficiency map analysis studies by duplicating existing studies
or application studies. In a duplicated efficiency map analysis study, certain material and condition
settings are inherited from the study this study was duplicated from. For duplicating a study, see
“Duplicating Studies” on page 282.
2. Perform material, condition, circuit, and study property settings, and mesh generation.
When executing parametric analysis with design variables being used for dimension val-
ues, perform case control settings as well.
Be sure to set the following functions and conditions:
Induction motor:
Circuits
• Current source:
Use one Three-phase Current Source component for calculating a three-phase motor.
Use one Multi Phase Current Source component or two Three-phase Current Source components
for calculating a dual three-phase motor or six-phase motor.
• Stator coil circuit components (FEM Coil components, Winding Three-phase Coil compo-
nents, etc.)
• Rotor cage circuit components (FEM Conductor components, Winding Cage components,
etc.)
Analysis conditions
• Motion condition
• Torque conditions
• Conditions for setting stator coil current (FEM Coil conditions, Coil Winding Settings func-
tion, etc.)
703
JMAG Version 22.2 User's Manual
Operations
• Conditions for setting rotor cage current (FEM Conductor conditions, or Cage Winding set-
tings function)
WFSM:
Circuits
• Current source for stator coil:
Use one Three-phase Current Source component for calculating a three-phase motor.
Use one Multi Phase Current Source component or two Three-phase Current Source components
for calculating a dual three-phase motor or six-phase motor.
• Stator coil circuit components (FEM Coil components, Winding Three-phase Coil compo-
nents, Winding Multiphase Coil components, etc.)
• Current source for field coil (Current Source (1 terminal) component)
• Field coil circuit components (FEM Coil component)
Analysis conditions
• Motion condition
• Torque conditions
• Conditions for setting stator coil current (FEM Coil conditions, Coil Winding Settings func-
tion, etc.)
• Conditions for setting field coil current (FEM Coil condition)
3. Set calculation points for creating response tables and options for analysis.
i. In the [Project Manager] tree, right-click [Response Table Creation], and select [Edit].
ii. In the [Create Response Table] dialog, set the calculation resolution.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
4. Run the analysis.
The following is an example procedure:
i. In the [Project Manager] tree, right-click the study and select [Run Active Case].
For procedures other than that described above, see the following pages:
• “Running Analyses from JMAG-Designer” on page 415
• “Running Analyses from JMAG-Scheduler” on page 425
• “Running Analyses from the Command Line” on page 437
MEMO Transferring result files may take time if running calculations of several cases across a
number of machines. Configuring the following settings in the [Step Control] setting panel in the
[Study Properties] dialog prior to running analysis can reduce the size of result files and other
files, and can also reduce the amount of time required for file transfers and calculations as a
whole.
• Select [Output Table Results Only. (No Mesh will be Output.)].
• Clear unnecessary physical quantity outputs in [Output Results].
1. Check the response table outputted from an efficiency map analysis study.
704
Executing Application Studies
i. In the [Project Manager] tree, right-click [Calculated Table] under [Efficiency Map] >
[Response Table], and select [Show].
The [Response Table] dialog is displayed.
In the response table, the current, phase, and speed and physical quantity results (torque, loss,
etc.) are displayed.
Response table
705
JMAG Version 22.2 User's Manual
Operations
1. In the [Project Manager] tree, right-click [Response Table] under [Efficiency Map], and
select [Generate].
2. In the [Response Table Correction] dialog, set the correction values.
For details on parameters, see “Parameter Explanation Edition”.
3. Click [OK].
In the [Project Manager] tree, under [Efficiency Map] > [Response Table], a response table with
correction values applied will be added.
Response tables with correction values applied have a “<correction>” string appended to the end
of their names.
To see the response table with the correction values applied, right-click this table in the [Project
Manager] tree, and select [Show].
706
Executing Application Studies
i. In the [Project Manager] tree, right-click the map setting under [Efficiency Map] >
[Map], and select [Show].
The efficiency map is displayed in the [Efficiency Map] dialog.
2. Create an accuracy-priority study.
i. Click [Create Study].
ii. In the [Create Study] dialog, define the operating points for an accuracy-priority
study.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
The active study is duplicated and a new accuracy-priority study is created.
707
JMAG Version 22.2 User's Manual
Operations
i. In the [Project Manager] tree, right-click [Case Control], and select [Select Parame-
ters].
The [Select Parametric Parameters] dialog is displayed.
ii. Select the checkboxes for the parameters to be used as design variables. Addition-
ally, double-click the variable name cells and input the variable names.
The checkbox of speed in the motion condition should be selected.
For the variable names, enter a unique string consisting of half-width alphanumeric charac-
ters and the under-score (_) character.
iii. Click [OK].
MEMO When clicking [OK (Open Generate Parametric Cases)] or [OK (Open Design Table)],
a different dialog becomes active.
4. Define case parameters.
i. In the [Project Manager] tree, right-click [Case Control], and select [Equations].
ii. In the [Equations] dialog, click [Add].
iii. In the [Edit Equation] dialog, define variables and expressions.
For details on parameters, see “Parameter Explanation Edition”.
IMPORTANT Be sure to add the speed as a variable. Also, in an efficiency map analy-
sis study, add all physical quantities to be made variable (for example current amplitude
and current phase).
708
Executing Application Studies
the [Generate Parametric Cases] dialog, see “Assigning Values to Design Variables and Creating
Multiple Cases” on page 634.
iv. By switching the case displayed in the graphics window using the case control bar,
the settings for each case can be checked.
1. Check the response table outputted from an efficiency map analysis study.
i. In the [Project Manager] tree, right-click [Calculated Table] under [Efficiency Map] >
[Response Table], and select [Show].
The [Response Table] dialog is displayed.
In the response table, in each case the parameter values such as speed, and physical quantity
results (torque, loss, etc.), are displayed.
ii. Click [Close].
2. Create an efficiency map using the response table.
i. In the [Project Manager] tree, right-click [Map] under [Efficiency Map], and select
[Generate].
ii. In the [Efficiency Map] setting panel, set the efficiency map.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
An map settings is added under [Efficiency Map] > [Map] in the [Project Manager] tree.
MEMO [Show], [Edit], [Duplicate], and [Delete] can be performed from the menu appearing
after right-clicking the map settings.
3. Display the map.
i. In the [Project Manager] tree, right-click the map settings under [Efficiency Map] >
[Map], and select [Show].
The efficiency map is displayed in the [Efficiency Map] dialog.
• From the [View] menu, the physical quantity for [Y Axis (Right)] can be switched.
709
JMAG Version 22.2 User's Manual
Operations
• If [Edit map plot properties] is clicked, the [Map plot properties] dialog opens. In this
dialog, the minimum value and maximum value of each axis of the efficiency map, the
color of the map, etc. can be changed.
• If [Details] is clicked, the efficiency map settings and correction values are displayed.
• By right-clicking on any point in the map and selecting [Add Point], the loss ratios (hys-
teresis loss, copper loss, eddy current loss, and mechanical loss) at that point are displayed
in a pie chart.
ii. Click [OK].
710
Executing Application Studies
i. In the [Project Manager] tree, right-click [Response Table Creation], and select [Add
Point Sequence and Recalculate].
ii. In the [Create Response Table (Add Calculation Points)] dialog, add new calculation
points.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [OK].
3. Run the analysis.
For details, see following pages:
• “Running Analyses from JMAG-Designer” on page 415
• “Running Analyses from JMAG-Scheduler” on page 425
• “Running Analyses from the Command Line” on page 437
4. Check the response table.
i. In the [Project Manager] tree, right-click [Table Results] under [Efficiency Map] >
[Response Table], and select [Show].
1. Prepare input files when importing map creation input data from files into JMAG-
Designer.
JMAG-Designer can import input data from CSV files (.csv), text files (.txt), and table files (.pa).
When preparing CSV files of maps created by JMAG efficiency map analysis studies:
Use the following procedure to export CSV files.
i. Right-click the map displayed under [Efficiency Map] > [Map] in the [Project Man-
ager] tree, and select [Show].
ii. In the [Efficiency Map] dialog, click [Export].
iii. In the [Export CSV of Efficiency Map] dialog, select the result data to be output, in
addition to the output method, and click [Export].
The CSV file is exported to the location specified.
2. Use external input data to add map settings to an efficiency map analysis study.
711
JMAG Version 22.2 User's Manual
Operations
i. Right-click [Map] under [Efficiency Map] in the [Project Manager] tree, and select
[Create from External Data].
ii. In the [Efficiency Map from External Data] dialog, enter the map name in [Title].
iii. Select an input method and enter data for creating a map in the lower table.
If an input data file was prepared in Step 1, click [Import from File] and specify the
file to be imported.
For [Matrix Input], only one instance of result data can be input to one map.
For [Batch Entry Multiple Types], multiple result data can be input to one map. Select this if
you have prepared CSV files of the map created in the efficiency map analysis studies in step
1.
The following operation is for when [Batch Entry Multiple Types] is selected.
• To add a new result type column to the table, select [Add New Result Type] from the list.
Enter a result type name in the [Result Type Name] box and click [Add] .
• To delete a result data column from the table, select the result type name from the list and
click [Delete] .
• To change a result type column name, select the result type from the list and enter a new
name in the [Result Type Name] box.
MEMO The value obtained by adding result data for which [Calculate as loss] is selected is out-
put as [Total loss].
iv. Click [OK].
A new map settings is added under [Efficiency Map] > [Map] in the [Project Manager] tree.
3. Confirm the map for the external input data.
i. Right-click the map settings in Step 2 under [Efficiency Map] > [Map] in the [Project
Manager] tree, and select [Show].
The [Efficiency Map] dialog is displayed and the map is drawn.
1. Add difference map (or ratio map) settings to the efficiency map analysis study.
i. Right-click [Map] under [Efficiency Map] in the [Project Manager] tree and select
[Create a Difference Map].
712
Executing Application Studies
ii. In the [Difference Efficiency Map] setting panel, enter the name of the difference
map (or ratio map) in [Title].
iii. In the [Comparison] group box, specify the two maps to calculate the difference (or
ratio) for.
Note that [[Comparison 1]-[Comparison 2]] is calculated for [Calculate Difference], and
[[Comparison 1]/[Comparison 2]] is calculated for [Calculate Ratio].
iv. In the [Result Type] table, confirm the association of the result data that the two
maps possess.
The [Result Type Association] button will not be active if all result data within the two maps
is related by matching names.
If there is any result data that is not related, click [Result Type Association] to open the
[Result Type Association] dialog.
• To perform an association, select result data under [Result Type] in the [Comparison 1]
table. Select result data in the [Comparison 2] table to associate with the result data
selected in the [Comparison 1] table, and click [Set].
MEMO One instance of result data cannot be associated with multiple result data.
• To remove an association, select the result data row in the [Comparison 1] table and click
[Release].
v. Select [Calculate Difference] or [Calculate Ratio] for [Display Type].
vi. Click [OK].
A new difference map (or ratio map) settings is added under [Efficiency Map] > [Map] in the
[Project Manager] tree.
2. Confirm the difference map (or ratio map).
i. Right-click the map settings in Step 1 under [Efficiency Map] > [Map] in the [Project
Manager] tree, and select [Show].
The [Efficiency Map] dialog is displayed and the difference map (or ratio map) is drawn.
713
JMAG Version 22.2 User's Manual
Operations
714
Executing Integration Analysis Studies
An integration analysis study is an analysis study of control circuits that can use multiple JMAG-RT models
(RTT files). You do not have to create an FEM model for an integration analysis study.
715
JMAG Version 22.2 User's Manual
Operations
716
Executing Integration Analysis Studies
717
JMAG Version 22.2 User's Manual
Operations
1. Place JMAG-RT Model components in the circuit of the integration analysis study and
link them to the RTT file.
2. Create a response table from the JMAG-RT Model components.
i. Right-click the JMAG-RT Model component in step 1.
ii. Select [Create Response Table].
A new response table is created from the JMAG-RT Model components.
The response table is added under [Integration Study] > [Results] (or [Result Items]) > [Effi-
ciency Map] > [Response Table] in the [Project Manager] tree.
The same name as the JMAG-RT Model component is used for the response table name.
3. Create a map from the response table of the JMAG-RT Model component.
i. Right-click [Map] under [Integration Study] > [Results] (or [Result Items]) > [Effi-
ciency Map] in the [Project Manager] tree.
ii. Select [Create].
718
Executing Integration Analysis Studies
iii. In the [Efficiency Map] setting panel, select the response table for the JMAG-RT
Model component from [Response Table].
iv. Enter a value in [Max Voltage] of [Inverter Rating].
v. Modify any additional parameters as needed and click [OK].
A new map is added under [Integration Study] > [Results] (or [Result Items]) > [Efficiency
Map] > [Map] in the [Project Manager] tree.
4. Display the map created from the response table of the JMAG-RT Model component.
i. Right-click the map under [Integration Study] > [Results] (or [Result Items]) > [Effi-
ciency Map] > [Map] in the [Project Manager] tree.
ii. Select [Show].
719
JMAG Version 22.2 User's Manual
Operations
720
Executing Integration Analysis Studies
721
JMAG Version 22.2 User's Manual
Operations
722
Dashboard Functions
Input Parameter and Result Items List Display
JMAG-Designer has the dashboard function for displaying study input parameter values and analysis results all
within a single window.
Using this function allows study input parameter values to be checked in a single dashboard, and each value can
also be changed. Mesh generation and analysis can also continue to be executed.
The layout and items displayed in dashboards can also be freely customized by the user. By adding customized
display settings in advance, dashboards can be used with the same display settings even with other projects.
The types of dashboards available in JMAG are as follows:
725
JMAG Version 22.2 User's Manual
Operations
726
Input Parameter and Result Items List Display
1. In the [Project Manager] tree, right-click a study, model, project, or analysis group.
2. Select [Analysis Parameter View].
The [Analysis Parameter View] dialog is displayed.
The [Case Control] toolbar is displayed in the [Analysis Parameter View] dialog.
The [Analysis Parameter View] dialog is divided into two areas by default, with [Case List] dis-
played in the upper area and [Parametric Parameters] displayed in the lower area.
In addition to [Case List] and [Parametric Parameters], other items can also be displayed in the
[Analysis Parameter View] dialog. See “Change the Layout and Display Items in the [Analysis
Parameter View] Dialog” on page 728.
1. To check the input parameter values of a currently selected study, from the menu bar,
select [View] > [Analysis Parameter View (Current Study)].
To check the input parameter values of studies under a currently selected model, from
the menu bar, select [View] > [Analysis Parameter View (Current Model)].
727
JMAG Version 22.2 User's Manual
Operations
To check the input parameter values of studies associated with currently selected analy-
sis groups, from the menu bar, select [View] > [Analysis Parameter View (Current Analy-
sis Group)].
To check the input parameter values of studies under a project, from the menu bar,
select [View] > [Analysis Parameter View (Project)].
Change the Layout and Display Items in the [Analysis Parameter View] Dialog
The [Analysis Parameter View] dialog can be divided into a maximum of four areas, and one item
can be displayed per each individual area.
Items that can be displayed in the [Analysis Parameter View] dialog are as follows:
728
Input Parameter and Result Items List Display
1. When the [Analysis Parameter View] dialog is opened for projects, models, or analysis
groups, specify models and studies to display in the [Analysis Parameter View] dialog.
Only the information of a single study can be displayed in the [Analysis Parameter View] box.
2. [Case List] and [Analysis Parameter View] can be freely switched between being shown/
hidden from the menu bar.
• To display only [Case List], from the menu bar, select [View] > [Show Only Case List].
• To display only [Parametric Parameters], from the menu bar, select [View] > [Show Only
Parameter List].
• To display both [Case List] and [Parametric Parameters], from the menu bar, select [View] >
[Show All].
3. In the [Analysis Parameter View] dialog, change the items displayed.
The following is an example procedure.
729
JMAG Version 22.2 User's Manual
Operations
iii. Hover the mouse pointer over an empty area, and right-click.
iv. Select items to display in the empty area, such as [Model View] and [Circuit].
Items already displayed in the [Analysis Parameter View] dialog and items not set to a cur-
rently displayed study cannot be selected.
The below diagram shows when [Model View] is selected.
When items are selected from the menu that is displayed by right-clicking an area where an
item is already displayed, the item displayed in that area is replaced by the item selected.
v. With [Model View] and [Circuit], display diagrams can be enlarged/shrunk by using
the middle button (wheel) on the mouse. Hover the mouse pointer over each area,
and rotate the middle button (wheel) on the mouse up and down.
vi. To clear only the display items in an area while leaving the area itself displayed,
hover the mouse pointer over that area, and right-click. Select [Clear].
730
Input Parameter and Result Items List Display
To delete an area itself, hover the mouse pointer over that area, and right-click.
Select [Close].
731
JMAG Version 22.2 User's Manual
Operations
6. To call added display item sets, select [View] > [Display Item Set List] > (display item set
name) from the [Analysis Parameter View] dialog menu bar.
Display item sets can also be called via keyboard shortcuts.
732
Input Parameter and Result Items List Display
2. The input parameter values of a currently selected case can be checked and changed in
the [Parametric Parameters] area.
Input parameters are displayed in a tree format in categories such as [Materials] and [Condi-
tions].
• Click [Restore CAD Link] to display CAD parameter input parameters.
• Click the cells in the [Current Value] column in each tree to change the values of those cells.
• Materials can be selected from the materials used in the currently selected study as well as
materials added to [Bookmarks] in the [Materials] tab of the [Toolbox].
• Parameters with checkboxes selected in each tree are added to the [Case Parameters] table
under [Case List].
733
JMAG Version 22.2 User's Manual
Operations
• Click [Edit Circuit] to start Circuit Editor which will display the circuits added to a study.
• Select [Show All Properties] to also display parameters in each tree that are not being used in
each condition or material setting panel.
3. Materials applied to parts can be changed from the [Model View] area.
i. Select a part displayed in [Model View], and right-click.
ii. Select [Material Allocation].
The [Material Allocation] dialog is displayed.
MEMO [Material Allocation] cannot be selected if there exists even a single case where analysis
has not yet finished for the study displayed in the [Analysis Parameter View] dialog.
iii. In the [Material] box, enter character strings included in material names.
Materials that include the character strings entered for names are displayed in the list.
Searches can be performed not only for custom materials, but materials provided by material
manufacturers also.
iv. Select a material from the list, and select the [Enter] key.
JMAG-Designer is displayed on the front window. The [Material] setting panel or the [Per-
manent Magnet] setting panel is opened in the [Project Manager].
MEMO Depending on the order in which operations are executed, the [Update confirmation]
dialog may be displayed before the [Material] setting panel or the [Permanent Magnet] setting
panel is opened. In these circumstances, check the content in the [Update confirmation] dialog,
then click [OK]. The [Material] setting panel or the [Permanent Magnet] setting panel will then
open afterward.
v. Edit the settings in each setting panel, and click [OK].
The [Analysis Parameter View] dialog is displayed on the front window.
4. To reflect the changed content of the [Analysis Parameter View] dialog to the study,
from the menu bar, select [File] > [Apply].
You can also use the [Apply] button when the [Case List] area is displayed.
Closing the [Analysis Parameter View] dialog without executing [Apply] will result in losing the
changes made to the input parameter values in the [Analysis Parameter View] dialog.
Call Input Parameter Setting Values from the [Analysis Parameter View] Dialog
Although the following settings cannot be configured in the [Analysis Parameter View] dialog, they
can be configured from other windows that are accessed from the [Analysis Parameter View] dialog.
• Adding and deleting analysis conditions and result settings (contour plots and vector plots, etc.)
• Adding and deleting circuit components, and wiring circuits
• Changing the winding settings of the Winding Setting function
• Changing response table creation settings for efficiency map analysis studies
734
Input Parameter and Result Items List Display
1. To add and delete analysis conditions and result settings, move to JMAG-Designer from
the [Analysis Parameter View] dialog and execute those operations in JMAG-Designer.
i. Hover the mouse pointer over the area where [Model View] is displayed in the [Anal-
ysis Parameter View] dialog, and right-click.
ii. Select [Return main window].
JMAG-Designer is made active.
iii. Add and delete analysis conditions and result settings.
iv. Click the [Analysis Parameter View] dialog.
The [Analysis Parameter View] dialog is made active.
2. To add and delete circuit components, start the Circuit Editor from the [Analysis Param-
eter View] dialog, and execute those operations in the Circuit Editor.
i. Hover the mouse pointer over the area where [Circuit] is displayed in the [Analysis
Parameter View] dialog, and right-click.
ii. Select [Edit].
For [Circuit], this displays the Circuit Editor.
iii. Change settings in the Circuit Editor.
iv. Click the [Analysis Parameter View] dialog.
The [Analysis Parameter View] dialog is made active.
3. To change the winding settings of the Winding Setting function, or the response table
creation settings for efficiency map analysis studies, open the dialogs for each of the
settings from the [Analysis Parameter View] dialog, and perform those operations in
those dialogs.
i. Hover the mouse pointer over the area where [Winding] or [Create Response Table
(Speed Priority)] is displayed in the [Analysis Parameter View] dialog, and right-click.
ii. Select [Edit].
For [Winding], this opens the [Winding Setting] dialog, whereas for [Create Response Table
(Speed Priority)], this opens the [Create Response Table] dialog.
iii. Change the settings in each dialog.
iv. Click the [Analysis Parameter View] dialog.
The [Analysis Parameter View] dialog is made active.
4. Load the changed settings into the [Analysis Parameter View] dialog.
i. Click the [Analysis Parameter View] dialog.
The [Analysis Parameter View] dialog is made active.
ii. In the [Analysis Parameter View] dialog, from the menu bar, select [File] > [Apply].
You can also use the [Apply] button when the [Case List] area is displayed.
Settings configured in the [Analysis Parameter View] dialog, and settings configured in
JMAG-Designer, Geometry Editor, the [Winding Setting] dialog, and the [Create Response
Table] dialog are also reflected in the study, and content displayed in the [Analysis Parameter
View] dialog is updated.
735
JMAG Version 22.2 User's Manual
Operations
Generate Mesh and Execute Analysis from the [Analysis Parameter View] Dialog
Mesh can be generated and analysis can be executed from menus in the menu bar and the [Case
List] button.
Run Analysis
1. In the [Analysis Parameter View] dialog, check the state icon on the [Error/Warning]
button.
When error messages and warnings are output to the currently selected case of the currently
selected study, icons will be displayed on the [Error/Warning] button.
When these icons are displayed, click [Error/Warning] to confirm the details of the warning/
error, and correct settings as required.
2. To generate mesh, from the menu bar of the [Analysis Parameter View] dialog, select
[File] > [Generate Mesh].
For studies with mesh already generated, [Regenerate Mesh] is displayed in the menu instead of
[Generate Mesh].
3. To execute analysis in the foreground, from the menu bar of the [Analysis Parameter
View] dialog, select [File] > [Run].
To execute analysis in the background, from the menu bar of the [Analysis Parameter
View] dialog, select [File] > [Submit].
The [Run] button and the [Submit] button can also be used when the [Case List] area is dis-
played.
When [Run] is selected, the [Run Analysis] dialog opens after writing JCF files, which displays
analysis progress.
When [Submit] is selected, the [Submit to Queue] dialog or the [Submit Multiple Studies] dia-
log is displayed. Specify each parameter and click [Submit Job]. JMAG-Scheduler starts, which
displays analysis progress.
MEMO When executing in the foreground, analysis is executed in the instance of JMAG-Designer
that is currently open. Therefore, the currently open instance of JMAG-Designer cannot be operated.
When executing in the background, however, data is sent from the currently open instance of JMAG-
Designer to JMAG-Scheduler. Therefore, because JMAG-Scheduler controls the analysis, the cur-
rently open instance of JMAG-Designer can still be operated.
4. From the menu bar of the [Analysis Parameter View] dialog, select [File] > [Load
Results], and load the results into the [Analysis Parameter View] dialog.
5. Check the results.
736
Input Parameter and Result Items List Display
Run Optimization
1. From the menu bar of the [Analysis Parameter View] dialog, select [File] > [Optimiza-
tion].
2. In the [Optimization] dialog, configure settings for design variables and objective func-
tions, and run optimization.
The procedure from this step onwards is the same as that for “Run Analysis” on page 736.
737
JMAG Version 22.2 User's Manual
Operations
738
Input Parameter and Result Items List Display
The [Step Control] toolbar, the [Phase Control] toolbar, and the [Case Control] toolbar are dis-
played in each dialog.
Set the Layout and Display Items in the [Result View] Dialog
1. When the [Result View] dialog is opened for projects, models, and analysis groups,
specify the models and studies to display in the [Result View] dialog.
2. [Result View] and [Response Table] can be switched between being shown/hidden arbi-
trarily.
739
JMAG Version 22.2 User's Manual
Operations
740
Input Parameter and Result Items List Display
741
JMAG Version 22.2 User's Manual
Operations
ii. In the [Generate Parametric Cases] dialog, select the design variable [Type], and click
[Edit].
The [Type] will change based on the type of design variable (integer, real number, flag, table,
etc.).
The dialog that opens after clicking [Edit] will vary based on the [Type].
iii. Configure parameters in the displayed dialog, and click [OK].
iv. In the [Generate Parametric Cases] dialog, click [Generate].
The case is added to the [Case List] in the [Analysis Parameter View] dialog.
v. Modify the values of the design variable for the added case.
Values can be modified by double-clicking the cell of the design variable in the table.
6. In the upper right of the [Analysis Parameter View] dialog, click [Apply].
Content edited in the [Analysis Parameter View] dialog is reflected in the study.
7. Check the state icon displayed on the [Error/Warning] button.
When any error messages and warning messages are output for a current case of a study, icons are
displayed on the [Error/Warning] button.
When these icons are displayed, click [Error/Warning] to confirm the details of the warning/
error, and correct settings as required.
742
Input Parameter and Result Items List Display
i. In the upper right of the [Analysis Parameter View] dialog, click [View All Results].
The [All Cases Result View] dialog is displayed.
Response values added to the study, contour plots, and section graphs are displayed.
743
JMAG Version 22.2 User's Manual
Operations
744
Tools
Using Tools
This chapter describes the tools installed in JMAG-Designer. The following tools are available in JMAG-
Designer.
File management
• JMAG-Explorer:
This tool manages JPROJ files, JCF files, and JPLOT files output from JMAG-Designer in a database. With
this tool, JMAG files can be browsed in a list.
Analysis
• Motor Inductance Calculation:
With this tool, d-q axis inductance for a three-phase PM synchronous motor model can be computed using a
magnetic field analysis JCF file.
• Bus Bar Inductance Calculation:
With this tool, self and mutual inductance of conductors can be computed using the JCF file from a mag-
netic field analysis or a current distribution analysis.
• Coil Inductance Calculation:
With this tool, inductance in a model containing coils, such as in a transformer model, can be computed
using a magnetic field analysis JCF file.
• Field Integral Calculation:
With this tool, the magnetic flux density (or electric field) at a specified point can be computed by integra-
tion, using magnetization vectors, current density, beam current, or charge data included in magnetic field
analysis (or electric field analysis) results.
747
JMAG Version 22.2 User's Manual
Operations
Result evaluation
• JMAG-RT Viewer:
With this tool, outputted RTT file data can be checked and torque-speed curves and efficiency maps can be
created based on the outputted RTT file.
748
Using Tools
Launching Tools
The following tools can be launched from the [Tool] menu of JMAG-Designer. Select [Tool] > (tool
name) from JMAG-Designer menu bar.
• JMAG-Express Classic
• JMAG-RT
• Motor Inductance Calculation
• Bus Bar Inductance Calculation
• Coil Inductance Calculation
• Field Integral Calculation
• Force Export for Virtual.Lab
• Force Mapping for Abaqus
• Heat Generation Mapping for Abaqus
• Exporting Multi-purpose Files
• Hysteresis Curve Creator
• JMAG-Explorer
749
JMAG Version 22.2 User's Manual
Operations
750
JMAG-Express
Using JMAG-Express
JMAG-Express features simple procedures for creating analysis models and fast evaluation.
This chapter describes the analysis procedures using JMAG-Express.
753
JMAG Version 22.2 User's Manual
Operations
See “Parameter Explanation Edition” for notes on creating geometries and scenarios (anal-
ysis templates) for use in JMAG-Express.
iv. To open an existing project, select [Select File] and click the [...] button. In the [Open
JMAG Project File] dialog, specify a JPROJ file and click [Open].
When JMAG-Express is started directly, only studies supported by FR licenses can be loaded
from the JPROJ file.
754
Using JMAG-Express
v. Click [OK].
The generated studies are displayed in the JMAG-Express View (the main window of JMAG-
Express). The names of the studies are displayed in the [Evaluate] group on the [Home] tab of
the menu.
MEMO The preferences for JMAG-Express and JMAG-Designer, such as the display language and
back-ground color, can be changed in the [Preferences] dialog. To open the [Preferences] dialog from
JMAG-Express, click [Preferences] in the [File] tab.
However, when using a preinstalled scenario, do not change the settings for the units of measurement
from the defaults.
2. In each tab of the Workspace, change the parameter values.
Depending on the selected geometries and scenarios, the tabs displayed in the Workspace and the
parameters displayed on each tab will change.
Each tab displays parameters and their values. Click a value to open the entry field. Enter a new
value and press the [Enter] key on the keyboard.
When using a preinstalled model or a model created in the Geometry Editor and clicking a CAD
parameter in the [Dimension] tab, the [Model] tab will show the angle or length dimension line
related to that CAD parameter.
3. Check the results of changing the parameter values on each tab of the Data View and in
the design table.
When you change the settings on each tab in the Workspace, the diagrams displayed on the
[Model] tab, [Winding] tab, and [Circuit] tab in the Data View will be updated.
755
JMAG Version 22.2 User's Manual
Operations
• To adjust the position or size of a diagram, use the buttons in the [View] group on the [View]
tab of the menu. You can also rotate the wheel button on the mouse or click the left mouse
button to adjust the diagram.
• Clearing the checkbox for a study name displayed in the [Circuit] group on the [View] tab of
the menu will hide the circuit for that study from the [Circuit] tab in the Data View.
If changes to a parameter value generates geometry that cannot be used in the analysis, or if
there is an inconsistency in the settings, an error icon will be displayed in the [Status] column
of the design table. Check the parameter values.
4. Run the analysis in the foreground.
If an analysis is run in the foreground, you will be unable to operate JMAG-Express during the
analysis. You will also be unable to exit JMAG-Express.
i. From among the studies displayed in the [Evaluate] group on the [Home] tab of the
menu, select the checkboxes for the studies to be used in the calculation.
From among the cases displayed in the design table, select the checkboxes for the
cases to be used in the calculation.
The checkboxes that are selected for a study will determine the type of analysis that will be
performed (magnetic field analysis, thermal analysis, or structural analysis).
The checkboxes that are selected for a case will determine the combination of the input values
used in a calculation.
ii. On the [Home] tab of the menu, in the [Evaluate] group, click [Run] > [Run].
The calculation of the case will start. The progress of the calculation is displayed on the prog-
ress bar.
When the calculation has finished, the result data will be loaded automatically and displayed
in the design table and on the [Result] tab of the Data View.
MEMO When result data is loaded for cases, new cases are automatically added to the design
table.
5. In the design table, check the response values.
756
Using JMAG-Express
The design table shows the values of the input parameters that have been changed from their
default values. The response values are also displayed.
• To increase or decrease the number of items displayed in the design table, click [Show/Hide
Columns] in the [Design Table] group on the [View] tab of the menu. Only those items that
are selected in the [Show/Hide Columns] dialog will be displayed in the design table.
6. Check the analysis results in the [Result] tab of the Data View.
The [Result] tab displays efficiency maps, N-T graphs, contour plots, and more. The items dis-
played will depend on the scenario that has been selected. If a transient analysis was performed in
the scenario, then the steps can be selected with the step control.
• To change the display magnification of the [Result] tab, click [Display Magnification] in the
[Result] group of the [View] tab on the menu and select a display magnification.
• To display the [Result] tab itself in a separate window, click [Open Data View in Another
Window] in the [Window] group on the [View] tab of the menu.
• You can display graphs and maps in a separate window. For example, right-clicking a graph
and selecting [Show Graph] will open the [Graph] dialog in which the right-clicked graph is
displayed. This [Graph] dialog is the same as the one in JMAG-Designer, and allows you to
check the values of the graph data points in a table. You can also change the properties of the
graph lines.
After changing the display settings for a graph in a case, right-click the graph and select
[Apply Property to All Cases] to apply the same display settings to the same type of graph in
the other cases.
• To reduce the items (maps, graphs, and plots) displayed on the [Result] tab, clear the check-
boxes for each item name displayed in the [Result] group on the [View] tab of the menu.
• To hide the results of a case from the [Result] tab, clear the checkbox for that case in the
design table.
757
JMAG Version 22.2 User's Manual
Operations
7. To save the project, click the [File] tab in the menu and select [Save]. In the [Save File]
dialog, set a file name and location, and click [Save].
758
Using JMAG-Express
Materials to be used as design variable values must be added to bookmarks in advance. Open
the [Select Material] dialog by clicking the material value of the part displayed in the [Mate-
rial] tab of the Workspace. Next, right-click the material and select [Add to Bookmarks].
759
JMAG Version 22.2 User's Manual
Operations
4. Check the results of changes made to the parameter values in each tab of the Data View
and in the design table.
To select multiple cases, click cases while pressing the [Ctrl] key or the [Shift] key on the key-
board.
• If you select a case in the design table and click [Apply Selected Case] in the [Evaluate] group
on the [Home] tab of the menu, the data for that case will be reflected in each tab of the
Workspace and in each tab of the Data View.
• To increase or decrease the number of items displayed in the design table, click [Show/Hide
Columns] in the [Design Table] group on the [View] tab of the menu. Only those items that
are selected in the [Show/Hide Columns] dialog will be displayed in the design table.
• If changes to a parameter value generates geometry that cannot be used in the analysis, or if
there is an inconsistency in the settings, an error icon will be displayed in the [Status] column
of the design table. Check the parameter values for that case.
• To delete a case, select the case in the design table, then click [Delete Selected Case] in the
[Design Table] group on the [Edit] tab of the menu.
• You can group cases together and set filters (selection criteria) for cases. These settings can
then be used when filtering the cases to be displayed in the design table or when creating
response graphs.
To create a case group, select the cases to be added to the group in the design table, then click
[Group Selected Cases] in the [Grouping Cases] group on the [Edit] tab of the menu.
To set filters, click [Add/Delete] in the [Filter] group on the [Edit] tab of the menu. Next,
click [Add] in the [Filter List] dialog to create a filter in the [Filter Definition] dialog.
Filters to be applied to the design table can also be selected from [Constraint Filter], [Case
Group Filter], and [Custom Filter] in the [Filter] group on the [Edit] tab.
5. Run the analysis in the background using JMAG-Scheduler.
When analysis is run in the background, you can operate JMAG-Express even while the analysis
is in progress. You can also exit JMAG-Express.
760
Using JMAG-Express
i. From among the studies displayed in the [Evaluate] group on the [Home] tab of the
menu, select the checkboxes for the studies to be used in the calculation.
From among the cases displayed in the design table, select the checkboxes for the
cases to be used in the calculation.
The checkboxes that are selected for a study will determine the type of analysis that will be
performed (magnetic field analysis, thermal analysis, or structural analysis).
The checkboxes that are selected for a case will determine the combination of input values
used in a calculation.
ii. On the [Home] tab of the menu, in the [Evaluate] group, click [Run] > [Submit Cases].
iii. Click [Yes] in the message dialog that asks you to save the project file.
iv. In the [Submit to Queue] dialog, select the machine to use and the format of the
input file to be transferred to the machine, then click [Submit Job].
v. In the [Save As] dialog, specify a location to save the project file and click [Save].
JMAG-Scheduler will start and the calculations for each case will begin.
6. Load the result data into JMAG-Express.
i. If you exited JMAG-Express during analysis, start JMAG-Express and open an existing
project.
In the [JMAG-Express Startup] dialog, the name of the project file that was saved during the
batch run will be displayed in [Recent Files]. Double-click the project file to open the project.
ii. On the [Home] tab of the menu, in the [Evaluate] group, select [Check Results] >
[Check New Results].
If there is a result file (.jplot) associated with the opened project, data will be loaded from that
result file.
MEMO When result data is loaded for each case, new cases are automatically added to the design
table.
7. Check the response values for each case in the design table.
8. Check the analysis results for each case in the [Result] tab of the Data View.
See “Use JMAG-Express to Perform Evaluation” on page 754.
The [Result] tab displays the evaluation results for cases that meet both of the following condi-
tions:
• Cases that are displayed in the design table (cases that meet the filter criteria)
• Cases for which the checkbox in the [Case] column is selected in the design table
9. Check the circuit results for each case on the [Circuit] tab of the Data View.
i. On the [Home] tab of the menu, in the [Evaluate] group, click [Display Selected
Cases].
This starts the mode where the settings and results of the case selected in the design table are
displayed on each tab of the Data View.
ii. Select a case from the design table.
The following results for the selected case are displayed in the figure on the [Circuit] tab:
• The electric circuit of the magnetic design scenario:
Voltage at each terminal and the value and direction of the current passing through each
component
761
JMAG Version 22.2 User's Manual
Operations
iii. If a transient analysis scenario is used, change the step in the step control to display
the circuit results for that step.
When you run a scenario where both electrical and thermal circuits are used, and each circuit
has different step settings, select the circuit from the list to link with the step control.
iv. Select another case from the design table to switch to the circuit results for the
newly selected case.
v. In the [Evaluate] group on the [Home] tab of the menu, click [Display Selected Cases]
again to cancel this mode.
10.Compare the analysis results for each case graphically on the [Graph (All Cases)] tab of
the Data View.
The [Graph (All Cases)] tab displays a single graph for each physical quantity for all cases.
11.Create a response graph and compare the response values for each case in the
[Response Graph] tab of the Data View.
A response graph is a scatter plot of the response values (e.g., maximum torque) for each case.
i. On the [Home] tab of the menu, in the [Report] group, click [Add Response Graph].
ii. In the [Response Graph] dialog, select the X and Y axes for the response graph. If nec-
essary, use filters to reduce the number of cases that will be displayed in the
response graph, then click [OK].
The newly created response graph will be displayed in the [Response Graph] tab of the Data
View.
• To change the display magnification of the [Response Graph] tab, click [Display Magnifi-
cation] in the [Result] group on the [View] tab of the menu and select a display magnifi-
cation.
• To display the [Response Graph] tab itself in a separate window, click [Open Data View in
Another Window] in the [Window] group on the [View] tab of the menu.
• You can display response graphs in a separate window. Right-clicking a response graph and
selecting [Show Graph] will open the [Graph] dialog in which the right-clicked response
graph is displayed. This [Graph] dialog is the same as the one in JMAG-Designer, and
762
Using JMAG-Express
allows you to check the values of the response graph data points in a table. You can also
change the properties of the graph lines.
After changing the display settings for a response graph in a case, right-click the response
graph and select [Apply Property to All Cases] to apply the same display settings to the
same type of response graph in the other cases.
• To delete a response graph from the [Response Graph] tab, right-click the response graph
and select [Delete Graph].
763
JMAG Version 22.2 User's Manual
Operations
764
Using JMAG-Express
iii. In the [Optimization] dialog, click [Run], [Batch Run], or [Batch Run...].
When the [Submit to Queue] dialog is displayed, select the machine and the format of the file
to be transferred, then click [Submit Job].
When the [Save File] dialog is displayed, specify a location to save the project file and click
[Save].
The optimization calculations will begin.
If [Run in Foreground] is selected for [Optimization Controller] in the [Running] tab of the
[Optimization] dialog, JMAG-Express cannot be operated during optimization calculations.
4. When optimization calculations are run in the background, the result data is loaded into
JMAG-Express.
i. If you exited JMAG-Express during analysis, start JMAG-Express and open an existing
project.
In the [JMAG-Express Startup] dialog, the name of the project file that was saved during the
batch run will be displayed in [Recent Files]. Double-click the project file to open the project.
ii. On the [Home] tab of the menu, in the [Evaluate] group, click [Check Results] > [Load
Multi Case Results] to open the [Load Multi Case Results] dialog. In this dialog, you
can check the response values for each case and load only the necessary cases and
their results into JMAG-Express.
MEMO When result data is loaded for each case, new cases are automatically added to the design
table.
5. Check the response values for each case in the design table.
6. Check the analysis results for each case in the [Result] tab of the Data View.
See “Use JMAG-Express to Perform Evaluation” on page 754.
7. Check the circuit results for each case on the [Circuit] tab of the Data View.
See “Use JMAG-Express to Perform Parametric Analysis” on page 759.
8. Compare the analysis results for each case graphically on the [Graph (All Cases)] tab of
the Data View.
9. Create a response graph and compare the response values for each case in the
[Response Graph] tab of the Data View.
See “Use JMAG-Express to Perform Parametric Analysis” on page 759.
765
JMAG Version 22.2 User's Manual
Operations
766
Using JMAG-Express
1. In the JMAG-Express View, click [Switch to JMAG-Designer] in the [Tools] group on the
[Home] tab of the menu.
2. Click [OK] in the [Confirm License Switch] dialog.
The JMAG-Express View switches to JMAG-Designer.
The study sent from JMAG-Express is displayed in JMAG-Designer.
3. In the JMAG-Designer [Project Manager] tree, right-click the study and select [Select
Parameters].
4. In the [Select Parametric Parameters] dialog, select the check boxes for the parameters
to be displayed in the JMAG-Express Workspace.
• It is not necessary to give variable names to parameters.
• Point type parameters such as direction and coordinate cannot be displayed in JMAG-
Express. Instead, use Real type parameters such as direction and coordinate components.
5. Click [OK].
6. Click [Show JMAG-Express View] displayed on the graphics window.
7. When the [Check License Mode] dialog is displayed, click [OK].
JMAG-Designer switches to JMAG-Express View.
The parameters with the checkboxes in the [Select Parametric Parameters] dialog are displayed
on one of the tabs in the Workspace.
767
JMAG Version 22.2 User's Manual
Operations
1. Start JMAG-Express.
2. In the [JMAG-Express Startup] dialog, click [Register CAD Data] to start the Geometry
Editor.
3. Create geometry in the Geometry Editor, or from the Geometry Editor menu bar, select
[File] > [Open] to import geometry from a file.
You can also create new geometry by editing a preinstalled geometry in the Geometry Editor.
4. Set region names, sets, constraints, and region pattern features for the geometry.
For details, see the explanation in “Custom Models” under “Parameter Explanation Edition”.
• Region name settings are required.
• Settings for sets can be created here or when applying a scenario to the model.
• Constraints should be set if you want to change the dimensional parameters in JMAG-
Express.
• Region pattern features ([Region Circular Pattern] and [Region Mirror Copy]) should be set
when extending the geometry of one slot to one pole when using a model that is divided in
the circumferential direction.
5. In the [Model Manager] tree, right-click the assembly and select [Add to Geometry
Library].
6. In the [Add to Geometry Library] dialog, set the tags to be assigned to the geometry for
JMAG-Express and click [OK].
The created geometry is added to the [Custom Geometry] folder in the [Geometry Library] tab.
MEMO Pay close attention to the tag settings in the [Add to Geometry Library] dialog. JMAG-
Express identifies the type of geometry according to the tags that were set for the geometry.
7. Close the Geometry Editor.
8. In the [JMAG-Express Startup] dialog in the [Rotor] or [Stator] list, select the geometry
that was created.
9. Select a scenario and click [OK].
10.If the created geometry has enough of the required settings to be used in JMAG-
Express, the JMAG-Express View will be displayed.
If any required settings are missing, then the [Analysis Template] dialog box will open. Follow
the guidance in this dialog to set the missing sets and regions.
Depending on the missing settings, the following setting panels will be displayed in the [Analysis
Template] dialog:
• [Part ID Matching] setting panel
768
Using JMAG-Express
769
JMAG Version 22.2 User's Manual
Operations
770
Third-party Software Links
Linking with SPEED
In this chapter, the procedure for linking JMAG-Designer to the third-party software SPEED is described.
SPEED, the Scottish Power Electronics and Electric Drives, is a simulator for motor design based on magnetic
circuit method, developed by University of Glasgow. With its analysis function that uses magnetic circuit
method, and the template-based modeling function, SPEED is capable of the high-speed calculations.
SPEED can handle motors of the following types.
• Permanent-magnetic brushless motor (PC-BDC)
• Induction motor (PC-IMD)
• DC brush motor (PC-DCM)
• Synchronous reluctance motor (PC-SRD)
Evaluating the analysis of the magnetic circuit method and finite element method for a model can be done by
linking this software with JMAG-Designer.
PC-BDC, PC-IMD
773
JMAG Version 22.2 User's Manual
Operations
Click [OK] to open the [GoFER (BDC)] dialog (or [GoFER (IMD)] dialog).
iii. In the GoFER (BDC) dialog (or the GoFER (IMD) dialog), select the problem type and
click [Options].
• GoFER (BDC)
• [Single load point]
• [Bgap distribution (open circuit)]
774
Linking with SPEED
Click [Next] to switch the contents displayed in the [GoFER (BDC)] dialog (or [GoFER
(IMD)] dialog).
v. Set the parameters for each problem, and click [Next].
The parameters set here differ depending on the type of problem.
Click [Next] to switch the contents displayed in the [GoFER (BDC)] dialog (or [GoFER
(IMD)] dialog).
775
JMAG Version 22.2 User's Manual
Operations
When linking with JMAG-Designer, it is necessary to specify “GDF Runner” as the link pro-
gram. Select [Edit using other editor] from the combo box in the [Run] group box and spec-
ify “GDF Runner” in the text box below this combo box.
GDF Runner is in the following path.
\(JMAG installation folder)\SPEED\SpeedGdfRunner.exe
MEMO If JMAG-Designer is installed with the default settings, it is in the following path.
C:\Program Files\JMAG-Designer22.2\SPEED\SpeedGdfRunner.exe
Click [Next] to switch the contents displayed in the [GoFER (BDC)] dialog (or [GoFER
(IMD)] dialog).
vii.Set the PC-FEA parameters and click [OK].
Here, parameters for analysis are set.
776
Linking with SPEED
When [OK] is clicked, the link program (GDF Runner) is executed and the [Send to
Designer from SPEED] dialog is displayed.
3. Set parameters of GDF Runner and export SPEED data to JMAG-Designer.
GDF Runner is responsible for passing SPEED data to JMAG.
i. Set the parameters in the [Send to Designer from SPEED] dialog.
For details on parameters, see “Parameter Explanation Edition”.
ii. Click [Send] or [Run Calculation].
Clicking [Send], JMAG-Designer starts and SPEED data is imported.
Clicking [Run Calculation], JMAG-Designer starts and SPEED data is imported to JMAG-
Designer. Also, magnetic field transient analysis on the data received by JMAG-Designer
starts.
MEMO The SPEED LINK condition is set for the data imported from SPEED to JMAG-
Designer. For the SPEED Link condition, see “Parameter Explanation Edition”.
MEMO With the link between JMAG-Designer and SPEED, the solver (DP (2D)) for 2D mag-
netic field transient analysis is used.
4. If [Send] in the [Send to Designer from SPEED] dialog is clicked, modify the data in
JMAG-Designer and run analysis as necessary.
Just after importing, material and condition settings and mesh generation are completed, how-
ever current condition and motion condition parameters must be specified. Also, a circuit can be
added to the imported model and the conditions set can be modified.
5. Confirm the analysis results with JMAG-Designer.
Even when linked with SPEED, the results can be confirmed in the JMAG-Designer window in
the same way as in ordinary analysis.
6. Confirm the analysis result with SPEED.
When executing an analysis on a JCF file for which the SPEED LINK condition is set, the
SPEED PC-BDC result file (.dat) is output in addition to a JMAG-Designer JPLOT file.
Start the PC-BDC, and read-in the result file for PC-BDC as in the following procedure.
i. If the problem type is [Single Load Point], [Bgap distribution], or [Btooth wavefrom],
select [Tools] > [MatchFE Bgap Btooth] from the menu bar and specify the dat file to
be displayed.
777
JMAG Version 22.2 User's Manual
Operations
MatchFE
The finite element method analysis results in JMAG-Designer is displayed in PC-BDC. Also,
if magnetic circuit analysis has already been executed with PC-BDC for the same model, the
two analysis results can be compared on the same screen using the PC-BDC MatchFE func-
tion.
MEMO The result file for MatchFE is written to the same folder as the JMAG-Designer JPLOT
file.
778
Linking with Abaqus
In this chapter, the procedure for linking third-party software Abaqus and JMAG-Designer is described.
Abaqus is finite element analysis software provided by Dassault Systemes.
779
JMAG Version 22.2 User's Manual
Operations
780
Linking with Abaqus
• Abaqus cannot be used for forces occurring on regions where motion conditions have
been set.
Therefore, for example, when using the force on a rotor in a motor in Abaqus, express the
motion of the rotor relatively by setting the motion conditions on the stator side.
vii.Run the analysis.
For the procedure on executing the analysis, see the following pages.
• Running Analyses from JMAG-Designer (page 415)
• Running Analyses from JMAG-Scheduler (page 425)
• Running Analyses from the Command Line (page 437)
2. Prepare the Abaqus input file (.inp).
• Define the analysis step using one of the following:
• STATIC
• STEADY STATE DYNAMICS
• MODAL DYNAMIC
• Dynamic: Implicit method for structural analysis
• Dynamic, Explicit: Explicit method for structural analysis
• Coupled Temperature-Displacement: Implicit method for thermal and structural analysis
• Dynamic Temperature-displacement, Explicit: Explicit method for thermal and structural
analysis
• The region where force was calculated in JMAG and the region where force is taken on in
Abaqus (element grouping or surface) must have the same shape.
• Regions that take on force must be grouped together in one grouping.
• Make sure that elements with different orders are not intermingled in regions taking on force.
3. Using the electromagnetic force setting tool for the Abaqus file, map the force calcu-
lated from JMAG to the Abaqus input file (.inp).
i. From the JMAG-Designer menu bar, select [Tools] > [Force Mapping for Abaqus].
ii. In the [Force Mapping Tool for Abaqus] dialog, set the parameters.
For details on parameters, see “Parameter Explanation Edition”.
iii. Click [Run].
Force is mapped to the Abaqus input file (.inp).
4. Run the Abaqus analysis using the input file (.inp) into which the force calculated from
JMAG was mapped.
1. Run magnetic field analysis (or magnetic field analysis + iron loss analysis).
i. Prepare a model.
ii. Create a magnetic field analysis study.
For the study type, static analysis, transient analysis, or frequency analysis can be used.
781
JMAG Version 22.2 User's Manual
Operations
782
Linking with Abaqus
783
JMAG Version 22.2 User's Manual
Operations
784
Linking with Abaqus
785
JMAG Version 22.2 User's Manual
Operations
• When passing loss density data to Abaqus, select [Joule Loss Density] in the [Output
Control] setting panel.
• When passing node force data to Abaqus, select [Nodal Force] in the [Output Control]
setting panel. When passing Lorentz force data, select [Lorentz Force Density].
• When executing frequency analysis, set the JMAG analysis frequency with [Frequency
Control] setting panel.
• When executing transient analysis, set the JMAG analysis step with [Step Control] setting
panel.
iv. Set the materials.
When receiving temperature distribution data from Abaqus, create materials with characteris-
tics that change with temperature and set to parts.
• When the material electrical conductivity varies with temperature:
Select [Temperature Dependent] in [Conductivity] under the [Electric Properties] tab in
the [Material Editor] dialog and set the temperature - electric conductivity curve (or tem-
perature - electric resistivity curve).
• When the soft magnetic material relative permeability varies with temperature:
Select [Linear (Temperature dependent)] in [Magnetic Property Type] under the [Mag-
netic Properties] tab in the [Material Editor] dialog and set the temperature-relative per-
meability curve.
• When the soft magnetic material B-H curve varies with temperature:
Select [B-H Curve (Temperature dependent)] in [Magnetic Property Type] under the
[Magnetic Properties] tab in the [Material Editor] dialog and set the temperature - mag-
netic susceptibility curve.
v. Set the conditions.
Depending on the condition, there exists restrictions on parameter settings. For details, see
“Coupled Analysis Edition”.
• If necessary, define Abaqus model geometry by setting External Solver Coupling condi-
tions.
• If necessary, define JMAG model geometry by setting Partial Model conditions.
• When receiving temperature distribution from Abaqus, set Temperature Distribution con-
ditions for parts with temperature-dependent property values.
• When receiving average temperature from Abaqus, set FEM coil conditions and FEM
Coil components.
• When receiving displacement from Abaqus, set Displacement conditions.
• When transferring loss density to Abaqus, set Temperature Distribution conditions.
• When transferring iron loss density to Abaqus, set Iron Loss conditions.
• When transferring electromagnetic force to Abaqus, set [Force: Nodal Force] conditions
(alternatively, [Force: Lorentz Force] conditions, [Torque: Nodal Force] conditions, or
[Torque: Lorentz Force] conditions).
vi. In addition, perform any other necessary settings.
Set Periodic Boundary conditions, motion conditions, etc. as desired.
IMPORTANT When setting the motion conditions, there are restrictions on places for
mesh generation and settings.
vii.Generate the mesh.
Do not create air region in the following cases:
786
Linking with Abaqus
787
JMAG Version 22.2 User's Manual
Operations
• See “Load Result Data from Result Files” on page 468 for the procedure for associating
results files with studies when importing.
• For the procedures for reading only results files, see “Open Result Files” on page 470.
Windows
788
Linking with Abaqus
Command:
(JMAG installation folder)\CseCouplingDriver.exe [Jcoupled file path]
Example:
“C:\Program Files\JMAG-Designer22.2\CseCouplingDriver.exe” “D:\JMAG\coupledjob.xml”
Linux
789
JMAG Version 22.2 User's Manual
Operations
JCoupled files contain the path to the input file for analysis, as well as the parameters and their
values set in the [Submit to Queue], [Coupled Files], and [External Couple Setting] dialogs.
See “Exporting Job Settings to a File” on page 435 on procedures for exporting the JCoupled
file.
2. Execute the following commands:
The file path must be enclosed in double quotation marks (").
When a command line and its arguments consists of two or more lines, enter a backslash (\) at
the end of each line.
Command:
(JMAG installation directory)\solver\bin\CseCouplingDriver [Jcoupled file path]
For details on the options, see the description on “Windows” on page 788.
790
Linking with STAR-CCM+
This chapter describes the procedure for linking third-party software STAR-CCM+ and JMAG-Designer.
STAR-CCM+ is thermal fluid analysis software provided by SIEMENS.
791
JMAG Version 22.2 User's Manual
Operations
792
Linking with STAR-CCM+
793
JMAG Version 22.2 User's Manual
Operations
794
Linking with STAR-CCM+
Notes
• Users must define the transfer of created input files or post-calculation result files as well as job
input to the job scheduler by describing scripts.
Call command
Write the following commands.
./StarccmpCosimDriver.exe^
"jcffile_path"
Example:
"C:\Program Files\JMAG-Designer22.2\StarccmpCosimDriver.exe"^
"D:\JMAG\motor.jcf"
IMPORTANT Specify “StarccmpCosimDriver.exe” and the JMAG input JCF file with an abso-
lute path.
MEMO If the analysis cannot be executed using the above command, try removing double quotation
marks (") around the file path that includes “StarccmpCosimDriver.exe”.
Example:
C:\Program Files\JMAG-Designer22.2\StarccmpCosimDriver.exe "D:\JMAG\motor.jcf"
MEMO In this example, the escape character (^) was used just before the newline in order to record the
executable statement into two or more lines; however, when actually using it with STAR-CCM+, remove
escape characters.
CPS procedure
Executing coupled analysis in the STAR-CCM+ GUI specifying “Connect to Partner Simulation
(Connect to Partner Simulation)” is here called “CPS”.
1. Adjust the end time and number of iterations so that STAR-CCM+ finishes before JMAG.
2. Execute coupled analysis.
STAR-CCM+ finishes first and JMAG abnormally stops during end processing.
3. Manually perform a write of the STAR-CCM+ analysis results to the SIM file.
4. Exit the STAR-CCM+ pre/post of STAR-CCM.
5. Restart the STAR-CCM+ pre/post.
795
JMAG Version 22.2 User's Manual
Operations
6. Right-click the JMAG process displayed under the [Server] tab in the left pane to con-
nect.
7. After connecting, press [Exit] at the upper right of the window and select [Discard and
exit].
By performing the above, the JMAG process will end.
The JMAG result file (.jplot) will be located in the same folder (calculation folder) as the input
file (.jcf ). If there is not a result file in the same folder as the input file, use the result file placed
in a subfolder of the calculation folder.
LAC procedure
Executing coupled analysis in the STAR-CCM+ GUI specifying “Launch Application and Connect
(Launch Application and Connect)” is here called “LAC”.
1. Adjust the end time and number of iterations so that STAR-CCM+ finishes before JMAG.
2. Execute coupled analysis.
STAR-CCM+ finishes first and JMAG abnormally stops during end processing.
3. Manually perform a write of the STAR-CCM+ analysis results to the SIM file.
4. Exit the STAR-CCM+ pre/post of STAR-CCM.
5. Since, in the case of Windows, the message “JCoupled.exe has terminated” will be dis-
played in a dialog immediately afterwards, click [Quit the Program].
6. In case of Linux, as with CPS, restart the STAR-CCM+ pre/post and after connecting to
the JMAG process, press [Exit] and select [Discard and exit].
By performing the above, the JMAG process will end.
The JMAG result file (.jplot) will be located in the same folder (calculation folder) as the input
file (.jcf ). If there is not a result file in the same folder as the input file, use the result file placed
in a subfolder of the calculation folder.
796
Linking with Circuit Simulators
This chapter describes the procedures for linking JMAG with third-party circuit simulators. JMAG can be
linked with the following circuit simulators:
• MATLAB/Simulink:
This is provided by MathWorks.
IMPORTANT Support for coupled analysis using JMAG and PSIM has been discontinued for major ver-
sions and service packs released after April 2023.
797
JMAG Version 22.2 User's Manual
Operations
Notes
• You cannot run a multiple analysis directly linked to JMAG and Simulink on a single machine
simultaneously.
Procedure for using Simulink when using the External Circuit Link condition
1. Place the input file used in the analysis in the calculation folder.
Place the following files output with JMAG-Designer in any folder.
• JCF file (ex: jinput.jcf ):
See “Exporting Studies to JCF Files” on page 287 for instructions on exporting a JCF file.
Note the following:
• If you export a geometry JCF file when [Preprocess Model When Exporting Geometry
JCF] is not checked, the JW_ACIS_REMOTE_MESH license will be used during the
analysis.
• XML file (ex: jinput_csl.xml):
This file is also output when data set with the External Circuit Link condition is output to a
JCF file.
2. Place the MDL file and DLL file used in the analysis in the same folder as step 1.
The MDL file and DLL file used here are located in the Simulink folder in the JMAG installa-
tion folder. Copy the files from there and put them in the calculation folder.
MEMO Copy the MDL file and DLL file from the JMAG-Designer installation folder of the same
version of JMAG-Designer used for calculations.
Windows:
The Simulink folder on a Windows machine is in the following location:
(JMAG installation folder)\Simulink
798
Linking with Circuit Simulators
Linux:
The Simulink directory on a Linux machine is in the following location.
(JMAG installation directory)/solver/mod/tools/simulink
Windows:
Set the following environment variables. If an environment variable with the same name is
already set, add the following variable values.
With this setting, analysis referencing JMAG libraries can be executed.
Linux:
If the MPP function is not used in JMAG magnetic field analysis, the setting of environment
variables is not necessary. For details on setting environment variables, see “Overview Edition”.
799
JMAG Version 22.2 User's Manual
Operations
If using the MPP function, set the following environment variables. If an environment variable
with the same name is already set, add the following variable values.
MEMO For details on the MPP function, see “Running Analyses Using MPP/Hybrid Parallel Com-
puting” on page 559.
5. Start MATLAB/Simulink.
6. Open JMAG_SF.mdl.
7. Copy all blocks from the JMAG_SF.mdl file to the currently used Simulink model or cre-
ate a Simulink circuit in the JMAG_SF.mdl file.
For details on how to create a Simulink circuit, see the Simulink manual.
8. Set the parameters in the JMAG_SF.mdl file.
• [Link table file name]:
Enter the name of the XML file (***_csl.xml) that was placed in the calculation folder in step
1.
• [Sample time]:
The time step for the analysis. The unit is “sec”.
For the default “-1”, the time step specified in Simulink is also used in the JMAG circuit
solver. If analysis takes an undue amount of time with the time step specified by Simulink,
enter a positive value for this parameter. The value entered here is used as a time step in the
JMAG circuit solver.
• [Install directory of JMAG]:
Enter the full path of the JMAG-Designer installation directory.
When JMAG is installed on a Windows machine, the default setting is “C:\Program
Files\JMAG-Designer22.2”.
• [Output log file]:
Select whether to output a JMAG magnetic field analysis log file (.txt). If an error occurs, this
file can be used for investigating the cause.
• 0: No log file is output.
• 1: A log file is output.
• [Parallel computing type]:
Select the parallel computing function to use with JMAG magnetic field analyses from the
following:
• [Do Not Use]
• [SMP]: Shared Memory Multiprocessing
• [MPP]: Massively Parallel Processing or hybrid parallel processing (SMP+MPP)
• [Degree of parallelism]:
When [SMP] is selected, specify even numbers from within a range of 2 to a maximum of 36
in [SMP Threads] as the degree of thread parallelism.
When [MPP] is selected, specify values from within a range of 1 to a maximum of 36 in
[MPP Threads] as the degree of thread parallelism. Either odd numbers or even numbers may
be used. Specify an even number from within a range of 2 to a maximum of 512 in [MPP
800
Linking with Circuit Simulators
Processes] as the degree of process parallelism. The hybrid parallel processing function is used
when a value of 2 or more is specified for both [MPP Threads] and [MPP Processes].
• [Use GPU]:
Select [Use GPU] when using the GPUs (Graphics Processing Units) in machines with
JMAG calculation processes.
9. Execute the analysis.
JMAG results are output.
MEMO If Simulink terminates abnormally during analysis, the “jmag_direct_coupler.exe” process
(“jmag_simulink_direct_coupler_intel_mpi_b.exe” when the MPP function is used) remains active,
and the licenses for JMAG magnetic field analysis and the parallel computing function are not
returned. In this case, terminate the process manually. You can manually terminate the process from
Task Manager in Windows or by the “Kill” command in Linux.
801
JMAG Version 22.2 User's Manual
Operations
802
Running Batch Files for Analyses Linked with Third-
party Software
The methods to link JMAG with commercial simulation software, when using the displacement function (cou-
pling with third-party programs) in the motion conditions of a magnetic field analysis in JMAG, are described
below.
803
JMAG Version 22.2 User's Manual
Operations
1. In JMAG-Designer, export the JCF file in the magnetic field transient analysis study set
with displacement (link with third-party program).
• The JCF file to be output can be either geometry data or mesh data. However, note that the
commands used in the batch file differ depending on which is output. See “Creating Batch
Files” on page 805.
• Eddy currents can be accounted.
• Displacement condition settings are not needed. [Direct coupled analysis] in study properties
also does not need to be selected.
• When using time exported from a third-party program in JMAG based on the step in exam-
ple #3 (option) below, [Set by External Program] must be selected in step control.
• When using physical quantity information (stress, temperature) exported from a third-party
program in JMAG based on the step in example #4 (option) below, materials with stress-
dependent or temperature-dependent magnetization properties needs to be applied. Stress
Distribution conditions and Temperature Distribution condition settings are not needed.
2. Prepare a batch file (.bat).
See “Creating Batch Files” on page 805.
3. Place the JCF file from step 1, external reference files, and the batch file from step 2 into
the working directory.
4. Run the batch file.
The coupled analysis with JMAG and the commercial simulation software will be performed.
For details on the Displacement (Link to External Program) function, see “JMAG User’s Manual
Parameter Explanation”.
For details on exporting JCF files, see the “Exporting Studies to JCF Files” on page 287.
804
Running Batch Files for Analyses Linked with Third-party Software
Notes
The following examples are described assuming that the below file exists in the working directory
(WorkDir).
• JCF file to be imported (Designer.jcf )
• External file that defines time and displacement per step (coupleddisp).
This file is created by the third-party program. Because of this, it does not need to be in the
working directory when the analysis starts.
• Batch file (.bat).
In the following example, the following character strings are used in the executable statement of the
batch file. Change the values to reflect the actual running conditions when describing the details of
the batch file.
“InsDir” and “WorkDir” in the executable statement are unique environment variables for JMAG.
“InsDir” and “WorkDir” define the JMAG installation directory and the working directory, respec-
tively.
The following are example statement.
set InsDir=MY_JMAG_INSTALL_DIR
set WorkDir=.
set PATH=%PATH%;%InsDir%;
For example, if JMAG-Designer 22.2 was installed into its default directory with no changes, the
string to define the JMAG installation directory is as follows:
set InsDir=C:\Program Files\JMAG-Designer22.2
If the number of steps is set to 25, the string to define the loop is as follows:
for /L %%i in (1,1,25) do (
805
JMAG Version 22.2 User's Manual
Operations
Ex. 1: Running a coupled analysis without using the patch mesh function
Use the following executable statement when not using the patch mesh function.
MEMO For details about patch mesh function, see “JMAG User’s Manual Parameter Explanation”.
When using geometry data (Designer.jcf) that does not have mesh data:
set InsDir=MY_JMAG_INSTALL_DIR
set WorkDir=.
set PATH=%PATH%;%InsDir%;
GeneralCouplingMesherDriver.exe -mode=initialize
for /L %%i in (1,1,MY_STEPS) do (
RUN_EXTERNAL_PROGRAM
GeneralCouplingSolverDriver.exe -solver_mag
)
806
Running Batch Files for Analyses Linked with Third-party Software
Ex. 4: Option (Mapping a physical quantity for a result file exported by a coupled
analysis)
JMAG can use stress and temperatures exported from a third-party program as input values. Fur-
thermore, loss density and nodal force density exported by JMAG can be used as input values in a
third-party program.
The following process runs when this option is used:
• First, the third-party program performs a calculation for the most recent analysis step.
After the calculation is complete, configure it so the mesh information and physical quantity
information (stress, temperature) from the third-party program are recorded to “general_cou-
pling.plot”.
“GeneralCouplingMapperDriver.exe” maps the physical quantity for the mesh in JMAG using
mesh and physical quantity information (stress, temperature) from the third-party program that
were recorded to “general_coupling.plot”.
• Next, JMAG’s analysis program performs a calculation for the most resent analysis step.
After the calculation is complete, “GeneralCouplingMapperDriver.exe” maps the physical quan-
tity for the mesh in the third-party program recorded in “general_coupling.plot” using the phys-
ical quantity information (loss density, nodal force density) recorded to the JMAG result file, and
then records the physical quantity used for mapping to “general_coupling.plot”. During this
time, the physical quantity information previously recorded to “general_coupling.plot” is
cleared, and the only the items used for mapping this time are recorded.
Use the following execution statement when using this option.
for /L %%i in (1,1,MY_STEPS) do (
RUN_EXTERNAL_PROGRAM
GeneralCouplingMapperDriver.exe -map_stress_in -map_temp_in
RUN_JMAG_PROGRAM
GeneralCouplingMapperDriver.exe -map_loss_out -map_force_out
807
JMAG Version 22.2 User's Manual
Operations
808
Using Scripts
Using Scripts to Automate Work
811
JMAG Version 22.2 User's Manual
Operations
1. In the [Script] setting panel of the [Preferences] dialog, set the options for automatic
recording.
For information on how to open the [Preferences] dialog, see “Setting JMAG-Designer Prefer-
ences” on page 36.
For details on parameters, see “Parameter Explanation Edition”.
2. From the JMAG-Designer menu bar, select [Script] > [Start Recording] to start automatic
recording.
Or click [Start Recording] on the toolbar.
Automatic script recording starts and “Recording” is displayed in the toolbar.
3. Do some operations in JMAG-Designer, Geometry Editor, and Circuit Editor.
4. From the JMAG-Designer menu bar, select [Script] > [Stop Recording] to stop automatic
recording.
Or click [Stop Recording] on the toolbar.
The Script Editor opens and the recorded script is displayed.
5. If necessary, edit the script in the Script Editor.
For notes on creating and editing scripts, see “Scripts Edition”.
6. Click [Register] in the Script Editor.
The script is added to the [Custom] folder under the [Scripts] tab in [Toolbox].
7. From the Script Editor menu bar, select [File] > [Exit] to exit the Script Editor.
812
Using Scripts to Automate Work
813
JMAG Version 22.2 User's Manual
Operations
To edit a preinstalled script contained in the [Preinstall] folder under the [Scripts] tab in [Tool-
box], do the following:
i. Right-click the preinstalled script in the [Preinstall] folder under the [Scripts] tab in
[Toolbox] in JMAG-Designer.
ii. Select [Duplicate].
The preinstalled script is duplicated and added to the Custom folder.
iii. Right-click the copy of the preinstalled script in the Custom folder.
iv. Select [Edit].
The Script Editor starts and the script is displayed.
When starting the Script Editor and reading-in a script to be edited from a file, execute the fol-
lowing operations.
i. Select [Scripts] > [Script Editor] from the JMAG-Designer menu bar.
Or right-click the Custom folder under the [Scripts] tab in Toolbox and select [Create New
Script].
ii. From the Script Editor menu bar, select [File] > [Open].
iii. In the [Open File] dialog, specify the script file (.vbs, .py, .js).
iv. Click [Open].
The Script Editor starts and the script is displayed.
2. Setup the environment of the Script Editor if needed.
See “Creating Scripts in Script Editor” on page 813.
3. Edit the script.
From this point forward the procedure is the same as from step 5 onwards in “Recording Opera-
tions in JMAG as Scripts” on page 812.
814
Using Scripts to Automate Work
Running Scripts
Execute a created script or a JMAG-Designer preinstalled script.
815
JMAG Version 22.2 User's Manual
Operations
1. From the Script Editor menu bar, select [File] > [Save As].
The [Save As] dialog is displayed.
2. Specify the file name, file type, and destination folder.
The file type can be selected from the following:
• [VB Script Files (.vbs)]
• [Python Files (.py)]
• [JScript Files (.js)]
3. Click [Save].
816
Key Operations
Using Shortcuts
819
JMAG Version 22.2 User's Manual
Operations
The accelerator keys are used together with the [Alt] key.
• Example 1:
When the accelerator key is used to perform the same operation as selecting [File] > [New] in the
figure below, press the keys [Alt], [F], and [N] in this order.
When the same key is allocated to the menu command in the same hierarchy, press the duplicated
key several times in the order the menu commands are displayed.
• Example 2:
The [V] key is allocated to both [View Solid Vertex] and [Viewpoint] in the [View] menu of
Geometry Editor.
• To run [View Solid Vertex], press the keys in the order of [Alt], [V], [V].
• To run [Viewpoint], press the keys in the order of [Alt], [V], [V], and [V].
820
Using Shortcuts
Shortcut Icons
The shortcut icons are displayed in the lower part of the JMAG-Designer graphics window.
Shortcut icons
To do this Click
Open a study or analysis group in the JMAG-Express View
821
JMAG Version 22.2 User's Manual
Operations
Keyboard Shortcuts
Menu commands can be run using only the keys on the keyboard. Some of shortcut keys are dis-
played on the right of each menu command.
Shortcut key
The “+” sign used in the tables below means pressing multiple keys simultaneously. For example, the
“Ctrl + N” description means holding down the [Ctrl] key and pressing the [N] key on the key-
board.
• JMAG-Designer (page 822)
• Circuit Editor ([Edit Circuit] Dialog) (page 824)
• Geometry Editor (page 825)
• Script Editor (page 826)
• Graph Manager (page 827)
• JMAG-Scheduler (page 828)
• [Analysis Parameter View] Dialog (page 828)
• [Result View] Dialog/[All Cases Result Review] Dialog (page 830)
JMAG-Designer
File operation
To do this Press
Create a new project Ctrl + N
Open a file (open the [Open File] dialog) Ctrl + O
Save a project (open the [Save As] dialog when a project is saved for the first
Ctrl + S
time)
822
Using Shortcuts
View control
MEMO Operations such as zoom in/out and rotation/translation of the model display can be changed
and customized to the same shortcut settings as commercial CAD software in the JMAG-Designer [Pref-
erences] dialog [Operation] setting panel. For details, see “Parameter Explanation Edition”
To do this Press
Zoom in/out the model view Scroll the mouse wheel back and forth
Rotate the model view relative to the center of the Hold down the mouse wheel and drag
window
Rotate the model view relative to the center of any Hold down Shift and drag with the mouse wheel
point button
Rotate the model view relative to the center of a Hold down Ctrl and drag with the mouse wheel
model button
Move the model view ([Pan] ) Hold down the mouse wheel and drag with the
right mouse button
823
JMAG Version 22.2 User's Manual
Operations
Closing
To do this Press
Close JMAG-Designer Ctrl + Q
File operation
To do this Press
Create a new circuit Ctrl + N
Export the circuit as a circuit file (open the [Export Circuit Setting] dialog) Ctrl + S
Export the circuit diagram as an image file (open the [Export Image] dialog) Ctrl + E
Register the circuit in the [Libraries] tab of [Tool Box] Ctrl + T
View control
MEMO Operations such as zoom in/out and rotation/translation of the model display can be changed
and customized to the same shortcut settings as commercial CAD software in the JMAG-Designer [Pref-
erences] dialog [Operation] setting panel. For details, see “Parameter Explanation Edition”.
To do this Press
Zoom in/out of circuit creation window Scroll the mouse wheel back and forth
824
Using Shortcuts
To do this Press
Move circuit creation window Hold down the mouse wheel and drag with the
right mouse button
Rotating components
To do this Press
Rotate the selected components and wires 90 degrees clockwise Ctrl + R
Geometry Editor
File operation
To do this Press
Create assembly Ctrl + N
Open a file (open the [Open file dialog] dialog) Ctrl + O
Load the model from a file and merge with an active model Ctrl + M
Save the model (open the [Import Model] dialog) Ctrl + S
825
JMAG Version 22.2 User's Manual
Operations
View control
MEMO Operations such as zoom in/out and rotation/translation of the model display can be changed
and customized to the same shortcut settings as commercial CAD software in the JMAG-Designer [Pref-
erences] dialog [Operation] setting panel. For details, see “Parameter Explanation Edition”.
To do this Press
Zoom in/out of display Scroll the mouse wheel back and forth
Rotate model view relative to the center of window Hold down the mouse wheel and drag
Rotate model view relative to the center of any Hold down Shift and drag with the mouse wheel
point
Rotate model view relative to the center of a model Hold down Ctrl and drag with the mouse wheel
Move the model view ([Pan] ) Hold down the mouse wheel and drag with the
right mouse button
Closing
To do this Press
Close Geometry Editor Ctrl + Q
Script Editor
File operations
To do this Press
Create new script Ctrl + N
Open script file Ctrl + O
Save script Ctrl + S
Re-load active tab script from file F5
Re-load scripts from all tabs from file Alt + F5
Print script Ctrl + P
Close active tab Ctrl + W
Script Edit
To do this Press
Undo previous operation Ctrl + Z
Redo canceled operation Ctrl + Y
Cut selected character string Ctrl + X
Copy selected character string to clip board Ctrl + C
Paste character string from clip board Ctrl + V
Search specified character string within script Ctrl + F
826
Using Shortcuts
To do this Press
Search down in script F3
Search up in script Shift + F3
Replace specified character string with another in script Ctrl + R
Jump cursor to specified line Ctrl + G
Comment out selected line Ctrl + I
Clear comment out in selected line Ctrl + Shift + I
Add header information to script Ctrl + H
Script Execution/Debugging
To do this Press
Run script Ctrl + F5
Step into script F11
Step over script F10
Break script Ctrl + Alt + Break
Stop script Shift + F5
Exit
To do this Press
Exit Script Editor Ctrl + Q
Graph Manager
Graph operations
To do this Press
Display graph selected from graph list Alt + D
Help
To do this Press
Start JMAG-Designer Help Alt + H
Exit
To do this Press
Exit Graph Manager Alt + C
827
JMAG Version 22.2 User's Manual
Operations
JMAG-Scheduler
Tree operations
To do this Press
Expand all items in job list *
Collapse all items in job list \
Exit
To do this Press
Close JMAG-Scheduler (does not exit JMAG-Scheduler) Ctrl + W
Exit JMAG-Scheduler Ctrl + N
Basic operations
To do this Press
Reflect setting changes made in [Analysis Parameter View] dialog to study Ctrl + S
Re-load settings from study to [Analysis Parameter View] dialog Ctrl + O
Duplicate study displayed in [Analysis Parameter View] dialog (open
Ctrl + D
[Duplicate This Study] dialog)
Display study shown in [Analysis Parameter View] dialog in JMAG-
Ctrl + T
Designer
828
Using Shortcuts
To do this Press
Display result items in three columns Ctrl + 3
Open [Display Item List] dialog Ctrl + I
Call the following display item set: Preset [Scenario Execution] Ctrl + Shift + P
Call the following display item set: A display item set that has been added by Ctrl + Shift + (a
the user numerical character
of “1” or more)
829
JMAG Version 22.2 User's Manual
Operations
To do this Press
Open currently selected equation (open currently selected equation in [Edit
Ctrl + Alt + M
Equation] dialog)
Delete currently selected equation Ctrl + Alt + D
Exit
To do this Press
Close [Analysis Parameter View] dialog Ctrl + Q
File operation
To do this Press
Reflect the changed value in the [Result View] dialog to the study Ctrl + S
830
Using Shortcuts
To do this Press
Re-load the results setting added in the study to the [Result View] dialog Ctrl + R
Exit
To do this Press
Close the [Result View] dialog Ctrl + Q
831
JMAG Version 22.2 User's Manual
Operations
832
Trouble Shooting
Solutions for Abnormal JMAG Termination
This chapter explains solutions for when JMAG and Geometry Editor encounter unexpected errors and termi-
nate abnormally.
835
JMAG Version 22.2 User's Manual
Operations
Notes
• If the [Fatal Error] dialog is not displayed when JMAG-Designer or Geometry Editor terminate
abnormally, then backup files are not created. In these circumstances, operations performed
directly before the abnormal termination can be recreated so long as scripts exist that were saved
with the [Automatically record all operations to a script file] function. For details, see “Automat-
ically Recording Scripts for Operations After Saving Projects” on page 838.
• No changes are made to the names of already created backup files even if changes are made to the
names of the project files.
1. Start JMAG-Designer.
2. From the menu bar, select [File] > [Open].
3. Specify the project file that was open when the abnormal termination occurred.
The [Automatic backup file exists] dialog is displayed when a JMAG-Designer backup file with
the same name as the project file exists in the same folder as that project file.
4. Click [OK] to open the backup file.
Click [Cancel] to open the specified project file.
MEMO Clicking [OK] will delete the backup file after JMAG-Designer loads.
Clicking [Cancel] will not delete the backup file. Delete unnecessary backup files manually.
1. Start JMAG-Designer.
2. Open the project file that was open when Geometry Editor terminated abnormally.
836
Solutions for Abnormal JMAG Termination
3. In the [Project Manager] tree, right-click the model, and select [Restore CAD Link].
The [Automatic backup file exists] dialog is displayed when a Geometry Editor backup file with
the same name as the JMAG model file linked directly to the project file exists in the following
folder.
(folder where the opened project file is positioned)/jfiles/assembly
837
JMAG Version 22.2 User's Manual
Operations
1. From the menu bar, select [Tools] > [Preferences] to open the [Preferences] dialog.
2. In the navigation bar, click [Script] to open the [Script] setting panel.
3. Select [Automatically record all operations to a script file].
4. In the text box, enter the full path to the folder where script files are to be saved.
The folder where script files are to be saved can be specified by clicking [Browse] to open the
[Browse for folder] dialog.
5. Click [OK].
1. Start JMAG-Designer.
2. Open the project file that was open when the abnormal termination occurred.
3. Right-click the [Custom] folder in the [Scripts] tab in the [Toolbox], and click [Import
Scripts].
4. In the [Import scripts] dialog, specify the script file saved to the specified location and
click [Open].
The script is added to the [Custom] folder in the [Scripts] tab.
5. Right-click the added script and select [Run].
The script is run, the operations performed up to directly prior to the abnormal termination are
reflected in the project.
838
INDEX
839
JMAG Version 22.2 User's Manual
Operations
G
E
Generating
Eddy current density (lamination) meshes 379
output item 457, 459 Global strain
Editing output item 461, 463
materials 303 Global strain (centrifugal force)
Electric breakdown factor output item 457
output item 462 Global stress
Electric field output item 461, 463
output item 462 Global stress (centrifugal force)
Electric potential output item 457
output item 461, 462 Graph Manager 537
Environment variables
InsDir 613
JMAG_JOB_SYSTEM_SERVER 613 H
JMAG_LICENSE_SELECTOR 613
Heat flow
JMAG_MPI_EXTRA_OPTION 577, 581
output item 460, 463
JMAG_MPI_LIBRARY_PATH 562, 572
JMAG_MPP_JPLOT_MASK 562 Heat flux
JMAG_MULTICORE_LIMIT 613 output item 460, 463
JMAG_USE_MPI_MACHINEFILE 579, Heat generation density
581 output item 460, 463
JRI_LICENSE_FILE 614 Heat source
JSOL_LICENSE_PATH 614 output item 460, 463
LD_LIBRARY_PATH 562, 579, 614 Heat transfer coefficient
LDLIBRARY_PATH 572 output item 460, 463
PATH 562, 572, 579 History graphs 482
WorkDir 577 Hysteresis loss
Excess eddy current loss output item 456, 459, 464
output item 459 Hysteresis loss density
Excess eddy current loss density output item 456, 459, 464
output item 459 Hysteresis loss density (lamination)
ExecSolver 445 output item 457, 459
Exporting
840
INDEX
JMAG_TOPOLOGY_DRIVER_NUM_THREAD
I
S 615
Importing JMAG_USE_CACHE 616
CAD models from CAD software 252 JMAG_USE_GPU 612
CAD models from files 100 JMAG_USE_MPI_MACHINEFILE 614
material data output from ThyssenKrupp’s Pow- Joule loss
erCore Explorer 300 output item 456, 459, 462, 464
materials 298 Joule loss density
materials from JMAG-Studio 298 output item 456, 459, 462, 464
MCMA material database 300
mesh models from files 102
model outlines 103 L
user magnetization materials 299
Lissajous 541
INFILE 611
Loading
Initial magnetization (normalized)
files 33
output item 456
Lorentz force
Initial magnetization vector
output item 456, 464
output item 457
Lorentz force density
Iron loss
output item 456, 464
output item 457, 459
Iron loss density
output item 457, 459 M
Magnetic field
J output item 455, 464
Magnetic field (lamination)
JMAG_CORES 612
output item 457, 459
JMAG_COUPLED_FILE 611
Magnetic flux density
JMAG_EXTRA_ARGS 611
output item 455, 464
JMAG_EXTRA_FILE_xx 611
Magnetic flux density (lamination)
JMAG_GPU_OLD_License 614
output item 457, 459
JMAG_HYBRID_THREADS 612 Magnetization
JMAG_MPP_JPLOT_MASK 614 output item 455, 464
JMAG_MULTI_LICENSE 612 Material Database 295
JMAG_PARALLEL_TYPE 612 Maximum sound pressure
JMAG_PSL_CONTROL_DP 614, 615 output item 461
JMAG_PSL_CONTROL_DS 614, 615 Maximum sound pressure level
JMAG_PSL_CONTROL_EL 614, 615 output item 461
JMAG_PSL_CONTROL_EXPRESS_FR 615 Merging
JMAG_PSL_CONTROL_FQ 614, 615 models 105
JMAG_PSL_CONTROL_HT 614, 615 Mises strain
JMAG_PSL_CONTROL_LS 614, 615 output item 461, 463
JMAG_PSL_CONTROL_PA2 614, 615 Mises strain (centrifugal force)
JMAG_PSL_CONTROL_RM 615 output item 457
JMAG_PSL_CONTROL_ST 614, 615 Mises stress
JMAG_PSL_CONTROL_TR 614, 615 output item 461, 463
JMAG_PSL_MAX 615 Mises stress (centrifugal force)
JMAG_RESERVATION_KEY 612 output item 457
JMAG-Scheduler 425, 438
JMAG_SCRIPT_ERROR_OUT 612
JMAG_SOLVER_TYPES 612
841
JMAG Version 22.2 User's Manual
Operations
842
INDEX
Temperature
output item 457, 460, 463
Terminal temperature
output item 455, 460, 463
Torque
output item 455
Torque of external program
output item 457
Total displacement (rotation angle)
output item 456, 460
Total displacement (X/Y/Z direction)
output item 456, 460
Total surface heat generation
output item 460
Translational velocity
output item 456
Using
reference coordinate system 75
superconductors 333
Winding DC resistance
output item 464
843
JMAG Version 22.2 User's Manual
Operations
844