18 stable releases (4 major)

new 4.3.4 May 3, 2024
4.3.3 Mar 26, 2024
4.2.0 Feb 29, 2024
4.0.0 Sep 15, 2023
0.1.0 Mar 10, 2023

#12 in #fem

Download history 18/week @ 2024-01-12 19/week @ 2024-01-19 2/week @ 2024-01-26 7/week @ 2024-02-16 121/week @ 2024-02-23 84/week @ 2024-03-01 275/week @ 2024-03-08 137/week @ 2024-03-15 97/week @ 2024-03-22 108/week @ 2024-03-29 17/week @ 2024-04-05

133 downloads per month
Used in 5 crates

MIT license

240KB
6K SLoC

gmt_dos-clients_fem

Crates.io Documentation

A client for the GMT FEM crate gmt-fem.


lib.rs:

This module is used to build the state space model of the telescope structure

A state space model is represented by the structure [DiscreteModalSolver] that is created using the builder DiscreteStateSpace. The transformation of the FEM continuous 2nd order differential equation into a discrete state space model is performed by the [Exponential] structure (for the details of the transformation see the exponential module ).

Example

The following example loads a FEM model and converts it into a state space model setting the sampling rate and the damping coefficients and truncating the eigen frequencies. A single input and a single output are selected.

use gmt_fem::{FEM,
              dos::{DiscreteStateSpace, DiscreteModalSolver, Exponential},
              fem_io::{OSSM1Lcl6F, OSSM1Lcl}};

    let sampling_rate = 1e3; // Hz
    let fem = FEM::from_env()?;
    let mut fem_ss: DiscreteModalSolver<Exponential> = DiscreteStateSpace::from(fem)
        .sampling(sampling_rate)
        .proportional_damping(2. / 100.)
        .max_eigen_frequency(75.0) // Hz
        .ins::<OSSM1Lcl6F>()
        .outs::<OSSM1Lcl>()
        .build()?;

Dependencies

~64MB
~1M SLoC