Curve integral fails saying "Vectors must have the same number of elements in : [curve name]"

Ingeniorator
Ingeniorator New Altair Community Member
edited May 2021 in Community Q&A

Hello everyone,

 

while forming the integral of a single curve, Hypergraph spits out the error "Vectors must have the same number of elements in : [curve name]". The curve in question is a multiplication of two curves, namely a displacement curve and an acceleration curve. I've tried either integrating it via right click on curve - single curve math - integral, and by integrating it via the math operations in the "Define Curve" context menu. It's very odd that not even the direct method via the single curve math option is working as intended. Where could the error be?

Answers

  • Rogerio Nakano_21179
    Rogerio Nakano_21179 New Altair Community Member
    edited April 2021

    Hi

    Does that error  happen to the operation with the two specific curves you mentioned? or to any other two curves?

    for instance if you do Disp(t)=sin(2*pi*5.0*x), and acel(t)=-(2*pi*5.0)^2*sin(2*pi*5.0*x).

    and multiply and integrate the curve...

    would it fail?

     

    The multiplication should sync the two curves, displacement and acceleration, so that even if they have different amount of vector entities it will do the operation.

     

    Regards

  • Ingeniorator
    Ingeniorator New Altair Community Member
    edited April 2021

    Hi

    Does that error  happen to the operation with the two specific curves you mentioned? or to any other two curves?

    for instance if you do Disp(t)=sin(2*pi*5.0*x), and acel(t)=-(2*pi*5.0)^2*sin(2*pi*5.0*x).

    and multiply and integrate the curve...

    would it fail?

     

    The multiplication should sync the two curves, displacement and acceleration, so that even if they have different amount of vector entities it will do the operation.

     

    Regards

    Hello Rogerio,

    thank you for your answer, please excuse the late reply. I found the error in the meantime. The integrated curve was based on a previously generated curve that was modified, hence there likely were some links that might have gone belly up without noticing since they were displayed correctly. Redefining the curves solved the issue.

  • Autumn
    Autumn Altair Community Member
    edited May 2021

    Hello Rogerio,

    thank you for your answer, please excuse the late reply. I found the error in the meantime. The integrated curve was based on a previously generated curve that was modified, hence there likely were some links that might have gone belly up without noticing since they were displayed correctly. Redefining the curves solved the issue.

    Hi @Ingeniorator / @Rogerio Nakano,

    I'm having this same error pop up when I try to integrate a curve where y = interface force (via TH file) and x = node displacement (via "Measures" in HyperView) (so there is no curve multiplication). I've tried right-clicking on the curve and using single curve math -> integral and by defining the curve directly (both methods Ingeniorator had also mentioned trying in their original post), but, alas, the error still occurs.

    Do you have any suggestions for solving the error in this context?

    Ingeniorator - Are you able to provide a bit more detail about how you went about redefining the curves?

    Thank you in advance for your time and help.

  • Autumn
    Autumn Altair Community Member
    edited May 2021
    Autumn said:

    Hi @Ingeniorator / @Rogerio Nakano,

    I'm having this same error pop up when I try to integrate a curve where y = interface force (via TH file) and x = node displacement (via "Measures" in HyperView) (so there is no curve multiplication). I've tried right-clicking on the curve and using single curve math -> integral and by defining the curve directly (both methods Ingeniorator had also mentioned trying in their original post), but, alas, the error still occurs.

    Do you have any suggestions for solving the error in this context?

    Ingeniorator - Are you able to provide a bit more detail about how you went about redefining the curves?

    Thank you in advance for your time and help.

    I was able to resolve the issue by first going to the "Coordinate Info" for each of the curves to see how many data points there were and then trimming (under "Modify Curves") down to the same number of data points (in my case, the node displacement from "Measures" in HyperView had one more data point than the interface force from the TH file, so I simply removed the final point. Since I was more interested in what was happening at the earlier part of the curve, trimming one point was not a big issue). Integrating the curve was then possible.