Skip to content

sononicola/Ti-Nspire-CX-CAS-programs

Repository files navigation

Some Ti nspire CX CAS "programs" that I've created to pass Solid and Structural Mechanics (Scienza delle Costruzioni = SdC) and Fluid Mechanics (Meccanica dei Fluidi) at Civil Engineering degree in UniTrento, Italy. Techinically they are not scripts. They are just a sequence of actions made in "Notes" and with the built-in Spreadsheet. They works ;)

I switch to italian, sorry

Indice file:

SdC

  • PLV: Inserendo SOLO le prime 4 colonne della tabella (ovvero lunghezza aste e le equazioni dei momenti delle tre strutture degradate) e cambiando il numero beta nella seconda pagina (corrispondente a quante aste si hanno) permette di calcolare i momenti e le Eta di una struttera iperstatica 2 volte. E' poi possibile creare il sistema del PLV per trovare le incognite iperstatiche, ma non è automatizzato del tuttto. Occore inserire eventuali carichi termici, cedimenti e molle.


    drawing drawing drawing drawing

Meccanica dei fluidi

(If you need the Moody diagram here it is)

  • MF: This is a library. You have to put into "MyLib" folder and then refresh libraries. It helps you to find f0, area, exc. using for example: mf\a(diam). It isn't necessary to have it with programs below.

  • IterMoody1: Itera le f per trovare la velocità (e portata) in caso di piezometrici dinami e/o statici


    drawing drawing drawing drawing

  • IterMoody2: Itera le f nel caso reynolds sia fisso perché la portata o la velocità sono già note (oltre a e ed d). Se non sono note in partenza e occore calcolarle dal bilancio energetico: vedi IterMoody5


    drawing drawing drawing drawing

  • IterMoody3: Calcola l'altezza di contrazione di vena e l'altezza di petto di un serbatoio con stramazzo


    drawing drawing drawing drawing

  • IterMoody4: Calcola il tirante di moto uniforme e critico e la pendenza del fondo uniforme e critico


    drawing drawing drawing drawing

  • IterMoody5: Itera le f nel caso reynolds sia variabile con la portata che però non è nota a priori. Viene dapprima trovata la portata dal bilancio energetico e poi iterata insieme alle f e reynolds (che variano a loro volta) fino la convergenza. (Non è perfetto. Creare il sistema iniziale può essere complicato).


    drawing drawing drawing drawing

  • Spinte dinamiche: Calcola le spinte dinamiche in un'intersezione di tubi. PDF d'aiuto con versori entranti e uscenti.


    drawing drawing drawing drawing

Computational structural mechanics (FEM)

  • SlaveMaster: Calculates the displacements and deformations starting from the coordinates of the Master and Slave element. At the moment there are two version of this file. The one (page 2.1 - 2.4) that uses the program slavemaster_1() is the one more optimized to not block the calculator. I'm working to transform the other formulas.


    drawing drawing drawing drawing

Structural Safety

  • LoadCombination: Compute load combinations in Ultimate State Limit ULS (Stati Limiti Ultimi SLU) and SLT (SLE) accordingly to Eurocode (EU) and NTC2018 (italian normative).

GUIDE:

  • In 1.2 define:

    • comuns A: they are just names. Do what you want here
    • column B: the load values
    • column C: the category for that value. You have to choose the row number of the categories in column E (names). Example: Cat. C is the 5th row, so insert 5.
    • column D: "s" or "f" only. Lower case. Choose if the load is sfavoreval or favoreval
  • Move to another page and to start the program type comb(k) where k is:

    • 1 if γ EQU
    • 2 if γ A1
    • 3 if γ A2
  • TODO:

    • Precompress load (maybe not)
    • Sismic combinations (maybe not)
    • Python+Latex version (maybe yes)


    drawing drawing drawing drawing

Dynamic Of Structures

  • DynamicOfStructures: Compute eigen values and vectors of a dynamic system. HP: Maximum component of the eigenvector (psi) = +1 Input: (matrix M, matrix K, the k value in K matrix). Three version of the program:

    • din1: Results symbolically and analitically. Be carefull: it's very slow using the texax! Use PC version instead.
    • din2: Only analitically. Use this version with the texas
    • din3: Sometimes the CAS isn't able to determine if a value is positive or not, so din1 and din2 can give an error where there is the if statemant that computes the Maximum component of the eigenvector. In din3 this if statement is disabled. Check the value 1 or -1 by hands! At page 3.1 and 4.1 there is just some notes that helps to comput the K matrix
      drawing drawing drawing drawing
  • SectionProperties: Calculate area, center of mass, inertia from X,Y coordinates. The last one point must be the same of the first one!
    drawing drawing drawing drawing