[GiDlist] Creating and exporting one node elements (point el

Moderator: GiD Team

Post Reply
Guy HUBERT

[GiDlist] Creating and exporting one node elements (point el

Post by Guy HUBERT »

Hello

I need to export, in calculation file, point element. In my .bas, I have
tried
nelem(point) and elems(point) by they are not allowed, then I used the code
below
*#
*# Mailles Point (1 noeud)
*# -----------------------
*if(npoin)
POI1
*loop elems
*if(ElemsNnode==1)
*GenData(3)*ElemsNum*GenData(2)*ElemsConec(1)
*endif
*End elems
FINSF

It works, but is it the correct method ?

Another question is that I cannot create point element on another geometry
than volumes,
I have seen that linear elements can be assigned to lines, surfaces and
volumes. Is it
right ?

It could be interesting to have the same function than lineaar element for
point element
(even mesh geometrical point).

Thanks
________________________________________________________________
Guy HUBERT Mailto:hubert at deltacad.fr
Tel direct : +33 (0)3 44 23 52 99 mobile: 06 76 80 03 42

DeltaCAD
Centre de Transfert - 66 Avenue de Landshut
60200 COMPIEGNE (FRANCE)
Tel : +33 (0)3 44 23 46 54 - Fax : +33 (0)3 44 23 46 31
Web : http://www.deltacad.fr
Matias Gabriel Zielonka

[GiDlist] postprocessing in batch mode

Post by Matias Gabriel Zielonka »

I am running gid 7.2 in linux.

I would like to postprocess a tecplot file in batch mode.
The tasks I wish are:
-Import the tecplot file
-generate a bandplot of a variable named "FZ"
-export a snapshot
-quit gid

To do this I generated the following batchfile:

____________
escape escape escape escape Postprocess
escape escape escape escape files readTECPLOT
./tecplot_file_name.dat
escape escape escape escape results contourfill FZ
hardcopy png
./png_file_name.png
escape escape escape escape quit
____________


I found the following problems:

1- when I run with "gid -b batchfile" the snapshot file is generated but
is empty.
2- when I run with "gid -b batchfile -n" the snapshot fil is not generated
at all.
3- when I run gid in interactive mode, and load the batchfile with the
command line "file batch batchfile", I found the same problem as in 1
4- Only when I run gid in interactive mode, and load the batchfile with
the interactive "read batch window" dialog, everything works, which means
that the batch file was generated properly, and that there are not any
problems in the tecplot input file.

Any suggestions?

Best regards.
Enrique Escolano

[GiDlist] Creating and exporting one node elements (point el

Post by Enrique Escolano »

Your sintax is valid, but instead to use *if(npoin) (this return the number of nodes, not the number or 1-noded elements)
must use a previous loop to count this number of elements or check if exists at least one 1-noded element and break.

*set var ExistsElem1=0
*loop elems
*if(ElemsNnode==1)
*set var ExistsElem1=1
*break
*endif
*End elems
*if(ExistsElem1)
...

At this moment not exists a command *nelem(npoin) or *set elem(npoin) for 1-noded elements.
The next beta version GiD7.4.3b includes for this element type the order *nelem(onlypoints) and *set elem(onlypoints)

For example, for this GiD7.4.3b and higher is also valid:

*if(nelem(onlypoints))
*set elems(onlypoints)
*loop elems
*ElemsNum *ElemsConec(1)
*End elems
*endif

This related version 7.4.3b can be available to download this week (inside the download beta versions section).

Enrique Escolano

----- Original Message -----
From: "Guy HUBERT" hubert at deltacad.fr
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, July 28, 2003 5:27 PM
Subject: [GiDlist] Creating and exporting one node elements (point element)


Hello

I need to export, in calculation file, point element. In my .bas, I have
tried
nelem(point) and elems(point) by they are not allowed, then I used the code
below
*#
*# Mailles Point (1 noeud)
*# -----------------------
*if(npoin)
POI1
*loop elems
*if(ElemsNnode==1)
*GenData(3)*ElemsNum*GenData(2)*ElemsConec(1)
*endif
*End elems
FINSF

It works, but is it the correct method ?

Another question is that I cannot create point element on another geometry
than volumes,
I have seen that linear elements can be assigned to lines, surfaces and
volumes. Is it
right ?

It could be interesting to have the same function than lineaar element for
point element
(even mesh geometrical point).

Thanks
________________________________________________________________
Guy HUBERT Mailto:hubert at deltacad.fr
Tel direct : +33 (0)3 44 23 52 99 mobile: 06 76 80 03 42

DeltaCAD
Centre de Transfert - 66 Avenue de Landshut
60200 COMPIEGNE (FRANCE)
Tel : +33 (0)3 44 23 46 54 - Fax : +33 (0)3 44 23 46 31
Web : http://www.deltacad.fr

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030729/55bf235f/attachment.htm
Enrique Escolano

[GiDlist] postprocessing in batch mode

Post by Enrique Escolano »

1- when I run with "gid -b batchfile" the snapshot file is generated but is empty.

Must use the flag -b+g to enable some graphic capabilities:

gid -b+g batchfile

2- when I run with "gid -b batchfile -n" the snapshot fil is not generated at all.

At this moment It's not possible to create a image without open a Window to draw.

3- when I run gid in interactive mode, and load the batchfile with the
command line "file batch batchfile", I found the same problem as in 1

It seems a bug to correct (using some GiD versions can works ok).


4- Only when I run gid in interactive mode, and load the batchfile with
the interactive "read batch window" dialog, everything works, which means
that the batch file was generated properly, and that there are not any
problems in the tecplot input file.

Enrique Escolano

----- Original Message -----
From: "Matias Gabriel Zielonka" mzielon at its.caltech.edu
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, July 28, 2003 6:39 PM
Subject: [GiDlist] postprocessing in batch mode


I am running gid 7.2 in linux.

I would like to postprocess a tecplot file in batch mode.
The tasks I wish are:
-Import the tecplot file
-generate a bandplot of a variable named "FZ"
-export a snapshot
-quit gid

To do this I generated the following batchfile:

____________
escape escape escape escape Postprocess
escape escape escape escape files readTECPLOT
./tecplot_file_name.dat
escape escape escape escape results contourfill FZ
hardcopy png
./png_file_name.png
escape escape escape escape quit
____________


I found the following problems:

1- when I run with "gid -b batchfile" the snapshot file is generated but
is empty.
2- when I run with "gid -b batchfile -n" the snapshot fil is not generated
at all.
3- when I run gid in interactive mode, and load the batchfile with the
command line "file batch batchfile", I found the same problem as in 1
4- Only when I run gid in interactive mode, and load the batchfile with
the interactive "read batch window" dialog, everything works, which means
that the batch file was generated properly, and that there are not any
problems in the tecplot input file.

Any suggestions?

Best regards.


_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030730/5ad351df/attachment.htm
Post Reply