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
12606645
Commit
12606645
authored
19 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
new "Background Mesh" command
parent
21a28d32
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Parser/Gmsh.tab.cpp
+1875
-1857
1875 additions, 1857 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.y
+12
-1
12 additions, 1 deletion
Parser/Gmsh.y
Parser/Gmsh.yy.cpp
+2
-2
2 additions, 2 deletions
Parser/Gmsh.yy.cpp
doc/texinfo/gmsh.texi
+15
-10
15 additions, 10 deletions
doc/texinfo/gmsh.texi
with
1904 additions
and
1870 deletions
Parser/Gmsh.tab.cpp
+
1875
−
1857
View file @
12606645
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
12
−
1
View file @
12606645
%{
// $Id: Gmsh.y,v 1.21
7
2006-01-28 21:
13:35
geuzaine Exp $
// $Id: Gmsh.y,v 1.21
8
2006-01-28 21:
44:22
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -1799,6 +1799,17 @@ Command :
}
Free($1); Free($2); Free($6);
}
| tSTRING tSTRING tSTRING '[' FExpr ']' tEND
{
if(!strcmp($1, "Background") && !strcmp($2, "Mesh") && !strcmp($3, "View")){
Post_View **vv = (Post_View **)List_Pointer_Test(CTX.post.list, (int)$5);
if(vv) BGMWithView(*vv);
}
else{
yymsg(GERROR, "Unknown command '%s'", $1);
}
Free($1); Free($2); Free($3);
}
| tSTRING FExpr tEND
{
if(!strcmp($1, "Sleep")){
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
2
−
2
View file @
12606645
...
...
@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.25
0
2006-01-28 21:
16:36
geuzaine Exp $
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.25
1
2006-01-28 21:
44:22
geuzaine Exp $
*/
#define FLEX_SCANNER
...
...
@@ -725,7 +725,7 @@ char *yytext;
#line 1 "Gmsh.l"
#define INITIAL 0
#line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.25
0
2006-01-28 21:
16:36
geuzaine Exp $
// $Id: Gmsh.yy.cpp,v 1.25
1
2006-01-28 21:
44:22
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
This diff is collapsed.
Click to expand it.
doc/texinfo/gmsh.texi
+
15
−
10
View file @
12606645
\input
texinfo.tex @c -*-texinfo-*-
@c
$
Id: gmsh.texi,v
1
.
19
7
2006
-
01
-
28
21
:
16
:
36
geuzaine Exp
$
@c
$
Id: gmsh.texi,v
1
.
19
8
2006
-
01
-
28
21
:
44
:
23
geuzaine Exp
$
@c
@c Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
@c
...
...
@@ -1942,15 +1942,16 @@ Attractors only work with the 2D anisotropic algorithm (see the
You can give Gmsh an explicit background mesh in the form of a scalar
post-processing view (see @ref
{
Post-processing commands
}
, and @ref
{
File
formats
}
) in which the nodal values are the target element sizes. This
method is very general but it requires a first (usually rough) mesh and a
way to compute the target sizes on this mesh (usually through an error
estimation procedure, in an iterative process of mesh adaptation). Note that
the target element sizes can be constrained by the characteristic lengths
defined in the geometrical model if the
@code
{
Mesh.ConstrainedBackgroundMesh
}
option is set. To load a background
mesh, use the @code
{
-bgm
}
command-line option (@pxref
{
Command-line options
}
)
or select `Apply as background mesh' in the post-processing view option
menu.
method is very general but it requires a first (usually rough) mesh and
a way to compute the target sizes on this mesh (usually through an error
estimation procedure, in an iterative process of mesh adaptation). Note
that the target element sizes can be constrained by the characteristic
lengths defined in the geometrical model if the
@code
{
Mesh.ConstrainedBackgroundMesh
}
option is set. To load a
background mesh, you can use the @code
{
-bgm
}
command-line option
(@pxref
{
Command-line options
}
), select `Apply as background mesh' in the
post-processing view option menu, or use the @code
{
Background Mesh
}
command in a script (@pxref
{
Post-processing commands
}
).
Background meshes are supported by all algorithms except the algorithms
based on Netgen.
...
...
@@ -2353,6 +2354,10 @@ post-processing view numbers start at 0.
@item Delete Empty Views;
Deletes (removes) all the empty post-processing views.
@item Background Mesh View[@var
{
expression
}
];
Applies the @var
{
expression
}
-th post-processing view as the current
background mesh. Note that post-processing view numbers start at 0.
@item Plugin (@var
{
string
}
) . Run;
Executes the plugin @var
{
string
}
. The list of default plugins is given in
@ref
{
Post-processing plugins
}
.
...
...
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