-
-
November 22, 2019 at 3:07 pm
HendrikChristiaens
SubscriberHi,Â
I'm simulating multiple design variations of an axial flux machine in ANSYS maxwell 2D, i want to export a lot off different data from each simulation (I need the magnitude of the B field in +- 50 specific points). With the field calculator i can only export one result at a time, in one single file. Is there a way of exporting multiple results into 1 file? otherwise this would result in exporting a few thousand files during my design process.Â
-
November 22, 2019 at 6:27 pm
Paul Larsen
Ansys EmployeeIf you have many specific points that you want to access one field quantity (mag
, then you can use the Export option in the Field calculator with the .pts file. The .pts file is a tab-delimited list of X,Y,Z coordinates (if 2DXY then Z=0; if 2DRZ then Y=0), with respect to the global coordinate system in units of meters. The output of the Export command will be another tab-delimited .fld file that contains the B-field in units of Tesla evaluated at each point (and optionally contains the XYZ coordinate data).
Of course, the steps need to be done in the Field Calculator sequence and are written here:
Quantity > B
Vector > Mag
Export
This can be scripted. Try recording a script (menu Tools > Record Script to File, and Stop Script Recording after performing the steps), and you will see how this can be performed for many variations/designs.
-
November 22, 2019 at 6:58 pm
HendrikChristiaens
SubscriberThank you for your quick and extensive reply!Â
I'm already using scripts but at the moment,but i have to combine multiple result files into one file after doing the FEM analysis so i can use it for post-processing in Matlab.Â
IÂ still a have a few questions:
When I'm running an optimetric analysis i can only export the results of the latest design variation, is it possible to export the results of every variation into one file? (or even seperate files but still every variation in the optimetric analysis)
Also, when doing calculations in the field reporter I have to export every result into a separate file, is it possible to export multiple field calculator results into a single file?Â
thank you in advance!
-
November 22, 2019 at 7:03 pm
Paul Larsen
Ansys EmployeeAn alternate option is to define the point selection in the results. You would just need to use the Results window with the default MagB value, and no further field calculator interaction. You can choose points in the following way:
Menu: Results > Create Fields Report > Data Table
In the upper left, change Geometry to choose a Point
The Calculator Expressions will now show any default scalar quantities, including Bmag.
Click New Report.
Change the Geometry to choose another Point, then click Add Trace and repeat.
This also can be scripted for adding 50 Traces to a result table. The benefit of this is that the results will update automatically when the solution finishes. It will also show up for any saved fields times (in a transient run) within one table, and/or can include multiple variations. It is also easily exported to .csv file by right-click > Export.
-
November 22, 2019 at 7:14 pm
HendrikChristiaens
SubscriberAh, I can try it like that. I'll try it out, thank you!Â
-
January 24, 2020 at 5:45 am
abukarim
SubscriberHi Hendrik,
I read your post about using field calculator and it seems that you have good understanding on how to you this tool. I have been desperately looking for any information on how to use "export" option on field calculator but unfortunately with no luck. Here is what I am trying to do. I have a microstrip antenna that is rectangular shape where the patch is in X-Y plane and Z is perpendicular to the patch. Dimension is 4 x 4 cm and (x,y,z) axes placed at the middle of the patch. I am trying to determine E-field (Ez) on the edge of the patch. My question is if I would use "Export" option, can you help me on what should I enter on Cartesian coordinates and if this the right way to find E-field exported in file.
I really appreciate your help.
ThanksÂ
-
- The topic ‘How to export multiple field calculator results into one file’ is closed to new replies.
-
6084
-
1906
-
1436
-
1308
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.