FEATool Multiphysics is a fully integrated physics and PDE simulation environment where the modeling process is subdivided into six steps; preprocessing (CAD and geometry modeling), mesh and grid generation, physics and PDE specification, boundary condition specification, solution, and postprocessing and visualization.[9]
1. Geometry Mode
2. Grid Mode
3. Multiphysics Mode
4. Boundary Mode
5. Solve Mode
6. Post Mode
OpenFOAM and SU2 CFD & multi-solver interfaces
FEATool has introduced a multi-simulation/solver feature whereby integrated interfaces (UI) to popular open-source solvers are available. This enables several solvers to be used from a single unified GUI and CLI without requiring detailed knowledge of the syntax or peculiarities of each solver.
The CFD solver interfaces allows fluid dynamics problems to be solved with the finite volume CFD solvers OpenFOAM[10] and SU2. Using the SU2 and OpenFOAM GUI[11] interfaces automatically converts fluid dynamics models to compatible corresponding mesh, boundary, and control dictionary files, runs simulations, and afterwards imports and interpolates the resulting solutions back into the toolbox. In this way more advanced, larger, and parallel CFD models, for example including turbulence, can be simulated without leaving the FEATool interface.
FEniCS multiphysics solver interface
Similar to the OpenFOAM and SU2 solver interfaces, FEATool also features a fully integrated interface to the FEniCS general FEM and multiphysics solver.[12] Using the FEATool-FEniCS interface, as both codes feature PDE definition languages, multiphysics problems can automatically be translated and converted to FEniCS Python definition files, after which the FEniCS solver is called, and the resulting solution re-imported.
Fully scriptable CLI interface
GUI operation is recorded as equivalent function calls, and therefore in addition to binary formats, FEATool simulation models can also be saved and exported as fully scriptable and editable MATLAB compatible m-script files.[13] The short MATLAB script below illustrates how a complete flow around a cylinder computational fluid dynamics (CFD) benchmark problem can be defined and solved with the FEATool m-script functions (including geometry, grid generation, problem definition, solving, and postprocessing all in a few lines of code).[14][15][16] Specifically, custom partial differential equations (PDE) and expressions can simply be entered and evaluated as string expressions as-is, without need for further compilation or writing custom functions.[17]
% Geometry and mesh generation.fea.sdim={'x''y'};fea.geom.objects={gobj_rectangle(0,2.2,0,0.41,'R1'),...gobj_circle([0.20.2],0.05,'C1')};fea=geom_apply_formula(fea,'R1-C1');fea.grid=gridgen(fea,'hmax',0.02);% Problem definition (incompressible Navier-Stokes equations multiphysics mode).fea=addphys(fea,@navierstokes);% Prescribe fluid viscosity (density is default 1).fea.phys.ns.eqn.coef{2,end}={0.001};% Boundary conditions (Non-specified boundaries are% per default prescribed no-slip zero velocity walls).% Inflow (bc type 2) at boundary 4.fea.phys.ns.bdr.sel(4)=2;% Outflow (bc type 3, zero pressure) at boundary 2.fea.phys.ns.bdr.sel(2)=3;% Parabolic inflow profile x-velocity expression.fea.phys.ns.bdr.coef{2,end}{1,4}='4*0.3*y*(0.41-y)/0.41^2';% Check, parse, and solve problem.fea=parsephys(fea);fea=parseprob(fea);fea.sol.u=solvestat(fea);% Alternatively solve with OpenFOAM or SU2% fea.sol.u = openfoam( fea );% fea.sol.u = su2( fea );% Postprocessing and visualization.postplot(fea,'surfexpr','sqrt(u^2+v^2)',...'arrowexpr',{'u''v'})p_cyl_front=evalexpr('p',[0.15;0.2],fea);p_cyl_back=evalexpr('p',[0.25;0.2],fea);delta_p_computed=p_cyl_front-p_cyl_backdelta_p_reference=0.117520
External mesh generator interfaces
Similar to the external solver interfaces, FEATool features built-in support for the Gmsh[18] and Triangle[19] mesh generators. If requested instead of the built-in mesh generation algorithm,[20] FEATool will convert and export appropriate Gridgen2D, Gmsh, or Triangle input data files, call the mesh generators through external system calls, and re-import the resulting grids into FEATool.
Other distinguishing features
Stand-alone operation (without MATLAB) or can be used as a MATLAB toolbox.
Fully cross platform MATLAB interoperability including other toolboxes.
Extensive FEM basis function library (linear and high order conforming P1-P5, non-conforming, bubble, and vector FEM discretizations).
Support for structured and un-structured line interval, triangles, quadrilaterals, tetrahedral, and hexahedral mesh elements.
28 pre-defined equations and multiphysics modes in 1D, 2D Cartesian and cylindrical coordinates, as well as full 3D.
^De Vahl Davis, G. (1996). "Benchmark computations of laminar flow around a cylinder". Flow Simulation with High-Performance Computers II, Notes on Numerical Fluid Dynamics. 52 (3): 547–566. doi:10.1002/fld.1650030305.
^On higher order methods for the stationary incompressible Navier-Stokes equations (PhD). University of Heidelberg. 1998. CiteSeerX10.1.1.38.533.