use gmt_fem::{ dos::{DiscreteModalSolver, Exponential, Get, Set}, fem_io::*, FEM, }; fn main() -> anyhow::Result<()> { type SS = DiscreteModalSolver; let fem = FEM::from_env()?; let mut state_space_obj = SS::from_fem(fem) .sampling(1000_f64) .proportional_damping(2. / 100.) .max_eigen_frequency(5f64) .ins::() .ins::() .ins::() .outs::() .outs::() .outs::() .build()?; println!("{}",state_space_obj); println!("ins : {:?}", state_space_obj.ins); println!("outs: {:?}", state_space_obj.outs); println!("u: {:?}", state_space_obj.u); println!("y: {:?}", state_space_obj.y); let u: Vec = (1..=42).map(|x| x as f64).collect(); >::set(&mut state_space_obj, &u); println!("u: {:?}", state_space_obj.u); println!("y: {:?}", >::get(&state_space_obj)); Ok(()) }