<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Precise Simulation</title>
    <description>The latest articles on DEV Community by Precise Simulation (@precise-simulation).</description>
    <link>https://dev.to/precise-simulation</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F64758%2Fb804f753-d689-4359-9878-0ee44804d952.png</url>
      <title>DEV Community: Precise Simulation</title>
      <link>https://dev.to/precise-simulation</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/precise-simulation"/>
    <language>en</language>
    <item>
      <title>FEATool Multiphysics 1.18 with New FEA &amp; CFD AI/ML Workflow</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Sun, 01 Feb 2026 00:00:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/featool-multiphysics-118-with-new-fea-cfd-aiml-workflow-4k97</link>
      <guid>https://dev.to/precise-simulation/featool-multiphysics-118-with-new-fea-cfd-aiml-workflow-4k97</guid>
      <description>&lt;p&gt;&lt;em&gt;Precise Simulation&lt;/em&gt; is proud to announce the release of &lt;em&gt;&lt;strong&gt;FEATool Multiphysics&lt;/strong&gt;™&lt;/em&gt; version &lt;em&gt;&lt;strong&gt;1.18&lt;/strong&gt;&lt;/em&gt;, a step forward in the_state-of-the-art_ in Finite Element Analysis (FEA) and Computational Fluid Dynamics (CFD) &lt;em&gt;multi-solver&lt;/em&gt; simulation software.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqhuwjksbwshva5yl961.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqhuwjksbwshva5yl961.jpg" alt=" " width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The latest release introduces a completely redesigned Graphical User Interface (GUI) making the toolbox more user friendly and_easy-to-use_ than ever before. &lt;em&gt;FEATool Multiphysics&lt;/em&gt; also features full support and integration with MATLAB and related toolboxes (such as for &lt;em&gt;Optimization&lt;/em&gt;, &lt;em&gt;Control Systems&lt;/em&gt;, and_Machine Learning_), and advanced features tailored for the evolving needs of engineers and researchers in industry and academia.&lt;/p&gt;

&lt;h2&gt;
  
  
  New Standard for FEA, CFD &amp;amp; CAE AI/ML Simulation Workflows
&lt;/h2&gt;

&lt;p&gt;One of the stand-out features of the FEATool toolbox is the Multiphysics Application Programming Interface (API), with one-click export functionality and automatic conversion of simulation models to MATLAB and Python script models. This enables users to quickly define and set up simulation models in a fully integrated and easy-to-use GUI, and later export, modify, and programmatically run them automatically for large scale parametric studies, and data generation and collection for Physics-Informed Neural Network (PINN), Machine Learning (ML) and artificial intelligence (AI) type simulation models.&lt;/p&gt;

&lt;p&gt;An example of using FEATool Multiphysics to derive reference data as well as validation for machine learning CFD models can be found in several works on Deep Learning (DL) CFD methodology for flow prediction using with AI and machine learning by Prof. Thi-Thu-Huong Le and coworkers at the at the Blockchain Platform Research Center of the Pusan National University (PNU) in Korea.&lt;/p&gt;

&lt;p&gt;Another example, here by Guodong Sa and coworkers, developed a Digital Twin (DT) framework for visualization and design of smart kitchens to facilitate improved kitchen and usability design. In the highlighted work, FEATool Multiphysics was used as a platform for programming and controlling simulation mesh and state-of-the-art CFD flow solvers such as OpenFOAM, and to script, automate, and programmatically generate thousands of sets of simulation data for training the digital twin framework.&lt;/p&gt;

&lt;p&gt;And in the medical field, Prof. Zhang H. and coworkers have recently made use of FEATool Multiphysics to develop a method of denoising and improving vascular blood flow imaging for medical diagnosis using a Physics-Informed Neural Network (PINN). The data to train the PINN on was automatically generated by simulating the Navier-Stokes equations for different flow conditions and geometries. See their preprint on Fluid Dynamics and Domain Reconstruction from Noisy Flow Images Using Physics-Informed Neural Networks and Quasi-Conformal Mapping for more information.&lt;/p&gt;

&lt;p&gt;For more detailed information on the new features and improvements, and to download the toolbox, please visit:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://featool.com/news/2026/02/03/FEATool-Multiphysics-v1p18-Simulation-FEA-CFD-CAE-Workflow-Update/" rel="noopener noreferrer"&gt;https://featool.com/news/2026/02/03/FEATool-Multiphysics-v1p18-Simulation-FEA-CFD-CAE-Workflow-Update/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>fea</category>
      <category>cfd</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>FEATool Multiphysics minor update to version 1.17.5</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Wed, 13 Aug 2025 04:08:17 +0000</pubDate>
      <link>https://dev.to/precise-simulation/featool-multiphysics-minor-update-to-version-1175-4ied</link>
      <guid>https://dev.to/precise-simulation/featool-multiphysics-minor-update-to-version-1175-4ied</guid>
      <description>&lt;p&gt;FEATool Multiphysics minor update to version 1.17.5&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flaaazri0bhu5n1tch391.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flaaazri0bhu5n1tch391.jpg" alt=" " width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In particular, significant improvements in graphics and UI performance for larger 3D models&lt;/li&gt;
&lt;li&gt;Update for FEniCS external FEA and multiphysics solver&lt;/li&gt;
&lt;li&gt;Improved OpenFOAM CFD solver API and documentation&lt;/li&gt;
&lt;li&gt;New AC electrostatics plane capacitor script models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Please Visit &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;https://www.featool.com&lt;/a&gt; for more information and to download and try the toolbox.&lt;/p&gt;

</description>
      <category>multiphysics</category>
      <category>3d</category>
      <category>fea</category>
      <category>cfd</category>
    </item>
    <item>
      <title>FEATool Multiphysics Update v1.17.4</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Mon, 14 Jul 2025 04:02:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/featool-multiphysics-update-v1174-15mp</link>
      <guid>https://dev.to/precise-simulation/featool-multiphysics-update-v1174-15mp</guid>
      <description>&lt;p&gt;FEATool Multiphysics has now been updated to version v1.17.4 including the following changes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update OpenCASCADE geometry engine to v7.9.1 (Windows + Linux)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.featool.com/doc/physics.html#phys_coef_interp" rel="noopener noreferrer"&gt;Support for tabulated/interpolated equation/boundary coefficients&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.featool.com/doc/Heat_Transfer_08_heat_transfer6.html" rel="noopener noreferrer"&gt;Heat conduction example and tutorial for interpolated nonlinear thermal conductivity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;New &lt;a href="https://www.featool.com/doc/setinf_8m.html" rel="noopener noreferrer"&gt;setinf&lt;/a&gt; function (to set infinite values to specific number)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.featool.com/doc/solver.html#solver_troubleshoot" rel="noopener noreferrer"&gt;Troubleshooting documentation solver section&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Minor bug fixes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;See the announcement &lt;a href="https://www.featool.com/news/2025/07/14/FEATool-v1p17p4-Multiphysics-Simulation-Toolbox-Update/" rel="noopener noreferrer"&gt;https://www.featool.com/news/2025/07/14/FEATool-v1p17p4-Multiphysics-Simulation-Toolbox-Update/&lt;/a&gt; for more information.&lt;/p&gt;

</description>
      <category>cfd</category>
      <category>featool</category>
      <category>matlab</category>
      <category>multiphysics</category>
    </item>
    <item>
      <title>Gmsh FEA &amp; CFD mesh generation with MATLAB</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Thu, 12 Jun 2025 01:35:58 +0000</pubDate>
      <link>https://dev.to/precise-simulation/gmsh-fea-cfd-mesh-generation-with-matlab-586a</link>
      <guid>https://dev.to/precise-simulation/gmsh-fea-cfd-mesh-generation-with-matlab-586a</guid>
      <description>&lt;h2&gt;
  
  
  Gmsh Mesh Generator
&lt;/h2&gt;

&lt;p&gt;Gmsh is a very capable and cross platform stand-alone open source mesh generator for FEA and CFD applications. In addition to many built-in mesh generation algorithms, it also includes support for a variety of integrated mesh generators, such as Tetgen and Netgen, and also popular 2D and 3D CAD file formats such as STEP, IGES, and STL. As such is it one of the most flexible and popular mesh generators, and can be used with &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;FEATool Multiphysics&lt;/a&gt; from the fully integrated GUI as well as MATLAB® scripting and programming API.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fykp9zoa4ji8a7yhyac95.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fykp9zoa4ji8a7yhyac95.jpg" alt="Gmsh CAD Step File Import And Mesh Generation Tutorial - 3D" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some advantages of using Gmsh compared to the other grid generators is robustness and mesh generation speed (primarily for 3D geometries). Moreover, Gmsh also supports better and more control with a selection of different mesh generation algorithms, and specifying the grid size in different geometry regions, subdomains, as well as on boundaries, allowing for greater flexibility and better grids tuned for the specific problems and geometries. In addition, Gmsh also supports generating boundary layers and unstructured quadrilateral grids which can be useful for fluid dynamics simulations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gmsh with the FEATool GUI
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Gmsh Installation
&lt;/h3&gt;

&lt;p&gt;Before processing, first ensure that the latest FEATool Multiphysics version is installed (as a MATLAB toolbox Add-On if you wish to use Gmsh with MATLAB).&lt;/p&gt;

&lt;p&gt;When using the FEATool Multiphysics toolbox, the Gmsh executable will be automatically downloaded and installed when required. If the Gmsh installation fails, please manually download and install Gmsh from the homepage &lt;a href="//any%20of%20Gmsh%20versions%203.0.6,%204.3.0,%20and%204.5.2%20are%20recommended,%20as%20they%20have%20been%20tested%20and%20validated%20for%20use%20with%20the%20FEATool%20toolbox"&gt;1&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gmsh with MATLAB GUI
&lt;/h3&gt;

&lt;p&gt;Once installed, the Grid Generation Settings dialog box will in 2D and 3D feature a Gmsh selection option from the Grid Generation Algorithm drop-down box. Moreover, the following options also apply to the Gmsh mesh generation algorithm&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F16ty45nme070sqk04u2z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F16ty45nme070sqk04u2z.png" alt="MATLAB Grid and Mesh Generation with Gmsh and the FEATool GUI" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Subdomain Grid Size, hmax, indicates the target grid cell diameter, and can either be a single scalar prescribing the grid size for the entire geometry, or a space separated string of numbers (array) where the hmax values correspond to the generated subdomains.&lt;/p&gt;

&lt;p&gt;Boundary Grid Size, hmaxb, is analogous to hmax but related to boundaries (edges). hmaxb can consist of a single scalar applicable to all boundaries, for example&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;prescribing a mean cell edge length of 0.1 on every boundary. hmaxb can also be a numeric array with entries corresponding to individual boundaries, for example&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0.1  0.2  0.3  0.4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;specifying cell edge length 0.1 for boundary 1, 0.2 for boundary 2 etc.&lt;/p&gt;

&lt;p&gt;The Smoothing parameter specifies the number of post grid smoothing steps to perform (default 3).&lt;/p&gt;

&lt;p&gt;Selecting the Internal Boundaries check-box in 2D enables mesh generation of structured boundary layers on boundaries. The height of the boundary layer can be specified with the Layer Size and also Aspect Ratio between cells. With Gmsh it is also possible to specify the number of mesh Cells in the boundary layer, and the boundary numbers to apply boundary layer generation to.&lt;/p&gt;

&lt;p&gt;In 2D one can also choose between Triangular and Quadrilateral Cell Types.&lt;/p&gt;

&lt;p&gt;The Generate grid button effectively calls the gridgen command line function from the GUI, which in turn makes a system call to Gmsh, after which the generated grid is automatically imported and displayed.&lt;/p&gt;

&lt;h2&gt;
  
  
  MATLAB Gmsh Programming API
&lt;/h2&gt;

&lt;p&gt;On the MATLAB command line the gridgen function is used to call Gmsh to generate unstructured 2D or 3D triangular grids. The following syntax is used&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid = gridgen( SIN, VARARGIN, 'gridgen', 'gmsh' )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;where SIN is a valid FEATool fea model struct, geometry definition struct, or cell array of geometry objects. The gridgen function also accepts the following property/value pairs (VARARGIN).&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Property    Value/{Default}            Description
-----------------------------------------------------------------------------------
hmax        scal/arr {0.1}             Target grid size for geometry/subdomains
hmaxb       scal/arr {[]}              Target grid size for boundaries
nsm         scalar   {3}               Number of grid smoothing steps
nref        scalar   {0}               Number of uniform grid refinements
algo2       scalar   {2}               2D mesh algorithm (1=MeshAdapt, 2=Automatic,
                                       5=Delaunay, 6=Frontal, 7=BAMG, 8=DelQuad)
algo3       scalar   {1}               3D mesh algorithm (1=Del, 2=New Del, 4=Front
                                       5=Front Del, 6=Front Hex, 7=MMG3D, 9=R-tree)
blayer      struct   {[]}              Data struct for Gmsh 2D boundary layers
quad        boolean  {false}           Use quad meshing (for 2D)
tol         scalar   {eps*1e3}         Deduplication tolerance
compound    boolean  {true}            Use Gmsh compound boundaries
mshopt      cell     {}                Cell array of Gmsh options
mshall      boolean  {true}            Output/save all meshed entities
mshver      integer  {2}               Gmsh msh file version (1/2/4)
nt          integer  {numcores/2}      Number of concurrent threads
verbosity   integer  {5}               Gmsh verbosity/output level
syscmd      string   {'default'}       Gmsh system call command
                                       (default 'gmsh fdir/fname.geo -')
fname       string   {'fea_gmsh_UID'}  Gmsh imp/exp file name (root)
fdir        string   {tempdir}         Directory to write help files
clean       boolean  {true}            Delete (clean) Gmsh help files
instdir     string   {userpath/.featool}  Gmsh binary installation directory
fid         scalar   {1}               File identifier for output ([]=no output)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Among the properties hmax indicates target grid cell diameters, and is either a numeric scalar valid for the entire geometry or an array with hmax values corresponding to the subdomains. hmaxb is similar to hmax but a numeric array with a hmaxb values corresponding to the boundaries (including internal boundaries).&lt;/p&gt;

&lt;p&gt;NSM (default 3) the number of post smoothing steps to perform. NREF (default 0) the number of post uniform grid refinement steps. ALGO2 and ALGO3 the Gmsh 2D and 3D mesh generation algorithms. QUAD (default 0) toggles Blossom-Quad conversion for 2D geometries.&lt;/p&gt;

&lt;p&gt;Additional Gmsh options can be provided with the cell array MSHOPT. For example MSHOPT could be given as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{'Mesh', 'CharacteristicLengthMax', '1'}, {'Mesh', 'AnisoMax', '10'}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More detailed information regarding the mesh generation options can be found in the documentation for Gmsh. Also, for more information about CLI usage access the function help by entering&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; help gridgen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;in the MATLAB command line interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  MATLAB Mesh Generation Examples
&lt;/h2&gt;

&lt;p&gt;The following section presents a few examples to illustrate how one can generate FEA and CFD meshes on the MATLAB command line, and in m-file scripts with the programming API.&lt;/p&gt;

&lt;h3&gt;
  
  
  MATLAB Mesh Generation Gmsh Grid Examples
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Unit square with uniform global grid size set to 0.1.&lt;/p&gt;

&lt;p&gt;grid = gridgen( {gobj_rectangle()}, 'hmax', 0.1, 'gridgen', 'gmsh' );&lt;br&gt;
plotgrid( grid )   % Plot and visualize mesh.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unit square with fine grid along the top boundary.&lt;/p&gt;

&lt;p&gt;grid = gridgen( {gobj_rectangle()}, 'hmax', 0.5, ...&lt;br&gt;
                 'hmaxb', [0.5 0.5 0.01 0.5], 'gridgen', 'gmsh' );&lt;br&gt;
 plotgrid( grid )&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Domain with curved boundaries meshed with quadrilaterals.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;geom.objects = {gobj_rectangle(), gobj_circle([0 0],.6), gobj_circle([1 1],.3,'C2')};
geom = geom_apply_formula( geom, 'R1-C1-C2' );
grid = gridgen( geom, 'hmax', 0.1, 'quad', true, 'gridgen', 'gmsh' );
plotgrid( grid )
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Two connected subdomains with refined grid along the shared boundary &lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;geom.objects = { gobj_polygon([-2e-3 -8e-3;0 -8e-3;0 -6e-3;0 6e-3;0 8e-3;-2e-3 8e-3]), ...
                 gobj_polygon([0 -6e-3;2e-3 -5e-3;2e-3 4e-3;0 6e-3]) };
hmax  = 5e-4;
hmaxb = hmax*ones(1,4);
hmaxb(9) = hmax/5;
grid  = gridgen( geom, 'hmax', hmax, 'hmaxb', hmaxb, 'gridgen', 'gmsh' );
plotgrid( grid )
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Composite component with several subdomains.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r1 = gobj_rectangle( 0, 0.11, 0, 0.12,  'R1' );
c1 = gobj_circle( [ 0.065 0 ],   0.015, 'C1' );
c2 = gobj_circle( [ 0.11 0.12 ], 0.035, 'C2' );
c3 = gobj_circle( [ 0 0.06 ],    0.025, 'C3' );
r2 = gobj_rectangle( 0.065, 0.16, 0.05, 0.07, 'R2' );
c4 = gobj_circle( [ 0.065 0.06 ], 0.01, 'C4' );
geom.objects = { r1 c1 c2 c3 r2 c4 };
geom = geom_apply_formula( geom, 'R1-C1-C2-C3' );
geom = geom_apply_formula( geom, 'R2+C4' );

grid  = gridgen( geom, 'hmax', [0.0025 0.05 0.0025], 'gridgen', 'gmsh' );
plotgrid( grid )
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex geometry with several holes and subdomains.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;w = 10e-4; L = 3*w; H = 5*w;
p1  = gobj_polygon( [w/10 0;(L-w/4)/2 0;(L-w/4)/2 H;0 H;0 H/3], 'P1' );
p2  = gobj_polygon( [(L+w/4)/2 0;L 0;L H-H/3;L H;(L+w/4)/2 H], 'P2' );
r1  = gobj_rectangle( (L-w/4)/2, (L+w/4)/2, 0, H, 'R1' );
c1  = gobj_circle( [2*w/3 3*w], w/3, 'C1' );
c2  = gobj_circle( [2*w/3 2*w], w/3, 'C2' );
c3  = gobj_circle( [2*w/3 1*w], w/3, 'C3' );
c4  = gobj_circle( [L-w/2 4.5*w], w/8, 'C4' );
c5  = gobj_circle( [L-w   4.5*w], w/8, 'C5' );
c6  = gobj_circle( [L-w/2 4*w], w/8, 'C6' );
c7  = gobj_circle( [L-w   4*w], w/8, 'C7' );
c8  = gobj_circle( [L-w/2 3.5*w], w/8, 'C8' );
c9  = gobj_circle( [L-w   3.5*w], w/8, 'C9' );
c10 = gobj_circle( [L-w/2 3*w], w/8, 'C10' );
c11 = gobj_circle( [L-w   3*w], w/8, 'C11' );

geom.objects = { p1 p2 r1 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 };
geom = geom_apply_formula( geom, 'P1-C1-C2-C3' );
geom = geom_apply_formula( geom, 'P2-C4-C5-C6-C7-C8-C9-C10-C11' );

hmaxb = zeros(1,21);
hmaxb([6 20]) = w/50;
grid = gridgen( geom, 'hmax', w./[5 20 5], 'hmaxb', hmaxb, 'gridgen', 'gmsh' );
plotgrid( grid )
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;p&gt;For geometries with multiple and overlapping geometry objects the actual subdomain numbering will generally not correspond to the geometry object numbering (two intersecting geometry objects will for example create three or more subdomains and several internal boundaries). In this case the actual subdomain and boundary numbering for vector valued hmax and hmaxb arrays can easiest be visualized and determined by first creating a coarse grid and switching to Equation/Subdomain and Boundary modes, respectively.&lt;/p&gt;

&lt;p&gt;Gmsh propagates the hmax and hmaxb values down to the specific nodes in the mesh which means that it is currently not possible to exactly define mesh sizes for subdomains and boundaries.&lt;/p&gt;

&lt;p&gt;Gmsh also generates temporary geo and msh data files which, if required, can be found in the directory specified by the fdir parameter (default given by the MATLAB tempdir command).&lt;/p&gt;




&lt;p&gt;Please visit &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;https://www.featool.com&lt;/a&gt; for more information and toolbox download.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;p&gt;[1] Gmsh - A three-dimensional finite element mesh generator with built-in pre- and post-processing facilities.&lt;/p&gt;

&lt;p&gt;[2] Geuzaine C., Remacle J.-F. Gmsh: a 3D finite element mesh generator with built-in pre- and post-processing facilities, International Journal for Numerical Methods in Engineering 79 (11), pp. 1309-1331, 2009.&lt;/p&gt;

</description>
      <category>matlab</category>
      <category>gmsh</category>
      <category>fea</category>
      <category>meshing</category>
    </item>
    <item>
      <title>Building FEA simulation tools using FEATool Multiphysics MATLAB API</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Tue, 10 Jun 2025 09:18:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/building-fea-simulation-tools-using-featool-multiphysics-matlab-api-2a2b</link>
      <guid>https://dev.to/precise-simulation/building-fea-simulation-tools-using-featool-multiphysics-matlab-api-2a2b</guid>
      <description>&lt;p&gt;ADRANOS (short for Advanced Divertor paRametric Analysis for coolaNt Operating Scenarios) is a specialized MATLAB based simulation tool, developer by researchers at the Department of Engineering of the University of Palermo, to assess steady-state performance diverter cooling circuits in fusion reactor applications.&lt;br&gt;
The specialized tool was developed as full scale 3D Computational Fluid Dynamics (CFD) simulation have shown not to be feasible, as a large number of parametric configurations and simulations are required to be performed in order to analyze and optimize diverter performance and design.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2qvgex8izkqknqbj0gnl.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2qvgex8izkqknqbj0gnl.jpg" alt="ADRANOS simulation framework using FEATool Multiphysics" width="800" height="603"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ADRANOS simulation framework using FEATool Multiphysics for heat transfer FEM simulationsThe ADRANOS simulation framework consists of two modules that work together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Lumped-Parameter Module - This module looks at the steady-state of the entire cooling circuit, breaking it down into major sections or volumes to quickly figure out overall flow rates, average coolant temperatures, and pressure drops across the sections.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2D FEM Thermal Analyses Module - This module employs the FEATool Multiphysics toolbox to perform thermal simulations of the most crucial parts of the divertor, specifically the Plasma Facing Unit (PFU) monoblocks.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The 2D FEM module is a crucial part of ADRANOS and works in conjunction with the lumped-parameters module. The integration of the FEM solver allows ADRANOS to assess detailed temperature distributions and check for compliance with material temperature limits, especially for critical PFU materials like tungsten, copper interlayer, and alloys in the pipes.&lt;br&gt;
In particular, as &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;FEATool Multiphysics&lt;/a&gt; features a native MATLAB Application Programming Interface (API) making it easy to program and set up custom parametric simulations runs varying geometry, mesh, and physics definitions to programmatically generate parallel sets of simulation data. Moreover, the easy to use API also allowed for integrating and embedding the FEATool FEM simulations in the overarching ADRANOS framework.&lt;/p&gt;

&lt;p&gt;The ADRANOS code was developed in the MATLAB programming language with an object-oriented (OOP) approach, to make it highly flexible in evaluating different cooling system topologies. Moreover, it is also optimized for parallel High Performance Computing (HPC), in order to greatly reduce overall time required to perform complex simulations, and enable quick and automatic execution of thousands of simulations under various coolant operating conditions.&lt;/p&gt;

&lt;p&gt;See the linked references for more detailed information about this research with data available from the authors upon request.&lt;/p&gt;

&lt;p&gt;References:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quartararo A., Di Maio P.A., Vallone E. ADRANOS: A numerical tool developed to analyse coolant operating conditions of the EU-DEMO divertor, Fusion Engineering and Design 197, 114055, 2023, doi: 0.1016/j.fusengdes.2023.114055.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>matlab</category>
      <category>fem</category>
      <category>heattransfer</category>
      <category>simulation</category>
    </item>
    <item>
      <title>CFD simulations for a real-time smart home digital twin (DT) framework</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Sun, 02 Mar 2025 00:00:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/cfd-simulations-for-a-real-time-smart-home-digital-twin-dt-framework-30a9</link>
      <guid>https://dev.to/precise-simulation/cfd-simulations-for-a-real-time-smart-home-digital-twin-dt-framework-30a9</guid>
      <description>&lt;p&gt;multiscale simulation through multiple sensors collaborative sensing of physical reality. In the context of a smart home, DT technology uses sensors, internet of things (IoT) devices, deep learning (DL), and artificial intelligence (AI) algorithms to collect and analyze data in real-time, creating a virtual model of the home environment.&lt;/p&gt;

&lt;p&gt;Digital twin frameworks typically integrate data processing, flow field simulation, equipment monitoring, interactive elements, and visualization techniques to provide real-time insights into operations. For a smart kitchen, DT offers significant benefits for designers, enabling them to design appropriate kitchen appliances, improve development efficiency, and make more accurate predictions. For users, the DT offers valuable insights into the current state and dynamic evolution of the kitchen environment, thereby elevating the overall user experience to a higher level.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qywxryu2f7rqa8azw26.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qywxryu2f7rqa8azw26.webp" alt="Smart home geometry (left) and simplified FEATool Multiphysics CFD simulation for digital twin (right)" width="768" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Smart home geometry (left) and simplified &lt;a href="https://featool.com/computational-fluid-dynamics-cfd-simulation-software/" rel="noopener noreferrer"&gt;FEATool Multiphysics CFD simulation&lt;/a&gt; for digital twin (right)&lt;/p&gt;

&lt;p&gt;One of the most computationally expensive components of the proposed digital twin framework are computational fluid dynamics (CFD) flow simulations. In order to overcome this limitation, the authors implemented an online and cloud based residual-based Fourier neural operator (RFNO) simulation method to achieve accurate results faster.&lt;/p&gt;

&lt;p&gt;RFNO works by encoding input data, such as initial conditions, boundary conditions, and physical parameters, along with geometry and location information. The input is then processed through multiple residual modules, each containing Fourier layers. Within these layers, RFNO applies a Fourier transform to extract flow field information, filters high-frequency modes using a linear transform. Given new inputs, an inverse Fourier transform can then be used to convert the data back without performing costly simulations. The proposed RFNO method could be shown to be 1000 times faster than traditional CFD simulations on a flow around a cylinder benchmark.&lt;/p&gt;

&lt;p&gt;In the presented work, the native &lt;a href="https://www.featool.com/matlab-cfd-toolbox/" rel="noopener noreferrer"&gt;MATLAB and Python programming API available with FEATool Multiphysics&lt;/a&gt;, as well as &lt;a href="https://www.featool.com/Easy-to-Use-OpenFOAM-GUI/" rel="noopener noreferrer"&gt;easy to use OpenFOAM GUI&lt;/a&gt; for mesh and case file generator, made it a uniquely suitable tool to script, automate, and programmatically generate thousands of sets of simulation data for training the RFNO digital twin framework.&lt;/p&gt;

&lt;p&gt;See the linked references for more detailed information about this research.&lt;/p&gt;

&lt;p&gt;References:&lt;/p&gt;

&lt;p&gt;Sa G., Wu C., Liu Z., et al. A visual digital twin framework based on residual-based fourier neural operator online simulation method, Journal of Simulation, 1–21, 2024, doi: 10.1080/17477778.2024.2394063.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;https://www.featool.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>digitaltwin</category>
      <category>ai</category>
      <category>cfd</category>
      <category>simulation</category>
    </item>
    <item>
      <title>Design of Transmission Tubes for Surgical Concentric Push-Pull Robots</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Sun, 16 Feb 2025 00:00:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/design-of-transmission-tubes-for-surgical-concentric-push-pull-robots-1n84</link>
      <guid>https://dev.to/precise-simulation/design-of-transmission-tubes-for-surgical-concentric-push-pull-robots-1n84</guid>
      <description>&lt;p&gt;This paper explores the design of “concentric push-pull robots” designed to make endoscopic surgery easier, such as biopsies or to removing polyps. In contrast to using colonoscopes which are difficult to maneuver, and may lead to longer procedure times and a higher chance of needing additional more invasive procedures, the authors designed concentric push-pull robots, which consist of two thin tubes, one inside the other, that are made of a material that can bend. The tubes are moved by pushing and pulling them from the end outside the body, which causes the tubes to bend in specific ways allowing for more precise control of the instruments inside the body.&lt;/p&gt;

&lt;p&gt;The authors used the FEATool &lt;a href="https://www.featool.com/multiphysics/" rel="noopener noreferrer"&gt;Multiphysics&lt;/a&gt; finite element (FEA) simulation toolbox to create 3D models of the tubes and analyze the stiffness while simulating how the tube would bend and twist in response to different forces. These simulations were then used to calculate the bending and torsional stiffness of the tube. They also used FEATool to investigate how the shape of the slots affected the stiffness properties. stiffness. Finally, they used simulation to optimize the design of the slots to achieve the desired balance of bending and torsional stiffness.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr6vv8ajm82m1hfcdtatk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr6vv8ajm82m1hfcdtatk.jpg" alt="Structural mechanics FEA simulation for design of Push-Pull robots" width="800" height="761"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See the linked references for more detailed information about this research.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;References:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dang K.T., Qiu S., et al. Design of Transmission Tubes for Surgical Concentric Push-Pull Robots, International Symposium on Medical Robotics (ISMR), 2024, doi: 10.1109/ISMR63436.2024.10585572.&lt;/p&gt;

</description>
      <category>fea</category>
      <category>robotics</category>
      <category>3d</category>
      <category>simulation</category>
    </item>
    <item>
      <title>FEATool Multiphysics v1.17.3 Update for MATLAB 2025a</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Fri, 14 Feb 2025 09:32:47 +0000</pubDate>
      <link>https://dev.to/precise-simulation/featool-multiphysics-v1173-update-for-matlab-2025a-2i1e</link>
      <guid>https://dev.to/precise-simulation/featool-multiphysics-v1173-update-for-matlab-2025a-2i1e</guid>
      <description>&lt;p&gt;FEATool #Multiphysics FEA &amp;amp; #CFD simulation toolbox update v1.17.3 now available.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbs28omwedtnwp620qmh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbs28omwedtnwp620qmh.png" alt="Image description" width="759" height="765"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Including compatibility fixes for #MATLAB 2025a runtime. However, using MATLAB 2025a or later is &lt;em&gt;NOT&lt;/em&gt; Recommended as the old Java GUI has been deprecated, while the new Web UI generally does not perform well and has some UI incompatibilities.&lt;/p&gt;

&lt;p&gt;Visit &lt;a href="https://www.featool.com/" rel="noopener noreferrer"&gt;https://www.featool.com/&lt;/a&gt; for more information and toolbox download.&lt;/p&gt;

</description>
      <category>matlab</category>
      <category>multiphysics</category>
      <category>cfd</category>
      <category>fea</category>
    </item>
    <item>
      <title>Thrombosis risk assesment using CFD simulation from PIV data</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Thu, 02 Jan 2025 00:00:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/thrombosis-risk-assesment-using-cfd-simulation-from-piv-data-14p5</link>
      <guid>https://dev.to/precise-simulation/thrombosis-risk-assesment-using-cfd-simulation-from-piv-data-14p5</guid>
      <description>&lt;p&gt;The following research, conducted by Borowski F., Kaule S., and colleagues concerns a type of heart valve that can be inserted without open-heart surgery (transcatheter aortic valve replacement TAVR). The researchers wanted to see if the way the valve is inserted affects how well blood flows through it, specifically the risk of thrombosis, or blood clot formation, due to misalignment of the artificial valve. To perform the study an experimental artificial model of the human heart was created after which they then inserted the valve in two different ways, measuring the flow field with particle image velocimetry (PIV).&lt;/p&gt;

&lt;p&gt;To evaluate the risk of thrombosis two fluid mechanic predictors where chosen, shear induced effect and residence time, which are commonly associated with the thrombosis formation. These two transport equations were calculated and solved using the numerical solvers provided by FEATool Multiphysics. Geometry and time dependent boundary conditions in the fluid domain could be implemented using the measured PIV velocity fields, using custom MATLAB functions in FEATool, after which a transient numerical simulation was performed to solve the transport equations.&lt;/p&gt;

&lt;p&gt;The results of the study show that the circumferential positioning of TAVR has an impact on the local flow field. The authors conclude that the implantation strategy of a TAVR should not only focus on implantation height with respect to regurgitation but also on the alignment of native and prosthetic commissures.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdv2ffeegz3n38op771x5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdv2ffeegz3n38op771x5.jpg" alt="FEATool Multiphysics CFD simulation with PIV data" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FEATool’s easy to use GUI, and integration with a MATLAB programming and scripting API allowed for easy manipulation and analysis of the imported PIV data, streamlining the process of CFD simulation. Once FEATool completed the simulations, the researchers extracted the velocity and pressure data at each grid point. This data was then preprocessed and formatted and analyzed.&lt;/p&gt;

&lt;p&gt;See the linked references for more detailed information about this research.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;References&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Borowski F., Kaule S., et al. Analysis of thrombosis risk of commissural misaligned transcatheter aortic valve prostheses using particle image velocimetry, Technisches Messen, vol. 91, no. 6, pp. 291-304, 2024, doi: 10.1515/teme-2022-0100.&lt;/p&gt;

</description>
      <category>multiphysics</category>
      <category>cfd</category>
      <category>medical</category>
      <category>simulation</category>
    </item>
    <item>
      <title>AI &amp; Deep Learning for CFD Flow Prediction</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Wed, 20 Nov 2024 00:00:00 +0000</pubDate>
      <link>https://dev.to/precise-simulation/ai-deep-learning-for-cfd-flow-prediction-475l</link>
      <guid>https://dev.to/precise-simulation/ai-deep-learning-for-cfd-flow-prediction-475l</guid>
      <description>&lt;p&gt;In a series of publications Prof. Thi-Thu-Huong Le, Hoyeun Kang, and&lt;br&gt;
colleagues from Pusan National University (PNU) in Korea, have&lt;br&gt;
successfully developed a new deep learning (DL) CFD methodology for&lt;br&gt;
flow prediction using &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;&lt;em&gt;FEATool Multiphysics&lt;/em&gt;&lt;/a&gt; with AI and machine learning.&lt;/p&gt;

&lt;p&gt;Although traditional Computational Fluid Dynamics (CFD) solvers are&lt;br&gt;
becoming increasingly common tool in aerospace, automotive, and other&lt;br&gt;
engineering fields, while effective, face limitations, primarily&lt;br&gt;
related to high computational cost. Especially when high spatial and&lt;br&gt;
temporal resolution is needed for accurate simulation, traditional CFD&lt;br&gt;
solvers become computationally expensive, and can sometimes require&lt;br&gt;
days or even weeks to perform accurate analysis.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffeatool.com%2Fimages%2Fmodels%2Fclassic-cfd-solver-compared-to-ai-deep-learning-cfd-solution.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffeatool.com%2Fimages%2Fmodels%2Fclassic-cfd-solver-compared-to-ai-deep-learning-cfd-solution.jpg" alt="Classic CFD solver compared to AI deep learning CFD solution" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Deep learning have potential to offer an alternative approach that may&lt;br&gt;
significantly reduce computational cost, creating an AI CFD model on&lt;br&gt;
an accurate fluid dynamics dataset. The autors propose such a new CFD&lt;br&gt;
model, named &lt;em&gt;CFDformer&lt;/em&gt;, which combines a Vision Transformer (ViT)&lt;br&gt;
and a U-shaped Convolutional Neural Network (U-Net) in an&lt;br&gt;
encoder-decoder architecture to predict fluid flow on 2D geometries.&lt;/p&gt;

&lt;p&gt;A DL-CFD model agent can offer a number of advantages compared to&lt;br&gt;
traditional CFD simulations&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Act as Surrogate Models&lt;/em&gt; - Deep learning models, trained on data&lt;br&gt;
from CFD simulations, can act as surrogate models, effectively&lt;br&gt;
approximating the solutions to the Navier-Stokes equations. This&lt;br&gt;
approach bypasses the need for computationally intensive iterative&lt;br&gt;
calculations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Speed Up Simulations&lt;/em&gt; - Deep learning models can significantly&lt;br&gt;
reduce simulation times. For example, &lt;em&gt;CFDformer&lt;/em&gt;, a hybrid model&lt;br&gt;
combining a Vision Transformer and a U-Net, was shown to &lt;strong&gt;decrease&lt;br&gt;
analysis time by up to 99.94%&lt;/strong&gt; compared to standard CFD solvers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Complex Flow Scenarios&lt;/em&gt; - Deep learning models can handle&lt;br&gt;
complex flow scenarios with relatively high accuracy, and are&lt;br&gt;
particularly well-suited for modeling flows around obstacles, such&lt;br&gt;
as found in aerodynamics applications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Adapt to New Conditions&lt;/em&gt; - Some deep learning models can generalize&lt;br&gt;
well to new, unseen conditions not encountered during training. This&lt;br&gt;
allows them to make reasonable predictions for conditions within a&lt;br&gt;
specific range, even without explicit training data for those&lt;br&gt;
conditions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Enhancing Feature Extraction&lt;/em&gt; - Deep learning models can be&lt;br&gt;
designed to extract both local and global features from input data,&lt;br&gt;
improving the accuracy of flow approximations. For instance,&lt;br&gt;
&lt;em&gt;CFDformer&lt;/em&gt; uses convolutional layers to capture local spatial&lt;br&gt;
features and a Vision Transformer to analyze global flow features.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;em&gt;FEATool Multiphysics&lt;/em&gt; toolbox was used to generate datasets of 2D&lt;br&gt;
incompressible and laminar flows around various obstacles, including&lt;br&gt;
cylinders, triangles, rectangles, and pentagons. In particular, as&lt;br&gt;
&lt;a href="https://featool.com/computational-fluid-dynamics-cfd-simulation-software/" rel="noopener noreferrer"&gt;&lt;em&gt;FEATool&lt;/em&gt; supports multiple CFD solvers&lt;/a&gt;,&lt;br&gt;
such as OpenFOAM, using multiple solvers is ideal way to generate&lt;br&gt;
&lt;a href="https://featool.com/cfd/2018/07/02/FEniCS-OpenFOAM-MATLAB-CFD-Flow-Solver-Benchmark/" rel="noopener noreferrer"&gt;accurate and trustworthy, benchmark and validation CFD studies and&lt;br&gt;
datasets&lt;/a&gt;. These datasets served as the ground truth for training and&lt;br&gt;
evaluating deep learning models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sm3fyeaxo5aneih1qvp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sm3fyeaxo5aneih1qvp.jpg" alt="Using FEATool Multiphysics for AI CFD data collection" width="800" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;FEATool's&lt;/em&gt; easy to use GUI, and integration with a MATLAB programming&lt;br&gt;
and scripting API allowed for easy manipulation and analysis of the&lt;br&gt;
simulation data, streamlining the process of preparing the data for&lt;br&gt;
deep learning. Once FEATool completed the simulations, the researchers&lt;br&gt;
extracted the velocity and pressure data at each grid point. This data&lt;br&gt;
was then preprocessed and formatted as input for training deep&lt;br&gt;
learning models.&lt;/p&gt;

&lt;p&gt;Please visit &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;https://www.featool.com&lt;/a&gt; for more information and toolbox download.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Kang H., et al. A new fluid flow approximation method using a vision transformer and a U-shaped convolutional neural network, AIP Advances, Volume 13, Issue 2, 2023, doi: 10.1063/5.0138515.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prihatno A.T., et al. 2D Fluid Flows Prediction Based on U-Net Architecture, Proceedings of International Conference on Artificial Intelligence in Information and Communication (ICAIIC), 2023, doi: 10.1109/ICAIIC57133.2023.10066980.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Le T.T.H, Kang H. et al. CFD Prediction of Indoor Airflow using Deep Learning, Conference paper, 2022.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Le T.T.H., Kang H., Kim H. Towards Incompressible Laminar Flow Estimation Based on Interpolated Feature Generation and Deep Learning, Sustainability, 14, 11996, 2022, doi: 10.3390/su141911996.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Kang H. CFDformer: Novel Fluid Flow Approximation based on ViT and U-Net, GitHub repository for CFDformer MATLAB dataset generation, doi: 10.5281/zenodo.7527624, 2023.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>cfd</category>
      <category>simulation</category>
      <category>matlab</category>
    </item>
    <item>
      <title>CAD File Import and Mesh Generation with Gmsh</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Wed, 13 Nov 2024 11:43:32 +0000</pubDate>
      <link>https://dev.to/precise-simulation/cad-file-import-and-mesh-generation-with-gmsh-1oj4</link>
      <guid>https://dev.to/precise-simulation/cad-file-import-and-mesh-generation-with-gmsh-1oj4</guid>
      <description>&lt;p&gt;Gmsh is a popular cross platform and open source mesh generation software which supports many CAD file formats such as STEP, IGES, and STL. In addition to its own mesh generation algorithms, Gmsh also includes support for a variety of integrated mesh generators, such as &lt;em&gt;Netgen&lt;/em&gt;, &lt;em&gt;Tetgen&lt;/em&gt;, and &lt;em&gt;Triangle&lt;/em&gt;. As such is it one of the most flexible mesh generators, and can be used with &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;&lt;em&gt;FEATool Multiphysics&lt;/em&gt;&lt;/a&gt; to allow meshing complex geometries and models than the default built-in grid generator.&lt;/p&gt;

&lt;p&gt;Although &lt;em&gt;FEATool&lt;/em&gt; includes built-in support for import and automatic meshing of CAD geometries, controlling the mesh generation steps manually offer more control and can result in higher quality meshes, and more accurate simulation results. Manual meshing can for instance be useful for more difficult 3D geometries, which may require repair or defeaturing in order to allow for creation of good meshes for simulation.&lt;/p&gt;

&lt;p&gt;The following section explains how to use Gmsh to manually load and import a CAD geometry from a STEP file, and then generate a mesh which can be imported and used with &lt;em&gt;FEATool Multiphysics&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gmsh CAD File Import and Mesh Generation Tutorial
&lt;/h2&gt;

&lt;p&gt;This is a tutorial showing how to import a STEP model into Gmsh, and&lt;br&gt;
generate a 3D volume mesh for finite element analysis (FEA)&lt;br&gt;
simulations. The STEP file and CAD model used in the example can be&lt;br&gt;
downloaded from the link below (but any STEP model should technically&lt;br&gt;
work)&lt;/p&gt;

&lt;a href="https://www.featool.com/download/spanner.step" rel="noopener noreferrer"&gt;Fixed Spanner CAD STEP Model&lt;/a&gt;
&lt;h3&gt;
  
  
  1. Start Gmsh (using version 2 Mesh File Format)
&lt;/h3&gt;

&lt;p&gt;If the resulting mesh is to be used with the &lt;em&gt;FEATool Multiphysics&lt;/em&gt; toolbox (or the Gmsh MATLAB API), it is important that the Gmsh mesh file is saved in Gmsh ASCII mesh file format version 2. This format is default in Gmsh versions 2-3, but not in the current Gmsh versions 4.x.&lt;/p&gt;

&lt;p&gt;To make sure Gmsh saves and exports meshes in version 2 format, one can either start Gmsh with the command line argument &lt;code&gt;-format msh2&lt;/code&gt;, for example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gmsh.exe -format msh2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or set the following option in the general or mesh specific Gmsh &lt;em&gt;.opt&lt;/em&gt; options file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mesh.MshFileVersion = 2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The option files can be generated by selecting &lt;code&gt;Save Model Options&lt;/code&gt; or &lt;code&gt;Save Options As Default&lt;/code&gt; in the &lt;code&gt;File&lt;/code&gt; menu of the Gmsh GUI.&lt;/p&gt;

&lt;p&gt;If there are issues importing the mesh into &lt;em&gt;FEATool&lt;/em&gt; one can also optionally try to add the &lt;code&gt;-save_all&lt;/code&gt; command line argument which corresponds to the &lt;code&gt;Mesh.SaveAll = 1;&lt;/code&gt; &lt;em&gt;.opt&lt;/em&gt; file option.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. CAD Model Import with the Merge Operation
&lt;/h3&gt;

&lt;p&gt;The second step is to use the &lt;strong&gt;&lt;code&gt;Merge…&lt;/code&gt;&lt;/strong&gt; option, from the &lt;strong&gt;&lt;code&gt;File&lt;/code&gt;&lt;/strong&gt; menu in the Gmsh menubar. Choosing this menu option opens a file selection dialog box where the CAD file to import can be chosen. In this example, select the &lt;em&gt;spanner.step&lt;/em&gt; file and press the &lt;strong&gt;&lt;code&gt;Open&lt;/code&gt;&lt;/strong&gt; button to automatically let Gmsh load, import, and construct edges and faces for the geometry. If the model has been imported successfully it should be displayed and shown in the main GUI window of Gmsh (you can use mouse controls to rotate and zoom in/out).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpj89hsrifhjhzw8o5ei7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpj89hsrifhjhzw8o5ei7.jpg" alt="Gmsh CAD Step File Import And Mesh Generation Tutorial - Merge" width="800" height="492"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Setting Mesh Options and Specifying Grid Size
&lt;/h3&gt;

&lt;p&gt;Gmsh supports several options to specify mesh and grid sizes. One can for example prescribe specific sizes at various points, or define functions to determine variable mesh sizing. Here the &lt;strong&gt;Min/Max element size&lt;/strong&gt; option is used to set a global maximum mesh size of &lt;em&gt;6 mm&lt;/em&gt; (as the units in this CAD model is defined in millimeters). This option can be found on the &lt;strong&gt;&lt;code&gt;General&lt;/code&gt;&lt;/strong&gt; tab, in the &lt;strong&gt;&lt;code&gt;Mesh&lt;/code&gt;&lt;/strong&gt; section of the &lt;em&gt;Options&lt;/em&gt; dialog box (which is accessed by selecting &lt;strong&gt;&lt;code&gt;Options&lt;/code&gt;&lt;/strong&gt; from the &lt;strong&gt;&lt;code&gt;Tools&lt;/code&gt;&lt;/strong&gt; menu).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fus8ygwd8ziwbq6y7688i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fus8ygwd8ziwbq6y7688i.jpg" alt="Gmsh CAD Step File Import And Mesh Generation Tutorial - Options" width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A description of the different mesh options is available in the &lt;em&gt;Mesh options&lt;/em&gt; section of the Gmsh reference guide.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  4. 3D Mesh and Grid Generation
&lt;/h3&gt;

&lt;p&gt;To generate a 3D volume mesh, first click on the &lt;strong&gt;[+] Mesh&lt;/strong&gt; node in the left hand side tree list to expand it, then click to the &lt;strong&gt;3D&lt;/strong&gt; node to start and run the selected mesh generation algorithm. Once the mesh generation algorithm has finished the resulting mesh should be displayed in the Gmsh GUI window.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzdg4324mv4fufcmv2ar.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzdg4324mv4fufcmv2ar.jpg" alt="Gmsh CAD Step File Import And Mesh Generation Tutorial - 3D" width="800" height="492"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  5. Mesh Info, Saving, and Mesh Export
&lt;/h3&gt;

&lt;p&gt;Progress information and messages (and errors) are displayed in the bottom line of the Gmsh UI. Clicking on this line also expands and opens the message and log window, where one can see information and statistics from the mesh generation process.&lt;/p&gt;

&lt;p&gt;Once a mesh has been generated it can be saved and exported by using the &lt;strong&gt;&lt;code&gt;Save Mesh&lt;/code&gt;&lt;/strong&gt; option from the &lt;strong&gt;&lt;code&gt;File&lt;/code&gt;&lt;/strong&gt; menu (the file will be saved in the same directory and named as the imported CAD file but with the &lt;em&gt;.msh&lt;/em&gt; file extension).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6czcr3gw4rk2vuve0s50.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6czcr3gw4rk2vuve0s50.jpg" alt="Gmsh CAD Step File Import And Mesh Generation Tutorial - Info and Save" width="800" height="492"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Gmsh Import and Export in FEATool Multiphysics
&lt;/h2&gt;

&lt;p&gt;To import and use a Gmsh &lt;em&gt;.msh&lt;/em&gt; file with &lt;em&gt;FEATool Multiphysics&lt;/em&gt; use the &lt;strong&gt;&lt;code&gt;Import Grid&lt;/code&gt;&lt;/strong&gt; &amp;gt; &lt;strong&gt;&lt;code&gt;Gmsh Format…&lt;/code&gt;&lt;/strong&gt; option found under the &lt;strong&gt;&lt;code&gt;Grid&lt;/code&gt;&lt;/strong&gt; mode menu of the toolbox GUI (note that the mesh file has to have the same 2D or 3D space dimension as the model, and be in Gmsh version 2 ASCII format to be compatible with the toolbox).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7hjd950ee3af3zbv0unk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7hjd950ee3af3zbv0unk.jpg" alt="FEATool and MATLAB Gmsh Mesh and Grid Import" width="800" height="566"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An illustrative example on how to import the spanner CAD model, define, set up, and run simulations in &lt;em&gt;FEATool Multiphysics&lt;/em&gt; is explained in the linked tutorial for a &lt;a href="https://www.featool.com/tutorial/2017/11/13/CAD-Import-and-Parametric-Stress-Displacement-Simulation/" rel="noopener noreferrer"&gt;structural mechanics simulation with a parametric displacement study&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  MATLAB Gmsh Import and Export Functionality
&lt;/h2&gt;

&lt;p&gt;Alternatively, the &lt;code&gt;impexp_gmsh&lt;/code&gt; function, from the MATLAB programming and scripting API, can be used directly on the command line to import a Gmsh mesh directly into MATLAB. The following commands imports, exports, and visualizes the mesh in MATLAB&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight matlab"&gt;&lt;code&gt;&lt;span class="n"&gt;input_file&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'C:\temp\spanner.msh'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;% Full path to input mesh file.&lt;/span&gt;
&lt;span class="nb"&gt;mesh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;impexp_gmsh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;input_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'import'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="n"&gt;plotgrid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;mesh&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;% Plot and visualize mesh&lt;/span&gt;

&lt;span class="n"&gt;plotsubd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;mesh&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;% Plot and visualize subdomains&lt;/span&gt;

&lt;span class="n"&gt;plotbdr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;mesh&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;    &lt;span class="c1"&gt;% Plot and visualize boundaries&lt;/span&gt;

&lt;span class="n"&gt;output_file&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'C:\temp\output.msh'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;% Full path to output mesh file.&lt;/span&gt;
&lt;span class="n"&gt;impexp_gmsh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;output_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'export'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;mesh&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Toolbox Availability and Download
&lt;/h2&gt;

&lt;p&gt;The &lt;em&gt;FEATool Multiphysics™&lt;/em&gt; toolbox is available as stand-alone&lt;br&gt;
Desktop App, and also as &lt;em&gt;MATLAB&lt;/em&gt; toolbox Add-Ons, with fully interactive GUI and cross-platform support for the Microsoft Windows&lt;span&gt;&lt;/span&gt;, Linux, and MacOS operating systems. The toolboxes can be downloaded directly from the homepage &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;https://www.featool.com&lt;/a&gt; (&lt;em&gt;or installed with one-click from the MATLAB Add-Ons Toolbar&lt;/em&gt;).&lt;/p&gt;

</description>
      <category>gmsh</category>
      <category>cad</category>
      <category>step</category>
      <category>mesh</category>
    </item>
    <item>
      <title>Multi-body System Simulation with FEATool Multiphysics for Design of Optical Grating Tiling Devices</title>
      <dc:creator>Precise Simulation</dc:creator>
      <pubDate>Tue, 12 Nov 2024 13:19:52 +0000</pubDate>
      <link>https://dev.to/precise-simulation/multi-body-system-simulation-with-featool-multiphysics-for-design-of-optical-grating-tiling-devices-h13</link>
      <guid>https://dev.to/precise-simulation/multi-body-system-simulation-with-featool-multiphysics-for-design-of-optical-grating-tiling-devices-h13</guid>
      <description>&lt;p&gt;A grating tiling device is an optical element which can separate light&lt;br&gt;
into different wavelength components. Such devices are for example&lt;br&gt;
used in spectroscopy, and in optical laser devices for fusion&lt;br&gt;
confinement. Due to the high sensitivity and precision required in&lt;br&gt;
these devices, stability with respect to vibrations and temperature is&lt;br&gt;
of the most important aspects in their design.&lt;/p&gt;

&lt;p&gt;Modeling and design of grating devices using traditional finite&lt;br&gt;
element analysis (FEA) require increasing computational effort, and is&lt;br&gt;
often limited by available computing capabilities. In the last two&lt;br&gt;
decades, multi-body system (MBS) simulations have instead become the&lt;br&gt;
most effective tool in modeling and analysis of such complex&lt;br&gt;
mechanical systems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2h47y9tyfhn0d6bfk4k4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2h47y9tyfhn0d6bfk4k4.jpg" alt="FEATool Multiphysics - Simulation of a Grating Tiling Device" width="800" height="513"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Research presented in the paper &lt;em&gt;“Development of dynamics for design&lt;br&gt;
procedure of novel grating tiling device with experimental&lt;br&gt;
validation”&lt;/em&gt; make use of the &lt;a href="https://www.featool.com" rel="noopener noreferrer"&gt;&lt;em&gt;FEATool Multiphysics&lt;/em&gt; toolbox&lt;/a&gt;, and its&lt;br&gt;
native MATLAB® FEA API, to develop a new efficient process for&lt;br&gt;
design of tiled grating devices. The authors suggest and explore an&lt;br&gt;
alternative MBS procedure in order to obtain an efficient design cycle&lt;br&gt;
(labeled dynamics for design DFD), by integrating the dynamics of&lt;br&gt;
interconnected systems, including nonlinearities, vibration analysis,&lt;br&gt;
and parameter estimation, with current design methodologies.&lt;/p&gt;

&lt;p&gt;Specifically, a multi-body dynamics approach was used to calculate&lt;br&gt;
reaction forces acting on the flexible and flexure bodies of the&lt;br&gt;
grating tiling device. This approach defined a parametric feedback&lt;br&gt;
loop in MATLAB, where forces where used as input to a &lt;em&gt;FEATool&lt;br&gt;
Multiphysics&lt;/em&gt; stress-strain structural mechanics script model in each&lt;br&gt;
iteration of the loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5uwko9k09vvzqw903dld.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5uwko9k09vvzqw903dld.jpg" alt="FEATool Multiphysics - Multi-body Simulation System Loop" width="800" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The optimum design could be achieved by changing materials in the&lt;br&gt;
flexible and flexure bodies and system dimensions and iterating until&lt;br&gt;
reaching the maximum range of grating movement parameter. As seen in&lt;br&gt;
the diagram below the &lt;em&gt;FEATool&lt;/em&gt; simulation software was used as a&lt;br&gt;
central key component in the simulation loop made possible due to its&lt;br&gt;
MATLAB scripting and programming API, and built-in translation of GUI&lt;br&gt;
models to MATLAB simulation scripts.&lt;/p&gt;

&lt;p&gt;The authors concluded that the dynamics for design (DFD) procedure,&lt;br&gt;
which includes the use of the FEATool Multiphysics toolbox, was a very&lt;br&gt;
effective way to design a grating tiling device which can achieve the&lt;br&gt;
required performance without breaking down.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Bai Q., et al.
&lt;a href="/references/Multibody-System-Simulation-for-Design-of-Optical-Grating-Tiling-Devices.pdf"&gt;
Development of Dynamics for Design Procedure of Novel Grating Tiling Device with Experimental Validation&lt;/a&gt;,
Journal of Applied Sciences, 11(24), 11716, 2021, doi: 10.3390/app112411716.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>featool</category>
      <category>matlab</category>
      <category>optics</category>
      <category>simulation</category>
    </item>
  </channel>
</rss>
