Finite Element Analysis Toolbox
openfoam_export.m File Reference

Description

OPENFOAM_EXPORT Export OpenFOAM grid and problem data.

[ DICT ] = OPENFOAM_EXPORT( FEA, OPT/VARARGIN ) Exports an OpenFOAM problem defined by the FEA problem struct and options OPT (to the folder specified by opt.meta.casedir, default tempdir/foam_case). Property/value pairs VARARGIN can also be given instead of an OPT struct.

Optionally returns a struct DICT of OpenFOAM dictionaries.

Examples
  1) Laminar steady Hagen-Poiseuille flow in a channel.

  fea = ex_navierstokes1( 'iplot', false );
  casedir = 'C:\temp\oftest';
  openfoam_export( fea, 'casedir', casedir )
  ls(casedir)
See also
openfoam, openfoam_data, openfoam_write, ex_navierstokes1