Hi,
I'm trying to plot my principal stresses (sigma 1 and sigma 3) as cones instead of arrows (which do not look nice for geological purpose).
The black cones on comsol3.5 were pointing inward for sigma1 and outward for sigma 3 (see cones.jpg).
So, in the documentation (there is plenty of them and I'm not sure which one is right), I found that:
model.result('pg1').feature.create('pris1', 'PrincipalSurface');
model.result('pg1').feature('pris1').feature.create('def1', 'Deform');
model.result('pg1').feature('pris1').set('xnumber', '250');
model.result('pg1').feature('pris1').set('ynumber', '10');
%model.result('pg1').feature('pris1').set('arrowtype', 'cone');
model.result('pg1').feature('pris1').feature.create('def1', 'Deform');
model.result('pg1').feature('pris1').set('princvalstressexpr', {'solid.sp1' '0' 'solid.sp3'});
The result is that the arrows are still arrows not cones (see untiled.jpg) (I had an error message for the color parameter).
Can anyone help me?
Thank you
Nicolas
I'm trying to plot my principal stresses (sigma 1 and sigma 3) as cones instead of arrows (which do not look nice for geological purpose).
The black cones on comsol3.5 were pointing inward for sigma1 and outward for sigma 3 (see cones.jpg).
So, in the documentation (there is plenty of them and I'm not sure which one is right), I found that:
model.result('pg1').feature.create('pris1', 'PrincipalSurface');
model.result('pg1').feature('pris1').feature.create('def1', 'Deform');
model.result('pg1').feature('pris1').set('xnumber', '250');
model.result('pg1').feature('pris1').set('ynumber', '10');
%model.result('pg1').feature('pris1').set('arrowtype', 'cone');
model.result('pg1').feature('pris1').feature.create('def1', 'Deform');
model.result('pg1').feature('pris1').set('princvalstressexpr', {'solid.sp1' '0' 'solid.sp3'});
The result is that the arrows are still arrows not cones (see untiled.jpg) (I had an error message for the color parameter).
Can anyone help me?
Thank you
Nicolas