307 lines
12 KiB
HTML
307 lines
12 KiB
HTML
|
|
<html lang="en-gb" dir="ltr">
|
|||
|
|
|
|||
|
|
<head>
|
|||
|
|
<title>LaGriT</title>
|
|||
|
|
<meta charset="utf-8">
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|||
|
|
<meta name="description" content="LaGriT : LaGriT is a library providing mesh generation and optimization for a variety of polyhedra and dimensions.">
|
|||
|
|
<link href="https://fonts.googleapis.com/css?family=Do+Hyeon|Fira+Sans" rel="stylesheet">
|
|||
|
|
<link rel="preload" href="https://getuikit.com/fonts/ProximaNova-Reg-webfont.woff2" as="font" type="font/woff2" crossorigin="">
|
|||
|
|
<link rel="preload" href="https://getuikit.com/fonts/ProximaNova-Light-webfont.woff2" as="font" type="font/woff2" crossorigin="">
|
|||
|
|
<link rel="stylesheet" href="/assets/css/uikit_theme.css">
|
|||
|
|
<link rel="icon" type="image/x-icon" href="https://www.lanl.gov/favicon.ico">
|
|||
|
|
<link rel="stylesheet" type="text/css" href="/assets/css/footer.css">
|
|||
|
|
|
|||
|
|
<!-- load stylesheets -->
|
|||
|
|
<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script>
|
|||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" defer=""></script>
|
|||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/he/1.2.0/he.min.js" defer=""></script>
|
|||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.6.2/marked.min.js" defer=""></script>
|
|||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js" defer=""></script>
|
|||
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.2/vue-router.min.js" defer=""></script>
|
|||
|
|
<script src="https://getuikit.com/assets/uikit/dist/js/uikit.min.js?1180" defer=""></script>
|
|||
|
|
<script src="https://getuikit.com/assets/uikit/dist/js/uikit-icons.min.js?1180" defer=""></script>
|
|||
|
|
<script src="https://getuikit.com/assets/highlightjs/highlight.min.js" defer=""></script>
|
|||
|
|
<script src="https://getuikit.com/app/main.min.js?1180" defer=""></script>
|
|||
|
|
<script src="https://www.googletagmanager.com/gtag/js?id=UA-42150424-1" async=""></script>
|
|||
|
|
|
|||
|
|
<!-- tipuesearch files -->
|
|||
|
|
<link rel="stylesheet" href="/assets/tipuesearch/css/normalize.css">
|
|||
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|||
|
|
<script src="/assets/tipuesearch/tipuesearch_content.js"></script>
|
|||
|
|
<link rel="stylesheet" href="/assets/tipuesearch/css/tipuesearch.css">
|
|||
|
|
<script src="/assets/tipuesearch/tipuesearch_set.js"></script>
|
|||
|
|
<script src="/assets/tipuesearch/tipuesearch.min.js"></script>
|
|||
|
|
|
|||
|
|
<!-- Finally, load global style to overwrite template, tipuesearch, etc. -->
|
|||
|
|
<!--<link rel="stylesheet" href="/assets/globalstyle.css">-->
|
|||
|
|
</head>
|
|||
|
|
|
|||
|
|
<body>
|
|||
|
|
<div>
|
|||
|
|
<!-- Header -->
|
|||
|
|
<div uk-sticky="media: 960" class="uk-navbar-container tm-navbar-container uk-sticky uk-sticky-fixed" style="position: fixed; top: 0px; width: 100%; color: #212328;">
|
|||
|
|
<div class="uk-container uk-container-expand">
|
|||
|
|
<nav class="uk-navbar">
|
|||
|
|
<div class="uk-navbar-left">
|
|||
|
|
<a href="/" class="uk-navbar-item uk-logo" style="font-family: 'Do Hyeon', sans-serif; color: white;">
|
|||
|
|
<img uk-img src="/assets/img/logo.png" width="50" class="uk-margin-small-right" alt="LANL logo">
|
|||
|
|
LaGriT
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
<div class="uk-navbar-right">
|
|||
|
|
<ul class="uk-navbar-nav uk-visible@m">
|
|||
|
|
<li><a href="/pages/commands">Commands</a></li>
|
|||
|
|
<li><a href="/pages/tutorial/index">Tutorials</a></li>
|
|||
|
|
<li><a href="/pages/release">Release Notes</a></li>
|
|||
|
|
<li><a href="/pages/publications">Publications</a></li>
|
|||
|
|
<li><a href="http://github.com/lanl/LaGriT"><span uk-icon="github"></span></a></li>
|
|||
|
|
|
|||
|
|
<!-- Begin search bar -->
|
|||
|
|
<div class="nav-overlay uk-navbar-right">
|
|||
|
|
<a class="uk-navbar-toggle" uk-search-icon uk-toggle="target: .nav-overlay; animation: uk-animation-fade" href="#"></a>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="nav-overlay uk-navbar-left uk-flex-1" hidden>
|
|||
|
|
<div class="uk-navbar-item uk-width-expand">
|
|||
|
|
<form class="uk-search uk-search-navbar uk-width-1-1" action="https://lanl.github.io/LaGriT/search/">
|
|||
|
|
<input class="uk-search-input" name="q" type="search" id="tipue_search_input" placeholder="Search..." autofocus>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<a class="uk-navbar-toggle" uk-close uk-toggle="target: .nav-overlay; animation: uk-animation-fade" href="#"></a>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<script>
|
|||
|
|
$(document).ready(function() {
|
|||
|
|
$('#tipue_search_input').tipuesearch({
|
|||
|
|
'show': 10,
|
|||
|
|
'newWindow' : true,
|
|||
|
|
'showURL' : true,
|
|||
|
|
'showTitleCount' : true,
|
|||
|
|
'descriptiveWords' : 20,
|
|||
|
|
'highlightTerms' : true,
|
|||
|
|
'mode': 'static',
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
</script>
|
|||
|
|
<!-- End search bar -->
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="" class="uk-navbar-toggle uk-hidden@m uk-icon uk-navbar-toggle-icon">
|
|||
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="navbar-toggle-icon">
|
|||
|
|
<rect y="9" width="20" height="2"></rect>
|
|||
|
|
<rect y="3" width="20" height="2"></rect>
|
|||
|
|
<rect y="15" width="20" height="2"></rect>
|
|||
|
|
</svg>
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
</nav>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="uk-sticky-placeholder" style="height: 80px; margin: 0px;"></div>
|
|||
|
|
<!-- End Header -->
|
|||
|
|
|
|||
|
|
<!-- Main Body text -->
|
|||
|
|
<div class="tm-main uk-section uk-section-default">
|
|||
|
|
<div class="uk-container uk-container-small uk-position-relative">
|
|||
|
|
|
|||
|
|
<p><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow2.gif" />“30”
|
|||
|
|
“30”](mstkla.md#MESH%20VERTEX:) <img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow3.gif" />“30”
|
|||
|
|
“30”](MeshEdge.md) <img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow4.gif" />“30”
|
|||
|
|
“30”](GenRegion.md)</p>
|
|||
|
|
|
|||
|
|
<p> </p>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p> <strong>MESH ATTRIBUTE OPERATORS</strong></p>
|
|||
|
|
|
|||
|
|
<p> </p>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p><em>void</em> <strong>MESH_AddAtt</strong>(<em>PMeshObj</em> mesh, <em>char
|
|||
|
|
**attname, *AttType</em>
|
|||
|
|
attype, <em>Rank</em> rank,</p>
|
|||
|
|
|
|||
|
|
<p><em>MType</em> mtype, <em>Interp</em> interp, <em>int</em> persist, <em>char
|
|||
|
|
**ioflags,
|
|||
|
|
*double</em> defval);</p>
|
|||
|
|
|
|||
|
|
<p><em>AttType</em>, <em>Rank</em> and <em>Interp</em> are typedef enums which are available if
|
|||
|
|
one</p>
|
|||
|
|
|
|||
|
|
<p>includes “<em>mstkla.h</em>”. The specific names (which are pretty much the
|
|||
|
|
strings</p>
|
|||
|
|
|
|||
|
|
<p>that are used in LaGriT) are given in <em>mstkla_types.h</em> (See <a href="prelim.md">MSTKLA
|
|||
|
|
typedefs</a>)</p>
|
|||
|
|
|
|||
|
|
<p>‘persist’ must be 0 for temporary atts and 1 for permanent attribs</p>
|
|||
|
|
|
|||
|
|
<p>‘ioflags’ is a string as in lagrit (may be any combination of ‘a’, ‘g’,
|
|||
|
|
‘f’, ‘s’, ‘x’, ‘no’ for</p>
|
|||
|
|
|
|||
|
|
<p>AVS, GMV, FEHM, SGI, LaGriT or None)</p>
|
|||
|
|
|
|||
|
|
<p>mtype is <strong>MVERTEX</strong> if the attribute is to be node based and is
|
|||
|
|
<strong>MFACE</strong> or</p>
|
|||
|
|
|
|||
|
|
<p><strong>MREGION</strong> if the attribute is to be element based depending on whether
|
|||
|
|
the mesh</p>
|
|||
|
|
|
|||
|
|
<p>is 2D or 3D respectively.</p>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p><em>void</em> <strong>MESH_ModAtt</strong>(<em>PMeshObj</em> mesh, *char
|
|||
|
|
**attname, *char</p>
|
|||
|
|
|
|||
|
|
<p><em>*fieldname, *int</em> inew,</p>
|
|||
|
|
|
|||
|
|
<p><em>double</em> rnew, *char
|
|||
|
|
**cnew);</p>
|
|||
|
|
|
|||
|
|
<p>Here depending on the fieldname, one has to fill the right value for
|
|||
|
|
inew,</p>
|
|||
|
|
|
|||
|
|
<p>rnew or cnew.</p>
|
|||
|
|
|
|||
|
|
<p>*
|
|||
|
|
*</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>NOT TESTED
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p><em>void</em> <strong>MESH_CopyAtt</strong>(<em>PMeshObj</em> trgmsh, <em>PMeshObj</em> srcmsh, <em>char</em></p>
|
|||
|
|
|
|||
|
|
<p><em>trgatt, *char</em>
|
|||
|
|
*srcatt);</p>
|
|||
|
|
|
|||
|
|
<p>*
|
|||
|
|
*</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>NOT TESTED
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p> <em>void</em> <strong>MESH_DelAtt</strong>(<em>PMeshObj</em> mesh, *char
|
|||
|
|
**attname);</p>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p><em>void</em> <strong>MESH_SetAtt</strong>(<em>PMeshObj</em> mesh, <em>char
|
|||
|
|
**attname, *int</em> ifirst,
|
|||
|
|
<em>int</em> ilast, <em>int</em></p>
|
|||
|
|
|
|||
|
|
<p>istride, <em>char
|
|||
|
|
**psetname, *double</em> value);</p>
|
|||
|
|
|
|||
|
|
<p>If psetname is specified ifirst is ignored</p>
|
|||
|
|
|
|||
|
|
<p>*
|
|||
|
|
*</p>
|
|||
|
|
<ul>
|
|||
|
|
<li>NOT TESTED
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<hr />
|
|||
|
|
|
|||
|
|
<p>Once attributes have been created, one can go to an individual mesh
|
|||
|
|
entity</p>
|
|||
|
|
|
|||
|
|
<p>and ask for the value of an attribute for that entity or change the
|
|||
|
|
value.</p>
|
|||
|
|
|
|||
|
|
<p>The entities can be Mesh Vertices (always), Mesh Faces (for a surface
|
|||
|
|
mesh</p>
|
|||
|
|
|
|||
|
|
<p>only), Mesh Regions (for a solid mesh only).</p>
|
|||
|
|
|
|||
|
|
<p>For example one can use <strong>MR_GetAttVal</strong> operator to get the value of
|
|||
|
|
an</p>
|
|||
|
|
|
|||
|
|
<p>attribute for a given element or use <strong>MR_SetAttVal</strong> to set it.</p>
|
|||
|
|
|
|||
|
|
<p>See attribute operators for<a href="/pages/mstkla/MeshVertex.html#MV-Attribs">Mesh Vertices</a>,<a href="/pages/mstkla/MeshRegion.html#MR-Attribs">Mesh Regions</a> and <a href="MeshFace.md#MF-Attribs">Mesh
|
|||
|
|
Faces</a></p>
|
|||
|
|
|
|||
|
|
<p>
|
|||
|
|
<img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow2.gif" />“30”
|
|||
|
|
“30”](mstkla.md#MESH%20VERTEX:) <img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow3.gif" />“30”
|
|||
|
|
“30”](MeshEdge.md) <img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/arrow4.gif" />“30”
|
|||
|
|
“30”](GenRegion.md)</p>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<!-- Begin footer -->
|
|||
|
|
<footer class="footer-distributed">
|
|||
|
|
<div class="footer-right">
|
|||
|
|
<div><img src="/assets/img/lanl_logo_white.png" height="80"></div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="footer-left lg-background-color">
|
|||
|
|
<p class="footer-links" style="font-family: 'Fira Sans', sans-serif; color: white;">
|
|||
|
|
<a href="/">Home</a>
|
|||
|
|
·
|
|||
|
|
<a href="/pylagrit/original/index.html">PyLaGriT</a>
|
|||
|
|
·
|
|||
|
|
<a href="https://int.lanl.gov/org/ddste/aldcels/ees/index.shtml">EES-16</a>
|
|||
|
|
·
|
|||
|
|
<a href="/pages/licensing.html">License</a>
|
|||
|
|
·
|
|||
|
|
<a href="https://lagrit.lanl.gov/">Contact</a>
|
|||
|
|
</p>
|
|||
|
|
|
|||
|
|
<p>© 2019 Los Alamos National Laboratory</p>
|
|||
|
|
<p>EES-16 | Computational Earth Science</p>
|
|||
|
|
<p>LA-CC-15-069</p>
|
|||
|
|
</div>
|
|||
|
|
</footer>
|
|||
|
|
|
|||
|
|
<!-- Begin Navigation Bar -->
|
|||
|
|
<div id="offcanvas" uk-offcanvas="mode: push; overlay: true" class="uk-offcanvas">
|
|||
|
|
<div class="uk-offcanvas-bar">
|
|||
|
|
<div class="uk-panel">
|
|||
|
|
<ul class="uk-nav uk-nav-default tm-nav">
|
|||
|
|
<form class="uk-search uk-search-default" action="https://lanl.github.io/LaGriT/search/">
|
|||
|
|
<a href="" uk-search-icon></a>
|
|||
|
|
<input class="uk-search-input" type="search" placeholder="" name="q" id="tipue_search_input_mobile">
|
|||
|
|
</form>
|
|||
|
|
<li class="uk-nav-header">General</li>
|
|||
|
|
<li><a href="/">Home</a></li>
|
|||
|
|
<li><a href="/pages/commands">Commands</a></li>
|
|||
|
|
<li><a href="/pages/release">Release Notes</a></li>
|
|||
|
|
<li><a href="/pages/publications">Publications</a></li>
|
|||
|
|
<li><a href="http://github.com/lanl/LaGriT">GitHub</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- End Navigation Bar -->
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</body>
|
|||
|
|
|
|||
|
|
</html>
|