We continue our year with a major update as we release the new version of the Rat GUI today. In the latest version, there have been significant changes aimed at improving accuracy, especially in geometries involving non-rectangular cross-sections and Frenet-Serret frames. Therefore, it is important to note that you may see a slight change in the calculation results for geometries that use non-rectangular cross-sections or Frenet-Serret frames. If you have any questions regarding this update, please contact us via email.
The first change in Rat is the way line current elements are created. This has been refined to better handle non-rectangular cross-sections and Frenet-Serret frames, thereby enhancing overall accuracy. Also the way the Frenet-Serret frame calculates the velocity of the space curve has changed.
This results in more stable results, especially on the transitions between different sections in geometries. The current density calculation inside Rat is also changed to deal better with non-rectangular cross-sections and Frenet-Serret frames. Additionally, when offsetting from a Frenet-Serret Path, using a Path Offset or Path Cable, the Darboux generators are re-calculated to ensure that the cross-section remains constant.
Next, modifications have been made to the integration of the force density over the coil in the Mesh Calculation post-processor. These changes aim to increase accuracy, particularly when dealing with non-rectangular cross-sections and Frenet-Serret frames. When using a Frenet-Serret frame on a Path that has straight sections in it it will only apply the Frenet-Serret equations to the curved parts and keep the existing straight sections unchanged. This allows to use Frenet-Serret in a wider variaty of cases, for example in a Cloverleaf Coil.
Another key improvement pertains to the calculation method for the local radius feature in CCTs. It no longer normalizes the magnet length and utilizes the radius at position zero when setting the amplitude of harmonics with an angle. This adjustment ensures more precise calculations.
In terms of practical functionality, adjustments have been made to the Cable Path in layer wound configurations to ensure the correct winding direction, with provisions for flipping direction in older models.
To complement these updates, a variety of new examples have been added to showcase the capabilities of the software, including Cosine-Theta coils, an LHC-dipole, a Stellerator, and Iter, among others. These examples are categorized for easy access in the Example Menu. Furthermore, extra examples for iron applications, such as Transformer and Actuator, have been included to demonstrate the versatility of the software in different contexts.
Lastly, various bugs causing crashes in the GUI under certain conditions have been addressed, along with improvements to the stability of FreeCAD export functionality, although further refinements to the FreeCAD export function are still in progress. The bug fixes include: a bug in crashing the GUI when making a new HTS Tape or HTS Core, a bug in the Distmesh crashing the Rat GUI when the element size function is zero somewhere, a bug causing the GUI to crash when the geometry generated is completely NaN or Inf. This should normally not happen, but we've added a catch just in case. We fixed a bug in the Custom CCT Path causing it to miscalculate the length of the magnet when using a certain number of sections per turn. This length is used when bending the magnet to a certain arc-length. The stability of FreeCAD export is improved, although it is still not perfect. A bug fixed in Edge Coils such that the orientation vectors are re-calculated (this is optional). This is useful when using imported Paths for the Edges from XYZ files. Finally, the Rat GUI now deals with the file separator being different on Windows when porting a model file from and to Linux or MacOs.