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

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

    println!("PRNSOL: {} records", vals.len());
    for (i, v) in vals.iter().take(5).enumerate() {
        println!("{i}: {v:?}");
    }

    Ok(())
}