FEATool  v1.9
Finite Element Analysis Toolbox
impexp_foam.m File Reference

Description

IMPEXP_FOAM Import/export OpenFOAM format.

[ U, VARS ] = IMPEXP_FOAM( CASEDIR, MODE, PROB, FID_LOG ) Import and export of OpenFOAM ASCII mesh and problem data. Returns the solution vector U (after import) and optional turbulence quantitiy variables in the VARS struct.

CASEDIR specifies the location of OpenFOAM case files.

MODE can either be a string indicating IMPORT (default) or EXPORT.

PROB is a valid FEATool FEA problem struct.

DICT are the OpenFOAM dict structs to write.

FID_LOG is an optional log file handle for message output (negative for GUI output or empty for no output).