[GiDlist] Finding maxima

Hi,

I am a newbie with GiD. I have a .msh file for a 2D mesh, and a .res
file with scalar field data on the mesh, for several time frames. I
want to extract, for each node, the maximum value of the scalar field,
and get a contour plot of these maximum values, regardless of the time
at which each maximum is attained.

In addition, I would like to get a contour plot of the times at which
the maxima are attained.

Is any of these two tasks feasible? As of now, I am running a script
to perform these tasks, generating new res files.

Thanks a lot.

Hello,

if i understand you correctly, you want to do a contour fill of the maximum
nodal values of a scalar results for all the steps, i.e., if node 1 gets its
maximum at step 2 and node 2 gets its maximum at step 8, you want to do a
contour fill of node 1, maximum values (step2) and node 2, maximum values
(step 8).

By now there is no direct possibility to get this. something similar is the
option ‘Options–Contour–Set limits–All/visible sets for All steps’
which looks for the min/max values for all the steps and uses this colour
map to do the contour fill.



You can get what you want using a macro in tcl.

i send you enclosed an example.



you can use it in two ways:

enter in the command line: -np- FullPathToFileMaxContour.tcl

or create an empty macro, edit it:

and in the empty ‘code’ box (bottom right quarter), enter the contents of
the MaxContour.tcl file.

(if the code box does not appear, click on the icon just below the scrollbar
of the macros list.



Miguel Pasenau


\


Miguel Pasenau @: miguel at cimne.upc.edu

Despacho C2, Edifico C1, Campus Norte UPC, c/ Gran Capitán s/n

08034 - Barcelona ( SPAIN)

T: +34 3 93 401 74 03 F: +34 3 93 401 65 17


IMPORTANT NOTICE

All personal data contained in this mail will be processed confidentially
and stored in a file property of CIMNE in order to manage corporate
communications. You may exercise the right of access, rectification,
deletion and objection by letter sent to CIMNE, Gran Capitán, Edificio C1 -
Campus Norte UPC, 08034 Barcelona, Spain.



-----Mensaje original-----

De: gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu
[mailto:gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu] En nombre de
sserebrinsky at gmail.com

Enviado el: martes, 06 de octubre de 2009 22:05

Para: gidlist at gatxan.cimne.upc.edu

Asunto: [GiDlist] Finding maxima



Hi,



I am a newbie with GiD. I have a .msh file for a 2D mesh, and a .res

file with scalar field data on the mesh, for several time frames. I

want to extract, for each node, the maximum value of the scalar field,

and get a contour plot of these maximum values, regardless of the time

at which each maximum is attained.



In addition, I would like to get a contour plot of the times at which

the maxima are attained.



Is any of these two tasks feasible? As of now, I am running a script

to perform these tasks, generating new res files.



Thanks a lot.


GiDlist mailing list

mailto:GiDlist at gid.cimne.upc.edu GiDlist at gid.cimne.upc.edu

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/20091008/9d373028/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: image/png
Size: 113043 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20091008/9d373028/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed…
Name: MaxContour.tcl
Type: application/octet-stream
Size: 10226 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20091008/9d373028/attachment.obj

Dear Miguel,

I have performed the actions you listed to add the tcl macro. Execution
gives me a message stating that “Maximum simulado” was created from
“simulado”, but I cannot find the dataset for plotting it. I have exported
the postprocessing information to ASCII file, and “Maximum simulado” data
are there…

Thanks a lot

Santiago



On Thu, Oct 8, 2009 at 8:42 AM, Miguel Adolfo Pasenau de Riera
miguel at cimne.upc.edu wrote:

Hello,
if i understand you correctly, you want to do a contour fill of the maximum
nodal values of a scalar results for all the steps, i.e., if node 1 gets its
maximum at step 2 and node 2 gets its maximum at step 8, you want to do a
contour fill of node 1, maximum values (step2) and node 2, maximum values
(step 8).
By now there is no direct possibility to get this. something similar is the
option ‘Options–Contour–Set limits–All/visible sets for All steps’
which looks for the min/max values for all the steps and uses this colour
map to do the contour fill.


You can get what you want using a macro in tcl.
i send you enclosed an example.


you can use it in two ways:
enter in the command line: -np- FullPathToFileMaxContour.tcl
or create an empty macro, edit it:
and in the empty ‘code’ box (bottom right quarter), enter the contents of
the MaxContour.tcl file.
(if the code box does not appear, click on the icon just below the
scrollbar of the macros list.


Miguel Pasenau



----------------------------------------------------------------
Miguel Pasenau @: miguel at cimne.upc.edu
Despacho C2, Edifico C1, Campus Norte UPC, c/ Gran Capitán s/n
08034 - Barcelona ( SPAIN)
T: +34 3 93 401 74 03 F: +34 3 93 401 65 17
----------------------------------------------------------------
IMPORTANT NOTICE
All personal data contained in this mail will be processed confidentially
and stored in a file property of CIMNE in order to manage corporate
communications. You may exercise the right of access, rectification,
deletion and objection by letter sent to CIMNE, Gran Capitán, Edificio C1 -
Campus Norte UPC, 08034 Barcelona, Spain.


-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu [mailto:
gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu] En nombre de
sserebrinsky at gmail.com
Enviado el: martes, 06 de octubre de 2009 22:05
Para: gidlist at gatxan.cimne.upc.edu
Asunto: [GiDlist] Finding maxima


Hi,


I am a newbie with GiD. I have a .msh file for a 2D mesh, and a .res
file with scalar field data on the mesh, for several time frames. I
want to extract, for each node, the maximum value of the scalar field,
and get a contour plot of these maximum values, regardless of the time
at which each maximum is attained.


In addition, I would like to get a contour plot of the times at which
the maxima are attained.


Is any of these two tasks feasible? As of now, I am running a script
to perform these tasks, generating new res files.


Thanks a lot.


GiDlist mailing list
GiDlist at gid.cimne.upc.edu
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20091013/8aa785d7/attachment.htm