websights

Fill out the form to download

Required field
Required field
Not a valid email address
Required field
Required field
  • Set up your own cloud-native simulation in minutes.

  • Documentation

    Tutorial: Time-Harmonic Electromagnetics Simulation on a 3-Phase-Transformer

    This tutorial showcases how to use SimScale to run a Time-Harmonic electromagnetics simulation on a 3-Phase Transformer, where the objective is to ensure efficient AC power transmission and distribution by evaluating the transformer’s performance under sinusoidal steady-state operating conditions.

    magnetic flux density of a time-harmonic study on a 3-Phase Transformer
    Figure 1: RMS Magnetic field of a 3-Phase Transformer

    Overview

    This tutorial teaches how to:

    • Set up and run a Time-Harmonic electromagnetics simulation;
    • Create an external flow region;
    • Assign multiple materials and coils to the simulation;
    • Mesh with the automatic standard meshing algorithm.

    We are following the typical SimScale workflow:

    1. Prepare the CAD model for the simulation;
    2. Set up the simulation;
    3. Create the mesh;
    4. Run the simulation and analyze the results.

    1. Prepare the CAD Model and Select the Analysis Type

    To begin, click on the button below. It will copy the tutorial project containing the geometry into your Workbench.

    The following picture demonstrates what is visible after importing the tutorial project.

    workbench initial view for 3-Phase Transformer tutorial
    Figure 2: Imported CAD Model of a 3-Phase Transformer model

    The geometry consists of a linear actuating solenoid. It consists of multiple parts, as can be observed in the scene tree.

    1.1 Geometry Preparation

    The ‘3-Phase Transformer’ geometry requires further preparation for electromagnetic simulation. While the solid components like the coils and core are present, the solver also necessitates a solid representation of the surrounding fluid. This fluid domain will serve as the medium through which the electric and magnetic fields propagate.
    To create a flow volume, click on the ‘Edit a copy’ icon.

    edit a copy to prepare 3-Phase Transformer geometry
    Figure 3: Open the Transformer CAD model to create the external flow volume.

    Follow the steps below as shown in Figure 4 to create the external flow volume.

    1. Select the external flow volume tool.
    2. Apply the Box dimensions in meters as shown below.
    how to create a flow volume for 3-phase transformer model
    Figure 4: External flow volume operation to create the air domain around the 3-Phase Transformer
    • X min: ‘-0.6’ m
    • Y min: ‘-1’ m
    • Z min: ‘-1’ m
    • X max: ‘0.6’ m
    • Y max: ‘1’ m
    • Z max: ‘1’ m

    Notice that there is a new volume entity called Flow region under the parts list at the very end (see Figure 5, far right). Use the ‘Save’ button to save this new geometry in the Workbench.

    save transformer geometry after editing cad
    Figure 5: Save the new part with the aim of keeping the modifications.

    After the save, two geometries are now in the geometry section: 3-Phase Transformer and Copy of 3-Phase Transformer. For better clarity, rename Copy of 3-Phase Transformer as ‘3-Phase Transformer + Flow Region’.

    1.2 Create the Simulation

    To start the simulation setup process, select the newly saved CAD ‘3-Phase Transformer + Flow Region’ and click on the ‘Create Simulation’ button.

    transformer create simulation
    Figure 6: Rename the new part for better visibility.

    This will open the simulation type selection widget:

    creating an electromagnetics analysis
    Figure 7: Library of analysis types available in SimScale. Choose the ‘Electromagnetics’ analysis type.

    Choose Electromagnetics as the analysis type and ‘Create Simulation’.

    At this point, the simulation tree will be visible on the left-hand side panel.

    2. Pre-Processing: Setting up the Simulation

    The initial step in configuring the simulation involves adjusting the global settings of the study. These settings influence how the underlying equations are solved and must be defined at the beginning of each project. In this example, the Model will be set to ‘Time-Harmonic Magnetics’, and the Frequency will be specified as ’50 Hz’.

    transformer set global settings
    Figure 8: Adjust the electromagnetics model and frequency as per the simulation requirements

    2.1 Define Materials

    This simulation will begin with air present in the flow region. Then we will assign Copper to the coils and Steel to the core. Therefore, this simulation will use three materials. To start assigning, click on the ‘+’ button next to Materials. In doing so, the SimScale fluid material library opens, as shown in the figure below:

    transformer pick material from the library
    Figure 9: Library of available fluid materials in SimScale. Select Air as the material.

    Select ‘Air‘ and click ‘Apply’. This means air will be recognized by the flow region throughout the simulation. Keep the default values, and assign the entire Flow region to it (if not already by default).

    Assign the air material to the flow region - transformer
    Figure 10: Assign the Flow region from the Geometry panel, or select it from the viewer.

    Next, define the material for the coils. To do this, create a new material and select ‘Copper’. Then, as illustrated in the figure below, hide the Flow region and assign the material to the coil volumes.

    transformer assign copper to the coils
    Figure 11: Assign Copper to all parts that contain ‘Winding’ or ‘winding’ in the name.

    To define the Core material, create a new material and select ‘Steel’. Set the Electric conductivity to ‘0’ \(S/m\) and for the Magnetic permeability type, choose ‘BH curve’. Finally, assign this material to the core and click the table icon to input the BH curve.

    transformer assign steel to the core
    Figure 12: Assign Steel to the core

    You can find the B/H curve for the AISI Steel material below. Figure 13 shows the assigned material table as well as the B/H curve.

    BH curve for AISI Steel used on the transformer model
    Figure 13: Material table window for the custom B/H Curve with curve display

    2.2 Assign the Coils

    Under Coils in the simulation tree, create a new closed coil. To specify the internal port of the coil it has been cut into two halves, thus both halves are assigned in a single coil setting. Assign the two ‘Primary Winding 1’ solids to Bodies. For the Internal port, an inner face must be selected – you can choose the ‘NS_Primary Winding 1 Internal Port’ saved selection. Then, change the respective values as shown in Figure 14 for Topology, Number of turns, Wire diameters, and (I) Current.

    transformer set up coil for primary winding
    Figure 14: Setting for the Primary Winding 1 closed coil in SimScale electromagnetics simulation

    For the remaining primary windings (2 and 3), simply duplicate the existing coil settings by right-clicking on Primary Winding 1 and selecting Duplicate.

    transformer duplicate feature
    Figure 15: Setting for the closed coil in SimScale electromagnetics simulation

    The second and third windings have different phase angles compared to the first winding, and this setting must be adjusted under Current phase for those coils (n. 7, Figure 14). Below is a table with the Current Phase values for each coil:

    WindingCurrent Phase
    Primary 1
    Primary 2120º
    Primary 3240º
    Table 1: Current phase definition for Primary Windings

    To define the secondary winding coil, simply mimic the steps for setting up the primary winding, adjusting the additional settings as shown in the figure below.

    transformer set up coil for secondary winding
    Figure 16: Setting for the Secondary Winding 1 closed coil in SimScale electromagnetics simulation

    For the second and third secondary windings, input the following values for Current phase:

    WindingCurrent Phase
    Secondary 1
    Secondary 2120º
    Secondary 3240º
    Table 2: Current Phase definition for Secondary Windings

    Tool Tip

    By right-clicking on the inside face of the two coils you can use the assign other option to select the hidden inside face of the coil without the need to hide one of the coil parts. More tips and tricks on the selection tools within SimScale can be found here.

    2.3 Assign the Boundary Conditions

    There is no need to assign boundary conditions for this simulation.

    2.4 Result Control

    One of the most important indicators of transformer performance is core saturation. Saturation occurs when a ferromagnetic material (like iron or steel) is exposed to a high magnetic field and reaches a point where most of its magnetic domains are aligned. Beyond this point, further increases in the magnetic field (H) cause only minimal increases in magnetic flux density (B), as seen in the flattening of the B-H curve. At saturation, the material’s permeability drops sharply, reducing its ability to guide magnetic flux efficiently.

    saturation point in BH curve for AISI steel 3-Phase Transformer
    Figure 17: BH Curve saturation point for AISI-Steel material

    To evaluate this in a 3-phase transformer simulation, we can place a probe point at the center of the core to monitor the magnetic flux density during operation. By comparing the measured value to the material’s saturation threshold from its B-H curve, we can determine whether the core is operating in the linear region or has entered saturation.

    To create the point, click the ‘+’ icon next to Geometry Primitives in the Geometry view and select ‘Point’. You can leave the default coordinates (0, 0, 0), as they represent the center of the core.

    creation of point geometry primitive in the workbench
    Figure 18: How to create a Point Geometry Primitive in the Workbench

    To create a result control plot using this point, go to Result ControlProbe Points, click ‘+’, and select the point you created earlier. This will enable monitoring of the field variables at that location.

    how to create a result control item and assign a probe point 3-Phase Transformer
    Figure 19: How to create a Probe Point Result control and assign a Point Geometry Primitive

    2.5 Numerics and Simulation Control

    For most analyses, the default settings for Numerics and Simulation control are optimized and do not require modification. The only minor adjustment for this case involves setting the Element accuracy to ‘Second order’ under Numerics. This setting defines a solver interpolation that utilizes second-order (quadratic) shape functions to interpolate electromagnetic field variables (e.g., E, B, etc.) within each element and provides more accurate results at the expense of computational efficiency.

    Figure 20: Changing the element accuracy under Numerics for electromagnetics simulation

    3. Mesh

    We recommend using the Automatic mesh algorithm for mesh creation. This algorithm is generally a good choice due to its automation and ability to deliver good results for most geometries.
    This tutorial will utilize a global mesh fineness level of 3. For users interested in a mesh refinement study, the mesh fineness can be increased by adjusting the Fineness level or by switching the sizing option from Automatic to manual and modifying the edge length range or employing Surface/Volume custom sizing refinements. All these options are described in more detail in the Standard Mesher’s documentation page.

    defining global fineness for transformer mesh 3-Phase Transformer
    Figure 21: Automatic mesh settings with mesh fineness 3

    In addition to the mesh fineness of level 3, the core will have a Volume custom sizing refinement with a Default size of ‘7.5’ \(mm\). To do this, create a new refinement and assign the parts as shown in Figure 22.

    creating a volume custom sizing mesh refinement for the transformer's core
    Figure 22: Mesh volume custom sizing refinement for the core

    How can I run a mesh sensitivity study?

    As mentioned above, mesh sensitivity studies are essential for validating results and achieving an optimal balance between mesh size and solution accuracy. This article will walk you through the process of setting up such a study.

    4. Start the Simulation

    Now you can start the simulation. Click on the ‘+’ icon next to Simulation Runs. This opens up a dialogue box where you can name your run and ‘Start’ the simulation.

    how to start a simulation for transformer model 3-Phase Transformer
    Figure 23: Start the simulation and optionally, change the name of the run.

    Once the results are calculated and the simulation is over, you can already have a look at them in the post-processor by clicking on ‘Solution Fields’ or ‘Post-process results’, as indicated in Figure 24.

    how to access solution fields for the transformer 3-Phase Transformer
    Figure 24: Open the SimScale post-processor to visually inspect the results.

    5. Post-Processing

    5.1 Solution Field

    In the post-processor, start by examining the RMS Magnetic Flux Density around the transformer. To do this, turn off the cutting plane, hide the Flow Region, and set Magnetic Flux Density (RMS) as the field shown in the legend.

    magnetic flux density passing through the transformer 3-Phase Transformer
    Figure 25: Magnetic flux density through the transformer

    To visualize the magnetic field around the transformer, re-enable the cutting plane and set its Orientation to the ‘X-direction’. Enable ‘Vectors’, set the vector field to ‘Magnetic Field’, and adjust the Scale factor to ‘0.02’. For better clarity, move the clamping slider to ‘90%’ and set the cutting plane Opacity to ‘0’ so only the vectors remain visible. You can also improve gradient visualization by setting the legend’s upper limit to ‘0.005’ \(T\).

    magnetic field vectors for 3-phase transformers
    Figure 26: Magnetic field vectors of the 3-Phase Transformer

    5.2 Table Results for Coils

    By expanding the tables under the completed run, you can check the induced voltage on the coils — a key result for evaluating the transformer’s efficiency.

    table for the coils 3 phase transformer induced voltage
    Figure 27: Table values for induced voltage at the secondary windings

    Ohmic losses can also be examined by selecting the corresponding table. These values are crucial for assessing the amount of Joule heating generated by the current flowing through the conductive materials.

    table for the coils 3 phase transformer ohmic losses
    Figure 28: Table values for Ohmic losses

    5.3 Probe Point Inspection

    The probe point results are particularly important in this simulation. As shown in Figure 29, the table displays the magnetic flux density at the core, obtained from the previously created result control item. In this case, the RMS magnetic flux density is 1.8064 \(T\).

    3-Phase Transformer
    Figure 29: Magnetic flux density Probe point report for the 3-Phase Transformer’s core

    A comparison with Figure 17 shows that the core is approaching saturation, although it has not yet exceeded the saturation threshold.

    Analyze your results further with the SimScale post-processor. Have a look at our post-processing guide to learn how to use the post-processor.

    Note

    If you have questions or suggestions, please reach out either via the forum or contact us directly.

    Last updated: August 4th, 2025

    Contents