[GiDlist] Mesh output
Posted: Wed Aug 14, 2002 6:08 pm
I use GiD to mesh geometries and then export node coordinates and connectivity to a text file. For this purpose, I use a .bas file of this format:
NOEUDS ET COORDONNEES
*npoin
*loop nodes *All
*format "%7i%15.5f%15.5f%15.5f"
*NodesNum *NodesCoord
*end
CONNECTIVITE
*nelem
*loop elems
*elemsnum *elemsConec
*end elems
INLET
*Set Cond INLET *nodes
*loop nodes *OnlyInCond
*NodesNum
*end
........etc
The inlet section is to extract nodes to which I applied a certain condition. These nodes are then used in a finite element program to apply a boundary condition. I have 2 questions:
1) Is there a better or more efficient way to do this (then to apply conditions to boundaries)
2) (More important) Say I have a boundary condition which is a line. I absolutely want the nodes (written in the text file) to be written line-wise i.e. in the order they are encountered along the line (is this automatic?) Is there a way to reverse this order?
3) Is there a way to perform a calculation (ex: write the normal of each line element) and write this automatically in the exported calculation file (text file).
Alexandre Forest, B. Eng
École de technologie supérieure
Montréal, QC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020814/7f394b5f/attachment.htm
NOEUDS ET COORDONNEES
*npoin
*loop nodes *All
*format "%7i%15.5f%15.5f%15.5f"
*NodesNum *NodesCoord
*end
CONNECTIVITE
*nelem
*loop elems
*elemsnum *elemsConec
*end elems
INLET
*Set Cond INLET *nodes
*loop nodes *OnlyInCond
*NodesNum
*end
........etc
The inlet section is to extract nodes to which I applied a certain condition. These nodes are then used in a finite element program to apply a boundary condition. I have 2 questions:
1) Is there a better or more efficient way to do this (then to apply conditions to boundaries)
2) (More important) Say I have a boundary condition which is a line. I absolutely want the nodes (written in the text file) to be written line-wise i.e. in the order they are encountered along the line (is this automatic?) Is there a way to reverse this order?
3) Is there a way to perform a calculation (ex: write the normal of each line element) and write this automatically in the exported calculation file (text file).
Alexandre Forest, B. Eng
École de technologie supérieure
Montréal, QC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020814/7f394b5f/attachment.htm