This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/ucd_io.h" | |
| #include "libmesh/mesh_generation.h" | |
| #include "libmesh/elem.h" | |
| using namespace libMesh; | |
| // Uncomment this or compile with -DOLD_STYLE_BOUNDARY_IDS to test | |
| // old-style boundary_ids() function. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <map> | |
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/point.h" | |
| #include "libmesh/cell_tet4.h" | |
| // NOTE: This example only works if you have built and installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This Makefile assumes you have libmesh built and installed in $LIBMESH_DIR. | |
| # If the user has no environment variable | |
| # called METHOD, he gets optimized mode. | |
| ifeq (x$(METHOD),x) | |
| METHOD := opt | |
| endif | |
| # installed libmesh location of libmesh-config script | |
| libmesh_config := $(LIBMESH_DIR)/bin/libmesh-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/elem.h" | |
| #include "libmesh/cell_hex20.h" | |
| #include "libmesh/fe.h" | |
| #include "libmesh/fe_interface.h" | |
| using namespace libMesh; | |
| // This is an example hopfully showing YT people how to evaluate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <map> | |
| #include <cstdlib> // std::getenv() | |
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/point.h" | |
| #include "libmesh/face_tri3.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <map> | |
| #include <cstdlib> // std::getenv() | |
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/point.h" | |
| #include "libmesh/cell_tet4.h" | |
| // #include "libmesh/exodusII_io.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This utility code is used for generating the embedding matrix for the Prism15 element | |
| #include <iomanip> // std::setw | |
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/elem.h" | |
| #include "libmesh/mesh_generation.h" | |
| #include "libmesh/mesh_modification.h" | |
| #include "libmesh/getpot.h" | |
| #include "libmesh/fe_interface.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This test code is to investigate David Knezevic's bad Tet10 | |
| #include "libmesh/libmesh.h" | |
| #include "libmesh/mesh.h" | |
| #include "libmesh/elem.h" | |
| #include "libmesh/cell_tet10.h" | |
| // Bring in the libmesh namespace | |
| using namespace libMesh; | |
| int main (int argc, char** argv) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This example tests out the calculation of second derivatives | |
| // Run me with: | |
| // ./second_derivs-opt -d 2 -n 2 -o FIRST -ksp_monitor -pc_type hypre -pc_hypre_type boomeramg > second_derivs.log | |
| // C++ include files that we need | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <math.h> | |
| #include <set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # "Serendipity" pyramid element functions, as defined in: | |
| # | |
| # G. Bedrosian, "Shape functions and integration formulas for | |
| # three-dimensional finite element analysis", Int. J. Numerical | |
| # Methods Engineering, vol 35, p. 95-108, 1992. | |
| # | |
| # This pyramid has 13 nodes and a "serendipity" quad on the bottom. | |
| # Bedrosian uses the same size reference element as we want to use, | |
| # but a different node numbering. The purpose of this script is to | |
| # make sure his basis functions check out. Bedrosian also uses |