![]() |
FEATool Multiphysics
v1.17.4
Finite Element Analysis Toolbox
|
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.
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)