Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
e366b86c
Commit
e366b86c
authored
2 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Fix a few typos
parent
95c5f634
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!145
git subrepo clone git@gitlab.com:OlMon/org-themes.git packages/org-themes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/userdoc.org
+18
-14
18 additions, 14 deletions
doc/userdoc.org
with
18 additions
and
14 deletions
doc/userdoc.org
+
18
−
14
View file @
e366b86c
...
@@ -2567,7 +2567,7 @@ as ${(x^y)}^z$. Thus, using the ~pow~ function avoids any confusion.
...
@@ -2567,7 +2567,7 @@ as ${(x^y)}^z$. Thus, using the ~pow~ function avoids any confusion.
*** The ~mesh~ module
*** The ~mesh~ module
This is an important module. It provide mesh utilities tools.
This is an important module. It provide
s
mesh utilities tools.
#+NAME: get-module-info-mesh
#+NAME: get-module-info-mesh
#+BEGIN_SRC pugs :exports both :results output
#+BEGIN_SRC pugs :exports both :results output
cout << getModuleInfo("mesh") << "\n";
cout << getModuleInfo("mesh") << "\n";
...
@@ -2832,7 +2832,7 @@ is built only once. This means that is one writes for instance
...
@@ -2832,7 +2832,7 @@ is built only once. This means that is one writes for instance
let dual_mesh_1:mesh, dual_mesh_1 = diamondDual(primal_mesh);
let dual_mesh_1:mesh, dual_mesh_1 = diamondDual(primal_mesh);
let dual_mesh_2:mesh, dual_mesh_2 = diamondDual(primal_mesh);
let dual_mesh_2:mesh, dual_mesh_2 = diamondDual(primal_mesh);
#+END_SRC
#+END_SRC
then the
mesh
es ~dual_mesh_1~ and ~dual_mesh_2~ will refer to the same
then the
variabl
es ~dual_mesh_1~ and ~dual_mesh_2~ will refer to the same
~mesh~ in memory.
~mesh~ in memory.
#+END_note
#+END_note
...
@@ -2939,9 +2939,17 @@ The result of the previous script is given on Figure [[fig:transformed]].
...
@@ -2939,9 +2939,17 @@ The result of the previous script is given on Figure [[fig:transformed]].
***** ~relax: mesh*mesh*R -> mesh~
***** ~relax: mesh*mesh*R -> mesh~
This function is a simple utility that computes a ~mesh~ as the /mean/ of
This function is a simple utility that computes a ~mesh~ as the /mean/ of
two other mesh that share the same connectivity. The connectivity must
two other mesh that share the same connectivity. The coordinates of
be the *same in memory*, this means that constructing two identical
the vertices of the relaxed mesh $\mathcal{M}_2$, are given by
meshes with /equivalent/ connectivity is not allowed.
\begin{equation*}
\forall r\in\mathcal{R},\quad\mathbf{x}_r^{\mathcal{M}_2} = (1-\theta) \mathbf{x}_r^{\mathcal{M}_0} + \theta \mathbf{x}_r^{\mathcal{M}_1}.
\end{equation*}
#+BEGIN_warning
The connectivity must be the *same in memory*, this means that
constructing two identical meshes with /equivalent/ connectivity is not
allowed.
#+END_warning
Thus for instance, the following code
Thus for instance, the following code
#+NAME: relax-with-similar-connecticities
#+NAME: relax-with-similar-connecticities
...
@@ -2971,14 +2979,9 @@ let m2: mesh, m2 = relax(m0, m1, 0.3);
...
@@ -2971,14 +2979,9 @@ let m2: mesh, m2 = relax(m0, m1, 0.3);
write_mesh(gnuplot_writer("relax_example_m2", 0), m2);
write_mesh(gnuplot_writer("relax_example_m2", 0), m2);
#+END_SRC
#+END_SRC
In this example, the relaxation parameter is set to $\theta=0.3$, this
In this example, the relaxation parameter is set to $\theta=0.3$. The
means that the coordinates of any vertex of the relaxed mesh
different meshes produced in this example are displayed on Figure
$\mathcal{M}_2$, are given by
[[fig:relax]].
\begin{equation*}
\forall r\in\mathcal{R},\quad\mathbf{x}_r^{\mathcal{M}_2} = (1-\theta) \mathbf{x}_r^{\mathcal{M}_0} + \theta \mathbf{x}_r^{\mathcal{M}_1}
\end{equation*}
The different meshes produced in this example are displayed on Figure [[fig:relax]].
#+NAME: relax-img
#+NAME: relax-img
#+BEGIN_SRC gnuplot :exports results :file (substitute-in-file-name "${PUGS_SOURCE_DIR}/doc/relax.png")
#+BEGIN_SRC gnuplot :exports results :file (substitute-in-file-name "${PUGS_SOURCE_DIR}/doc/relax.png")
...
@@ -3000,7 +3003,8 @@ The different meshes produced in this example are displayed on Figure [[fig:rela
...
@@ -3000,7 +3003,8 @@ The different meshes produced in this example are displayed on Figure [[fig:rela
#+RESULTS: relax-img
#+RESULTS: relax-img
This function is mainly useful to reduce the displacement of nodes
This function is mainly useful to reduce the displacement of nodes
when using the ~randomizeMesh~ functions (see section [[scheme]]).
when using the ~randomizeMesh~ functions (see section [[scheme]]) for
instance.
**** The ~scheme~ module<<scheme>>
**** The ~scheme~ module<<scheme>>
...
...
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