GiD - The personal pre and post processor
Check
A case must have a check block with one or more checks to be evaluated.
The test case is passed if all its tests are evaluated as true (not 0)
The syntax of a check is a valid Tcl expression (it is in fact evaluated with a Tcl 'expr' at the GiD client side)
Note: Writing directly in the XML file remember to replace special xml characters (using the GUI this translation is automatically done)
> by >
< by <
& by &
example of check:
<check> <check-1>$numvolumes==1</check-1> <check-2>$numnodes>1</check-2> </check>
The operation could involve the below variables
possible variables to check:
common variables, also if is is not testing a GiD-like project
tini time workingsetpeak workingset elapsedtime
and the variables returned by readingproc, that by default (readgidmonitoringinfo) are:
gid_is_developer gid_version gid_opengl_is_software_renderer gid_opengl_has_vbo numpoints numlines numsurfaces numvolumes numdimensions numsurfaces_nurbssurface numsurfaces_plsurface numsurfaces_coonsurface numsurfaces_meshsurface numsurfaces_unrendered render_line_numelements render_surface_numelements numnodes numelements numelements_linear numelements_triangle numelements_quadrilateral numelements_tetrahedra numelements_hexahedra numelements_prism numelements_pyramid numelements_sphere numelements_circle numelements_point maxnumnodes maxnumelements length_lines area_surfaces volume_volumes length_elements area_elements volume_elements numdistances size_linear size_triangle size_quadrilateral size_tetrahedra size_hexahedra size_prism size_pyramid size_sphere size_circle size_point minedge_linear minedge_triangle minedge_quadrilateral minedge_tetrahedra minedge_hexahedra minedge_prism minedge_pyramid minedge_sphere minedge_circle minedge_point shapequality_linear shapequality_triangle shapequality_quadrilateral shapequality_tetrahedra shapequality_hexahedra shapequality_prism shapequality_pyramid shapequality_sphere shapequality_circle shapequality_point minjacobian_linear minjacobian_triangle minjacobian_quadrilateral minjacobian_tetrahedra minjacobian_hexahedra minjacobian_prism minjacobian_pyramid minjacobian_sphere minjacobian_circle minjacobian_point numlayers entities_layers_numpoints entities_layers_numlines entities_layers_numsurfaces entities_layers_numvolumes entities_layers_numnodes entities_layers_numelements entities_layers_numfaces numgroups entities_groups_numpoints entities_groups_numlines entities_groups_numsurfaces entities_groups_numvolumes entities_groups_numnodes entities_groups_numelements entities_groups_numfaces redraw_time redraw_fps redraw_fps_100 numconditions_points numconditions_lines numconditions_surfaces numconditions_volumes numconditions_layers numconditions_groups entities_conditions_numpoints entities_conditions_numlines entities_conditions_numsurfaces entities_conditions_numvolumes entities_conditions_numlayers entities_conditions_numgroups entities_conditions_numnodes entities_conditions_numelements entities_conditions_numfaces nummaterials entities_materials_numpoints entities_materials_numlines entities_materials_numsurfaces entities_materials_numvolumes entities_materials_numnodes entities_materials_numelements postnumnodes postnumelements postnumelements_linear postnumelements_triangle postnumelements_quadrilateral postnumelements_tetrahedra postnumelements_hexahedra postnumelements_prism postnumelements_pyramid postnumelements_sphere postnumelements_circle postnumelements_point numvolumesets numsurfacesets numcutsets numanalysis numresultscurrentanalysis numgaussresultscurrentanalysis numrangestables numgausspoints numstepscurrentanalysis stepcurrent numgraphs numsets numcuts
It is possible to implement more variables of interest, modifying the package 'gidmonitoring' that must be located in the scripts folder of the GiD to test.
(have a look to the source code of this package to
Generic local checks: GiD_expr
It is possible to implement special generic checks to be done on the GiD side, with GiD_expr that will evaluate a expr on the running GiD.
the expression must return 1 (true) or 0 (false, if the check fail)
e.g.
<check-1>GiD_expr [MathUtils::VectorDotProd [lrange [lindex [lindex [GiD_Info Conditions -localaxesmat Line_Local_axes mesh] 1] 3] 0 2] {-0.9513974882945322 -0.3079656137734462 0.0}] > 0.996</check-1> <check-2>GiD_expr [GiD_Info Mesh numnodes] > 1</check-2> <check-3>GiD_expr abs([lindex [split [lindex [GiD_Info ListMassProperties lines 1:end] end] =] 1]-13.939859)<0.1</check-3>
Related content
COPYRIGHT © 2022 · GID · CIMNE