FEATool  v1.8
Finite Element Analysis Toolbox
 All Files Functions Pages
openfoam.m File Reference

Description

OPENFOAM Exports, solves, and imports an OpenFOAM CFD problem.

[ PROB ] = OPENFOAM( PROB, VARARGIN ) Export, solves, or imports the solved problem described in the PROB finite element struct using the OpenFOAM CFD solver. Accepts the following property/value pairs, moreover also accepts the openfoam_data property/value pairs to set the OpenFOAM dicts during export.

Input       Value/{Default}              Description
-----------------------------------------------------------------------------------
modes       check, export, solve, import Command mode(s) to call (default all)
data        default                      Default OpenFOAM data and parameter dict
interp      scalar {2}                   Interpolate solution to grid points
                                           1: no weighting 2: cell volume weighting
casedir     default                      OpenFOAM case directory
foamdir     default                      OpenFOAM installation directory
logfname    featool-openfoam             OpenFOAM log/output filename
logfid      1                            Log file/message output file handle
tolres      1e-4                         Stopping criteria for initial residuals
clear       boolean {true}               Clear output and log files
See also
openfoam_data