Matlab to Ansys ICEM/Fluent and Spline Drawing Toolbox

Define 2D geometry, ICEM CFD 2D surface blocking mesh, and Fluent journals in Matlab
581 Downloads
Updated 7 Jun 2019

View License

Define points, lines/splines, surfaces, and mesh parameters in Matlab and create ICEM replay files to generate, define, and export a 2D surface blocking mesh to Ansys Fluent. The toolbox handles periodicity, as well as the boundary conditions.

This is a multi-step procedure:
1. run Matlab to generate the geometry ICEM replay file;
2. execute it in ICEM and create the surface blocking;
3. run Matlab again, to analyze the node numbering, and generate the define-mesh replay file;
4. execute the second file in ICEM, and inspect your pre-mesh;
5. export it with the third replay file.

Alternatively, the updated version of the toolbox can generate a mesh automatically by using ICEM's batch mode (only recommended for finished mesh designs, minor variations, or parameter studies).

With 'geo' functions you create the geometry. 'icem' functions are used to automagically translate the Matlab data to ICEM, and to analyze the ICEM project files. 'fluent' functions may act as starting points to analyze your Fluent monitors, pathlines, or reports (very specific to the problem, and I have no suitable test data to show examples).

Examples include a 'tipps.m' to get a general understand of the geometry functions, a simple boundary layer problem, two airfoil simulations with Fluent journal files to define cases, and a brief moving-and-deformable mesh how-to.

Single functions might be interesting: recursive path search, point-in-polygon, radial search, strjoin, strsplit, nnsearch, getFilteredFileList, ...

Cite As

Dominik Hofer (2024). Matlab to Ansys ICEM/Fluent and Spline Drawing Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/66215-matlab-to-ansys-icem-fluent-and-spline-drawing-toolbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

_matlab2icem2d

mdm_for_students

naca4412_(2x_15deg)_pipe

naca4412_5deg

wind_tunnel_boundary_layer

Version Published Release Notes
2.0.1

fixed an error in 'geoRound2Splines.m', disabled packaging as a toolbox, changed the description

2.0

ICEM batch mode compatible, new sample case, new bunching law estimators, minor corrections, updated readme.txt

1.0

added an image to the description, fix in geoOrientCurves.m (handle special case with only 2 curves)

added folder '.\mdm_for_students\calc' with Fluent specific code