Navigation: GeoDict 2025 - User Guide > Automation > GeoPy Scripting > Advanced Scripting > GeoDict API |
Scroll |
Result Functions
Get information about the currently loaded volume files. Manipulate volume files by getting the data as a 3D numpy array, editing it and updating the volume field in the end.
Returns a Python dictionary containing the parameters of the given GeoDict result file (*.gdr). The result file must be loaded in the Result Viewer. Use for example the gd.showGDR function for loading result files. While this function directly returns a Python dictionary, instead of a stringmap object, no units are contained in the dictionary. If units are relevant, use the stringmap module instead. Input:
Example:
|
Returns a list of dictionaries describing the currently loaded Volume Fields (Result fields, e.g. Flow results). The "index" field of each entry gives the index to use for the following function. Input: None Example: For an example, see below under the getVolumeField command. |
This function returns a numpy array for a currently loaded Volume Field. There are separate Fields for each component, e.g. for a flow field there are separate fields for VelocityX, VelocityY, VelocityZ and Pressure. If the needed index or name is unknown, the previous function gd.getVolumeFieldsInfo can be used to obtain the desired information. Input:
Example: For example, this function can be used to compute statistics from the results. In the following example for the first of the loaded volume fields a statistic over the Z-layers is plotted in a graph, using another GeoDict API function. A volume field must be loaded and, if the volume field is a simulation result, also the corresponding structure.
|
This command has no return value but updates the visualization of a volume field, for example after changing values in the numpy array obtained with gd.getVolumeField. Input:
|
Returns number of triangles in the current surface mesh. If no mesh is loaded 0 is returned. Input: None Example:
|
gd.getTriangulationBoundingBox
Returns the bounding box of the current triangulation. If no triangulation exists {{0,0,0}, {0,0,0}} is returned. Input: None Example::
|
©2025 created by Math2Market GmbH / Imprint / Privacy Policy