GiD - The personal pre and post processor
Graphs
Menu: View results->Graphs
From this menu several graphs types can be created, we will try some of them. Graphs are supported for results defined over nodes because they represent a continuous field (gauss-element results represent a discontinuous field)
Graphs are organized into graph sets in order to ease the management. Each set shares the same units for each axis.
When a graph is created is placed in the current graphset if the units are the same, otherwise a new graphset is created.
In order to work with graphs we will use the 'graphs window'.
The Point evolution graph displays a graph of the evolution of the selected result along all the steps, of the default analysis, for the selected nodes.
- Select View results->Graphs->Point evolution->Velocity->|Velocity| . You can also click on the graphs icon and select the point evolution option:
- Write 20,0,4 in the command line in order to specify the point.
- After pressing the <Esc> key, or the middle mouse button, the graph will be shown in a separate window:
The graph is created in the graphset-1. We will create another graph in the same graph set.
The Line graph displays a graph along the line connecting two selected nodes of surfaces or volumes, or any arbitrary points on any projectable surface and in any position.
- Switch all surface meshes off, and let only the three volume meshes on: volumes, cil, wake.
- Create this graph from the 'Create' tab of the Graphs window
Press the Apply button to select the two points of the line:
- Write 3,0,4 in the command line in order to specify the initial point.
- Write 50,0,4 in the command line in order to specify the final point.
You can create this graph also from the results icon bar:
Now both graphs are showed in the same graph set:
We will rename the graph set.
- In the top part of the window click the icon.
- A window will appear asking for a new name. Enter 'Velocity', for example.
We will create a new graph set.
- In the top part of the window click the icon.
A new graph set is created with default name 'graphset-1'. When a new graph set is created becomes the current one. We can see that there are no graphs on this new graph set.
It's also possible to create graphs from the graph window.
- Go to Create tab and select Point evolution int View option.
- In Y Axis list double click Pressure.
- Press Apply to select the point and write 50,0,0 in the command line in order to specify the coordinates of a new point (<Ctrl>-a to swap to select an existent node by its id)
- Press <Esc> to finish the selection of points and create the graph:
We can manage graphs and graphs sets in the Options panel. Depending if we are selecting a graph set or a graph in the tree we will see different options in the tab.
- Go to the Options panel, select the 'Velocity (m/s) evolution at ( 20, 0, 4)' graph and delete it pressing the button with the red cross.
- A confirmation window appears. Click Yes.
- Please notice that the current graph set have been changed to 'Velocity'. Now the Plot graph panel will show only one graph:
The graph size is readapted. We can will change several style options of a graph.
- Double click in any point of the graph and we will access to the Options tab.
- Set Style: Line
- Set to red the Color option. You can do it writing #ff0000 or selecting the red clicking on the right color window
- Set to 4.0 the Line width
- Click on Apply button
Graphset options can be managed selecting the set in the tree.
- Select Velocity branch. The options will change.
- For instance mark Logarithmic scale option in X axis.
- Click on Apply button
We can export the graph information in order to open it later with GiD or other third party programs.
- Select Files->Export->Graph->All graphsets. You are asked for the location where to save the .grf file. The .grf extension is the predefined by GiD, but it's a text file which can also be used in gnuplot or other programs.
- Choose the location
Now you can import the selecting Files->Import->Graph.
- Select View results->Graphs->Clear in order to delete all the graphs, or choose the clear graphs option from the graphs icon menu:
COPYRIGHT © 2022 · GID · CIMNE