From: schrage Date: Thu, 8 Jul 1999 17:23:39 +0000 (+0000) Subject: Restructured, toc for this page, additions wrt output formats etc. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe62fbc60a7d12b75a15c1119934bdbbb42a61ab;p=dealii-svn.git Restructured, toc for this page, additions wrt output formats etc. git-svn-id: https://svn.dealii.org/trunk@1557 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/tutorial/chapter-1.elements/output.html b/deal.II/doc/tutorial/chapter-1.elements/output.html index 04f07f0b37..57c8b8d837 100644 --- a/deal.II/doc/tutorial/chapter-1.elements/output.html +++ b/deal.II/doc/tutorial/chapter-1.elements/output.html @@ -6,8 +6,10 @@ Jan Schrage 1999 --> -Data Output - +deal.II tutorial: Grid and Data Output + + + @@ -17,17 +19,54 @@

Grid and Data Output

-

Graphics Formats

+

+Grid and data output becomes a difficult thing as soon as flexibility +in terms of different output formats and which parts of the data +are actually written is required. +Consequently, there is a bunch of classes in deal.II, +every one dealing with a different aspect of the problem. You, the +user, however, need to concern yourself only with two ouput classes: +GridOut and DataOut handling the output of +grid and data, respectively. In addition there is one class for +each kind of output storing the parameters for this particular +format. These parameters are common to both grid and data ouput +and are used by both GridOut and DataOut. +

+ +

+Since deal.II is fairly versatile when it comes +to graphics output we shall have to talk about the following topics +in depth: +

+ + + +
+ +

Graphics Formats

deal.II provides a class called DataOut dealing with the output of simulation data and a class called GridOut handling the output of grid (triangulation) data. -Both are -fairly versatile -and can handle a +Both are fairly versatile and can handle a number of different data formats. -As of this writing (26/6/99) DataOut is being revised. -When this revision is finished the descriptions below will be updated.

DataOut graphics formats

@@ -68,7 +107,11 @@ The graphics formats available in GridOut are: -

Limitations of the DataOut class

+
+
+ +

Limitations of the DataOut +class

Grouping of components to vectors is not implemented, i.e. each @@ -77,6 +120,9 @@ also not possible to write the results of calculations on grids with more or less than one degree of freedom per vertex.

+
+
+

General description of the usage of DataOut

@@ -164,6 +210,8 @@ to a file if you want to use the data later on. +
+

DataOut data formats

Unstructured Cell Data (ucd)

@@ -305,6 +353,9 @@ The data is written using +
+
+

General description of the usage of GridOut

@@ -381,9 +432,10 @@ to which parameters can be passed. 1. - Use the correct include-file. + Use the correct include-files. - #include <basic/grid_out.h> + #include <basic/grid_out.h>
+ #include <basic/data_out_base.h> @@ -392,7 +444,7 @@ to which parameters can be passed. Generate an ostream (and, normally, attach it to a file). - ostream out; + ofstream out("filename"); @@ -409,7 +461,7 @@ to which parameters can be passed. Set your parameters (in this example for ucd). - GridOut::UcdFlags ucd_flags;
+ UcdFlags ucd_flags;
ucd_flags.write_preamble = 1;
my_grid_out.set_flags(ucd_flags);
@@ -447,9 +499,10 @@ written to a ucd-file as a starting triangulation for you will need to explicitly write all of your boundary indicators that are not zero to the output file. Otherwise, upon reloading the triangulation, all your boundaries will be labelled with the default value, zero. -There is a flag controlling GridOut with respect to whether +There is a flag in the class UcdFlags +controlling GridOut with respect to whether boundary indicators are explicitly written: -bool GridOut::UcdFlags::write_preamble. It defaults to true, i.e. +bool UcdFlags::write_preamble. It defaults to true, i.e. boundary indicators are written by default and you can use the first, simpler method for writing ucd-files.

@@ -462,10 +515,22 @@ simpler method for writing ucd-files.

Encapsulated Postscript

+EPS output is performed using the parameters set forth in the class +EpsFlags. Grid output in the EPS format is always +two-dimensional; 3D-grids are viewed from a given viewpoint +without hidden-line removal. +EPS output is performed by calling
+GridOut::write_eps (Triangulation& tria, ostream& output) +
+Alternatively, you can use the general GridOut::write method +as explained in the part on the usage of the +GridOut class.

+ +