Develop inhouse stability software

Discussion in 'Software' started by Zeiad Abbas, Feb 15, 2024.

  1. Zeiad Abbas
    Joined: Oct 2017
    Posts: 5
    Likes: 0, Points: 1
    Location: Norway; Egypt

    Zeiad Abbas Junior Member

    Is there any material on how to develop your own stability software; any idea about the engine which the commercial software depend on. Any material on coding for naval architecture in general or it is all individual efforts that got succeeded out of a sudden?

    Appreciate any response. Thanks!
     
  2. TANSL
    Joined: Sep 2011
    Posts: 7,648
    Likes: 806, Points: 123, Legacy Rep: 300
    Location: Spain

    TANSL Senior Member

    The simplest (although not easy) is to create macros, for example in Visual Basic, for some of the CAD/CAM software on the market. All of them have APIs that tell how to interact with the objects created in their interface
     
    jehardiman likes this.
  3. jehardiman
    Joined: Aug 2004
    Posts: 3,910
    Likes: 1,270, Points: 113, Legacy Rep: 2040
    Location: Port Orchard, Washington, USA

    jehardiman Senior Member

    If you understand the concepts, it is just tedious, but not difficult to write your own code...especially if it is unique to your needs. I've written stability, docking/undocking, and motions programs in FORTRAN, C++, BASIC, and MVB as well. As TANSL says, if you are using a specific graphics program/outputs you need to understand how they format their data. Some very capable programs pre-date GUI's and still are standards...looking at you GHS.
     
  4. Zeiad Abbas
    Joined: Oct 2017
    Posts: 5
    Likes: 0, Points: 1
    Location: Norway; Egypt

    Zeiad Abbas Junior Member

    TANSL and Jehardiman, many thanks for your response. Any material (books, tutorials, etc.) to start on this or you just use your acquired programming skills?
     
  5. jehardiman
    Joined: Aug 2004
    Posts: 3,910
    Likes: 1,270, Points: 113, Legacy Rep: 2040
    Location: Port Orchard, Washington, USA

    jehardiman Senior Member

    Basically, it is your understanding of the math needed to accomplish the task interfaced with you ability to work the programming language to accomplish your tasks. As an example, I once wrote a surface panel wave response model in 36 lines of BASIC code using recursive embedded DO loops. But it required a very specific panel model format....That is what you are paying for when you purchase a executable program. As a NA student, I know of no book or class that overall outlines how to do this...maybe ask in a computer science forum.
     

  6. Ike
    Joined: Apr 2006
    Posts: 2,712
    Likes: 499, Points: 83, Legacy Rep: 1669
    Location: Washington

    Ike Senior Member

    A lot of off the shelf software already has the capability to do what you want. For example Excel Spreadsheets. A formula ( even something complex) can be embedded in a cell and the various data in other cells, or look up tables, and so on. Even MS Word can do that.. Back in the 80's and 90's I wrote programs in plain old simple BASIC. Before that I took Fortran because my job involved use of main frame computers that ran Fortran. Over the years I learned other programming languages because there simply wasn't off the shelf software that did what I wanted to do. C ++ (etc, how many pluses these days) seems to be the programming language de jour. I never learned it. As JEH said first you need to understand the math. Then you need to learn how to program. Nearly ever college (even high schools) teach it. But why do that when you can buy of the shelf software that does the programming for you.
     
Loading...
Forum posts represent the experience, opinion, and view of individual users. Boat Design Net does not necessarily endorse nor share the view of each individual post.
When making potentially dangerous or financial decisions, always employ and consult appropriate professionals. Your circumstances or experience may be different.