AnyKinSPSheet - via nodes

Hi all,

I’m using AMMR 1.6.1 and AnyBody v 6.0.2 64-bit.

I have a question about the AnyKinSPSheet class. I might have missed this somewhere, my apologies if so… I assume the class needs an array of origin and insertion nodes, as well as a surface to wrap over. Is it also always necessary to have a third array of via points between the origin and insertion nodes?

I was looking at the class example “AnyKinSPSheet.any” and tried to modify the existing “Sheet” in the “Measures” folder with the simplified code below such that there are only origin and insert nodes, and a surface in the class. However, I get the error “Number of axial mesh sizes does not fit to the number of axial sheet parts”. Does this simply mean I need to include the set of ‘via’ nodes?

Thanks in advance,
Chris

AnyKinSPSheet My_Sheet = 
      {
        // Reference nodes spanning the sheet. Three rows creates to segments of the sheet.
        RefFrames = {
          {&..Segs.Seg1.MusNode1, &..Segs.Seg1.MusNode2, &..Segs.Seg1.MusNode3, &..Segs.Seg1.MusNode4, &..Segs.Seg1.MusNode5}
          , {&..Segs.Seg2.IntNode1, &..Segs.Seg2.IntNode2, &..Segs.Seg2.IntNode3, &..Segs.Seg2.IntNode4, &..Segs.Seg2.IntNode5}
//        , {&..Segs.Seg2.MusNode1, &..Segs.Seg2.MusNode2, &..Segs.Seg2.MusNode3, &..Segs.Seg2.MusNode4, &..Segs.Seg2.MusNode5}
        };
        
        MeshLong = {20,5};
        
        StiffnessLong = 1.0;
        StiffnessLat = 0.1;

        // Wrapping surface for the whole sheet.
        AnySurface &srf = ..Segs.Seg1.SrfNode.Sph;
        
        // Wrapping surface only for one of the outer lines.
        AnySurface &srf2 = ..Segs.Seg1.SrfNode2.Cyl;

        
        AnyDrawPLine DrwMus = {
          RGB = {149/256,51/256,55/256};
          Thickness = 0.003;
        };
      };//My_Sheet

Hi Chris,

No, it is possible. You only forgot to change a little detail.

The variable MeshLong defines how many points are distributed on the mesh in longitudinal direction for each part of the sheet, i.e. between each pair of origin, via or insertion points. Since you only have origin and insertion, this array needs to have length 1. So if you delete one number it will work.

Best regards
Daniel

Ah, yes of course! Thanks Daniel.

On a similar topic then, is there any advice as to the value MeshLong should be? i.e. is it purely a tradeoff between how well the SPLine conforms to the surface(s) and the speed it takes the wrapping algorithm to solve?

Regards,
Chris

Yes, that’s about right. The points in lateral direction is used to determine contact between points of the line and surfaces, and for more advanced models, also to define constraints between lines.

Regards,
Daniel

OK, thanks again for you help Daniel.
Regards,
Chris