<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
can you try this pull request?<br>
<a href="https://bitbucket.org/fathomteam/moab/pull-request/97/read-and-write-free-nodes-in-vtk-format/diff" target="_blank">https://bitbucket.org/fathomteam/moab/pull-request/97/read-and-write-free-nodes-in-vtk-format/diff</a><br>
<br>
Does it fix your problem? <br>
If you find issues, can you send me the vtk file?<br>
<br>
Best Regards,<br>
Iulian<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF243039"><font size="2" color="#000000" face="Tahoma"><b>From:</b> moab-dev-bounces@mcs.anl.gov [moab-dev-bounces@mcs.anl.gov] on behalf of CORTIS M. [michael.cortis@durham.ac.uk]<br>
<b>Sent:</b> Sunday, February 01, 2015 9:39 AM<br>
<b>To:</b> Paul Wilson<br>
<b>Cc:</b> moab-dev@mcs.anl.gov<br>
<b>Subject:</b> Re: [MOAB-dev] Setting connectivity for single vertex<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi,</div>
<div><br>
</div>
<div>So if you save points on vtk you have such thing where no connectivity and no cell definition.</div>
<div><br>
</div>
<div>
<div><font color="#0042aa">POINTS 2 double</font></div>
<div><font color="#0042aa">10.0 0 0</font></div>
<div><font color="#0042aa">-10.0 0 0</font></div>
<div><font color="#0042aa">CELLS 0 0</font></div>
<div><font color="#0042aa">CELL_TYPES 0</font></div>
<br class="Apple-interchange-newline">
</div>
<div>but if you want to can include connectivities and cel definition as follows</div>
<div><br>
</div>
<div>
<div><font color="#0056d6">POINTS 2 double</font></div>
<div><font color="#0056d6">10.0 0 0</font></div>
<div><font color="#0056d6">-10.0 0 0</font></div>
<div><font color="#0056d6">CELLS 2 4</font></div>
<div><font color="#0056d6">1 0 </font></div>
<div><font color="#0056d6">1 1</font></div>
<div><font color="#0056d6">CELL_TYPES 2</font></div>
<div><font color="#0056d6">1</font></div>
<div><font color="#0056d6">1</font></div>
</div>
<div><br>
</div>
This way, Paraview and VisIt can recognise points as elements and consequently can visualise them.
<div><br>
</div>
<div>Michael</div>
<div><br>
</div>
<div><br>
<div>
<div>On 1 Feb 2015, at 15:34, Paul Wilson <<a href="mailto:ppwilson@wisc.edu" target="_blank">ppwilson@wisc.edu</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF">Hello again,<br>
<br>
On 02/01/2015 09:31 AM, CORTIS M. wrote:<br>
<blockquote type="cite">
<div>Hello Paul,</div>
<div><br>
</div>
<div>In fact you can create vertices and use them and store data on tag.</div>
<div>The only problem was that if there is no connectivity, </div>
<div>ParaView and VisIT does not visualise them unless you plot the points using glyphs.</div>
<div>So I had to create a function which read the points from a mesh file and insert their individual connectivities and save them as vtk.</div>
</blockquote>
Now I see!  Thanks for the clarification.<br>
<br>
So are you connecting the vertices to themselves?  What is the element type in VTK for such an element?<br>
<br>
Paul<br>
<br>
<br>
<br>
<blockquote type="cite">
<div><br>
</div>
<div>Problem solved. But may be MOAB would consider this problem and do something about it.</div>
<div><br>
</div>
<div>Thanks for your input,</div>
<div><br>
</div>
<div>Michael </div>
<div><br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On 1 Feb 2015, at 15:24, Paul Wilson <<a href="mailto:ppwilson@wisc.edu" target="_blank">ppwilson@wisc.edu</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF">Hello Michael,<br>
<br>
<div class="moz-cite-prefix">On 01/29/2015 05:08 PM, CORTIS M. wrote:<br>
</div>
<blockquote type="cite">
<div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Hi Iulian,</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Yes I am trying to create an element made from single vertex.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
I want to used these for Material Point Method.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
So there is a way of creating the vertices, but not adding connectivity to themselves only?</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Or may be another way round?</div>
</div>
</div>
</blockquote>
<br>
Perhaps, I'm not fully understanding your questions, but it is certainly possible to create vertices in MOAB and then use them directly in your analysis.  There is no need to create an element if, in fact, all you need are the vertices.  Each vertex can be
 tagged with data in the same way that an element can be.<br>
<br>
I hope that is helpful,<br>
Paul<br>
<br>
<blockquote type="cite">
<div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
If not, don't worry about. Will create a vtk writer to do this and hopefully moab can use the vertices.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Any assistance is really appreciated.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Kind regards</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Michael</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On 29 Jan 2015, at 17:24, "Grindeanu, Iulian R." <<a href="mailto:iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="direction:ltr; font-family:Tahoma; font-size:10pt">Hello,<br>
Moab does not have elements with a single vertex. Is this what you are trying to do?<span class="Apple-converted-space"> </span><br>
A vertex (node) is represented with an entity handle of type MBVERTEX, and you can get coordinates for it<br>
<br>
I am not sure what are you trying to do.<br>
Best Regards,<br>
Iulian<br>
<br>
<div style="font-family:'Times New Roman'; font-size:16px">
<hr tabindex="-1">
<div id="divRpF966284" style="direction:ltr"><font size="2" face="Tahoma"><b>From:</b><span class="Apple-converted-space"> </span><a href="mailto:moab-dev-bounces@mcs.anl.gov" target="_blank">moab-dev-bounces@mcs.anl.gov</a> [<a href="mailto:moab-dev-bounces@mcs.anl.gov" target="_blank">moab-dev-bounces@mcs.anl.gov</a>]
 on behalf of CORTIS M. [<a href="mailto:michael.cortis@durham.ac.uk" target="_blank">michael.cortis@durham.ac.uk</a>]<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, January 29, 2015 10:18 AM<br>
<b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:moab-dev@mcs.anl.gov" target="_blank">moab-dev@mcs.anl.gov</a><br>
<b>Cc:</b><span class="Apple-converted-space"> </span>Tautges, Timothy J.<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re: [MOAB-dev] Setting connectivity for single vertex<br>
</font><br>
</div>
<div>
<div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
Thanks Tim,</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
I am still having a problem, may be the guys at Argonne can help with this.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
I've tried a simpler one and trying to crete the vertex from point.</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<br>
</div>
<div style="font-family:Menlo; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="margin:0px; font-size:12px">  <span style="font-size:11px">double</span><span class="Apple-converted-space"> </span>points[<span style="font-size:11px">9</span>]={<span style="font-size:11px">0.5</span>,<span style="font-size:11px">0</span>,<span style="font-size:11px">0</span>};</div>
<div style="margin:0px; font-size:12px">  EntityHandle vertex;</div>
<div style="margin:0px; font-size:12px">  rval=moab2.create_vertex(points,vertex);CHKERR_PETSC(rval);</div>
<div style="margin:0px; font-size:12px">  EntityHandle dummy;</div>
<div style="margin:0px; font-size:12px">  rval = moab2.create_element(MBVERTEX,&vertex,<span style="font-size:11px">1</span>,dummy); CHKERR_PETSC(rval);</div>
</div>
<br class="Apple-interchange-newline">
</div>
But I am getting Error code 2, MB_TYPE_OUT_OF_RANGE !</div>
<div>Is it possible to use MBVERTEX here?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Michael</div>
<br>
<div>
<div>On 29 Jan 2015, at 15:04, Tim Tautges <<a href="mailto:tautges@mcs.anl.gov" target="_blank">tautges@mcs.anl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">[cc'ng moab-dev list, since I've left Argonne.]<br>
<br>
dummy is 0, which is an invalid handle, but should be the handle(s) of the entities whose connectivity you're setting; I suspect what you want there is *vertices.begin().  And you can't set connectivity until you make an element, so you need to call create_element,
 probably with the number of verts per element as 1 and the connectivity just the single vertex defining the point element.<br>
<br>
- tim<br>
<br>
On 01/29/2015 03:34 AM, CORTIS M. wrote:<br>
<blockquote type="cite">Dear Tim,<br>
<br>
I've got the following problem:<br>
<br>
I want to create vertex entities, ie create the points and vertex entities using those points.<br>
So I've create a set of vertices from an array of coordinates.<br>
And If you try to set the connectivity for every point you get Error code 4 (MB_ENTITY_NOT_FOUND).<br>
<br>
This is my code:<br>
<br>
double points[6]={1,0,0, 0,1,0, 0,0,1};<br>
Range vertices;<br>
rval = moab.create_vertices(points,2,vertices); CHKERR_PETSC(rval);<br>
EntityHandle dummy=0;<br>
rval = moab.set_connectivity(dummy,vertexlist,1); CHKERR_PETSC(rval); //Error code 4<br>
<br>
Any suggestions how to overcome this problem.<br>
<br>
Kind regards,<br>
<br>
Michael</blockquote>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: <a class="moz-txt-link-freetext" href="http://bit.ly/pphw-cal" target="_blank">http://bit.ly/pphw-cal</a>
Professor, Engineering Physics. ~ <a class="moz-txt-link-freetext" href="http://cnerg.engr.wisc.edu/" target="_blank">http://cnerg.engr.wisc.edu</a>
Faculty Director, Advanced Computing Infrastructure ~ <a class="moz-txt-link-freetext" href="http://aci.wisc.edu/" target="_blank">http://aci.wisc.edu</a></pre>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: <a class="moz-txt-link-freetext" href="http://bit.ly/pphw-cal" target="_blank">http://bit.ly/pphw-cal</a>
Professor, Engineering Physics. ~ <a class="moz-txt-link-freetext" href="http://cnerg.engr.wisc.edu/" target="_blank">http://cnerg.engr.wisc.edu</a>
Faculty Director, Advanced Computing Infrastructure ~ <a class="moz-txt-link-freetext" href="http://aci.wisc.edu/" target="_blank">http://aci.wisc.edu</a></pre>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>