How to properly visualize contact elements in GraphiX?

Hi,

I want to visualize contact elements in GraphiX. Here are the commands I enter:

cgx_glut ns_3d.frd
read ns_3d.cel inp
plot e all
plot fb all
plus er contactelements_st1_in1_at1_it2
view elem on

As a result, I get this:

Do you know why the elements highlighted in red appear there with the same color as regular finite elements and how to get rid of them ? I just want to visualize the standard finite elements in one color and contact elements in another, more visible color.

I rarely use cgx, so I would appreciate your help.

Here are the files: Dropbox

This is the closest I got:

read ns_3d.frd
read ns_3d.cel inp

copy all normal tra 0 0 0
setr normal e contactelements_st1_in1_at1_it2
setr normal e contactelements_st1_in1_at1_it3

plot eb normal n 100
plus eb contactelements_st1_in1_at1_it2 t 33
plus eb contactelements_st1_in1_at1_it3 r 33

Thanks. Should I get this as the result?

1 Like

Yes, that’s what I got.

In addition;

  • There is no r attribute
  • You cannot use the fb combination (transparent faces) with the contact elements; they have no faces.

Output of prnt se:

1     all stat:o n:2922 e:792 f:1336 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
3     contactelements_st1_in1_at1_it2 stat:c n:0 e:53 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
4     +C3D6 stat:c n:0 e:106 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
5     contactelements_st1_in1_at1_it3 stat:c n:0 e:53 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
6     normal stat:c n:1461 e:396 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0

Apparently, transparancy is an all-or-nothing attribute.
If I try to plot/plus one set without it, then all transparency disappears. I’m not sure if that is a bug or intentional.

Ok and would it be possible to remove this transparency-like effect for the model edges (so that their inner faces are not visible)?

I haven’t managed that.

As soon as I make one set not transparant, all transparancy disappear. I’m not sure if that is a bug or just the way the software is written.