Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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: Writting 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>

Code Block
languagexml
<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:
tini
time
workingsetpeak
workingset
elapsedtime
and the variables returned by readingproc, that by default (readgidmonitoringinfo) are:
numpoints
numlines
numsurfaces
numvolumes
numdimensions
numsurfaces
numsurfaces_nurbssurface
numsurfaces_plsurface
numsurfaces_coonsurface
numsurfaces_meshsurface
numnodes
numelements
numelements_linear
numelements_triangle
numelements_quadrilateral
numelements_tetrahedra
numelements_hexahedra
numelements_prism
numelements_pyramid
numelements_sphere
numelements_circle
numelements_point
minjacobian_linear
minjacobian_triangle
minjacobian_quadrilateral
minjacobian_tetrahedra
minjacobian_hexahedra
minjacobian_prism
minjacobian_pyramid
minjacobian_sphere
minjacobian_circle
minjacobian_point


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.


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.

Code Block
languagexml
<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>