# \[GiDlist\] Wave based method

**URL:** <https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529>\
**Category:** 2002 - 2000\
**Created:** [December 2, 2002, 10:46am UTC](https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529 "2002-12-02T10:46:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_Pluymers](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@Bert\_Pluymers](https://forum.gidsimulation.com/u/Bert_Pluymers)\
**Post date:** [December 2, 2002, 10:46am UTC](https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529/1 "2002-12-02T10:46:01Z")

</div>

Hello,

I’m doing research on a new deterministic prediction technique, based  
on wave based modelling. For this I’m looking for a user friendly pre-  
and postprocessor. After having a quick look at GiD, I think it just  
might be what I’m looking for, if the following things are possible.

Since for the wave based method, I only need a very rough discretization  
of my problem in covex, homogenous subdomains, I only have a few large  
elements. Up till here, no problem, but my domains can have other shapes  
than three noded and four noded elemens (2D). For instance I can have six  
or  
seven noded elements (2D) or more exotic elements in 3D (with for instance  
15 nodes). So my question: Is is possible to add my own elements to GiD ??

An alternative I thought of, is to use geometric entities as elements.  
So assigning boundary conditions, loads and material props only to points,  
lines, surfaces and volumes. Is this possible and is it then possible  
to export this information with a \*bas file to a \*dat file, like is done  
with element and node information ?

Thanks in advance,  
Bert

* * *

ir. Bert Pluymers  
K.U.Leuven, Dept. Mechanical Engineering  
Division PMA, Noise & Vibration Research Group

Celestijnenlaan 300B, B-3001 Heverlee, BELGIUM  
Tel. +32 16 322672 Fax +32 16 322987  
Email: [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)

[http://www.mech.kuleuven.ac.be/pma/research/mod](http://www.mech.kuleuven.ac.be/pma/research/mod)

> **[ISMA – International Conference on Noise and Vibration Engineering](https://www.isma-isaac.be)**

* * *

---

<div class="post-metadata">

**Author:** ![Enrique\_Escolano](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/e/ecd19e/32.png) [@Enrique\_Escolano](https://forum.gidsimulation.com/u/Enrique_Escolano)\
**Post date:** [December 2, 2002, 12:33pm UTC](https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529/2 "2002-12-02T12:33:01Z")

</div>

It exists also in GiD the quadratic elements:  
6-noded triangle  
8 or 9 noded-quadrilaterals  
10-noded tetrahedra  
20 or 27 noded hexahedra.

It is not available to externally define new element types.

If you simulate this “special user elements” with geometric entities, is is  
possible to  
export the geometric or associated data in the bas file using tcl languaje  
(see \*tcl order use in the bas file)  
It is also possible to write this data as an ASCII file (with Export-Text  
data report or Export Ascii project)  
and read this file with as auxiliar program (or tcl code) to create your  
input data file.

Regards  
Enrique Escolano

----- Original Message -----  
From: “Bert Pluymers” [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Sent: Monday, December 02, 2002 12:37 PM  
Subject: [GiDlist] Wave based method  
  
  
_Hello,_  
_I’m doing research on a new deterministic prediction technique, based_  
_on wave based modelling. For this I’m looking for a user friendly pre-_  
_and postprocessor. After having a quick look at GiD, I think it just_  
_might be what I’m looking for, if the following things are possible._  
_Since for the wave based method, I only need a very rough discretization_  
_of my problem in covex, homogenous subdomains, I only have a few large_  
_elements. Up till here, no problem, but my domains can have other shapes_  
_than three noded and four noded elemens (2D). For instance I can have six_  
_or_  
_seven noded elements (2D) or more exotic elements in 3D (with for instance_  
_15 nodes). So my question: Is is possible to add my own elements to GiD_  
??

_An alternative I thought of, is to use geometric entities as elements._  
_So assigning boundary conditions, loads and material props only to points,_  
_lines, surfaces and volumes. Is this possible and is it then possible_  
_to export this information with a \*bas file to a \*dat file, like is done_  
_with element and node information ?_  
_Thanks in advance,_  
_Bert_

* * *

_ir. Bert Pluymers_  
_K.U.Leuven, Dept. Mechanical Engineering_  
_Division PMA, Noise & Vibration Research Group_  
_Celestijnenlaan 300B, B-3001 Heverlee, BELGIUM_  
_Tel. +32 16 322672 Fax +32 16 322987_  
_Email: [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://www.mech.kuleuven.ac.be/pma/research/mod\_](http://www.mech.kuleuven.ac.be/pma/research/mod_)  
_[http://www.isma-isaac.be](http://www.isma-isaac.be)_

* * *

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![LEWIS\_RANDEL\_E](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/l/7ea924/32.png) [@LEWIS\_RANDEL\_E](https://forum.gidsimulation.com/u/LEWIS_RANDEL_E)\
**Post date:** [December 2, 2002, 2:08pm UTC](https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529/3 "2002-12-02T14:08:02Z")

</div>

When you say it is possible to export the geometric data in the \*.bas file using tcl language, are you referring to the use of “.central.s info list\_entities”? Are there labels for geometric entities, similar to those for elements such as \*NodesNum, and can they be sequentially written in the \*bas file using loops?

Randy

_-----Original Message-----_  
_From: Enrique Escolano [SMTP:[escolano at cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)]_  
_Sent: Monday, December 02, 2002 6:36 AM_  
_To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: Re: [GiDlist] Wave based method_  
_It exists also in GiD the quadratic elements:_  
_6-noded triangle_  
_8 or 9 noded-quadrilaterals_  
_10-noded tetrahedra_  
_20 or 27 noded hexahedra._  
_It is not available to externally define new element types._  
_If you simulate this “special user elements” with geometric entities, is is_  
_possible to_  
_export the geometric or associated data in the bas file using tcl languaje_  
_(see \*tcl order use in the bas file)_  
_It is also possible to write this data as an ASCII file (with Export-Text_  
_data report or Export Ascii project)_  
_and read this file with as auxiliar program (or tcl code) to create your_  
_input data file._  
_Regards_  
_Enrique Escolano_  
_----- Original Message -----_  
_From: “Bert Pluymers” [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Sent: Monday, December 02, 2002 12:37 PM_  
_Subject: [GiDlist] Wave based method_

_Hello,_  
_I’m doing research on a new deterministic prediction technique, based_  
_on wave based modelling. For this I’m looking for a user friendly pre-_  
_and postprocessor. After having a quick look at GiD, I think it just_  
_might be what I’m looking for, if the following things are possible._  
_Since for the wave based method, I only need a very rough discretization_  
_of my problem in covex, homogenous subdomains, I only have a few large_  
_elements. Up till here, no problem, but my domains can have other shapes_  
_than three noded and four noded elemens (2D). For instance I can have six_  
_or_  
_seven noded elements (2D) or more exotic elements in 3D (with for instance_  
_15 nodes). So my question: Is is possible to add my own elements to GiD_  
_??_  
_An alternative I thought of, is to use geometric entities as elements._  
_So assigning boundary conditions, loads and material props only to points,_  
_lines, surfaces and volumes. Is this possible and is it then possible_  
_to export this information with a \*bas file to a \*dat file, like is done_  
_with element and node information ?_  
_Thanks in advance,_  
_Bert_

* * *

_ir. Bert Pluymers_  
_K.U.Leuven, Dept. Mechanical Engineering_  
_Division PMA, Noise & Vibration Research Group_  
_Celestijnenlaan 300B, B-3001 Heverlee, BELGIUM_  
_Tel. +32 16 322672 Fax +32 16 322987_  
_Email: [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://www.mech.kuleuven.ac.be/pma/research/mod\_](http://www.mech.kuleuven.ac.be/pma/research/mod_)  
_[http://www.isma-isaac.be](http://www.isma-isaac.be)_

* * *

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![Enrique\_Escolano](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/e/ecd19e/32.png) [@Enrique\_Escolano](https://forum.gidsimulation.com/u/Enrique_Escolano)\
**Post date:** [December 2, 2002, 3:43pm UTC](https://forum.gidsimulation.com/t/gidlist-wave-based-method/1529/4 "2002-12-02T15:43:01Z")

</div>

Yes, to export geometric data is needed to use “.central.s info” orders,  
It not exists a direct access from the bas file to the geometric entities, loops over lines, etc.

Tcl is a language more complicated as the simple GiD “bas” format, but it is more powerful.

This is a tcl example (untested) to print the model points list from a ‘problemtype’.tcl file:

proc NumPoints { } {  
#gets information from GiD with .central.s info  
set a [.central.s info list\_entities Status]  
#filter this info to obtain only the number of points  
regexp -nocase {number of points: ([0-9]+)} $a none num  
return $num  
}

proc PointCoords { num } {  
#gets information from GiD with .central.s info  
set a [.central.s info list\_entities Points $num]  
#filter this info to obtain only the coordinates  
set number {([0-9.+eE-]+)}  
if { [regexp -nocase “Coord: $number $number $number” $a none x y z] } {  
set coords “$x $y $z”  
} else {  
set coords “”  
}  
return $coords  
}

proc AllPointCoords { } {  
set ret “POINTS: Num x y z\n”  
set npoint [NumPoints]  
set ipoint 0  
set cont 1  
while { $ipoint $npoint } {  
set coord [PointCoords $cont]  
if { $coord != “” } {  
append ret “$cont $coord\n”  
incr ipoint  
}  
incr cont  
}  
return $ret  
}

To call from the’problemtype’.bas file, use a line as:  
\*tcl(AllPointCoords)

Note: the return of the tcl command isdirectly printed to the calculation file

Enrique Escolano  
----- Original Message -----  
From: “LEWIS, RANDEL E” [rlewis at oppd.com](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Sent: Monday, December 02, 2002 3:07 PM  
Subject: RE: [GiDlist] Wave based method  
  
  
_When you say it is possible to export the geometric data in the \*.bas file using tcl language, are you referring to the use of “.central.s info list\_entities”? Are there labels for geometric entities, similar to those for elements such as \*NodesNum, and can they be sequentially written in the \*bas file using loops?_  
_Randy_  
_-----Original Message-----_  
_From: Enrique Escolano [SMTP:[escolano at cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)]_  
_Sent: Monday, December 02, 2002 6:36 AM_  
_To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: Re: [GiDlist] Wave based method_  
_It exists also in GiD the quadratic elements:_  
_6-noded triangle_  
_8 or 9 noded-quadrilaterals_  
_10-noded tetrahedra_  
_20 or 27 noded hexahedra._  
_It is not available to externally define new element types._  
_If you simulate this “special user elements” with geometric entities, is is_  
_possible to_  
_export the geometric or associated data in the bas file using tcl languaje_  
_(see \*tcl order use in the bas file)_  
_It is also possible to write this data as an ASCII file (with Export-Text_  
_data report or Export Ascii project)_  
_and read this file with as auxiliar program (or tcl code) to create your_  
_input data file._  
_Regards_  
_Enrique Escolano_  
_----- Original Message -----_  
_From: “Bert Pluymers” [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_To: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Sent: Monday, December 02, 2002 12:37 PM_  
_Subject: [GiDlist] Wave based method_

_Hello,_  
_I’m doing research on a new deterministic prediction technique, based_  
_on wave based modelling. For this I’m looking for a user friendly pre-_  
_and postprocessor. After having a quick look at GiD, I think it just_  
_might be what I’m looking for, if the following things are possible._  
_Since for the wave based method, I only need a very rough discretization_  
_of my problem in covex, homogenous subdomains, I only have a few large_  
_elements. Up till here, no problem, but my domains can have other shapes_  
_than three noded and four noded elemens (2D). For instance I can have six_  
_or_  
_seven noded elements (2D) or more exotic elements in 3D (with for instance_  
_15 nodes). So my question: Is is possible to add my own elements to GiD_  
_??_  
_An alternative I thought of, is to use geometric entities as elements._  
_So assigning boundary conditions, loads and material props only to points,_  
_lines, surfaces and volumes. Is this possible and is it then possible_  
_to export this information with a \*bas file to a \*dat file, like is done_  
_with element and node information ?_  
_Thanks in advance,_  
_Bert_

* * *

_ir. Bert Pluymers_  
_K.U.Leuven, Dept. Mechanical Engineering_  
_Division PMA, Noise & Vibration Research Group_  
_Celestijnenlaan 300B, B-3001 Heverlee, BELGIUM_  
_Tel. +32 16 322672 Fax +32 16 322987_  
_Email: [Bert.Pluymers at mech.kuleuven.ac.be](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://www.mech.kuleuven.ac.be/pma/research/mod\_](http://www.mech.kuleuven.ac.be/pma/research/mod_)  
_[http://www.isma-isaac.be](http://www.isma-isaac.be)_

* * *

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL: [http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021202/16da2afa/attachment.htm](http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021202/16da2afa/attachment.htm)
