[Gmsh] node lists
Bernhard Kubicek
bernhard.kubicek at arsenal.ac.at
Thu Dec 13 14:13:29 CET 2007
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.
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