📄 output.html
字号:
<TITLE>IBG: Controlling The Output</TITLE>
<H1>Controlling The Output</H1>
<P>The output is the most application-dependent part. I recognize
that almost every application of the grid generator will use own
output functions.
<P>On the other hand, some parameters necessary for output operations
will be common for many output operations. Thus, for the output
control I have designed a set of control parameters which may be used
for different output operations. I hope that a sufficient number of
the necessary control possibilities are realized in this way.
<P>The parameters which allow to modify the output are defined in <A
HREF="../src/ibgoutput.h">ibgoutput.h</A>. If you want to change the
default settings of these parameters, there are two functions you have
to change:
<UL>
<LI> void ibgControlInit() will be called once, after the default
initialization.
<LI> void ibgControl() will be called before each output operation.
</UL>
<P>The dummy realizations of these functions you can find in <A
HREF="../src/ibgcontrol.c">ibgcontrol.c</A>. Use the file <A
HREF="../src/ibgoutput.c">ibgoutput.c</A> as a pattern how to
initialize and set the parameters.
<H1>Description of Some Output Control Parameters</H1>
<P>Let's describe now some of these parameters.
<P>See <A HREF="../src/ibgoutput.h">ibgoutput.h</A> and <A
HREF="../src/ibgoutput.c">ibgoutput.c</A> for other parameters not
described here. I hope the comments given there are sufficient.
<H2>Parameters controlling the selection of cells for the output</H2>
<P>In almost any case, not all of the grid cells created by the IBG
grid generator are necessary. Different parts of the grid may be
useful in different applications resp. different output devices.
<H3>ibgOutputType</H3>
<P>ibgOutputType[ibgSegmentType t] defines the dimension of the parts
of the grid selected for the output. Thus,
<PRE>
ibgOutputType[ibgSRegion] = ibgTrue;
ibgOutputType[ibgSFace] = ibgFalse;
</PRE>
defines that the inner cells (region cells, codimension 0) have to be
selected, but the boundary face cells not.
<H3>ibgOSType</H3>
<P>Defines the codimension (segment type) of the segments used in the
other ibgOS...-parameters (ibgOSSegment, ibgOSMode and so on).
<P>If you want all boundary cells of a region r, you have to choose
<PRE>
ibgOutputType[ibgSFace] = ibgTrue;
ibgOSType = ibgSRegion;
ibgOSMode = ibgOSModOne;
ibgOSSegment = r;
</PRE>
<P>But if you want a single boundary face f, you have to choose
<PRE>
ibgOutputType[ibgSFace] = ibgTrue;
ibgOSType = ibgSFace;
ibgOSMode = ibgOSModOne;
ibgOSSegment = f;
</PRE>
<P>Remark that in above cases only boundary cells will be selected.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -