Simple way to define a single point in spherical coordinates

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Is there a simple way to define a single named point in space using the spherical coordinate definitions? Similar to how you can define a curve using the analytical curve function? (Of course, instead of a curve, just a point along the curve.)

 

TIA

Tagged:

Answers

  • Mel
    Mel Altair Community Member
    edited February 2019

    Hi Zain

     

    This would actually make a nice feature in FEKO. I am going to log this for development.

     

    In the meantime, I would suggest you create a script. The script can then be added under Home tab, Application macro as a button or 'plugin'

    See page 766 'Custom Dialogs' and page 3213: 'Forms' in the User Manual. 

     

    Create a form where you enter the spherical coordinates. Convert to Cartesian and create the named point.

    The part where the named point is created can be recorded in CADFEKO to get the syntax

    For example:

    app = cf.GetApplication()
    project = app.Project

    -- Added named point 'A' = pt(1,2,3)
    A = project.NamedPoints:Add('A', '1', '2', '3')

     

    Mel

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2019

    I knew conversion was an option but I was hoping to avoid it.

     

    Thanks! I'll try the scripting method