Skip to content

diegomagela/FEMSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEMSON

Build and Compile Instructions

To build and compile the project, navigate to the cpp folder and run the following commands in the terminal:

$ mkdir build
$ cd build
$ cmake ..
$ make

This process has been tested with cmake 3.25.1 and g++ 12.2.0. For Debian-based users, you can install cmake and g++ by running the following command in the terminal:

$ sudo apt install cmake g++-12

Example of Usage

#include "input.h"

int main() {
    input femson("filename.femson");

    // Model nodes
    auto const nodes = femson.get_nodes();
    auto const n_nodes = nodes.size();

    for (auto const &node : nodes) {
        auto const id = node.id;
        auto const x_coord = node.x;
        auto const y_coord = node.y;
        auto const z_coord = node.z;

        // Fill model node container
    }

    return 0;
}

About

An open-source input file for FEA analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages