Fluids

Fluids

Complex numbers in “Named expressions”

    • larito
      Subscriber

      Hello everyone,

      I was wondering if we can define complex numbers in "Named expressions". i would like to implement the following expression

       

      Re(390e^(4,56it)) i is the imaginary unit and t is the time and Re is indicating that I want the real part of this complex number for each t. My math are very rusty so I am not sure if I can implement it in a different way. Any advice will be much appreciated.

       

      Best regards

    • NFLynn
      Subscriber

      Is there a reason why you cannot just change it to cosine? See here for the Euler notation.

      • larito
        Subscriber

        Hello NFlynn thank you for the answer,

        I made that realization few moments after I posted this. It has been a while since I have done something similar 😅

         

        Best regards

    • Rob
      Ansys Employee

      I'm keeping out of the maths, thanks NFlynn!  The question is really why do you need imaginary numbers: expressions tend to be used to report a value or set something and that tends to be "real". I've only ever seen imaginary numbers in control theory (lesson learnt - find a specialist) and the electrickery tools in Ansys (always find an expert!). 

      • larito
        Subscriber

        Perfect!

        Thank you for the fast reply :)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.