[Gmsh] node lists
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Fri Dec 14 10:25:48 CET 2007
Bernhard Kubicek wrote:
> linux shell or cygwin is your friend:
> replace "==102" with your "==yourZoneNr"
>
> cat yourgmsh2asci.msh |grep -A 100000 "Elements" |awk '{if($4==102)
> print $7 " " $8 " " $9" " $10" " $11" " $12" "$13 " " $14}' |sed
> 's/ //g'|sed 's/ /\n/g'|sort -nu
> Explenation:
> grep to only have the lines after $Elements
> awk searches for elements in the specified region, and outputs Node-Nr.
> Blank Node-Nr. Blank Node-Nr. Blank for all existing and nonexisting
> nodes, thereby usually creating Blank-Blanks.
> Those are replaced by nothing in the next sed command.
> Each remaining Blank is converted to a new line.
> The list now is unordered and non-uniqe, which is resolved by sort.
>
PS: if you export the mesh in UNV format you can also get one group of
nodes per physical entity by selecting "Save groups of nodes" in the dialog.
> very nice greetings,
> Bernhard
>
> On Thu, 2007-12-13 at 11:54 +0000, Márcio Ricardo Pivello wrote:
>> Hi, how can I save the list of nodes located on a specific
>> line/surface on gmsh?
>>
>> Thanks in Advance
>>
>> Márcio
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine