apdl-parser 0.1.0

Parser for ANSYS APDL text listings (NLIST/ELIST/DLIST/PRNSOL)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::Path;

use apdl_parser::{Elist, get_list};

fn main() -> anyhow::Result<()> {
    let path = Path::new("files/ELIST.lis");
    let elems: Vec<Elist> = get_list(path)?;

    println!("ELIST: {} records", elems.len());
    for (i, e) in elems.iter().take(5).enumerate() {
        println!("{i}: {e:?}");
    }

    Ok(())
}