Generating Report
You can use the Report Generator tool to report and document the model created in COMSOL Multiphysics. At the command prompt, the function mphreport helps to automatically add a default report template to the current model and generate it in the HTML or Microsoft Word® format.
To add a default intermediate report template in the model, enter the command:
mphreport(model, 'action', 'add')
This create a new report node with a unique tag, which 'rpt1' if the model did not contain any report. You can specify the tag to identify the report node using the property 'tag' as in the command below:
mphreport(model, 'action', 'add', 'tag', <rpttag>)
where <rpttag> is a string.
When creating a default report template you can choose between different template format, enter the command:
mphreport(model, 'action', 'add', 'type', <type>)
where <type> is either 'brief', 'intermediate', or 'complete'.
To generate and visualize the report with the tag <rpttag>, enter:
mphreport(model, 'action', 'run', 'tag', <rpttag>,...
          'filename', <fname>)
where <fname> is a string defining the name of the report file.
By default the output format is HTML, you can also generate report in the Microsoft Word or Microsoft PowerPoint format. To generate a report in the Microsoft Word format enter:
mphreport(model, 'action', 'run', 'tag', <rpttag>,...
          'filename', <fname>, 'format', 'docx')
To generate a report in the Microsoft PowerPoint format enter:
mphreport(model, 'action', 'run', 'tag', <rpttag>,...
          'filename', <fname>, 'format', 'pptx')