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
71bb517d
Commit
71bb517d
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
bc3a6a69
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
demos/FORMATS
+61
-14
61 additions, 14 deletions
demos/FORMATS
with
61 additions
and
14 deletions
demos/FORMATS
+
61
−
14
View file @
71bb517d
...
...
@@ -35,6 +35,67 @@ Gmsh Mesh File Format
the element belongs.
Gmsh Ascii Post-Processing File Format
======================================
Any post-processing file is divided in several sections: one
format section (enclosed between $PostFormat/$EndPostFormat) and
(possibly multiple) post-processing views (enclosed between
$View/$EndView pairs).
$PostFormat
version-number 0
$EndPostFormat
$View
name nb-time-steps
nb-SP nb-VP nb-TP
nb-SL nb-VL nb-TL
nb-ST nb-VT nb-TT
nb-SS nb-VS nb-TS
time-step-values
SP-values
VP-values
TP-values
SL-values
VL-values
TL-values
ST-values
VT-values
TT-values
SS-values
VS-values
TS-values
$endView
$View
...
$EndView
$View
...
$EndView
where
- 'version-number' is a double precision number giving the version
of Gmsh to which the file is destined (e.g. 0.995)
- 'name' is the name of the view
- 'nb-time-step' is an integer giving the number of time steps in the view
- 'nb-SP', 'nb-VP', 'nb-TP', 'nb-SL', 'nb-VL', 'nb-TL', 'nb-ST', 'nb-VT',
'nb-TT', 'nb-SS', 'nb-VS' and 'nb-TS' are integers giving the number of
scalar points, vector points, tensor points, scalar lines, vector lines,
tensor lines, scalar triangles, vector triangles, tensor triangles,
scalar tetrahedra, vector tetrahedra and tensor tetrahedra.
Gmsh Binary Post-Processing File Format
=======================================
int one=1;
fprintf(file, "$View /* %s */\n", name);
fprintf(file, "%s %g\n", name, version);
fprintf(file, "$EndView\n");
fwrite(&One, sizeof(int), 1, PostStream);
Parsed View Format
==================
...
...
@@ -69,17 +130,3 @@ Parsed View Format
valxnode1time2,valynode1time2,valznode1time2, valxnode2time2,valynode2time2,valznode2time2, ...}
Ascii View Format
=================
Binary View Format
==================
int one=1;
fprintf(file, "$View /* %s */\n", name);
fprintf(file, "%s %g\n", name, version);
fprintf(file, "$EndView\n");
fwrite(&One, sizeof(int), 1, PostStream);
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