We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

What is the DIV meaning in *VOPER command when both par1 and par2 are arrays?

TAGGED: 

    • Mehdi Baghaee
      Subscriber

      Hi, I have two vectors with same length (A,B). I want to divide each element of A by the same element of B (i.e. A(i)/B(i)) and make a new vector of C (C(i)=A(i)/B(i)). I want to do this using *VOPER, C, A, DIV, B command in APDL, but could not get the correct answer.  Does any body know how is it possible in APDL using VOPER command? What is the meaning of A/B in the case of A and B are arrays using *VOPER command? I surffed the web but could not find any example in this case. Any help

    • mohan.urs
      Ansys Employee

      Hey,

      Can you check these links. 

      VM129 - explains the description of the problem which is very similar to yours.
      VM129 Input Listing - gives the apdl input to solve and validate the problem. Check the code and change the missing parts from your code.

      Reagrds,
      Mohan Urs

      • Mehdi Baghaee
        Subscriber

        Could not find any similarity between your problem and mine. NOthing were found related to DIV command in your suggested pages (VM129 ,VM129 Input Listing).

        • mohan.urs
          Ansys Employee

          Hey,

          I apologise for the confusion what i meant was DIV in *oper command is indeed for division.

          The problem might be with your syntax that is why i provided those links.
          if you check the 2nd link 

          Here this is the correct syntax for getting 1st derivative of an array D wrt time t in array A and save it in E. You just have to replace DER1 to DIV and point to your arrays.

          Let me know how it goes.

          Regards,
          Mohan Urs

Viewing 1 reply thread
  • You must be logged in to reply to this topic.