Skip to content

millerta/exodus-polyhedra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Exodus

A Makefile is provided to ease to process of building Exodus. Just run:

make exodus

and it will be downloaded to ./seacas/ and built. You will need CMake 3.10+, gcc and g++.


It may take up to 45 minutes for Exodus to compile, depending on network speeds and machine specs.


For issues with compiling Exodus or running this makefile, contact Daniel Livingston at livingston@lanl.gov.

Configuring the Python examples

Python scripts are included in the py-lib directory. These are used to create 3D Exodus meshes.

These scripts were written by Ethan Coon as part of the Amanzi/ATS project and can originally be found here.

Configuring python-exodus

This script uses the Exodus Python library to make calls to the compiled C library.

To get Python to find the exodus-python package, either append the SEACAS library path to your PYTHONPATH:

export PYTHONPATH=$PYTHONPATH:$(pwd)/seacas/lib

Or set the SEACAS_DIR environment variable:

export SEACAS_DIR=$(pwd)/seacas

Also, export the environment variable ACCESS, which Exodus uses internally:

export ACCESS=$(pwd)/seacas

Running the Python examples

Reference meshes for the two examples can be found in the output/ directory.

Four Polygon Test

four polygons

cd four-polygon-test
python2.7 ../py-lib/meshing_ats.py -n 10 -d 1 ./four_polygon.vtk

This will read in the 2D mesh four_polygon.vtk and extrude and write to four_polygon.exo.

Basic Example

example

cd py-lib
python2.7 basic_ats_example.py

This will use Numpy to generate a simple mesh in meshing_ats_example.exo.

Visualizing Exodus files

ParaView or VisIT can be used to view the Exodus files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Makefile 2.8%