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::{Nlist, get_list};

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

    println!("NLIST: {} records", nodes.len());
    for (i, n) in nodes.iter().take(5).enumerate() {
        println!("{i}: {n:?}");
    }

    Ok(())
}