Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
54c06665
Commit
54c06665
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
wording
parent
ba88df5d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/texinfo/gmsh.texi
+16
-12
16 additions, 12 deletions
doc/texinfo/gmsh.texi
with
16 additions
and
12 deletions
doc/texinfo/gmsh.texi
+
16
−
12
View file @
54c06665
\input
texinfo.tex @c -*-texinfo-*-
@c
$
Id: gmsh.texi,v
1
.
21
2
2006
-
08
-
19
18
:
48
:
06
geuzaine Exp
$
@c
$
Id: gmsh.texi,v
1
.
21
3
2006
-
08
-
19
20
:
44
:
51
geuzaine Exp
$
@c
@c Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
@c
...
...
@@ -3151,8 +3151,11 @@ where
@table @code
@item @var
{
file-type
}
is an integer equal to 1.
@item @var
{
data-size
}
has the same meaning as in the ASCII file format
has the same meaning as in the ASCII file format. Currently only
@var
{
data-size
}
= sizeof(double) is supported.
@item @var
{
one-binary
}
is an integer of value 1 written in binary form. This integer is used
for detecting if the computer on which the binary file was written and
...
...
@@ -3166,15 +3169,15 @@ fwrite(&one, sizeof(int), 1, file);
@end example
@item @var
{
number-of-nodes
}
has the same meaning as in the ASCII file format
has the same meaning as in the ASCII file format
.
@item @var
{
nodes-binary
}
is the list of nodes in binary form, i.e., a array of
@var
{
number-of-nodes
}
* (4 + 3 * @var
{
data-size
}
) bytes. For each node,
the first 4 bytes contain the node number, the next (3 *
@var
{
data-size
}
) bytes contain the three floating point coordinates
@var
{
data-size
}
) bytes contain the three floating point coordinates
.
Here is a pseudo C to write @var
{
nodes-binary
}
:
Here is a pseudo C
code
to write @var
{
nodes-binary
}
:
@example
for(i = 0; i < number
_
of
_
nodes; i++)@
{
fwrite(
&
num, sizeof(int), 1, file);
...
...
@@ -3184,14 +3187,14 @@ for(i = 0; i < number_of_nodes; i++)@{
@end example
@item @var
{
number-of-elements
}
has the same meaning as in the ASCII file format
has the same meaning as in the ASCII file format
.
@item @var
{
element-header-binary
}
is a list of 3 integers in binary form, i.e., an array of (3 * 4) bytes:
the first four contain the type of the elements that follow (same
as
@var
{
elm-type
}
in the ASCII format), the next four contain the number
of
elements that follow, and the last four contain the number of tags
per
element (same as @var
{
number-of-tags
}
in the ASCII format).
the first four
bytes
contain the type of the elements that follow (same
as
@var
{
elm-type
}
in the ASCII format), the next four contain the number
of
elements that follow, and the last four contain the number of tags
per
element (same as @var
{
number-of-tags
}
in the ASCII format).
Here is a pseudo C code to write @var
{
element-header-binary
}
:
@example
...
...
@@ -3207,8 +3210,9 @@ bytes contain the element number, the next (@var{number-of-tags} * 4)
contain the tags, and the last (#@var
{
node-number-list
}
* 4) contain the
node indices.
Here is a pseudo C to write @var
{
elements-binary
}
for triangles with 3
tags:
Here is a pseudo C code to write @var
{
elements-binary
}
for triangles
with the 3 standard tags (the physical and elementary regions, and the
mesh partition):
@example
for(i = 0; i < number
_
of
_
triangles; i++)@
{
int data[7] = @
{
num, physical, elementary, partition,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment