Page 1 of 2

Post processing error

Posted: Tue Feb 21, 2017 12:20 am
by payoubi
Hi,

I am wondering is there any reference for errors in GiD?

Sometimes I face an error which I would like to know more about it.

Something like this :


can't set "GidPriv(PostAnimateDeform)": can't use empty string as operand of "*"
can't use empty string as operand of "*"
while executing
"expr $factor_base * $i * $f"
(procedure "AnimacionEstaticaCreaFactores" line 9)
invoked from within
"AnimacionEstaticaCreaFactores $::GidPriv(PostAnimate_cur_d_factor)"
(procedure "CambioPostAnimateDeform" line 17)
invoked from within
"CambioPostAnimateDeform GidPriv PostAnimateDeform write"
(write trace on "GidPriv(PostAnimateDeform)")
invoked from within
".gid.wPostAnimate.f_opt.cb2 invoke "
invoked from within
".gid.wPostAnimate.f_opt.cb2 instate !disabled { .gid.wPostAnimate.f_opt.cb2 invoke } "
invoked from within
".gid.wPostAnimate.f_opt.cb2 instate pressed { .gid.wPostAnimate.f_opt.cb2 state !pressed; .gid.wPostAnimate.f_opt.cb2 instate !disabled { .gid.wPostAn..."
(command bound to event)



Bests

Re: Post processing error

Posted: Tue Feb 21, 2017 10:37 am
by escolano
What is the exact version of GiD? (see Help->About GiD...)

If it is not any of the last official or developer version try to download this version, maybe the bug has been fixed.
nowadays the current versiona are official: 13.0.1 and developer 13.1.4d

If the problem already happen in current versions, please attach a small example to this forum (or send it privately) and the instructions to repeat it.

Re: Post processing error

Posted: Thu Feb 23, 2017 12:49 am
by payoubi
I am using latest version of GiD.
I is resolved and I think the problem was the steps I should follow to produce an animation.

Thanks

Re: Post processing error

Posted: Sun Feb 26, 2017 11:47 pm
by payoubi
Hi,

Despite the fact that I can animate my result but it cannot be done using vector display! Contour fill works fine but not vector!
I am animate my result without any problem using contour fill, but when I change it to vector, it does not animate any more and returns an error.

This is the error I am getting !


can't read "::GidPriv(PostAnimateDisplayVectors)": no such element in array
variable 'PostUpdateWindows' not found
while executing
"error [_ "variable '%s' not found" $name]"
(procedure "::GidPrivVariables::Get" line 5)
invoked from within
"::GidPrivVariables::Get PostUpdateWindows"
invoked from within
"GiD_Process Mescape Results $cur_resv $cur_res $cur_comp $::GidPriv(PostAnimateDisplayVectors)"
(procedure "PostAnimateFrame" line 330)
invoked from within
"PostAnimateFrame 0"
("after" script)

Re: Post processing error

Posted: Mon Feb 27, 2017 10:40 am
by escolano
By 'latest version' do you mean the 13.0.1 official or the 13.1.4d developer?
please, could you attach a zip with a small example to repeat it?
and what to do exactly.

Re: Post processing error

Posted: Mon Jun 12, 2017 1:32 am
by payoubi
Hi,

Sorry for my late reply. It is the official one.
I am attaching a model to this reply. You may unzip the file to open it in the file in GID.

The error occurs when I am doing the post processing. My ultimate goal is to have a colored vectored animation.

Please go to the post processing mode, and choose velocity as the "deformation". I would like to see the velocity vector but it looks so solid and it is not very beautiful. So, I want to add colored contours to them so that they look better. But, it is not possible.

On the other hand, if I want to have animation for vectored velocity, it returns an error that you will see if you try what I have said.

Please let me know if you have any question.

Re: Post processing error

Posted: Wed Aug 02, 2017 11:57 pm
by payoubi
Hi,

Still no news for this issue?

Re: Post processing error

Posted: Wed Sep 20, 2017 11:03 am
by escolano
The problem is a Tcl bug in the animation window of GiD caused by the use of spaces in the result name "a. Nodal Velocity"
In fact the problem happen because there are more than one consecutive spaces (there are two spaces between the '.' and the 'N')
with a single space "a. Nodal Velocity", or without spaces a._Nodal_Velocity the bug doesn't affect.

This bug has been fixed for next GiD 13.0.4 official and 13.1.9d developer (when available)

To fix it you can simply edit the file scripts/PostAnimate.tcl
and replace
set GidPriv(PostAnimate_cur_res) [ join [GiD_Info postprocess get cur_result]]
set GidPriv(PostAnimate_cur_comp) [ join [GiD_Info postprocess get cur_component]]

by
set GidPriv(PostAnimate_cur_res) [GiD_Info postprocess get cur_result]
set GidPriv(PostAnimate_cur_comp) [GiD_Info postprocess get cur_component]


(or modify the .post.res using a not problematic result name)

Re: Post processing error

Posted: Fri Sep 22, 2017 2:48 am
by payoubi
I just removed the extra space and it works fine.

One other thing, is there any way to make vectors colored? Instead of having velocity contours, having vectorized velocity contours?

Re: Post processing error

Posted: Fri Sep 22, 2017 2:45 pm
by escolano
vectors could be showed monochrome, or colored with its module value

Utilities->Preferences...
Postprocess->Vectors: By modules